query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
No data yet to wait. | @Override
public boolean run() {
if (getObserver.get().getExists() == Existence.MAYBE) {
return false;
}
// Get the results and check for Success/Fail.
Endpoints result = getObserver.get();
if (result.result == Endpoints.Result.Success) {
// We have a list of Endpoints! Now lets remove one.
removeDevice(getObserver.get());
} else {
Logger.e("Unable to get registered devices");
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForData() {\n waitForData(1);\n }",
"void waitToRead();",
"@Override\n public boolean waitToProceed() {\n return false;\n }",
"private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}",
"private int waitUntilReady()\r\n {\r\n int rc = 0;\r\n // If a stock Item is in the Table, We do not want to start\r\n // The Lookup, if the name of the stock has not been identified.\r\n // here we will wait just a couple a second at a time.\r\n // until, the user has entered the name of the stock.\r\n // MAXWAIT is 20 minutes, since we are 1 second loops.\r\n // 60 loops is 1 minute and 20 of those is 20 minutes\r\n final int MAXWAIT = 60 * 20;\r\n int counter = 0;\r\n do\r\n {\r\n try\r\n {\r\n Thread.currentThread().sleep(ONE_SECOND);\r\n }\r\n catch (InterruptedException exc)\r\n {\r\n // Do Nothing - Try again\r\n }\r\n if (counter++ > MAXWAIT)\r\n { // Abort the Lookup for historic data\r\n this.cancel();\r\n return -1;\r\n }\r\n }\r\n while (\"\".equals(sd.getSymbol().getDataSz().trim()));\r\n\r\n return 0;\r\n }",
"public final void waitForData(long tmo) {\n\n\t\t//\tCheck if the file data has been loaded, if not then wait\n\t\t\n\t\tif ( isDataAvailable() == false) {\n\t\t\tsynchronized ( this) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t//\tWait for file data\n\t\t\t\t\t\n\t\t\t\t\twait(tmo);\n\t\t\t\t}\n\t\t\t\tcatch ( InterruptedException ex) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Status waitUntilFinished();",
"private void waitConfigData() {\n\t\tstartListening();\n\t\twhile (!configDataSet) {\n\t\t\tsleep(10);\n\t\t}\n\t\tstopListening();\n\t}",
"protected void waitUntilCommandFinished() {\n }",
"private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"public void waitUntilReady() throws IOException, InterruptedException {\n while (ready() == 0) {\n Thread.sleep(10);\n }\n }",
"public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }",
"@Override\n public boolean isReady() {\n return !isDone;\n }",
"protected int getWait() \t\t\t\t{\treturn wait;\t\t}",
"public boolean acquireNoWait() {\r\n return true;\r\n }",
"private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }",
"public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }",
"public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}",
"@Override\n public boolean isReady() {\n return isFinished();\n }",
"public final void waitFor() {\r\n for (;;) {\r\n synchronized (this) {\r\n if (this.m_b)\r\n return;\r\n try {\r\n this.wait();\r\n } catch (Throwable tt) {\r\n tt.printStackTrace();\r\n }\r\n }\r\n }\r\n }",
"@Override\r\n\t\t\tpublic boolean isReady() {\n\t\t\t\treturn false;\r\n\t\t\t}",
"@Override\n public boolean isBusy() {\n return false;\n }",
"public boolean mustWait() {\n return mustWait;\n }",
"public void waitUntilStarted() {\n mStarted.block();\n }",
"@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}",
"public void waitForData(int minNumBytes) {\n try {\n\n while (available() < minNumBytes) {\n Thread.sleep(500);\n }\n }\n catch (InterruptedException e) {\n System.out.println(\"#### Thread interrupted -- could be big trouble\");\n }\n catch(Exception e){}\n }",
"@Override\r\n\tpublic boolean isReady() {\n\t\tResultSetDTO dto = mongoManager.fetchAndUpdateAvailableToRead(previousCollectionName);\r\n\t\t\r\n\t\tlogger.info(\"ready to start a new transaction? : [\"+(dto.isNotEmpty()?\"Yes\":\"No\")+\"], fetch size : \"+dto.getBatchRowsSize());\r\n\t\tif(dto.isNotEmpty()){\r\n\t\t\t\r\n\t\t\tnextBatchRows = dto.getBatchRows();\r\n\t\t\tcollectionName = dto.getCollectionName();\r\n\t\t\tpreviousCollectionName = collectionName;\r\n//\t\t\tlong idletime = 1 * 1000;\r\n//\t\t\tlogger.info(\"sleeping(has data)... idle time:\"+idletime+\" ms\");\r\n//\t\t\tUtils.sleep(idletime);\r\n\t\t\tlogger.debug(\"received data, prepare to sleep for a while...\");\r\n\t\t\tUtil.sleepForawhile(3 * 1000);\r\n\t\t\treturn true;\r\n\t\t} else{ //sleep while there is no data found\r\n\t\t\tlogger.warn(\"no data found, sleeping...\");\r\n\t\t\tUtil.sleepForawhile(6 * 1000);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n//\t\treturn mongoManager.getAvailableToRead(nextRead) > 0;\r\n\t}",
"@Override\n\tpublic boolean isBusy() {\n\t\treturn false;\n\t}",
"private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }",
"public void waitServersReady() {\n }",
"@Override\n\tpublic boolean isReady() {\n\t\treturn false;\n\t}",
"protected abstract long waitOnQueue();",
"public void readWait()\n {\n try{\n waitLock.lock();\n while(readSector != -1){\n \t readDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }",
"public abstract void onWait();",
"@Override\n public boolean isReady() {\n return true;\n }",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"public static void checkDataStatus() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tif (DataHandler.currentDataFileName == null)\r\n\t\t\tDialogConfigureYear.noDatabaseMessage();\r\n\t}",
"boolean isWaiting()\n {\n return waitFlags != 0;\n }",
"@Override\r\n\tpublic boolean isReady() {\n\t\treturn !finish;\r\n\t}",
"public boolean isDataAvailable(){return true;}",
"public boolean dataIsReady()\n {\n boolean[] status = m_receiver.getBufferStatus();\n if (status.length == 0)\n {\n return false;\n }\n for (boolean b : status)\n {\n if (!b)\n return false;\n }\n return true;\n }",
"private void getSleepData() {\n\n }",
"public void testTimedPoll0() {\n try {\n SynchronousQueue q = new SynchronousQueue();\n assertNull(q.poll(0, TimeUnit.MILLISECONDS));\n } catch (InterruptedException e){\n\t unexpectedException();\n\t}\n }",
"protected abstract long waitToTravel();",
"public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}",
"public boolean isDataAvailable()\r\n {\r\n return true;\r\n }",
"@Override\n public boolean isReady() {\n return true;\n }",
"protected int waitUntilMessageAvailable00(int handle) \n throws IOException {\n return waitUntilMessageAvailable0(m_iport, handle);\n }",
"@Override\n\tpublic int getXWait() {\n\t\treturn 0;\n\t}",
"private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }",
"@Override public void run() {\n waitUntil(\"message\", new Condition() {\n @Override public boolean isMet() {\n return false;\n }\n }, 0);\n }",
"public static void waitWhileLoading()\r\n {\r\n while (isLoading())\r\n ThreadUtil.sleep(10);\r\n }",
"final void waitFinished() {\n if (selectionSyncTask != null) {\n selectionSyncTask.waitFinished();\n }\n }",
"public void completeData();",
"public boolean isBusy() {\n\t\treturn false;\n\t}",
"private boolean isGettingData(){\n int available;\n long startTime = System.nanoTime();\n int timeout = 100;\n InputStream inStream = null;\n flushStream();\n try {\n if(socket!=null)\n inStream = socket.getInputStream();\n Thread.sleep(100); //The Arduino keeps sending data for 100ms after it is told to stop\n }catch(IOException | InterruptedException e){}\n try {\n while (true) {\n available = inStream.available();\n if (available > 0) {\n return true;\n }\n Thread.sleep(1);\n long estimatedTime = System.nanoTime() - startTime;\n long estimatedMillis = TimeUnit.MILLISECONDS.convert(estimatedTime,\n TimeUnit.NANOSECONDS);\n if (estimatedMillis > timeout){\n return false; //timeout, no data coming\n }\n }\n }catch(IOException | InterruptedException | NullPointerException e){\n Log.d(\"Exception\", \"Exception\");\n }\n return false;\n }",
"public final synchronized void signalDataAvailable() {\n\n\t\t//\tNotify any waiting threads that the file data ia available\n\t\t\t\n\t\tnotifyAll();\n\t}",
"public synchronized void makeAvailable(){\n isBusy = false;\n }",
"@Override\n\tprotected boolean until() {\n\t\treturn true;\n\t}",
"public void doWait() {\n\t\tsynchronized(lock) {\n\t\t\twhile(!wasSignalled) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\twasSignalled = false;\n\t\t}\n\t}",
"protected boolean waitBeforeExecution() throws InterruptedException {\n/* 112 */ Integer mx = ((IncomingSearchRequest)getInputMessage()).getMX();\n/* */ \n/* 114 */ if (mx == null) {\n/* 115 */ log.fine(\"Invalid search request, did not contain MX header: \" + getInputMessage());\n/* 116 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ if (mx.intValue() > 120 || mx.intValue() <= 0) mx = MXHeader.DEFAULT_VALUE;\n/* */ \n/* */ \n/* 125 */ if (getUpnpService().getRegistry().getLocalDevices().size() > 0) {\n/* 126 */ int sleepTime = this.randomGenerator.nextInt(mx.intValue() * 1000);\n/* 127 */ log.fine(\"Sleeping \" + sleepTime + \" milliseconds to avoid flooding with search responses\");\n/* 128 */ Thread.sleep(sleepTime);\n/* */ } \n/* */ \n/* 131 */ return true;\n/* */ }",
"protected abstract void beforeWait();",
"void waitAll();",
"@Override\r\n\tpublic E poll() {\n\t\treturn null;\r\n\t}",
"private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }",
"public void testPoll() {\n SynchronousQueue q = new SynchronousQueue();\n\tassertNull(q.poll());\n }",
"public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }",
"public void waitForNotificationOrFail() {\n new PollingCheck(5000) {\n @Override\n protected boolean check() {\n return mContentChanged;\n }\n }.run();\n mHT.quit();\n }",
"public boolean isReady(){\n return !result.equals(\"\");\n }",
"public boolean isReady();",
"public boolean isReady();",
"@DISPID(-2147412071)\n @PropGet\n java.lang.Object ondataavailable();",
"@Override\n\tpublic boolean isReady() {\n\t\treturn (this.baseTime == this.timeRemaining);\n\t}",
"public void waitToFinish()\n/* */ {\n/* 473 */ synchronized (this) {\n/* 474 */ while (getIterationsToGo() > 0) {\n/* */ try {\n/* 476 */ wait();\n/* */ }\n/* */ catch (InterruptedException e) {\n/* 479 */ e.printStackTrace();\n/* */ }\n/* */ }\n/* */ }\n/* */ }",
"public boolean waitLoading() {\n\t\t\treturn waitLoading;\n\t\t}",
"@Override\n\tpublic void DoGoToWaiting(int offset) {\n\t\t\n\t}",
"void waitToWrite();",
"public synchronized void waitUntilLoad() {\n\t\twhile (!this.loaded) {\n\t\t\tSystem.out.println(\"Waiting for news to load\");\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t}",
"public void readTaskComplete() {\n\t\tnode.incrementNodesCompleted();\n\t\tif(node.getNodesCompleted() ==node.getCurrentMessagingNodesList().getSize()) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"going to sleep\");\n\t\t\t\tThread.sleep(1000*15);\n\t\t\t\tfor(NodeLink n : node.getCurrentMessagingNodesList().getList()) {\n\t\t\t\t\tMessage message = new PullTrafficRequest();\t\t\t\t\n\t\t\t\t\tSocket senderSocket = node.getConnections().getSocketWithName(n.ipAddress);\n\t\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t\t}\n\t\t\t} catch (IOException e) {e.printStackTrace();\n\t\t\t} catch (InterruptedException e) {e.printStackTrace();}\n\t\t}\n\t}",
"public int queue() \n { return waiting; }",
"public void logReadWait()\n {\n try{\n waitLock.lock();\n while(logReadSector != -1){\n \t logReadDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }",
"public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void waitingForPartner();",
"public void waitUntilLoadingDoesNotExistAndVerifyContainerDisplayed(){\n\t\tverifyContainerDisplayedResultsPage();\r\n\t}",
"private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }",
"private void waitForAvailable() throws IOException, ReadTimeoutException {\n\t\tlong expireTime = System.currentTimeMillis() + READ_TIMEOUT;\n\t\twhile (inputStream.available() < 1) {\n\t\t\tif (System.currentTimeMillis() > expireTime) {\n\t\t\t\tthrow new ReadTimeoutException(\"Read Timed Out.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(SLEEP_TIME);\n\t\t\t} catch (InterruptedException ie) {\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public boolean isDone()\n {\n return false;\n }",
"private void waitForBuyersAction() throws InterruptedException\n {\n while(waiting)\n {\n Thread.sleep(100);\n }\n waiting = true;\n }",
"public boolean isATMReadyTOUse() throws java.lang.InterruptedException;",
"@Override\n public boolean isDone() {\n return false;\n }",
"public abstract void ready();",
"boolean isReady();",
"boolean isReady();",
"boolean isReady();",
"public void CondWait(){\n try {\r\n trainCond.await();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"private void waitForFree() throws InterruptedException {\n // Still full?\n while (isFull()) {\n // Park me 'till something is removed.\n block.await();\n }\n }",
"public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}",
"public boolean isBusy();",
"private boolean waitForAO()\n {\n int countOfRetry = 15;\n do\n {\n try\n {\n log.debug(\"Attempting to wait for AO.\");\n activeObjects.count(MessageMapping.class);\n log.debug(\"Attempting to wait for AO - DONE.\");\n stop = true;\n return true;\n }\n catch (PluginException e)\n {\n countOfRetry--;\n try\n {\n Thread.sleep(5000);\n }\n catch (InterruptedException ie)\n {\n // nothing to do\n }\n }\n }\n while (countOfRetry > 0 && !stop);\n log.debug(\"Attempting to wait for AO - UNSUCCESSFUL.\");\n return false;\n }",
"private boolean isBusy() {\n return currentStudent != null;\n }"
] | [
"0.8334661",
"0.69663215",
"0.6898705",
"0.6870583",
"0.67843854",
"0.6701646",
"0.6698918",
"0.66592664",
"0.6620479",
"0.6588188",
"0.6562376",
"0.65366644",
"0.6486043",
"0.6468687",
"0.6466581",
"0.645185",
"0.64475596",
"0.6421725",
"0.64082974",
"0.6373613",
"0.6351252",
"0.63226056",
"0.63118094",
"0.6293692",
"0.626204",
"0.626204",
"0.6259468",
"0.624667",
"0.623838",
"0.6224133",
"0.6216863",
"0.61980295",
"0.6197536",
"0.6190143",
"0.61866844",
"0.61785644",
"0.61586916",
"0.61563987",
"0.6153314",
"0.61442804",
"0.6139232",
"0.61190397",
"0.61116695",
"0.6094266",
"0.6071566",
"0.6065175",
"0.60576946",
"0.60574967",
"0.60511637",
"0.6050368",
"0.6041282",
"0.60370517",
"0.6027736",
"0.6022914",
"0.60093904",
"0.60066503",
"0.59972197",
"0.59766215",
"0.59572065",
"0.59403133",
"0.5936185",
"0.5930516",
"0.5928873",
"0.59121054",
"0.59066635",
"0.59005606",
"0.588343",
"0.58749855",
"0.58749044",
"0.586573",
"0.5860985",
"0.5860985",
"0.5859668",
"0.58540183",
"0.5853092",
"0.58463454",
"0.5844418",
"0.58396626",
"0.5837589",
"0.5829218",
"0.5818126",
"0.581326",
"0.5802746",
"0.57926726",
"0.57882",
"0.5770955",
"0.5770807",
"0.57684314",
"0.576781",
"0.57668203",
"0.575939",
"0.5759007",
"0.57423097",
"0.57423097",
"0.57423097",
"0.5734905",
"0.5730018",
"0.5721401",
"0.5712512",
"0.5698845",
"0.5698138"
] | 0.0 | -1 |
Defines a listener that will be triggered when the Bbmds message "EndpointDeregistered" arrives. | public interface EndpointDeregisteredListener {
void onEndpointDeregistered();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static synchronized void listenForAndHandleDeregistered(@NonNull final EndpointDeregisteredListener listener) {\n mDeregisterMessageConsumer = new InboundMessageConsumer<EndpointDeregistered>(new EndpointDeregistered()) {\n @Override\n public void onInboundMessage(EndpointDeregistered inboundMessage) {\n listener.onEndpointDeregistered();\n }\n };\n\n BBMEnterprise.getInstance().getBbmdsProtocolConnector().addMessageConsumer(mDeregisterMessageConsumer);\n }",
"@Override\n public void onDisconnected(String endpointId) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Disconnected \" + endpointId);\n }",
"protected void onEndpointDisconnected(Endpoint endpoint) {}",
"public static void deregisterCurrentEndpoint(@NonNull DeregisterFailedCallback callback) {\n // Create a cookie to track the request.\n final String requestCookie = UUID.randomUUID().toString();\n\n // Create a one time inbound message observer that will have the results.\n final InboundMessageObservable<Endpoints> endpointsObservable = new InboundMessageObservable<>(\n new Endpoints(), requestCookie, BBMEnterprise.getInstance().getBbmdsProtocolConnector());\n\n SingleshotMonitor.run(new SingleshotMonitor.RunUntilTrue() {\n @Override\n public boolean run() {\n Endpoints endpoints = endpointsObservable.get();\n if (endpoints.exists == Existence.MAYBE) {\n return false;\n }\n\n if (endpoints.result == Endpoints.Result.Failure) {\n callback.deregisterFailed();\n return true;\n }\n\n //Find the \"current\" endpoint\n for (Endpoints.RegisteredEndpoints registeredEndpoint : endpoints.registeredEndpoints) {\n if (registeredEndpoint.isCurrent) {\n //Leave the current endpoint\n BBMEnterprise.getInstance().getBbmdsProtocol().send(\n new EndpointDeregister(requestCookie, registeredEndpoint.endpointId)\n );\n\n // Create a one time inbound message observer that will have the results.\n final InboundMessageObservable<EndpointDeregisterResult> deregisterObservable = new InboundMessageObservable<>(\n new EndpointDeregisterResult(),\n null,\n BBMEnterprise.getInstance().getBbmdsProtocolConnector()\n );\n\n //Observe the deregistration result\n SingleshotMonitor.run(new SingleshotMonitor.RunUntilTrue() {\n @Override\n public boolean run() {\n EndpointDeregisterResult result = deregisterObservable.get();\n if (result.exists == Existence.MAYBE) {\n return false;\n } else {\n if (result.result == EndpointDeregisterResult.Result.Failure) {\n callback.deregisterFailed();\n }\n return true;\n }\n }\n });\n break;\n }\n }\n return true;\n }\n });\n\n // Activate the monitor and issue the protocol request to get the endpoints\n BBMEnterprise.getInstance().getBbmdsProtocol().send(new EndpointsGet(requestCookie));\n }",
"@Override\n public void onEndpointLost(String endpointId) {\n Discoverer.this.eventListener.trigger(\n EVENT_LOG, \"Lost endpoint \" + endpointId\n );\n }",
"public abstract void removeServiceListener(PhiDiscoverListener listener);",
"public void addDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.add(listener);\n\t}",
"public interface OnDisconnectListener {\n\n /**\n * Called when client disconnects.\n * @param errorMsg if error caused desconnection, this contains error description.\n */\n void onDisconnect( String errorMsg );\n }",
"public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}",
"private void deRegister() {\n\t\ttry {\n\t\t\tOverlayNodeSendsDeregistration deregister = new OverlayNodeSendsDeregistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum, this.myAssignedID);\n\t\t\tthis.registry.getSender().sendData(deregister.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t}\n\t}",
"@Override\n public void onServerDisconnectedListener() {\n disconnect();\n\n if (serviceDisconnectedListener != null) {\n serviceDisconnectedListener.onServerDisconnectedListener();\n }\n }",
"protected void registerListener() {\r\n\t\t// do nothing\r\n\t}",
"public void unregisterListener() {\n\t\tthis.listener = null;\n\t}",
"void removeListener( ConfigurationListener listener );",
"void removeListener( AvailabilityListener listener );",
"@Override\n\tpublic void unregistListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.unregister(listener);\n\t}",
"protected void uninstallListeners() {\n }",
"protected void uninstallListeners() {\n }",
"public ConnectionListener remove(String listenerID);",
"public interface IFailureDetectionEventListener {\r\n\t/**\r\n\t * Convict the specified endpoint.\r\n\t * \r\n\t * @param ep\r\n\t * endpoint to be convicted\r\n\t */\r\n\tpublic void convict(InetAddress ep);\r\n\r\n}",
"@Request(id = 27, retryable = true, response = ResponseMessageConst.BOOLEAN)\n Object removePartitionLostListener(String name, String registrationId);",
"public abstract void unregisterListeners();",
"public void onServiceDisconnected();",
"protected void uninstallListeners() {\n\t}",
"public interface CallDisconnectedListner {\n void callDisconnected();\n}",
"void removeListener(RosZeroconfListener listener);",
"public static void deregisterEventListener(String event, Consumer<Object> listener)\n {\n List<Consumer<Object>> listeners = EVENTS_TO_LISTENERS.get(event);\n\n if (listeners != null)\n {\n listeners.remove(listener);\n }\n }",
"public DefaultDeviceDiscovererListener()\r\n {\r\n }",
"@Override\n public void unregister(Object subscriber) {\n }",
"public void setOnUnstallReceiverListener(UninstallRecieverListener unstallReceiverListener) {\n this.uninstallRecieverListener = unstallReceiverListener;\n\n }",
"private void unregisterListener() {\n mSensorManager.unregisterListener(this);\n }",
"void unregisterListeners();",
"public synchronized EndpointListener getListener(String str) {\r\n return (EndpointListener) propListeners.get(str);\r\n }",
"@Override\n public void onEndpointDiscovered(String id, String name) {\n Log.d(TAG, \"endpoint discovered: \" + id + \" \" + name);\n }",
"public void onUnsubscribe() {\n\n }",
"public abstract void addServiceListener(PhiDiscoverListener listener);",
"void RegisterGattListener( @NonNull BleGattListener gattListener );",
"@FunctionalInterface\npublic interface ServerBecomesAvailableListener extends GloballyAttachableListener {\n\n /**\n * This method is called every time a server became unavailable.\n *\n * @param event The event.\n */\n void onServerBecomesAvailable(ServerBecomesAvailableEvent event);\n}",
"@Override\n\tpublic void registListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.register(listener);\n\t}",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n if (service != null)\n service.setListener(null);\n service = null;\n }",
"public EventMapper onDeactivation(final Runnable runnable) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putRunnable(MappingEvent.deactivation, runnable);\n\t\treturn this;\n\t}",
"public void removeListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;",
"void removeDeviceAgentListener(DeviceId deviceId, ProviderId providerId);",
"private void unregisterListener() {\n\t\tif (!mHasStarted || mSensorManager == null) {\n\t\t\treturn;\n\t\t}\n\t\tmHasStarted = false;\n\t\tmSensorManager.unregisterListener(mAccListener);\n\t}",
"@Override\n\tpublic void getListener(){\n\t}",
"@Override\n\tpublic String getListenerID() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void listenerClosed(ConnectionListenerEvent evt) {\n\t\t\n\t}",
"public interface IConnectedRegisteredDevicesListenerManager {\n\n boolean addConnectedDevicesListener(ConnectedRegisteredDevicesListener listener);\n\n boolean removeConnectedDevicesListener(ConnectedRegisteredDevicesListener listener);\n\n}",
"public interface IRegisteredDiscoveryServer extends IDiscoveryServer {\r\n\t\r\n \r\n\t\r\n\t/**\r\n\t * Get the local end point associated with this IRegisteredDiscoveryServer\r\n\t * @return an IEndPointData instance made from the registration information used to generate this IRegisteredDiscoveryServer.\r\n\t */\r\n\tpublic IEndPointData getLocalEndPoint();\r\n\t\r\n\t/**\r\n\t * In addition to disconnecting from the remote discovery server machine, \r\n\t * de-registers the associated end point (name/category/boundName) and\r\n\t * terminates the associated heart beat.\t \r\n\t * This method should be called when the system exists to properly de-register the end point.\r\n\t */\r\n\t@Override\r\n\tpublic void disconnect(); \t\r\n}",
"private void deregisterBroadcastReceiver(){\n activity.unregisterReceiver(hceNotificationsReceiver);\n }",
"public static void unregisterListener(String uri){\n synchronized (listeners){\n listeners.remove(uri);\n }\n }",
"@EventName(\"receivedMessageFromTarget\")\n EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);",
"@Override\r\n\tpublic void onServerDown() {\n\t\tString res=name + \" recived a notification\";\r\n\t\tLOGGER.info(res);\r\n\t\t\r\n\t}",
"public ConnectionListener getListener(String listenerID);",
"public interface BroadcastListener {\n void broadcastIdAdded(String groupId);\n\n void broadcastMemberAdded(String result, String resultType);\n\n void broadcastDeleteResponse(String response);\n\n void broadcastRemoveMemberResponse(String response);\n\n void broadcastInfoUpdatedResponse(String response);\n}",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"public interface OnServiceConnectionListener {\n}",
"public interface OnEventAvailableListener {\n\tpublic void OnEventAvailable(Message msg);\n}",
"@Override\n public void onFailure(@NonNull Exception e) {\n Discoverer.this.eventListener.trigger(\n EVENT_LOG, \"Fail to run discovery: \" + e.getMessage()\n );\n }",
"@Override\n\tpublic void serviceRemoved(ServiceEvent arg0) {\n\n\t}",
"void removeListener(IEventChannelListener<K, V> listener);",
"public void uidDeregistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }",
"public interface OnReceiveListener {\n\n /**\n * Called when client receives a message.\n * @param response received message.\n */\n void onReceive( String response );\n }",
"public interface IDiscoveryListener {\r\n\t/**\r\n\t * Called when a device is discovered.\r\n\t * \r\n\t * @param _discoverer the discoverer that found the device\r\n\t * @param _device the device that was found\r\n\t */\r\n\tpublic void deviceDiscovered(IDiscoverer _discoverer, IDevice _device);\r\n}",
"@Override\n public void removeListener(ResourceListener listener) {\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n if (busIsRegistered) {\n BusService.getBus().unregister(this);\n busIsRegistered = false;\n }\n }",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n }",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n }",
"@Override\r\n public void onServiceDisconnected(ComponentName className) {\r\n isObdServiceBound = false;\r\n }",
"public interface MyBroadcastListener {\n void receivedBroadcast();\n }",
"void removeListener(BotListener l);",
"public void unregisterListener() {\n mPhone.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);\n /* SPRD: Bug 697839 add For VOLTE and VoWiFi icon. @{ */\n try {\n if (mIsImsListenerRegistered) {\n mIsImsListenerRegistered = false;\n if (mIImsServiceEx != null) {\n mIImsServiceEx.unregisterforImsRegisterStateChanged(mImsUtListenerExBinder);\n }\n }\n /* SPRD: modify for bug723743 @{ */\n if (mIsImsReceiverRegistered) {\n mContext.unregisterReceiver(mImsIntentReceiver);\n mIsImsReceiverRegistered = false;\n }\n if (mIsModemReciverRegistered) {\n mContext.unregisterReceiver(mModemStateChangeReciver);\n mIsModemReciverRegistered = false;\n }\n /* @} */\n } catch (RemoteException e) {\n Log.e(mTag, \"RemoteException: \" + e);\n }\n /* @} */\n mContext.getContentResolver().unregisterContentObserver(mObserver);\n /* SPRD: Dual volte signalStrength display for bug 666045. @{ */\n if (mDualVoLTEListener != null) {\n mPhone.listen(mDualVoLTEListener, PhoneStateListener.LISTEN_NONE);\n }\n mContext.unregisterReceiver(mReceiver);\n /* @} */\n }",
"private static void fireRemovedEvent(ProtocolDescriptor pd) {\n\t\tfor (ProtocolStoreListener l : storeListener)\n\t\t\tl.protocolRemoved(pd);\n\t}",
"public void removeListener(T listener);",
"private void unregisterConnectivityListener() {\r\n // Unregister the ConnectivityListener\r\n unregisterReceiver(mConnectivityListener);\r\n\r\n // Set the boolean to indicate that no ConnectivityListener has been registered\r\n connectivityRegistered = false;\r\n }",
"public interface IEndpointsListener {\n void onJokeTold(String joke);\n}",
"@Override\r\n public void unregister(L listener) {\r\n synchronized (listeners) {\r\n listeners.remove(listener);\r\n weak.remove(listener);\r\n }\r\n }",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}",
"public interface Listener {\n\n public void onRecievedCustomBroadCast(String msg);\n}",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n\n }",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n }",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n }",
"public DeviceDisconnectedEvent(Device device) {\n super(device);\n }",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t}",
"Future<DeleteListenerResponse> deleteListener(\n DeleteListenerRequest request,\n AsyncHandler<DeleteListenerRequest, DeleteListenerResponse> handler);",
"public interface DiscoverPeersListener {\n\n\t/**\n\t * Called when P2P is discovered to not be enabled.\n\t */\n\tvoid onP2pNotEnabled();\n\n\t/**\n\t * Called when discoverPeers() is successful.\n\t */\n\tvoid onDiscoverPeersSuccess();\n\n\t/**\n\t * Called when discoverPeers() has failed.\n\t * @param reasonCode code for failure reason\n\t */\n\tvoid onDiscoverPeersFailure(final int reasonCode);\n}",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n \n }",
"@Override\n public void removeListener() {\n this.mListener = null;\n }",
"public void socketClosedEvent(final Exception e) {\n // if it is a non-normal closed event\n // we clear the connector object here\n // so that it actually does reconnect if the\n // remote socket dies.\n if (e != null) {\n connector = null;\n fireConnector(true);\n }\n }",
"public void onServiceDisconnected(ComponentName param1) {\n }",
"public void removeConnectionListener(ConnectionListener listener);",
"@Override\n public void onServiceDisconnected(ComponentName className) {\n Log.d(TAG, className.toString() + \" service is unbound\");\n }",
"public interface AgentShutDownListener {\n\t\t/**\n\t\t * AgentShutdown listening method.\n\t\t */\n\t\tvoid shutdownAgent();\n\t}",
"private void onPeerRemoved(Pdu pdu)\n {\n String pid = pdu.getString(\"pid\");\n for (PeerListener listener : getListeners()) {\n listener.onPeerRemoved(pid);\n }\n }",
"public void removeListener(GrillEventListener listener);"
] | [
"0.8259392",
"0.6460092",
"0.6371166",
"0.62668085",
"0.60900664",
"0.6005361",
"0.581051",
"0.5746855",
"0.5739736",
"0.57257336",
"0.5686755",
"0.56518245",
"0.56264234",
"0.56169057",
"0.5616774",
"0.5591794",
"0.5584218",
"0.5584218",
"0.55691427",
"0.5557322",
"0.5542752",
"0.5523113",
"0.55033964",
"0.54961336",
"0.5480256",
"0.54579777",
"0.53960645",
"0.5356554",
"0.5350211",
"0.5320788",
"0.5306677",
"0.5303594",
"0.5303578",
"0.52964765",
"0.52675253",
"0.5261189",
"0.5209981",
"0.5199899",
"0.51966524",
"0.51913834",
"0.51832855",
"0.51818436",
"0.51701325",
"0.5169761",
"0.5168023",
"0.51429194",
"0.5138583",
"0.51378703",
"0.5130143",
"0.5121513",
"0.51197535",
"0.5119672",
"0.5119458",
"0.51089627",
"0.51060873",
"0.5101611",
"0.5101611",
"0.5101611",
"0.50986737",
"0.50865674",
"0.5085775",
"0.50814253",
"0.5075456",
"0.50733554",
"0.5065263",
"0.5062788",
"0.50563586",
"0.505153",
"0.5046518",
"0.5046518",
"0.5045224",
"0.5045224",
"0.50404775",
"0.50385976",
"0.50350237",
"0.5028888",
"0.50249314",
"0.5024392",
"0.50238234",
"0.50237715",
"0.5021681",
"0.50149286",
"0.50149286",
"0.50115",
"0.50079614",
"0.49999517",
"0.49999517",
"0.49924186",
"0.49901542",
"0.49896002",
"0.49863032",
"0.49774358",
"0.4972324",
"0.497058",
"0.4969406",
"0.49691194",
"0.49667856",
"0.49580815",
"0.4955455",
"0.49522766"
] | 0.8109492 | 1 |
Add a listener for an 'EndpointDeregistered' event. The 'EndpointDeregistered' event indicates that this endpoint has been deregistered. The application must restart the BBM Enterprise SDK service and reauthenticate to continue. | public static synchronized void listenForAndHandleDeregistered(@NonNull final EndpointDeregisteredListener listener) {
mDeregisterMessageConsumer = new InboundMessageConsumer<EndpointDeregistered>(new EndpointDeregistered()) {
@Override
public void onInboundMessage(EndpointDeregistered inboundMessage) {
listener.onEndpointDeregistered();
}
};
BBMEnterprise.getInstance().getBbmdsProtocolConnector().addMessageConsumer(mDeregisterMessageConsumer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface EndpointDeregisteredListener {\n void onEndpointDeregistered();\n }",
"public static void deregisterCurrentEndpoint(@NonNull DeregisterFailedCallback callback) {\n // Create a cookie to track the request.\n final String requestCookie = UUID.randomUUID().toString();\n\n // Create a one time inbound message observer that will have the results.\n final InboundMessageObservable<Endpoints> endpointsObservable = new InboundMessageObservable<>(\n new Endpoints(), requestCookie, BBMEnterprise.getInstance().getBbmdsProtocolConnector());\n\n SingleshotMonitor.run(new SingleshotMonitor.RunUntilTrue() {\n @Override\n public boolean run() {\n Endpoints endpoints = endpointsObservable.get();\n if (endpoints.exists == Existence.MAYBE) {\n return false;\n }\n\n if (endpoints.result == Endpoints.Result.Failure) {\n callback.deregisterFailed();\n return true;\n }\n\n //Find the \"current\" endpoint\n for (Endpoints.RegisteredEndpoints registeredEndpoint : endpoints.registeredEndpoints) {\n if (registeredEndpoint.isCurrent) {\n //Leave the current endpoint\n BBMEnterprise.getInstance().getBbmdsProtocol().send(\n new EndpointDeregister(requestCookie, registeredEndpoint.endpointId)\n );\n\n // Create a one time inbound message observer that will have the results.\n final InboundMessageObservable<EndpointDeregisterResult> deregisterObservable = new InboundMessageObservable<>(\n new EndpointDeregisterResult(),\n null,\n BBMEnterprise.getInstance().getBbmdsProtocolConnector()\n );\n\n //Observe the deregistration result\n SingleshotMonitor.run(new SingleshotMonitor.RunUntilTrue() {\n @Override\n public boolean run() {\n EndpointDeregisterResult result = deregisterObservable.get();\n if (result.exists == Existence.MAYBE) {\n return false;\n } else {\n if (result.result == EndpointDeregisterResult.Result.Failure) {\n callback.deregisterFailed();\n }\n return true;\n }\n }\n });\n break;\n }\n }\n return true;\n }\n });\n\n // Activate the monitor and issue the protocol request to get the endpoints\n BBMEnterprise.getInstance().getBbmdsProtocol().send(new EndpointsGet(requestCookie));\n }",
"protected void onEndpointDisconnected(Endpoint endpoint) {}",
"@Override\n public void onDisconnected(String endpointId) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Disconnected \" + endpointId);\n }",
"@Override\n public void onEndpointLost(String endpointId) {\n Discoverer.this.eventListener.trigger(\n EVENT_LOG, \"Lost endpoint \" + endpointId\n );\n }",
"private void deRegister() {\n\t\ttry {\n\t\t\tOverlayNodeSendsDeregistration deregister = new OverlayNodeSendsDeregistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum, this.myAssignedID);\n\t\t\tthis.registry.getSender().sendData(deregister.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t}\n\t}",
"@Override\n public void onDetach() {\n super.onDetach();\n if (busIsRegistered) {\n BusService.getBus().unregister(this);\n busIsRegistered = false;\n }\n }",
"public void onServiceUnregistered() {\r\n \t// Update the list of sessions\r\n\t\tupdateList();\r\n }",
"protected void uninstallListeners() {\n }",
"protected void uninstallListeners() {\n }",
"public abstract void unregisterListeners();",
"public void uidDeregistered(UIDRegistrationEvent uidregistrationevent) {\n \r\n }",
"@Override\n public void onServerDisconnectedListener() {\n disconnect();\n\n if (serviceDisconnectedListener != null) {\n serviceDisconnectedListener.onServerDisconnectedListener();\n }\n }",
"protected void uninstallListeners() {\n\t}",
"@Override\n public DeregisterWirelessDeviceResult deregisterWirelessDevice(DeregisterWirelessDeviceRequest request) {\n request = beforeClientExecution(request);\n return executeDeregisterWirelessDevice(request);\n }",
"private void deregisterBroadcastReceiver(){\n activity.unregisterReceiver(hceNotificationsReceiver);\n }",
"@Request(id = 27, retryable = true, response = ResponseMessageConst.BOOLEAN)\n Object removePartitionLostListener(String name, String registrationId);",
"public void addDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.add(listener);\n\t}",
"private void onUnregistered() {\n setUnregisteringInProcess(false);\n C2DMSettings.clearC2DMRegistrationId(context);\n for (C2DMObserver observer : observers) {\n onUnregisteredSingleObserver(observer);\n }\n }",
"public void socketClosedEvent(final Exception e) {\n // if it is a non-normal closed event\n // we clear the connector object here\n // so that it actually does reconnect if the\n // remote socket dies.\n if (e != null) {\n connector = null;\n fireConnector(true);\n }\n }",
"@Override\n protected void onUnregistered() throws RemoteException {\n\n }",
"@Override\n public void unregister(Object subscriber) {\n }",
"void unregisterListeners();",
"public void onServiceDisconnected();",
"void removeOfflineEndpointsCompleted();",
"protected void onConnectionFailed(Endpoint endpoint) {}",
"@Override\n public void onEndpointDiscovered(String id, String name) {\n Log.d(TAG, \"endpoint discovered: \" + id + \" \" + name);\n }",
"public void serviceDeactivated(String serviceID) {\r\n \t\teventIDFilter.serviceDeactivated(serviceID);\r\n \t}",
"private void receiveEndpointChanged(Endpoint newValue, Endpoint oldValue)\n {\n if (newValue != null)\n {\n newValue.addPropertyChangeListener(propertyChangeListener);\n }\n else\n {\n // This is acceptable when a participant leaves.\n }\n\n if (oldValue != null)\n {\n // Not strictly necessary since we're using a\n // WeakReferencePropertyChangeListener but why not.\n oldValue.removePropertyChangeListener(propertyChangeListener);\n }\n }",
"private void unregisterListener() {\n\t\tif (!mHasStarted || mSensorManager == null) {\n\t\t\treturn;\n\t\t}\n\t\tmHasStarted = false;\n\t\tmSensorManager.unregisterListener(mAccListener);\n\t}",
"public void onDisconnected(ComponentName componentName) {\n disconnect();\n HiLog.info(LOG_LABEL, \"onDisconnected.\", new Object[0]);\n this.mRemote = null;\n processLiveCallWhenServiceDisconnected(componentName);\n Listener listener = this.mListener;\n if (listener != null) {\n listener.onDisconnected(this);\n }\n }",
"public void unregisterListener() {\n\t\tthis.listener = null;\n\t}",
"public abstract void removeServiceListener(PhiDiscoverListener listener);",
"private static void fireRemovedEvent(ProtocolDescriptor pd) {\n\t\tfor (ProtocolStoreListener l : storeListener)\n\t\t\tl.protocolRemoved(pd);\n\t}",
"public EventMapper onDeactivation(final Runnable runnable) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putRunnable(MappingEvent.deactivation, runnable);\n\t\treturn this;\n\t}",
"public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}",
"public void removeEndpoint(String endpointGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n connectionManagerClient.removeEndpoint(userId, apiManagerGUID, apiManagerName, endpointGUID);\n }",
"void deregisterResponseAcceptor(final int messageID)\n {\n connectionReader.deregisterResponseAcceptor(messageID);\n }",
"public void deregister(SvcInfo svcInfo);",
"@Override\n public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeDeleteEndpoint(request);\n }",
"public void deactivate() throws JBIException {\n count--;\n if(count != 0)\n return;\n _ode.getContext().deactivateEndpoint(_internal);\n __log.debug(\"Dectivated endpoint \" + _endpoint);\n }",
"public final void onDeregistration()\n {\n onObjectDeregistration();\n this.container = null;\n }",
"private void unregisterConnectivityListener() {\r\n // Unregister the ConnectivityListener\r\n unregisterReceiver(mConnectivityListener);\r\n\r\n // Set the boolean to indicate that no ConnectivityListener has been registered\r\n connectivityRegistered = false;\r\n }",
"public static void unregisterListener(String uri){\n synchronized (listeners){\n listeners.remove(uri);\n }\n }",
"private void unregisterListener() {\n mSensorManager.unregisterListener(this);\n }",
"@Override\n public void onServiceDisconnected(ComponentName name)\n {\n mEngagementService = null;\n\n /*\n * Simulate disconnected intent targeting the current package name since the engagement\n * process has been killed.\n */\n Intent disconnectedIntent = new Intent(\n \"com.microsoft.azure.engagement.intent.action.DISCONNECTED\");\n disconnectedIntent.setPackage(mContext.getPackageName());\n mContext.sendBroadcast(disconnectedIntent);\n\n /* Mark we are auto re-binding to it */\n mBindingService = true;\n }",
"public void unregisterListeners(){\n listeners.clear();\n }",
"public static void deregisterEventListener(String event, Consumer<Object> listener)\n {\n List<Consumer<Object>> listeners = EVENTS_TO_LISTENERS.get(event);\n\n if (listeners != null)\n {\n listeners.remove(listener);\n }\n }",
"public void onDeactivation() { }",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"protected void registerListener() {\r\n\t\t// do nothing\r\n\t}",
"@Override\n\tpublic void unregistListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.unregister(listener);\n\t}",
"protected void onServiceDisconnectedExtended(ComponentName className) {\n mAllowedToBind = false;\n\n }",
"@Override\n protected void onUnregister() {\n Core.unregister(this);\n }",
"public void onServiceDisconnected(ComponentName arg0) {\n\t\t\tmServiceBind = false;\n\t\t}",
"public void removeEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().remove(endpoint);\r\n }",
"default void createEndpoint(\n com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateEndpointMethod(), responseObserver);\n }",
"@SuppressWarnings(\"unused\")\n @Deactivate\n private void deactivate() {\n\n this.bundleContext.removeServiceListener(this);\n\n final ServiceReference[] serviceReferences;\n synchronized (this.proxies) {\n serviceReferences = this.proxies.keySet().toArray(\n new ServiceReference[this.proxies.size()]);\n }\n\n for (ServiceReference serviceReference : serviceReferences) {\n unregister(serviceReference);\n }\n\n this.bundleContext = null;\n }",
"public void unregisterListener() {\n mPhone.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);\n /* SPRD: Bug 697839 add For VOLTE and VoWiFi icon. @{ */\n try {\n if (mIsImsListenerRegistered) {\n mIsImsListenerRegistered = false;\n if (mIImsServiceEx != null) {\n mIImsServiceEx.unregisterforImsRegisterStateChanged(mImsUtListenerExBinder);\n }\n }\n /* SPRD: modify for bug723743 @{ */\n if (mIsImsReceiverRegistered) {\n mContext.unregisterReceiver(mImsIntentReceiver);\n mIsImsReceiverRegistered = false;\n }\n if (mIsModemReciverRegistered) {\n mContext.unregisterReceiver(mModemStateChangeReciver);\n mIsModemReciverRegistered = false;\n }\n /* @} */\n } catch (RemoteException e) {\n Log.e(mTag, \"RemoteException: \" + e);\n }\n /* @} */\n mContext.getContentResolver().unregisterContentObserver(mObserver);\n /* SPRD: Dual volte signalStrength display for bug 666045. @{ */\n if (mDualVoLTEListener != null) {\n mPhone.listen(mDualVoLTEListener, PhoneStateListener.LISTEN_NONE);\n }\n mContext.unregisterReceiver(mReceiver);\n /* @} */\n }",
"void removeEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String endpointGUID,\n String endpointExternalIdentifier,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"public DeviceDisconnectedEvent(Device device) {\n super(device);\n }",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n if (service != null)\n service.setListener(null);\n service = null;\n }",
"@Override\n public void onStop() {\n super.onStop();\n //this unregister this fragment to stop any EventBus messages\n EventBus.getDefault().unregister(this);\n }",
"@Override\n protected void onDestroy() {\n EventBus.getDefault().unregister(this);\n\n super.onDestroy();\n }",
"@Override\r\n public void onServiceDisconnected(ComponentName className) {\r\n isObdServiceBound = false;\r\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n EventBus.getDefault().unregister(this);\n }",
"@Override\n protected void onUnregistered(Context context, String registrationId) {\n Log.i(TAG, \"Device unregistered\");\n UnityPlayer.UnitySendMessage(\"ECPNManager\",\"UnregisterDevice\",registrationId);\n }",
"public void deregisterConnection(String ID);",
"public abstract void unregister();",
"public interface IFailureDetectionEventListener {\r\n\t/**\r\n\t * Convict the specified endpoint.\r\n\t * \r\n\t * @param ep\r\n\t * endpoint to be convicted\r\n\t */\r\n\tpublic void convict(InetAddress ep);\r\n\r\n}",
"@Override\n public void removeNotify()\n {\n unregisterListeners();\n super.removeNotify();\n }",
"void removeListener( ConfigurationListener listener );",
"@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }",
"protected void onEndpointConnected(Endpoint endpoint) {}",
"public ConnectionListener remove(String listenerID);",
"public void unregister() {\n unregistered = true;\n }",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n }",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n }",
"public void onDetach()\n\t{\n\t\ttry\n\t\t{\n\t\t\tonEndRequest();\n\t\t\tlisteners.onEndRequest(this);\n\t\t}\n\t\tcatch (RuntimeException e)\n\t\t{\n\t\t\tlog.error(\"Exception occurred during onEndRequest\", e);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\trequestHandlerExecutor.detach();\n\t\t}\n\t\tcatch (RuntimeException exception)\n\t\t{\n\t\t\thandleDetachException(exception);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tlisteners.onDetach(this);\n\t\t}\n\n\t\tif (Session.exists())\n\t\t{\n\t\t\tSession.get().detach();\n\t\t}\n\n\t}",
"@Override\n\tpublic void onDestroy() {\n\t\tthis.unregisterReceiver(notifyServiceReceiver);\n\t\tsuper.onDestroy();\n\t}",
"void unregister(String uuid);",
"@Override\n\tpublic void unregisterDataRequest() {\n\t\tLog.i(TAG, \"Unregistering data requests.\");\n\t\tmBoundFunfManager.unrequestAllData2(listener);\n\n\t\tLog.i(TAG, \"After Unregistering data requests.\");\n\t\t\n\t}",
"public void unregisterAnimalAddedListener(AnimalAddedListenerReceipt receipt) {\n this.listeners.remove(receipt.getListener());\n }",
"public synchronized void postDeregister() {\n if (timer != null) {\n try {\n timer.cancel();\n } catch (Exception x) {\n if (LOG.isLoggable(Level.FINEST))\n LOG.log(Level.FINEST,\"Failed to cancel timer\",x);\n else if (LOG.isLoggable(Level.FINE))\n LOG.fine(\"Failed to cancel timer: \"+x);\n } finally {\n timer = null;\n }\n }\n }",
"private void onPeerRemoved(Pdu pdu)\n {\n String pid = pdu.getString(\"pid\");\n for (PeerListener listener : getListeners()) {\n listener.onPeerRemoved(pid);\n }\n }",
"@Override\n public void onDestroy() {\n EventBusWraper.getInstance().unregister(mContext);\n super.onDestroy();\n // unRegister();\n }",
"void deregister() {\n Thread patientLoaderThread = new Thread(new RegistrationRunnable(false));\n patientLoaderThread.start();\n }",
"private void notifyOnDisconnected(@Nullable Exception error) {\n\n\t\tif (notificationListeners != null) {\n\t\t\tfor (NotificationListener listener : notificationListeners) {\n\t\t\t\tlistener.onDisconnectedFromSyncServer(error);\n\t\t\t}\n\t\t}\n\n\t\tBusProvider.postOnMainThread(new SyncServerConnectionStatusEvent(SyncServerConnectionStatusEvent.Status.DISCONNECTED, error));\n\t}",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}",
"@Override\n public void onServiceDisconnected(ComponentName name) {\n\n }",
"@Override\n\tpublic void serviceRemoved(ServiceEvent arg0) {\n\n\t}",
"@Override\n\tpublic void onServiceDisconnected(int profile) {\n\t\t\n\t}",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}",
"@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t}",
"private void unregisterAfterCallBroadcastReceiver(){\n if (mADialogBroadcastIsRegistered){\n try {\n this.unregisterReceiver(afterCallBroadcastReceiver);\n mADialogBroadcastIsRegistered=false;\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n Log.d(TAG, \"onDetach: \");\n mListener = null;\n }"
] | [
"0.81303525",
"0.7123858",
"0.6551837",
"0.6460086",
"0.6288482",
"0.574358",
"0.5200732",
"0.5187874",
"0.5164071",
"0.5164071",
"0.51396734",
"0.5134642",
"0.51269454",
"0.51195353",
"0.50797963",
"0.5069311",
"0.50615245",
"0.50506836",
"0.504157",
"0.5022928",
"0.49531895",
"0.49459442",
"0.4944193",
"0.49434832",
"0.49381608",
"0.4934726",
"0.49304613",
"0.48933205",
"0.48853087",
"0.48828453",
"0.48739415",
"0.4870786",
"0.48676324",
"0.48589188",
"0.48551747",
"0.48544464",
"0.485131",
"0.4834259",
"0.48237535",
"0.4820552",
"0.4818707",
"0.4811255",
"0.4799476",
"0.47929922",
"0.4784329",
"0.47669205",
"0.47442544",
"0.4739474",
"0.4726139",
"0.47183648",
"0.47183648",
"0.47183648",
"0.46984544",
"0.46924508",
"0.4683557",
"0.46685132",
"0.46674946",
"0.46640453",
"0.4653693",
"0.46381652",
"0.4629753",
"0.46275333",
"0.46241182",
"0.46219003",
"0.4616389",
"0.46158746",
"0.46152684",
"0.46150994",
"0.46111298",
"0.46003902",
"0.4592902",
"0.45921448",
"0.4581724",
"0.4562532",
"0.4561235",
"0.45538935",
"0.45512417",
"0.45509058",
"0.4548081",
"0.4548081",
"0.4547534",
"0.45391876",
"0.4535097",
"0.45303842",
"0.4528362",
"0.45279682",
"0.45237306",
"0.45215634",
"0.45193443",
"0.45152515",
"0.45151967",
"0.45151967",
"0.45122236",
"0.45052755",
"0.45046046",
"0.45031425",
"0.45031425",
"0.45005763",
"0.44880122",
"0.44839057"
] | 0.81917953 | 0 |
Deregister the users active endpoint. This will cause the | public static void deregisterCurrentEndpoint(@NonNull DeregisterFailedCallback callback) {
// Create a cookie to track the request.
final String requestCookie = UUID.randomUUID().toString();
// Create a one time inbound message observer that will have the results.
final InboundMessageObservable<Endpoints> endpointsObservable = new InboundMessageObservable<>(
new Endpoints(), requestCookie, BBMEnterprise.getInstance().getBbmdsProtocolConnector());
SingleshotMonitor.run(new SingleshotMonitor.RunUntilTrue() {
@Override
public boolean run() {
Endpoints endpoints = endpointsObservable.get();
if (endpoints.exists == Existence.MAYBE) {
return false;
}
if (endpoints.result == Endpoints.Result.Failure) {
callback.deregisterFailed();
return true;
}
//Find the "current" endpoint
for (Endpoints.RegisteredEndpoints registeredEndpoint : endpoints.registeredEndpoints) {
if (registeredEndpoint.isCurrent) {
//Leave the current endpoint
BBMEnterprise.getInstance().getBbmdsProtocol().send(
new EndpointDeregister(requestCookie, registeredEndpoint.endpointId)
);
// Create a one time inbound message observer that will have the results.
final InboundMessageObservable<EndpointDeregisterResult> deregisterObservable = new InboundMessageObservable<>(
new EndpointDeregisterResult(),
null,
BBMEnterprise.getInstance().getBbmdsProtocolConnector()
);
//Observe the deregistration result
SingleshotMonitor.run(new SingleshotMonitor.RunUntilTrue() {
@Override
public boolean run() {
EndpointDeregisterResult result = deregisterObservable.get();
if (result.exists == Existence.MAYBE) {
return false;
} else {
if (result.result == EndpointDeregisterResult.Result.Failure) {
callback.deregisterFailed();
}
return true;
}
}
});
break;
}
}
return true;
}
});
// Activate the monitor and issue the protocol request to get the endpoints
BBMEnterprise.getInstance().getBbmdsProtocol().send(new EndpointsGet(requestCookie));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deactivate() throws JBIException {\n count--;\n if(count != 0)\n return;\n _ode.getContext().deactivateEndpoint(_internal);\n __log.debug(\"Dectivated endpoint \" + _endpoint);\n }",
"public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }",
"public synchronized void deRegister()\n {\n // stop the thread running...\n logger.debug(\"deregister called - invalidating session\");\n\n // remove from registered listeners and then invalidate the ScriptSession\n clients.remove(wctx.getScriptSession().getId());\n wctx.getScriptSession().invalidate();\n\n if (clients.size() == 0)\n {\n // might as well stop thread since we have no registered listeners\n this.active = false;\n }\n\n }",
"private void deRegister() {\n\t\ttry {\n\t\t\tOverlayNodeSendsDeregistration deregister = new OverlayNodeSendsDeregistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum, this.myAssignedID);\n\t\t\tthis.registry.getSender().sendData(deregister.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t}\n\t}",
"public void unregister()\n\t{\n\t\tcancelPrevRegisterTask();\n\n\t\tpushRegistrar.unregisterPW(mContext);\n\t}",
"public void onServiceUnregistered() {\r\n \t// Update the list of sessions\r\n\t\tupdateList();\r\n }",
"public void unregister() {\n unregistered = true;\n }",
"@Deactivate\n protected void deactivate(ComponentContext context) {\n httpService.unregister(\"/s-ramp\");\n log.debug(\"******* Governance S-Ramp bundle is deactivated ******* \");\n }",
"public void onDeactivation() { }",
"@Override\n\tpublic void DeActiveAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"N\");\n\t\tsaveDtls(userModel);\n\n\t}",
"public void unsetEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ENDPOINTS$0, 0);\r\n }\r\n }",
"public void deactivate() {\n\t\tlog.info(\"Deactivating simple JNDI environment\");\n\t\tactivated = null;\n\t}",
"void unregister(String uuid);",
"public void deactivate() {\n this.active = false;\n }",
"@SuppressWarnings(\"unused\")\n @Deactivate\n private void deactivate() {\n\n this.bundleContext.removeServiceListener(this);\n\n final ServiceReference[] serviceReferences;\n synchronized (this.proxies) {\n serviceReferences = this.proxies.keySet().toArray(\n new ServiceReference[this.proxies.size()]);\n }\n\n for (ServiceReference serviceReference : serviceReferences) {\n unregister(serviceReference);\n }\n\n this.bundleContext = null;\n }",
"@Override\n public void deactivate() {\n \n }",
"public void deactivate() {\n log.info(\"Stopped\");\n }",
"public void deactivate() {\n\t\tactive_status = false;\n\t}",
"void deactivate(URI uri) throws WebApplicationActivationException;",
"protected void disconnectFromAllEndpoints() {\n for (Endpoint endpoint : mEstablishedConnections.values()) {\n mConnectionsClient.disconnectFromEndpoint(endpoint.getId());\n }\n mEstablishedConnections.clear();\n }",
"@Override\n protected void onUnregister() {\n Core.unregister(this);\n }",
"@Deactivate\n protected void deactivate() {\n activated = false;\n logger.info(\"deactivate: deactivated slingId: {}, this: {}\", slingId, this);\n if (periodicPingJob != null) {\n periodicPingJob.stop();\n periodicPingJob = null;\n }\n }",
"public void deactivate();",
"public abstract void unregister();",
"public void deregister(SvcInfo svcInfo);",
"@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}",
"private void deactivateRunningServiceInstances(String userId,\n String serverName,\n String methodName,\n UIOperationalServicesInstance instance,\n boolean permanentDeactivation) throws InvalidParameterException,\n PropertyServerException\n {\n\n //TODO terminal user store and views?\n instanceHandler.removeServerServiceInstance(serverName);\n\n platformInstanceMap.shutdownServerInstance(userId, serverName, methodName);\n }",
"public void unregister(boolean userRequest)\n throws OperationFailedException\n {\n this.unregister();\n }",
"public void removeAllEndpoints() {\r\n for(int i = 0; i < getEndpoints().size(); i++)\r\n {\r\n removeEndpoint(getEndpoints().get(i));\r\n }\r\n }",
"public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n if (busIsRegistered) {\n BusService.getBus().unregister(this);\n busIsRegistered = false;\n }\n }",
"@Override\n\tpublic void deactivate() {\n\t}",
"public void DFRemoveAllMyServices() {\n try {\n DFService.deregister(this);\n } catch (FIPAException ex) {\n\n }\n }",
"@Override\n\tpublic void deactivate() {\n\t\t\n\t}",
"protected void onEndpointDisconnected(Endpoint endpoint) {}",
"private void unregister() {\n Intent regIntent = new Intent(REQUEST_UNREGISTRATION_INTENT);\n regIntent.setPackage(GSF_PACKAGE);\n regIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n setUnregisteringInProcess(true);\n context.startService(regIntent);\n }",
"public void stop() {\n executor.shutdownNow();\n\n Collection<NodeRegistrationContext> allRegistrations = nodeRegistrations.values();\n for (NodeRegistrationContext registration : allRegistrations) {\n sendUnregistrationEvent(registration.resolvedDeployment);\n }\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n\n unbindService(conn);\n unregisterReceiver(mbtBroadcastReceiver);\n }",
"@Override\n protected void onStop() {\n super.onStop();\n Log.d(TAG, \"onStop\");\n// Auth.signOut();\n mNest.removeAllListeners();\n Auth.removeAuthListener();\n }",
"public void disable()\n {\n openGate = null;\n }",
"@Override\n\tpublic void onTenantDeactivation(int tenantId) throws StratosException {\n\t}",
"public void deactivate() {\n\t\t// TODO Auto-generated method stub\n\t}",
"public void DeActivate() {\n\t\t\n\t}",
"public void removeEndpoint(String endpoint) {\n\t\tsessionMap.remove(endpoint);\n\t\tLOG.info(\"Removed endpoint {} with all its sessions\", endpoint);\n\t}",
"boolean unregister(String identity);",
"public interface EndpointDeregisteredListener {\n void onEndpointDeregistered();\n }",
"@Override\r\n public void deactivate() {\n locationManager.removeUpdates(this);\r\n mContext = null;\r\n locationManager = null;\r\n locationRequest = null;\r\n mChangedListener = null;\r\n }",
"void clearEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectionGUID,\n String endpointGUID,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"protected void stopAllEndpoints() {\n mConnectionsClient.stopAllEndpoints();\n mIsAdvertising = false;\n mIsDiscovering = false;\n mIsConnecting = false;\n mDiscoveredEndpoints.clear();\n mPendingConnections.clear();\n mEstablishedConnections.clear();\n }",
"public void unregisterApplication(String internalAppId){\n\t\tString webServiceUrl = serviceProfile.getServiceApiUrl()+\"/\"+internalAppId;\n\t\tlogger.info(\"unregistering application \"+ webServiceUrl);\n\t\t\n\t\tResponseEntity<Void> response = restTemplate.exchange(webServiceUrl, HttpMethod.DELETE,\n null, Void.class);\n\t\tVoid body = response.getBody();\n\t}",
"@Override\n\t@Deactivate\n\tprotected void deactivate(final ComponentContext context) {\n\t\tLOGGER.debug(\"Deactivating MongoDB Component...\");\n\t\tLOGGER.info(\"Releasing CloudApplicationClient for {}...\", APP_ID);\n\n\t\tsuper.deactivate(context);\n\n\t\tLOGGER.debug(\"Deactivating MongoDB Component... Done.\");\n\t}",
"@Override\n public void onDestroy() {\n LocalBroadcastManager.getInstance(getContext()).unregisterReceiver(us);\n LocalBroadcastManager.getInstance(getContext()).unregisterReceiver(ud);\n super.onDestroy();\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n unbindService(connection);\n }",
"public void stopAutomaticRefresh() {\n try {\n dnsService.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void deactivate() {\n mListener = null;\n if (mLocationClient != null) {\n mLocationClient.stopLocation();\n mLocationClient.onDestroy();\n }\n mLocationClient = null;\n mLocationOption = null;\n }",
"public void deregisterConnection(String ID);",
"@Override\n protected void onUnregistered() throws RemoteException {\n\n }",
"@Override\n\tpublic int unregisterVisitorForEventDAO(EventSignUp e) {\n\t\treturn 0;\n\t}",
"public void deactivateAllActiveSubscriptions() throws AndesException {\n\n Map<String, String> subscriptions = andesContextStore.getAllDurableSubscriptionsByID();\n Map<String, String> modifiedSubscriptions = new HashMap<>();\n for (Map.Entry<String, String> entry : subscriptions.entrySet()) {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Deactivating subscription with id: \" + entry.getKey());\n }\n BasicSubscription subscription = new BasicSubscription(entry.getValue());\n\n //The HasExternalSubscriptions attribute of a subscription indicates whether the the subscription is active\n //Therefore, setting it to false makes the subscriptions inactive\n subscription.setHasExternalSubscriptions(false);\n\n modifiedSubscriptions.put(entry.getKey(), subscription.encodeAsStr());\n\n }\n\n //update all the stored durable subscriptions to be inactive\n andesContextStore.updateDurableSubscriptions(modifiedSubscriptions);\n }",
"Endpoint<R> tryInvalidateOneIdleEndpoint(String ipAddress);",
"public synchronized void decreaseUsersConn() {\r\n\t\tusersConn--;\r\n\t}",
"private void onUnregistered() {\n setUnregisteringInProcess(false);\n C2DMSettings.clearC2DMRegistrationId(context);\n for (C2DMObserver observer : observers) {\n onUnregisteredSingleObserver(observer);\n }\n }",
"@Override\n\tpublic void deactivate() {\n\t\tlocationManager.removeUpdates(this);\n\t\tmContext = null;\n\t\tlocationManager = null;\n\t\tlocationRequest = null;\n\t\tmChangedListener = null;\n\t}",
"public void deactivateUser(User user) {\n activeUsers.remove(user.getUsername());\n }",
"@Override\r\n protected void onDestroy() {\r\n GlobalBus.getBus().unregister(this);\r\n super.onDestroy();\r\n }",
"@Override\n public void onUnregistered(Context context) {\n SharedPreferences prefs = Util.getSharedPreferences(context);\n String deviceRegistrationID = prefs.getString(Util.DEVICE_REGISTRATION_ID, null);\n DeviceRegistrar.registerOrUnregister(context, deviceRegistrationID, false);\n }",
"@Override\n protected void onUnregistered(Context context, String registrationId) {\n Log.i(TAG, \"Device unregistered\");\n UnityPlayer.UnitySendMessage(\"ECPNManager\",\"UnregisterDevice\",registrationId);\n }",
"public void deActivated() \r\n\t{\r\n\t\t\r\n\t}",
"private void unregister()\n {\n\tLog.d(Globals.TAG, \"UNREGISTER USERID: \" + regid);\n\tnew AsyncTask<Void, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(Void... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.UNREGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent unregistration\";\n\t\t gcm.unregister();\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tremoveRegistrationId(getApplicationContext());\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t\t((TextView)findViewById(R.id.gcm_userid_textview)).setText(regid);\n\t }\n\t}.execute();\n }",
"void deactivate() {\n\t\tanimalTemplate = null;\n\t\tscope=null;\n\t\ttriggerOnID=false;\n\t\tstate = null;\n\t\tlog.debug(bundleMarker, \"deactivating...\");\n\t}",
"@GuardedBy(\"mLock\")\n @VisibleForTesting\n protected void freeIfInactiveLocked() {\n mAttentionHandler.removeMessages(AttentionHandler.CHECK_CONNECTION_EXPIRATION);\n\n // Schedule resources cleanup if no one calls the API again.\n mAttentionHandler.sendEmptyMessageDelayed(AttentionHandler.CHECK_CONNECTION_EXPIRATION,\n CONNECTION_TTL_MILLIS);\n }",
"public void deactivate()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t}",
"@ZAttr(id=611)\n public void unsetFreebusyExchangeAuthScheme() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraFreebusyExchangeAuthScheme, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public synchronized void unbindService(BehaviourInferenceAlgorithmRegistry registry) {\n \tregistry = null;\n logger.info(\"BehaviourInferenceAlgorithmRegistry service disconnected.\");\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunbindService(connection);\n\t}",
"@Deactivate\n public void deactivate() {\n loggerThread.interrupt();\n }",
"void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;",
"void stopAuthentication() {\n stop(false);\n }",
"public void deregisterIPAddress(Inet4Address address) {\n\t\tusedAddresses.remove(address);\n\t}",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\ttry {\r\n\t\t\tunregisterReceiver(newReceiver);\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tunregisterReceiver(userReceiver);\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\tBmobChat.getInstance(this).stopPollService();\r\n\t}",
"public void disableHighAvailability() {\n enableHa = false;\n listMembersService.shutdown();\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n active = false;\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n active = false;\n }",
"void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}",
"@Override\n public void onDestroy() {\n EventBusWraper.getInstance().unregister(mContext);\n super.onDestroy();\n // unRegister();\n }",
"@Override\n\tprotected void takeDown() {\n\t\ttry{\n\t\t\tDFService.deregister(this);\n\t\t}\n\t\tcatch(FIPAException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void turnOff() throws ActorServiceCallException;",
"public void onStop() {\n connectivityMonitor.unregister();\n requestTracker.pauseRequests();\n }",
"@Override\n public void onDestroy() {\n BusProvider.getInstance().unregister(this);\n super.onDestroy();\n }",
"public void Logout(){\n preferences.edit().remove(userRef).apply();\n }",
"private void handleSensorDeactivated() {\n if (securityRepository.getAlarmStatus() == AlarmStatus.PENDING_ALARM) {\n setAlarmStatus(AlarmStatus.NO_ALARM);\n }\n// switch (securityRepository.getAlarmStatus()) {\n// case PENDING_ALARM -> setAlarmStatus(AlarmStatus.NO_ALARM);\n// case ALARM -> setAlarmStatus(AlarmStatus.PENDING_ALARM);\n// }\n }",
"void removeOfflineEndpointsCompleted();",
"@Override\n public void onDeactivate() {\n }",
"public void removeCurrentUser() {\n currentUser.logout();\n currentUser = null;\n indicateUserLoginStatusChanged();\n }",
"public void logoutInactiveWorkers(){\n\t\tfor ( String workerId : loggedInWorkers){\n\t\t\tif( ! FirebaseService.isWorkerLoggedIn( workerId, this.getID()) ){\n\t\t\t\tthis.logoutWorker( workerId );\n\t\t\t}\n\t\t}\n\t}",
"void deactivate();",
"void removeEndpoint(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String endpointGUID,\n String endpointExternalIdentifier,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunbindService(mServiceConn);\n\t}",
"public abstract void deactivate();"
] | [
"0.68629545",
"0.64333874",
"0.6184622",
"0.6161602",
"0.6136904",
"0.61059856",
"0.6090793",
"0.6061684",
"0.6053272",
"0.6047483",
"0.60132843",
"0.60065085",
"0.5998236",
"0.5984972",
"0.5975648",
"0.5958304",
"0.59249926",
"0.5922024",
"0.5905859",
"0.5903525",
"0.5865156",
"0.5854674",
"0.58521",
"0.5851592",
"0.58082247",
"0.577871",
"0.5762223",
"0.5761734",
"0.5758438",
"0.5735271",
"0.572883",
"0.5721887",
"0.5721797",
"0.57057256",
"0.5686375",
"0.56704515",
"0.5666739",
"0.5664862",
"0.5624036",
"0.5622729",
"0.5621434",
"0.56003624",
"0.5598018",
"0.5589054",
"0.55791044",
"0.5578846",
"0.5565861",
"0.5559268",
"0.5557852",
"0.55563",
"0.5551131",
"0.554335",
"0.5530136",
"0.55225027",
"0.55201364",
"0.55179435",
"0.55168104",
"0.55019635",
"0.5488686",
"0.5483904",
"0.5481348",
"0.5480098",
"0.54768634",
"0.54741144",
"0.54709166",
"0.5468678",
"0.5465809",
"0.54583883",
"0.54580903",
"0.54556036",
"0.5448491",
"0.54483414",
"0.54307646",
"0.542976",
"0.5422601",
"0.5422551",
"0.5419803",
"0.5409849",
"0.54095846",
"0.53926015",
"0.5392132",
"0.5384655",
"0.53771853",
"0.53771853",
"0.53766364",
"0.53729296",
"0.5372701",
"0.53689086",
"0.53670293",
"0.535456",
"0.5346271",
"0.5343748",
"0.53277737",
"0.532635",
"0.53224695",
"0.5320275",
"0.53199756",
"0.53090215",
"0.5300716",
"0.5292533"
] | 0.6196552 | 2 |
First checks if the property is cached and returns it if it is, if not it loads the propperty from the config file. | public static String get(String key) {
return properties.getProperty(key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String fetchProperty(String property)\n\t{\n\t\tif(configProp==null)\n\t\t\tloadPropertiesFile();\n\t\t\n\t\treturn(configProp.getProperty(property));\n\t}",
"Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }",
"@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}",
"Object getProperty(String name);",
"private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }",
"Object getProperty(String key);",
"public String get(String key) {\n return cache.containsKey(key) ? cache.get(key) : customConfig.getString(key);\n }",
"String getProperty(String property);",
"private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}",
"String getProperty(String name);",
"public static synchronized String getPropValue(String key, String path)\r\n/* */ {\r\n/* 21 */ if (p == null) {\r\n/* 22 */ String npath = path + \"WEB-INF/classes/config.properties\";\r\n/* 23 */ InputStream is = null;\r\n/* */ try {\r\n/* 25 */ is = new FileInputStream(npath);\r\n/* */ } catch (FileNotFoundException e1) {\r\n/* 27 */ e1.printStackTrace();\r\n/* */ }\r\n/* 29 */ p = new Properties();\r\n/* */ try {\r\n/* 31 */ p.load(is);\r\n/* */ } catch (IOException e) {\r\n/* 33 */ e.printStackTrace();\r\n/* */ }\r\n/* */ }\r\n/* 36 */ return p.getProperty(JobStandConfs.work_base_dir);\r\n/* */ }",
"@Override\n public String getProperty(String key) {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n if (this.ignoreCase) {\n key = this.keyMap.getProperty(key.toLowerCase());\n if (key == null)\n return null;\n }\n return super.getProperty(key);\n }",
"public void load() {\n Boolean value = permanentStore.getBoolean(key);\n if (value != null) {\n set(value.booleanValue());\n log.info(\"Property \" + key + \" has the non-default value \" + value.booleanValue());\n } else {\n set(defaultValue);\n }\n }",
"public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}",
"public String getProperty(String name);",
"private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }",
"public abstract boolean getProperty(String propertyName);",
"public boolean isLoadCache() {\n return mLoadCache;\n }",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String name, String defaultValue);",
"public Object get(String path) {\n if (configuration.contains(path))\n return configuration.get(path);\n else return defaultConfig.get(path);\n }",
"private static String getJcoProperties(String name) {\n\t\tif (sapConfigProperties == null) {\n\t\t\tsapConfigProperties = new Properties();\n\t\t\ttry {\n\t\t\t\tsapConfigProperties.load(PorpertiesFile.class.getClassLoader()\t.getResourceAsStream(JCO_SAP_CONFIG));\n\t\t\t\t//return sapConfigProperties;\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tif (sapConfigProperties == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn sapConfigProperties.getProperty(name);\n\n\t}",
"public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Cacheable(CacheConfig.CACHE_TWO)\n public File getFile() {\n ClassLoader classLoader = Utility.class.getClassLoader();\n File file = new File(classLoader.getResource(path1).getFile());\n logger.info(\"Cache is not used .... \");\n return file;\n }",
"static Properties getConfig()\n {\n return(config);\n }",
"String getProperty();",
"String getProperty();",
"String getProperty();",
"Property getProperty();",
"Property getProperty();",
"public <T> T getProperty(String name) {\n return properties.get(name);\n }",
"private static Object prop(Map<String, ?> config, BundleContext bundleContext, String name) {\n Object value = bundleContext.getProperty(name);\n if (value != null) {\n return value;\n }\n\n //Fallback to one from config\n return config.get(name);\n }",
"boolean isCachingEnabled();",
"protected abstract void loadProperty(String key, String value);",
"@Override\n public String getProperty(String key, String defaultValue) {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n if (this.ignoreCase) {\n key = this.keyMap.getProperty(key.toLowerCase());\n if (key == null)\n return defaultValue;\n }\n return super.getProperty(key, defaultValue);\n }",
"public String getProperty(String propertyName){\n if(templateConfigService==null){\n templateConfigService = getOsgiHelper().getOsgiServiceBySite(TemplateConfigService.class.getName(),\"food\");\n }\n String out = callAccessorOnConfigService(propertyName,templateConfigService);\n if(out !=null){\n return out;\n }\n //lazy load config service\n if(siteConfigService==null){\n siteConfigService = getOsgiHelper().getOsgiServiceBySite(SiteConfigService.class.getName(),\"food\");\n }\n return callAccessorOnConfigService(propertyName,siteConfigService);\n }",
"public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }",
"public Property getProperty() {\n\treturn commonproperty;\r\n}",
"public String getProperty();",
"protected NamedThing getLocalProperty(String name) {\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (name.equals(prop.getName())) {\n return prop;\n }\n }\n return null;\n }",
"public static ConfigFileProperties getInstance() {\n return ConfigFilePropertiesHolder.INSTANCE;\n }",
"public String getProperty(String sPropertyName) throws Exception {\n\t\tString sPropertyValue = null;\n\t\tsPropertyValue = (String) cache.get(sPropertyName);\n\t\tif (sPropertyValue == null){\n\t\t\tthrow new Exception(\"Propriedade \" + sPropertyName + \" n\\343o especificada\");\n\t\t}else{\n\t\t\treturn sPropertyValue;\n\t\t}\n\t}",
"public Optional<Object> getProperty(String name) {\n return Optional.ofNullable(properties.get(name));\n }",
"public CachedConfig get(String path) {\n return confs.get(path);\n }",
"@Override\n public Object getProperty(String property) {\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n Object prop = requiredBehaviorEntry.getValue().getProperty(property);\n if (prop != null) {\n return prop;\n }\n }\n return null;\n }",
"java.lang.String getProperty();",
"private ProviderLoader loadFileProvider(final cacheItem cached) {\n final File file = cached.getFirst();\n final PluginScanner second = cached.getSecond();\n return filecache.get(file, second);\n }",
"private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}",
"public String getSystemOrPropertyString(final String key, final String defaultValue, final boolean useCache)\n {\n // if they want to use the cache, and the cache contains this key, return the value\n if(useCache && this.cache.containsKey(key))\n {\n return this.cache.get(key);\n }\n \n // Try to get the property from the system configuration, for example, from, 'java\n // -Dkey=value'\n String result = System.getProperty(key);\n \n if(result == null)\n {\n // If we were unsuccessful in the cache and the system properties, try to fetch from\n // properties file on the class path\n final ResourceBundle nextBundle = this.getBundle();\n if(nextBundle != null)\n {\n try\n {\n result = nextBundle.getString(key);\n }\n catch(MissingResourceException e)\n {\n // Do nothing, will use default\n ;\n }\n }\n }\n \n // if the property didn't exist, replace it with the default value\n if(result == null)\n {\n result = defaultValue;\n }\n \n // Do not create anything in the cache if they show an intention not to use the cache\n if(useCache && result != null)\n {\n final String putIfAbsent = this.cache.putIfAbsent(key, result);\n \n // Last call wins\n if(putIfAbsent != null && !putIfAbsent.equals(result))\n {\n this.cache.put(key, result);\n }\n }\n \n return result;\n }",
"public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}",
"private static void loadValueAtFirstUsage(String configProperty) {\n\t\tconfig = getConfig();\n\n\t\t/*\n\t\t * Error Checking\n\t\t */\n\n\t\t// HOSTNAME\n\t\tif (configProperty.equals(CatPawConfigProperty.HOSTNAME.getName())) {\n\t\t\t// At this point, we MUST have a hostname defined\n\t\t\tif (config.getProperty(CatPawConfigProperty.HOSTNAME.getName()).equals(\"\")) {\n\t\t\t\tthrow new RuntimeException(\"You must configure a \" + CatPawConfigProperty.HOSTNAME.toString()\n\t\t\t\t\t\t+ \" before interacting with a environment.\"\n\t\t\t\t\t\t+ \" Typically, this is done by specifying CLAWS_\"\n\t\t\t\t\t\t+ CatPawConfigProperty.HOSTNAME.toString().toUpperCase() + \"=<stagename> at runtime.\");\n\t\t\t}\n\t\t}\n\n\t\t// STAGE_NAME\n\t\tif ((configProperty.equals(CatPawConfigProperty.STAGE_NAME.getName())) &&\n\t\t\t(config.getProperty(CatPawConfigProperty.STAGE_NAME.getName()) == null)) {\n\t\t\tif (config.getProperty(CatPawConfigProperty.HOSTNAME.getName()).equals(\"\")) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\n\t}",
"protected <T> Property getProperty(String key, T defaultVal) {\r\n return getProperty(key, defaultVal, RestartReqs.NONE);\r\n }",
"public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}",
"public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}",
"@Override\r\n\tpublic Property getProperty(String absPath) throws PathNotFoundException,\r\n\t\t\tRepositoryException {\n\t\treturn null;\r\n\t}",
"public String runtimeProperty(String name) {\n if (_properties == null) {\n return null;\n }\n return _properties.get(name);\n }",
"Object getPropertytrue();",
"public Object getProperty(String name) {\n return properties.get(name);\n }",
"public static Object getProperty(Object beanObject, String property) {\n return getCachedGetter(beanObject.getClass(), property).apply(beanObject);\n }",
"public Object getProperty(String name) {\n if (properties != null) {\n return properties.get(name);\n }\n return null;\n }",
"public static String GetConfigProperty(String propertName)\n\t{\n\t\tProperties props = new Properties();\n\t try {\t \n\t \t\t\n\t \tprops.load(GetInputStream());\n\t \t\n\t } catch (IOException ex) {\n\t ex.printStackTrace();\n\t } finally {\n\t \n\t }\n\t // get the property value and return it\n\t return props.getProperty(propertName);\n\t}",
"@Override\n\tpublic List<Property> getProperty(String metricName) throws Exception {\n\t\tList<Property> propertyList = propertyCacheDao.getProprties(metricName);\n\t\t\n\t\treturn propertyList;\n\t}",
"public Object getObject()\n {\n initialize();\n\n if (_invariant)\n return _cachedValue;\n\n return resolveProperty();\n }",
"private Object getExtProperty(String propertyName, String dataConfigPropertyName) {\n return ReflectionTestUtils.invokeMethod(this, \"getProperty\", dataConfigPropertyName);\n }",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"public <T> T getProperty(String name, Class<T> type);",
"public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}",
"public String getProperty(String key) {\r\n \tif (mConfig.containsKey(key)){\r\n \t\treturn mConfig.getProperty(key);\r\n \t}else{\r\n \t\tSystem.out.println(\"[ERROR] Not defined property key: \" + key);\r\n \t\treturn null;\r\n \t}\r\n \r\n }",
"private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }",
"public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }",
"public Variable getProperty(String propertyName)\r\n\t{\r\n\t\t// search own properties:\r\n\t\tfor (int i=0; i<properties.size(); i++)\r\n\t\t{\r\n\t\t\tif (properties.get(i).name.equals(propertyName))\r\n\t\t\t\treturn properties.get(i);\r\n\t\t}\r\n\t\t// if we have a base class, let it search for properties, or return null\r\n\t\tif (baseClass != null)\r\n\t\t\treturn baseClass.getProperty(propertyName);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"public boolean isUseCache() {\n return mUseCache;\n }",
"boolean isCacheInitialized();",
"private static ConfigImpl loadProperties(Path path) throws IOException {\n final ConfigImpl ret;\n try (FileInputStream stream = new FileInputStream(path.toFile())) {\n try (InputStreamReader reader = new InputStreamReader(stream, UTF_8)) {\n ret = loadProperties(reader);\n }\n }\n return ret;\n }",
"public Object getProperty(String name) {\n return null;\n }",
"private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}",
"public static Object getObject(String group, String property) {\n\t\tConfigManager cg = getConfigManager(group);\n\t\tObject returnValue = null;\n\t\tif (cg != null) {\n\t\t\treturnValue = cg.getConfig().getProperty(property);\n\t\t}\n\t\treturn returnValue;\n\t}",
"private Source getCacheSource() {\n if (useCache) {\n if (ProfileCache.hasUserBeenCached(userId))\n return Source.CACHE;\n else\n return Source.SERVER;\n } else {\n return Source.SERVER;\n }\n }",
"public static String getProperty(String propertyName){\r\n String val = userProps.getProperty(propertyName);\r\n\r\n if (val == null)\r\n return jinProps.getProperty(propertyName);\r\n else\r\n return val;\r\n }",
"@Override\n public Object getResource(String resourceKey)\n {\n synchronized(InProcessCache.class) {\n if(!hasResource(resourceKey)) {\n return null;\n }\n\n WeakReference reference = (WeakReference)_cache.get(resourceKey);\n return reference.get();\n }\n }",
"public static String loadProperty(String key) {\n Properties prop = new Properties();\n InputStream is;\n\n try {\n is = new FileInputStream(\"./config.properties\");\n prop.load(is);\n } catch (IOException e) {\n System.out.println(\"Error al cargar el archivo\");\n }\n\n return prop.getProperty(key);\n }",
"boolean isCacheable();",
"private String getProperty(String property) {\n String ret = sdkProperties.getProperty(property);\n if (null == ret) {\n logger.warn(String.format(\"No configuration value found for '%s'\", property));\n }\n return ret;\n }",
"public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }",
"public static Properties loadResource(String propertyName) throws IOException {\n Properties properties = new Properties();\n InputStream in = Configuration.class.getClassLoader().getResourceAsStream(propertyName);\n try {\n if (null == in) {\n String path = propertyName.replace('/', separatorChar);\n path = path.replace('\\\\', separatorChar);\n if (!path.startsWith(File.separator)) {\n path = separatorChar + path;\n }\n File configurationFile = new File(ConfigurationHolder.getHome() + separatorChar\n + \"properties\" + path);\n if (configurationFile.exists()) {\n in = new FileInputStream(configurationFile);\n }\n }\n if (null != in) {\n properties.load(in);\n }\n } finally {\n IOUtils.closeQuietly(in);\n }\n return properties;\n }",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"private Cache<String, String> getPOXCache() {\n CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(POXSecurityHandler.POX_CACHE_MANAGER);\n Cache<String, String> cache = manager.getCache(POXSecurityHandler.POX_ENABLED);\n return cache;\n }",
"private static Hashtable<? super String, Object> getProviderResource(Object obj) throws NamingException {\n if (obj == null) {\n return (new Hashtable<>(1));\n }\n synchronized (propertiesCache) {\n Class<?> c = obj.getClass();\n\n Hashtable<? super String, Object> props = propertiesCache.get(c);\n if (props != null) {\n return props;\n }\n props = new Properties();\n\n InputStream istream = helper.getResourceAsStream(c, PROVIDER_RESOURCE_FILE_NAME);\n\n if (istream != null) {\n try {\n ((Properties) props).load(istream);\n } catch (IOException e) {\n NamingException ne = new ConfigurationException(\n \"Error reading provider resource file for \" + c);\n ne.setRootCause(e);\n throw ne;\n }\n }\n propertiesCache.put(c, props);\n return props;\n }\n }",
"public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\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\treturn prop;\r\n\t}",
"public static SftpPropertyLoad getInstance() {\n\t\tif (null == instance) {\n\t\t\tsynchronized (SftpPropertyLoad.class) {\n\t\t\t\tif (null == instance) {\n\t\t\t\t\tinstance = new SftpPropertyLoad(\"sftp\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn instance;\n\t}",
"public Object getProperty(String name)\n {\n return ClassAnalyzer.getProperty(m_Source,name);\n }",
"private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }",
"private String getProperty(\n String name\n ) {\n return properties.getProperty(\n String.format(\"%s%s\", propertiesPrefix, name)\n );\n }",
"public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }",
"public String getProperty(Class type, String key, String defaultValue);",
"public String getProperty(String name){\r\n\t\treturn properties.getProperty(name);\r\n\t}"
] | [
"0.63424295",
"0.6233875",
"0.61500984",
"0.60540444",
"0.5966981",
"0.59390354",
"0.59376025",
"0.5923296",
"0.5921707",
"0.5894011",
"0.5808201",
"0.5793746",
"0.5777472",
"0.57729477",
"0.57574195",
"0.5741125",
"0.57327074",
"0.5727122",
"0.5722983",
"0.5722983",
"0.5722983",
"0.5718141",
"0.5705581",
"0.56923956",
"0.566057",
"0.56511855",
"0.56474537",
"0.5635889",
"0.5635889",
"0.5635889",
"0.56206435",
"0.56206435",
"0.5617088",
"0.5616629",
"0.56147325",
"0.5608221",
"0.5587091",
"0.557557",
"0.55695957",
"0.55686116",
"0.5547749",
"0.55447036",
"0.5535114",
"0.55214685",
"0.55202615",
"0.55168366",
"0.5514496",
"0.55127215",
"0.54993254",
"0.5498051",
"0.54968834",
"0.549585",
"0.5486429",
"0.5479094",
"0.5476829",
"0.54682916",
"0.54509085",
"0.5445997",
"0.54439974",
"0.5435592",
"0.54351205",
"0.5434412",
"0.5427046",
"0.5421547",
"0.54191154",
"0.54151624",
"0.54060644",
"0.5405235",
"0.54029495",
"0.5384866",
"0.5371618",
"0.53514993",
"0.5351149",
"0.534878",
"0.53369987",
"0.5323763",
"0.5317895",
"0.5308164",
"0.5307407",
"0.52990407",
"0.52953625",
"0.52904606",
"0.52900195",
"0.5280918",
"0.5268259",
"0.5266577",
"0.52650315",
"0.52645236",
"0.5258763",
"0.5257743",
"0.5254234",
"0.5253599",
"0.52504194",
"0.524882",
"0.5240716",
"0.52401197",
"0.5236909",
"0.52366436",
"0.52358675",
"0.52338755",
"0.5217572"
] | 0.0 | -1 |
Created by astropete on 2018/3/20. | public interface RoomBanningRepository extends JpaRepository<RoomBanning, Long> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n public int describeContents() { return 0; }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n protected void initialize() \n {\n \n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public void mo38117a() {\n }",
"Petunia() {\r\n\t\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"private void poetries() {\n\n\t}",
"protected void onFirstUse() {}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void initialize() {\n \n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"Consumable() {\n\t}",
"private void init() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override public int describeContents() { return 0; }",
"private void test() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void init() {}",
"private void m50366E() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"private Singletion3() {}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void init() {\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"private MApi() {}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private Unescaper() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"protected void mo6255a() {\n }",
"private Platform() {\n\t\t\n\t}",
"private test5() {\r\n\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n protected void setup() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"private UsineJoueur() {}",
"public void mo6081a() {\n }"
] | [
"0.59259284",
"0.5825221",
"0.57398295",
"0.5490227",
"0.5490227",
"0.5490227",
"0.5490227",
"0.5490227",
"0.5490227",
"0.54364973",
"0.5429262",
"0.53970027",
"0.5350778",
"0.5350778",
"0.5350778",
"0.5328772",
"0.5323639",
"0.5322168",
"0.5318572",
"0.52721447",
"0.5271959",
"0.525055",
"0.5243178",
"0.5242339",
"0.52355963",
"0.52334243",
"0.52273524",
"0.5218061",
"0.5218061",
"0.52075094",
"0.5197915",
"0.51897836",
"0.51897836",
"0.51897836",
"0.51897836",
"0.51897836",
"0.51897836",
"0.51897836",
"0.51897836",
"0.51897836",
"0.51897836",
"0.51886356",
"0.51824576",
"0.51639974",
"0.5146287",
"0.5146287",
"0.514602",
"0.51450646",
"0.514437",
"0.5136563",
"0.51330525",
"0.5128857",
"0.51251537",
"0.51250094",
"0.51168877",
"0.5115694",
"0.5112355",
"0.51114464",
"0.5111313",
"0.51102364",
"0.51083666",
"0.5107422",
"0.51066476",
"0.5105018",
"0.51026124",
"0.5102466",
"0.5102466",
"0.50999737",
"0.50999737",
"0.50999737",
"0.50999737",
"0.50999737",
"0.50999737",
"0.50999737",
"0.50963366",
"0.50944746",
"0.507644",
"0.50764245",
"0.50745744",
"0.50745744",
"0.50738484",
"0.5073013",
"0.5073013",
"0.5073013",
"0.5073013",
"0.5073013",
"0.50657123",
"0.5061661",
"0.50524014",
"0.5047063",
"0.5047063",
"0.5035197",
"0.5027147",
"0.5026059",
"0.50219977",
"0.5012588",
"0.49961486",
"0.49961486",
"0.49961486",
"0.49952772",
"0.4994099"
] | 0.0 | -1 |
string Name = "", string Content = "", string AssignPerson = "", string Upload = "", string AddUserId = "",string LoginUserId="" | public void createDocument(CompositeSubscription compositeSubscription,
String Name, String Content, String AssignPerson,
String Upload, String AddUserId, String LoginUserId,boolean isSend) {
// Log.i(TAG, "createDocument name: " + Name);
// Log.i(TAG, "createDocument content: " + Content);
// Log.i(TAG, "createDocument assignperson: " + AssignPerson);
// Log.i(TAG, "createDocument file: " + Upload);
// Log.i(TAG, "createDocument pid: " + AddUserId);
// Log.i(TAG, "createDocument userid: " + LoginUserId);
// Log.i(TAG, "createDocument usisSenderid: " + isSend);
compositeSubscription.add(baseRetrofit.getApiService().createDocument(
Name, Content, AssignPerson, Upload, AddUserId, LoginUserId,isSend )
.observeOn(Schedulers.newThread())
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Subscriber<ResponseBody>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
iDocumentModel.onError();
Log.i(TAG, "createDocument onError: " + e.getMessage());
}
@Override
public void onNext(ResponseBody responseBody) {
try {
String string = responseBody.string();
Log.i(TAG, " createDocument onNext: " + string);
iDocumentModel.createDocument(string);
} catch (IOException e) {
e.printStackTrace();
iDocumentModel.onError();
}
}
})
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void putDefaultInformation() throws FileNotFoundException, SQLException, IOException {\n staff_name = \"Sin informacion\";\n staff_surname = \"Sin informacion\";\n id_type = \"Sin informacion\";\n id_number = \"Sin informacion\";\n putProfPic(null);\n phone_number = \"Sin informacion\";\n mobile_number = \"Sin informacion\";\n email = \"Sin informacion\";\n birthdate = GBEnvironment.getInstance().serverDate();\n gender = \"Seleccione sexo\";\n }",
"public void setUser_name(String user_name);",
"public List<NameValuePair> userCreationObject(String phone_number,String company_name,String latitude,String longitude,String locationVal,String fullAddress,String active_status,String download_status,String user_name)\n {\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n try {\n nameValuePairs.add(new BasicNameValuePair(\"phone_number\",phone_number));\n nameValuePairs.add(new BasicNameValuePair(\"Name\",user_name));\n nameValuePairs.add(new BasicNameValuePair(\"company_name\",company_name));\n nameValuePairs.add(new BasicNameValuePair(\"latitude\",latitude));\n nameValuePairs.add(new BasicNameValuePair(\"longitude\",longitude));\n nameValuePairs.add(new BasicNameValuePair(\"location\",locationVal));\n nameValuePairs.add(new BasicNameValuePair(\"fullAddress\",fullAddress));\n nameValuePairs.add(new BasicNameValuePair(\"is_active\",active_status));\n nameValuePairs.add(new BasicNameValuePair(\"app_download_status\",download_status));\n\n } catch (Exception e) {\n //TODO\n e.printStackTrace();\n }\n return nameValuePairs;\n\n }",
"public String _setuser(b4a.HotelAppTP.types._user _u) throws Exception{\n_types._currentuser.username = _u.username;\n //BA.debugLineNum = 168;BA.debugLine=\"Types.currentuser.password = u.password\";\n_types._currentuser.password = _u.password;\n //BA.debugLineNum = 169;BA.debugLine=\"Types.currentuser.available = u.available\";\n_types._currentuser.available = _u.available;\n //BA.debugLineNum = 170;BA.debugLine=\"Types.currentuser.ID = u.ID\";\n_types._currentuser.ID = _u.ID;\n //BA.debugLineNum = 171;BA.debugLine=\"Types.currentuser.TypeOfWorker = u.TypeOfWorker\";\n_types._currentuser.TypeOfWorker = _u.TypeOfWorker;\n //BA.debugLineNum = 172;BA.debugLine=\"Types.currentuser.CurrentTaskID = u.CurrentTaskID\";\n_types._currentuser.CurrentTaskID = _u.CurrentTaskID;\n //BA.debugLineNum = 173;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"private void putPersonalInformation() throws SQLException, FileNotFoundException, IOException {\n AdUserPersonalData personal;\n try {\n personal = PersonalDataController.getInstance().getPersonalData(username);\n staff_name = personal.getGbStaffName();\n staff_surname = personal.getGbStaffSurname();\n id_type = \"\"+personal.getGbIdType();\n id_number = personal.getGbIdNumber();\n putProfPic(personal.getGbPhoto());\n phone_number = personal.getGbPhoneNumber();\n mobile_number = personal.getGbMobileNumber();\n email = personal.getGbEmail();\n birthdate = personal.getGbBirthdate();\n gender = \"\"+personal.getGbGender();\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putException(ex);\n }\n }",
"@Override\n public boolean addUserPersonalInfo(String text) \n {\n \n User tmp = this.getLoggedUser();\n tmp.setPersonal_details(text);\n if(this.setLoggedUser(tmp)) System.out.print(\"done\");\n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"INSERT INTO user_personal_information (user_id,information) VALUES ( \" + this.getLoggedUser().getId() + \" , '\" + text + \"')\";\n \n int result = stmt.executeUpdate(sql);\n \n stmt.close();\n conn.close();\n if(result == 1) return true;\n else return false;\n } \n catch (SQLException ex) { ex.printStackTrace(); return false;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return false;} \n \n }",
"public void passUserDetails(String userID, String userName, String entityName, String entityID, char type)\n {\n mUserID= userID;\n mUserName=userName;\n mEntityName=entityName;\n mEntityID=entityID;\n mType=type;\n }",
"private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }",
"private void Postinfo (String uid, String inputname, String profilestring, String nation){\n }",
"public Login()\r\n\t{\r\n\t\tthis.name=name;\r\n\t\tthis.dob=dob;\r\n\t\tthis.nationality=nationality;\r\n\t\tthis.location=location;\r\n\t\tthis.phno=phno;\r\n\t\tthis.gender=gender;\r\n\t\tthis.jobtype=jobtype;\r\n\t\tthis.experience=experience;\r\n\t\tthis.salary=salary;\r\n\t\t\r\n\t\tthis.uname=uname;\r\n\t\tthis.password=password;\r\n\t\t\r\n\t\tthis.notification=notification;\r\n\t}",
"public void insert_in_userProfile(String name,String email, String mobnum, String ans1,\n String ans2, String ans3, String ans4, String ans5,String ans6, String ans7, String ans8)\n {\n ContentValues values= new ContentValues();\n values.put(COLUMN_NAME, name);\n values.put(COLUMN_EMAIL, email);\n values.put(COLUMN_MOB_NUM, mobnum);\n values.put(COLUMN_ANS1, ans1);\n values.put(COLUMN_ANS2, ans2);\n values.put(COLUMN_ANS3, ans3);\n values.put(COLUMN_ANS4, ans4);\n values.put(COLUMN_ANS5, ans5);\n values.put(COLUMN_ANS6, ans6);\n values.put(COLUMN_ANS7, ans7);\n values.put(COLUMN_ANS8, ans8);\n\n long insertId=sqlDB.insert(USER_PROFILE_TABLE, null, values);\n Log.d(\"INSERTED\",\"INSERTED => \" + insertId);\n }",
"public void setupUserInfo(Bundle upUserInfo) {\n // Getting Info\n String name = upUserInfo.getString(\"userName\");\n String email = upUserInfo.getString(\"userEmail\");\n\n\n // Setting local Variables\n this.tutorName = name;\n this.tutorEmail = email;\n\n TextView nameField = (TextView) findViewById(R.id.UserNameField);\n nameField.setText(name);\n\n\n }",
"public interface Constants {\r\n\r\n String ID = \"id\";\r\n String CREATED_AT = \"created_at\";\r\n String UPDATED_AT = \"updated_at\";\r\n String CREATED_BY = \"created_by\";\r\n String MODIFIED_BY = \"modified_by\";\r\n String DESCRIPTION = \"description\";\r\n String START_DATE = \"start_date\";\r\n String END_DATE = \"end_date\";\r\n String PLACE_HOLDER = \"{}\";\r\n String EMPTY = \"\";\r\n\r\n\r\n String USER_DETAIL = \"user_details\";\r\n\r\n String FILE_LOCATION = \"C:\\\\BVN\";\r\n String FILE_LOCATION_DECRYPTED = \"C:\\\\BVN\\\\decrypted\";\r\n String FILE_LOCATION_ENCRYPTED = \"C:\\\\BVN\\\\encrypted\";\r\n\r\n String ERROR_MESSAGE = \"Unable to process action, please try again\";\r\n\r\n String AGENT_ID_IS_REQUIRED = \"Agent Id is required\";\r\n String BRANCH_ID_IS_REQUIRED = \"Branch Id is required\";\r\n\r\n String SECRET_KEY = \"aeskey\";\r\n String IV = \"iv\";\r\n String USERNAME = \"username\";\r\n\r\n}",
"void addUserpan(String userid,String username,String userpwd);",
"private void summbitBlank() {\n\t\tMyFile fileToUpload = new MyFile(ClientUI.clientHandler.myDetails.getId(), examID, \"manual\");\n\t\tfileToUpload.setUserType(\"student\");\n\t\tClientUI.clientHandler.handleMessageFromClientUI(fileToUpload);\n\n\t}",
"public void populateFields(String userName){\n this.userNameLabel.setText(userName);\n \n if(this.dbConnection.ConnectDB()){\n //we connected\n String[] temp = this.dbConnection.getUserInformation(userName);\n //take this array and populate the input fields for firstName, lastName,Email,\n this.firstNameInputField.setText(temp[0]);\n this.lastNameInputField.setText(temp[1]);\n this.emailInputField.setText(temp[4]);\n this.roleDropdown.promptTextProperty().set(temp[2]);\n this.departmentDropdown.promptTextProperty().set(temp[3]);\n //add these default values to the map\n this.defaultFirstname = temp[0];\n this.defaultLastname = temp[1];\n this.defaultEmail = temp[4];\n this.defaultRole = temp[2];\n this.defaultDepartment = temp[3];\n \n //repopulate the map\n populateMap();\n //unlock the checkboxes\n this.unlockCheckboxes(this.boxes);\n \n// //print out the mapfor testing purposes\n// for(Map.Entry<String,String> mapObj: this.defaultValuesMap.entrySet()){\n// System.out.println(mapObj.getKey());\n// System.out.println(mapObj.getValue());\n// }\n \n \n }\n }",
"public static UserData parseT4(String in){\n Scanner s = new Scanner(in);\n UserData out = new UserData();\n String firstLine = s.next();\n if(!firstLine.equals(\"d\")){\n //Means the request was a request to add, if the above was true\n // then a null userData will be returned just\n out.userID = Integer.parseInt(firstLine);\n out.userName = s.next();\n }\n return out;\n }",
"String validateCampo (String name, String email, String password){\n String campos;\n campos = name !=null && name.trim().length()>0? \"\" : \"\\n\" + campoName.getHint() + \"\\n\";\n campos += email !=null && email.trim().length()>0? \"\" :campoEmail.getHint() + \"\\n\";\n campos += password !=null && password.trim().length()>0?\"\" : campoPassword.getHint() + \"\\n\";\n campos += bitmaphoto !=null?\"\":\"Imagen\";\n return campos;\n }",
"@Override\n public void onClick(View v) {\n String userName = \"\";\n String userPass = \"\";\n userName = name.getEditText().getText().toString();\n userPass = pass.getEditText().getText().toString();\n }",
"public CreateUser(int age, String name){ // constructor\n userAge = age;\n userName = name;\n }",
"private ContentValues createContentValues(String name, String surname, byte[] profilePic) {\n\t\tContentValues contentValues = new ContentValues();\n\t\tcontentValues.put(UserConstants.FIELD_NAME, name);\n\t\tcontentValues.put(UserConstants.FIELD_SURNAME, surname);\n\t\tcontentValues.put(UserConstants.FIELD_PROFILEPIC, profilePic);\n\t\treturn contentValues;\n\t}",
"public static void main(String[] args) {\n\n UserInformation userInformation = new UserInformation();\n System.out.println(\"What do you want ?\");\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"1)Sign Up \\n2)Login \");\n int select = scanner.nextInt();\n System.out.println(\"Enter the requested information\");\n\n switch (select){\n case 1:\n System.out.println(\"Enter your name:\");\n userInformation.setName(scanner.next());\n System.out.println(\"Enter your UserName:\");\n userInformation.setUsername(scanner.next());\n System.out.println(\"Enter your PassWord:\");\n userInformation.setPassword(scanner.next());\n System.out.println(\"Enter your Email\");\n userInformation.setEmail(scanner.next());\n System.out.println(\"Welcom :)\");\n userInformation.insert(userInformation.getName(),userInformation.getUsername(),userInformation.getPassword(),userInformation.getEmail());\n break;\n\n case 2:\n System.out.println(\"Enter your UserName\");\n userInformation.setUsername(scanner.next());\n System.out.println(\"Enter your PassWord:\");\n userInformation.setPassword(scanner.next());\n break;\n }\n }",
"private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }",
"public UserData prepareUserData() throws IOException {\n\n String userName = dataGenerator.prepareUserName();\n String firstName = dataGenerator.prepareFirstName();\n String lastName = dataGenerator.prepareLastName() ;\n String email = dataGenerator.prepareEmail();\n String password = dataGenerator.preparePassword();\n\n return new UserData(userName,firstName,lastName,email,password);\n }",
"@Override\n protected Map<String,String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"name\",user.getFullname());\n params.put(\"phone\",user.getPhone());\n params.put(\"ktp\", user.getKtp());\n if(bitmap != null)\n {\n params.put(\"imgURL\",imageToString(bitmap));\n }\n\n return params;\n }",
"public SetupDataAccount(String user_id,String fname, String lname, String imageFriend) {\n\t\tthis.fname = fname;\n\t\tthis.lname = lname;\n\t\tthis.imageFriend = imageFriend;\n\t\tthis.user_id=user_id;\n\t}",
"private void insertFromFile(ArrayList<String> obj){\r\n\t\tsetIdString(obj.get(1));\t\r\n\t\tsetLogin(obj.get(2));\r\n\t\tsetSenha(obj.get(3));\r\n\t\tsetImei(obj.get(4));\r\n\t\tsetMac(obj.get(5));\r\n\t\tString date = Util.convertDateToDateStr(Util.getCurrentDateTime());\t\r\n\t\tsetUltimaAlteracao(date);\t\t\t\r\n\t}",
"public void setComments (String Comments)\n{\nif (Comments != null && Comments.length() > 255)\n{\nlog.warning(\"Length > 255 - truncated\");\nComments = Comments.substring(0,255);\n}\nset_Value (\"Comments\", Comments);\n}",
"public void insertEntry( String fullName, String mobileNumber , String userName,String password , String state, String lga, String imei)\n {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues newValues = new ContentValues();\n // Assign values for each row.\n newValues.put(\"username\", userName);\n newValues.put(\"password\",password);\n newValues.put(\"fullName\",fullName);\n newValues.put(\"phoneNumber\",mobileNumber);\n newValues.put(\"state\", state);\n newValues.put(\"lga\",lga);\n newValues.put(\"imei\", imei);\n\n // Insert the row into your table\n database.insert(\"admin\", null, newValues);\n ///Toast.makeText(context, \"Reminder Is Successfully Saved\", Toast.LENGTH_LONG).show();\n }",
"PassengerPersonalInfo(String First_Name, String Last_Name, int Age, Date dob, \n String Address, String Nationality, long Number, String eID) { \n this.firstName = First_Name;\n this.lastName = Last_Name;\n this.age = Age;\n this.dateOfBirth = dob;\n this.address = Address;\n this.nationality = Nationality;\n this.contact = Number;\n this.email = eID;\n }",
"private boolean checkUserInformation(String name,String userName,String email,String password)\n {\n\n if(userName.isEmpty())\n {\n eUserName.setError(\"empty field\");\n return false;\n }\n\n if(name.isEmpty())\n {\n eName.setError(\"empty field\");\n return false;\n }\n\n if(email.isEmpty())\n {\n eEmail.setError(\"empty field\");\n return false;\n }\n if(password.isEmpty())\n {\n ePassword.setError(\"empty field\");\n return false;\n }\n\n\n if(password.length()<6)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n if(password.length()>16)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().isEmpty())\n {\n eAddress.setError(\"Invalid address\");\n eAddress.requestFocus();\n return false;\n }\n\n if(eFavourite.getText().toString().isEmpty())\n {\n eFavourite.setError(\"empty field\");\n eFavourite.requestFocus();\n return false;\n }\n\n if(!email.contains(\"@\"))\n {\n eEmail.setError(\"Invalid email\");\n eEmail.requestFocus();\n return false;\n }\n\n if(name.length()<3)\n {\n eName.setError(\"Invalid name\");\n eName.requestFocus();\n return false;\n }\n\n for(char c : name.toCharArray()){\n if(Character.isDigit(c)){\n eName.setError(\"Invalid Name\");\n eName.requestFocus();\n return false;\n }\n }\n\n if(userName.length()<5)\n {\n eUserName.setError(\"User name must be in 6 to 12 character\");\n eUserName.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().length()<10||eAddress.getText().toString().length()>30)\n {\n eAddress.setError(\"Must be in 10-30 characters\");\n eAddress.requestFocus();\n return false;\n }\n return true;\n }",
"public void setStuData() {\n\n System.out.print(\"Enter The Name : \"); \t String Entered_Name = Scan.next();\n\n System.out.print(\"Enter User Name : \");\t String Entered_User = Scan.next();\n\n System.out.print(\"Enter Password : \");\t int Entered_Pass = Scan.nextInt();\n\n System.out.print(\"Enter Feild : \");\t\t String Entered_Feild = Scan.next();\n\n Students_list.add(new Student(Entered_User , Entered_Name , Entered_Pass , Entered_Feild));\n\n System.out.print(\"Data Has been Saved!\");\n\n }",
"public static void main(String[] args) {\n\n\n String employeeName = \"Orkhan\";\n String companyName = \"Amazon\";\n int employeeID = 9;\n String jobTitle = \"QA\";\n double salary = 100000.5;\n int ssn = 123456789;\n // employee name : Orkhan\n\n System.out.println(\" Employee Name: \"+employeeName);\n System.out.println(\" Company Name: \"+companyName);\n System.out.println(\" Employee ID: \"+jobTitle);\n System.out.println(\" Salary: \"+salary);\n System.out.println(\" SSN: \"+ ssn);\n\n\n\n/*\nSystem.out.println(\"Employee Name: \" + employeeName + \"\\nCompany Name: \" + companyName + \"\\nEmployee ID: \" + salary + \"\\nSSN: \" + ssn);\n */\n\n System.out.println(\"==========================================================================================================================\");\n String FirstName = \"Yegana\";\n String LastName = \"Musayeva\";\n\n System.out.println(\"My full name is: \" + FirstName + \" \"+ LastName);\n\n\n\n // Full Name: Yegana Musayeva\n\n\n\n }",
"private void saveUserDetails() {\n UserModel userModel = new UserModel();\n userModel.setUserName(editUserName.getText().toString());\n userModel.setPassword(editPassword.getText().toString());\n\n /* if (db.insertUserDetils(userModel)) {\n //Toast.makeText(LoginActivity.this, \"Successfully save\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Data not Saved\", Toast.LENGTH_SHORT).show();\n }*/\n }",
"public void creatUser(String name, String phone, String email, String password);",
"public User_Account() {\r\n\t\tfirstName=middleName=lastName = null;\r\n\t\taddress=city=state=zip=null;\r\n\t\tphone=email=webLinks= new ArrayList <String>(); \r\n\t\tedu = new ArrayList <Education>();\r\n\t\twork = new ArrayList <Work>();\r\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"name\", user_name);\n params.put(\"emailid\", user_email);\n params.put(\"device_type\", \"android\");\n params.put(\"device_id\", deviceId);\n params.put(\"phone_Number\", user_phone);\n params.put(\"complex_Number\", complex_id);\n params.put(\"flat_id\", flat_id);\n params.put(\"fcm_token\", globalClass.getFcm_reg_token());\n params.put(\"city_id\", city_id);\n params.put(\"complex_name\", complex_name);\n params.put(\"user_type\", user_type);\n\n Log.d(TAG, \"params \"+params);\n\n return params;\n }",
"private String createUser(String name) {\n\t\treturn null;\n\t}",
"public void setLogin(String strLogin)\n {\n \tstringLogin = strLogin;\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String,String> params=new HashMap<String, String>() ;\n params.put(\"name\",n);\n params.put(\"rollno\",r);\n params.put(\"admno\",a);\n params.put(\"branch\",b);\n return params;\n }",
"public void insertUserData(ArrayList<String> data) {\n\t\tSQLiteDatabase db = getWritableDatabase();\n\t\tContentValues cv = new ContentValues();\n\t\t\n\t\ttry {\n\t\t\tcv.put(DatabaseInter.TABLE_USER_INFO.ID, data.get(0));\n\t\t\tcv.put(DatabaseInter.TABLE_USER_INFO.USR_NAME, data.get(1));\n\t\t\tcv.put(DatabaseInter.TABLE_USER_INFO.PASSWORD, data.get(2));\n\t\t\tcv.put(DatabaseInter.TABLE_USER_INFO.NAME, data.get(3));\n\t\t\tcv.put(DatabaseInter.TABLE_USER_INFO.PHONE_NO, data.get(4));\n\t\t\tcv.put(DatabaseInter.TABLE_USER_INFO.EMAIL, data.get(5));\n\t\t\tcv.put(DatabaseInter.TABLE_USER_INFO.PHOTO_PATH, data.get(6));\n\t\t\tcv.put(DatabaseInter.TABLE_USER_INFO.ABOUT, data.get(7));\n\t\t\t\n\t\t\tdb.insert(DatabaseInter.TABLE_USER_INFO.TABLE_NAME, null, cv);\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif(db != null) {\n\t\t\t\tdb.close();\n\t\t\t}\n\t\t}\n\t}",
"public String setUserName(){\n String userName = \"\";\n while(userName.isBlank()) {\n System.out.print(\"Please Enter UserName: \");\n userName = supplyString.get();\n }\n return userName.trim();\n }",
"private void responseMonitor(List<User> returnedUsers, User returnedUserFromEdit){\n String USER_NAME= returnedUserFromEdit.getName();\n String USER_EMAIL = returnedUserFromEdit.getEmail();\n Long UserID = returnedUserFromEdit.getId();\n Toast.makeText(this,getString(R.string.returned)+ USER_NAME+ \" , \"+ USER_EMAIL+\" , \"+ UserID,Toast.LENGTH_LONG).show();\n }",
"public static void main(String[] args) {\n\n\n String employeeName = \"Gurcu\";\n String companyName = \"Kucuk Holding\";\n int employeeId = 5;\n String jobTitle = \" CEO \";\n double salary = 100000.5;\n int ssn = 12345678;\n\n System.out.println(\"Employee Name: \"+employeeName);\n System.out.println(\"Company Name: \"+companyName);\n System.out.println(\"Employee Id :\" +employeeId );\n System.out.println(\"Job Title :\"+jobTitle);\n System.out.println(\"Social Security Number:\"+ssn);\n System.out.println(\"Salary:\"+salary);\n\n System.out.println(\"Employee Name:\"+employeeName + \"\\nCompany Name:\"+companyName +\n \"\\nEmployee ID: \" +employeeId + \"\\nJob Title: \" + jobTitle +\n \"\\nSalary:\"+ salary + \"\\nSnn:\" +ssn);\n\n System.out.println(\"==================================================\");\n\n String firstName = \"Zeynep\";\n String lastName = \"Dere\";\n\n System.out.println(\"Full Name: \" + firstName+\" \"+lastName);\n\n\n }",
"@Override\r\n public void add() {\n String ID =id.getText();\r\n String Name =name.getText();\r\n String form_date =date_start.getText();\r\n String to_date =date_finish.getText();\r\n String Status =status.getText();\r\n String MemberID = MemberId.getText();\r\n ArrayList<String> arr = new ArrayList<String>();\r\n arr.add(ID);\r\n arr.add(Name);\r\n arr.add(form_date);\r\n arr.add(to_date);\r\n arr.add(Status);\r\n arr.add(MemberID);\r\n String PathFile = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n FileFacade facade = new FileFacade();\r\n facade.Add(PathFile, arr);\r\n }",
"void storeEditorData(int userid,String name,Object bodyContent){\n dbConnection();\n try{\n PGobject editorData = new PGobject();\n editorData.setType(\"json\");\n editorData.setValue(bodyContent.toString());\n\n stmt = con.prepareStatement(\"INSERT INTO editorData(name,bodyContent,userid)VALUES(?,?,?)\");\n stmt.setString(1,name);\n stmt.setObject(2,editorData);\n stmt.setInt(3,userid);\n\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n \n }",
"public AddApplicationData(String nameApplication, String descriptionApplication, int userId, int companyId){\n _nameApplication = nameApplication;\n _descriptionApplication = descriptionApplication;\n _userId = userId;\n _companyId = companyId;\n }",
"private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}",
"public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}",
"@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fullname\", fullName);\n\n\n\n\n return params;\n }",
"public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;",
"private ContentValues storeUserInfo(){\n EditText et_client_name = findViewById(R.id.et_client_fName);\n EditText et_client_location = findViewById(R.id.et_client_sName);\n\n String name = String.valueOf(et_client_name.getText()).trim();\n String location = String.valueOf(et_client_location.getText()).trim();\n ContentValues userInfoValues = new ContentValues();\n userInfoValues.put(clientContract.ClientEntry.COLUMN_FIRST_NAME,name);\n userInfoValues.put(clientContract.ClientEntry.COLUMN_LOCATION,location);\n return userInfoValues;\n }",
"public void setUser1_ID (int User1_ID);",
"public void setUser1_ID (int User1_ID);",
"public void prepare_withLoginProfileDetails()throws Exception {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString source = request.getParameter(\"src\");\r\n\t\t\tSystem.out.println(\"source--------------\" + source);\r\n\t\t\tbulkForm16.setSource(source);\r\n\t\t\t\r\n\t\t\tDate date = new Date();\r\n\t\t\tSimpleDateFormat formater = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\tString sysdate = formater.format(date);\r\n\t\t\tString[] split = sysdate.split(\"/\");\r\n\t\t\tint month = Integer.parseInt((split[1]));\r\n\t\t\tint year = Integer.parseInt(String.valueOf(split[2]));\r\n\t\t\tif (month < 4) {\r\n\t\t\t\tyear = year - 1;\r\n\t\t\t} //end of if\r\n\t\t\tbulkForm16.setFrmYear(year);\r\n\t\t\tbulkForm16.setToYear(year + 1);\r\n\t\t\tbulkForm16.setForm12Flag(\"true\");// to check whether to include form 12BA\r\n\t\t\tif (bulkForm16.isGeneralFlag()) {\r\n\t\t\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\t\t\tmodel.initiate(context, session);\r\n\t\t\t\tmodel.setDetailsForGeneralUser(bulkForm16);\r\n\t\t\t\tmodel.terminate();\r\n\t\t\t} //end of if\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t}",
"private void fillYourInfo(){\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null) {\n // Name, email address, and profile photo Url\n String user_name = user.getDisplayName();\n String email = user.getEmail();\n Uri photoUrl = user.getPhotoUrl();\n\n // Check if user's email is verified\n boolean emailVerified = user.isEmailVerified();\n\n // The user's ID, unique to the Firebase project. Do NOT use this value to\n // authenticate with your backend server, if you have one. Use\n // FirebaseUser.getToken() instead.\n TextView UserName = findViewById(R.id.playername1);\n ImageView ProfilePic = findViewById(R.id.playerimg1);\n UserName.setText(user_name);\n if (photoUrl != null) {\n Picasso.with(this).load(photoUrl).into(ProfilePic);\n }\n }\n if (user == null){\n TextView UserName = findViewById(R.id.playername1);\n ImageView ProfilePic = findViewById(R.id.playerimg1);\n UserName.setText(getText(R.string.def_user));\n ProfilePic.setImageResource(R.drawable.def_icon);\n }\n }",
"public UserImplPart1(int studentId, String yourName, int yourAge,int yourSchoolYear, String yourNationality){\n this.studentId = studentId;\n this.name= yourName;\n this.age = yourAge; \n this.schoolYear= yourSchoolYear;\n this.nationality= yourNationality;\n}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString name = edtBasicName.getText().toString();\n\t\t\t\tString dob = edtBasicDOB.getText().toString();\n\t\t\t\tString city = edtBasicCity.getText().toString();\n\t\t\t\tString email = edtBasicEmailId.getText().toString();\n\t\t\t\tString mobno = edtBasicMobNo.getText().toString();\n\t\t\t\tString selectedGender = Integer.toString(edtBasicGender\n\t\t\t\t\t\t.getSelectedItemPosition());\n\t\t\t\tString emgno = edtBasicEmergNo.getText().toString();\n\t\t\t\tString selectedBloodGrp = Integer.toString(edtBasicBloodGrp\n\t\t\t\t\t\t.getSelectedItemPosition());\n\n\t\t\t\ttry {\n//\t\t\t\t\tparams.put(Util.USER_ID, AppPreferences.getUSER_ID());\n//\t\t\t\t\tparams.put(Util.FULLNAME, edtBasicName.getText().toString());\n//\t\t\t\t\tparams.put(Util.DOB, edtBasicDOB.getText().toString());\n//\t\t\t\t\tparams.put(Util.USER_CITY, edtBasicCity.getText()\n//\t\t\t\t\t\t\t.toString());\n//\t\t\t\t\tparams.put(Util.EMAIL, edtBasicEmailId.getText().toString());\n//\t\t\t\t\tparams.put(Util.MOBILE_NUMBER, edtBasicMobNo.getText()\n//\t\t\t\t\t\t\t.toString());\n//\t\t\t\t\tparams.put(Util.GENDER, selectedGender);\n//\t\t\t\t\tparams.put(Util.EMG_NUMBER, edtBasicEmergNo.getText()\n//\t\t\t\t\t\t\t.toString());\n//\n//\t\t\t\t\tparams.put(Util.BLOOD_GROUP, selectedBloodGrp);\n\t\t\t\t\t// if(BaseApplication.USER_PROFILE_PIC != null){\n\t\t\t\t\t// params.put(Util.PROFILE_PIC,\n\t\t\t\t\t// Util.convertBitmapToBase64(BaseApplication.USER_PROFILE_PIC));//\n\t\t\t\t\t// Urls.USER_PROFILE_PIC+\"ProfilePic.png\");\n\t\t\t\t\t// }\n\t\t\t\t\t// new AppService(mAppServiceListener).callService(\n\t\t\t\t\t// Urls.ADD_BASIC_URL, params);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tmultipart_params.put(\"UserID\", AppPreferences.getUSER_ID());\n\t\t\t\t\tmultipart_params.put(\"FullName\", edtBasicName.getText().toString());\n\t\t\t\t\tmultipart_params.put(\"DOB\", edtBasicDOB.getText().toString());\n\t\t\t\t\tmultipart_params.put(\"UserCity\", edtBasicCity.getText()\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmultipart_params.put(\"Email\", edtBasicEmailId.getText().toString());\n\t\t\t\t\tmultipart_params.put(\"MobileNo\", edtBasicMobNo.getText()\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmultipart_params.put(\"Gender\", selectedGender);\n\t\t\t\t\tmultipart_params.put(\"EmergencyContact\", edtBasicEmergNo.getText()\n\t\t\t\t\t\t\t.toString());\n\n\t\t\t\t\tmultipart_params.put(\"BloodGroup\", selectedBloodGrp);\n\t\t\t\t\tnew AppMultipartService(mAppMultipartServiceListener)\n\t\t\t\t\t\t\t.callService(Urls.ADD_BASIC_URL, multipart_params,\n\t\t\t\t\t\t\t\t\tBaseApplication.TOP_VIEW_UPLOADED_PIC, BaseApplication.TOP_VIEW_UPLOADED_PIC_NAME);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public void setUserName(String userName){\r\n this.userName = userName;\r\n }",
"public void complainAdd(String uName,String cm_type, String uCom,String userEmail,String UserTp){\n\n conn = con.connectTODB();\n\n try {\n String insert = \"INSERT INTO complain(u_name,c_type,u_complain,u_email,u_tp) VALUES('\"+uName+\"','\"+cm_type+\"','\"+uCom+\"','\"+userEmail+\"','\"+UserTp+\"')\";\n Statement RegisterUser = conn.createStatement();\n RegisterUser.execute(insert);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n\n }",
"private void contentSet() {\n\t\tmemDTO = new MemberDTO();\n\t\tmemDTO.setId(txtID.getText().toString());\n\t\tmemDTO.setPw(new String(txtPW.getPassword()));\n\t}",
"@RequestMapping(\"/showDetails{email}\")\npublic String applyLgeave(@RequestParam String email,HttpServletRequest request)\n{\n\tEmployeeRegmodel employeeobj = ergserv.findByEmailIdh(email);\n\tString name= employeeobj.getEmployee_fullname();\n\tint id=employeeobj.getEmployee_id();\n\tString emailadd=employeeobj.getEmail();\n\tString father = employeeobj.getEmployee_fname();\n\tString date = employeeobj.getEmployee_dob();\n\tlong phone = employeeobj.getEmployee_phoneno();\n\tString add = employeeobj.getEmployee_address();\n\tString password = employeeobj.getEmployee_password();\n\tSystem.out.println(name);\n\t\n\t\n\trequest.setAttribute(\"father\", father);\n\trequest.setAttribute(\"name\", name);\n\trequest.setAttribute(\"id\", id);\n\trequest.setAttribute(\"mail\", emailadd);\n\trequest.setAttribute(\"dt\", date);\n\trequest.setAttribute(\"ph\", phone);\n\trequest.setAttribute(\"address\", add);\n\trequest.setAttribute(\"pass\", password);\n\t\n\treturn \"profile.jsp\";\n\t\n}",
"String extractUserNameFromData(String userInfoDataFromServer);",
"private void displayUserInfo(String name) {\n\t\tString username = null;\n\t\tPattern p = Pattern.compile(\"\\\\[(.*?)\\\\]\");\n\t\tMatcher m = p.matcher(name);\n\t\tif (m.find())\n\t\t{\n\t\t username = m.group(1);\n\t\t lastClickedUser = username;\n\t\t}\n\t\tUser u = jdbc.get_user(username);\n\t\ttextFirstName.setText(u.get_firstname());\n\t\ttextLastName.setText(u.get_lastname());\n\t\ttextUsername.setText(u.get_username());\n\t\tif (u.get_usertype() == 1) {\n\t\t\trdbtnAdminDetails.setSelected(true);\n\t\t} else if (u.get_usertype() == 2) {\n\t\t\trdbtnManagerDetails.setSelected(true);\n\t\t} else {\n\t\t\trdbtnWorkerDetails.setSelected(true);\n\t\t}\n\t\tif (u.get_email() != null) {textEmail.setText(u.get_email());} else {textEmail.setText(\"No Email Address in Database.\");}\n\t\tif (u.get_phone() != null) {textPhone.setText(u.get_phone());} else {textPhone.setText(\"No Phone Number in Database.\");}\t\t\t\t\n\t\tcreateQualLists(u.get_userID());\n\t}",
"public void insertUser(String names,String email,String phone,String location) \n {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n \n String uniqueID = UUID.randomUUID().toString(); \n values.put(\"userNames\", names);\n values.put(\"userEmail\", email);\n values.put(\"userPhone\", phone);\n values.put(\"userAddress\", location);\n values.put(\"udpateStatus\", \"no\");\n values.put(\"guid\", uniqueID);\n database.insert(\"UsersTable\", null, values);\n database.close();\n }",
"private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}",
"public interface DataVar {\n String APP_ROOT_FILE = Environment.getExternalStorageDirectory().getPath()\n + File.separator + \"NoteMyLife\";\n String APP_IMG_FILE = APP_ROOT_FILE + File.separator + \"img\";\n\n //把当前用户的登陆信息保存到本地时的键\n String SP_FILE = \"USER_DATA\";\n String SP_USER_ID = \"userId\";\n String SP_EMAIL = \"userAccount\";\n String SP_PASSWORD = \"userPassword\";\n String SP_HEAD = \"head\";\n String INIT_HEAD_IMAGE_FILE_NAME = \"0.png\";\n}",
"public void setName ( String name ) throws InvalidUserIDException {\r\n if(name == \"\") throw new InvalidUserIDException();\r\n _name= name;\r\n }",
"@Override\n public void onClick(View v) {\n\n if((nameEditText.getText().toString()).equals(\"\")||\n (curlEditText.getText().toString()).equals(\"\")||\n (companyContactEditText.getText().toString()).equals(\"\")||\n (streetEditText.getText().toString()).equals(\"\")||\n (cityEditText.getText().toString()).equals(\"\")||\n (stateEditText.getText().toString()).equals(\"\")||\n (countryEditText.getText().toString()).equals(\"\")||\n (zipCodeEditText.getText().toString()).equals(\"\")||\n (nameEditText.getText().toString()).equals(\"\")){\n Toast.makeText(getApplicationContext(),\"All fields are mandatory!!!\",Toast.LENGTH_LONG).show();\n }else{\n if((companyContactEditText.getText().toString()).length()<10) {\n Toast.makeText(getApplicationContext(),\"Enter valid contact number!!!\",Toast.LENGTH_LONG).show();}\n else if((zipCodeEditText.getText().toString()).length()<6){\n Toast.makeText(getApplicationContext(),\"Enter valid zip code!!!\",Toast.LENGTH_LONG).show();\n }\n else{uploadDetails();}\n }\n\n }",
"interface ViewMessages {\n\n String ENTER= \"Enter\";\n String FIRST_NAME = \"first name\";\n String LAST_NAME = \"last name\";\n String LOGIN = \"login\";\n String EMAIL = \"email\";\n String PHONE= \"phone\";\n String CITY= \"city\";\n String APPARTMENT_NUMBER= \"appartment number\";\n String HOUSE_NUMBER= \"house number\";\n String STREET= \"street\";\n String WRONG_INPUT = \"Wrong input.\";\n String RESULT = \"Your note\";\n String WRONG_LOGIN = \"Login is already used.\";\n\n\n}",
"public static void main(String[] args) \r\n\t\r\n\t{\n\t\t\r\n\t\tHashMap<String,String> map=new HashMap<String,String>();\r\n\t\tmap.put(\"UserName\", \"Ajay\");\r\n\t\tmap.put(\"Password\", \"12345\");\r\n\t\t//map.put(\"UserName\", \"Jay\");\t\t\t\t// Key's same, It overwrites the previous value\r\n\t\t\r\n\t\tmap.put(\"Username\", \"Ajay\");\t\t\t\t// Key's different,so it's allowed\r\n\t\t\r\n\t\tString uName =map.get(\"UserName\");\r\n\t\tSystem.out.println(uName);\r\n\t\t\r\n\t\tString uName1 =map.get(\"Username\");\r\n\t\tSystem.out.println(uName1);\r\n\t\t\r\n\r\n\t}",
"public void setUserName(String userName){\n this.userName = userName;\n }",
"public void getUserInformation(String sInformation) {\n try {\n\n JSONObject jsonInfo = new JSONObject (sInformation);\n name = jsonInfo.getJSONObject(\"user\").getString(\"name\");\n email = jsonInfo.getJSONObject(\"user\").getString(\"email\");\n gender = jsonInfo.getJSONObject(\"user\").getString(\"gender\");\n birthday = jsonInfo.getJSONObject(\"user\").getString(\"birthday\");\n address = jsonInfo.getJSONObject(\"user\").getString(\"address_street\");\n num = jsonInfo.getJSONObject(\"user\").getString(\"address_number\");\n city = jsonInfo.getJSONObject(\"user\").getString(\"address_city\");\n zip = jsonInfo.getJSONObject(\"user\").getString(\"address_zip\");\n qrcode = jsonInfo.getJSONObject(\"user\").getString(\"qrcode\");\n puntos = jsonInfo.getJSONObject (\"user\").getString (\"points\");\n\n menuJson = jsonInfo.getJSONObject(\"menu\");\n arrayBeneficios = jsonInfo.getJSONObject(\"user\").getJSONArray(\"benefits\");\n menu = menuJson.toString();\n beneficios = arrayBeneficios.toString();\n\n\n user.setsName (name);\n user.setsEmail (email);\n user.setsSex (gender);\n user.setsBirth (birthday);\n user.setsAddress (address);\n user.setiNumE (Integer.valueOf (num));\n user.setsCity (city);\n user.setiCP (Integer.valueOf (zip));\n user.setsCodigoQR (qrcode);\n user.setPuntos (Integer.valueOf (puntos));\n\n //Se guardan los datos en memoria\n PreferenceUtils.saveEmail (email, this);\n PreferenceUtils.saveName (name, this);\n PreferenceUtils.saveCodigo (qrcode,this);\n PreferenceUtils.savePuntos (Integer.valueOf (puntos), this);\n PreferenceUtils.saveAddress (address + \" \" + num + \", \" + city + \", \" + zip, this);\n PreferenceUtils.saveMenu(menu, this);\n PreferenceUtils.saveBeneficios(beneficios, this);\n\n\n\n }catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void SendInfo(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e(\"SendInfo:\" + _in_data);\r\n\t\ttry {\r\n\t\t\tuserInfo.StringToData(_in_data);\r\n\t\t\t\r\n\t\t\tString extendInfo = new StringBuilder()\r\n\t\t\t.append(\"gameId=\").append(platform.GetData(AttName.APP_ID))\r\n\t\t\t.append(\"&service=\").append(userInfo.GetData(AttName.SERVER_NAME))\r\n\t\t\t.append(\"&role=\").append(userInfo.GetData(AttName.ROLE_ID))\r\n\t\t\t.append(\"&grade=\").append(userInfo.GetData(AttName.ROLE_LEVEL)).toString();\r\n\t\t\tTypeSDKLogger.e(\"extendInfo:\" + extendInfo);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTypeSDKLogger.e(\"上传用户信息:\" + e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n String image = getStringImage(bitmap);\n\n //Creating parameters\n Map<String,String> params = new Hashtable<String, String>();\n\n //Adding parameters\n params.put(\"image\", image);\n params.put(\"userid\",userID);\n params.put(\"jodiUploadImg\",\"\");\n\n //returning parameters\n return params;\n }",
"public void getInitials(){\n saveRecord = (Button) findViewById(R.id.btnSave);\n\n fullName = (EditText) findViewById(R.id.fullname);\n userName = (EditText) findViewById(R.id.username);\n password = (EditText) findViewById(R.id.password);\n profilePic = (ImageView) findViewById(R.id.profile_pic);\n }",
"public CreateNewUserDetails(String sLogin, String sFirstName, \r\n\t\t\tString sLastName, String sPassword, String sEmail)\r\n\t{\r\n\t\t// No language assume English user\r\n\t\tset(sLogin, sFirstName, sLastName, sPassword, sEmail, \"\", \"\", \"\", true);\r\n\t}",
"public UserData(String firstName, String lastName, String patronymic, String email, String phone, int userId) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.patronymic = patronymic;\n this.email = email;\n this.phone = phone;\n this.userId = userId;\n }",
"private void insertUserDetails() {\r\n Retrofit client = API_Client.getApiClient();\r\n ApiInterface api = client.create(ApiInterface.class);\r\n\r\n // Call<Signup_Response_Model> call = api.setUserInfo(setUserDetail());\r\n Call<Signup_Response_Model> call = api.setUserInfo(\r\n SharedPrefrenceManager.getInstance(this).admin_Name(),\r\n preferences.getString(CommonCalls.name, null),\r\n preferences.getString(CommonCalls.fname, null),\r\n preferences.getString(CommonCalls.age, null),\r\n preferences.getString(CommonCalls.dob, null),\r\n preferences.getString(CommonCalls.gender, null),\r\n preferences.getString(CommonCalls.cnic_no, null),\r\n preferences.getString(CommonCalls.cnic_place, null),\r\n preferences.getString(CommonCalls.cnic_expi, null),\r\n preferences.getString(CommonCalls.cast, null),\r\n preferences.getString(CommonCalls.religon, null),\r\n preferences.getString(CommonCalls.contact, null),\r\n preferences.getString(CommonCalls.education, null),\r\n preferences.getString(CommonCalls.skills, null),\r\n preferences.getString(CommonCalls.martial_Status, null),\r\n preferences.getString(CommonCalls.emp_status, null),\r\n preferences.getString(CommonCalls.emp_will, null),\r\n preferences.getInt(CommonCalls.no_male_child, 0) + \"\",\r\n preferences.getInt(CommonCalls.no_female_child, 0) + \"\",\r\n preferences.getString(CommonCalls.availabilit, null),\r\n preferences.getString(CommonCalls.remarks, null),\r\n preferences.getString(CommonCalls.longitude, null),\r\n preferences.getString(CommonCalls.latitude, null),\r\n preferences.getString(CommonCalls.image, null)\r\n\r\n );\r\n\r\n call.enqueue(new Callback<Signup_Response_Model>() {\r\n @Override\r\n public void onResponse(Call<Signup_Response_Model> call, Response<Signup_Response_Model> response) {\r\n if (response.isSuccessful()) {\r\n Signup_Response_Model signup_response_model = response.body();\r\n if (signup_response_model.getSuccess() == 1) {\r\n mDiloge.dismiss();\r\n Toast.makeText(HomeActivity.this, \"Data Added\", Toast.LENGTH_LONG).show();\r\n } else {\r\n mDiloge.dismiss();\r\n Toast.makeText(HomeActivity.this, \"First Insert Data!\", Toast.LENGTH_LONG).show();\r\n }\r\n\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Call<Signup_Response_Model> call, Throwable t) {\r\n Toast.makeText(HomeActivity.this, t.getLocalizedMessage(), Toast.LENGTH_LONG).show();\r\n Toast.makeText(HomeActivity.this, \"Server Response Failure\", Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n\r\n\r\n }",
"public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }",
"public static int checkEmptyField(String addUser, String addPasswordStr, String name, String matricNo, String nationality) throws IOException {\n\t\t \t\t\n\t\tif(addUser.equals(\"\")||addPasswordStr.equals(\"\")||name.equals(\"\")||matricNo.equals(\"\")||nationality.equals(\"\")) {\n\t\t\tSystem.out.println(\"Error, please fill out username or password\");\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"role\", String.valueOf(0));\n params.put(\"mobile\", input_user_mobile.getText().toString());\n params.put(\"password\", input_user_password.getText().toString());\n return params;\n }",
"private void setData() {\n\t\t\n\t\tString str = readInternalStorage();\n\t\tString[] arr = str.split(\"--\");\n\t\tLog.v(\"CONSOLE\", arr.length+\" \"+arr);\n\t\t\n\t\tLog.v(\"CONSOLE\", \"path\"+arr[0]+\n\t\t\t\t\" name \"+arr[1]+\n\t\t\t\t\" date \"+arr[2]+\n\t\t\t\t\" desc \"+arr[3]); \n\t\t\n\t\tString desc =str;\n\t\t\n\t\ttxtName.setText(entity.getName());\n\t\ttxtDate.setText(entity.getDate());\n\t\ttxtDesc.setText(desc);\n\t}",
"void set(File local,String name,UserFileType ft)\n{\n user_file = local;\n if (user_file != null && (name == null || name.length() == 0)) \n name = user_file.getName();\n if (name.startsWith(\"/s6/\")) {\n name = name.substring(4);\n }\n else if (name.startsWith(\"s:\")) {\n name = name.substring(2);\n }\n access_name = name;\n file_mode = ft;\n}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(AppConfig.USER_NAME, name);\n params.put(AppConfig.USER_LAST_NAME, lastname);\n params.put(AppConfig.USER_EMAIL, email);\n params.put(AppConfig.USER_PASSWORD, password);\n params.put(AppConfig.USER_TYPE, typeofuser);\n return params;\n }",
"@Test\n public void test() {\n\t \n String obj1 = \"EMP201\"; \n String obj3 = \"Jackson\";\n String obj5 = \"Bond\";\n String obj7 = \"01/21/1989\";\n String obj9 = \"Male\";\n String obj11= \"jackson@yahoo.com\";\n String obj13 = \"Male\";\n String obj16= \"0172345658\";\n String obj17= \"H.N0 34,Jack Street,Malaysia\";\n String obj19= \"Developer\";\n String obj21= \"ICT\";\n String obj23= \"6000\";\n String obj25=\"02/21/2004\";\n\n /* Error When User enter some other form of value or \n * submit page without any parameter*/\n\n String obj2 = \"EMP201\";\n String obj4 = \"Jackson\";\n String obj6 = \"Bond\";\n String obj8 = \"01/21/1989\";\n String obj10 = \"Male\";\n String obj12= \"jackson@yahoo.com\";\n /*String obj12= \"jackso.com\";*/\n String obj14 = \"Male\";\n String obj15= \"0172345658\";\n /* String obj15= \"\";*/\n String obj18 = \"H.N0 34,Jack Street,Malaysia\";\n String obj20= \"Developer\";\n String obj22 = \"ICT\";\n /*int obj22 = 22;*/\n String obj24= \"6000\";\n String obj26=\"02/21/2004\";\n \n /*Testing paramter when entering values are in correct form*/\n /*assertEquals(obj1, obj2);*/\n assertEquals(obj3, obj4);\n assertEquals(obj5, obj6);\n assertEquals(obj7, obj8);\n assertEquals(obj9, obj10);\n assertEquals(obj11, obj12);\n assertEquals(obj13, obj14);\n assertEquals(obj15, obj16);\n assertEquals(obj17, obj18);\n assertEquals(obj19, obj20);\n assertEquals(obj21, obj22);\n assertEquals(obj23, obj24);\n assertEquals(obj25, obj26); \n \n /*assertNull(obj15);*/\n \n \n \n\n }",
"@Override\n public void onClick(View view) {\n EditText user = (EditText) findViewById(R.id.editTextName);\n EditText em = (EditText) findViewById(R.id.editTextEmail);\n EditText first = (EditText) findViewById(R.id.editTextFirstName);\n EditText last = (EditText) findViewById(R.id.editTextLastName);\n EditText pass = (EditText) findViewById(R.id.editTextPassword);\n EditText confirmpass = (EditText) findViewById(R.id.editTextConfirmPassword);\n\n // convert everything to string\n String username = user.getText().toString();\n String email = em.getText().toString();\n String firstname = first.getText().toString();\n String lastname = last.getText().toString();\n String password = pass.getText().toString();\n String confirmpassword = confirmpass.getText().toString();\n\n boolean check = checkfields(username,email,firstname,lastname,password,confirmpassword);\n\n if (check) {\n Log.i(\"success\", \"all info is correct\");\n\n createPost(username,firstname,lastname,email,password,confirmpassword);\n\n }\n else{\n Log.i(\"Fail\", \"something is not right\");\n }\n\n //Log.i(\"string\", \"name: \" +username);\n //Log.i(\"string generate\", \"email: \" +email);\n }",
"public interface ICreateUser {\n String UserID = \"\";\n String FirstName = \"\";\n String LastName = \"\";\n String Address = \"\";\n \n Integer Age = 0;\n String Gender = \"\";\n String Password = \"\";\n \n public String getUserID();\n public String getUserFirst();\n public String getUserLast();\n public String getUserAdress();\n \n public Integer getUserAge();\n public String getUserGender();\n \n public String GetPassword();\n \n public void setUserID(String ID);\n public void setUserFirst(String First);\n public void setUserLast(String Last);\n public void setUserAdress(String Address);\n public void setUserAge(int Age);\n public void setUserGender(String Gender);\n public void setPassword(String Password);\n \n}",
"private void addTitle() {\n\n if (!TextUtils.isEmpty(nameInput.getText().toString())) {\n\n String id = myRef.push().getKey();\n\n User user = new User(name.getText().toString(), nameInput.getText().toString().trim(), id);\n myRef.child(id).setValue(user);\n\n Toast.makeText(this, \"Job Role updated\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Type job role\", Toast.LENGTH_LONG).show();\n ;\n }\n\n tittle.setText(nameInput.getText().toString());\n\n nameInput.setText(\"\");\n }",
"@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }",
"private void saveUserDetails()\r\n\t{\r\n\t\t/*\r\n\t\t * Retrieve content from form\r\n\t\t */\r\n\t\tContentValues reg = new ContentValues();\r\n\r\n\t\treg.put(UserdataDBAdapter.C_NAME, txtName.getText().toString());\r\n\r\n\t\treg.put(UserdataDBAdapter.C_USER_EMAIL, txtUserEmail.getText()\r\n\t\t\t\t.toString());\r\n\r\n\t\treg.put(UserdataDBAdapter.C_RECIPIENT_EMAIL, lblAddressee.getText()\r\n\t\t\t\t.toString());\r\n\r\n\t\tif (rdbKilo.isChecked())\r\n\t\t{\r\n\t\t\treg.put(UserdataDBAdapter.C_USES_METRIC, 1);\t// , true\r\n\t\t}\r\n\t\telse\r\n\t\t\tif (rdbPound.isChecked())\r\n\t\t\t{\r\n\t\t\t\treg.put(UserdataDBAdapter.C_USES_METRIC, 0);\t// , false\r\n\t\t\t}\r\n\r\n\t\t/*\r\n\t\t * Save content into database source:\r\n\t\t * http://stackoverflow.com/questions/\r\n\t\t * 9212574/calling-activity-methods-from-fragment\r\n\t\t */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tActivity parent = getActivity();\r\n\r\n\t\t\tif (parent instanceof LauncherActivity)\r\n\t\t\t{\r\n\t\t\t\tif (arguments == null)\r\n\t\t\t\t{\r\n\t\t\t\t\t((LauncherActivity) parent).getUserdataDBAdapter().insert(\r\n\t\t\t\t\t\t\treg);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treg.put(UserdataDBAdapter.C_ID, arguments.getInt(\"userId\"));\r\n\r\n\t\t\t\t\t((LauncherActivity) parent).getUserdataDBAdapter().update(\r\n\t\t\t\t\t\t\treg);\r\n\r\n\t\t\t\t\t((LauncherActivity) parent).queryForUserDetails();\r\n\t\t\t\t}\r\n\t\t\t\tToast.makeText(parent, \"User details successfully stored\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\tLog.i(this.getClass().toString(), e.getMessage());\r\n\t\t}\r\n\t}",
"private void saveUserInformation() {\n name.setText(nameInput.getText().toString());\n\n if (name.getText().toString().isEmpty()) {\n name.setError(\"Name required\");\n name.requestFocus();\n return;\n }\n\n FirebaseUser user = mAuth.getCurrentUser();\n if (user != null) {\n if (isBname()) {\n updateName(user);\n }\n if (isBtitle()) {\n updateTitle(user);\n }\n }\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"username\", inputUsername.getText().toString());\n params.put(\"password\", inputPassword.getText().toString());\n\n return params;\n }",
"@Override\n protected Map<String, String> getParams() {\n\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"usercredentials\", usertext);\n params.put(\"userpassword\", userphone);\n params.put(\"userudid\", \"asdfasdf3asdf32sadf3\");\n\n return params;\n }",
"private Users buildLogin( ) {\n\t\t\r\n\t\t return LoginUtil.fillUserData(this.user, this);\r\n\t\t \r\n\t}",
"public void setUserName(String UserName){\r\n\t\tString UsrName = getValue(UserName);\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\r\n\r\n\t\tDate date = new Date();\r\n\r\n\t\tString ldDate=(String) dateFormat.format(date);\r\n\r\n\t\t//String USR = getValue(Username);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+UsrName);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Username should be entered in Login\");\r\n\t\ttry{\r\n\t\t\tif((countrygroup_username).contains(countries.get(countrycount))){\r\n\t\t\t\tsendKeys(locator_split(\"txtRegistrationUniqueUsername\"), UsrName+ldDate);\t\r\n\t\t\t\tSystem.out.println(\"User Name is entered\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Username is entered in username field\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Username is not applicable to \" + country);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Username is not entered in Login field with WebElement \"+elementProperties.getProperty(\"txtUserName\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRegistrationUniqueUsername\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void SendInfo(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e( \"SendInfo:\" + _in_data);\r\n\t\ttry {\r\n\t\t\tuserInfo.StringToData(_in_data);\r\n\t\t\t\r\n\t\t\tString extendInfo = new StringBuilder()\r\n\t\t\t.append(\"gameId=\").append(platform.GetData(AttName.APP_ID))\r\n\t\t\t.append(\"&service=\").append(userInfo.GetData(AttName.SERVER_NAME))\r\n\t\t\t.append(\"&role=\").append(userInfo.GetData(AttName.ROLE_ID))\r\n\t\t\t.append(\"&grade=\").append(userInfo.GetData(AttName.ROLE_LEVEL)).toString();\r\n\t\t\tTypeSDKLogger.e( \"extendInfo:\" + extendInfo);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tTypeSDKLogger.e( \"上传用户信息:\" + e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"public UserData(String name, String password, int credits)\n {\n this.name = name;\n this.password = password;\n this.credits = credits;\n }",
"public void setUser1W_ID (int User1W_ID);",
"public SharePoiParm() {\n\t\t\tname = \"\";\n\t\t\tpoi = \"\";\n\t\t\ttarget = -1;\n\t\t}",
"public void createAccount() {\n\t\t// Assigns variables based on user input\n\t\tString username = usernameField.getText();\n\t\tString firstName = firstNameField.getText();\n\t\tString lastName = lastNameField.getText();\n\t\tString address = addressField.getText();\n\t\tString postCode = postcodeField.getText();\n\t\tString phoneNumber = phoneNumberField.getText();\n\t\tlong phoneNumberLong;\n\t\tif (username.isEmpty() || firstName.isEmpty() || lastName.isEmpty() || address.isEmpty() || postCode.isEmpty()\n\t\t\t\t|| phoneNumber.isEmpty()) { // Checks if number is correct format\n\n\t\t\tAlert alert = new Alert(AlertType.ERROR); // Error message\n\t\t\talert.setTitle(\"Error\");\n\n\t\t\talert.setHeaderText(\"Could not create an user\");\n\t\t\talert.setContentText(\"Make sure you fill all fields and press button again\");\n\t\t\talert.showAndWait();\n\n\t\t\treturn;\n\t\t}\n\n\t\telse {\n\t\t\ttry {\n\t\t\t\tphoneNumberLong = Long.parseLong(phoneNumber);\n\t\t\t} catch (Exception e) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"Wrong format of phone number\");\n\t\t\t\talert.setContentText(\"Please enter correct phone number\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(FileReader.exists(username)) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"User with the username \"+ username +\" already exists. \");\n\t\t\t\talert.setContentText(\"Please choose another username\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString userdata = \"\";\n\t\t\tuserdata += \"\\n Username: \" + username;\n\t\t\tuserdata += \"\\n First name: \" + firstName;\n\t\t\tuserdata += \"\\n Last name: \" + lastName;\n\t\t\tuserdata += \"\\n Address: \" + address;\n\t\t\tuserdata += \"\\n Post code: \" + postCode;\n\t\t\tuserdata += \"\\n Phone number: \" + phoneNumberLong;\n\t\t\t\n\n\t\t\tif(custom) {\n\t\t\t\tavatarIndex = 101;\n\t\t\t\t// Gives users the custom avatar\n\t\t\t\tFile file1 = new File(\"artworkImages/\" + username);\n\t\t\t\tfile1.mkdir();\n\t\t\t\tPath path = Paths.get(\"customAvatars/\" + username + \".png\");\n\t\t\t\tString path1 = \"tmpImg.png\";\n\t\t\t\tFile file = new File(path1);\n\n\t\t\t\ttry {\n\t\t\t\t\tFiles.copy(file.toPath(), path, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUser user = new User(username, firstName, lastName, address, postCode, phoneNumberLong, avatarIndex);\n\t\t\tFileReader.addUser(user); // Creates user\n\n\t\t\ttry {\n\t\t\t\tWriter.writeUserFile(user); // Adds user to memory\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION); // Success message\n\t\t\talert.setTitle(\"Success\");\n\n\t\t\talert.setHeaderText(\"The user has been created\");\n\t\t\talert.setContentText(\"Close this window to return to login screen\");\n\t\t\talert.showAndWait();\n\n\t\t\tcreateAccountButton.getScene().getWindow().hide();\n\t\t}\n\n\t}"
] | [
"0.59784275",
"0.58297175",
"0.5717383",
"0.5696241",
"0.5632285",
"0.5569978",
"0.5556865",
"0.5535564",
"0.5512361",
"0.54796124",
"0.54713553",
"0.54551125",
"0.5453994",
"0.53931206",
"0.53628343",
"0.535432",
"0.53255266",
"0.5306339",
"0.5302597",
"0.5282947",
"0.5280207",
"0.52766633",
"0.52608395",
"0.52398306",
"0.52372324",
"0.5237207",
"0.5231949",
"0.5225062",
"0.52211183",
"0.5220728",
"0.5202436",
"0.5193285",
"0.51831746",
"0.5177018",
"0.516808",
"0.51675916",
"0.5161354",
"0.51551986",
"0.51378524",
"0.51371187",
"0.5129115",
"0.5115963",
"0.5115572",
"0.5112811",
"0.5108011",
"0.51043147",
"0.51011056",
"0.5099768",
"0.5093505",
"0.5086931",
"0.5072075",
"0.50720704",
"0.5069589",
"0.5069589",
"0.5068661",
"0.50686574",
"0.5067652",
"0.50652355",
"0.5060426",
"0.5053141",
"0.50396144",
"0.50369924",
"0.5025409",
"0.5023752",
"0.50130445",
"0.5012622",
"0.5008276",
"0.5003651",
"0.5003583",
"0.50026536",
"0.50011224",
"0.50010943",
"0.5000617",
"0.5000275",
"0.4998793",
"0.49947128",
"0.4992927",
"0.49888316",
"0.49873728",
"0.49859214",
"0.49804544",
"0.49802154",
"0.49791735",
"0.49775854",
"0.49757057",
"0.49736956",
"0.49729064",
"0.49720827",
"0.49716073",
"0.4971304",
"0.49643138",
"0.49595207",
"0.49589932",
"0.4951507",
"0.49509677",
"0.4950099",
"0.4946827",
"0.4942118",
"0.4940595",
"0.49375352",
"0.49351"
] | 0.0 | -1 |
/ DocumentBuilderFactory DocumentBuilder Document | public static Document getXMLDocument(InputStream stream)
throws ParserConfigurationException,
SAXException, IOException {
DocumentBuilderFactory factory = DocumentBuilderFactory
.newInstance();
DocumentBuilder builder = factory
.newDocumentBuilder();
Document document = builder.parse(stream);
return document;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }",
"private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}",
"Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;",
"private static DocumentBuilderFactory getDocumentBuilderFactory(){\r\n\t\tif(documentBuilderFactory == null){\r\n\t\t\tdocumentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n\t\t}\r\n\t\treturn documentBuilderFactory;\r\n\t}",
"public DocumentBuilderFactoryImpl() {\n super();\n }",
"public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }",
"protected static org.w3c.dom.Document setUpXML(String nodeName)\n throws ParserConfigurationException\n {\n //try\n //{\n DocumentBuilderFactory myFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder myDocBuilder = myFactory.newDocumentBuilder();\n DOMImplementation myDOMImpl = myDocBuilder.getDOMImplementation();\n // resultDocument = myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", \"PDFResult\", null);\n org.w3c.dom.Document resultDocument =\n myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", nodeName, null);\n return resultDocument;\n //}\n //catch (ParserConfigurationException e)\n //{\n // e.printStackTrace();\n // return null;\n //}\n\n }",
"public Element generateElement(Document dom);",
"public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n String name = root.getName();\r\n Element element = doc.createElement( name );\r\n doc.appendChild( element );\r\n addElement( doc, element, root );\r\n return doc;\r\n\t}",
"public DocumentBuilderFactory createDocumentBuilderFactory() throws FactoryConfigurationError {\n return DocumentBuilderFactory.newInstance();\n }",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"DocumentRoot createDocumentRoot();",
"public XmlDocumentDefinition() {\n }",
"private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }",
"private Doc(String documentElementName) {\n e = d.createElement(documentElementName);\n d.appendChild(e);\n }",
"Document toXml() throws ParserConfigurationException, TransformerException, IOException;",
"public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }",
"public static void initXMLdoc() throws Exception {\n\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n\tdoc = impl.createDocument(null,null,null);\n }",
"public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"protected synchronized DocumentBuilder getDocumentBuilder() throws ParserConfigurationException {\r\n if (documentBuilder != null) {\r\n return documentBuilder;\r\n } else {\r\n // create the document builder\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n factory.setNamespaceAware(true);\r\n this.documentBuilder = factory.newDocumentBuilder();\r\n return this.documentBuilder;\r\n }\r\n }",
"abstract public void data(Document document, Element rootElement);",
"public XMLDocument() {\r\n xml = new StringBuilder();\r\n }",
"public DocumentManipulator() {\n\t\ttry {\n\t\t\tthis.document = XMLUtils.buildDocument();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException 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} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//-- Init Xpath\n\t\tinit();\n\t}",
"public DOMParser() { ; }",
"private DOMs() {\n }",
"private Document getFragmentAsDocument(CharSequence value)\n/* */ {\n/* 75 */ Document fragment = Jsoup.parse(value.toString(), \"\", Parser.xmlParser());\n/* 76 */ Document document = Document.createShell(\"\");\n/* */ \n/* */ \n/* 79 */ Iterator<Element> nodes = fragment.children().iterator();\n/* 80 */ while (nodes.hasNext()) {\n/* 81 */ document.body().appendChild((Node)nodes.next());\n/* */ }\n/* */ \n/* 84 */ return document;\n/* */ }",
"private Document createXMLDocumentStructure() {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = null;\r\n\t\ttry {\r\n\t\t\tbuilder = dbf.newDocumentBuilder();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Creates the Document\r\n\t\tDocument serviceDoc = builder.newDocument();\r\n\t\t/*\r\n\t\t * Create the XML Tree\r\n\t\t */\r\n\t\tElement root = serviceDoc.createElement(\"service\");\r\n\r\n\t\tserviceDoc.appendChild(root);\r\n\t\treturn serviceDoc;\r\n\t}",
"Object getDocumentNode(Object contextNode);",
"Object create(Element element) throws IOException, SAXException, ParserConfigurationException;",
"ElementDefinition createElementDefinition();",
"@Override\n protected Document parseAsDom(final Document input) {\n return input;\n }",
"public void buildDocument( InputStream is ) {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch ( ParserConfigurationException ex ) {\n Global.warning( \"Parser configuration exception: \" + ex.getMessage() );\n }\n try {\n doc = dBuilder.parse( is );\n } catch ( SAXException ex ) {\n Global.warning( \"SAX parser exception: \" + ex.getMessage() );\n } catch ( IOException ex ) {\n Global.warning( \"IO exception: \" + ex.getMessage() );\n }\n\n }",
"protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }",
"private void Obtengo_el_documento(String inputString) throws ParserConfigurationException, UnsupportedEncodingException, SAXException, IOException {\n DocumentBuilderFactory factory\n = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n\n //\n StringBuilder xmlStringBuilder = new StringBuilder();\n xmlStringBuilder.append(inputString);\n ByteArrayInputStream input = new ByteArrayInputStream(\n xmlStringBuilder.toString().getBytes(\"UTF-8\"));\n \n doc = builder.parse(input);\n \n }",
"public DocumentBuilder newDocumentBuilder()\n throws ParserConfigurationException {\n return(new DocumentBuilderImpl(this.isNamespaceAware(),\n this.isValidating()));\n }",
"private Document initialize() {\r\n Document doc = null;\r\n try {\r\n File file = new File(\"./evidence.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = dbFactory.newDocumentBuilder();\r\n doc = docBuilder.parse(file);\r\n doc.getDocumentElement().normalize();\r\n } catch (ParserConfigurationException | IOException | SAXException e) {\r\n System.err.println(\"Parser failed parse file:\"+e.getMessage());\r\n }\r\n return doc;\r\n }",
"public static Document createNewDocument(String rootName, Version version) {\r\n try {\r\n DocumentBuilder db = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder();\r\n Document doc = db.newDocument();\r\n Node root = doc.createElement(rootName);\r\n if (version != null) {\r\n addAttr(doc, root, \"version\", version);\r\n }\r\n\r\n doc.appendChild(root);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }",
"public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}",
"public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}",
"public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }",
"public static Document newDocument() throws XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\t\t\t\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.newDocument();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"@Property Element getDocumentElement();",
"public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }",
"public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}",
"public static Document getDocument(InputSource in){\t\t\n\t\ttry {\n\t\t\tDocumentBuilderFactory docbuilderf = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docb = docbuilderf.newDocumentBuilder();\n\t\t\treturn docb.parse(in);\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Parseprobleem... Invalide bestand.\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IOException e) {\n\t\t\t// TODO IOException, bestand bestaat niet of doet iets anders.\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Configuratie zou moeten werken\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public static final DocumentBuilderFactory getFactory() {\r\n if (documentFactory == null) {\r\n documentFactory = DocumentBuilderFactory.newInstance();\r\n }\r\n\r\n return documentFactory;\r\n }",
"@DOMSupport(DomLevel.ONE)\r\n@JsMetatype\r\npublic interface Document extends Node {\r\n\t\r\n\r\n\t/**\r\n\t * This is a convenience attribute that allows direct access to the child \r\n\t * node that is the document element of the document.\r\n\t */\r\n\t@Property Element getDocumentElement();\r\n\t\r\n\t/**\r\n\t * An attribute specifying the encoding used for this document at the time of the parsing. \r\n\t * This is null when it is not known, such as when the Document was created in memory.\r\n\t * @return\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@Property String getInputEncoding();\r\n\r\n\t/**\r\n\t * An attribute specifying, as part of the XML declaration, \r\n\t * the encoding of this document. This is null when unspecified or when it is not known, \r\n\t * such as when the Document was created in memory.\r\n\t * @return\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property String getXmlEncoding();\r\n\r\n\t/**\r\n\t * An attribute specifying, as part of the XML declaration, whether this document is standalone. \r\n\t * This is false when unspecified.\r\n\t * @return\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property boolean getXmlStandalone();\r\n\t\r\n\t/**\r\n\t * An attribute specifying, as part of the XML declaration, whether this document is standalone.\r\n\t * @param xmlStandalone\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property void setXmlStandalone(boolean xmlStandalone);\r\n\r\n\t/**\r\n\t * An attribute specifying, as part of the XML declaration, the version number of this document. \r\n\t * If there is no declaration and if this document supports the \"XML\" feature, the value is \"1.0\". \r\n\t * If this document does not support the \"XML\" feature, the value is always null. \r\n\t * Changing this attribute will affect methods that check for invalid characters in XML names. \r\n\t * Application should invoke Document.normalizeDocument() in order to check for invalid characters \r\n\t * in the Nodes that are already part of this Document. \r\n\t * DOM applications may use the DOMImplementation.hasFeature(feature, version) method with \r\n\t * parameter values \"XMLVersion\" and \"1.0\" (respectively) to determine if an implementation \r\n\t * supports [XML 1.0]. DOM applications may use the same method with parameter values \"XMLVersion\" \r\n\t * and \"1.1\" (respectively) to determine if an implementation supports [XML 1.1]. \r\n\t * In both cases, in order to support XML, an implementation must also support the \"XML\" feature \r\n\t * defined in this specification. Document objects supporting a version of the \"XMLVersion\" feature \r\n\t * must not raise a NOT_SUPPORTED_ERR exception for the same version number when using \r\n\t * Document.xmlVersion. \r\n\t * @since DOM Level 3\r\n\t */\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property String getXmlVersion();\r\n\t\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property void setXmlVersion(String xmlVersion);\r\n\r\n\t/**\r\n\t * An attribute specifying whether error checking is enforced or not. \r\n\t * When set to false, the implementation is free to not test every possible error case normally \r\n\t * defined on DOM operations, and not raise any DOMException on DOM operations or report errors \r\n\t * while using Document.normalizeDocument(). In case of error, the behavior is undefined. \r\n\t * This attribute is true by default.\r\n\t * @return\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property boolean getStrictErrorChecking();\r\n\t\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property void setStrictErrorChecking(boolean strictErrorChecking);\r\n\r\n\t/**\r\n\t * The location of the document or null if undefined or if the Document was created using \r\n\t * DOMImplementation.createDocument. No lexical checking is performed when setting this attribute; \r\n\t * this could result in a null value returned when using Node.baseURI. \r\n\t * Beware that when the Document supports the feature \"HTML\" [DOM Level 2 HTML], \r\n\t * the href attribute of the HTML BASE element takes precedence over this attribute \r\n\t * when computing Node.baseURI. \r\n\t * @return\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@Property String getDocumentURI();\r\n\t@DOMSupport( DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})\r\n\t@Property void setDocumentURI(String documentURI);\r\n \r\n\t/**\r\n\t * The configuration used when Document.normalizeDocument() is invoked. \r\n\t * @return\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport(BrowserType.UNDEFINED)\r\n\t@Property DOMConfiguration getDomConfig();\r\n\t\r\n\t /**\r\n * The Document Type Declaration (see DocumentType) associated with this document. \r\n * For XML documents without a document type declaration this returns null. For HTML documents, \r\n * a DocumentType object may be returned, independently of the presence or absence of document type \r\n * declaration in the HTML document. This provides direct access to the DocumentType node, \r\n * child node of this Document. This node can be set at document creation time and later changed \r\n * through the use of child nodes manipulation methods, such as Node.insertBefore, \r\n * or Node.replaceChild. Note, however, that while some implementations may instantiate \r\n * different types of Document objects supporting additional features than the \"Core\", \r\n * such as \"HTML\" [DOM Level 2 HTML], based on the DocumentType specified at creation time, \r\n * changing it afterwards is very unlikely to result in a change of the features supported.\r\n * @return\r\n * @since DOM Level 3\r\n */\r\n @DOMSupport(DomLevel.THREE)\r\n @Property DocumentType getDoctype();\r\n \r\n\t/**\r\n\t * The DOMImplementation object that handles this document. \r\n\t * A DOM application may use objects from multiple implementations.\r\n\t */\r\n @Property DOMImplementation getImplementation();\r\n\r\n\t/**\r\n\t * Creates an element of the type specified. Note that the instance \r\n\t * returned implements the <code>Element</code> interface, so attributes \r\n\t * can be specified directly on the returned object.\r\n\t * <br>In addition, if there are known attributes with default values, \r\n\t * <code>Attr</code> nodes representing them are automatically created \r\n\t * and attached to the element.\r\n\t * <br>To create an element with a qualified name and namespace URI, use \r\n\t * the <code>createElementNS</code> method.\r\n\t * @param tagName The name of the element type to instantiate. For XML, \r\n\t * this is case-sensitive, otherwise it depends on the \r\n\t * case-sensitivity of the markup language in use. In that case, the \r\n\t * name is mapped to the canonical form of that markup by the DOM \r\n\t * implementation.\r\n\t * @return A new <code>Element</code> object with the \r\n\t * <code>nodeName</code> attribute set to <code>tagName</code>, and \r\n\t * <code>localName</code>, <code>prefix</code>, and \r\n\t * <code>namespaceURI</code> set to <code>null</code>.\r\n\t * @exception DOMException\r\n\t * INVALID_CHARACTER_ERR: Raised if the specified name is not an XML \r\n\t * name according to the XML version in use specified in the \r\n\t * <code>Document.xmlVersion</code> attribute.\r\n\t */\r\n @FactoryFunc\r\n\t@Function Element createElement(String tagName);\r\n\r\n\t/**\r\n\t * Creates a <code>Text</code> node given the specified string.\r\n\t * @param data The data for the node.\r\n\t * @return The new <code>Text</code> object.\r\n\t */\r\n\t@Function Text createTextNode(String data);\r\n\r\n\t/**\r\n\t * Returns a <code>NodeList</code> of all the <code>Elements</code> in \r\n\t * document order with a given tag name and are contained in the \r\n\t * document.\r\n\t * @param tagname The name of the tag to match on. The special value \"*\" \r\n\t * matches all tags. For XML, the <code>tagname</code> parameter is \r\n\t * case-sensitive, otherwise it depends on the case-sensitivity of the \r\n\t * markup language in use. \r\n\t * @return A new <code>NodeList</code> object containing all the matched \r\n\t * <code>Elements</code>.\r\n\t */\r\n\t@FactoryFunc\r\n @JsArray(Node.class)\r\n\t@Function NodeList getElementsByTagName(String tagname);\r\n\t\r\n @BrowserSupport({BrowserType.NONE})\r\n @ARename(name = \"getElementsByTagName\")\r\n @JstExclude\r\n @Function NodeList byTag(String tagName);\r\n\r\n\t/**\r\n\t * Imports a node from another document to this document, without altering \r\n\t * or removing the source node from the original document; this method \r\n\t * creates a new copy of the source node. The returned node has no \r\n\t * parent; (<code>parentNode</code> is <code>null</code>).\r\n\t */\r\n @DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_1P, BrowserType.OPERA_7P})\r\n @Function Node importNode(Node importedNode, boolean deep);\r\n\r\n\t/**\r\n\t * Returns the <code>Element</code> that has an ID attribute with the \r\n\t * given value. If no such element exists, this returns <code>null</code>\r\n\t * . If more than one element has an ID attribute with that value, what \r\n\t * is returned is undefined. \r\n\t * <br> The DOM implementation is expected to use the attribute \r\n\t * <code>Attr.isId</code> to determine if an attribute is of type ID. \r\n\t * <p ><b>Note:</b> Attributes with the name \"ID\" or \"id\" are not of type \r\n\t * ID unless so defined.\r\n\t * @param elementId The unique <code>id</code> value for an element.\r\n\t * @return The matching element or <code>null</code> if there is none.\r\n\t * @since DOM Level 2\r\n\t */\r\n @DOMSupport(DomLevel.TWO)\r\n @Function Element getElementById(String elementId);\r\n \r\n @BrowserSupport({BrowserType.NONE})\r\n @ARename(name = \"getElementById\")\r\n @JstExclude\r\n @Function Element byId(String elementId);\r\n\r\n \r\n\t/**\r\n\t * Creates an Attr of the given name. Note that the Attr instance can then be set on an Element \r\n\t * using the setAttributeNode method. To create an attribute with a qualified name and namespace URI, \r\n\t * use the createAttributeNS method.\r\n\t * @param name\r\n\t * @return\r\n\t */\r\n @Function Attr createAttribute(String name);\r\n \r\n\t/**\r\n\t * Creates an element of the given qualified name and namespace URI. Per [XML Namespaces], \r\n\t * applications must use the value null as the namespaceURI parameter for methods \r\n\t * if they wish to have no namespace.\r\n\t * @param namespaceURI\r\n\t * @param qualifiedName\r\n\t * @return\r\n\t * @since DOM Level 2\r\n\t */\r\n @DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})\r\n @Function Element createElementNS(String namespaceURI, String qualifiedName);\r\n \r\n\t/**\r\n\t * Creates an attribute of the given qualified name and namespace URI. Per [XML Namespaces], \r\n\t * applications must use the value null as the namespaceURI parameter for methods \r\n\t * if they wish to have no namespace.\r\n\t * @param namespaceURI\r\n\t * @param qualifiedName\r\n\t * @return\r\n\t * @since DOM Level 2\r\n\t */\r\n @DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})\r\n\t@Function Attr createAttributeNS(String namespaceURI, String qualifiedName);\r\n\r\n\t/**\r\n\t * Returns a NodeList of all the Elements with a given local name and namespace URI in document order.\r\n\t * @param namespaceURI\r\n\t * @param localName\r\n\t * @return\r\n\t * @since DOM Level 2\r\n\t */\r\n\t@DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P, BrowserType.IE_9P})\r\n @JsArray(Node.class)\r\n @FactoryFunc\r\n\t@Function NodeList getElementsByTagNameNS(String namespaceURI, String localName);\r\n \r\n @BrowserSupport({BrowserType.NONE})\r\n @ARename(name = \"getElementsByTagNameNS\")\r\n @JstExclude\r\n @Function NodeList byTagNS(String namespaceURI, String localName);\r\n \r\n\t/**\r\n\t * Creates an EntityReference object. In addition, if the referenced entity is known, \r\n\t * the child list of the EntityReference node is made the same as that of the corresponding Entity node.\r\n\t * @param name\r\n\t * @return\r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Function EntityReference createEntityReference(String name);\r\n \r\n\t/**\r\n\t * Creates a Comment node given the specified string.\r\n\t * @param data\r\n\t * @return\r\n\t */\r\n\t@Function Comment createComment(String data);\r\n\r\n\t/**\r\n\t * Creates a CDATASection node whose value is the specified string.\r\n\t * @param data\r\n\t * @return\r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})\r\n\t@Function CDATASection createCDATASection(String data);\r\n\r\n\t/**\r\n\t * Creates a ProcessingInstruction node given the specified name and data strings.\r\n\t * @param target\r\n\t * @param data\r\n\t * @return\r\n\t */\r\n\r\n\t@DOMSupport(DomLevel.ONE)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})\r\n\t@Function ProcessingInstruction createProcessingInstruction(String target, String data);\r\n \r\n\t/**\r\n\t * Creates an empty DocumentFragment object. \r\n\t * @return\r\n\t */\r\n\t@Function DocumentFragment createDocumentFragment();\r\n\r\n\t/**\r\n\t * Attempts to adopt a node from another document to this document. \r\n\t * If supported, it changes the ownerDocument of the source node, its children, \r\n\t * as well as the attached attribute nodes if there are any. \r\n\t * If the source node has a parent it is first removed from the child list of its parent. \r\n\t * This effectively allows moving a subtree from one document to another (unlike importNode() \r\n\t * which create a copy of the source node instead of moving it). \r\n\t * When it fails, applications should use Document.importNode() instead. \r\n\t * Note that if the adopted node is already part of this document (i.e. the source and \r\n\t * target document are the same), this method still has the effect of removing the source node \r\n\t * from the child list of its parent, if any. \r\n\t * The following list describes the specifics for each type of node. \r\n\t * @param source\r\n\t * @return\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})\r\n\t@Function Node adoptNode(Node source);\r\n\r\n\t/**\r\n\t * This method acts as if the document was going through a save and load cycle, \r\n\t * putting the document in a \"normal\" form. As a consequence, this method updates the \r\n\t * replacement tree of EntityReference nodes and normalizes Text nodes, as defined in \r\n\t * the method Node.normalize(). Otherwise, the actual result depends on the features being set \r\n\t * on the Document.domConfig object and governing what operations actually take place. \r\n\t * Noticeably this method could also make the document namespace well-formed according to \r\n\t * the algorithm described in Namespace Normalization, check the character normalization, \r\n\t * remove the CDATASection nodes, etc. See DOMConfiguration for details. \r\n\t * @since DOM Level 3\r\n\t *\r\n\t */\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@Function void normalizeDocument();\r\n\r\n\t/**\r\n\t * Rename an existing node of type ELEMENT_NODE or ATTRIBUTE_NODE. When possible this simply changes \r\n\t * the name of the given node, otherwise this creates a new node with the specified name \r\n\t * and replaces the existing node with the new node as described below. If simply changing the name of\r\n\t * the given node is not possible, the following operations are performed: a new node is created, \r\n\t * any registered event listener is registered on the new node, any user data attached to the old node \r\n\t * is removed from that node, the old node is removed from its parent if it has one, the children \r\n\t * are moved to the new node, if the renamed node is an Element its attributes are moved to the \r\n\t * new node, the new node is inserted at the position the old node used to have in its parent's \r\n\t * child nodes list if it has one, the user data that was attached to the old node is attached to \r\n\t * the new node.\r\n\t * When the node being renamed is an Element only the specified attributes are moved, \r\n\t * default attributes originated from the DTD are updated according to the new element name. \r\n\t * In addition, the implementation may update default attributes from other schemas. \r\n\t * Applications should use Document.normalizeDocument() to guarantee these attributes are up-to-date. \r\n\t * When the node being renamed is an Attr that is attached to an Element, the node is first removed \r\n\t * from the Element attributes map. Then, once renamed, either by modifying the existing node or \r\n\t * creating a new one as described above, it is put back. In addition,\r\n\t * <ul>\r\n\t * <li>a user data event NODE_RENAMED is fired,</li>\r\n\t * <li>when the implementation supports the feature \"MutationNameEvents\", \r\n\t * each mutation operation involved in this method fires the appropriate event, \r\n\t * and in the end the event {http://www.w3.org/2001/xml-events, DOMElementNameChanged} or \r\n\t * {http://www.w3.org/2001/xml-events, DOMAttributeNameChanged} is fired.</li>\r\n\t * </ul>\r\n\t * @param n\r\n\t * @param namespaceURI\r\n\t * @param qualifiedName\r\n\t * @return\r\n\t * @since DOM Level 3\r\n\t */\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Function Node renameNode(Node n, \r\n String namespaceURI, \r\n String qualifiedName);\r\n\r\n\t/**\r\n\t * The get the last modified date & time of the document. \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getLastModified();\r\n\r\n\t/**\r\n\t * The get the document background color \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getBgColor();\r\n\r\n\t/**\r\n\t * The get the active link color \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getAlinkColor();\r\n\r\n\t/**\r\n\t * The get the visited link color \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getVlinkColor();\r\n\r\n\t/**\r\n\t * The get the link color \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getLinkColor();\r\n\r\n\t/**\r\n\t * The get the protocol \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getProtocol();\r\n\r\n\t/**\r\n\t * The get the cookie \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getCookie();\r\n\r\n\t/**\r\n\t * The get the document fg color \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getFgColor();\r\n\r\n\t/**\r\n\t * The get the state of the document \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getReadyState();\r\n\r\n\t/**\r\n\t * The get the security of the document \r\n\t * \r\n\t */\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property String getSecurity();\r\n\t\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property void setBgColor(String value);\r\n\t\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property void setFgColor(String value);\r\n\t\r\n\t@DOMSupport(DomLevel.ONE)\r\n @Property void setLinkColor(String value);\r\n}",
"public GongDomObject() throws ParserConfigurationException {\r\n super();\r\n \r\n // Remove the previous anchor\r\n Document document = getDocument();\r\n document.removeChild(document.getDocumentElement());\r\n \r\n // Create the default anchor element\r\n anchor = document.createElementNS(XmlConstants.NAMESPACE_URI, getTag().toString());\r\n document.appendChild(anchor);\r\n }",
"@Override\n protected abstract Document parseAsDom(final T input) throws ConversionException;",
"public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }",
"public abstract WalkerDocument newDocument(IOptions options);",
"public static DocumentBuilder getXMLBuilder() {\n\n return getXMLBuilder( false, true, false, false, false, false, false, null );\n }",
"public abstract XMLDocument parse(URL url);",
"public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }",
"Element createElement();",
"private static Document parseXML(InputStream stream) throws Exception {\n DocumentBuilderFactory objDocumentBuilderFactory = null;\n DocumentBuilder objDocumentBuilder = null;\n Document doc = null;\n try {\n objDocumentBuilderFactory = DocumentBuilderFactory.newInstance();\n objDocumentBuilder = objDocumentBuilderFactory.newDocumentBuilder();\n doc = objDocumentBuilder.parse(stream);\n } catch (Exception ex) {\n throw ex;\n }\n return doc;\n }",
"protected abstract Element toXmlEx(Document doc);",
"@Override\n @NotNull\n public XmlDocument getDocument() {\n final XmlDocument document = findChildByClass(XmlDocument.class);\n assert document != null;\n return document;\n }",
"public interface SDXHelper {\n /**\n * Creates a DOM <CODE>Element</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element. The attributes stored by\n * the SAX object are retrieved and set to the created DOM object.\n *\n * @param namespaceURI The namespace URI for the new element\n * @param localName The local name for the new element\n * @param qualifiedName The qualified name for the new element\n * @param attributes The attributes for the new element\n * @param parent The parent for the new element or\n * <CODE>null</CODE> if this is a root element\n * @return The created DOM <CODE>Element</CODE>\n */\n public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);\n\n /**\n * Creates a DOM <CODE>Text</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>Text</CODE> node. In other words, this method doesn't allow\n * the creation of adjacent <CODE>Text</CODE> nodes and creates\n * a <CODE>Text</CODE> node only when this is necessary.\n *\n * @param data The character data for the text node\n * @param parent The parent for the text node\n * @return The created or existent <CODE>Text</CODE> node\n */\n public Text createTextNode(String data, Element parent);\n\n /**\n * Creates a DOM <CODE>CDATASection</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element or just appends the data\n * to the last child of <CODE>parent</CODE> if that last child is\n * a <CODE>CDATASection</CODE> node and <CODE>newCDATA</CODE> is\n * <CODE>false</CODE>. In other words, this method avoids the creation\n * of adjacent <CODE>CDATASection</CODE> nodes and creates a\n * <CODE>CDATASection</CODE> node only when this is necessary or required.\n *\n * @param data The character data for the CDATA section\n * @param newCDATA Indicates the beginning of a new CDATA section\n * @param parent The parent for the CDATA section\n * @return The created or existent\n * <CODE>CDATASection</CODE> node\n */\n public CDATASection createCDATASection(String data, boolean newCDATA,\n Element parent);\n\n /**\n * Creates a DOM <CODE>ProcessingInstruction</CODE> node and appends it\n * as a child to the given <CODE>parent</CODE> element.\n *\n * @param target The target for the new processing instruction\n * @param data The data for the new processing instruction\n * @param parent The parent for the new processing instruction\n * @return The created <CODE>ProcessingInstruction</CODE>\n */\n public ProcessingInstruction createProcessingInstruction(\n String target, String data, Element parent);\n\n /**\n * Creates a DOM <CODE>Comment</CODE> node and appends it as a child\n * to the given <CODE>parent</CODE> element.\n *\n * @param data The data for the new comment\n * @param parent The parent for the new comment\n * @return The created <CODE>Comment</CODE> node\n */\n public Comment createComment(String data, Element parent);\n}",
"public DocumentNode getDocumentNode() {\n return documentNode;\n}",
"public DocumentBuilder() {\n this.document = new Document();\n }",
"public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);",
"void readXML(Element elem) throws XMLSyntaxError;",
"Element toXML();",
"private static Document initializeXML(String filePath) throws Exception {\n\t\ttry {\n\t\t\tlogger.info(\"Initializing the xml file :\" + filePath);\n\t\t\txmlDocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(filePath));\n\t\t\txmlDocument.getDocumentElement().normalize();\n\t\t\treturn xmlDocument;\n\t\t} catch (Exception e) {\n\n\t\t\tlogger.error(\"Error while reading from XML. File Path : \" + filePath + \" \\n\" + e.getMessage());\n\t\t\tthrow (new Exception(e.getMessage()));\n\n\t\t}\n\t}",
"public TrecWebDocument() {\r\n try {\r\n startTag = XML_START_TAG.getBytes(\"utf-8\");\r\n endTag = XML_END_TAG.getBytes(\"utf-8\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public WalkerDocument newDocument() { return newDocument((IOptions)null); }",
"public static Document parse(InputStream in) throws ParserConfigurationException, SAXException, IOException {\n\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\t \n\n\t return db.parse(in);\n\t }",
"void visitDocumentNode(DocumentNode node);",
"public interface XMLizable {\n\n /**\n * Write this element as an XML DOM element.\n */\n Element toXML();\n\n /**\n * Read this element as the content of the given element.\n */\n void readXML(Element elem) throws XMLSyntaxError;\n}",
"private static Document convertStringToDocument(String xmlStr) {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n DocumentBuilder builder; \n try \n { \n builder = factory.newDocumentBuilder(); \n Document doc = builder.parse( new InputSource( new StringReader( xmlStr ) ) ); \n return doc;\n } catch (Exception e) { \n e.printStackTrace(); \n } \n return null;\n }",
"public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }",
"public abstract void startElement( String namespaceURI, String sName, String qName, Attributes attrs );",
"public static DocumentBuilderFactory getSecuredDocumentBuilder() {\n\n org.apache.xerces.impl.Constants Constants = null;\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n dbf.setXIncludeAware(false);\n dbf.setExpandEntityReferences(false);\n try {\n dbf.setFeature(Constants.SAX_FEATURE_PREFIX + Constants.EXTERNAL_GENERAL_ENTITIES_FEATURE, false);\n dbf.setFeature(Constants.SAX_FEATURE_PREFIX + Constants.EXTERNAL_PARAMETER_ENTITIES_FEATURE, false);\n dbf.setFeature(Constants.XERCES_FEATURE_PREFIX + Constants.LOAD_EXTERNAL_DTD_FEATURE, false);\n } catch (ParserConfigurationException e) {\n log.error(\n \"Failed to load XML Processor Feature \" + Constants.EXTERNAL_GENERAL_ENTITIES_FEATURE + \" or \" +\n Constants.EXTERNAL_PARAMETER_ENTITIES_FEATURE + \" or \" + Constants.LOAD_EXTERNAL_DTD_FEATURE);\n }\n\n org.apache.xerces.util.SecurityManager securityManager = new SecurityManager();\n securityManager.setEntityExpansionLimit(ENTITY_EXPANSION_LIMIT);\n dbf.setAttribute(Constants.XERCES_PROPERTY_PREFIX + Constants.SECURITY_MANAGER_PROPERTY, securityManager);\n\n return dbf;\n }",
"private static Document doDomFromString(String S,DocumentBuilder dBuilder)\n throws Exception{\n InputSource is = new InputSource(new StringReader(S));\n return dBuilder.parse(is);\n }",
"protected RCPOMDocument() {\n\t}",
"@org.junit.Test\n public void constrCompelemDoc1() {\n final XQuery query = new XQuery(\n \"element elem {., .}\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertSerialization(\"<elem><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root><root><child1><a>text</a><!--comment--><?pi content?></child1><child2><a>text</a><!--comment--><?pi content?></child2></root></elem>\", false)\n );\n }",
"DocumentFragment getXML(String path)\n throws ProcessingException ;",
"public Document parse(String xmlString) {\n \n Document document = null;\n try { \n //DOM parser instance\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n //parse an XML file into a DOM tree\n document = builder.parse( new InputSource( new StringReader( xmlString ) ) ); \n \n } catch (ParserConfigurationException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SAXException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(DOMParser.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return document;\n }",
"@Override\n\tpublic final Element getDocumentElement() {\n\t\treturn LocalDom.nodeFor(getDocumentElement0());\n\t}",
"@Test\n public void test_TCM__OrgJdomDocument_getDocument() {\n final Attribute attribute = new Attribute(\"test\", \"value\");\n assertNull(\"attribute returned document when there was none\", attribute.getDocument());\n\n final Element element = new Element(\"element\");\n element.setAttribute(attribute);\n assertNull(\"attribute returned document when there was none\", attribute.getDocument());\n\n final Document document = new Document(element);\n\n assertEquals(\"invalid document\", attribute.getDocument(), document);\n }",
"private Node getCompanyElements(Document doc, Element element, String name, String value) {\r\n Element node = doc.createElement(name);\r\n node.appendChild(doc.createTextNode(value));\r\n return node;\r\n }",
"public static Document getDocument(InputStream in){\t\t\n\t\ttry {\n\t\t\tDocumentBuilderFactory docbuilderf = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docb = docbuilderf.newDocumentBuilder();\n\t\t\treturn docb.parse(in);\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Parseprobleem... Invalide bestand.\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IOException e) {\n\t\t\t// TODO IOException, bestand bestaat niet of doet iets anders.\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Configuratie zou moeten werken\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public static XMLDocument create()\n {\n return new XMLDocument();\n }",
"public Document readDocument();",
"public XMLDocument (double version)\r\n\t{\r\n\t\tthis (version, true);\r\n\t}",
"protected Document() {/* intentionally empty block */}",
"public static void main(String[] args) throws JDOMException, IOException, IllegalArgumentException, FeedException {\n\t\tInputStream in = new BufferedInputStream(\n\t new FileInputStream(args[0]));\n\t SAXBuilder builder = new SAXBuilder();\n\t Document doc = builder.build(in);\n\t \n\t \n\t Element root = doc.getRootElement();\n\t System.out.println(root);\n\t System.out.println(root.getName());\n\t System.out.println(root.getChildren());\n\t \n\t //java.util.List αντικείμενο που περιέχει 3 Element αντικείμενα\n\t \n\t}",
"@Override\n\t\t\t\tpublic void startDocument() throws SAXException {\n\t\t\t\t\tsuper.startDocument();\n\t\t\t\t\tbuilder = new StringBuilder();\n\t\t\t\t}",
"private static Document parseXmlFile(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n } catch (SAXException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public PropertiesDocument() {\n\t\tthis.documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n\t\t\tthis.documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Exception with default configuration\n\t\t\te.printStackTrace();\n\t\t}\n this.properties = new Properties();\n\t}",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n // <document>\n if (localName.equals(\"document\")) {\n curArticle = new ArticleSmallOpinion();\n curTagiot = new ArrayList<Tagit>();\n\n // add values\n if (atts.getValue(\"doc_id\") != null) curArticle.setDoc_id(atts.getValue(\"doc_id\"));\n if (atts.getValue(\"title\") != null) curArticle.setTitle(atts.getValue(\"title\"));\n if (atts.getValue(\"sub_title\") != null) curArticle.setSubTitle(atts.getValue(\"sub_title\"));\n if (atts.getValue(\"f7\") != null) curArticle.setF7(atts.getValue(\"f7\"));\n String author = atts.getValue(\"author_icon\");\n author = extractImageUrl(author);\n if (atts.getValue(\"author_icon\") != null) curArticle.setAuthorImgURL(author);\n if (atts.getValue(\"Created_On\") != null) curArticle.setCreatedOn(atts.getValue(\"Created_On\"));\n\n }\n // <f2>\n else if (localName.equals(\"f2\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF2(atts.getValue(\"src\"));\n\n // currently not holding image photographer via \"title=\"\n }\n // <f3>\n if (localName.equals(\"f3\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF3(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <f4>\n else if (localName.equals(\"f4\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF4(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <tagit>\n else if (localName.equals(\"tagit\")) {\n Tagit tagit = new Tagit(atts.getValue(\"id\"), atts.getValue(\"simplified\"), \"\");\n curTagiot.add(tagit);\n }\n\n }",
"public void startDocument()\n throws SAXException {\n newContent = new StringBuffer();\n // TODO: what is the proper way to set this?\n newContent.append(\"<?xml version=\\\"1.0\\\"?>\");\n }",
"private static Document createCopiedDocument(Document originalDocument) {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db;\n Document copiedDocument = null;\n try {\n db = dbf.newDocumentBuilder();\n Node originalRoot = originalDocument.getDocumentElement();\n copiedDocument = db.newDocument();\n Node copiedRoot = copiedDocument.importNode(originalRoot, true);\n copiedDocument.appendChild(copiedRoot);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return copiedDocument;\n }",
"private Document parse(String path) throws DocumentException, MalformedURLException {\n File file = new File(path);\r\n SAXReader saxReader = new SAXReader();\r\n return saxReader.read(file);\r\n }",
"private DirectedGraph<String, SumoEdge> parseDocument(Document dom) {\n\t\tDirectedGraph<String, SumoEdge> newGraph = new DefaultDirectedWeightedGraph<String, SumoEdge>(SumoEdge.class);\n\t\tElement root = dom.getDocumentElement();\n\t\t\n\t\tNodeList edges = root.getElementsByTagName(\"edge\");\n\t\t\n\t\tfor (int i = 0; i < edges.getLength(); ++i) {\n\t\t\tElement edge = (Element) edges.item(i);\n\t\t\t\n\t\t\t// Skip internal edges\n\t\t\tif (edge.getAttribute(\"function\").equals(\"internal\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tString id = edge.getAttribute(\"id\");\n\t\t\t\n\t\t\tdouble weight = 1.0;\n\n\t\t\tNodeList childs = edge.getElementsByTagName(\"lane\");\n\t\t\tif (childs.getLength() > 0) {\n\t\t\t\tElement lane = (Element) childs.item(0);\n\t\t\t\tweight = Double.parseDouble(lane.getAttribute(\"length\"));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tString from = edge.getAttribute(\"from\");\n\t\t\tString to = edge.getAttribute(\"to\");\n\t\t\t\n\t\t\tnewGraph.addVertex(from);\n\t\t\tnewGraph.addVertex(to);\n\t\t\t\n\t\t\tSumoEdge sumoEdge = new SumoEdge(id, weight);\n\t\t\tnewGraph.addEdge(from, to, sumoEdge);\n\t\t\tidToEdge.put(id, sumoEdge);\n\t\t}\n\t\t\n\t\treturn newGraph;\n\t}",
"public static org.dom4j.Document convert( org.w3c.dom.Document dom) \r\n {\n org.dom4j.io.DOMReader reader = new org.dom4j.io.DOMReader();\r\n return reader.read(dom);\r\n }",
"protected DocumentBuilder getBuilder() {\n /** @todo check for rentrency problems when reusing the parser **/\n if (builder == null) {\n try {\n builder = Parser.getDocumentBuilder(new ParserErrorHandler());\n }\n catch (ParserConfigurationException ex) {\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n }\n return builder;\n }",
"private static interface DefDocumentProcessor\n\t{\n\t\t/**\n\t\t * Called for every element found during processing of the s.t.\n\t\t * path.\n\t\t * @param documentPath an abstract pathname of the document\n\t\t * @throws XMLFormatException if document appears to be corrupted\n\t\t */\n\t\tvoid processElement(File documentPath) \n\t\t\tthrows XMLFormatException;\n\t}"
] | [
"0.71305245",
"0.7036123",
"0.69805557",
"0.693676",
"0.6860597",
"0.6724085",
"0.66122705",
"0.6566312",
"0.65637374",
"0.64894956",
"0.64786744",
"0.64786744",
"0.64786744",
"0.64786744",
"0.64589024",
"0.64447623",
"0.6420588",
"0.6379153",
"0.63753116",
"0.63409066",
"0.63389564",
"0.63281035",
"0.6324758",
"0.62383586",
"0.61916363",
"0.61846143",
"0.6152326",
"0.61247885",
"0.6099753",
"0.6058281",
"0.6044328",
"0.60391337",
"0.60259616",
"0.59608316",
"0.5861878",
"0.58612615",
"0.5857089",
"0.5824169",
"0.58236456",
"0.58084005",
"0.5792518",
"0.5788534",
"0.5785361",
"0.57813776",
"0.57783884",
"0.5777522",
"0.5762516",
"0.5755861",
"0.5751544",
"0.57467645",
"0.5733637",
"0.57225764",
"0.5719908",
"0.5706683",
"0.56756514",
"0.56457675",
"0.56200546",
"0.56076944",
"0.55995584",
"0.5581796",
"0.5577541",
"0.5572899",
"0.556576",
"0.553499",
"0.553327",
"0.55182385",
"0.55092156",
"0.5493969",
"0.54916775",
"0.5491035",
"0.54793864",
"0.5476052",
"0.5469376",
"0.5466366",
"0.54662454",
"0.54647344",
"0.54606515",
"0.54463536",
"0.54108846",
"0.5406272",
"0.54052126",
"0.5391143",
"0.53884524",
"0.5387718",
"0.5387144",
"0.5383798",
"0.5381834",
"0.5378662",
"0.5374474",
"0.53743255",
"0.5370268",
"0.5362413",
"0.5358979",
"0.5356987",
"0.53559",
"0.5355613",
"0.535431",
"0.53444934",
"0.5342296",
"0.5342083",
"0.5334598"
] | 0.0 | -1 |
Methods: Getter method for the COM property "Application" | @VTID(7)
com.exceljava.com4j.excel._Application getApplication(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(12)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getApplication();",
"@DISPID(148)\n @PropGet\n excel._Application getApplication();",
"@DISPID(148)\n @PropGet\n com.exceljava.com4j.excel._Application getApplication();",
"public String getApplication() {\r\n\t\treturn application;\r\n\t}",
"public String getApplication() {\r\n return application;\r\n }",
"@VTID(7)\r\n excel._Application getApplication();",
"Application getApplication();",
"public TApplication getApplication() {\n return window.getApplication();\n }",
"@VTID(7)\n excel._Application getApplication();",
"public Application getApplication() {\n return (Application)this.getSource();\n }",
"protected Application getApplication() {\r\n\t\treturn application;\r\n\t}",
"public com.atomgraph.linkeddatahub.apps.model.Application getApplication()\n {\n return (com.atomgraph.linkeddatahub.apps.model.Application)getContainerRequestContext().getProperty(LAPP.Application.getURI());\n }",
"public Application getApp() {\n\t\treturn app;\n\t}",
"@DISPID(1000) //= 0x3e8. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n word._Application application();",
"@DISPID(1000) //= 0x3e8. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n word._Application application();",
"@DISPID(1610743808) //= 0x60020000. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject application();",
"public SmartApplication getSmartApplication() {\r\n\t\treturn application;\r\n\t}",
"public static MIDLetParamsApp getApplication() {\n return Application.getInstance(MIDLetParamsApp.class);\n }",
"protected ApplicationComponent getApplicationComponent() {\n return ((MainApp) getApplication()).getApplicationComponent();\n }",
"public MauiApplication getApplication ()\n\t{\n\t\treturn application;\n\t}",
"public Optional<ApplicationVersion> application() { return application; }",
"public String getApp();",
"public int getApplication() {\n\treturn com.hps.july.constants.Applications.DICTIONARY;\n}",
"public String getApplicationName() {\n return applicationName;\n }",
"@Override\n\tpublic String getApp() {\n\t\tthrow new UnsupportedOperationException(\"Not supported yet.\");\n\t}",
"public String getApplicationName() {\r\n\t\treturn applicationName;\r\n\t}",
"public java.lang.String getApplicationID() {\r\n return applicationID;\r\n }",
"public String getApplicationdata() {\r\n return applicationdata;\r\n }",
"public static Application getApp() {\n if (sApplication != null) return sApplication;\n throw new NullPointerException(\"u should init first\");\n }",
"public ApplicationInfo getApplicationInfo() {\n return null;\n }",
"@Key(\"application.component\")\n\tString applicationComponent();",
"public org.thethingsnetwork.management.proto.HandlerOuterClass.Application getApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.ApplicationIdentifier request);",
"public Vector getApplicationProperties() {\n return appProperties;\n }",
"@DISPID(3) //= 0x3. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n visiotool.IVApplication application();",
"public String getApplicationID() {\n return applicationID;\n }",
"public BuilderApplication getApp() {\n\t\treturn app;\n\t}",
"public static ApplicationComponent component() {\n return instance().applicationComponent;\n }",
"AdminApplication getApplication();",
"public String getAppName( )\n\t{\n\t\treturn appName;\n\t}",
"public java.lang.String getApplicationId() {\r\n return applicationId;\r\n }",
"public String getAppName() {\n\t\treturn appName;\n\t}",
"public String getAppName();",
"public static ApplicationBase getApplication()\r\n {\r\n if (instance == null)\r\n {\r\n throw new IllegalStateException(\"Micgwaf was not (yet) initialized correctly: no instance of Application is known.\");\r\n }\r\n return instance;\r\n }",
"public String getApplicationPresentation() {\n\t\treturn this.getApplicationName() + \" \" + this.getVersion();\n\t}",
"public static Application getApp() {\n if (sApplication != null) {\n return sApplication;\n }\n Application app = getApplicationByReflect();\n init(app);\n return app;\n }",
"@Nullable\n Application getApplication(String name);",
"public OSPApplication getOSPApp();",
"public String getAppCode()\n\t{\n\t\treturn appCode;\n\t}",
"abstract public String getApplicationName();",
"public List<Application> getApplications()\n {\n return _apps;\n }",
"public static Application getInstance(){\n\t\treturn getInstance (null);\n\t}",
"public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}",
"public String getProducerApplication();",
"public static App getInstance() {\n return applicationInstance;\n }",
"public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}",
"public int getApplications() {\r\n return applications;\r\n }",
"public static InteractiveApp getApp() {\n return (InteractiveApp) ApplicationInstance.getActive();\n }",
"public String getAppId()\r\n {\r\n return getSemanticObject().getProperty(data_appId);\r\n }",
"public void setApplication(AppW app) {\n\t\tthis.app = app;\n\t}",
"public Application getOwningApplication()\r\n\t{\r\n\t\treturn owningApplication;\r\n\t}",
"public String getApplicationPath()\n {\n return getApplicationPath(false);\n }",
"public void setApplication(String application) {\r\n this.application = application;\r\n }",
"public String getApplicationTitle() {\n return applicationTitle.get();\n }",
"public String getTozApplicationName() {\n return (tozApplicationName);\n }",
"java.lang.String getAppName();",
"java.lang.String getAppName();",
"java.lang.String getAppName();",
"@AutoEscape\n\tpublic String getAppName();",
"public Boolean applicationMap() {\n return this.applicationMap;\n }",
"public ApplicationInfo getApplicationInfo() {\n return getActivityInfo().applicationInfo;\n }",
"public static FFTApp getApplication() {\n return Application.getInstance(FFTApp.class);\n }",
"public static BlaiseGraphicsTestApp getApplication() {\n return Application.getInstance(BlaiseGraphicsTestApp.class);\n }",
"public void setApplication(String application) {\r\n\t\tthis.application = application;\r\n\t}",
"public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }",
"public ApplicationVersion getApplicationVersion() {\n\t\treturn applicationVersion;\n\t}",
"public static GretellaApp getApplication() {\n return Application.getInstance(GretellaApp.class);\n }",
"String getComponentAppId();",
"public String getAppID() {\n return appID;\n }",
"public static ApplicationOptions getOptions (){\n\t\treturn _applicationOptions;\n\t}",
"public void setApp(PR1 application){\n this.application = application;\n }",
"public List<Application> getVisibleApplications() {\n return null;\r\n }",
"public String getPortletApplicationName() {\n if(this.portletID != null) {\n return portletID.getPortletApplicationName();\n }\n return null;\n }",
"@OAMany(toClass = Application.class, reverseName = Application.P_ApplicationType, createMethod = false)\n\tprivate Hub<Application> getApplications() {\n\t\treturn null;\n\t}",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }",
"public String getAppExt1() {\n return appExt1;\n }",
"@XmlElement(required = true)\n public List<Application> getApplications() {\n return applications;\n }",
"@Override\n\tpublic String getAppId() {\n\t\treturn app.getAppId();\n\t}",
"@Override\r\n//\tpublic Application getModel() {\r\n//\n//\t\treturn application;\r\n//\t}\r\n\t\r\n\tpublic Application getModel() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn application;\r\n\t}",
"public String getApplicationName() {\n\t\treturn this.properties.getProperty(SoundLooperProperties.KEY_APPLICATION_NAME, \"UNKNOW\");\n\t}",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n }\n }",
"@Override\n\tpublic java.lang.String getAppType() {\n\t\treturn _scienceApp.getAppType();\n\t}",
"public Object getApplication(String attibuteName) {\n return servletRequest.getServletContext().getAttribute(attibuteName);\n }",
"public java.lang.String getAppName() {\n java.lang.Object ref = appName_;\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 appName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setApp(Main application) { this.application = application;}"
] | [
"0.8436414",
"0.7911141",
"0.7875809",
"0.78544605",
"0.78495836",
"0.778835",
"0.7618604",
"0.75866824",
"0.75064427",
"0.7501411",
"0.74937034",
"0.74443465",
"0.7432374",
"0.72774047",
"0.72774047",
"0.7196444",
"0.7090742",
"0.7086743",
"0.7028636",
"0.7010568",
"0.6944256",
"0.6808046",
"0.68071246",
"0.6775492",
"0.67642",
"0.67097855",
"0.6670274",
"0.66279304",
"0.6612744",
"0.656204",
"0.65345377",
"0.6516197",
"0.64964217",
"0.6485926",
"0.6479877",
"0.6441389",
"0.64199364",
"0.64124876",
"0.64118755",
"0.63325584",
"0.6332204",
"0.6293119",
"0.62667686",
"0.6247328",
"0.6222915",
"0.62157106",
"0.6214718",
"0.62131906",
"0.62014705",
"0.62000114",
"0.6188097",
"0.6177318",
"0.6161842",
"0.6152456",
"0.6135415",
"0.6112317",
"0.60903925",
"0.60643315",
"0.60571074",
"0.60528886",
"0.6045476",
"0.60450596",
"0.6043548",
"0.6043374",
"0.60101706",
"0.60101706",
"0.60101706",
"0.5994046",
"0.5993552",
"0.59918463",
"0.59840184",
"0.597488",
"0.59541994",
"0.5952701",
"0.59475684",
"0.59431845",
"0.5905022",
"0.58939874",
"0.58893126",
"0.58883834",
"0.5875077",
"0.5874958",
"0.58744717",
"0.58700544",
"0.58700544",
"0.5868746",
"0.5867865",
"0.58655155",
"0.58611816",
"0.5859402",
"0.5857876",
"0.5857876",
"0.5856446",
"0.58558667",
"0.58546317",
"0.5838231",
"0.5835419"
] | 0.7549122 | 11 |
Getter method for the COM property "Creator" | @VTID(8)
com.exceljava.com4j.excel.XlCreator getCreator(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCreator() {\n return getProperty(Property.CREATOR);\n }",
"public String getCreator()\n\t{\n\t\treturn null;\n\t}",
"public String getCreator() {\r\n return creator;\r\n }",
"public String getCreator() {\r\n return creator;\r\n }",
"public String getCreator() {\n return this.creator;\n }",
"public String getCreator() {\n\t\treturn creator;\n\t}",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public String getCreator() {\n return creator;\n }",
"public abstract String getCreator();",
"@DISPID(149)\n @PropGet\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(13)\r\n int getCreator();",
"@VTID(8)\r\n excel.XlCreator getCreator();",
"public java.lang.String getCreatorName() {\n return creatorName;\n }",
"public Integer getCreator() {\n return creator;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"public String getCreatorCode() {\n return creatorCode;\n }",
"@VTID(8)\n excel.XlCreator getCreator();",
"@DISPID(149)\n @PropGet\n excel.XlCreator getCreator();",
"public Long getCreator() {\n return creator;\n }",
"public String getCreatorGuid() {\n return creatorGuid;\n }",
"@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();",
"@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();",
"public String getCreatorId() {\n return this.CreatorId;\n }",
"public SystemUserBO getCreator()\n {\n if (_creator == null)\n {\n _creator = new SystemUserBO(_model.getCreator());\n }\n return _creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public void setCreator(String creator) {\n this.creator = creator;\n }",
"public IIID getCreatorIID()\n throws ORIOException;",
"public String getCreatorId() {\n return creatorId;\n }",
"public String getCreatorId() {\n return creatorId;\n }",
"public java.lang.Integer getCreatorId() {\n return creatorId;\n }",
"public WhoAmI getCreatorID() {\r\n\t\treturn myCreatorId;\r\n\t}",
"public void setCreator(String creator) {\n\t\tthis.creator = creator;\n\t}",
"public void setCreator(Integer creator) {\n this.creator = creator;\n }",
"String getCreatorId();",
"public Date getCreatorDate() {\n return creatorDate;\n }",
"public User getCreator() {\n return this.creator;\n }",
"@Override\n protected String getCreatorDisplayName() {\n try {\n // DAV:creator-displayname -> use jcr:createBy if present.\n if (exists() && ((Node) item).hasProperty(Property.JCR_CREATED_BY)) {\n return ((Node) item).getProperty(Property.JCR_CREATED_BY).getString();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:createdBy property\");\n }\n\n // fallback\n return super.getCreatorDisplayName();\n }",
"public String getCreatorAt(int i){\n return creator[i];\n }",
"public static boolean hasComponentCreator() {\n return sCreator != null;\n }",
"public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }",
"public void setCreator(String creator) {\r\n this.creator = creator == null ? null : creator.trim();\r\n }",
"public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }",
"public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }",
"public void setCreator(String creator) {\n this.creator = creator == null ? null : creator.trim();\n }",
"public void setCreator(Long creator) {\n this.creator = creator;\n }",
"protected Creator getCreator(ObjectInformation objectInformation) {\n\n return getCreatorRegistry().getCreator(objectInformation.getClazz(), objectInformation.getField());\n }",
"public ParseUser getCreator() {\n try {\n return fetchIfNeeded().getParseUser(\"creator\");\n }\n catch(ParseException e) {\n Log.d(TAG, \"Error in retrieving the creator: \" + e);\n return null;\n }\n }",
"public IUser getCreatorObject()\n throws OculusException;",
"public void setCreatorName(String creatorName) {\n this.creatorName = creatorName;\n }",
"public void addCreator(String value) {\n/* 106 */ addStringToSeq(\"creator\", value);\n/* */ }",
"public String getClCreateBy() {\r\n\t\treturn clCreateBy;\r\n\t}",
"public static DesignViewCreatorForExternal getDefault() {\n\t\tif(creator == null){\n\t\t\tcreator = new DesignViewCreatorForExternal();\n\t\t\tversions = new Hashtable();\n\t\t}\n\t\treturn creator;\n\t}",
"public IBusinessObject setCreatorIID(IIID creator)\n throws ORIOException;",
"public String getCreater() {\n\t\treturn creater;\n\t}",
"public String getCreater() {\n\t\treturn creater;\n\t}",
"public String getCreateAuthor() {\n return createAuthor;\n }",
"public Calendar getCreationDate() throws IOException {\n/* 238 */ return getCOSObject().getDate(COSName.CREATION_DATE);\n/* */ }",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }",
"public void setCreatorGuid(String creatorGuid) {\n this.creatorGuid = creatorGuid;\n }",
"public void setCreatorName(java.lang.String creatorName) {\n this.creatorName = creatorName;\n }",
"public void setCreatorId(String CreatorId) {\n this.CreatorId = CreatorId;\n }",
"@Override\r\n\tpublic String creatorType() {\n\t\treturn \"ShapeViewer\";\r\n\t}",
"public String getCreatorEncodedString() {\n return Hexadecimal.valueOf(this._creatorCertSeq);\n }",
"public TypeSpecCreator getTSCreator() {\n\t\t\treturn this.TSCreator;\n\t\t}",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public void removeCreator()\r\n {\r\n getSemanticObject().removeProperty(swb_creator);\r\n }",
"public boolean _checkIfCreatorPropertyBased(AnnotationIntrospector intr, AnnotatedWithParams creator, BeanPropertyDefinition propDef) {\n Mode mode = intr.findCreatorBinding(creator);\n if (mode == Mode.PROPERTIES) {\n return true;\n }\n if (mode == Mode.DELEGATING) {\n return false;\n }\n if ((propDef != null && propDef.isExplicitlyNamed()) || intr.findInjectableValueId(creator.getParameter(0)) != null) {\n return true;\n }\n if (propDef != null) {\n String implName = propDef.getName();\n if (implName != null && !implName.isEmpty() && propDef.couldSerialize()) {\n return true;\n }\n }\n return false;\n }",
"public String getCreateMethod() {\n\t\treturn createMethod;\n\t}",
"public String getCreater() {\r\n return creater;\r\n }",
"public String getCreater() {\n return creater;\n }",
"public String getCreater() {\n return creater;\n }",
"Builder addCreator(String value);",
"public java.util.Calendar getCreationDate() {\n return creationDate;\n }",
"private IInformationControlCreator getQuickAssistAssistantInformationControlCreator() {\n return new IInformationControlCreator() {\n @Override\n public IInformationControl createInformationControl(\n final Shell parent) {\n final String affordance = getAdditionalInfoAffordanceString();\n return new DefaultInformationControl(parent, affordance);\n }\n };\n }",
"U getCreateby();",
"public void setCreatorId(String creatorId) {\n this.creatorId = creatorId;\n }",
"public java.util.Calendar getCreated()\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(CREATED$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }",
"public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }",
"public boolean isIsCreator() {\r\n if (ui.isIsUserAuthenticated() && recipe != null) {\r\n if(recipe.getCreator() == user)\r\n return true;\r\n else\r\n return false;\r\n } else {\r\n return false;\r\n }\r\n }",
"public Date getCreationDate() {\n\t\treturn this.creationDate;\n\t\t\n\t}",
"public Date getCreationDate()\r\n {\r\n return (m_creationDate);\r\n }",
"public Date getCreation() {\n return creation;\n }"
] | [
"0.8177976",
"0.78842163",
"0.7722417",
"0.7722417",
"0.7698064",
"0.76860243",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.76660246",
"0.7578769",
"0.74208593",
"0.73777324",
"0.7289319",
"0.71844274",
"0.7124729",
"0.70957565",
"0.70957565",
"0.70957565",
"0.697675",
"0.6966232",
"0.6888792",
"0.6815777",
"0.6776078",
"0.6766817",
"0.6766817",
"0.67564344",
"0.6746013",
"0.6688191",
"0.6665445",
"0.6665445",
"0.6665445",
"0.6665445",
"0.6657462",
"0.6587629",
"0.6587629",
"0.6583756",
"0.65806746",
"0.6579846",
"0.63812435",
"0.63736737",
"0.6354419",
"0.63358194",
"0.624286",
"0.61656934",
"0.6154598",
"0.6137769",
"0.6137769",
"0.6135593",
"0.6135593",
"0.6135593",
"0.6053035",
"0.6033256",
"0.6016311",
"0.6014622",
"0.60027295",
"0.5981111",
"0.594521",
"0.5902802",
"0.5874602",
"0.58604103",
"0.58604103",
"0.58545357",
"0.5840311",
"0.5834097",
"0.5834097",
"0.5834097",
"0.58279043",
"0.5813987",
"0.58010614",
"0.5781634",
"0.57380795",
"0.570667",
"0.56965196",
"0.56965196",
"0.56965196",
"0.5632146",
"0.56183726",
"0.55918455",
"0.5584642",
"0.5584642",
"0.55746293",
"0.5571531",
"0.55459225",
"0.5545823",
"0.55403924",
"0.5538594",
"0.5529506",
"0.55287224",
"0.5526764",
"0.5519938",
"0.54951394"
] | 0.70600003 | 26 |
Getter method for the COM property "Parent" | @VTID(9)
@ReturnValue(type=NativeType.Dispatch)
com4j.Com4jObject getParent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();",
"@DISPID(150)\n @PropGet\n com4j.Com4jObject getParent();",
"@DISPID(150)\n @PropGet\n com4j.Com4jObject getParent();",
"public String getParent() {\n return _theParent;\n }",
"IGLProperty getParent();",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public String getParent() {\n return _parent;\n }",
"public int Parent() { return this.Parent; }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public Foo getParent() {\n return parent;\n }",
"public String getParent() {\r\n return this.parent;\r\n }",
"@DISPID(1002) //= 0x3ea. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();",
"@DISPID(1002) //= 0x3ea. The runtime will prefer the VTID if present\r\n @VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();",
"@DISPID(1610743809) //= 0x60020001. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject parent();",
"public String getParent() {\r\n return parent;\r\n }",
"public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }",
"public String getParent() {\n return parent;\n }",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public PropertySelector getParent() {\n return parent;\n }",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"Spring getParent() {\n return parent;\n }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public ILexComponent getParent();",
"public IPSComponent peekParent();",
"public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }",
"@VTID(7)\r\n void getParent();",
"final MenuContainer getParent_NoClientCode() {\n return parent;\n }",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"Object getParent();",
"UIComponent getParent();",
"public String getParentName() {\n return parentName;\n }",
"public String getParentName() {\n return parentName;\n }",
"public WidgetParent getParent() {\n return this.m_parent;\n }",
"public String getParentType() {\n return this.parentType;\n }",
"public int getParentID() {\n\t\treturn _parentID;\n\t}",
"public RMParentShape getParent() { return _parent; }",
"@JsProperty\n Element getParentElement();",
"public String getParentName() {\n\t\treturn parentName;\n\t}",
"public int getParentID() {\n\t\treturn parentID;\n\t}",
"@JsonProperty(\"parent\")\n @ApiModelProperty(value = \"The ID of the parent dialog node (if any).\")\n public String getParent() {\n return parent;\n }",
"public abstract Optional<TypeName> parent();",
"public IDirectory getParent() {\n return this.parent;\n }",
"public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}",
"@DerivedProperty\n\tCtElement getParent() throws ParentNotInitializedException;",
"public Entity getParent() {\n return parent;\n }",
"protected Directory getParent() {\n return parent;\n }",
"public Integer getParentid() {\n\t\treturn parentid;\n\t}",
"@DISPID(-2147418104)\n @PropGet\n ms.html.IHTMLElement parentElement();",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"@NoProxy\n @NoWrap\n @NoDump\n public BwEvent getParent() {\n return parent;\n }",
"public com.vmware.converter.ManagedObjectReference getParentFolder() {\r\n return parentFolder;\r\n }",
"public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }",
"public Boolean getIsParent() {\n return isParent;\n }",
"public int getParentType() {\r\n return parent_type;\r\n }",
"public CUser getParent() {\n return this.parent;\n }",
"public Node getParent(){\n return parent;\n }",
"public Path getParent(\n ) {\n return this.parent;\n }",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public PageTreeNode getParent() {\n return parent;\n }",
"public PartialSolution getParent() {\n return _parent;\n }",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"public String getParentLabel(){\n\t\treturn this.parentLabel;\n\t}",
"@DISPID(84)\r\n\t// = 0x54. The runtime will prefer the VTID if present\r\n\t@VTID(82)\r\n\tint parentID();",
"public E getParentEntity() {\n return parentEntity;\n }",
"public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}",
"public IBuildObject getParent();",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"public int getParent_id() {\n return this.parent_id;\n }",
"public String getCodeParent() {\n\t\treturn codeParent;\n\t}",
"public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }",
"public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }",
"public PApplet getParent() {\n\t\treturn this.parent;\n\t}",
"public DrawingComposite getParent() {\n\t\treturn parent;\n\t}",
"public int getParent();",
"public Component getParentComponent() {\r\n\t\tif (parentComponent == null) {\r\n\t\t\tif (view != null)\r\n\t\t\t\tparentComponent = view.getComponent(parentComponentName);\r\n\t\t}\r\n\t\treturn parentComponent;\r\n\t}",
"public StructuredId getParent()\r\n {\r\n return parent;\r\n }",
"public Peak getParent() {\n\t\treturn parent;\n\t}",
"public long getParentCode() {\n return parentCode;\n }",
"public CoolBar getParent() {\n checkWidget();\n return parent;\n }",
"@XmlElement\n @Nullable\n public String getParentDocumentId() {\n return this.parentDocumentId;\n }",
"@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(58)\r\n\tint parentID();",
"public ConversionHelper getParent()\n {\n return parent;\n }",
"@JsProperty\n Node getParentNode();",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"void setParent(IGLProperty parent);",
"public Folder getParentFolder() {\n\t\treturn parentFolder;\n\t}",
"public Parent getVista() {\n\t\treturn null;\n\t}",
"public java.lang.String getContainingParentType() {\n return containingParentType;\n }",
"public java.lang.String getContainingParentType() {\n return containingParentType;\n }",
"public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"corrupted data parent resource #\"+parentId+\n \" does not exist\", e);\n }\n }\n else\n {\n parent = new ResourceRef(null, coral);\n }\n }\n try\n {\n return parent.get();\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"in-memory data incosistency\", e);\n }\n }",
"public AccessibleElement getParent();"
] | [
"0.81647867",
"0.81635064",
"0.81635064",
"0.7820495",
"0.77545613",
"0.7717162",
"0.76970285",
"0.76970285",
"0.76970285",
"0.7685946",
"0.7662928",
"0.76436096",
"0.76198393",
"0.7584784",
"0.75643355",
"0.75643355",
"0.75573677",
"0.75491166",
"0.7538418",
"0.74877375",
"0.74044925",
"0.7373006",
"0.7361728",
"0.7349786",
"0.7325064",
"0.732315",
"0.73226464",
"0.7321795",
"0.73211634",
"0.731258",
"0.73045754",
"0.7273923",
"0.72556615",
"0.72489965",
"0.7244335",
"0.7204559",
"0.7195084",
"0.7169685",
"0.7149787",
"0.71439976",
"0.71375763",
"0.7132675",
"0.71289986",
"0.71169823",
"0.71021616",
"0.71010566",
"0.70960593",
"0.7090904",
"0.7078354",
"0.70763105",
"0.7068518",
"0.70547646",
"0.70439255",
"0.703666",
"0.7032314",
"0.7029912",
"0.70214105",
"0.70091873",
"0.6988117",
"0.6970216",
"0.6966667",
"0.6960149",
"0.6957195",
"0.6939978",
"0.69274384",
"0.6927079",
"0.6920402",
"0.6917498",
"0.69169825",
"0.69083303",
"0.68984944",
"0.68984944",
"0.68984836",
"0.6893869",
"0.6893287",
"0.6890835",
"0.6890446",
"0.68868685",
"0.68859386",
"0.6876731",
"0.68731153",
"0.68720824",
"0.6863158",
"0.6850675",
"0.68491036",
"0.68477386",
"0.6847068",
"0.6817064",
"0.6810185",
"0.6810185",
"0.6802115",
"0.6801635",
"0.67873853",
"0.67871404",
"0.6786261",
"0.67846376",
"0.6782967"
] | 0.8093195 | 5 |
Getter method for the COM property "Connection" | @VTID(10)
@ReturnValue(type=NativeType.VARIANT)
java.lang.Object getConnection(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Connection getConn() {return conn;}",
"public Connection getConn() {\r\n return conn;\r\n }",
"public String getConnection()\n {\n return this.connection;\n }",
"public Connection getConn()\r\n\t{\r\n\t\treturn this.conn;\r\n\t}",
"public Connection getConn()\n\t{\n\t\treturn this.conn;\n\t}",
"public Connection getMyConnection(){\n return myConnection;\n }",
"public Connection getConnection(){\r\n\t\treturn connection;\r\n\t}",
"Connection getConnection() {\n\t\treturn connection;\n\t}",
"public Connection getConnection() {\r\n return connection;\r\n }",
"public Connection getConnection() {\r\n return connection;\r\n }",
"public ConnectionField getConnection() {\n \n\treturn connectionField;\n \n }",
"public IConnection getConnection () { \n\t\treturn connection;\n\t}",
"public Connection getConnection() {\n \t\treturn this.connect;\n \t}",
"public Connection ObtenirConnexion(){return cn;}",
"public Connection getConnection() {\n return connection;\n }",
"public URLConnection getConnection(){\n return this.mConnection;\n }",
"public ConnectionField getConnectionField() {\n\treturn connectionField;\n }",
"public Connection getConnection() {\n\t\treturn this.connection;\n\t}",
"public Connection getCon() {\r\n return con;\r\n }",
"private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }",
"public Connection getConnection()\n\t{\n\t\treturn wConn;\n\t}",
"public Connection getConnection() {\n return conn;\n }",
"public Connection getConnection() {\n return conn;\n }",
"protected Connection getConnection () {\n \t\treturn connection;\n \t}",
"public static Connection getConn() {\n return conn;\n }",
"public static Connect getConnect() {\n\t\treturn connection;\n\t}",
"public Connection getConnection()\n\t{\n\t\treturn connection;\n\t}",
"public ConnectionType getConnectionType(){\n\t return connectionType; \n }",
"public IRemoteConnection getConnection() {\n \t\treturn fSelectedConnection;\n \t}",
"@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@NonNull\n protected final Connection getConnection() {\n return mConnection;\n }",
"public String getConnectionName() {\n return connectionName;\r\n }",
"public Socket getConnection() {\n return connection;\n }",
"protected Connection getConnection() {\n return con;\n }",
"@Override\n public String getConnection() {\n Object ref = connection_;\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 connection_ = s;\n return s;\n }\n }",
"@Override\n public String getConnection() {\n Object ref = connection_;\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 connection_ = s;\n return s;\n }\n }",
"@Override\n public String getConnection() {\n Object ref = connection_;\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 connection_ = s;\n return s;\n }\n }",
"@Override\n public String getConnection() {\n Object ref = connection_;\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 connection_ = s;\n return s;\n }\n }",
"public ConnectionConfig getConnectionConfig()\n {\n return _connectionConfig;\n }",
"public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getConnection() {\n Object ref = connection_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connection_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public URLConnection getConnection() {\n return this.urlConnection;\n }",
"public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getConnectionBytes() {\n Object ref = connection_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n connection_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public IBrowserConnection getSelectedConnection()\n {\n return selectedConnection;\n }",
"public String getConnectionName() {\n return this.connectionName;\n }",
"public Connection getConnectionStatus() {\n\t\treturn this.connection;\n\t}",
"public Connection getConnection() {\n this.connect();\n return this.connection;\n }",
"public WarpConnection getConnection() {\r\n return(this.connection);\r\n }",
"public Connection getConnection(){\n\t\tif(connection == null){\r\n\t\t\tinitConnection();\r\n\t\t}\r\n\t\treturn connection;\r\n\t}",
"public String getConnectionId() {\n return this.connectionId;\n }",
"public Connection getConnection();",
"public Connection getConnection();",
"public Connection getConnection();",
"public String getConnectionId() {\n return connectionId;\n }",
"LDAPConnection getConnection()\n {\n return connection;\n }",
"public static Connection getConnection() {\n\t\t\n\t\treturn conn;\n\t}",
"protected IXConnection getConnection() {\n return eloCmisConnectionManager.getConnection(this.getCallContext());\n }",
"public Socket getConnectionSocket()\n {\n return connectionSocket;\n }",
"public Connection getConnection() {\r\n\tConnection result = null;\r\n\tif (isConnected()) {\r\n\t result = conn;\r\n\t}\r\n\treturn result;\r\n }",
"public\n Connection getConnection();",
"@VTID(13)\n com.exceljava.com4j.excel.WorkbookConnection getWorkbookConnection();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"protected Connection getConnection() {\r\n\t\treturn getProcessor().getConnection();\r\n\t}",
"public interface Connection extends java.sql.Connection {\n\n\t/**\n\t * Get the database credentials required to gain access to the remote database server.\n\t *\n\t * @return A one way hash that includes this Connections database login details\n\t * as supplied when this Connection was created.\n\t */\n\tpublic String getCredentials();\n\n\t/**\n\t * Returns the database's numeric type as defined in this Connections Driver class.<br />\n\t * The numeric type is set based on the request url used to create this Connection.\n\t *\n\t * @return The numeric typeName for this Connection.\n\t */\n\tpublic int getDbType();\n\n\t/**\n\t * Gets the remote URL this Connection is connected to.\n\t *\n\t * @return The URL this Connection instance is using.\n\t */\n\tpublic String getUrl();\n\n\t/**\n\t *\n\t * @return this HttpClient\n\t */\n\tpublic HttpClient getClient();\n\n\t/**\n\t *\n\t * @return get the current timeout in ms\n\t */\n\tpublic int getTimeOut();\n\n\t/**\n\t *\n\t * @param timeOut the timeout period in ms\n\t */\n\tpublic void setTimeOut(int timeOut);\n\n\t/**\n\t *\n\t * @return current Session limit\n\t */\n\tpublic boolean getSessLimit();\n\n\t/**\n\t *\n\t * @param sessLimit\n\t */\n\tpublic void setSessLimit(boolean sessLimit);\n\n\t/**\n\t * Returns the name of the requested database that was used when this Connection was created.\n\t *\n\t * @return the active database's name that this Connection Object is using.\n\t */\n\tpublic String getDatabase();\n}",
"public long getConnectionId() {\n return connectionId;\n }",
"org.apache.calcite.avatica.proto.Common.ConnectionProperties getConnProps();",
"public long connectionId()\n {\n return connectionId;\n }",
"public org.apache.calcite.avatica.proto.Common.ConnectionProperties getConnProps() {\n return connProps_ == null ? org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance() : connProps_;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"7267xxxxxxxxxxxxxx\", value = \"Telnyx connection ID used in the call.\")\n @JsonProperty(JSON_PROPERTY_CONNECTION_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getConnectionId() {\n return connectionId;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"7267xxxxxxxxxxxxxx\", value = \"Telnyx connection ID used in the call.\")\n @JsonProperty(JSON_PROPERTY_CONNECTION_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getConnectionId() {\n return connectionId;\n }",
"public String getConnectionStatus() {\n\t\treturn this.connectionStatus;\n\t}",
"public Connection getCachedConnection (CConnection connection);",
"public Connection getCachedConnection (CConnection connection);",
"public void setConn(Connection conn) {this.conn = conn;}",
"public final SignalConnection getSignalConnection() {\n return signalConnection;\n }",
"public long getConnectionId() {\n return connId;\n }",
"public org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder getConnPropsOrBuilder() {\n return getConnProps();\n }",
"public Connection getDbConnect() {\n return dbConnect;\n }",
"public String getConnection();",
"public final int getConnectionType()\n\t{\n\t\treturn connType;\n\t}",
"public ConnInfo[] getConnections() {\n return connInfo;\n }",
"public void setConnection(Connection value) {\r\n connection = value;\r\n }",
"public RemoteConnection getCispaConnection() {\n return cispaConnection;\n }",
"public static Connection getConnection() {\n\treturn null;\n}",
"public abstract Connection getConnection();",
"public static Connection getConnection() {\n\t\treturn null;\r\n\t}",
"Object getConref();",
"public ServerConnection getServerConnection()\n {\n return m_oServerConnection;\n }",
"public ConnectionConfig createConnection()\n {\n return _connectionConfig;\n }",
"org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder getConnPropsOrBuilder();",
"public static Connection getConnection() {\n\t\treturn null;\n\t}",
"public static Connector GetConnection(){\n\t\ttry{\n\t\t\tif(c_connection == null){\n\t\t\t\tc_connection = new Connector();\n\t\t\t}\n\t\t\treturn c_connection;\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}"
] | [
"0.7407443",
"0.7387054",
"0.72981447",
"0.7293595",
"0.72693735",
"0.7069766",
"0.70650756",
"0.7044867",
"0.70413023",
"0.70413023",
"0.7037404",
"0.6992689",
"0.6971872",
"0.6962484",
"0.6945261",
"0.69426775",
"0.69326454",
"0.6926932",
"0.6924275",
"0.68489623",
"0.68373096",
"0.68312836",
"0.68312836",
"0.68274915",
"0.68271685",
"0.68142664",
"0.68142015",
"0.6812966",
"0.6776088",
"0.6704658",
"0.6704658",
"0.6704658",
"0.6704658",
"0.67027104",
"0.6697695",
"0.66406524",
"0.6628126",
"0.66273886",
"0.66273886",
"0.66273886",
"0.66273886",
"0.66142243",
"0.6608177",
"0.6608177",
"0.6608177",
"0.6608177",
"0.66063094",
"0.6584516",
"0.6584516",
"0.6584516",
"0.6584516",
"0.6575172",
"0.65716654",
"0.6552733",
"0.6416778",
"0.64115727",
"0.63996226",
"0.6395514",
"0.6347744",
"0.6347744",
"0.6347744",
"0.633504",
"0.63158494",
"0.6314251",
"0.6306705",
"0.6301705",
"0.6295842",
"0.6291493",
"0.6187089",
"0.61748135",
"0.6169498",
"0.6164699",
"0.61396843",
"0.61243844",
"0.610852",
"0.61052746",
"0.6096312",
"0.6096312",
"0.60772455",
"0.6069722",
"0.6069722",
"0.605404",
"0.6024322",
"0.60205853",
"0.6010725",
"0.6005121",
"0.60028464",
"0.5994894",
"0.59904593",
"0.5978186",
"0.5968157",
"0.5960779",
"0.5943609",
"0.59326726",
"0.59155107",
"0.5913816",
"0.59123075",
"0.59102845",
"0.59076035",
"0.5907052"
] | 0.66320986 | 36 |
Getter method for the COM property "CommandText" | @VTID(11)
@ReturnValue(type=NativeType.VARIANT)
java.lang.Object getCommandText(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getCommand();",
"public String getCommand(){\n return getCommand(null);\n }",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"public String getCommand() {\n return this.command;\n }",
"public String getCommand() {\r\n return command;\r\n }",
"String getCommand();",
"public String getCommand() { return command; }",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\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 command_ = s;\n }\n return s;\n }\n }",
"public String getCommand() {\n\n return command;\n }",
"public String \n getCommand() \n {\n return pCommand;\n }",
"public String getCommand(){\n return command;\n }",
"public String getCommandReturned() {\n return commandReturned;\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String Command() {\n\treturn command;\n }",
"public String getCmd() {\r\n return cmd;\r\n }",
"public abstract String getCommand();",
"public CommandValue getCommand() {\n\t\treturn value;\n\t}",
"@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}",
"java.lang.String getCommandName();",
"public String getCommand() {\n\t\tString[] lines = commandLine.getText().split(\"\\n\");\n\t\treturn lines[commandLine.getLineCount() - 2];\n\t}",
"public Command getCommand() {\n\t\treturn redCom;\n\t}",
"public String getOriginalInput() {\n\t\treturn commandString;\n\t}",
"public int getCommand() {\n return command_;\n }",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int getCommand()\n\t{\n\t\treturn this.command;\n\t}",
"public int getCommand() {\n return command_;\n }",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\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 command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"final public String getActionCommand() {\n return command;\n }",
"public abstract String getCommandName();",
"public abstract String getCommandName();",
"public String getResult() {\r\n\t\treturn getText(0, commandIndex - commandMode.length());\r\n\t}",
"public int getCmd() {\n return cmd_;\n }",
"com.google.protobuf.ByteString\n getCommandBytes();",
"public String getCommand() {\n if (words.length == 0) {\n return NO_INPUT;\n }\n return words[0].toLowerCase();\n }",
"@VTID(12)\n void setCommandText(\n @MarshalAs(NativeType.VARIANT) java.lang.Object rhs);",
"public int getCmd() {\n return cmd_;\n }",
"public String getCommandKey()\n\t{\n\t\treturn commandKey;\n\t}",
"@Override\n public final Command getCommand() {\n return commandIdentifier;\n }",
"public String getUserCommand();",
"@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}",
"public String getCommand(){\r\n return commandUpdate;\r\n }",
"int getCommand();",
"public String readCommand() {\n return scanner.nextLine();\n }",
"public String getInitCommand(){\r\n return initCommand;\r\n }",
"java.lang.String getCommand(int index);",
"public byte getCmd() {\n return this.btCmd;\n }",
"String getCommandName();",
"public String[] readCommand();",
"public java.lang.String getCommand(int index) {\n return command_.get(index);\n }",
"public java.lang.String getCommand(int index) {\n return command_.get(index);\n }",
"public String getToolCommand();",
"public int getCommand() {\r\n\t\tif(this.command == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.command.ordinal();\r\n\t}",
"int getCmd();",
"@Override\n public String getCommandName() {\n return s_name;\n }",
"@Override\n public String getCommandName() {\n return s_name;\n }",
"@Override\n public String getCommandName() {\n return s_name;\n }",
"@Override\n public String getCommandName() {\n return s_name;\n }",
"@Override\n public String getCommandName() {\n return s_name;\n }",
"@Override\n public String getCommandName() {\n return s_name;\n }",
"@Override\n public String getCommandName() {\n return s_name;\n }",
"public String getScriptText() {\n return scriptText;\n }",
"@Override\n\t/**\n\t * @return commandName\n\t */\n\tpublic String getOperationName() {\n\t\treturn commandName;\n\t}",
"public String getCommandName() {\n try {\n if (command != null) {\n if (command.has(GnsProtocol.COMMANDNAME)) {\n return command.getString(GnsProtocol.COMMANDNAME);\n }\n }\n } catch (JSONException e) {\n // Just ignore it\n }\n return \"unknown\";\n }",
"public String getUnprocessedCommand() {\n if (currentIndex == 0) {\n // Not necessary but saves initialising a redundant string object\n return command;\n }\n if (isComplete()) {\n /* If there's no remaining command, return an empty string. This allows us to use the String\n * pool and avoid StringIndexOutOfBoundsExceptions. */\n return \"\";\n }\n return command.substring(currentIndex);\n }",
"@NotNull\n String getCommandTemplate();",
"@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 serviceCmd_ = s;\n }\n return s;\n }\n }",
"public String getOriginalCommand() {\n return command;\n }",
"public xCommandOnText(String command){ this.init(command); }",
"Optional<String> command();",
"com.google.protobuf.ByteString\n getCommandNameBytes();",
"@objid (\"d03ac21a-47cb-44d2-820d-6136f84aa408\")\r\n public String getText() {\r\n return this.text.getText();\r\n }",
"String getCommandId();",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public EventType getCommand(){\n return this.command;\n }",
"public static String getCommandString() {\n String string = \"\";\n for (String validCommand : validCommands.keySet()) {\n string += \" \" + validCommand;\n }\n return string;\n }",
"public int getActionCommand() {\n return actionCommand_;\n }",
"public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}",
"@Localized\n public String getCommandName() {\n return NucLang.get(_commandName).toString();\n }",
"@Override\n public java.lang.String getServiceCmd() {\n java.lang.Object ref = serviceCmd_;\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 (bs.isValidUtf8()) {\n serviceCmd_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public network.message.PlayerResponses.Command getCommand() {\n if (commandBuilder_ == null) {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n } else {\n if (responseCase_ == 2) {\n return commandBuilder_.getMessage();\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }\n }",
"java.lang.String getServiceCmd();",
"public com.google.protobuf.ProtocolStringList\n getCommandList() {\n return command_.getUnmodifiableView();\n }",
"public network.message.PlayerResponses.Command getCommand() {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn CMD_NAME;\n\t}",
"@objid (\"477ed32e-345e-478d-bf2d-285fddcaf06e\")\r\n public Text getTextButton() {\r\n return this.text;\r\n }",
"public abstract String getLaunchCommand();",
"public com.google.protobuf.ProtocolStringList\n getCommandList() {\n return command_;\n }",
"public int getActionCommand() {\n return actionCommand_;\n }",
"public ProtocolCommandSupport getCommandSupport() {\n return this._commandSupport_;\n }",
"public String getCommandSent() {\n return commandSent;\n }",
"public String getText() {\r\n return this.text;\r\n }",
"List<String> getCommandDescription();",
"@Override\n public String toString() {\n return (\"Command \" + this.getCommandName().toUpperCase() + \":\\n\" + this\n .commandDocumentation());\n }",
"public String getLastCommand() {\n return lastCommand;\n }",
"public String getText() {\n\t\treturn this.text;\n\t}",
"public String getText() {\n\t\treturn this.text;\n\t}",
"public String getTextValue() {\r\n return _textValue;\r\n }"
] | [
"0.7530856",
"0.73752505",
"0.733349",
"0.7321654",
"0.72615886",
"0.7226659",
"0.7179096",
"0.71695864",
"0.7147631",
"0.7147631",
"0.7127761",
"0.7106872",
"0.707235",
"0.70171636",
"0.701115",
"0.70089453",
"0.69895124",
"0.6988788",
"0.69426304",
"0.6810757",
"0.6761397",
"0.66853344",
"0.668181",
"0.66663617",
"0.663783",
"0.66173583",
"0.6588009",
"0.6576159",
"0.65369815",
"0.65152836",
"0.65064496",
"0.6504555",
"0.6504555",
"0.6502848",
"0.6426841",
"0.6417626",
"0.6374854",
"0.63630813",
"0.63622034",
"0.63292325",
"0.6317954",
"0.6306254",
"0.6300403",
"0.6274321",
"0.6262549",
"0.62289804",
"0.62157565",
"0.6214456",
"0.6180372",
"0.617965",
"0.6177579",
"0.6177139",
"0.6176496",
"0.6164433",
"0.6158847",
"0.6157625",
"0.6144369",
"0.6144369",
"0.6144369",
"0.6144369",
"0.6144369",
"0.6144369",
"0.6144369",
"0.6138321",
"0.6115231",
"0.6102922",
"0.6102422",
"0.6082285",
"0.60704076",
"0.6061657",
"0.60603446",
"0.6059641",
"0.60576504",
"0.6049102",
"0.60397583",
"0.60348725",
"0.60206056",
"0.600597",
"0.6005665",
"0.6002787",
"0.5998175",
"0.5984246",
"0.5977043",
"0.59422415",
"0.59370726",
"0.5926115",
"0.5924924",
"0.5924241",
"0.5921219",
"0.5920462",
"0.5918865",
"0.5907365",
"0.5891025",
"0.58886766",
"0.5872539",
"0.5869847",
"0.58572316",
"0.58343154",
"0.58343154",
"0.5833213"
] | 0.80398244 | 0 |
Setter method for the COM property "CommandText" | @VTID(12)
void setCommandText(
@MarshalAs(NativeType.VARIANT) java.lang.Object rhs); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setCommand(String cmd);",
"public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}",
"@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}",
"public xCommandOnText(String command){ this.init(command); }",
"@VTID(11)\n @ReturnValue(type=NativeType.VARIANT)\n java.lang.Object getCommandText();",
"public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }",
"public void setCommand(String command) {\n this.command = command;\n }",
"protected void setCommand(String command)\n {\n Command = command;\n }",
"void\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);",
"public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}",
"CommandWord(final String pCommandString)\n {\n this.aCommandString = pCommandString;\n }",
"public void setCommand(String command){\r\n commandUpdate=command;\r\n }",
"public void setCommand(String command)\n {\n this.command = command;\n }",
"@Override\n\tpublic void setCommand(String command) {\n\t\tmodel.setCommand(command);\n\t}",
"public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}",
"public void setCommand(String command) {\n _command = command;\n }",
"public void setCommand(String command) {\n this.command = command;\n }",
"public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"java.lang.String getCommand();",
"public String getCommand() {\n return this.command;\n }",
"public DeleteCommand(String commandText) {\n super();\n description = commandText;\n }",
"public String getCommand() { return command; }",
"public String getCommand() {\r\n return command;\r\n }",
"public String \n getCommand() \n {\n return pCommand;\n }",
"void\t\tsetCommandLabel(String command, String label);",
"public String getCommand(){\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"public void setCommandKey(String commandKey)\n\t{\n\t\tthis.commandKey = Toolbox.trim(commandKey, 1);\n\t}",
"public Builder setCommand(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.set(index, value);\n onChanged();\n return this;\n }",
"public String getCommand() {\n\n return command;\n }",
"void\t\tsetCommandOptions(String command, Strings options);",
"@Override\n\tpublic void setComponentText(String text) {\n\t\t\n\t}",
"public String getCommand(){\n return getCommand(null);\n }",
"public abstract String getCommand();",
"public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}",
"public void setCommandValue(String command, int argIndex, String newValue)\n\t{\n\t\tfor(int x = 0; x < this.commands.size(); x++)\n\t\t{\n\t\t\tif(this.commands.get(x).toString().startsWith(\"#descr\") && this.commands.get(x).args.size() > argIndex)\n\t\t\t{\n\t\t\t\tif(newValue.startsWith(\"\\\"\"))\n\t\t\t\t\tthis.commands.get(x).args.set(argIndex, newValue);\n\t\t\t\telse\n\t\t\t\t\tthis.commands.get(x).args.set(argIndex, \"\\\"\" + newValue + \"\\\"\");\n\t\t\t}\n\t\t}\n\t}",
"public SetValueCommand(String name) {\n\t\tthis.name = name;\n\t}",
"public String Command() {\n\treturn command;\n }",
"public void setText ( String text ) {\r\n\t\tgetStateHelper().put(PropertyKeys.text, text);\r\n\t\thandleAttribute(\"text\", text);\r\n\t}",
"String getCommand();",
"final public void setActionCommand(String command) {\n this.command = command;\n }",
"public String getCommand(){\r\n return commandUpdate;\r\n }",
"public boolean setToolCommand(String command);",
"public String getCmd() {\r\n return cmd;\r\n }",
"@Override\n\tpublic void setText(String arg0) {\n\t\t\n\t}",
"public void setValue(String text) {\n\t\tthis.value = text;\n\t}",
"public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }",
"public void setText(String text) {\r\n\t\tthis.text= text;\r\n\t}",
"private void processCommand()\n {\n String vInput = this.aEntryField.getText();\n this.aEntryField.setText(\"\");\n\n this.aEngine.interpretCommand( vInput );\n }",
"public void setText(String newText) {\n\t\t_pcs.firePropertyChange(\"text\", this.text, newText); //$NON-NLS-1$\n\t\tthis.text = newText;\n\t}",
"public CommandValue getCommand() {\n\t\treturn value;\n\t}",
"public void setValue(String value) {\n\t\tthis.text = value;\n\t}",
"public void setText(String text) {\r\n\t\tthis.text = text;\r\n\t}",
"public void setText(String text) {\r\n this.text = text;\r\n }",
"public void testHandleCommand_SetReplyText() throws Exception {\n commandHandler.setReplyCode(REPLY_CODE);\n commandHandler.setReplyText(REPLY_TEXT);\n \n session.sendReply(REPLY_CODE, REPLY_TEXT);\n replay(session);\n \n commandHandler.handleCommand(COMMAND, session);\n verify(session);\n \n verifyNumberOfInvocations(commandHandler, 1);\n verifyNoDataElements(commandHandler.getInvocation(0));\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\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 command_ = s;\n }\n return s;\n }\n }",
"public void setText(String text) {\r\n\r\n\t}",
"@Override\n\t\tpublic void setText(CharSequence text, BufferType type) {\n\t\t\tsuper.setText(text, type);\n\t\t\tmDeleteStatus = false;\n\t\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t\thandleConfig(\"text\", text);\n\t}",
"public abstract String getCommandName();",
"public abstract String getCommandName();",
"public void setInitCommand (String command){\r\n //process the command \r\n initCommand = command.trim();\r\n initialize(); \r\n }",
"public String getOriginalInput() {\n\t\treturn commandString;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setEditButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_editButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_editButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_editButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setEditButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getCommandName();",
"@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}",
"private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public void setText(String text) {\n\t\t\n\t}",
"public void setAsText( String pText) {\n\t\tsetValue( pText);\n\t}",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"public void setText(String text) {\n this.text = text;\n }",
"void set(String text);",
"public void setOutputText (String outputText) {\n myGUI.setOutputText(outputText);\n }",
"@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}",
"public void setActionItemInfoText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_actionItemInfo_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_actionItemInfo_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_actionItemInfo_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setActionItemInfoText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void setOperation(java.lang.CharSequence value) {\n this.Operation = value;\n }",
"public void setText(String text)\n {\n this.text = text;\n }",
"public void setOptionText(String newText) {\n this.option = newText;\n\n this.database.update(\"AnswerOptions\", \"option = '\" + option + \"'\", \"optionId = \" + this.optionId);\n }",
"public void setCommandSent(String s) {\n if (s == null) commandSent = \"\";\n else commandSent = s;\n }",
"@JsonSetter(\"text\")\r\n public void setText(String text) {\r\n this.text = text;\r\n }",
"public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}",
"public void setCustomText(String text) {\n\t\tthis.text = text;\n\t\tcustomUpdateView();\n\t}",
"public native final EditorBaseEvent commands(JsArray<? extends JavaScriptObject> val) /*-{\n\t\tthis.commands = val;\n\t\treturn this;\n\t}-*/;",
"public void setText(String text) {\n this.textData = text;\n }",
"public ScriptBuilder setScriptText(String scriptText) {\n this.scriptText = scriptText;\n return this;\n }",
"public void setInfoText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_info_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_info_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_info_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setInfoText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public final StringProperty textProperty() {\n return text;\n }"
] | [
"0.71456015",
"0.7103039",
"0.6986686",
"0.6812084",
"0.6735101",
"0.66931784",
"0.65132403",
"0.64711046",
"0.64633155",
"0.63760495",
"0.63486433",
"0.63425",
"0.6295247",
"0.62853914",
"0.6281116",
"0.62422276",
"0.61101466",
"0.6106903",
"0.6095476",
"0.6067812",
"0.60454214",
"0.60453385",
"0.6043717",
"0.6019436",
"0.5983637",
"0.5958992",
"0.592643",
"0.58755857",
"0.58755857",
"0.58539265",
"0.5852821",
"0.58368903",
"0.5826769",
"0.5823067",
"0.581158",
"0.5795363",
"0.57436407",
"0.5727726",
"0.57165235",
"0.571522",
"0.5713295",
"0.5699628",
"0.5695431",
"0.5694514",
"0.567689",
"0.5672379",
"0.56532115",
"0.56231004",
"0.5614141",
"0.56134987",
"0.5599767",
"0.5598463",
"0.558116",
"0.5578803",
"0.55759037",
"0.5565972",
"0.55653864",
"0.55613834",
"0.55569035",
"0.55445504",
"0.55415976",
"0.55405277",
"0.5532275",
"0.5532275",
"0.5530955",
"0.5519557",
"0.55163366",
"0.55163366",
"0.55163366",
"0.5514046",
"0.5512889",
"0.5510791",
"0.550691",
"0.5499424",
"0.5498691",
"0.54960334",
"0.5495001",
"0.5495001",
"0.5495001",
"0.5495001",
"0.5495001",
"0.5495001",
"0.5495001",
"0.54926705",
"0.5488279",
"0.54872584",
"0.5487249",
"0.5485878",
"0.5481758",
"0.54811585",
"0.5477043",
"0.54614955",
"0.54531014",
"0.54531014",
"0.54451966",
"0.5442452",
"0.54343355",
"0.5427524",
"0.54235864",
"0.539898"
] | 0.78038305 | 0 |
Getter method for the COM property "CommandType" | @VTID(13)
com.exceljava.com4j.excel.XlCmdType getCommandType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCommandType() {\n return commandType;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.LoadCommandType getCommandType();",
"public Command commandType() {\r\n if (command.startsWith(\"push\")) {\r\n return Command.C_PUSH;\r\n } else if (command.startsWith(\"pop\")) {\r\n return Command.C_POP;\r\n } else if (isArithmeticCmd()) {\r\n return Command.C_ARITHMETIC;\r\n } else if (command.startsWith(\"label\")) {\r\n return Command.C_LABEL;\r\n } else if (command.startsWith(\"goto\")) {\r\n return Command.C_GOTO;\r\n } else if (command.startsWith(\"if-goto\")) {\r\n return Command.C_IF;\r\n } else if (command.startsWith(\"function\")) {\r\n return Command.C_FUNCTION;\r\n } else if (command.startsWith(\"call\")) {\r\n return Command.C_CALL;\r\n } else if (command.startsWith(\"return\")) {\r\n return Command.C_RETURN;\r\n } else {\r\n return null;\r\n }\r\n }",
"public void setCommandType(CommandType commandType) {\n this.commandType = commandType;\n }",
"@VTID(14)\n void setCommandType(\n com.exceljava.com4j.excel.XlCmdType rhs);",
"@Override\n\tpublic String getCommandType() {\n\t\treturn \"BreakPointCommand\";\n\t}",
"ICommandTypeRegistry getCommandTypeRegistry();",
"public void setCommandType(String commandType) {\n this.commandType = commandType == null ? null : commandType.trim();\n }",
"public int getType() {\n return Command.TYPE_QUERY;\n }",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"public CommandType commandType() {\n // Logik: Deal with the specific types first, then assume that whatever's left is arithmetic\n\n // Default case\n CommandType type = CommandType.C_ARITHMETIC;\n // Deal with instruction\n switch (instructionChunks[0]) {\n case \"push\":\n type = CommandType.C_PUSH;\n break;\n case \"pop\":\n type = CommandType.C_POP;\n }\n return type;\n }",
"public EventType getCommand(){\n return this.command;\n }",
"public int getCommand() {\n return command_;\n }",
"public String getCommand() {\r\n return command;\r\n }",
"public int getCommand() {\n return command_;\n }",
"public String getCommand() { return command; }",
"public String getCommand() {\n return this.command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"public String getCommand() {\n\n return command;\n }",
"public void setCommandType(typekey.LoadCommandType value);",
"public interface CommandType {\n\n /** Returns unique identifier for this command type. */\n @NotNull\n String getId();\n\n /** Returns the display name of the command type. */\n @NotNull\n String getDisplayName();\n\n /** Returns the icon used to represent the command type. */\n @NotNull\n SVGResource getIcon();\n\n /** Returns the {@link CommandConfigurationPage}s that allow to configure specific command parameters. */\n @NotNull\n Collection<CommandConfigurationPage<? extends CommandConfiguration>> getConfigurationPages();\n\n /** Returns factory for {@link CommandConfiguration} instances. */\n @NotNull\n CommandConfigurationFactory<? extends CommandConfiguration> getConfigurationFactory();\n\n /** Returns command template that will be used for newly created command. */\n @NotNull\n String getCommandTemplate();\n\n /** Returns template for preview Url. */\n String getPreviewUrlTemplate();\n}",
"public boolean isSetMCommandType() {\n return this.mCommandType != null;\n }",
"public String getCommand(){\n return command;\n }",
"public String getCmd() {\r\n return cmd;\r\n }",
"java.lang.String getCommand();",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\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 command_ = s;\n }\n return s;\n }\n }",
"CommandTypes(String command) {\n this.command = command;\n }",
"public int getCommand()\n\t{\n\t\treturn this.command;\n\t}",
"public ProtocolCommandSupport getCommandSupport() {\n return this._commandSupport_;\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public CommandValue getCommand() {\n\t\treturn value;\n\t}",
"public Command getCommand() {\n\t\treturn redCom;\n\t}",
"public int getCmd() {\n return cmd_;\n }",
"MBeanInfo getCommandDescription(String commandType);",
"public int getCmd() {\n return cmd_;\n }",
"public String getCommandReturned() {\n return commandReturned;\n }",
"public int getType() {\n return Command.TYPE_STORED_PROCEDURE;\n }",
"public int getCommand() {\r\n\t\tif(this.command == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.command.ordinal();\r\n\t}",
"public byte getCmd() {\n return this.btCmd;\n }",
"public String Command() {\n\treturn command;\n }",
"CommandType(String label) {\n this.label = label;\n }",
"private Integer mapCommandType(String cmd) {\n\n\t\tif (isCommandType(Command.ADD_COMMAND, cmd)) {\n\t\t\treturn Command.ADD_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.CHANGE_STORAGE_COMMAND, cmd)) {\n\t\t\treturn Command.CHANGE_STORAGE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.DELETE_COMMAND, cmd)) {\n\t\t\treturn Command.DELETE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.DONE_COMMAND, cmd)) {\n\t\t\treturn Command.DONE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.EDIT_COMMAND, cmd)) {\n\t\t\treturn Command.EDIT_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.LIST_COMMAND, cmd)) {\n\t\t\treturn Command.LIST_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.UNDO_COMMAND, cmd)) {\n\t\t\treturn Command.UNDO_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.SEARCH_COMMAND, cmd)) {\n\t\t\treturn Command.SEARCH_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.LIST_TODAY_COMMAND, cmd)) {\n\t\t\treturn Command.LIST_TODAY_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.LIST_NEXT_COMMAND, cmd)) {\n\t\t\treturn Command.LIST_NEXT_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.HELP_COMMAND, cmd)) {\n\t\t\treturn Command.HELP_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.SCHEDULE_COMMAND, cmd)) {\n\t\t\treturn Command.SCHEDULE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.UNDONE_COMMAND, cmd)) {\n\t\t\treturn Command.UNDONE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.GOOGLE_ADD_COMMAND, cmd)) {\n\t\t\treturn Command.GOOGLE_ADD_COMMAND_TYPE;\n\t\t} else {\n\t\t\treturn ERROR_COMMAND_TYPE;\n\t\t}\n\n\t}",
"@Override\n public final Command getCommand() {\n return commandIdentifier;\n }",
"public network.message.PlayerResponses.Command getCommand() {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }",
"public String \n getCommand() \n {\n return pCommand;\n }",
"public String getCommandType(){\n \treturn \"aeReport\";\n }",
"public int getOperationType() {\r\n return operationType;\r\n }",
"com.google.protobuf.ByteString\n getCommandBytes();",
"public String getCommand(){\n return getCommand(null);\n }",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getOperationType() {\r\n return operationType;\r\n }",
"public Global.CommandType determineCommandType(String userCommand) {\n\t\tif (userCommand == null || userCommand.equals(\"\")) {\n\t\t\tlogger.log(Level.WARNING, Global.MESSAGE_ILLEGAL_ARGUMENTS);\n\t\t\treturn Global.CommandType.INVALID;\n\t\t}\n\n\t\tString commandTypeString;\n\n\t\ttry {\n\t\t\tcommandTypeString = getFirstWord(userCommand);\n\t\t} catch (Exception e) {\n\t\t\tlogger.log(Level.INFO, MESSAGE_NO_COMMANDTYPE);\n\t\t\treturn Global.CommandType.INVALID;\n\t\t}\n\n\t\tif (commandTypeString.equalsIgnoreCase(\"add\")) {\n\t\t\treturn Global.CommandType.ADD;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"update\")) {\n\t\t\treturn Global.CommandType.UPDATE;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"done\")) {\n\t\t\treturn Global.CommandType.DONE;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"open\")) {\n\t\t\treturn Global.CommandType.OPEN;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"delete\")) {\n\t\t\treturn Global.CommandType.DELETE;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"clear\")) {\n\t\t\treturn Global.CommandType.CLEAR;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"display\")) {\n\t\t\treturn Global.CommandType.DISPLAY;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"search\")) {\n\t\t\treturn Global.CommandType.SEARCH;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"sync\")) {\n\t\t\treturn Global.CommandType.SYNC;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"undo\")) {\n\t\t\treturn Global.CommandType.UNDO;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"exit\")) {\n\t\t\treturn Global.CommandType.EXIT;\n\t\t} else {\n\t\t\treturn Global.CommandType.INVALID;\n\t\t}\n\t}",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\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 command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public network.message.PlayerResponses.CommandOrBuilder getCommandOrBuilder() {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }",
"public com.google.protobuf.ProtocolStringList\n getCommandList() {\n return command_;\n }",
"int getCmd();",
"public CommandType parseCommand() {\n try {\n extractCommand();\n extractParameters();\n parameterData = new ParameterParser(commandType, parameters).processParameters();\n executeCommand();\n } catch (IllegalCommandException e) {\n commandUi.printInvalidCommand();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printInvalidParameters();\n } catch (MissingTaskLiteralException e) {\n commandUi.printMissingLiteral(e.getMessage());\n } catch (NumberFormatException e) {\n commandUi.printTaskDoneNotInteger();\n } catch (DateTimeFormatException e) {\n commandUi.printDateTimeFormatIncorrect();\n }\n\n return commandType;\n }",
"public network.message.PlayerResponses.Command getCommand() {\n if (commandBuilder_ == null) {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n } else {\n if (responseCase_ == 2) {\n return commandBuilder_.getMessage();\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }\n }",
"public String getCommandKey()\n\t{\n\t\treturn commandKey;\n\t}",
"List<CmdType> getSupportedTypes();",
"String getCommand();",
"@VTID(11)\n @ReturnValue(type=NativeType.VARIANT)\n java.lang.Object getCommandText();",
"public network.message.PlayerResponses.CommandOrBuilder getCommandOrBuilder() {\n if ((responseCase_ == 2) && (commandBuilder_ != null)) {\n return commandBuilder_.getMessageOrBuilder();\n } else {\n if (responseCase_ == 2) {\n return (network.message.PlayerResponses.Command) response_;\n }\n return network.message.PlayerResponses.Command.getDefaultInstance();\n }\n }",
"public String getCommandClass() {\n\treturn className;\n }",
"@JsonIgnore\n\tdefault short getCmd() {\n\t\tMessageMeta annotation = getClass().getAnnotation(MessageMeta.class);\n\t\tif (annotation != null) {\n\t\t\treturn annotation.cmd();\n\t\t}\n\t\treturn 0;\n\t}",
"public abstract String getCommand();",
"public Set<CommandType> getAccessCommands(){\n return this.accessCommands;\n }",
"public String getOperationType() {\n\t\treturn this.operationType;\n\t}",
"int getCommand();",
"public String[] getNativeCommands(String mime_type) {\n/* 199 */ String[] cmds = null;\n/* 200 */ List v = (List)this.native_commands.get(mime_type.toLowerCase(Locale.ENGLISH));\n/* */ \n/* 202 */ if (v != null) {\n/* 203 */ cmds = new String[v.size()];\n/* 204 */ cmds = (String[])v.toArray((Object[])cmds);\n/* */ } \n/* 206 */ return cmds;\n/* */ }",
"public String getOperTypeId() {\r\n\t\treturn operTypeId;\r\n\t}",
"@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}",
"EnumOperationType getOperationType();",
"@Override\n public int getCommandId() {\n return serialUid;\n }",
"public int commandLength() {\r\n return command.length();\r\n }",
"@Override\n\t/**\n\t * @return commandName\n\t */\n\tpublic String getOperationName() {\n\t\treturn commandName;\n\t}",
"final public String getActionCommand() {\n return command;\n }",
"byte getCommand(int n) {\r\n return command_journal[n];\r\n }",
"Commands getCommandes();",
"java.lang.String getCommandName();",
"public int getActionCommand() {\n return actionCommand_;\n }",
"@Override\n public SCMCommandProto.Type getType() {\n return SCMCommandProto.Type.closeContainerCommand;\n }",
"public dynamixel_command_t getArmCommand();",
"public com.google.protobuf.ProtocolStringList\n getCommandList() {\n return command_.getUnmodifiableView();\n }",
"public String getCommand(){\r\n return commandUpdate;\r\n }",
"public int getActionCommand() {\n return actionCommand_;\n }",
"public String getOperTypeName() {\r\n\t\treturn operTypeName;\r\n\t}",
"public String getCommandName() {\n try {\n if (command != null) {\n if (command.has(GnsProtocol.COMMANDNAME)) {\n return command.getString(GnsProtocol.COMMANDNAME);\n }\n }\n } catch (JSONException e) {\n // Just ignore it\n }\n return \"unknown\";\n }",
"public char getType() {\n return this._type;\n }",
"public Long getOperatetype() {\n return operatetype;\n }",
"public String[] readCommand();",
"public interface OperationType {\n char getOperationType();\n}",
"public char getType() {\n return this.type;\n }",
"public String getRealCombotype() {\r\n return realCombotype;\r\n }",
"public ServerInfo commandInterface()\n {\n return command_stub;\n }",
"public byte getType() {\n return this.type;\n }",
"public char getType() {\r\n return type;\r\n }",
"public char getType() {\n return type;\n }"
] | [
"0.8420735",
"0.7527486",
"0.71063733",
"0.7051446",
"0.70483017",
"0.6928216",
"0.67715436",
"0.6760858",
"0.6724041",
"0.66893417",
"0.66525024",
"0.6652425",
"0.65843326",
"0.6571126",
"0.65496486",
"0.6507826",
"0.6497389",
"0.64912546",
"0.64912546",
"0.644199",
"0.6439817",
"0.6398643",
"0.6336903",
"0.6331575",
"0.63199085",
"0.6314193",
"0.63124937",
"0.63084716",
"0.62961245",
"0.6295401",
"0.6256846",
"0.62333465",
"0.623098",
"0.6225038",
"0.6192741",
"0.61840105",
"0.6170415",
"0.6167358",
"0.61436766",
"0.6141343",
"0.6137679",
"0.6105381",
"0.60630673",
"0.6060626",
"0.6056642",
"0.6044719",
"0.6039665",
"0.602884",
"0.6023",
"0.60033774",
"0.5989493",
"0.5985742",
"0.5970652",
"0.59598064",
"0.5942216",
"0.59272236",
"0.5921364",
"0.5921138",
"0.5913658",
"0.5905608",
"0.586703",
"0.585481",
"0.5851147",
"0.5832203",
"0.5827051",
"0.5818024",
"0.5808052",
"0.5803175",
"0.57953626",
"0.57884127",
"0.5762453",
"0.5738247",
"0.57234275",
"0.57230073",
"0.5713301",
"0.5703691",
"0.570365",
"0.5703615",
"0.5653245",
"0.56435686",
"0.5622431",
"0.56115997",
"0.56095904",
"0.55987287",
"0.55962944",
"0.5571467",
"0.55558765",
"0.5552869",
"0.5547907",
"0.5524112",
"0.55092716",
"0.55091834",
"0.55060524",
"0.5505443",
"0.54988813",
"0.54967034",
"0.5477017",
"0.5468008",
"0.5464428",
"0.54136676"
] | 0.83136284 | 1 |
Setter method for the COM property "CommandType" | @VTID(14)
void setCommandType(
com.exceljava.com4j.excel.XlCmdType rhs); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCommandType(CommandType commandType) {\n this.commandType = commandType;\n }",
"public void setCommandType(String commandType) {\n this.commandType = commandType == null ? null : commandType.trim();\n }",
"public String getCommandType() {\n return commandType;\n }",
"@VTID(13)\n com.exceljava.com4j.excel.XlCmdType getCommandType();",
"public void setCommandType(typekey.LoadCommandType value);",
"CommandTypes(String command) {\n this.command = command;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.LoadCommandType getCommandType();",
"@Override\n\tpublic String getCommandType() {\n\t\treturn \"BreakPointCommand\";\n\t}",
"CommandType(String label) {\n this.label = label;\n }",
"ICommandTypeRegistry getCommandTypeRegistry();",
"@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}",
"public boolean isSetMCommandType() {\n return this.mCommandType != null;\n }",
"public void setCommand(String command) {\n this.command = command;\n }",
"public abstract void setCommand(String cmd);",
"public void setCommand(String command) {\n _command = command;\n }",
"public void setCommand(String command)\n {\n this.command = command;\n }",
"void writeCommand(CommProtocolCommands command, Object ... params) throws IOException;",
"protected void setCommand(String command)\n {\n Command = command;\n }",
"public Command commandType() {\r\n if (command.startsWith(\"push\")) {\r\n return Command.C_PUSH;\r\n } else if (command.startsWith(\"pop\")) {\r\n return Command.C_POP;\r\n } else if (isArithmeticCmd()) {\r\n return Command.C_ARITHMETIC;\r\n } else if (command.startsWith(\"label\")) {\r\n return Command.C_LABEL;\r\n } else if (command.startsWith(\"goto\")) {\r\n return Command.C_GOTO;\r\n } else if (command.startsWith(\"if-goto\")) {\r\n return Command.C_IF;\r\n } else if (command.startsWith(\"function\")) {\r\n return Command.C_FUNCTION;\r\n } else if (command.startsWith(\"call\")) {\r\n return Command.C_CALL;\r\n } else if (command.startsWith(\"return\")) {\r\n return Command.C_RETURN;\r\n } else {\r\n return null;\r\n }\r\n }",
"public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}",
"public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}",
"void\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);",
"public void setCommand(String command) {\n this.command = command;\n }",
"public EventType getCommand(){\n return this.command;\n }",
"public void setCommand(String command){\r\n commandUpdate=command;\r\n }",
"public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"public void setCommand(@NonNull Command<Boolean, String> command) {\n this.command = command;\n }",
"public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }",
"public String getCommand() { return command; }",
"public void sendCommand(Command cmd);",
"public interface CommandType {\n\n /** Returns unique identifier for this command type. */\n @NotNull\n String getId();\n\n /** Returns the display name of the command type. */\n @NotNull\n String getDisplayName();\n\n /** Returns the icon used to represent the command type. */\n @NotNull\n SVGResource getIcon();\n\n /** Returns the {@link CommandConfigurationPage}s that allow to configure specific command parameters. */\n @NotNull\n Collection<CommandConfigurationPage<? extends CommandConfiguration>> getConfigurationPages();\n\n /** Returns factory for {@link CommandConfiguration} instances. */\n @NotNull\n CommandConfigurationFactory<? extends CommandConfiguration> getConfigurationFactory();\n\n /** Returns command template that will be used for newly created command. */\n @NotNull\n String getCommandTemplate();\n\n /** Returns template for preview Url. */\n String getPreviewUrlTemplate();\n}",
"public String getCommand() {\r\n return command;\r\n }",
"public Global.CommandType determineCommandType(String userCommand) {\n\t\tif (userCommand == null || userCommand.equals(\"\")) {\n\t\t\tlogger.log(Level.WARNING, Global.MESSAGE_ILLEGAL_ARGUMENTS);\n\t\t\treturn Global.CommandType.INVALID;\n\t\t}\n\n\t\tString commandTypeString;\n\n\t\ttry {\n\t\t\tcommandTypeString = getFirstWord(userCommand);\n\t\t} catch (Exception e) {\n\t\t\tlogger.log(Level.INFO, MESSAGE_NO_COMMANDTYPE);\n\t\t\treturn Global.CommandType.INVALID;\n\t\t}\n\n\t\tif (commandTypeString.equalsIgnoreCase(\"add\")) {\n\t\t\treturn Global.CommandType.ADD;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"update\")) {\n\t\t\treturn Global.CommandType.UPDATE;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"done\")) {\n\t\t\treturn Global.CommandType.DONE;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"open\")) {\n\t\t\treturn Global.CommandType.OPEN;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"delete\")) {\n\t\t\treturn Global.CommandType.DELETE;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"clear\")) {\n\t\t\treturn Global.CommandType.CLEAR;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"display\")) {\n\t\t\treturn Global.CommandType.DISPLAY;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"search\")) {\n\t\t\treturn Global.CommandType.SEARCH;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"sync\")) {\n\t\t\treturn Global.CommandType.SYNC;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"undo\")) {\n\t\t\treturn Global.CommandType.UNDO;\n\t\t} else if (commandTypeString.equalsIgnoreCase(\"exit\")) {\n\t\t\treturn Global.CommandType.EXIT;\n\t\t} else {\n\t\t\treturn Global.CommandType.INVALID;\n\t\t}\n\t}",
"@Override\n\tpublic void setCommand(String command) {\n\t\tmodel.setCommand(command);\n\t}",
"public void setCommand1(Command command1) {\n this.command1 = command1;\n }",
"private Integer mapCommandType(String cmd) {\n\n\t\tif (isCommandType(Command.ADD_COMMAND, cmd)) {\n\t\t\treturn Command.ADD_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.CHANGE_STORAGE_COMMAND, cmd)) {\n\t\t\treturn Command.CHANGE_STORAGE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.DELETE_COMMAND, cmd)) {\n\t\t\treturn Command.DELETE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.DONE_COMMAND, cmd)) {\n\t\t\treturn Command.DONE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.EDIT_COMMAND, cmd)) {\n\t\t\treturn Command.EDIT_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.LIST_COMMAND, cmd)) {\n\t\t\treturn Command.LIST_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.UNDO_COMMAND, cmd)) {\n\t\t\treturn Command.UNDO_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.SEARCH_COMMAND, cmd)) {\n\t\t\treturn Command.SEARCH_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.LIST_TODAY_COMMAND, cmd)) {\n\t\t\treturn Command.LIST_TODAY_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.LIST_NEXT_COMMAND, cmd)) {\n\t\t\treturn Command.LIST_NEXT_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.HELP_COMMAND, cmd)) {\n\t\t\treturn Command.HELP_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.SCHEDULE_COMMAND, cmd)) {\n\t\t\treturn Command.SCHEDULE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.UNDONE_COMMAND, cmd)) {\n\t\t\treturn Command.UNDONE_COMMAND_TYPE;\n\t\t} else if (isCommandType(Command.GOOGLE_ADD_COMMAND, cmd)) {\n\t\t\treturn Command.GOOGLE_ADD_COMMAND_TYPE;\n\t\t} else {\n\t\t\treturn ERROR_COMMAND_TYPE;\n\t\t}\n\n\t}",
"public native final EditorBaseEvent commands(JsArray<? extends JavaScriptObject> val) /*-{\n\t\tthis.commands = val;\n\t\treturn this;\n\t}-*/;",
"public String getCommandType(){\n \treturn \"aeReport\";\n }",
"public int getType() {\n return Command.TYPE_QUERY;\n }",
"public int getType() {\n return Command.TYPE_STORED_PROCEDURE;\n }",
"public String getCommand(){\n return command;\n }",
"public CommandDetail(CommandType commandType) {\n this.commandType = commandType;\n commandData = new HashMap<String, Object>();\n }",
"public String getCommand() {\n return this.command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }",
"public CommandType commandType() {\n // Logik: Deal with the specific types first, then assume that whatever's left is arithmetic\n\n // Default case\n CommandType type = CommandType.C_ARITHMETIC;\n // Deal with instruction\n switch (instructionChunks[0]) {\n case \"push\":\n type = CommandType.C_PUSH;\n break;\n case \"pop\":\n type = CommandType.C_POP;\n }\n return type;\n }",
"public String getCommand() {\n\n return command;\n }",
"@Override\n public SCMCommandProto.Type getType() {\n return SCMCommandProto.Type.closeContainerCommand;\n }",
"public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }",
"public int getCommand() {\n return command_;\n }",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"void\t\tsetCommandOptions(String command, Strings options);",
"public int getCommand() {\n return command_;\n }",
"public CommandValue getCommand() {\n\t\treturn value;\n\t}",
"public Set<CommandType> getAccessCommands(){\n return this.accessCommands;\n }",
"@VTID(12)\n void setCommandText(\n @MarshalAs(NativeType.VARIANT) java.lang.Object rhs);",
"public CommandType parseCommand() {\n try {\n extractCommand();\n extractParameters();\n parameterData = new ParameterParser(commandType, parameters).processParameters();\n executeCommand();\n } catch (IllegalCommandException e) {\n commandUi.printInvalidCommand();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printInvalidParameters();\n } catch (MissingTaskLiteralException e) {\n commandUi.printMissingLiteral(e.getMessage());\n } catch (NumberFormatException e) {\n commandUi.printTaskDoneNotInteger();\n } catch (DateTimeFormatException e) {\n commandUi.printDateTimeFormatIncorrect();\n }\n\n return commandType;\n }",
"public void setOperationType(int value) {\r\n this.operationType = value;\r\n }",
"@JsProperty(name = \"type\")\n public native void setType(String value);",
"public String getCmd() {\r\n return cmd;\r\n }",
"public String \n getCommand() \n {\n return pCommand;\n }",
"public ProtocolCommandSupport getCommandSupport() {\n return this._commandSupport_;\n }",
"@Override\n public int getCommandId() {\n return serialUid;\n }",
"public void setCommandKey(String commandKey)\n\t{\n\t\tthis.commandKey = Toolbox.trim(commandKey, 1);\n\t}",
"protected void setCommand(CommandManager command) {\n\tthis.command = command;\n }",
"void setCommandProperties(String commandID, AttributeList properties);",
"public int sendCommand(String command) throws IOException\n {\n return sendCommand(command, null);\n }",
"CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }",
"java.lang.String getCommand();",
"public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }",
"String createCommand(String commandType, AttributeList properties);",
"public byte getCmd() {\n return this.btCmd;\n }",
"public void setDeviceType(String argDeviceType){\n\t argDeviceType=argDeviceType.toUpperCase();\n\t if(argDeviceType.equals(\"CISCO\"))\n\t deviceType=RouterType.CISCO;\n\t else\n\t\t deviceType=RouterType.JUNIPER;\n }",
"@Override\r\n\tpublic final void receiveCommand(Command cmd) {\n\t\tif (cmd.getCommand().equals(Constants.CMD_PARAMETER)) {\r\n\t\t\tString param = cmd.getParameter(\"NAME\");\r\n\t\t\tString value = cmd.getParameter(\"VALUE\");\r\n\t\t\tif (param != null && value != null && parameters.containsKey(param)) {\r\n\t\t\t\t// Calls user method\r\n\t\t\t\tif (!parameterUpdate(param, value)) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// TODO Alguns parâmetros não podem ser mudados!\r\n\t\t\t\tparameters.put(param, value);\r\n\t\t\t\t// Let the console knows about the updated parameter\r\n\t\t\t\tcmd = new Command(getAddress(), \"/console\", \"UPDATE\");\r\n\t\t\t\tcmd.addParameter(\"AGENT\", getAgent().getAgentName());\r\n\t\t\t\tcmd.addParameter(\"COMPONENT\", getComponentName());\r\n\t\t\t\tcmd.addParameter(\"NAME\", param);\r\n\t\t\t\tcmd.addParameter(\"VALUE\", value);\r\n\t\t\t\tsendCommand(cmd);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tprocessCommand(cmd);\r\n\t\t}\r\n\t}",
"public ControlCommand() {\r\n\t\tthis(CommandType.NotSet);\r\n\t}",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\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 command_ = s;\n }\n return s;\n }\n }",
"public void setDataType(byte dataType) {\r\n\t\tthis.dataType = dataType;\t\t\r\n\t}",
"List<CmdType> getSupportedTypes();",
"CommandWord(final String pCommandString)\n {\n this.aCommandString = pCommandString;\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}",
"public String getCommand(){\r\n return commandUpdate;\r\n }",
"public String Command() {\n\treturn command;\n }",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int commandLength() {\r\n return command.length();\r\n }",
"public String getCommandClass() {\n\treturn className;\n }",
"public int getCommand()\n\t{\n\t\treturn this.command;\n\t}",
"public String getOperTypeId() {\r\n\t\treturn operTypeId;\r\n\t}",
"public void setType(char type) {\n this.type = type;\n }",
"public void setType(char type) {\n this.type = type;\n }",
"final public void setActionCommand(String command) {\n this.command = command;\n }",
"public int getCmd() {\n return cmd_;\n }",
"public String getOperationType() {\r\n return operationType;\r\n }",
"@Override\n\tpublic int setDataType(int dataType)\n\t{\n\t\tthis.dataType = dataType;\n\t\treturn 0;\n\t}",
"CommandEnum() {}",
"public int getCmd() {\n return cmd_;\n }",
"public int getOperationType() {\r\n return operationType;\r\n }",
"@JsProperty(name = \"msType\")\n public native void setMsType(String value);"
] | [
"0.7725005",
"0.74302626",
"0.7387298",
"0.738444",
"0.7051463",
"0.65317976",
"0.6435187",
"0.6130294",
"0.6128024",
"0.6015903",
"0.5985455",
"0.5949445",
"0.5927515",
"0.5911853",
"0.58067584",
"0.579621",
"0.5773078",
"0.5730399",
"0.57198787",
"0.57128465",
"0.5704755",
"0.5702665",
"0.56574684",
"0.5561062",
"0.55066913",
"0.54884833",
"0.5476309",
"0.5470847",
"0.54685855",
"0.5464457",
"0.5429486",
"0.5423926",
"0.54060066",
"0.5401021",
"0.53976893",
"0.5383595",
"0.5366958",
"0.53667545",
"0.53519166",
"0.5326731",
"0.5322211",
"0.5311266",
"0.529743",
"0.5293674",
"0.5290817",
"0.5290817",
"0.5281944",
"0.5280437",
"0.52278787",
"0.52143985",
"0.5191916",
"0.5190993",
"0.51891327",
"0.51707065",
"0.5157461",
"0.515014",
"0.5141132",
"0.5133986",
"0.5098677",
"0.5092711",
"0.50855654",
"0.50790983",
"0.50479066",
"0.50326085",
"0.50033647",
"0.49911228",
"0.49774116",
"0.4963687",
"0.49513993",
"0.49362543",
"0.493324",
"0.4922419",
"0.49205688",
"0.49153963",
"0.4912012",
"0.4905538",
"0.49036905",
"0.49025676",
"0.4894176",
"0.48911548",
"0.48815784",
"0.48776448",
"0.48774806",
"0.48731378",
"0.48731342",
"0.4871651",
"0.4870873",
"0.48580682",
"0.48548633",
"0.4850657",
"0.48479933",
"0.48479933",
"0.48426366",
"0.4829991",
"0.48261935",
"0.4821854",
"0.48150575",
"0.4812287",
"0.481201",
"0.48114482"
] | 0.77637285 | 0 |
View layout = View.inflate(context, R.layout.toast_tiem, null); textView = (TextView) layout.findViewById(R.id.textcontent); textView.setText(name); | public void makeToast(String name,int time){
toast = new Toast(context);
// toast.setGravity(Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL , 0, SecretMessageApplication.get720WScale(240));
toast.setDuration(time);
// toast.setView(layout);
toast.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayToast(String message) {\n\n //get the LayoutInflater and inflate the custom_toast layout\n LayoutInflater view = getLayoutInflater();\n View layout = view.inflate(R.layout.toast, null);\n\n //get the TextView from the custom_toast layout\n TextView text = layout.findViewById(R.id.txtMessage);\n text.setText(message);\n\n //create the toast object, set display duration,\n //set the view as layout that's inflated above and then call show()\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.layout_one,container,false);\n view.findViewById(R.id.lay1);\n TxtViw1=(TextView)view.findViewById(R.id.lay1);\n String string=\"The director has put a lot of efforts in giving Baadshaho a period film look\" +\n \"The vehicles and props have been designed as per the need of the narration.\" +\n \"However, it is yet to be seen whether Baadshaho works as a complete package or not.\";\n TxtViw1.setText(string);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_my_messge, container, false);\n TextView tv = rootView.findViewById(R.id.textMessage);\n tv.setText(Message);\n return rootView;\n }",
"protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}",
"private void displayToast(String message) {\n Toast.makeText(getLayoutInflater().getContext(), message, Toast.LENGTH_SHORT).show();\n }",
"public MyDialogToast create() {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n MyDialogToast myDialogToast = new MyDialogToast(context, R.style.dialog);\n View view = inflater.inflate(R.layout.my_dialog_toast, null);\n myDialogToast.addContentView(view, new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT));\n if (message != null) {\n TextView v = (TextView) view.findViewById(R.id.tvToastMessage);\n v.setText(message);\n }\n myDialogToast.setContentView(view);\n return myDialogToast;\n }",
"private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }",
"private void ShowToast(String massage, int colorText, int background) {\n Typeface font = Typeface.createFromAsset(getAssets(), \"comic.ttf\");\n Toast toast = Toast.makeText(SignUpActivity.this, massage,\n Toast.LENGTH_LONG);\n View view=toast.getView();\n TextView view1= view.findViewById(android.R.id.message);\n view1.setTextColor(colorText);\n view.setBackgroundResource(background);\n view1.setTypeface(font);\n toast.show();\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tToast toast = new Toast(ToastDialogActivity.this);\r\n\t\t//得到布局内容\r\n\t\tView view = LayoutInflater.from(ToastDialogActivity.this).inflate(R.layout.dialog_toast,null);\r\n\t\t//设置布局\r\n\t\ttoast.setView(view);\r\n\t\t//设置排列方式 参数1 排列方式 参数2 X方向 参数3 y方向\r\n\t\ttoast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\r\n\t\t//持续时间\r\n\t\ttoast.setDuration(Toast.LENGTH_LONG);\r\n //显示\r\n\t\ttoast.show();\r\n\t}",
"@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_company_details_company_intro, container, false);\n Toast.makeText(getContext(), company_id+company_name, Toast.LENGTH_SHORT).show();\n companyDetailsCompanyIntroText=v.findViewById(R.id.companyDetailsCompanyIntroText);\n setValues();\n return v;\n }",
"private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_success, container, false);\n //user box\n mIvAvatar = (ImageView) v.findViewById(R.id.iv_avatar);\n mTvName = (TextView) v.findViewById(R.id.tv_name); \n //function\n v.findViewById(R.id.btn_chat).setOnClickListener(this);\n v.findViewById(R.id.btn_share).setOnClickListener(this);\n return v;\n }",
"@Override \n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.article_reader_layout, container, false);\n textView = (TextView)view.findViewById(R.id.text) ;\n return view;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n String message = getArguments().getString(\"EXTRA_MESSAGE\");\n View v = inflater.inflate(R.layout.fragment_tasks, container, false);\n TextView messageTextView = (TextView) v.findViewById(R.id.tasksTextView);\n messageTextView.setText(\"Wow amazing \" + getArguments().getString(\"EXTRA_MESSAGE\"));\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n view = inflater.inflate(R.layout.fragment_atsc, container, false);\n mtextView = inflater.inflate(R.layout.dialog_text_layout,null,false);\n// mlayout = inflater.inflate(R.layout.dialog_text_layout,(ViewGroup) container.findViewById(R.id.dialog));\n mContext = this.getActivity();\n\n WindowManager wm = (WindowManager) getContext()\n .getSystemService(Context.WINDOW_SERVICE);\n\n width = wm.getDefaultDisplay().getWidth();\n height = wm.getDefaultDisplay().getHeight();\n// TextView txt_content = (TextView)view.findViewById(R.id.txt_atsccontent);\n// txt_content.setText(\"第一个Fragment\");\n\n Log.e(\"HEHE\", \"1日狗\");\n initView();\n initListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_hosted_events, container, false);\n textView = rootView.findViewById(R.id.hostedtext);\n Log.d(\"flashchat\",\"CURR TEXT : \" + textView.getText().toString());\n //textView.setText(\"WELL GOT IN\");\n mListView = rootView.findViewById(R.id.hostlist);\n getHostEvents();\n Log.d(\"flashchat\",\"ListView should be set\");\n mContext = container.getContext();\n return rootView;\n }",
"void toast(int resId);",
"@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }",
"@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n mTitleContent = (TextView) findViewById(R.id.title_content);\n mLeftTv = (TextView) findViewById(R.id.title_left_tv);\n mRightTv = (TextView) findViewById(R.id.title_right_tv);\n mRightImg = (ImageView) findViewById(R.id.title_right_img);\n mMessageView = (RelativeLayout) findViewById(R.id.toolbar_message_view);\n mUnReadImg = (ImageView) findViewById(R.id.toolbar_message_unread_img);\n }",
"@Override\n public void run() {\n if (mToast == null) {\n mToast = Toast.makeText(getApplicationContext(), text,\n Toast.LENGTH_SHORT);\n } else {\n mToast.setText(text);\n }\n mToast.show();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unical_sms, container, false);\n tvAdress = ((TextView) view.findViewById(R.id.tvAdress));\n tvBody = ((TextView) view.findViewById(R.id.tvBody));\n btnSend = (Button) view.findViewById(R.id.btnSend);\n btnSend.setOnClickListener(this);\n\n tvAdress.setText(smsData.getNumber());\n tvBody.setText(smsData.getBody());\n return view;\n }",
"protected void showToast(CharSequence text) {\r\n\t Context context = getApplicationContext();\r\n\t int duration = Toast.LENGTH_SHORT;\r\n\t \r\n\t Toast toast = Toast.makeText(context, text, duration);\r\n\t toast.show();\r\n\t}",
"private void messageToUser(CharSequence text)\n {\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_feed_web, container, false);\n mDieselTextView = (TextView) v.findViewById(R.id.dieselTextView);\n mE85TextView = (TextView) v.findViewById(R.id.e85TextView);\n mE20TextView = (TextView) v.findViewById(R.id.e20TextView);\n mGas91TextView = (TextView) v.findViewById(R.id.gas91TextView);\n mGas95TextView = (TextView) v.findViewById(R.id.gas95TextView);\n\n // set custom font\n Typeface type = Typeface.createFromAsset(getActivity().getAssets(), \"ds_digital.TTF\");\n mDieselTextView.setTypeface(type);\n mE85TextView.setTypeface(type);\n mE20TextView.setTypeface(type);\n mGas91TextView.setTypeface(type);\n mGas95TextView.setTypeface(type);\n\n\n connectWebservice();\n return v;\n }",
"private static void showToastText(String infoStr, int TOAST_LENGTH) {\n Context context = null;\n\t\ttoast = getToast(context);\n\t\tTextView textView = (TextView) toast.getView().findViewById(R.id.tv_toast);\n\t\ttextView.setText(infoStr);\n textView.setTypeface(Typeface.SANS_SERIF);\n\t\ttoast.setDuration(TOAST_LENGTH);\n\t\ttoast.show();\n\t}",
"protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}",
"private void initCreateAccountTextView() {\n TextView textViewCreateAccount = (TextView) findViewById(R.id.textViewLogin);\n textViewCreateAccount.setText(fromHtml(\"<font color='#000000'>Sudah Memiliki Akun ? </font><font color='#03A9F4'>Login</font>\"));\n textViewCreateAccount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(daftar.this, activity_login.class);\n startActivity(intent);\n }\n });\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){\n View layout = inflater.inflate(R.layout.setup_chatroom_dialog, container, false);\n Button setupButton = (Button)layout.findViewById(R.id.setup_chatRoom_dialog_setup_button);\n Button cancelButton = (Button)layout.findViewById(R.id.setup_chatRoom_dialog_cancel_button);\n editText = (EditText)layout.findViewById(R.id.setup_chatRoom_dialog_edit_text);\n setupButton.setOnClickListener(setupListener);\n cancelButton.setOnClickListener(cancelListener);\n return layout;\n }",
"public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_text, container, false);\n Button btn =view.findViewById(R.id.btn);\n final EditText edit = view.findViewById(R.id.edit);\n\n btn.setOnClickListener(new Button.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n String strEdit = edit.getText().toString();\n Toast.makeText(getContext(), strEdit, Toast.LENGTH_SHORT).show();\n }\n });\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n MainActivity.abcd = 1;\n View rootView = inflater.inflate(R.layout.fragment_home, container, false);\n TextView tv = (TextView) rootView.findViewById(R.id.textView);\n String date = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date());\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n Date d = new Date();\n String dayOfTheWeek = sdf.format(d);\n\n tv.setText(\"Welcome: \" + LoginPage.name + \"\\n\" + \"Department: \" + LoginPage.dept + \"\\n\\n\" + \"Date: \" + date + \"\\n\" + \"Day: \" + dayOfTheWeek);\n\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\ttv1 = (TextView)getActivity().findViewById(R.id.username);\n//\t\ttv1.setText(this.getArguments().getString(\"user\"));\n\t\treturn inflater.inflate(R.layout.activity_personal_info, container, false);\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.device, container,false);\n\t\ttextView = (TextView) view.findViewById(R.id.textView1);\n\t\ttextView.setText(\"Device page\");\n\t\t\n\t\treturn view;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_view, container, false);\n\n viewTaskName = (TextView)view.findViewById(R.id.viewTaskName);\n viewTaskTime = (TextView)view.findViewById(R.id.viewTaskTime);\n\n Bundle args = getArguments();\n if(args != null){\n viewTaskName.setText(args.getString(\"name\"));\n viewTaskTime.setText(args.getString(\"time\"));\n }\n\n\n\n return view;\n }",
"public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }",
"private void setInfo(String info) {\n// TextView textView = (TextView) findViewById(R.id.info);\n// textView.setText(info);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=LayoutInflater.from(getActivity()).inflate(R.layout.fragment_edit_name, null);\n\n EditText etName= (EditText) v.findViewById(R.id.et_edit_name);\n\n\n // 初始化姓名\n etName.setText(((MyApplication)getActivity().getApplication()).getUser().getUserName());\n\n\n return v;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n setText();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_notice, container, false);\n textView = view.findViewById(R.id.noticeBF);\n textView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), MainActivity.class);\n startActivity(intent);\n }\n });\n return view;\n }",
"private TextView getTextView(String content) {\n TextView textView = new TextView(this.getContext());\n textView.setEms(30);\n textView.setTextColor(getResources().getColor(R.color.ldstools_black));\n if(content != null && !content.isEmpty()) {\n textView.setText(content);\n }\n return textView;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View v = inflater.inflate(R.layout.fragment_halaman, container, false);\r\n\r\n TextView tv = (TextView) v.findViewById(R.id.tv_halaman);\r\n String halaman = getArguments().getString(EXTRAS);\r\n tv.setText(halaman);\r\n\r\n Log.e(TAG, \"onCreateView : Halaman Fragment\" + halaman);\r\n\r\n return v;\r\n\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_sys_msg, container, false);\n initView(view);\n initListener();\n return view;\n }",
"@SuppressLint(\"ShowToast\")\r\n\tpublic void createVrToast(String text) {\r\n\t\tif ( text == null ) {\r\n\t\t\ttext = \"null toast text!\";\r\n\t\t}\r\n\t\tLog.v(TAG, \"createVrToast \" + text);\r\n\r\n\t\t// If we haven't set up the surface / surfaceTexture yet,\r\n\t\t// do it now.\r\n\t\tif (toastTexture == null) {\r\n\t\t\ttoastTexture = nativeGetPopupSurfaceTexture(appPtr);\r\n\t\t\tif (toastTexture == null) {\r\n\t\t\t\tLog.e(TAG, \"nativePreparePopup returned NULL\");\r\n\t\t\t\treturn; // not set up yet\r\n\t\t\t}\r\n\t\t\ttoastSurface = new Surface(toastTexture);\r\n\t\t}\r\n\r\n\t\tToast toast = Toast.makeText(this.getApplicationContext(), text,\r\n\t\t\t\tToast.LENGTH_SHORT);\r\n\r\n\t\tthis.createVrToast( toast.getView() );\r\n\t}",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView v=inflater.inflate(R.layout.onbusway, container, false);\r\n\t\ttv_bus=(TextView) v.findViewById(R.id.et_myendPosition_bus);\r\n\t\t//setOnClick();\r\n\t\treturn v;\r\n\t\t\r\n\t}",
"@Override\n\tprotected void loadXml() {\n\t\tsetContentView(R.layout.activity_my_message);\n\t}",
"public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }",
"public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }",
"public void loadToast(){\n Toast.makeText(getApplicationContext(), \"Could not find city\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View viewSecondFragment =inflater.inflate(R.layout.fragment_second, container, false);\n textViewSmsBody = viewSecondFragment.findViewById(R.id.textViewSmsBody);\n //Получаем данные\n Bundle args = getArguments();\n if (args != null) {\n String smsBody = args.getString(SMA_BODY);\n Toast.makeText(getContext(), smsBody, Toast.LENGTH_SHORT).show();\n setTextSmsBody(smsBody);\n }\n\n\n\n\n return viewSecondFragment;\n }",
"public void onClick(DialogInterface dialog, int id) {\n\r\n Context context = getApplicationContext();\r\n CharSequence text = \"Welcome \" + name + \"! Signing up...\";\r\n int duration = Toast.LENGTH_SHORT;\r\n\r\n Toast toast = Toast.makeText(context, text, duration);\r\n toast.show();\r\n }",
"public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.cold_tab, container, false);\n\n TextView textView = (TextView)view.findViewById(R.id.textView1);\n s1=\"The common cold is a viral infection of your upper respiratory tract — your nose and throat. Most people recover from a common cold in about a week or two. If symptoms don't improve, see your doctor.\";\n textView.setText(s1);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mContext = getActivity();\n\n if (AppHelper.isLoggedIn(mContext) == false) {\n View v = inflater.inflate(R.layout.empty, container, false);\n TextView textView = (TextView) v.findViewById(R.id.emptyText);\n textView.setText(\"ยังไม่มีข้อมูล\");\n return v;\n }\n\n mRootView = inflater.inflate(R.layout.fragment_notification, container, false);\n super.onCreateView(inflater, container, savedInstanceState);\n\n\n emptyText = (TextView) mRootView.findViewById(R.id.emptyText);\n if (!hasNetworkConnection(getActivity())) {\n emptyText.setVisibility(View.VISIBLE);\n }\n\n return mRootView;\n }",
"@Override\n public void run() {\n Toast.makeText(rootView.getContext(), mensaje,\n Toast.LENGTH_LONG).show();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View myView = inflater.inflate(R.layout.fragment_challenges_screen, container, false);\n testView = (TextView) myView.findViewById(R.id.testtext);\n\n\n return inflater.inflate(R.layout.fragment_challenges_screen, container, false);\n }",
"@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n\n //'this' refers to the LinearLayout, cause we are currently in LinearLayout\n\n //access the day UI element\n mTextDate = (TextView) this.findViewById(R.id.tv_day);\n\n //access the month UI element\n mTextMonth = (TextView) this.findViewById(R.id.tv_month);\n\n //access the year UI element\n mTextYear = (TextView) this.findViewById(R.id.tv_year);\n\n //setOnTouchListener on the UI elements\n\n mTextDate.setOnTouchListener(this);\n mTextMonth.setOnTouchListener(this);\n mTextYear.setOnTouchListener(this);\n\n //get the current date from the Calendar\n int date = mCalendar.get(Calendar.DATE);\n\n //get current month\n int month = mCalendar.get(Calendar.MONTH);\n\n //get current year\n int year = mCalendar.get(Calendar.YEAR);\n\n //pass the date, month and year to update method which will update the UI\n update(date, month, year, 0, 0, 0);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_supers, container, false);\n mTypeface = Typeface.createFromAsset(getActivity().getAssets(), \"gothic.TTF\");\n actHome = (HomeActivity)getActivity();\n assignTextViews();\n return mView;\n\n }",
"@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_spinner, container, false);\n\t\t((TextView)view.findViewById(R.id.message)).setText(message);\n\t\treturn view;\n\t}",
"@SuppressLint(\"SetTextI18n\")\r\n @Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle\r\n savedInstanceState) {\r\n menu = inflater.inflate(R.layout.fragment_main, container, false);\r\n movieList = menu.findViewById(R.id.listView);\r\n new AsyncTopFive().execute();\r\n welcome=menu.findViewById(R.id.welcome);\r\n currentDate=menu.findViewById(R.id.currentDate);\r\n SimpleDateFormat format = new SimpleDateFormat(\"dd-mm-yyyy\");\r\n Date date = new Date(System.currentTimeMillis());\r\n currentDate.setText(format.format(date));\r\n //database ;\r\n SharedPreferences sp = getActivity().getSharedPreferences(String.valueOf(Login.userid), Context.MODE_PRIVATE);\r\n String name = sp.getString(\"firstname\",\"\");\r\n welcome.setText(\"WelCome ! \" + name);\r\n return menu;\r\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //show UI, R =resource, layout = folder\n setContentView(R.layout.activity_main);\n textViewMessage = findViewById(R.id.textViewMessage);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_intro_fragment1,container,false);\n //text = (TextView)v.findViewById(R.id.text);\n\n //Typeface tf = Typeface.createFromAsset(getActivity().getAssets(),\"fonts/raleway.ttf\");\n //text.setTypeface(tf);\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(\n R.layout.fragment_first, container, false);\n\n txt = v.findViewById(R.id.txt);\n txt.setText(\"First Fragment\");\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup group, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_item_details, group, false);\n\n //builds textview and links to xml\n toDoInfo = (TextView) v.findViewById(R.id.item_detail_text);\n String itemText = getArguments().getString(MainActivity.TODO_DETAIL);\n toDoInfo.setText(itemText);\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_privacy_politic, container, false);\n unbinder = ButterKnife.bind(this, view);\n setTexto();\n return view;\n }",
"public static void setDialogViewMessage(Context context, AlertDialog.Builder alert, String message1, String message2){\n// Log.e(\"setDialogViewMessage\", \"setDialogViewMessage\");\n LinearLayout ll=new LinearLayout(context);\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\n layoutParams.setMargins(20, 10, 20, 10);\n\n ll.setOrientation(LinearLayout.VERTICAL);\n ll.setLayoutParams(layoutParams);\n TextView messageView1 = new TextView(context);\n TextView messageView2 = new TextView(context);\n TextView messageView3 = new TextView(context);\n messageView1.setLayoutParams(layoutParams);\n messageView2.setLayoutParams(layoutParams);\n messageView3.setLayoutParams(layoutParams);\n messageView1.setText(message1);\n messageView2.setText(message2);\n PackageInfo pInfo = null;\n String version = \"\";\n try {\n pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n version = pInfo.versionName;\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n\n messageView3.setText(\"Card Safe Version \" + version);\n ll.addView(messageView1);\n ll.addView(messageView2);\n ll.addView(messageView3);\n alert.setView(ll);\n\n }",
"private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_modifyname, container,\n\t\t\t\tfalse);\n\t\tmActionbarName = (TextView) view.findViewById(R.id.actionbar_name);\n\t\tmActionbarPrev = (ImageView) view.findViewById(R.id.actionbar_prev);\n\t\tmNameTitle = (TextView) view.findViewById(R.id.name_title);\n\t\tmModifyName = (EditText) view.findViewById(R.id.edit_name);\n\t\tmFinish = (Button) view.findViewById(R.id.finish);\n\t\tmFinish.setVisibility(View.VISIBLE);\n\n\t\tmNameType = getArguments().getInt(\"NAMETYPE\", Modify_Note);\n\t\tfUerInfo = (FamilyUserInfo) getArguments().getSerializable(\n\t\t\t\t\"UsersDetail\");\n\t\tif (mNameType == Modify_Note) {\n\t\t\tmActionbarName.setText(R.string.actionbar_note);\n\t\t\tmName = fUerInfo.getNoteName();\n\t\t\tmNameTitle.setText(R.string.info_new_note);\n\n\t\t} else {\n\t\t\tmActionbarName.setText(R.string.actionbar_nick);\n\t\t\tmName = fUerInfo.getNickName();\n\t\t\tmNameTitle.setText(R.string.info_new_nick);\n\t\t}\n\t\tmModifyName.setText(mName);\n\n\t\tmActionbarPrev.setOnClickListener(this);\n\t\tmFinish.setOnClickListener(this);\n\t\treturn view;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View vr= inflater.inflate(R.layout.fragment_fragment__my_notifications, container, false);\n // bttn=(Button)vr.findViewById(R.id.bttn);\n return vr;\n }",
"public View getEmptyView(String str) {\n View inflate = View.inflate(this, R.layout.empty_view, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.tv_tip)).setText(str);\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_leave_view, container, false);\n textView=(TextView)rootView.findViewById(R.id.leavechk);\n // check for Internet status\n if (AppStatus.getInstance(getActivity()).isOnline())\n {\n progress = new ProgressDialog(getActivity());\n MyAsyncTask task = new MyAsyncTask();\n task.execute(links.leaveall);\n }\n else\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"No Connection\");\n builder.setMessage(\"We are not Connected :( \\n Please Check Your Connection and retry :) \");\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog dialog = builder.show();\n TextView messageText = (TextView)dialog.findViewById(android.R.id.message);\n messageText.setGravity(Gravity.CENTER);\n dialog.show();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n TextView textView = new TextView(getActivity());\n textView.setText(R.string.hello_blank_fragment);\n return textView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View myView = inflater.inflate(R.layout.fragment_main, container, false);\n logger = myView.findViewById(R.id.textView2);\n logger.setText(info);\n\n myView.findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent();\n //normally this intent should have something, like data...\n MyJobIntentService.enqueueWork(getContext(),intent);\n }\n });\n return myView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.add_chat, container, false);\n }",
"public View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\t\t Bundle savedInstanceState)\n{\n\tview = inflater.inflate(R.layout.profile_activity, container, false);\n\tcontext = view.getContext();\n\n\tloginText = (FloatLabeledEditText)view.findViewById(R.id.user);\n\tpassText = (FloatLabeledEditText)view.findViewById(R.id.etPassword);\n\tnewpass = (FloatLabeledEditText)view.findViewById(R.id.etnewPassword);\n\tconfText = (FloatLabeledEditText)view.findViewById(R.id.etnewPasswordConfirm);\n\n\tbtnLogin=(RobotoTextView)view.findViewById(R.id.login);\n//\tbtnLogin.setOnClickListener(this);\n // new AsynchTaskEx().execute();\n\treturn view;\n}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_read_sleep, container, false);\n txRead = view.findViewById(R.id.txtRead);\n\n List<SleepRecord> sleepers = MainActivity.sleepDatabase.sleepDAO().getDataFromDB();\n\n String info = \"\";\n\n for(SleepRecord sleep : sleepers)\n {\n int ID = sleep.getRecordID();\n String sleeptime = sleep.getStartTime();\n String waketime = sleep.getEndTime();\n String startdate = sleep.getStartDate();\n String enddate = sleep.getEndDate();\n\n info = info +\"\\n\\n\"+\"Id: \"+ID+\"\\n Sleep Time: \"+sleeptime+\"\\n Wake Time: \"+waketime+\"\\n Start Date: \"+startdate+\"\\n End Date: \" + enddate;\n }\n\n txRead.setText(info);\n\n return view;\n }",
"private void initCreateAccountTextView() {\n\n TextView textViewCreateAccount = (TextView) findViewById(R.id.textViewCreateAccount);\n // El que hizo esto es un Dios\n textViewCreateAccount.setText(fromHtml(\"<font color='#000'>¿No tienes cuenta? </font><font color='#6dbaf8'>Registrate</font>\"));\n textViewCreateAccount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(LoginActivity.this, RegisterActivity.class);\n startActivity(intent);\n }\n });\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView mInfoView = (View) inflater.inflate(R.layout.layout_infopager,\r\n\t\t\t\tcontainer, false);\r\n\t\ttvInfoContent = (TextView) mInfoView.findViewById(R.id.tv_meetinginfo);\r\n\t\treturn mInfoView;\r\n\t}",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView v=inflater.inflate(R.layout.notepad_main, container, false);\r\n\t\tbody=(LineEditText) v.findViewById(R.id.body);\r\n\t\tdel=(Button) v.findViewById(R.id.delAll);\r\n\t\tdel.setOnClickListener(this);\r\n\t\treturn v;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_login, container, false);\n txtTitle = (TextView) view.findViewById(R.id.title);\n return view;\n }",
"@Override\n public void viewCreated() {\n TextView title = (TextView) inflater.inflate(R.layout.layout_custom_title, null);\n title.setId(R.id.txt_title);\n title.setText(R.string.balance_title);\n layout.addView(title);\n // [END Creating the title textview]\n\n // [START Creating amount textview]\n // Filling it with content, changing the design and moving it below the title\n amount = (TextView) inflater.inflate(R.layout.layout_custom_text, null);\n amount.setId(R.id.txt_amount);\n amount.setTextSize(TypedValue.COMPLEX_UNIT_PT, 30f);\n amount.setAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.fade_in));\n amount.setTextAlignment(View.TEXT_ALIGNMENT_CENTER);\n\n RelativeLayout.LayoutParams amountParams = new RelativeLayout.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.MATCH_PARENT\n );\n amountParams.addRule(RelativeLayout.BELOW, title.getId());\n amountParams.addRule(RelativeLayout.CENTER_IN_PARENT);\n amountParams.setMargins(20, 20, 20, 20);\n\n layout.addView(amount, amountParams);\n // [END Creating amount textview]\n\n // [START Creating a description textview]\n // to describe what the amount means and moving it below the amount\n TextView description = (TextView) inflater.inflate(R.layout.layout_custom_text, null);\n description.setId(R.id.txt_description);\n description.setText(R.string.balance_description);\n\n RelativeLayout.LayoutParams descParams = new RelativeLayout.LayoutParams(\n ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.WRAP_CONTENT\n );\n descParams.addRule(RelativeLayout.BELOW, amount.getId());\n\n layout.addView(description, descParams);\n // [END Creating a description textview]\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_help_support, container, false);\n// xmlinit();\n// xmlonclik();\n call = view.findViewById(R.id.call);\n submitQuery = view.findViewById(R.id.submitQuery);\n whatsapp = view.findViewById(R.id.whatsapp);\n\n\n call.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n call(view);\n }\n });\n\n whatsapp.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n whatsapp(view);\n }\n });\n\n submitQuery.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n submitQuery(view);\n }\n });\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.weather_frag, container, false);\n //Initiate all of my textviews to populate them with the data we receive from the JSON object\n cF = (TextView)rootView.findViewById(R.id.city_field);\n uF = (TextView)rootView.findViewById(R.id.updated_field);\n dF = (TextView)rootView.findViewById(R.id.details_field);\n cTF = (TextView)rootView.findViewById(R.id.current_temperature_field);\n wI = (TextView) rootView.findViewById(R.id.weather_icon);\n\n layout = (RelativeLayout) rootView.findViewById(R.id.weatherbackground);\n\n wI.setTypeface(wF);\n\n Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);\n TextView mTitle = (TextView) toolbar.findViewById(R.id.toolbar_title);\n mTitle.setText(\"Weather\");\n return rootView;\n }",
"static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\tpublic void setupView() {\n\t\ttv = (TextView) findViewById(R.id.mjson_layout_text);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bob, container, false);\n textBox = (EditText) view.findViewById(R.id.BobTextbox);\n Button buttonSend = (Button) view.findViewById(R.id.BobSend);\n buttonSend.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BobSend(v);\n }\n });\n Button buttonRead = (Button) view.findViewById(R.id.BobRead);\n buttonRead.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n BobRead(v);\n }\n });\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_display_ajoke, container, false);\n\n Intent intent = getActivity().getIntent();\n String joke = intent.getStringExtra(DisplayAJokeActivity.JOKE_KEY);\n TextView jokeTextView = (TextView) rootView.findViewById(R.id.tv_joke);\n jokeTextView.setText(joke);\n\n return rootView;\n }",
"public View onCreateView(@NonNull LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_ibrahim, container, false);\n final TextView tv = root.findViewById(R.id.ibrahimTextIbraFragment);\n\n //set tv variable text\n tv.setText(\"Ibrahim Ali 301022172\");\n\n //Call clear canvas function\n clearCanvas(root);\n\n return root;\n }",
"public void onClick(View view){\n\n String name = mNameField.getText().toString();\n Toast.makeText(this,\"Hello There\"+name, Toast.LENGTH_LONG).show();\n\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_chat, container, false);\n mEditMessage = (EditText) rootView.findViewById(R.id.editMessage);\n Button buttonSend = (Button) rootView.findViewById(R.id.button_send);\n buttonSend.setOnClickListener(this);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_inbox, container, false);\n btnChat = v.findViewById(R.id.btnChat);\n btnPesanBntn = v.findViewById(R.id.btnPesanBantuan);\n\n btnPesanBntn.setOnClickListener(this);\n btnChat.setOnClickListener(this);\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_info, container, false);\n\n TextView name = (TextView) v.findViewById(R.id.user_name);\n TextView email = (TextView) v.findViewById(R.id.user_email);\n TextView tvNbTrips = (TextView) v.findViewById(R.id.user_nb_trips);\n TextView login = (TextView) v.findViewById(R.id.user_login);\n String nbTrips = String.valueOf(MyApplication.getInstance().getTrips().size());\n String n = MyApplication.getInstance().getSP_FirstName() + \" \" + MyApplication.getInstance().getSP_LastName();\n String l = MyApplication.getInstance().getSP_Login();\n name.setText(name.getText() + \" \" + n);\n email.setText(email.getText() + \" \" + MyApplication.getInstance().getSP_Email());\n tvNbTrips.setText(tvNbTrips.getText() + \" \" + nbTrips);\n login.setText(login.getText() + \" \" + MyApplication.getInstance().getSP_Login());\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_make_text, container, false);\n initView();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n queue= Volley.newRequestQueue(getContext());\n pd= new ProgressDialog(getContext());\n pd.setProgressStyle(pd.STYLE_SPINNER);\n pd.setTitle(\"Login __ !\");\n pd.setMessage(\"Plz Wait ___ !\");\n alertDialog= new AlertDialog.Builder(getContext()).create();\n alertDialog.setTitle(\"Message\");\n\n\n\n\n View rootview = inflater.inflate(R.layout.fragment_booking_history, container, false);\n list= (ListView) rootview.findViewById(R.id.listHistory);\n tdisplay= (TextView) rootview.findViewById(R.id.display);\n\n\n\n findBooking();\n return rootview;\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tinflater = LayoutInflater.from(getApplicationContext());\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_account, container, false);\n unbinder = ButterKnife.bind(this, view);\n mUsername.setText(username);\n setManagerName();\n\n\n return view;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) { \t\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n btnRegister = (Button)findViewById(R.id.btnRegister);\n btnRegister.setOnClickListener(btnRegisterOnClick);\n btnUnregister = (Button)findViewById(R.id.btnUnregister);\n btnUnregister.setOnClickListener(btnUnregisterOnClick);\n txtMsg = (TextView)findViewById(R.id.txtMsg); \n }",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n // EditText etFoo = (EditText) view.findViewById(R.id.etFoo);\n }"
] | [
"0.70181143",
"0.6814955",
"0.6701773",
"0.66653043",
"0.6629647",
"0.65732515",
"0.6490529",
"0.6483728",
"0.6422021",
"0.6417085",
"0.6382877",
"0.63520485",
"0.63410246",
"0.6317778",
"0.6297507",
"0.62860286",
"0.62762123",
"0.62625504",
"0.6260967",
"0.6246799",
"0.6235811",
"0.6215031",
"0.62143815",
"0.62012446",
"0.6200742",
"0.61911917",
"0.61907357",
"0.6177158",
"0.61728406",
"0.6171796",
"0.6170143",
"0.61659414",
"0.61458707",
"0.6145406",
"0.61249214",
"0.611585",
"0.61072636",
"0.6083304",
"0.6077838",
"0.607695",
"0.6076519",
"0.6071839",
"0.60708606",
"0.60639316",
"0.60573953",
"0.60543483",
"0.6054024",
"0.60518867",
"0.60460466",
"0.6045775",
"0.6043829",
"0.6038561",
"0.6037609",
"0.6033195",
"0.603105",
"0.60268116",
"0.60266864",
"0.6023584",
"0.6023013",
"0.6022023",
"0.60158366",
"0.6010751",
"0.60024905",
"0.599686",
"0.5995861",
"0.599438",
"0.5994338",
"0.5978033",
"0.5970909",
"0.5966052",
"0.59597903",
"0.59537",
"0.59526783",
"0.595197",
"0.59516186",
"0.59465015",
"0.59448063",
"0.59438026",
"0.5938809",
"0.5938809",
"0.593467",
"0.59346324",
"0.5928292",
"0.59250754",
"0.59235436",
"0.5921777",
"0.5917244",
"0.59086615",
"0.59063727",
"0.5905968",
"0.5902941",
"0.58930916",
"0.58904076",
"0.5885172",
"0.5884515",
"0.5882568",
"0.5878319",
"0.58764416",
"0.58738214",
"0.5872134"
] | 0.67576003 | 2 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final ArrayList<String> listaRegistros = new ArrayList<>();
listaRegistros.add("Blusa Chica");
listaRegistros.add("Pantalon");
listaRegistros.add("Sudadera Grande");
listaRegistros.add("Playera Hombre");
listaRegistros.add("Falda");
listaRegistros.add("Chaleco");
listaRegistros.add("Blusa Chica");
listaRegistros.add("Pantalon");
listaRegistros.add("Sudadera Grande");
listaRegistros.add("Playera Hombre");
listaRegistros.add("Falda");
listaRegistros.add("Chaleco");
listaRegistros.add("Blusa Chica");
listaRegistros.add("Pantalon");
listaRegistros.add("Sudadera Grande");
listaRegistros.add("Playera Hombre");
listaRegistros.add("Falda");
listaRegistros.add("Chaleco");
vista=inflater.inflate(R.layout.fragment_carrito, container, false);
buscador=(EditText) vista.findViewById(R.id.txtBuscar);
ticket=(EditText) vista.findViewById(R.id.txtTicket);
buscar=(Button) vista.findViewById(R.id.btnBuscar);
listaRegistros.add("Pantalon");
listView=(ListView) vista.findViewById(R.id.listView);
ArrayAdapter adapter= new ArrayAdapter(getContext(),android.R.layout.simple_list_item_1,listaRegistros);
listView.setAdapter(adapter);
buscar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String reg=buscador.getText().toString();
boolean existe=listaRegistros.contains(buscador.getText().toString());
if (existe){
int index=listaRegistros.indexOf("Pantalon");
String aux=ticket.getText().toString();
ticket.setText(listaRegistros.get(index)+","+aux);
Toast.makeText(getContext(),"Venta generada",Toast.LENGTH_SHORT).show();
buscador.setText("");
}else{
Toast.makeText(getContext(),"El articulo no existe",Toast.LENGTH_SHORT).show();
buscador.setText("");
}
}
});
return vista;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@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__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Result add(Employer employer) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
user checked an item | @Override
public void onClick(DialogInterface dialog, int which) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void itemSelected(boolean selected);",
"@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n if (isChecked) {\n Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show();\n }\n }",
"public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }",
"@Override\r\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n final int checkedCount = lista.getCheckedItemCount();\r\n // Set the CAB title according to total checked items\r\n mode.setTitle(checkedCount + \" Selecionados\");\r\n selPessoas = new ArrayList<Pessoa>();\r\n if(checkedCount > 0){\r\n SparseBooleanArray selected = lista.getCheckedItemPositions();\r\n Log.v(\"TAGSELINI\", \" \"+selected.size() );\r\n for (int i = 0; i < selected.size(); i++) {\r\n if (selected.get(i)) {\r\n Pessoa selecteditem = adapter.getItem(selected.keyAt(i));\r\n Log.v(\"TAGSELLLL\", selecteditem.toString());\r\n selPessoas.add(selecteditem);\r\n }else{\r\n Log.v(\"TAGSEL\", i+\" -|- falhou :( \");\r\n }\r\n }\r\n mInterno.findItem(R.id.action_save).setVisible(true);\r\n }else{\r\n mInterno.findItem(R.id.action_save).setVisible(false);\r\n }\r\n\r\n // Calls toggleSelection method from ListViewAdapter Class\r\n adapter.toggleSelection(position);\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n items.get(position).isChecked = !(items.get(position).isChecked);\n Log.println(Log.DEBUG, TAG, items.get(position).name + \":\" + items.get(position).isChecked);\n }",
"public static boolean isItemChecked(String item){\n\t\tint itemPosition=getItemPosition(item);\n\t\treturn itemList.get(itemPosition).getCheckmark();\n\t}",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n\n if (accept_checkBox.isChecked()) {\n checked = \"true\";\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"checked_box\", checked);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n } else {\n checked = \"false\";\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"checked_box\", checked);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n checkBox_seleccionados[position] = holder.chkItem.isChecked();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carModelCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carModelCompanies[which];\n // Notify the current action\n }",
"@Override\r\n\t\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\r\n\t\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t}",
"@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public void onCheckboxClicked(View view) {\n boolean aprendido = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.checkboxAprendido:\n if (aprendido == true) {\n // Put some meat on the sandwich\n break;\n }\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tCheckBox checkbox = (CheckBox) arg0;\r\n\t\t\t\tcProducts.get(position).setCheck(checkbox.isChecked());\r\n\t\t\t\tif (itemChangedListener != null) {\r\n\t\t\t\t\titemChangedListener.itemCilck(position,\r\n\t\t\t\t\t\t\tcheckbox.isChecked());\r\n\t\t\t\t}\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n filteredNewsgroupItems.get(fPosition).setSelected(((CheckBox)v).isChecked());\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n checkedItems[which] = isChecked;\n // Get the current focused item\n //String currentItem = colorsList.get(which);\n }",
"@Override\n\tpublic void onChecked(MusicEntity musicEntity, int selectedNum) {\n\t\thadSelectedMusic.add(musicEntity);\n\t}",
"public void onItemStateChanged(String id, boolean selected);",
"public abstract boolean isSelected();",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carCompanies[which];\n\n }",
"public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }",
"@Override\n\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\n\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t\n\t\t\t\tif(dummyList.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\n\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\n\t\t\t\t dummyList.add(messageList.get(position));\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t\t\t int cn=0;\n\t\t\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessagewrapper objec=messageList.get(position);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(obje.get_number().equals(objec.get_number())){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcn++;\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\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(cn==1){\n\t\t\t\t\t\t\t\t\tcheckedCount--;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdummyList.remove(messageList.get(position));\n\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\t\n\t\t\t\t\t\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\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 dummyList.add(messageList.get(position));\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\n\t\t\t\t\n\t\t\t\t }\t\n\t\t\t\t\n\t\t\t}",
"public void toggleChecked(boolean b) {\n for (int i = 0; i < itemsDigested.size(); i++) {\n ListItem item = itemsDigested.get(i);\n if (b && item.getChecked() != ListItem.CHECKED) {\n item.setChecked(true);\n notifyItemChanged(i);\n } else if (!b && item.getChecked() == ListItem.CHECKED) {\n item.setChecked(false);\n notifyItemChanged(i);\n }\n }\n\n if (mainFrag.mActionMode != null) {\n mainFrag.mActionMode.invalidate();\n }\n\n if (getCheckedItems().size() == 0) {\n mainFrag.selection = false;\n if (mainFrag.mActionMode != null) mainFrag.mActionMode.finish();\n mainFrag.mActionMode = null;\n }\n }",
"public boolean isSelected();",
"public boolean isSelected();",
"@Override\r\n public void onClick(View view){\r\n int actualClicked = view.getId();\r\n\r\n for(SpecialPoint box: allCheckBoxes){\r\n int tempId = box.getCheckBox().getId();\r\n CheckBox currentBox = box.getCheckBox();\r\n\r\n if(tempId == actualClicked && currentBox.isChecked()){\r\n currentBox.setChecked(true);\r\n }else{\r\n currentBox.setChecked(false);\r\n }\r\n }\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n branchesCitiesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = branchesCities[which];\n // Notify the current action\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tProduct temp =(Product)v.getTag();\r\n\t\t\t\tLog.e(temp.getName(), String.valueOf(true));\r\n\t\t\t\tif(((CheckBox)v).isChecked()){\t\t\t\t\t\r\n\t\t\t\t\tac.ProductList.put(temp,true);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tac.ProductList.put(temp,false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tac.RefreshSelect();\r\n\t\t\t\tac.RefreshSumPrice();\r\n\t\t\t}",
"public void itemStateChanged(ItemEvent check) {\r\n\r\n // Process the reaction class checkboxes. First\r\n // get the components of the relevant panels\r\n // and store in Component arrays (Note: the method\r\n // getComponents() is inherited from the Container\r\n // class by the subclass Panel).\r\n\r\n Component [] components4 = panel4.getComponents();\r\n Component [] components5 = panel5.getComponents();\r\n\r\n // Now process these components that are checkboxes\r\n // (only the first element of each array is). First cast the\r\n // Component to a Checkbox. Then use the getState()\r\n // method of Checkbox to return boolean true if\r\n // checked and false otherwise.\r\n\r\n Checkbox cb4 = (Checkbox)components4[0]; // Checkbox for panel4\r\n Checkbox cb5 = (Checkbox)components5[0]; // Checkbox for panel5\r\n\r\n // Then use the getState() method of Checkbox to\r\n // return boolean true if checked and false otherwise.\r\n // Use this logic to disable one or the other sets of\r\n // choices for temperature and density input.\r\n\r\n if( cb4.getState() ) {\r\n checkBox[1].setState(false); // Seems needed despite CheckBoxGroup\r\n rho.disable();\r\n rho.setBackground(disablebgColor);\r\n rhoL.setForeground(disablefgColor);\r\n T9.disable();\r\n T9.setBackground(disablebgColor);\r\n T9L.setForeground(disablefgColor);\r\n profile.enable();\r\n profile.setBackground(panelBackColor);\r\n profileL.setForeground(panelForeColor);\r\n } else if ( cb5.getState() ) {\r\n checkBox[0].setState(false);\r\n rho.enable();\r\n rho.setBackground(panelBackColor);\r\n rhoL.setForeground(panelForeColor);\r\n T9.enable();\r\n T9.setBackground(panelBackColor);\r\n T9L.setForeground(panelForeColor);\r\n profile.disable();\r\n profile.setBackground(disablebgColor);\r\n profileL.setForeground(disablefgColor);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n \t if(item.isChecked()){\n item.setChecked(false);\n \t \t isHintOn = false;\n \t \t Toast.makeText(getApplicationContext(), \"Game Hint is OFF\", Toast.LENGTH_SHORT).show();\n \t \t }\n else{\n item.setChecked(true);\n \t isHintOn = true;\n \t Toast.makeText(getApplicationContext(), \"Game Hint is ON\", Toast.LENGTH_SHORT).show();\n }\n \t return true;\n }",
"@Override\r\n\t public void onItemClick(AdapterView<?> arg0, View v,int position, long arg3) {\n\r\n\t\t\t\t\tImageView ivSelect = (ImageView) v.findViewById(R.id.im_check);\r\n\t\t\t\t\tif (lvContact.isItemChecked(position)) {\r\n\t\t\t\t\t\tivSelect.setImageResource(R.drawable.circle_check);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tivSelect.setImageResource(R.drawable.circle);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t }",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif (checkbox.isChecked())\n\t\t\t\t{\n\t\t\t\t\t//add player to active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 1);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//remove player from active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 0);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public Object getCheckedValue();",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"public void toppingChecked(View view) {\n Log.d(\"Method\", \"toppingChecked()\");\n displayQuantity();\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (((MemeLab.get(getActivity())).getMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n ((MemeLab.get(getActivity())).getMyanmarMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n (MemeLab.get(getActivity())\n .getCustomMemes()\n .contains(MemeLab.get(getActivity()).getMeme(selectedImagePath)))) {\n if (isChecked) {\n Toast.makeText(getActivity(), \"added to Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, true);\n }\n if (!isChecked) {\n Toast.makeText(getActivity(), \"removed from Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, false);\n }\n } else {\n Toast.makeText(getActivity(), \"cannot add Custom images to Favorites\", Toast.LENGTH_SHORT)\n .show();\n }\n }",
"@Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\t\tif(checked) {\n\t\t\tmSelection.setNewSelection(position, checked);\n\t\t\tnumItemsSelected++;\n\t\t}\n\t\telse {\n\t\t\tmSelection.removeSelection(position);\n\t\t\tnumItemsSelected--;\n\t\t}\n\t\tmode.setTitle(numItemsSelected + \" items selected\");\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton pos, boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tif (!listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.add(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.put(posit, isChecked);\n\t\t\t\t} else {\n\t\t\t\t\tif (listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.remove(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.remove(posit);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }",
"public boolean isSelected() { return selected; }",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"@Override\r\n\tpublic void checkListItem(Integer id, Boolean isChecked) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tListItem li = new ListItem();\r\n\t\tli.setId(id);\r\n\t\tli.setChecked(isChecked);\r\n\t\tthis.listItemMapper.checkListItem(li);\r\n\t}",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.cb_cod:\n if (cb_cod.isChecked()) {\n cod = \"1\";\n } else {\n cod = \"0\";\n }\n\n\n break;\n }\n }",
"abstract public void onSingleItemClick(View view);",
"public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Country country = (Country) parent.getItemAtPosition(position);\n CheckBox chk = (CheckBox) findViewById(R.id.checkBox1);\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteItem(parent, position);\n } else if (item == 1) {\n updateBook(parent, position);\n } else if (item == 2) {\n updateAuthor(parent, position);\n }else if (item == 3) {\n makeChoice(false);\n } else if (item == 4) {\n makeChoice(true);\n }\n\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n CTSCLog.i(TAG, \"onOptionsItemSelected(), item Id = \" + item.getItemId());\n switch (item.getItemId()) {\n case MENU_CHECK_ALL:\n setCheckAll(true);\n break;\n case MENU_UNCHECK_ALL:\n setCheckAll(false);\n break;\n case MENU_CHECK_REPORT:\n Intent intent = new Intent(CheckResultActivity.this, CheckReportActivity.class);\n intent.putExtra(\"Category\", mCheckCategory);\n startActivity(intent);\n break;\n default:\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"boolean getIsChecked();",
"public void checkboxClickedSetDone(ActionEvent actionEvent) {\n // we will simply find the item within the group and use its setDone() method\n }",
"@Override\n\t\t\tpublic void checkbox_select_callBack(boolean ifCheck) {\n\t\t\t\tsuper.checkbox_select_callBack(ifCheck);\n\t\t\t\titemCallBack.call_select(ifCheck,position);\n\t\t\t}",
"boolean isCheckedOut();",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }",
"public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }",
"public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tToast.makeText(getContext(), \"Checked \" + isChecked + \"Position \" + position, Toast.LENGTH_LONG).show();\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tlistItems.get(position).setChecked(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistItems.get(position).setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}",
"@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n // Set item in checked state\n menuItem.setChecked(true);\n // TODO ronesim: handle navigation\n // Closing drawer on item click\n drawerLayout.closeDrawers();\n return true;\n }",
"@Override\n\tpublic boolean isChecked() {\n\t\treturn ischecked;\n\t}",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }",
"void itemSelected(OutlineItem item);",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}",
"public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.checkbox_termos:\n if (checked) {\n termosAceitos = true;\n }else {\n termosAceitos = false;\n }\n break;\n }\n }",
"@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }",
"public void checkClicked(View v)\n {\n CheckBox checkbox = (CheckBox) v;\n Log.d(\"potato\", \"checkClicked: \");\n String get_name = checkbox.getText().toString();\n\n // use string name resource for the id of the image\n resID_from_name = getResources().getIdentifier(get_name, \"id\", getPackageName()); //google power\n\n // check if checkbox is checked. And show or don't shown image accordingly\n if(checkbox.isChecked() == false)\n {\n image = findViewById(resID_from_name);\n image.setVisibility(View.INVISIBLE);\n }\n\n else\n {\n image = findViewById(resID_from_name);\n image.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n CheckItemBase item = null;\n if (TAB_AUTO == mTabIndex) {\n item = mAutoItemArray.get(arg2).mCheckItem;\n } else if (TAB_MANUAL == mTabIndex) {\n item = mManualItemArray.get(arg2).mCheckItem;\n } else {\n myAssert(false, \"No such tab!\");\n }\n if (null == item) {\n myAssert(false, \"check item is null!\");\n }\n setupAlertDlg(item);\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\t\t\t\tif(isChecked){\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我喜欢上了\"+multi_list[which]+\"!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我不喜欢\"+multi_list[which]+\"了!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}",
"public boolean getSelected()\n {\n return selected; \n }",
"private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }",
"@Override\n public void onClickUser(User user, int position) {\n RecyclerView.ViewHolder holder = recyclerView.findViewHolderForAdapterPosition(position);\n CheckBox checkBox = holder.itemView.findViewById(R.id.checkBoxUser);\n\n if (usersRoomList.contains(user)){\n usersRoomList.remove(user);\n checkBox.setChecked(false);\n }else {\n usersRoomList.add(user);\n checkBox.setChecked(true);\n }\n }",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.green_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.green_jersey);\n }\n\n break;\n case R.id.purple_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.purple_jersey);\n }\n\n\n break;\n\n }\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmMenuListView.setItemChecked(position, true);\n\t // setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mMenuListView);\n drawerlayout=0;\n selectItem(position);\n\t\t\t}",
"@Override\n \t\t\tpublic void checkStateChanged(CheckStateChangedEvent event) {\n \t\t\t\tEntityDefinition eventSource = (EntityDefinition) event.getElement();\n \t\t\t\tif (event.getChecked())\n \t\t\t\t\tselection.add(eventSource);\n \t\t\t\telse\n \t\t\t\t\tselection.remove(eventSource);\n \t\t\t}",
"public void itemStateChanged(ItemEvent e){\n\t\t\tObject source = e.getItemSelectable();\n\t\t\tif(source == debugCheckBoxMenuItem)\n\t\t\t\t\n\t\t\t{//if the source is the debug check box then check the state\n\t\t\t\t//System.out.println(debugCheckBoxMenuItem.getState());\n\t\t\t\tif(debugCheckBoxMenuItem.getState()== true){\n\t\t\t\t\t//if the state is true then display the debug panel\n\t\t\t\t\tdebugScrollPane.setVisible(true);\n\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\telse{//otherwise don't\n\t\t\t\t\t//System.out.println(\"It's false\");\n\t\t\t\t\tdebugScrollPane.setVisible(false);\n\t\t\t\t}\n\t\t\t\tdebugCheckBoxMenuItem.setVisible(true);\n\t\t\t\t//debugTextArea.append(\"great success\\n\");\n\t\t\t\tdebugTextArea.append(\"Debug mode: \" + debugCheckBoxMenuItem.getState() + \"\\n\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }",
"@Override\n public void onStarCheck(ToDoItem item) {\n dbHelper.setStarred(item, true);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n }",
"void selected(AppUser appUser);",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n RowData data = (RowData) viewHolder.chkBox.getTag();\n if (isChecked) {\n\n checkBoxState.set(data.position, true);\n Log.i(tag, \"cursor.getPosition(true) with onChecked Listener : \" + data.position);\n }\n else {\n checkBoxState.set(data.position, false);\n Log.i(tag, \"cursor.getPosition(false) with onChecked Listener : \" + data.position);\n }\n }",
"public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n Context ctxt = getApplicationContext();\n //discover whether child or parent in listview was chosen\n if(buttonView.getTag() instanceof CalorieCategory){\n CalorieCategory key = (CalorieCategory) buttonView.getTag();\n key.setSelected(!key.isSelected()); //toggle\n HashMap<MenuItem, List<String>> dataToSelect = allData.get(key);\n Object[] keys = dataToSelect.keySet().toArray();\n ArrayList<MenuItem> items = new ArrayList<MenuItem>();\n //get a list of items to select correctly\n for(Object k : keys){\n items.add((MenuItem)k);\n }\n //add them to a list of chosenitems\n if(key.isSelected()) {\n for (MenuItem i : items) {\n i.setSelected(true);\n if(!chosenItems.contains(i)) {\n chosenItems.add(i);\n }\n }\n }else{\n for(MenuItem i : items){\n i.setSelected(false);\n chosenItems.remove(i);\n }\n }\n\n }else if(buttonView.getTag() instanceof information.MenuItem){\n MenuItem key = (information.MenuItem) buttonView.getTag();\n HashMap<MenuItem, List<String>> categItems = allData.get(key);\n key.setSelected(!key.isSelected()); //toggle\n if(key.isSelected()){\n if(!chosenItems.contains(key)){\n chosenItems.add(key);\n }\n }else{\n if(chosenItems.contains(key)){\n chosenItems.remove(key);\n }\n }\n }\n\n }",
"public boolean onContextItemSelected(MenuItem item) {\n\n switch (item.getItemId()){\n case R.id.Postular:\n Toast.makeText(this, \"Se registro la postulación con Exito.\", Toast.LENGTH_LONG).show();\n return true;\n case R.id.Compartir:\n Toast.makeText(this, \"Se Compartio el Item.\", Toast.LENGTH_LONG).show();\n return true;\n default:\n return super.onContextItemSelected(item);\n }\n }"
] | [
"0.7077913",
"0.68842727",
"0.68615735",
"0.6792031",
"0.67735827",
"0.67146474",
"0.65617645",
"0.6458162",
"0.64266527",
"0.6392927",
"0.63710827",
"0.63700134",
"0.636298",
"0.6334109",
"0.6331116",
"0.6331116",
"0.6331116",
"0.6305314",
"0.6251219",
"0.6248025",
"0.6234672",
"0.6233154",
"0.6228102",
"0.6217832",
"0.6212061",
"0.62023914",
"0.618647",
"0.6174863",
"0.61293954",
"0.61293954",
"0.6112977",
"0.6102334",
"0.61019486",
"0.60906595",
"0.60886073",
"0.6086769",
"0.6079341",
"0.60709006",
"0.60659873",
"0.60601354",
"0.60583925",
"0.60583174",
"0.6050115",
"0.6035506",
"0.60285807",
"0.6027419",
"0.6016023",
"0.60141367",
"0.5997271",
"0.59927785",
"0.59925306",
"0.5984415",
"0.5979922",
"0.596867",
"0.5966097",
"0.59658474",
"0.59645957",
"0.5958947",
"0.59534794",
"0.5949363",
"0.5945697",
"0.59367657",
"0.59352773",
"0.5925838",
"0.59255093",
"0.59214437",
"0.59136873",
"0.5894543",
"0.5889652",
"0.5878957",
"0.5867236",
"0.5866496",
"0.5865985",
"0.58640236",
"0.5853758",
"0.58519256",
"0.58447784",
"0.5844525",
"0.5838607",
"0.583441",
"0.58233255",
"0.58123696",
"0.581126",
"0.580851",
"0.5806986",
"0.58060515",
"0.58003956",
"0.57830465",
"0.5771266",
"0.57687956",
"0.5766786",
"0.5756631",
"0.5754492",
"0.5754492",
"0.574541",
"0.57407385",
"0.5738747",
"0.57345384",
"0.5730593",
"0.5730354",
"0.572937"
] | 0.0 | -1 |
user checked an item | @Override
public void onClick(DialogInterface dialog, int which) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void itemSelected(boolean selected);",
"@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n if (isChecked) {\n Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show();\n }\n }",
"public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }",
"@Override\r\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n final int checkedCount = lista.getCheckedItemCount();\r\n // Set the CAB title according to total checked items\r\n mode.setTitle(checkedCount + \" Selecionados\");\r\n selPessoas = new ArrayList<Pessoa>();\r\n if(checkedCount > 0){\r\n SparseBooleanArray selected = lista.getCheckedItemPositions();\r\n Log.v(\"TAGSELINI\", \" \"+selected.size() );\r\n for (int i = 0; i < selected.size(); i++) {\r\n if (selected.get(i)) {\r\n Pessoa selecteditem = adapter.getItem(selected.keyAt(i));\r\n Log.v(\"TAGSELLLL\", selecteditem.toString());\r\n selPessoas.add(selecteditem);\r\n }else{\r\n Log.v(\"TAGSEL\", i+\" -|- falhou :( \");\r\n }\r\n }\r\n mInterno.findItem(R.id.action_save).setVisible(true);\r\n }else{\r\n mInterno.findItem(R.id.action_save).setVisible(false);\r\n }\r\n\r\n // Calls toggleSelection method from ListViewAdapter Class\r\n adapter.toggleSelection(position);\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n items.get(position).isChecked = !(items.get(position).isChecked);\n Log.println(Log.DEBUG, TAG, items.get(position).name + \":\" + items.get(position).isChecked);\n }",
"public static boolean isItemChecked(String item){\n\t\tint itemPosition=getItemPosition(item);\n\t\treturn itemList.get(itemPosition).getCheckmark();\n\t}",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n\n if (accept_checkBox.isChecked()) {\n checked = \"true\";\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"checked_box\", checked);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n } else {\n checked = \"false\";\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"checked_box\", checked);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n checkBox_seleccionados[position] = holder.chkItem.isChecked();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carModelCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carModelCompanies[which];\n // Notify the current action\n }",
"@Override\r\n\t\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\r\n\t\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t}",
"@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public void onCheckboxClicked(View view) {\n boolean aprendido = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.checkboxAprendido:\n if (aprendido == true) {\n // Put some meat on the sandwich\n break;\n }\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tCheckBox checkbox = (CheckBox) arg0;\r\n\t\t\t\tcProducts.get(position).setCheck(checkbox.isChecked());\r\n\t\t\t\tif (itemChangedListener != null) {\r\n\t\t\t\t\titemChangedListener.itemCilck(position,\r\n\t\t\t\t\t\t\tcheckbox.isChecked());\r\n\t\t\t\t}\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n filteredNewsgroupItems.get(fPosition).setSelected(((CheckBox)v).isChecked());\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n checkedItems[which] = isChecked;\n // Get the current focused item\n //String currentItem = colorsList.get(which);\n }",
"@Override\n\tpublic void onChecked(MusicEntity musicEntity, int selectedNum) {\n\t\thadSelectedMusic.add(musicEntity);\n\t}",
"public void onItemStateChanged(String id, boolean selected);",
"public abstract boolean isSelected();",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carCompanies[which];\n\n }",
"public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }",
"@Override\n\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\n\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t\n\t\t\t\tif(dummyList.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\n\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\n\t\t\t\t dummyList.add(messageList.get(position));\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t\t\t int cn=0;\n\t\t\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessagewrapper objec=messageList.get(position);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(obje.get_number().equals(objec.get_number())){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcn++;\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\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(cn==1){\n\t\t\t\t\t\t\t\t\tcheckedCount--;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdummyList.remove(messageList.get(position));\n\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\t\n\t\t\t\t\t\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\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 dummyList.add(messageList.get(position));\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\n\t\t\t\t\n\t\t\t\t }\t\n\t\t\t\t\n\t\t\t}",
"public void toggleChecked(boolean b) {\n for (int i = 0; i < itemsDigested.size(); i++) {\n ListItem item = itemsDigested.get(i);\n if (b && item.getChecked() != ListItem.CHECKED) {\n item.setChecked(true);\n notifyItemChanged(i);\n } else if (!b && item.getChecked() == ListItem.CHECKED) {\n item.setChecked(false);\n notifyItemChanged(i);\n }\n }\n\n if (mainFrag.mActionMode != null) {\n mainFrag.mActionMode.invalidate();\n }\n\n if (getCheckedItems().size() == 0) {\n mainFrag.selection = false;\n if (mainFrag.mActionMode != null) mainFrag.mActionMode.finish();\n mainFrag.mActionMode = null;\n }\n }",
"public boolean isSelected();",
"public boolean isSelected();",
"@Override\r\n public void onClick(View view){\r\n int actualClicked = view.getId();\r\n\r\n for(SpecialPoint box: allCheckBoxes){\r\n int tempId = box.getCheckBox().getId();\r\n CheckBox currentBox = box.getCheckBox();\r\n\r\n if(tempId == actualClicked && currentBox.isChecked()){\r\n currentBox.setChecked(true);\r\n }else{\r\n currentBox.setChecked(false);\r\n }\r\n }\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n branchesCitiesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = branchesCities[which];\n // Notify the current action\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tProduct temp =(Product)v.getTag();\r\n\t\t\t\tLog.e(temp.getName(), String.valueOf(true));\r\n\t\t\t\tif(((CheckBox)v).isChecked()){\t\t\t\t\t\r\n\t\t\t\t\tac.ProductList.put(temp,true);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tac.ProductList.put(temp,false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tac.RefreshSelect();\r\n\t\t\t\tac.RefreshSumPrice();\r\n\t\t\t}",
"public void itemStateChanged(ItemEvent check) {\r\n\r\n // Process the reaction class checkboxes. First\r\n // get the components of the relevant panels\r\n // and store in Component arrays (Note: the method\r\n // getComponents() is inherited from the Container\r\n // class by the subclass Panel).\r\n\r\n Component [] components4 = panel4.getComponents();\r\n Component [] components5 = panel5.getComponents();\r\n\r\n // Now process these components that are checkboxes\r\n // (only the first element of each array is). First cast the\r\n // Component to a Checkbox. Then use the getState()\r\n // method of Checkbox to return boolean true if\r\n // checked and false otherwise.\r\n\r\n Checkbox cb4 = (Checkbox)components4[0]; // Checkbox for panel4\r\n Checkbox cb5 = (Checkbox)components5[0]; // Checkbox for panel5\r\n\r\n // Then use the getState() method of Checkbox to\r\n // return boolean true if checked and false otherwise.\r\n // Use this logic to disable one or the other sets of\r\n // choices for temperature and density input.\r\n\r\n if( cb4.getState() ) {\r\n checkBox[1].setState(false); // Seems needed despite CheckBoxGroup\r\n rho.disable();\r\n rho.setBackground(disablebgColor);\r\n rhoL.setForeground(disablefgColor);\r\n T9.disable();\r\n T9.setBackground(disablebgColor);\r\n T9L.setForeground(disablefgColor);\r\n profile.enable();\r\n profile.setBackground(panelBackColor);\r\n profileL.setForeground(panelForeColor);\r\n } else if ( cb5.getState() ) {\r\n checkBox[0].setState(false);\r\n rho.enable();\r\n rho.setBackground(panelBackColor);\r\n rhoL.setForeground(panelForeColor);\r\n T9.enable();\r\n T9.setBackground(panelBackColor);\r\n T9L.setForeground(panelForeColor);\r\n profile.disable();\r\n profile.setBackground(disablebgColor);\r\n profileL.setForeground(disablefgColor);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n \t if(item.isChecked()){\n item.setChecked(false);\n \t \t isHintOn = false;\n \t \t Toast.makeText(getApplicationContext(), \"Game Hint is OFF\", Toast.LENGTH_SHORT).show();\n \t \t }\n else{\n item.setChecked(true);\n \t isHintOn = true;\n \t Toast.makeText(getApplicationContext(), \"Game Hint is ON\", Toast.LENGTH_SHORT).show();\n }\n \t return true;\n }",
"@Override\r\n\t public void onItemClick(AdapterView<?> arg0, View v,int position, long arg3) {\n\r\n\t\t\t\t\tImageView ivSelect = (ImageView) v.findViewById(R.id.im_check);\r\n\t\t\t\t\tif (lvContact.isItemChecked(position)) {\r\n\t\t\t\t\t\tivSelect.setImageResource(R.drawable.circle_check);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tivSelect.setImageResource(R.drawable.circle);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t }",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif (checkbox.isChecked())\n\t\t\t\t{\n\t\t\t\t\t//add player to active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 1);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//remove player from active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 0);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public Object getCheckedValue();",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"public void toppingChecked(View view) {\n Log.d(\"Method\", \"toppingChecked()\");\n displayQuantity();\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (((MemeLab.get(getActivity())).getMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n ((MemeLab.get(getActivity())).getMyanmarMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n (MemeLab.get(getActivity())\n .getCustomMemes()\n .contains(MemeLab.get(getActivity()).getMeme(selectedImagePath)))) {\n if (isChecked) {\n Toast.makeText(getActivity(), \"added to Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, true);\n }\n if (!isChecked) {\n Toast.makeText(getActivity(), \"removed from Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, false);\n }\n } else {\n Toast.makeText(getActivity(), \"cannot add Custom images to Favorites\", Toast.LENGTH_SHORT)\n .show();\n }\n }",
"@Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\t\tif(checked) {\n\t\t\tmSelection.setNewSelection(position, checked);\n\t\t\tnumItemsSelected++;\n\t\t}\n\t\telse {\n\t\t\tmSelection.removeSelection(position);\n\t\t\tnumItemsSelected--;\n\t\t}\n\t\tmode.setTitle(numItemsSelected + \" items selected\");\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton pos, boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tif (!listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.add(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.put(posit, isChecked);\n\t\t\t\t} else {\n\t\t\t\t\tif (listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.remove(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.remove(posit);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }",
"public boolean isSelected() { return selected; }",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"@Override\r\n\tpublic void checkListItem(Integer id, Boolean isChecked) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tListItem li = new ListItem();\r\n\t\tli.setId(id);\r\n\t\tli.setChecked(isChecked);\r\n\t\tthis.listItemMapper.checkListItem(li);\r\n\t}",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.cb_cod:\n if (cb_cod.isChecked()) {\n cod = \"1\";\n } else {\n cod = \"0\";\n }\n\n\n break;\n }\n }",
"abstract public void onSingleItemClick(View view);",
"public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Country country = (Country) parent.getItemAtPosition(position);\n CheckBox chk = (CheckBox) findViewById(R.id.checkBox1);\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteItem(parent, position);\n } else if (item == 1) {\n updateBook(parent, position);\n } else if (item == 2) {\n updateAuthor(parent, position);\n }else if (item == 3) {\n makeChoice(false);\n } else if (item == 4) {\n makeChoice(true);\n }\n\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n CTSCLog.i(TAG, \"onOptionsItemSelected(), item Id = \" + item.getItemId());\n switch (item.getItemId()) {\n case MENU_CHECK_ALL:\n setCheckAll(true);\n break;\n case MENU_UNCHECK_ALL:\n setCheckAll(false);\n break;\n case MENU_CHECK_REPORT:\n Intent intent = new Intent(CheckResultActivity.this, CheckReportActivity.class);\n intent.putExtra(\"Category\", mCheckCategory);\n startActivity(intent);\n break;\n default:\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"boolean getIsChecked();",
"public void checkboxClickedSetDone(ActionEvent actionEvent) {\n // we will simply find the item within the group and use its setDone() method\n }",
"@Override\n\t\t\tpublic void checkbox_select_callBack(boolean ifCheck) {\n\t\t\t\tsuper.checkbox_select_callBack(ifCheck);\n\t\t\t\titemCallBack.call_select(ifCheck,position);\n\t\t\t}",
"boolean isCheckedOut();",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }",
"public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }",
"public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tToast.makeText(getContext(), \"Checked \" + isChecked + \"Position \" + position, Toast.LENGTH_LONG).show();\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tlistItems.get(position).setChecked(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistItems.get(position).setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}",
"@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n // Set item in checked state\n menuItem.setChecked(true);\n // TODO ronesim: handle navigation\n // Closing drawer on item click\n drawerLayout.closeDrawers();\n return true;\n }",
"@Override\n\tpublic boolean isChecked() {\n\t\treturn ischecked;\n\t}",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }",
"void itemSelected(OutlineItem item);",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}",
"public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.checkbox_termos:\n if (checked) {\n termosAceitos = true;\n }else {\n termosAceitos = false;\n }\n break;\n }\n }",
"@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }",
"public void checkClicked(View v)\n {\n CheckBox checkbox = (CheckBox) v;\n Log.d(\"potato\", \"checkClicked: \");\n String get_name = checkbox.getText().toString();\n\n // use string name resource for the id of the image\n resID_from_name = getResources().getIdentifier(get_name, \"id\", getPackageName()); //google power\n\n // check if checkbox is checked. And show or don't shown image accordingly\n if(checkbox.isChecked() == false)\n {\n image = findViewById(resID_from_name);\n image.setVisibility(View.INVISIBLE);\n }\n\n else\n {\n image = findViewById(resID_from_name);\n image.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n CheckItemBase item = null;\n if (TAB_AUTO == mTabIndex) {\n item = mAutoItemArray.get(arg2).mCheckItem;\n } else if (TAB_MANUAL == mTabIndex) {\n item = mManualItemArray.get(arg2).mCheckItem;\n } else {\n myAssert(false, \"No such tab!\");\n }\n if (null == item) {\n myAssert(false, \"check item is null!\");\n }\n setupAlertDlg(item);\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\t\t\t\tif(isChecked){\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我喜欢上了\"+multi_list[which]+\"!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我不喜欢\"+multi_list[which]+\"了!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}",
"public boolean getSelected()\n {\n return selected; \n }",
"private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }",
"@Override\n public void onClickUser(User user, int position) {\n RecyclerView.ViewHolder holder = recyclerView.findViewHolderForAdapterPosition(position);\n CheckBox checkBox = holder.itemView.findViewById(R.id.checkBoxUser);\n\n if (usersRoomList.contains(user)){\n usersRoomList.remove(user);\n checkBox.setChecked(false);\n }else {\n usersRoomList.add(user);\n checkBox.setChecked(true);\n }\n }",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.green_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.green_jersey);\n }\n\n break;\n case R.id.purple_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.purple_jersey);\n }\n\n\n break;\n\n }\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmMenuListView.setItemChecked(position, true);\n\t // setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mMenuListView);\n drawerlayout=0;\n selectItem(position);\n\t\t\t}",
"@Override\n \t\t\tpublic void checkStateChanged(CheckStateChangedEvent event) {\n \t\t\t\tEntityDefinition eventSource = (EntityDefinition) event.getElement();\n \t\t\t\tif (event.getChecked())\n \t\t\t\t\tselection.add(eventSource);\n \t\t\t\telse\n \t\t\t\t\tselection.remove(eventSource);\n \t\t\t}",
"public void itemStateChanged(ItemEvent e){\n\t\t\tObject source = e.getItemSelectable();\n\t\t\tif(source == debugCheckBoxMenuItem)\n\t\t\t\t\n\t\t\t{//if the source is the debug check box then check the state\n\t\t\t\t//System.out.println(debugCheckBoxMenuItem.getState());\n\t\t\t\tif(debugCheckBoxMenuItem.getState()== true){\n\t\t\t\t\t//if the state is true then display the debug panel\n\t\t\t\t\tdebugScrollPane.setVisible(true);\n\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\telse{//otherwise don't\n\t\t\t\t\t//System.out.println(\"It's false\");\n\t\t\t\t\tdebugScrollPane.setVisible(false);\n\t\t\t\t}\n\t\t\t\tdebugCheckBoxMenuItem.setVisible(true);\n\t\t\t\t//debugTextArea.append(\"great success\\n\");\n\t\t\t\tdebugTextArea.append(\"Debug mode: \" + debugCheckBoxMenuItem.getState() + \"\\n\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }",
"@Override\n public void onStarCheck(ToDoItem item) {\n dbHelper.setStarred(item, true);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n }",
"void selected(AppUser appUser);",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n RowData data = (RowData) viewHolder.chkBox.getTag();\n if (isChecked) {\n\n checkBoxState.set(data.position, true);\n Log.i(tag, \"cursor.getPosition(true) with onChecked Listener : \" + data.position);\n }\n else {\n checkBoxState.set(data.position, false);\n Log.i(tag, \"cursor.getPosition(false) with onChecked Listener : \" + data.position);\n }\n }",
"public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n Context ctxt = getApplicationContext();\n //discover whether child or parent in listview was chosen\n if(buttonView.getTag() instanceof CalorieCategory){\n CalorieCategory key = (CalorieCategory) buttonView.getTag();\n key.setSelected(!key.isSelected()); //toggle\n HashMap<MenuItem, List<String>> dataToSelect = allData.get(key);\n Object[] keys = dataToSelect.keySet().toArray();\n ArrayList<MenuItem> items = new ArrayList<MenuItem>();\n //get a list of items to select correctly\n for(Object k : keys){\n items.add((MenuItem)k);\n }\n //add them to a list of chosenitems\n if(key.isSelected()) {\n for (MenuItem i : items) {\n i.setSelected(true);\n if(!chosenItems.contains(i)) {\n chosenItems.add(i);\n }\n }\n }else{\n for(MenuItem i : items){\n i.setSelected(false);\n chosenItems.remove(i);\n }\n }\n\n }else if(buttonView.getTag() instanceof information.MenuItem){\n MenuItem key = (information.MenuItem) buttonView.getTag();\n HashMap<MenuItem, List<String>> categItems = allData.get(key);\n key.setSelected(!key.isSelected()); //toggle\n if(key.isSelected()){\n if(!chosenItems.contains(key)){\n chosenItems.add(key);\n }\n }else{\n if(chosenItems.contains(key)){\n chosenItems.remove(key);\n }\n }\n }\n\n }",
"public boolean onContextItemSelected(MenuItem item) {\n\n switch (item.getItemId()){\n case R.id.Postular:\n Toast.makeText(this, \"Se registro la postulación con Exito.\", Toast.LENGTH_LONG).show();\n return true;\n case R.id.Compartir:\n Toast.makeText(this, \"Se Compartio el Item.\", Toast.LENGTH_LONG).show();\n return true;\n default:\n return super.onContextItemSelected(item);\n }\n }"
] | [
"0.7077913",
"0.68842727",
"0.68615735",
"0.6792031",
"0.67735827",
"0.67146474",
"0.65617645",
"0.6458162",
"0.64266527",
"0.6392927",
"0.63710827",
"0.63700134",
"0.636298",
"0.6334109",
"0.6331116",
"0.6331116",
"0.6331116",
"0.6305314",
"0.6251219",
"0.6248025",
"0.6234672",
"0.6233154",
"0.6228102",
"0.6217832",
"0.6212061",
"0.62023914",
"0.618647",
"0.6174863",
"0.61293954",
"0.61293954",
"0.6112977",
"0.6102334",
"0.61019486",
"0.60906595",
"0.60886073",
"0.6086769",
"0.6079341",
"0.60709006",
"0.60659873",
"0.60601354",
"0.60583925",
"0.60583174",
"0.6050115",
"0.6035506",
"0.60285807",
"0.6027419",
"0.6016023",
"0.60141367",
"0.5997271",
"0.59927785",
"0.59925306",
"0.5984415",
"0.5979922",
"0.596867",
"0.5966097",
"0.59658474",
"0.59645957",
"0.5958947",
"0.59534794",
"0.5949363",
"0.5945697",
"0.59367657",
"0.59352773",
"0.5925838",
"0.59255093",
"0.59214437",
"0.59136873",
"0.5894543",
"0.5889652",
"0.5878957",
"0.5867236",
"0.5866496",
"0.5865985",
"0.58640236",
"0.5853758",
"0.58519256",
"0.58447784",
"0.5844525",
"0.5838607",
"0.583441",
"0.58233255",
"0.58123696",
"0.581126",
"0.580851",
"0.5806986",
"0.58060515",
"0.58003956",
"0.57830465",
"0.5771266",
"0.57687956",
"0.5766786",
"0.5756631",
"0.5754492",
"0.5754492",
"0.574541",
"0.57407385",
"0.5738747",
"0.57345384",
"0.5730593",
"0.5730354",
"0.572937"
] | 0.0 | -1 |
user checked an item | @Override
public void onClick(DialogInterface dialog, int which) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void itemSelected(boolean selected);",
"@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n if (isChecked) {\n Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show();\n }\n }",
"public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }",
"@Override\r\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n final int checkedCount = lista.getCheckedItemCount();\r\n // Set the CAB title according to total checked items\r\n mode.setTitle(checkedCount + \" Selecionados\");\r\n selPessoas = new ArrayList<Pessoa>();\r\n if(checkedCount > 0){\r\n SparseBooleanArray selected = lista.getCheckedItemPositions();\r\n Log.v(\"TAGSELINI\", \" \"+selected.size() );\r\n for (int i = 0; i < selected.size(); i++) {\r\n if (selected.get(i)) {\r\n Pessoa selecteditem = adapter.getItem(selected.keyAt(i));\r\n Log.v(\"TAGSELLLL\", selecteditem.toString());\r\n selPessoas.add(selecteditem);\r\n }else{\r\n Log.v(\"TAGSEL\", i+\" -|- falhou :( \");\r\n }\r\n }\r\n mInterno.findItem(R.id.action_save).setVisible(true);\r\n }else{\r\n mInterno.findItem(R.id.action_save).setVisible(false);\r\n }\r\n\r\n // Calls toggleSelection method from ListViewAdapter Class\r\n adapter.toggleSelection(position);\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n items.get(position).isChecked = !(items.get(position).isChecked);\n Log.println(Log.DEBUG, TAG, items.get(position).name + \":\" + items.get(position).isChecked);\n }",
"public static boolean isItemChecked(String item){\n\t\tint itemPosition=getItemPosition(item);\n\t\treturn itemList.get(itemPosition).getCheckmark();\n\t}",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n\n if (accept_checkBox.isChecked()) {\n checked = \"true\";\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"checked_box\", checked);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n } else {\n checked = \"false\";\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"checked_box\", checked);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n checkBox_seleccionados[position] = holder.chkItem.isChecked();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carModelCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carModelCompanies[which];\n // Notify the current action\n }",
"@Override\r\n\t\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\r\n\t\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t}",
"@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public void onCheckboxClicked(View view) {\n boolean aprendido = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.checkboxAprendido:\n if (aprendido == true) {\n // Put some meat on the sandwich\n break;\n }\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tCheckBox checkbox = (CheckBox) arg0;\r\n\t\t\t\tcProducts.get(position).setCheck(checkbox.isChecked());\r\n\t\t\t\tif (itemChangedListener != null) {\r\n\t\t\t\t\titemChangedListener.itemCilck(position,\r\n\t\t\t\t\t\t\tcheckbox.isChecked());\r\n\t\t\t\t}\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n filteredNewsgroupItems.get(fPosition).setSelected(((CheckBox)v).isChecked());\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n checkedItems[which] = isChecked;\n // Get the current focused item\n //String currentItem = colorsList.get(which);\n }",
"@Override\n\tpublic void onChecked(MusicEntity musicEntity, int selectedNum) {\n\t\thadSelectedMusic.add(musicEntity);\n\t}",
"public void onItemStateChanged(String id, boolean selected);",
"public abstract boolean isSelected();",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carCompanies[which];\n\n }",
"public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }",
"@Override\n\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\n\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t\n\t\t\t\tif(dummyList.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\n\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\n\t\t\t\t dummyList.add(messageList.get(position));\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t\t\t int cn=0;\n\t\t\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessagewrapper objec=messageList.get(position);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(obje.get_number().equals(objec.get_number())){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcn++;\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\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(cn==1){\n\t\t\t\t\t\t\t\t\tcheckedCount--;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdummyList.remove(messageList.get(position));\n\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\t\n\t\t\t\t\t\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\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 dummyList.add(messageList.get(position));\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\n\t\t\t\t\n\t\t\t\t }\t\n\t\t\t\t\n\t\t\t}",
"public void toggleChecked(boolean b) {\n for (int i = 0; i < itemsDigested.size(); i++) {\n ListItem item = itemsDigested.get(i);\n if (b && item.getChecked() != ListItem.CHECKED) {\n item.setChecked(true);\n notifyItemChanged(i);\n } else if (!b && item.getChecked() == ListItem.CHECKED) {\n item.setChecked(false);\n notifyItemChanged(i);\n }\n }\n\n if (mainFrag.mActionMode != null) {\n mainFrag.mActionMode.invalidate();\n }\n\n if (getCheckedItems().size() == 0) {\n mainFrag.selection = false;\n if (mainFrag.mActionMode != null) mainFrag.mActionMode.finish();\n mainFrag.mActionMode = null;\n }\n }",
"public boolean isSelected();",
"public boolean isSelected();",
"@Override\r\n public void onClick(View view){\r\n int actualClicked = view.getId();\r\n\r\n for(SpecialPoint box: allCheckBoxes){\r\n int tempId = box.getCheckBox().getId();\r\n CheckBox currentBox = box.getCheckBox();\r\n\r\n if(tempId == actualClicked && currentBox.isChecked()){\r\n currentBox.setChecked(true);\r\n }else{\r\n currentBox.setChecked(false);\r\n }\r\n }\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n branchesCitiesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = branchesCities[which];\n // Notify the current action\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tProduct temp =(Product)v.getTag();\r\n\t\t\t\tLog.e(temp.getName(), String.valueOf(true));\r\n\t\t\t\tif(((CheckBox)v).isChecked()){\t\t\t\t\t\r\n\t\t\t\t\tac.ProductList.put(temp,true);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tac.ProductList.put(temp,false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tac.RefreshSelect();\r\n\t\t\t\tac.RefreshSumPrice();\r\n\t\t\t}",
"public void itemStateChanged(ItemEvent check) {\r\n\r\n // Process the reaction class checkboxes. First\r\n // get the components of the relevant panels\r\n // and store in Component arrays (Note: the method\r\n // getComponents() is inherited from the Container\r\n // class by the subclass Panel).\r\n\r\n Component [] components4 = panel4.getComponents();\r\n Component [] components5 = panel5.getComponents();\r\n\r\n // Now process these components that are checkboxes\r\n // (only the first element of each array is). First cast the\r\n // Component to a Checkbox. Then use the getState()\r\n // method of Checkbox to return boolean true if\r\n // checked and false otherwise.\r\n\r\n Checkbox cb4 = (Checkbox)components4[0]; // Checkbox for panel4\r\n Checkbox cb5 = (Checkbox)components5[0]; // Checkbox for panel5\r\n\r\n // Then use the getState() method of Checkbox to\r\n // return boolean true if checked and false otherwise.\r\n // Use this logic to disable one or the other sets of\r\n // choices for temperature and density input.\r\n\r\n if( cb4.getState() ) {\r\n checkBox[1].setState(false); // Seems needed despite CheckBoxGroup\r\n rho.disable();\r\n rho.setBackground(disablebgColor);\r\n rhoL.setForeground(disablefgColor);\r\n T9.disable();\r\n T9.setBackground(disablebgColor);\r\n T9L.setForeground(disablefgColor);\r\n profile.enable();\r\n profile.setBackground(panelBackColor);\r\n profileL.setForeground(panelForeColor);\r\n } else if ( cb5.getState() ) {\r\n checkBox[0].setState(false);\r\n rho.enable();\r\n rho.setBackground(panelBackColor);\r\n rhoL.setForeground(panelForeColor);\r\n T9.enable();\r\n T9.setBackground(panelBackColor);\r\n T9L.setForeground(panelForeColor);\r\n profile.disable();\r\n profile.setBackground(disablebgColor);\r\n profileL.setForeground(disablefgColor);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n \t if(item.isChecked()){\n item.setChecked(false);\n \t \t isHintOn = false;\n \t \t Toast.makeText(getApplicationContext(), \"Game Hint is OFF\", Toast.LENGTH_SHORT).show();\n \t \t }\n else{\n item.setChecked(true);\n \t isHintOn = true;\n \t Toast.makeText(getApplicationContext(), \"Game Hint is ON\", Toast.LENGTH_SHORT).show();\n }\n \t return true;\n }",
"@Override\r\n\t public void onItemClick(AdapterView<?> arg0, View v,int position, long arg3) {\n\r\n\t\t\t\t\tImageView ivSelect = (ImageView) v.findViewById(R.id.im_check);\r\n\t\t\t\t\tif (lvContact.isItemChecked(position)) {\r\n\t\t\t\t\t\tivSelect.setImageResource(R.drawable.circle_check);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tivSelect.setImageResource(R.drawable.circle);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t }",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif (checkbox.isChecked())\n\t\t\t\t{\n\t\t\t\t\t//add player to active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 1);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//remove player from active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 0);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public Object getCheckedValue();",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"public void toppingChecked(View view) {\n Log.d(\"Method\", \"toppingChecked()\");\n displayQuantity();\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (((MemeLab.get(getActivity())).getMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n ((MemeLab.get(getActivity())).getMyanmarMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n (MemeLab.get(getActivity())\n .getCustomMemes()\n .contains(MemeLab.get(getActivity()).getMeme(selectedImagePath)))) {\n if (isChecked) {\n Toast.makeText(getActivity(), \"added to Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, true);\n }\n if (!isChecked) {\n Toast.makeText(getActivity(), \"removed from Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, false);\n }\n } else {\n Toast.makeText(getActivity(), \"cannot add Custom images to Favorites\", Toast.LENGTH_SHORT)\n .show();\n }\n }",
"@Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\t\tif(checked) {\n\t\t\tmSelection.setNewSelection(position, checked);\n\t\t\tnumItemsSelected++;\n\t\t}\n\t\telse {\n\t\t\tmSelection.removeSelection(position);\n\t\t\tnumItemsSelected--;\n\t\t}\n\t\tmode.setTitle(numItemsSelected + \" items selected\");\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton pos, boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tif (!listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.add(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.put(posit, isChecked);\n\t\t\t\t} else {\n\t\t\t\t\tif (listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.remove(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.remove(posit);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }",
"public boolean isSelected() { return selected; }",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"@Override\r\n\tpublic void checkListItem(Integer id, Boolean isChecked) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tListItem li = new ListItem();\r\n\t\tli.setId(id);\r\n\t\tli.setChecked(isChecked);\r\n\t\tthis.listItemMapper.checkListItem(li);\r\n\t}",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.cb_cod:\n if (cb_cod.isChecked()) {\n cod = \"1\";\n } else {\n cod = \"0\";\n }\n\n\n break;\n }\n }",
"abstract public void onSingleItemClick(View view);",
"public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Country country = (Country) parent.getItemAtPosition(position);\n CheckBox chk = (CheckBox) findViewById(R.id.checkBox1);\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteItem(parent, position);\n } else if (item == 1) {\n updateBook(parent, position);\n } else if (item == 2) {\n updateAuthor(parent, position);\n }else if (item == 3) {\n makeChoice(false);\n } else if (item == 4) {\n makeChoice(true);\n }\n\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n CTSCLog.i(TAG, \"onOptionsItemSelected(), item Id = \" + item.getItemId());\n switch (item.getItemId()) {\n case MENU_CHECK_ALL:\n setCheckAll(true);\n break;\n case MENU_UNCHECK_ALL:\n setCheckAll(false);\n break;\n case MENU_CHECK_REPORT:\n Intent intent = new Intent(CheckResultActivity.this, CheckReportActivity.class);\n intent.putExtra(\"Category\", mCheckCategory);\n startActivity(intent);\n break;\n default:\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"boolean getIsChecked();",
"public void checkboxClickedSetDone(ActionEvent actionEvent) {\n // we will simply find the item within the group and use its setDone() method\n }",
"@Override\n\t\t\tpublic void checkbox_select_callBack(boolean ifCheck) {\n\t\t\t\tsuper.checkbox_select_callBack(ifCheck);\n\t\t\t\titemCallBack.call_select(ifCheck,position);\n\t\t\t}",
"boolean isCheckedOut();",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }",
"public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }",
"public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tToast.makeText(getContext(), \"Checked \" + isChecked + \"Position \" + position, Toast.LENGTH_LONG).show();\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tlistItems.get(position).setChecked(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistItems.get(position).setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}",
"@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n // Set item in checked state\n menuItem.setChecked(true);\n // TODO ronesim: handle navigation\n // Closing drawer on item click\n drawerLayout.closeDrawers();\n return true;\n }",
"@Override\n\tpublic boolean isChecked() {\n\t\treturn ischecked;\n\t}",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }",
"void itemSelected(OutlineItem item);",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}",
"public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.checkbox_termos:\n if (checked) {\n termosAceitos = true;\n }else {\n termosAceitos = false;\n }\n break;\n }\n }",
"@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }",
"public void checkClicked(View v)\n {\n CheckBox checkbox = (CheckBox) v;\n Log.d(\"potato\", \"checkClicked: \");\n String get_name = checkbox.getText().toString();\n\n // use string name resource for the id of the image\n resID_from_name = getResources().getIdentifier(get_name, \"id\", getPackageName()); //google power\n\n // check if checkbox is checked. And show or don't shown image accordingly\n if(checkbox.isChecked() == false)\n {\n image = findViewById(resID_from_name);\n image.setVisibility(View.INVISIBLE);\n }\n\n else\n {\n image = findViewById(resID_from_name);\n image.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n CheckItemBase item = null;\n if (TAB_AUTO == mTabIndex) {\n item = mAutoItemArray.get(arg2).mCheckItem;\n } else if (TAB_MANUAL == mTabIndex) {\n item = mManualItemArray.get(arg2).mCheckItem;\n } else {\n myAssert(false, \"No such tab!\");\n }\n if (null == item) {\n myAssert(false, \"check item is null!\");\n }\n setupAlertDlg(item);\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\t\t\t\tif(isChecked){\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我喜欢上了\"+multi_list[which]+\"!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我不喜欢\"+multi_list[which]+\"了!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}",
"public boolean getSelected()\n {\n return selected; \n }",
"private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }",
"@Override\n public void onClickUser(User user, int position) {\n RecyclerView.ViewHolder holder = recyclerView.findViewHolderForAdapterPosition(position);\n CheckBox checkBox = holder.itemView.findViewById(R.id.checkBoxUser);\n\n if (usersRoomList.contains(user)){\n usersRoomList.remove(user);\n checkBox.setChecked(false);\n }else {\n usersRoomList.add(user);\n checkBox.setChecked(true);\n }\n }",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.green_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.green_jersey);\n }\n\n break;\n case R.id.purple_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.purple_jersey);\n }\n\n\n break;\n\n }\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmMenuListView.setItemChecked(position, true);\n\t // setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mMenuListView);\n drawerlayout=0;\n selectItem(position);\n\t\t\t}",
"@Override\n \t\t\tpublic void checkStateChanged(CheckStateChangedEvent event) {\n \t\t\t\tEntityDefinition eventSource = (EntityDefinition) event.getElement();\n \t\t\t\tif (event.getChecked())\n \t\t\t\t\tselection.add(eventSource);\n \t\t\t\telse\n \t\t\t\t\tselection.remove(eventSource);\n \t\t\t}",
"public void itemStateChanged(ItemEvent e){\n\t\t\tObject source = e.getItemSelectable();\n\t\t\tif(source == debugCheckBoxMenuItem)\n\t\t\t\t\n\t\t\t{//if the source is the debug check box then check the state\n\t\t\t\t//System.out.println(debugCheckBoxMenuItem.getState());\n\t\t\t\tif(debugCheckBoxMenuItem.getState()== true){\n\t\t\t\t\t//if the state is true then display the debug panel\n\t\t\t\t\tdebugScrollPane.setVisible(true);\n\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\telse{//otherwise don't\n\t\t\t\t\t//System.out.println(\"It's false\");\n\t\t\t\t\tdebugScrollPane.setVisible(false);\n\t\t\t\t}\n\t\t\t\tdebugCheckBoxMenuItem.setVisible(true);\n\t\t\t\t//debugTextArea.append(\"great success\\n\");\n\t\t\t\tdebugTextArea.append(\"Debug mode: \" + debugCheckBoxMenuItem.getState() + \"\\n\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }",
"@Override\n public void onStarCheck(ToDoItem item) {\n dbHelper.setStarred(item, true);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n }",
"void selected(AppUser appUser);",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n RowData data = (RowData) viewHolder.chkBox.getTag();\n if (isChecked) {\n\n checkBoxState.set(data.position, true);\n Log.i(tag, \"cursor.getPosition(true) with onChecked Listener : \" + data.position);\n }\n else {\n checkBoxState.set(data.position, false);\n Log.i(tag, \"cursor.getPosition(false) with onChecked Listener : \" + data.position);\n }\n }",
"public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n Context ctxt = getApplicationContext();\n //discover whether child or parent in listview was chosen\n if(buttonView.getTag() instanceof CalorieCategory){\n CalorieCategory key = (CalorieCategory) buttonView.getTag();\n key.setSelected(!key.isSelected()); //toggle\n HashMap<MenuItem, List<String>> dataToSelect = allData.get(key);\n Object[] keys = dataToSelect.keySet().toArray();\n ArrayList<MenuItem> items = new ArrayList<MenuItem>();\n //get a list of items to select correctly\n for(Object k : keys){\n items.add((MenuItem)k);\n }\n //add them to a list of chosenitems\n if(key.isSelected()) {\n for (MenuItem i : items) {\n i.setSelected(true);\n if(!chosenItems.contains(i)) {\n chosenItems.add(i);\n }\n }\n }else{\n for(MenuItem i : items){\n i.setSelected(false);\n chosenItems.remove(i);\n }\n }\n\n }else if(buttonView.getTag() instanceof information.MenuItem){\n MenuItem key = (information.MenuItem) buttonView.getTag();\n HashMap<MenuItem, List<String>> categItems = allData.get(key);\n key.setSelected(!key.isSelected()); //toggle\n if(key.isSelected()){\n if(!chosenItems.contains(key)){\n chosenItems.add(key);\n }\n }else{\n if(chosenItems.contains(key)){\n chosenItems.remove(key);\n }\n }\n }\n\n }",
"public boolean onContextItemSelected(MenuItem item) {\n\n switch (item.getItemId()){\n case R.id.Postular:\n Toast.makeText(this, \"Se registro la postulación con Exito.\", Toast.LENGTH_LONG).show();\n return true;\n case R.id.Compartir:\n Toast.makeText(this, \"Se Compartio el Item.\", Toast.LENGTH_LONG).show();\n return true;\n default:\n return super.onContextItemSelected(item);\n }\n }"
] | [
"0.7077913",
"0.68842727",
"0.68615735",
"0.6792031",
"0.67735827",
"0.67146474",
"0.65617645",
"0.6458162",
"0.64266527",
"0.6392927",
"0.63710827",
"0.63700134",
"0.636298",
"0.6334109",
"0.6331116",
"0.6331116",
"0.6331116",
"0.6305314",
"0.6251219",
"0.6248025",
"0.6234672",
"0.6233154",
"0.6228102",
"0.6217832",
"0.6212061",
"0.62023914",
"0.618647",
"0.6174863",
"0.61293954",
"0.61293954",
"0.6112977",
"0.6102334",
"0.61019486",
"0.60906595",
"0.60886073",
"0.6086769",
"0.6079341",
"0.60709006",
"0.60659873",
"0.60601354",
"0.60583925",
"0.60583174",
"0.6050115",
"0.6035506",
"0.60285807",
"0.6027419",
"0.6016023",
"0.60141367",
"0.5997271",
"0.59927785",
"0.59925306",
"0.5984415",
"0.5979922",
"0.596867",
"0.5966097",
"0.59658474",
"0.59645957",
"0.5958947",
"0.59534794",
"0.5949363",
"0.5945697",
"0.59367657",
"0.59352773",
"0.5925838",
"0.59255093",
"0.59214437",
"0.59136873",
"0.5894543",
"0.5889652",
"0.5878957",
"0.5867236",
"0.5866496",
"0.5865985",
"0.58640236",
"0.5853758",
"0.58519256",
"0.58447784",
"0.5844525",
"0.5838607",
"0.583441",
"0.58233255",
"0.58123696",
"0.581126",
"0.580851",
"0.5806986",
"0.58060515",
"0.58003956",
"0.57830465",
"0.5771266",
"0.57687956",
"0.5766786",
"0.5756631",
"0.5754492",
"0.5754492",
"0.574541",
"0.57407385",
"0.5738747",
"0.57345384",
"0.5730593",
"0.5730354",
"0.572937"
] | 0.0 | -1 |
user checked an item | @Override
public void onClick(DialogInterface dialog, int which) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void itemSelected(boolean selected);",
"@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n if (isChecked) {\n Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show();\n }\n }",
"public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }",
"@Override\r\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n final int checkedCount = lista.getCheckedItemCount();\r\n // Set the CAB title according to total checked items\r\n mode.setTitle(checkedCount + \" Selecionados\");\r\n selPessoas = new ArrayList<Pessoa>();\r\n if(checkedCount > 0){\r\n SparseBooleanArray selected = lista.getCheckedItemPositions();\r\n Log.v(\"TAGSELINI\", \" \"+selected.size() );\r\n for (int i = 0; i < selected.size(); i++) {\r\n if (selected.get(i)) {\r\n Pessoa selecteditem = adapter.getItem(selected.keyAt(i));\r\n Log.v(\"TAGSELLLL\", selecteditem.toString());\r\n selPessoas.add(selecteditem);\r\n }else{\r\n Log.v(\"TAGSEL\", i+\" -|- falhou :( \");\r\n }\r\n }\r\n mInterno.findItem(R.id.action_save).setVisible(true);\r\n }else{\r\n mInterno.findItem(R.id.action_save).setVisible(false);\r\n }\r\n\r\n // Calls toggleSelection method from ListViewAdapter Class\r\n adapter.toggleSelection(position);\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n items.get(position).isChecked = !(items.get(position).isChecked);\n Log.println(Log.DEBUG, TAG, items.get(position).name + \":\" + items.get(position).isChecked);\n }",
"public static boolean isItemChecked(String item){\n\t\tint itemPosition=getItemPosition(item);\n\t\treturn itemList.get(itemPosition).getCheckmark();\n\t}",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n\n if (accept_checkBox.isChecked()) {\n checked = \"true\";\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"checked_box\", checked);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n } else {\n checked = \"false\";\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"checked_box\", checked);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n checkBox_seleccionados[position] = holder.chkItem.isChecked();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carModelCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carModelCompanies[which];\n // Notify the current action\n }",
"@Override\r\n\t\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\r\n\t\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t}",
"@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public void onCheckboxClicked(View view) {\n boolean aprendido = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.checkboxAprendido:\n if (aprendido == true) {\n // Put some meat on the sandwich\n break;\n }\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tCheckBox checkbox = (CheckBox) arg0;\r\n\t\t\t\tcProducts.get(position).setCheck(checkbox.isChecked());\r\n\t\t\t\tif (itemChangedListener != null) {\r\n\t\t\t\t\titemChangedListener.itemCilck(position,\r\n\t\t\t\t\t\t\tcheckbox.isChecked());\r\n\t\t\t\t}\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n filteredNewsgroupItems.get(fPosition).setSelected(((CheckBox)v).isChecked());\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n checkedItems[which] = isChecked;\n // Get the current focused item\n //String currentItem = colorsList.get(which);\n }",
"@Override\n\tpublic void onChecked(MusicEntity musicEntity, int selectedNum) {\n\t\thadSelectedMusic.add(musicEntity);\n\t}",
"public void onItemStateChanged(String id, boolean selected);",
"public abstract boolean isSelected();",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carCompanies[which];\n\n }",
"public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }",
"@Override\n\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\n\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t\n\t\t\t\tif(dummyList.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\n\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\n\t\t\t\t dummyList.add(messageList.get(position));\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t\t\t int cn=0;\n\t\t\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessagewrapper objec=messageList.get(position);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(obje.get_number().equals(objec.get_number())){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcn++;\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\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(cn==1){\n\t\t\t\t\t\t\t\t\tcheckedCount--;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdummyList.remove(messageList.get(position));\n\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\t\n\t\t\t\t\t\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\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 dummyList.add(messageList.get(position));\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\n\t\t\t\t\n\t\t\t\t }\t\n\t\t\t\t\n\t\t\t}",
"public void toggleChecked(boolean b) {\n for (int i = 0; i < itemsDigested.size(); i++) {\n ListItem item = itemsDigested.get(i);\n if (b && item.getChecked() != ListItem.CHECKED) {\n item.setChecked(true);\n notifyItemChanged(i);\n } else if (!b && item.getChecked() == ListItem.CHECKED) {\n item.setChecked(false);\n notifyItemChanged(i);\n }\n }\n\n if (mainFrag.mActionMode != null) {\n mainFrag.mActionMode.invalidate();\n }\n\n if (getCheckedItems().size() == 0) {\n mainFrag.selection = false;\n if (mainFrag.mActionMode != null) mainFrag.mActionMode.finish();\n mainFrag.mActionMode = null;\n }\n }",
"public boolean isSelected();",
"public boolean isSelected();",
"@Override\r\n public void onClick(View view){\r\n int actualClicked = view.getId();\r\n\r\n for(SpecialPoint box: allCheckBoxes){\r\n int tempId = box.getCheckBox().getId();\r\n CheckBox currentBox = box.getCheckBox();\r\n\r\n if(tempId == actualClicked && currentBox.isChecked()){\r\n currentBox.setChecked(true);\r\n }else{\r\n currentBox.setChecked(false);\r\n }\r\n }\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n branchesCitiesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = branchesCities[which];\n // Notify the current action\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tProduct temp =(Product)v.getTag();\r\n\t\t\t\tLog.e(temp.getName(), String.valueOf(true));\r\n\t\t\t\tif(((CheckBox)v).isChecked()){\t\t\t\t\t\r\n\t\t\t\t\tac.ProductList.put(temp,true);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tac.ProductList.put(temp,false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tac.RefreshSelect();\r\n\t\t\t\tac.RefreshSumPrice();\r\n\t\t\t}",
"public void itemStateChanged(ItemEvent check) {\r\n\r\n // Process the reaction class checkboxes. First\r\n // get the components of the relevant panels\r\n // and store in Component arrays (Note: the method\r\n // getComponents() is inherited from the Container\r\n // class by the subclass Panel).\r\n\r\n Component [] components4 = panel4.getComponents();\r\n Component [] components5 = panel5.getComponents();\r\n\r\n // Now process these components that are checkboxes\r\n // (only the first element of each array is). First cast the\r\n // Component to a Checkbox. Then use the getState()\r\n // method of Checkbox to return boolean true if\r\n // checked and false otherwise.\r\n\r\n Checkbox cb4 = (Checkbox)components4[0]; // Checkbox for panel4\r\n Checkbox cb5 = (Checkbox)components5[0]; // Checkbox for panel5\r\n\r\n // Then use the getState() method of Checkbox to\r\n // return boolean true if checked and false otherwise.\r\n // Use this logic to disable one or the other sets of\r\n // choices for temperature and density input.\r\n\r\n if( cb4.getState() ) {\r\n checkBox[1].setState(false); // Seems needed despite CheckBoxGroup\r\n rho.disable();\r\n rho.setBackground(disablebgColor);\r\n rhoL.setForeground(disablefgColor);\r\n T9.disable();\r\n T9.setBackground(disablebgColor);\r\n T9L.setForeground(disablefgColor);\r\n profile.enable();\r\n profile.setBackground(panelBackColor);\r\n profileL.setForeground(panelForeColor);\r\n } else if ( cb5.getState() ) {\r\n checkBox[0].setState(false);\r\n rho.enable();\r\n rho.setBackground(panelBackColor);\r\n rhoL.setForeground(panelForeColor);\r\n T9.enable();\r\n T9.setBackground(panelBackColor);\r\n T9L.setForeground(panelForeColor);\r\n profile.disable();\r\n profile.setBackground(disablebgColor);\r\n profileL.setForeground(disablefgColor);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n \t if(item.isChecked()){\n item.setChecked(false);\n \t \t isHintOn = false;\n \t \t Toast.makeText(getApplicationContext(), \"Game Hint is OFF\", Toast.LENGTH_SHORT).show();\n \t \t }\n else{\n item.setChecked(true);\n \t isHintOn = true;\n \t Toast.makeText(getApplicationContext(), \"Game Hint is ON\", Toast.LENGTH_SHORT).show();\n }\n \t return true;\n }",
"@Override\r\n\t public void onItemClick(AdapterView<?> arg0, View v,int position, long arg3) {\n\r\n\t\t\t\t\tImageView ivSelect = (ImageView) v.findViewById(R.id.im_check);\r\n\t\t\t\t\tif (lvContact.isItemChecked(position)) {\r\n\t\t\t\t\t\tivSelect.setImageResource(R.drawable.circle_check);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tivSelect.setImageResource(R.drawable.circle);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t }",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif (checkbox.isChecked())\n\t\t\t\t{\n\t\t\t\t\t//add player to active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 1);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//remove player from active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 0);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public Object getCheckedValue();",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"public void toppingChecked(View view) {\n Log.d(\"Method\", \"toppingChecked()\");\n displayQuantity();\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (((MemeLab.get(getActivity())).getMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n ((MemeLab.get(getActivity())).getMyanmarMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n (MemeLab.get(getActivity())\n .getCustomMemes()\n .contains(MemeLab.get(getActivity()).getMeme(selectedImagePath)))) {\n if (isChecked) {\n Toast.makeText(getActivity(), \"added to Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, true);\n }\n if (!isChecked) {\n Toast.makeText(getActivity(), \"removed from Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, false);\n }\n } else {\n Toast.makeText(getActivity(), \"cannot add Custom images to Favorites\", Toast.LENGTH_SHORT)\n .show();\n }\n }",
"@Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\t\tif(checked) {\n\t\t\tmSelection.setNewSelection(position, checked);\n\t\t\tnumItemsSelected++;\n\t\t}\n\t\telse {\n\t\t\tmSelection.removeSelection(position);\n\t\t\tnumItemsSelected--;\n\t\t}\n\t\tmode.setTitle(numItemsSelected + \" items selected\");\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton pos, boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tif (!listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.add(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.put(posit, isChecked);\n\t\t\t\t} else {\n\t\t\t\t\tif (listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.remove(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.remove(posit);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"private void getUserIsSoldChoice() {\n int checkedChipId = mBinding.chipGroupIsSold.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes_sold) {\n mChipIsSoldInput = 1;\n } else if (checkedChipId == R.id.chip_no_sold) {\n mChipIsSoldInput = 0;\n } else {\n mChipIsSoldInput = 10;\n }\n }",
"public boolean isSelected() { return selected; }",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"@Override\r\n\tpublic void checkListItem(Integer id, Boolean isChecked) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tListItem li = new ListItem();\r\n\t\tli.setId(id);\r\n\t\tli.setChecked(isChecked);\r\n\t\tthis.listItemMapper.checkListItem(li);\r\n\t}",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch (view.getId()) {\n case R.id.cb_cod:\n if (cb_cod.isChecked()) {\n cod = \"1\";\n } else {\n cod = \"0\";\n }\n\n\n break;\n }\n }",
"abstract public void onSingleItemClick(View view);",
"public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Country country = (Country) parent.getItemAtPosition(position);\n CheckBox chk = (CheckBox) findViewById(R.id.checkBox1);\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteItem(parent, position);\n } else if (item == 1) {\n updateBook(parent, position);\n } else if (item == 2) {\n updateAuthor(parent, position);\n }else if (item == 3) {\n makeChoice(false);\n } else if (item == 4) {\n makeChoice(true);\n }\n\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n CTSCLog.i(TAG, \"onOptionsItemSelected(), item Id = \" + item.getItemId());\n switch (item.getItemId()) {\n case MENU_CHECK_ALL:\n setCheckAll(true);\n break;\n case MENU_UNCHECK_ALL:\n setCheckAll(false);\n break;\n case MENU_CHECK_REPORT:\n Intent intent = new Intent(CheckResultActivity.this, CheckReportActivity.class);\n intent.putExtra(\"Category\", mCheckCategory);\n startActivity(intent);\n break;\n default:\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"boolean getIsChecked();",
"public void checkboxClickedSetDone(ActionEvent actionEvent) {\n // we will simply find the item within the group and use its setDone() method\n }",
"@Override\n\t\t\tpublic void checkbox_select_callBack(boolean ifCheck) {\n\t\t\t\tsuper.checkbox_select_callBack(ifCheck);\n\t\t\t\titemCallBack.call_select(ifCheck,position);\n\t\t\t}",
"boolean isCheckedOut();",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }",
"@Override\n public void onCheck(boolean isChecked) {\n Log.e(\"isChecked\", \"onCheck: isChecked=\" + isChecked);\n }",
"@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }",
"public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }",
"public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tToast.makeText(getContext(), \"Checked \" + isChecked + \"Position \" + position, Toast.LENGTH_LONG).show();\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tlistItems.get(position).setChecked(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistItems.get(position).setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}",
"@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n // Set item in checked state\n menuItem.setChecked(true);\n // TODO ronesim: handle navigation\n // Closing drawer on item click\n drawerLayout.closeDrawers();\n return true;\n }",
"@Override\n\tpublic boolean isChecked() {\n\t\treturn ischecked;\n\t}",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }",
"void itemSelected(OutlineItem item);",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}",
"public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.checkbox_termos:\n if (checked) {\n termosAceitos = true;\n }else {\n termosAceitos = false;\n }\n break;\n }\n }",
"@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }",
"public void checkClicked(View v)\n {\n CheckBox checkbox = (CheckBox) v;\n Log.d(\"potato\", \"checkClicked: \");\n String get_name = checkbox.getText().toString();\n\n // use string name resource for the id of the image\n resID_from_name = getResources().getIdentifier(get_name, \"id\", getPackageName()); //google power\n\n // check if checkbox is checked. And show or don't shown image accordingly\n if(checkbox.isChecked() == false)\n {\n image = findViewById(resID_from_name);\n image.setVisibility(View.INVISIBLE);\n }\n\n else\n {\n image = findViewById(resID_from_name);\n image.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n CheckItemBase item = null;\n if (TAB_AUTO == mTabIndex) {\n item = mAutoItemArray.get(arg2).mCheckItem;\n } else if (TAB_MANUAL == mTabIndex) {\n item = mManualItemArray.get(arg2).mCheckItem;\n } else {\n myAssert(false, \"No such tab!\");\n }\n if (null == item) {\n myAssert(false, \"check item is null!\");\n }\n setupAlertDlg(item);\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\t\t\t\tif(isChecked){\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我喜欢上了\"+multi_list[which]+\"!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(TetrisActivityAW.this, \"我不喜欢\"+multi_list[which]+\"了!\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}",
"public boolean getSelected()\n {\n return selected; \n }",
"private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }",
"@Override\n public void onClickUser(User user, int position) {\n RecyclerView.ViewHolder holder = recyclerView.findViewHolderForAdapterPosition(position);\n CheckBox checkBox = holder.itemView.findViewById(R.id.checkBoxUser);\n\n if (usersRoomList.contains(user)){\n usersRoomList.remove(user);\n checkBox.setChecked(false);\n }else {\n usersRoomList.add(user);\n checkBox.setChecked(true);\n }\n }",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public void onCheckboxClicked(View view) {\n boolean checked = ((CheckBox) view).isChecked();\n\n // Check which checkbox was clicked\n switch(view.getId()) {\n case R.id.green_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.green_jersey);\n }\n\n break;\n case R.id.purple_jersey:\n if (checked){\n mJerseyImageView.setImageResource(R.drawable.purple_jersey);\n }\n\n\n break;\n\n }\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmMenuListView.setItemChecked(position, true);\n\t // setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mMenuListView);\n drawerlayout=0;\n selectItem(position);\n\t\t\t}",
"@Override\n \t\t\tpublic void checkStateChanged(CheckStateChangedEvent event) {\n \t\t\t\tEntityDefinition eventSource = (EntityDefinition) event.getElement();\n \t\t\t\tif (event.getChecked())\n \t\t\t\t\tselection.add(eventSource);\n \t\t\t\telse\n \t\t\t\t\tselection.remove(eventSource);\n \t\t\t}",
"public void itemStateChanged(ItemEvent e){\n\t\t\tObject source = e.getItemSelectable();\n\t\t\tif(source == debugCheckBoxMenuItem)\n\t\t\t\t\n\t\t\t{//if the source is the debug check box then check the state\n\t\t\t\t//System.out.println(debugCheckBoxMenuItem.getState());\n\t\t\t\tif(debugCheckBoxMenuItem.getState()== true){\n\t\t\t\t\t//if the state is true then display the debug panel\n\t\t\t\t\tdebugScrollPane.setVisible(true);\n\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\telse{//otherwise don't\n\t\t\t\t\t//System.out.println(\"It's false\");\n\t\t\t\t\tdebugScrollPane.setVisible(false);\n\t\t\t\t}\n\t\t\t\tdebugCheckBoxMenuItem.setVisible(true);\n\t\t\t\t//debugTextArea.append(\"great success\\n\");\n\t\t\t\tdebugTextArea.append(\"Debug mode: \" + debugCheckBoxMenuItem.getState() + \"\\n\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n\n }",
"@Override\n public void onStarCheck(ToDoItem item) {\n dbHelper.setStarred(item, true);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n }",
"void selected(AppUser appUser);",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n RowData data = (RowData) viewHolder.chkBox.getTag();\n if (isChecked) {\n\n checkBoxState.set(data.position, true);\n Log.i(tag, \"cursor.getPosition(true) with onChecked Listener : \" + data.position);\n }\n else {\n checkBoxState.set(data.position, false);\n Log.i(tag, \"cursor.getPosition(false) with onChecked Listener : \" + data.position);\n }\n }",
"public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n Context ctxt = getApplicationContext();\n //discover whether child or parent in listview was chosen\n if(buttonView.getTag() instanceof CalorieCategory){\n CalorieCategory key = (CalorieCategory) buttonView.getTag();\n key.setSelected(!key.isSelected()); //toggle\n HashMap<MenuItem, List<String>> dataToSelect = allData.get(key);\n Object[] keys = dataToSelect.keySet().toArray();\n ArrayList<MenuItem> items = new ArrayList<MenuItem>();\n //get a list of items to select correctly\n for(Object k : keys){\n items.add((MenuItem)k);\n }\n //add them to a list of chosenitems\n if(key.isSelected()) {\n for (MenuItem i : items) {\n i.setSelected(true);\n if(!chosenItems.contains(i)) {\n chosenItems.add(i);\n }\n }\n }else{\n for(MenuItem i : items){\n i.setSelected(false);\n chosenItems.remove(i);\n }\n }\n\n }else if(buttonView.getTag() instanceof information.MenuItem){\n MenuItem key = (information.MenuItem) buttonView.getTag();\n HashMap<MenuItem, List<String>> categItems = allData.get(key);\n key.setSelected(!key.isSelected()); //toggle\n if(key.isSelected()){\n if(!chosenItems.contains(key)){\n chosenItems.add(key);\n }\n }else{\n if(chosenItems.contains(key)){\n chosenItems.remove(key);\n }\n }\n }\n\n }",
"public boolean onContextItemSelected(MenuItem item) {\n\n switch (item.getItemId()){\n case R.id.Postular:\n Toast.makeText(this, \"Se registro la postulación con Exito.\", Toast.LENGTH_LONG).show();\n return true;\n case R.id.Compartir:\n Toast.makeText(this, \"Se Compartio el Item.\", Toast.LENGTH_LONG).show();\n return true;\n default:\n return super.onContextItemSelected(item);\n }\n }"
] | [
"0.7077913",
"0.68842727",
"0.68615735",
"0.6792031",
"0.67735827",
"0.67146474",
"0.65617645",
"0.6458162",
"0.64266527",
"0.6392927",
"0.63710827",
"0.63700134",
"0.636298",
"0.6334109",
"0.6331116",
"0.6331116",
"0.6331116",
"0.6305314",
"0.6251219",
"0.6248025",
"0.6234672",
"0.6233154",
"0.6228102",
"0.6217832",
"0.6212061",
"0.62023914",
"0.618647",
"0.6174863",
"0.61293954",
"0.61293954",
"0.6112977",
"0.6102334",
"0.61019486",
"0.60906595",
"0.60886073",
"0.6086769",
"0.6079341",
"0.60709006",
"0.60659873",
"0.60601354",
"0.60583925",
"0.60583174",
"0.6050115",
"0.6035506",
"0.60285807",
"0.6027419",
"0.6016023",
"0.60141367",
"0.5997271",
"0.59927785",
"0.59925306",
"0.5984415",
"0.5979922",
"0.596867",
"0.5966097",
"0.59658474",
"0.59645957",
"0.5958947",
"0.59534794",
"0.5949363",
"0.5945697",
"0.59367657",
"0.59352773",
"0.5925838",
"0.59255093",
"0.59214437",
"0.59136873",
"0.5894543",
"0.5889652",
"0.5878957",
"0.5867236",
"0.5866496",
"0.5865985",
"0.58640236",
"0.5853758",
"0.58519256",
"0.58447784",
"0.5844525",
"0.5838607",
"0.583441",
"0.58233255",
"0.58123696",
"0.581126",
"0.580851",
"0.5806986",
"0.58060515",
"0.58003956",
"0.57830465",
"0.5771266",
"0.57687956",
"0.5766786",
"0.5756631",
"0.5754492",
"0.5754492",
"0.574541",
"0.57407385",
"0.5738747",
"0.57345384",
"0.5730593",
"0.5730354",
"0.572937"
] | 0.0 | -1 |
Update the current focused item's checked status | @Override
public void onClick(DialogInterface dialog, int which, boolean isChecked) {
carCompaniesChecked[which] = isChecked;
// Get the current focused item
String currentItem = carCompanies[which];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n checkedItems[which] = isChecked;\n // Get the current focused item\n //String currentItem = colorsList.get(which);\n }",
"@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}",
"public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }",
"public void toggleChecked(boolean b) {\n for (int i = 0; i < itemsDigested.size(); i++) {\n ListItem item = itemsDigested.get(i);\n if (b && item.getChecked() != ListItem.CHECKED) {\n item.setChecked(true);\n notifyItemChanged(i);\n } else if (!b && item.getChecked() == ListItem.CHECKED) {\n item.setChecked(false);\n notifyItemChanged(i);\n }\n }\n\n if (mainFrag.mActionMode != null) {\n mainFrag.mActionMode.invalidate();\n }\n\n if (getCheckedItems().size() == 0) {\n mainFrag.selection = false;\n if (mainFrag.mActionMode != null) mainFrag.mActionMode.finish();\n mainFrag.mActionMode = null;\n }\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }",
"@Override\r\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n final int checkedCount = lista.getCheckedItemCount();\r\n // Set the CAB title according to total checked items\r\n mode.setTitle(checkedCount + \" Selecionados\");\r\n selPessoas = new ArrayList<Pessoa>();\r\n if(checkedCount > 0){\r\n SparseBooleanArray selected = lista.getCheckedItemPositions();\r\n Log.v(\"TAGSELINI\", \" \"+selected.size() );\r\n for (int i = 0; i < selected.size(); i++) {\r\n if (selected.get(i)) {\r\n Pessoa selecteditem = adapter.getItem(selected.keyAt(i));\r\n Log.v(\"TAGSELLLL\", selecteditem.toString());\r\n selPessoas.add(selecteditem);\r\n }else{\r\n Log.v(\"TAGSEL\", i+\" -|- falhou :( \");\r\n }\r\n }\r\n mInterno.findItem(R.id.action_save).setVisible(true);\r\n }else{\r\n mInterno.findItem(R.id.action_save).setVisible(false);\r\n }\r\n\r\n // Calls toggleSelection method from ListViewAdapter Class\r\n adapter.toggleSelection(position);\r\n }",
"@Override\n public void onClick(View v) {\n filteredNewsgroupItems.get(fPosition).setSelected(((CheckBox)v).isChecked());\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carModelCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carModelCompanies[which];\n // Notify the current action\n }",
"@Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\t\tif(checked) {\n\t\t\tmSelection.setNewSelection(position, checked);\n\t\t\tnumItemsSelected++;\n\t\t}\n\t\telse {\n\t\t\tmSelection.removeSelection(position);\n\t\t\tnumItemsSelected--;\n\t\t}\n\t\tmode.setTitle(numItemsSelected + \" items selected\");\n }",
"public boolean isSelected() { return selected; }",
"public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }",
"public void itemSelected(boolean selected);",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n branchesCitiesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = branchesCities[which];\n // Notify the current action\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n mItem.mIsChecked = isChecked;\n\n if (TAB_AUTO == mTabIndex) {\n setConfigBtnState();\n } else if (TAB_MANUAL == mTabIndex) {\n setConfirmBtnsState();\n } else {\n myAssert(false, \"No such tab!\");\n }\n }",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"public void setChecked()\n\t{\n\t\tchecked = true;\n\t}",
"@Override\r\n\t\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\r\n\t\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t}",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n items.get(position).isChecked = !(items.get(position).isChecked);\n Log.println(Log.DEBUG, TAG, items.get(position).name + \":\" + items.get(position).isChecked);\n }",
"public boolean isSelected() {\r\n return selected;\r\n }",
"@Override\n\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\n\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t\n\t\t\t\tif(dummyList.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\n\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\n\t\t\t\t dummyList.add(messageList.get(position));\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t\t\t int cn=0;\n\t\t\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessagewrapper objec=messageList.get(position);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(obje.get_number().equals(objec.get_number())){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcn++;\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\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(cn==1){\n\t\t\t\t\t\t\t\t\tcheckedCount--;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdummyList.remove(messageList.get(position));\n\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\t\n\t\t\t\t\t\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\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 dummyList.add(messageList.get(position));\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\n\t\t\t\t\n\t\t\t\t }\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton pos, boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tif (!listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.add(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.put(posit, isChecked);\n\t\t\t\t} else {\n\t\t\t\t\tif (listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.remove(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.remove(posit);\n\t\t\t\t}\n\t\t\t}",
"public boolean isSelected()\n {\n return selected;\n }",
"public boolean isSelected();",
"public boolean isSelected();",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n RowData data = (RowData) viewHolder.chkBox.getTag();\n if (isChecked) {\n\n checkBoxState.set(data.position, true);\n Log.i(tag, \"cursor.getPosition(true) with onChecked Listener : \" + data.position);\n }\n else {\n checkBoxState.set(data.position, false);\n Log.i(tag, \"cursor.getPosition(false) with onChecked Listener : \" + data.position);\n }\n }",
"private void updateOneItem(JCheckBox cb, JSlider slider, JLabel label, Variable key,\n Variable keyOn) {\n if (cb.isSelected()) {\n if (!slider.getValueIsAdjusting()) {\n data.put(key, slider.getValue());\n data.put(keyOn, Boolean.TRUE);\n }\n label.setText(Integer.toString(slider.getValue()));\n } else {\n if (!slider.getValueIsAdjusting()) {\n // keep value... data.remove(key);\n data.put(keyOn, Boolean.FALSE);\n }\n label.setText(NO_VALUE);\n }\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }",
"@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\t\tContainer element = (Container) viewHolder.ckBox.getTag();\n\t\t\t\t\t\telement.setSelected(buttonView.isChecked());\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}",
"@Override\n\tpublic void setChecked(boolean checked) {\n\t\t// If trying to set the current state, ignore.\n\t\tif (!mCheckable || checked == mChecked) {\n\t\t\treturn;\n\t\t}\n\t\tmChecked = checked;\n\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\t\t\t// Create and start the {@link ValueAnimator} that shows the new state.\n\t\t\tAnimator anim = createAnimator();\n\t\t\tanim.setDuration(getResources().getInteger(android.R.integer.config_shortAnimTime));\n\t\t\tanim.start();\n\n\t\t\t// Set the new background color of the {@link View} to be revealed.\n\t\t\tmRevealView.setBackgroundColor(\n\t\t\t\t\tmChecked ? getResources().getColor(R.color.fab_checked)\n\t\t\t\t\t\t\t: getResources().getColor(R.color.fab_normal)\n\t\t\t\t\t);\n\n\t\t\t// Show the {@link View} to be revealed. Note that the animation has started already.\n\t\t\tmRevealView.setVisibility(View.VISIBLE);\n\t\t} else\n\t\t\trefreshDrawableState();\n\n\t\tif (mOnCheckedChangeListener != null) {\n\t\t\tmOnCheckedChangeListener.onCheckedChanged(this, checked);\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\t\tif (!updating && button.isSelected()) {\n\t\t\t\t\t\tmodel.set(db);\n\t\t\t\t\t}\n\t\t\t\t\tif (!useRadioButtons) {\n\t\t\t\t\t\tlabel.setForeground(button.isSelected() ? selectedForeground : unselectedForeground);\n\t\t\t\t\t}\n\t\t\t\t}",
"public boolean isSelected() {\n return checkbox.isSelected();\n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tCheckBox checkbox = (CheckBox) arg0;\r\n\t\t\t\tcProducts.get(position).setCheck(checkbox.isChecked());\r\n\t\t\t\tif (itemChangedListener != null) {\r\n\t\t\t\t\titemChangedListener.itemCilck(position,\r\n\t\t\t\t\t\t\tcheckbox.isChecked());\r\n\t\t\t\t}\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n checkBox_seleccionados[position] = holder.chkItem.isChecked();\n }",
"@Override\n\tpublic void toggle() {\n\t\tsetChecked(!checked);\n\t}",
"private void updateEnabledState() {\n updateEnabledState(spinner, spinner.isEnabled()); }",
"public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}",
"public abstract boolean isSelected();",
"public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tToast.makeText(getContext(), \"Checked \" + isChecked + \"Position \" + position, Toast.LENGTH_LONG).show();\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tlistItems.get(position).setChecked(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistItems.get(position).setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}",
"public void updateItemState(DATA data, boolean selected ) {\r\n\t\tString key = this.dataKeyExtractor.generateSingleStringKey(data);\r\n\t\tif ( modeSelectAll){\r\n\t\t\tif ( selected)\r\n\t\t\t\tunselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tunselectedDataIds.add(key);\r\n\t\t}else{\r\n\t\t\tif ( selected)\r\n\t\t\t\tselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tselectedDataIds.add(key);\r\n\t\t}\r\n\t}",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }",
"private void UpdateChecboxes()\r\n\t{\n\t\tfor (Iterator<CheckBox> iterator = this.CBlist.iterator(); iterator.hasNext();) \r\n\t\t{\r\n\t\t\t// for the next CheckBox\r\n\t\t\tCheckBox currChBox = iterator.next();\r\n\t\t\t\r\n\t\t\t// if the matching tag is true - \r\n\t\t\tif (this.hmTags.get(currChBox.getText()) == true)\r\n\t\t\t{\r\n\t\t\t\t// Check it\r\n\t\t\t\tcurrChBox.setChecked(true);\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"public void setActive() {\n setState(true);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n ScheduleItem item = itemList.get(position);\n item.setSelected(!item.isSelected());\n view.setBackgroundColor(item.isSelected() ? Color.rgb(27, 179, 245) : Color.WHITE);\n\n\n button.setEnabled(false);\n button.setBackgroundColor(Color.LTGRAY);\n for(ScheduleItem scheduleItem: itemList){\n if(scheduleItem.isSelected()){\n button.setEnabled(true);\n button.setBackgroundColor(Color.BLUE);\n }\n }\n\n\n }",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif (checkbox.isChecked())\n\t\t\t\t{\n\t\t\t\t\t//add player to active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 1);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//remove player from active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 0);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public void setSelected(boolean selected);",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }",
"public void setChecked(boolean active) {\r\n\t\tgetCheck().setSelected(active);\r\n\t\tsuper.setControlEnabled(active);\r\n\t}",
"public void setChecked(Integer checked) {\n this.checked = checked;\n }",
"public void setChecked(FriendsListViewHolder holder, int pos) {\n\n\n for (UserModel u : groupDetails) {\n if (u.getUser_id() == FriendsListAdapter.this.friendDetails.get(pos).getUser_id()) {\n friendDetails.setChecked(true);\n itemClickListener.onItemClick(userID);\n }\n }\n }",
"boolean updateItems() {\n return updateItems(selectedIndex);\n }",
"public void updateCurrentItem() {\n PagerSnapHelper pagerSnapHelper = this.mPagerSnapHelper;\n if (pagerSnapHelper != null) {\n View findSnapView = pagerSnapHelper.findSnapView(this.mLayoutManager);\n if (findSnapView != null) {\n int position = this.mLayoutManager.getPosition(findSnapView);\n if (position != this.mCurrentItem && getScrollState() == 0) {\n this.mPageChangeEventDispatcher.onPageSelected(position);\n }\n this.mCurrentItemDirty = false;\n return;\n }\n return;\n }\n throw new IllegalStateException(\"Design assumption violated.\");\n }",
"public void onItemStateChanged(String id, boolean selected);",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"public void checkedMode(boolean b) {\n setSelected(shellBot.checkBox(\"Run in checked mode\"), b);\n }",
"@Override\n public void onClick(View v) {\n if(custActiveInactive.isChecked()){\n custHardwareReturned.setChecked(false);\n custHardwareReturned.setEnabled(false);\n custHardwareInstalled.setEnabled(true);\n cust.custActiveInActive = 1;\n }else{\n custHardwareInstalled.setChecked(false);\n custHardwareInstalled.setEnabled(false);\n custHardwareReturned.setEnabled(true);\n cust.custActiveInActive = 0;\n }\n }",
"public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }",
"@Override\n public void clicked(int localX, int localY) {\n synchronized (this) {\n if (state == State.CHECKED) {\n state = State.UNCHECKED;\n } else {\n state = State.CHECKED;\n }\n }\n }",
"public boolean isSelected()\n {\n\treturn _isSelected;\n }",
"@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n\n holder.routineCompletedButton.setSelected(!holder.routineCompletedButton.isSelected());\n\n }",
"static void setNotSelected(){isSelected=false;}",
"protected void notifyDirty() {\n Event evt = new Event();\n evt.item = this;\n evt.widget = this;\n SelectionEvent event = new SelectionEvent(evt);\n for (SelectionListener listener : dirtyListener) {\n listener.widgetSelected(event);\n }\n }",
"public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}",
"public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }",
"public void itemStateChanged(ItemEvent e) {\n ArrowablePrimitive p = (ArrowablePrimitive)getCurrentObject();\n if (p == null)\n return;\n if (e.getSource() == fwArrow) {\n p.setFWArrow(fwArrow.isSelected());\n }\n\n if (e.getSource() == bwArrow) {\n p.setBWArrow(bwArrow.isSelected());\n }\n Animation.get().doChange();\n repaintNow();\n }",
"private void setChecked(int position) {\n if (isClickTab) {\n isClickTab = false;\n } else {\n if (mTabLayout == null) {\n return;\n }\n mTabLayout.setTabSelected(index);\n }\n index = position;\n }",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }",
"public void setChecked(boolean checked) {\n if (this.checked != checked) {\n this.checked = checked;\n refreshDrawableState();\n }\n }",
"public void itemStateChanged (ItemEvent event)\n {\n ((GroupItem)gbox.getSelectedItem()).activate();\n }",
"@Override\n\tpublic void setChecked(boolean checked) {\n\t\tthis.checked = checked;\n\t}",
"public void tickCheckBox() {\r\n\t\tcheckBox = driver.findElement(checkBoxSelector);\r\n\t\tcheckBox.click();\r\n\t\t\r\n\t}",
"public void setSelectedItem(int selectedItem) {\n setSelectedItem(selectedItem, true);\n }",
"public void setCheckedValue(Object pValue);",
"@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}",
"@Override\n public void setValue(Object value) {\n if (Boolean.valueOf(String.valueOf(value)) != checkboxElement.isSelected()) {\n select();\n }\n }",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"public void itemStateChanged(ItemEvent check) {\r\n\r\n // Process the reaction class checkboxes. First\r\n // get the components of the relevant panels\r\n // and store in Component arrays (Note: the method\r\n // getComponents() is inherited from the Container\r\n // class by the subclass Panel).\r\n\r\n Component [] components4 = panel4.getComponents();\r\n Component [] components5 = panel5.getComponents();\r\n\r\n // Now process these components that are checkboxes\r\n // (only the first element of each array is). First cast the\r\n // Component to a Checkbox. Then use the getState()\r\n // method of Checkbox to return boolean true if\r\n // checked and false otherwise.\r\n\r\n Checkbox cb4 = (Checkbox)components4[0]; // Checkbox for panel4\r\n Checkbox cb5 = (Checkbox)components5[0]; // Checkbox for panel5\r\n\r\n // Then use the getState() method of Checkbox to\r\n // return boolean true if checked and false otherwise.\r\n // Use this logic to disable one or the other sets of\r\n // choices for temperature and density input.\r\n\r\n if( cb4.getState() ) {\r\n checkBox[1].setState(false); // Seems needed despite CheckBoxGroup\r\n rho.disable();\r\n rho.setBackground(disablebgColor);\r\n rhoL.setForeground(disablefgColor);\r\n T9.disable();\r\n T9.setBackground(disablebgColor);\r\n T9L.setForeground(disablefgColor);\r\n profile.enable();\r\n profile.setBackground(panelBackColor);\r\n profileL.setForeground(panelForeColor);\r\n } else if ( cb5.getState() ) {\r\n checkBox[0].setState(false);\r\n rho.enable();\r\n rho.setBackground(panelBackColor);\r\n rhoL.setForeground(panelForeColor);\r\n T9.enable();\r\n T9.setBackground(panelBackColor);\r\n T9L.setForeground(panelForeColor);\r\n profile.disable();\r\n profile.setBackground(disablebgColor);\r\n profileL.setForeground(disablefgColor);\r\n }\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n cakeModel.hasCandles = isChecked;\n cakeView.invalidate();\n }",
"public void toggle() {\n setChecked(!checked);\n }",
"@Override\r\n\t\t// public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\r\n\t\tpublic void onClick(View v) {\n\t\t\tboolean arg1 = ((CheckBox) v).isChecked();\r\n\t\t\tif (arg1 == true) {\r\n\t\t\t\tHashMap<String, Long> cMap = null;\r\n\t\t\t\tif (cList == null) {\r\n\t\t\t\t\tcList = new ArrayList<HashMap<String, Long>>();\r\n\t\t\t\t\tcMap = new HashMap<String, Long>();\r\n\t\t\t\t\tcMap.put(\"idx\", (long) idx);\r\n\t\t\t\t\tcMap.put(\"cId\", (long) cId);\r\n\t\t\t\t\tcList.add(cMap);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcMap = getC(idx);\r\n\t\t\t\t\tif (cMap == null) {\r\n\t\t\t\t\t\tcMap = new HashMap<String, Long>();\r\n\t\t\t\t\t\tcMap.put(\"idx\", (long) idx);\r\n\t\t\t\t\t\tcMap.put(\"cId\", (long) cId);\r\n\t\t\t\t\t\tcList.add(cMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t((LvItemCbAttribute) list.get(idx).get(\"liscli_isChecked\")).isChecked = true;\r\n\t\t\t} else {\r\n\t\t\t\tif (cList != null) {\r\n\t\t\t\t\tHashMap<String, Long> cMap = getC(idx);\r\n\t\t\t\t\tif (cMap != null) {\r\n\t\t\t\t\t\tcList.remove(cMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t((LvItemCbAttribute) list.get(idx).get(\"liscli_isChecked\")).isChecked = false;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"cb--i-->\" + idx);\r\n\t\t\tiatclAdapter.notifyDataSetChanged();\r\n\t\t}",
"public void setFocused(boolean focused);",
"public void checkboxClickedSetDone(ActionEvent actionEvent) {\n // we will simply find the item within the group and use its setDone() method\n }",
"private void setSeatChecked(boolean isChecked, int position) {\n if(ticketTrans == null) return;\n SeatInfo item = ticketTrans.getSeatInfoList()[position];\n\n Log.d(EntranceStep2Activity.class.toString(), item.getSeatId() + \" \"\n + item.getTicketType() + \" \"\n + item.isChecked());\n\n item.setChecked(isChecked);\n\n checkedItems.clear();\n for(SeatInfo seat : ticketTrans.getSeatInfoList()) {\n if(seat.isChecked()) {\n checkedItems.add(seat);\n }\n }\n }"
] | [
"0.66577363",
"0.649302",
"0.6353033",
"0.63453746",
"0.62415266",
"0.61903894",
"0.61847275",
"0.61586374",
"0.61508197",
"0.6144781",
"0.61364037",
"0.6108837",
"0.61085445",
"0.6103947",
"0.60686755",
"0.60381085",
"0.6014877",
"0.59885085",
"0.5958846",
"0.59047747",
"0.5896761",
"0.58696204",
"0.5860223",
"0.58600986",
"0.58459586",
"0.5821",
"0.5821",
"0.58051836",
"0.57903254",
"0.57810247",
"0.57497734",
"0.57470846",
"0.57421315",
"0.5732684",
"0.57297325",
"0.57276106",
"0.57276106",
"0.57276106",
"0.5724454",
"0.5716852",
"0.57081664",
"0.56990236",
"0.5685171",
"0.5684877",
"0.5666131",
"0.5665121",
"0.56580955",
"0.56511545",
"0.56464505",
"0.564473",
"0.5633862",
"0.56283194",
"0.5626552",
"0.56258863",
"0.5625138",
"0.5624466",
"0.5620294",
"0.5619333",
"0.56167316",
"0.5616529",
"0.5614643",
"0.56143546",
"0.558564",
"0.55798537",
"0.55744016",
"0.5566476",
"0.55652755",
"0.55622745",
"0.5559636",
"0.5559636",
"0.55543554",
"0.5540986",
"0.55390465",
"0.55363137",
"0.55270785",
"0.5522131",
"0.55045485",
"0.549092",
"0.5483724",
"0.546172",
"0.54607964",
"0.5460092",
"0.5451843",
"0.54428226",
"0.5442777",
"0.5424549",
"0.5421782",
"0.54104143",
"0.5407123",
"0.54044425",
"0.54029405",
"0.53903246",
"0.53862894",
"0.5385126",
"0.5379238",
"0.5378255",
"0.5374877",
"0.53617895",
"0.53593934",
"0.5351231"
] | 0.5987192 | 18 |
Update the current focused item's checked status | @Override
public void onClick(DialogInterface dialog, int which, boolean isChecked) {
carModelCompaniesChecked[which] = isChecked;
// Get the current focused item
String currentItem = carModelCompanies[which];
// Notify the current action
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n checkedItems[which] = isChecked;\n // Get the current focused item\n //String currentItem = colorsList.get(which);\n }",
"@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}",
"public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }",
"public void toggleChecked(boolean b) {\n for (int i = 0; i < itemsDigested.size(); i++) {\n ListItem item = itemsDigested.get(i);\n if (b && item.getChecked() != ListItem.CHECKED) {\n item.setChecked(true);\n notifyItemChanged(i);\n } else if (!b && item.getChecked() == ListItem.CHECKED) {\n item.setChecked(false);\n notifyItemChanged(i);\n }\n }\n\n if (mainFrag.mActionMode != null) {\n mainFrag.mActionMode.invalidate();\n }\n\n if (getCheckedItems().size() == 0) {\n mainFrag.selection = false;\n if (mainFrag.mActionMode != null) mainFrag.mActionMode.finish();\n mainFrag.mActionMode = null;\n }\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }",
"@Override\r\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n final int checkedCount = lista.getCheckedItemCount();\r\n // Set the CAB title according to total checked items\r\n mode.setTitle(checkedCount + \" Selecionados\");\r\n selPessoas = new ArrayList<Pessoa>();\r\n if(checkedCount > 0){\r\n SparseBooleanArray selected = lista.getCheckedItemPositions();\r\n Log.v(\"TAGSELINI\", \" \"+selected.size() );\r\n for (int i = 0; i < selected.size(); i++) {\r\n if (selected.get(i)) {\r\n Pessoa selecteditem = adapter.getItem(selected.keyAt(i));\r\n Log.v(\"TAGSELLLL\", selecteditem.toString());\r\n selPessoas.add(selecteditem);\r\n }else{\r\n Log.v(\"TAGSEL\", i+\" -|- falhou :( \");\r\n }\r\n }\r\n mInterno.findItem(R.id.action_save).setVisible(true);\r\n }else{\r\n mInterno.findItem(R.id.action_save).setVisible(false);\r\n }\r\n\r\n // Calls toggleSelection method from ListViewAdapter Class\r\n adapter.toggleSelection(position);\r\n }",
"@Override\n public void onClick(View v) {\n filteredNewsgroupItems.get(fPosition).setSelected(((CheckBox)v).isChecked());\n }",
"@Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\t\tif(checked) {\n\t\t\tmSelection.setNewSelection(position, checked);\n\t\t\tnumItemsSelected++;\n\t\t}\n\t\telse {\n\t\t\tmSelection.removeSelection(position);\n\t\t\tnumItemsSelected--;\n\t\t}\n\t\tmode.setTitle(numItemsSelected + \" items selected\");\n }",
"public boolean isSelected() { return selected; }",
"public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"public void itemSelected(boolean selected);",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n branchesCitiesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = branchesCities[which];\n // Notify the current action\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n mItem.mIsChecked = isChecked;\n\n if (TAB_AUTO == mTabIndex) {\n setConfigBtnState();\n } else if (TAB_MANUAL == mTabIndex) {\n setConfirmBtnsState();\n } else {\n myAssert(false, \"No such tab!\");\n }\n }",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"public void setChecked()\n\t{\n\t\tchecked = true;\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carCompanies[which];\n\n }",
"@Override\r\n\t\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\r\n\t\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t}",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n items.get(position).isChecked = !(items.get(position).isChecked);\n Log.println(Log.DEBUG, TAG, items.get(position).name + \":\" + items.get(position).isChecked);\n }",
"public boolean isSelected() {\r\n return selected;\r\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton pos, boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tif (!listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.add(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.put(posit, isChecked);\n\t\t\t\t} else {\n\t\t\t\t\tif (listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.remove(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.remove(posit);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\n\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t\n\t\t\t\tif(dummyList.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\n\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\n\t\t\t\t dummyList.add(messageList.get(position));\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t\t\t int cn=0;\n\t\t\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessagewrapper objec=messageList.get(position);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(obje.get_number().equals(objec.get_number())){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcn++;\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\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(cn==1){\n\t\t\t\t\t\t\t\t\tcheckedCount--;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdummyList.remove(messageList.get(position));\n\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\t\n\t\t\t\t\t\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\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 dummyList.add(messageList.get(position));\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\n\t\t\t\t\n\t\t\t\t }\t\n\t\t\t\t\n\t\t\t}",
"public boolean isSelected()\n {\n return selected;\n }",
"public boolean isSelected();",
"public boolean isSelected();",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n RowData data = (RowData) viewHolder.chkBox.getTag();\n if (isChecked) {\n\n checkBoxState.set(data.position, true);\n Log.i(tag, \"cursor.getPosition(true) with onChecked Listener : \" + data.position);\n }\n else {\n checkBoxState.set(data.position, false);\n Log.i(tag, \"cursor.getPosition(false) with onChecked Listener : \" + data.position);\n }\n }",
"private void updateOneItem(JCheckBox cb, JSlider slider, JLabel label, Variable key,\n Variable keyOn) {\n if (cb.isSelected()) {\n if (!slider.getValueIsAdjusting()) {\n data.put(key, slider.getValue());\n data.put(keyOn, Boolean.TRUE);\n }\n label.setText(Integer.toString(slider.getValue()));\n } else {\n if (!slider.getValueIsAdjusting()) {\n // keep value... data.remove(key);\n data.put(keyOn, Boolean.FALSE);\n }\n label.setText(NO_VALUE);\n }\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }",
"@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\t\tContainer element = (Container) viewHolder.ckBox.getTag();\n\t\t\t\t\t\telement.setSelected(buttonView.isChecked());\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}",
"@Override\n\tpublic void setChecked(boolean checked) {\n\t\t// If trying to set the current state, ignore.\n\t\tif (!mCheckable || checked == mChecked) {\n\t\t\treturn;\n\t\t}\n\t\tmChecked = checked;\n\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\t\t\t// Create and start the {@link ValueAnimator} that shows the new state.\n\t\t\tAnimator anim = createAnimator();\n\t\t\tanim.setDuration(getResources().getInteger(android.R.integer.config_shortAnimTime));\n\t\t\tanim.start();\n\n\t\t\t// Set the new background color of the {@link View} to be revealed.\n\t\t\tmRevealView.setBackgroundColor(\n\t\t\t\t\tmChecked ? getResources().getColor(R.color.fab_checked)\n\t\t\t\t\t\t\t: getResources().getColor(R.color.fab_normal)\n\t\t\t\t\t);\n\n\t\t\t// Show the {@link View} to be revealed. Note that the animation has started already.\n\t\t\tmRevealView.setVisibility(View.VISIBLE);\n\t\t} else\n\t\t\trefreshDrawableState();\n\n\t\tif (mOnCheckedChangeListener != null) {\n\t\t\tmOnCheckedChangeListener.onCheckedChanged(this, checked);\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\t\tif (!updating && button.isSelected()) {\n\t\t\t\t\t\tmodel.set(db);\n\t\t\t\t\t}\n\t\t\t\t\tif (!useRadioButtons) {\n\t\t\t\t\t\tlabel.setForeground(button.isSelected() ? selectedForeground : unselectedForeground);\n\t\t\t\t\t}\n\t\t\t\t}",
"public boolean isSelected() {\n return checkbox.isSelected();\n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tCheckBox checkbox = (CheckBox) arg0;\r\n\t\t\t\tcProducts.get(position).setCheck(checkbox.isChecked());\r\n\t\t\t\tif (itemChangedListener != null) {\r\n\t\t\t\t\titemChangedListener.itemCilck(position,\r\n\t\t\t\t\t\t\tcheckbox.isChecked());\r\n\t\t\t\t}\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n checkBox_seleccionados[position] = holder.chkItem.isChecked();\n }",
"@Override\n\tpublic void toggle() {\n\t\tsetChecked(!checked);\n\t}",
"private void updateEnabledState() {\n updateEnabledState(spinner, spinner.isEnabled()); }",
"public abstract boolean isSelected();",
"public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}",
"public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tToast.makeText(getContext(), \"Checked \" + isChecked + \"Position \" + position, Toast.LENGTH_LONG).show();\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tlistItems.get(position).setChecked(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistItems.get(position).setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}",
"public void updateItemState(DATA data, boolean selected ) {\r\n\t\tString key = this.dataKeyExtractor.generateSingleStringKey(data);\r\n\t\tif ( modeSelectAll){\r\n\t\t\tif ( selected)\r\n\t\t\t\tunselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tunselectedDataIds.add(key);\r\n\t\t}else{\r\n\t\t\tif ( selected)\r\n\t\t\t\tselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tselectedDataIds.add(key);\r\n\t\t}\r\n\t}",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }",
"private void UpdateChecboxes()\r\n\t{\n\t\tfor (Iterator<CheckBox> iterator = this.CBlist.iterator(); iterator.hasNext();) \r\n\t\t{\r\n\t\t\t// for the next CheckBox\r\n\t\t\tCheckBox currChBox = iterator.next();\r\n\t\t\t\r\n\t\t\t// if the matching tag is true - \r\n\t\t\tif (this.hmTags.get(currChBox.getText()) == true)\r\n\t\t\t{\r\n\t\t\t\t// Check it\r\n\t\t\t\tcurrChBox.setChecked(true);\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"public void setActive() {\n setState(true);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n ScheduleItem item = itemList.get(position);\n item.setSelected(!item.isSelected());\n view.setBackgroundColor(item.isSelected() ? Color.rgb(27, 179, 245) : Color.WHITE);\n\n\n button.setEnabled(false);\n button.setBackgroundColor(Color.LTGRAY);\n for(ScheduleItem scheduleItem: itemList){\n if(scheduleItem.isSelected()){\n button.setEnabled(true);\n button.setBackgroundColor(Color.BLUE);\n }\n }\n\n\n }",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"public void setSelected(boolean selected);",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif (checkbox.isChecked())\n\t\t\t\t{\n\t\t\t\t\t//add player to active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 1);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//remove player from active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 0);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }",
"public void setChecked(boolean active) {\r\n\t\tgetCheck().setSelected(active);\r\n\t\tsuper.setControlEnabled(active);\r\n\t}",
"public void setChecked(Integer checked) {\n this.checked = checked;\n }",
"public void setChecked(FriendsListViewHolder holder, int pos) {\n\n\n for (UserModel u : groupDetails) {\n if (u.getUser_id() == FriendsListAdapter.this.friendDetails.get(pos).getUser_id()) {\n friendDetails.setChecked(true);\n itemClickListener.onItemClick(userID);\n }\n }\n }",
"boolean updateItems() {\n return updateItems(selectedIndex);\n }",
"public void updateCurrentItem() {\n PagerSnapHelper pagerSnapHelper = this.mPagerSnapHelper;\n if (pagerSnapHelper != null) {\n View findSnapView = pagerSnapHelper.findSnapView(this.mLayoutManager);\n if (findSnapView != null) {\n int position = this.mLayoutManager.getPosition(findSnapView);\n if (position != this.mCurrentItem && getScrollState() == 0) {\n this.mPageChangeEventDispatcher.onPageSelected(position);\n }\n this.mCurrentItemDirty = false;\n return;\n }\n return;\n }\n throw new IllegalStateException(\"Design assumption violated.\");\n }",
"public void onItemStateChanged(String id, boolean selected);",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"public void checkedMode(boolean b) {\n setSelected(shellBot.checkBox(\"Run in checked mode\"), b);\n }",
"@Override\n public void onClick(View v) {\n if(custActiveInactive.isChecked()){\n custHardwareReturned.setChecked(false);\n custHardwareReturned.setEnabled(false);\n custHardwareInstalled.setEnabled(true);\n cust.custActiveInActive = 1;\n }else{\n custHardwareInstalled.setChecked(false);\n custHardwareInstalled.setEnabled(false);\n custHardwareReturned.setEnabled(true);\n cust.custActiveInActive = 0;\n }\n }",
"public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }",
"@Override\n public void clicked(int localX, int localY) {\n synchronized (this) {\n if (state == State.CHECKED) {\n state = State.UNCHECKED;\n } else {\n state = State.CHECKED;\n }\n }\n }",
"public boolean isSelected()\n {\n\treturn _isSelected;\n }",
"@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n\n holder.routineCompletedButton.setSelected(!holder.routineCompletedButton.isSelected());\n\n }",
"static void setNotSelected(){isSelected=false;}",
"protected void notifyDirty() {\n Event evt = new Event();\n evt.item = this;\n evt.widget = this;\n SelectionEvent event = new SelectionEvent(evt);\n for (SelectionListener listener : dirtyListener) {\n listener.widgetSelected(event);\n }\n }",
"public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}",
"public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }",
"private void setChecked(int position) {\n if (isClickTab) {\n isClickTab = false;\n } else {\n if (mTabLayout == null) {\n return;\n }\n mTabLayout.setTabSelected(index);\n }\n index = position;\n }",
"public void itemStateChanged(ItemEvent e) {\n ArrowablePrimitive p = (ArrowablePrimitive)getCurrentObject();\n if (p == null)\n return;\n if (e.getSource() == fwArrow) {\n p.setFWArrow(fwArrow.isSelected());\n }\n\n if (e.getSource() == bwArrow) {\n p.setBWArrow(bwArrow.isSelected());\n }\n Animation.get().doChange();\n repaintNow();\n }",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }",
"public void setChecked(boolean checked) {\n if (this.checked != checked) {\n this.checked = checked;\n refreshDrawableState();\n }\n }",
"public void itemStateChanged (ItemEvent event)\n {\n ((GroupItem)gbox.getSelectedItem()).activate();\n }",
"@Override\n\tpublic void setChecked(boolean checked) {\n\t\tthis.checked = checked;\n\t}",
"public void tickCheckBox() {\r\n\t\tcheckBox = driver.findElement(checkBoxSelector);\r\n\t\tcheckBox.click();\r\n\t\t\r\n\t}",
"public void setSelectedItem(int selectedItem) {\n setSelectedItem(selectedItem, true);\n }",
"public void setCheckedValue(Object pValue);",
"@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}",
"@Override\n public void setValue(Object value) {\n if (Boolean.valueOf(String.valueOf(value)) != checkboxElement.isSelected()) {\n select();\n }\n }",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"public void itemStateChanged(ItemEvent check) {\r\n\r\n // Process the reaction class checkboxes. First\r\n // get the components of the relevant panels\r\n // and store in Component arrays (Note: the method\r\n // getComponents() is inherited from the Container\r\n // class by the subclass Panel).\r\n\r\n Component [] components4 = panel4.getComponents();\r\n Component [] components5 = panel5.getComponents();\r\n\r\n // Now process these components that are checkboxes\r\n // (only the first element of each array is). First cast the\r\n // Component to a Checkbox. Then use the getState()\r\n // method of Checkbox to return boolean true if\r\n // checked and false otherwise.\r\n\r\n Checkbox cb4 = (Checkbox)components4[0]; // Checkbox for panel4\r\n Checkbox cb5 = (Checkbox)components5[0]; // Checkbox for panel5\r\n\r\n // Then use the getState() method of Checkbox to\r\n // return boolean true if checked and false otherwise.\r\n // Use this logic to disable one or the other sets of\r\n // choices for temperature and density input.\r\n\r\n if( cb4.getState() ) {\r\n checkBox[1].setState(false); // Seems needed despite CheckBoxGroup\r\n rho.disable();\r\n rho.setBackground(disablebgColor);\r\n rhoL.setForeground(disablefgColor);\r\n T9.disable();\r\n T9.setBackground(disablebgColor);\r\n T9L.setForeground(disablefgColor);\r\n profile.enable();\r\n profile.setBackground(panelBackColor);\r\n profileL.setForeground(panelForeColor);\r\n } else if ( cb5.getState() ) {\r\n checkBox[0].setState(false);\r\n rho.enable();\r\n rho.setBackground(panelBackColor);\r\n rhoL.setForeground(panelForeColor);\r\n T9.enable();\r\n T9.setBackground(panelBackColor);\r\n T9L.setForeground(panelForeColor);\r\n profile.disable();\r\n profile.setBackground(disablebgColor);\r\n profileL.setForeground(disablefgColor);\r\n }\r\n }",
"public void toggle() {\n setChecked(!checked);\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n cakeModel.hasCandles = isChecked;\n cakeView.invalidate();\n }",
"@Override\r\n\t\t// public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\r\n\t\tpublic void onClick(View v) {\n\t\t\tboolean arg1 = ((CheckBox) v).isChecked();\r\n\t\t\tif (arg1 == true) {\r\n\t\t\t\tHashMap<String, Long> cMap = null;\r\n\t\t\t\tif (cList == null) {\r\n\t\t\t\t\tcList = new ArrayList<HashMap<String, Long>>();\r\n\t\t\t\t\tcMap = new HashMap<String, Long>();\r\n\t\t\t\t\tcMap.put(\"idx\", (long) idx);\r\n\t\t\t\t\tcMap.put(\"cId\", (long) cId);\r\n\t\t\t\t\tcList.add(cMap);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcMap = getC(idx);\r\n\t\t\t\t\tif (cMap == null) {\r\n\t\t\t\t\t\tcMap = new HashMap<String, Long>();\r\n\t\t\t\t\t\tcMap.put(\"idx\", (long) idx);\r\n\t\t\t\t\t\tcMap.put(\"cId\", (long) cId);\r\n\t\t\t\t\t\tcList.add(cMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t((LvItemCbAttribute) list.get(idx).get(\"liscli_isChecked\")).isChecked = true;\r\n\t\t\t} else {\r\n\t\t\t\tif (cList != null) {\r\n\t\t\t\t\tHashMap<String, Long> cMap = getC(idx);\r\n\t\t\t\t\tif (cMap != null) {\r\n\t\t\t\t\t\tcList.remove(cMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t((LvItemCbAttribute) list.get(idx).get(\"liscli_isChecked\")).isChecked = false;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"cb--i-->\" + idx);\r\n\t\t\tiatclAdapter.notifyDataSetChanged();\r\n\t\t}",
"public void setFocused(boolean focused);",
"public void checkboxClickedSetDone(ActionEvent actionEvent) {\n // we will simply find the item within the group and use its setDone() method\n }",
"private void setSeatChecked(boolean isChecked, int position) {\n if(ticketTrans == null) return;\n SeatInfo item = ticketTrans.getSeatInfoList()[position];\n\n Log.d(EntranceStep2Activity.class.toString(), item.getSeatId() + \" \"\n + item.getTicketType() + \" \"\n + item.isChecked());\n\n item.setChecked(isChecked);\n\n checkedItems.clear();\n for(SeatInfo seat : ticketTrans.getSeatInfoList()) {\n if(seat.isChecked()) {\n checkedItems.add(seat);\n }\n }\n }"
] | [
"0.6658268",
"0.6495443",
"0.63535094",
"0.63477296",
"0.6244261",
"0.6192358",
"0.6187767",
"0.61526734",
"0.614758",
"0.6138462",
"0.6111075",
"0.611043",
"0.61043924",
"0.60699177",
"0.60401994",
"0.60174847",
"0.59905034",
"0.5987576",
"0.5960444",
"0.5907401",
"0.59002066",
"0.58720046",
"0.5863215",
"0.58628887",
"0.58483917",
"0.5823281",
"0.5823281",
"0.58073837",
"0.5790932",
"0.57823163",
"0.5752304",
"0.57492596",
"0.57422876",
"0.5734663",
"0.57326555",
"0.5730213",
"0.5730213",
"0.5730213",
"0.5725908",
"0.5719335",
"0.57094485",
"0.5701231",
"0.56872416",
"0.5687092",
"0.5667451",
"0.5665463",
"0.5660773",
"0.56520975",
"0.56493205",
"0.56483155",
"0.5635573",
"0.5628715",
"0.5627411",
"0.56268847",
"0.56268656",
"0.5626731",
"0.5622833",
"0.56205624",
"0.5618736",
"0.56176746",
"0.5617369",
"0.5614475",
"0.5583694",
"0.55815256",
"0.5576253",
"0.5570808",
"0.55679053",
"0.5564821",
"0.556215",
"0.556215",
"0.55558425",
"0.55423737",
"0.55408335",
"0.5538559",
"0.5529824",
"0.552442",
"0.5508173",
"0.54914796",
"0.54858845",
"0.546383",
"0.5461512",
"0.5459693",
"0.54527026",
"0.5445366",
"0.544363",
"0.5426256",
"0.5423036",
"0.5412757",
"0.5407402",
"0.540621",
"0.5405662",
"0.5392579",
"0.5388742",
"0.538674",
"0.53806746",
"0.5379706",
"0.5377199",
"0.5360832",
"0.5360314",
"0.53527147"
] | 0.61592215 | 7 |
Update the current focused item's checked status | @Override
public void onClick(DialogInterface dialog, int which, boolean isChecked) {
branchesCitiesChecked[which] = isChecked;
// Get the current focused item
String currentItem = branchesCities[which];
// Notify the current action
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n checkedItems[which] = isChecked;\n // Get the current focused item\n //String currentItem = colorsList.get(which);\n }",
"@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}",
"public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }",
"public void toggleChecked(boolean b) {\n for (int i = 0; i < itemsDigested.size(); i++) {\n ListItem item = itemsDigested.get(i);\n if (b && item.getChecked() != ListItem.CHECKED) {\n item.setChecked(true);\n notifyItemChanged(i);\n } else if (!b && item.getChecked() == ListItem.CHECKED) {\n item.setChecked(false);\n notifyItemChanged(i);\n }\n }\n\n if (mainFrag.mActionMode != null) {\n mainFrag.mActionMode.invalidate();\n }\n\n if (getCheckedItems().size() == 0) {\n mainFrag.selection = false;\n if (mainFrag.mActionMode != null) mainFrag.mActionMode.finish();\n mainFrag.mActionMode = null;\n }\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n stList.get(position).setSelected(isChecked);\n }",
"@Override\r\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n final int checkedCount = lista.getCheckedItemCount();\r\n // Set the CAB title according to total checked items\r\n mode.setTitle(checkedCount + \" Selecionados\");\r\n selPessoas = new ArrayList<Pessoa>();\r\n if(checkedCount > 0){\r\n SparseBooleanArray selected = lista.getCheckedItemPositions();\r\n Log.v(\"TAGSELINI\", \" \"+selected.size() );\r\n for (int i = 0; i < selected.size(); i++) {\r\n if (selected.get(i)) {\r\n Pessoa selecteditem = adapter.getItem(selected.keyAt(i));\r\n Log.v(\"TAGSELLLL\", selecteditem.toString());\r\n selPessoas.add(selecteditem);\r\n }else{\r\n Log.v(\"TAGSEL\", i+\" -|- falhou :( \");\r\n }\r\n }\r\n mInterno.findItem(R.id.action_save).setVisible(true);\r\n }else{\r\n mInterno.findItem(R.id.action_save).setVisible(false);\r\n }\r\n\r\n // Calls toggleSelection method from ListViewAdapter Class\r\n adapter.toggleSelection(position);\r\n }",
"@Override\n public void onClick(View v) {\n filteredNewsgroupItems.get(fPosition).setSelected(((CheckBox)v).isChecked());\n }",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carModelCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carModelCompanies[which];\n // Notify the current action\n }",
"@Override\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n\t\tif(checked) {\n\t\t\tmSelection.setNewSelection(position, checked);\n\t\t\tnumItemsSelected++;\n\t\t}\n\t\telse {\n\t\t\tmSelection.removeSelection(position);\n\t\t\tnumItemsSelected--;\n\t\t}\n\t\tmode.setTitle(numItemsSelected + \" items selected\");\n }",
"public boolean isSelected() { return selected; }",
"public void itemStateChanged(ItemEvent ie) {\n JCheckBox check = (JCheckBox)ie.getSource();\n cb_selection = check.getText(); \n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"public void itemSelected(boolean selected);",
"@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n mItem.mIsChecked = isChecked;\n\n if (TAB_AUTO == mTabIndex) {\n setConfigBtnState();\n } else if (TAB_MANUAL == mTabIndex) {\n setConfirmBtnsState();\n } else {\n myAssert(false, \"No such tab!\");\n }\n }",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"public void setChecked()\n\t{\n\t\tchecked = true;\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n carCompaniesChecked[which] = isChecked;\n // Get the current focused item\n String currentItem = carCompanies[which];\n\n }",
"@Override\r\n\t\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\r\n\t\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t}",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\n public void onItemClick(AdapterView<?> parent,\n View view, int position, long id) {\n items.get(position).isChecked = !(items.get(position).isChecked);\n Log.println(Log.DEBUG, TAG, items.get(position).name + \":\" + items.get(position).isChecked);\n }",
"public boolean isSelected() {\r\n return selected;\r\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton pos, boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tif (!listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.add(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.put(posit, isChecked);\n\t\t\t\t} else {\n\t\t\t\t\tif (listCheckedData.contains(lists.get(posit))) {\n\t\t\t\t\t\tlistCheckedData.remove(lists.get(posit));\n\t\t\t\t\t}\n\t\t\t\t\tisCheckedMap.remove(posit);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void onItemCheckedStateChanged(ActionMode mode, int position,\n\t\t\t\t\tlong id, boolean checked) {\n\t\t\t\t\n\t\t\t\tif(dummyList.isEmpty()){\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\n\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\n\t\t\t\t dummyList.add(messageList.get(position));\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t\t\t int cn=0;\n\t\t\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessagewrapper objec=messageList.get(position);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(obje.get_number().equals(objec.get_number())){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcn++;\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\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(cn==1){\n\t\t\t\t\t\t\t\t\tcheckedCount--;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdummyList.remove(messageList.get(position));\n\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\t\n\t\t\t\t\t\t\t\t\t\tcheckedCount++;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tmode.setTitle(checkedCount + \" Selected\");\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 dummyList.add(messageList.get(position));\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\n\t\t\t\t\n\t\t\t\t }\t\n\t\t\t\t\n\t\t\t}",
"public boolean isSelected()\n {\n return selected;\n }",
"public boolean isSelected();",
"public boolean isSelected();",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n RowData data = (RowData) viewHolder.chkBox.getTag();\n if (isChecked) {\n\n checkBoxState.set(data.position, true);\n Log.i(tag, \"cursor.getPosition(true) with onChecked Listener : \" + data.position);\n }\n else {\n checkBoxState.set(data.position, false);\n Log.i(tag, \"cursor.getPosition(false) with onChecked Listener : \" + data.position);\n }\n }",
"private void updateOneItem(JCheckBox cb, JSlider slider, JLabel label, Variable key,\n Variable keyOn) {\n if (cb.isSelected()) {\n if (!slider.getValueIsAdjusting()) {\n data.put(key, slider.getValue());\n data.put(keyOn, Boolean.TRUE);\n }\n label.setText(Integer.toString(slider.getValue()));\n } else {\n if (!slider.getValueIsAdjusting()) {\n // keep value... data.remove(key);\n data.put(keyOn, Boolean.FALSE);\n }\n label.setText(NO_VALUE);\n }\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }",
"@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\t\tContainer element = (Container) viewHolder.ckBox.getTag();\n\t\t\t\t\t\telement.setSelected(buttonView.isChecked());\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}",
"@Override\n\tpublic void setChecked(boolean checked) {\n\t\t// If trying to set the current state, ignore.\n\t\tif (!mCheckable || checked == mChecked) {\n\t\t\treturn;\n\t\t}\n\t\tmChecked = checked;\n\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\t\t\t// Create and start the {@link ValueAnimator} that shows the new state.\n\t\t\tAnimator anim = createAnimator();\n\t\t\tanim.setDuration(getResources().getInteger(android.R.integer.config_shortAnimTime));\n\t\t\tanim.start();\n\n\t\t\t// Set the new background color of the {@link View} to be revealed.\n\t\t\tmRevealView.setBackgroundColor(\n\t\t\t\t\tmChecked ? getResources().getColor(R.color.fab_checked)\n\t\t\t\t\t\t\t: getResources().getColor(R.color.fab_normal)\n\t\t\t\t\t);\n\n\t\t\t// Show the {@link View} to be revealed. Note that the animation has started already.\n\t\t\tmRevealView.setVisibility(View.VISIBLE);\n\t\t} else\n\t\t\trefreshDrawableState();\n\n\t\tif (mOnCheckedChangeListener != null) {\n\t\t\tmOnCheckedChangeListener.onCheckedChanged(this, checked);\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\t\tif (!updating && button.isSelected()) {\n\t\t\t\t\t\tmodel.set(db);\n\t\t\t\t\t}\n\t\t\t\t\tif (!useRadioButtons) {\n\t\t\t\t\t\tlabel.setForeground(button.isSelected() ? selectedForeground : unselectedForeground);\n\t\t\t\t\t}\n\t\t\t\t}",
"public boolean isSelected() {\n return checkbox.isSelected();\n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tCheckBox checkbox = (CheckBox) arg0;\r\n\t\t\t\tcProducts.get(position).setCheck(checkbox.isChecked());\r\n\t\t\t\tif (itemChangedListener != null) {\r\n\t\t\t\t\titemChangedListener.itemCilck(position,\r\n\t\t\t\t\t\t\tcheckbox.isChecked());\r\n\t\t\t\t}\r\n\t\t\t\tnotifyDataSetChanged();\r\n\t\t\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n checkBox_seleccionados[position] = holder.chkItem.isChecked();\n }",
"@Override\n\tpublic void toggle() {\n\t\tsetChecked(!checked);\n\t}",
"private void updateEnabledState() {\n updateEnabledState(spinner, spinner.isEnabled()); }",
"public abstract boolean isSelected();",
"public static void updateItemCheckmark(String item){\n\t\tint saveFilePosition=getItemPosition(item);\n\t\titemList.get(saveFilePosition).updateCheckmark(\n\t\t\t\t!itemList.get(saveFilePosition).getCheckmark());\n\t\t\n\t}",
"public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tToast.makeText(getContext(), \"Checked \" + isChecked + \"Position \" + position, Toast.LENGTH_LONG).show();\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tlistItems.get(position).setChecked(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistItems.get(position).setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}",
"public void updateItemState(DATA data, boolean selected ) {\r\n\t\tString key = this.dataKeyExtractor.generateSingleStringKey(data);\r\n\t\tif ( modeSelectAll){\r\n\t\t\tif ( selected)\r\n\t\t\t\tunselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tunselectedDataIds.add(key);\r\n\t\t}else{\r\n\t\t\tif ( selected)\r\n\t\t\t\tselectedDataIds.remove(selected);\r\n\t\t\telse\r\n\t\t\t\tselectedDataIds.add(key);\r\n\t\t}\r\n\t}",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }",
"private void UpdateChecboxes()\r\n\t{\n\t\tfor (Iterator<CheckBox> iterator = this.CBlist.iterator(); iterator.hasNext();) \r\n\t\t{\r\n\t\t\t// for the next CheckBox\r\n\t\t\tCheckBox currChBox = iterator.next();\r\n\t\t\t\r\n\t\t\t// if the matching tag is true - \r\n\t\t\tif (this.hmTags.get(currChBox.getText()) == true)\r\n\t\t\t{\r\n\t\t\t\t// Check it\r\n\t\t\t\tcurrChBox.setChecked(true);\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"public void setActive() {\n setState(true);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n ScheduleItem item = itemList.get(position);\n item.setSelected(!item.isSelected());\n view.setBackgroundColor(item.isSelected() ? Color.rgb(27, 179, 245) : Color.WHITE);\n\n\n button.setEnabled(false);\n button.setBackgroundColor(Color.LTGRAY);\n for(ScheduleItem scheduleItem: itemList){\n if(scheduleItem.isSelected()){\n button.setEnabled(true);\n button.setBackgroundColor(Color.BLUE);\n }\n }\n\n\n }",
"@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tchecklistIndex = arg2;\r\n\t\t\t\t\r\n\t\t\t}",
"public void setSelected(boolean selected);",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif (checkbox.isChecked())\n\t\t\t\t{\n\t\t\t\t\t//add player to active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 1);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//remove player from active roster\n\t\t\t\t\tInteger posInt = (Integer)v.getTag();\n\t\t\t\t\tint pos = posInt.intValue();\n\t\t\t\t\tcursor.moveToPosition(pos);\n\t\t\t\t\tString pId = cursor.getString(cursor.getColumnIndex(DatabaseHelper.COL_ID));\n\t\t\t\t\tactivity.db.updateActiveInfo(teamId, pId, 0);\n\t\t\t\t\tactivity.updateActiveCount();\n\t\t\t\t\t//update the \"active\" count\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }",
"public void setChecked(boolean active) {\r\n\t\tgetCheck().setSelected(active);\r\n\t\tsuper.setControlEnabled(active);\r\n\t}",
"public void setChecked(Integer checked) {\n this.checked = checked;\n }",
"public void setChecked(FriendsListViewHolder holder, int pos) {\n\n\n for (UserModel u : groupDetails) {\n if (u.getUser_id() == FriendsListAdapter.this.friendDetails.get(pos).getUser_id()) {\n friendDetails.setChecked(true);\n itemClickListener.onItemClick(userID);\n }\n }\n }",
"boolean updateItems() {\n return updateItems(selectedIndex);\n }",
"public void updateCurrentItem() {\n PagerSnapHelper pagerSnapHelper = this.mPagerSnapHelper;\n if (pagerSnapHelper != null) {\n View findSnapView = pagerSnapHelper.findSnapView(this.mLayoutManager);\n if (findSnapView != null) {\n int position = this.mLayoutManager.getPosition(findSnapView);\n if (position != this.mCurrentItem && getScrollState() == 0) {\n this.mPageChangeEventDispatcher.onPageSelected(position);\n }\n this.mCurrentItemDirty = false;\n return;\n }\n return;\n }\n throw new IllegalStateException(\"Design assumption violated.\");\n }",
"public void onItemStateChanged(String id, boolean selected);",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"public void checkedMode(boolean b) {\n setSelected(shellBot.checkBox(\"Run in checked mode\"), b);\n }",
"@Override\n public void onClick(View v) {\n if(custActiveInactive.isChecked()){\n custHardwareReturned.setChecked(false);\n custHardwareReturned.setEnabled(false);\n custHardwareInstalled.setEnabled(true);\n cust.custActiveInActive = 1;\n }else{\n custHardwareInstalled.setChecked(false);\n custHardwareInstalled.setEnabled(false);\n custHardwareReturned.setEnabled(true);\n cust.custActiveInActive = 0;\n }\n }",
"public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }",
"@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }",
"@Override\n public void clicked(int localX, int localY) {\n synchronized (this) {\n if (state == State.CHECKED) {\n state = State.UNCHECKED;\n } else {\n state = State.CHECKED;\n }\n }\n }",
"public boolean isSelected()\n {\n\treturn _isSelected;\n }",
"@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n\n holder.routineCompletedButton.setSelected(!holder.routineCompletedButton.isSelected());\n\n }",
"static void setNotSelected(){isSelected=false;}",
"protected void notifyDirty() {\n Event evt = new Event();\n evt.item = this;\n evt.widget = this;\n SelectionEvent event = new SelectionEvent(evt);\n for (SelectionListener listener : dirtyListener) {\n listener.widgetSelected(event);\n }\n }",
"public void checkbox() {\r\n\t\tcheckBox.click();\r\n\t}",
"public void onAssigned(View view) {\n if (checked==1) {\n checked = 0;\n } else {\n checked=1;\n }\n }",
"private void setChecked(int position) {\n if (isClickTab) {\n isClickTab = false;\n } else {\n if (mTabLayout == null) {\n return;\n }\n mTabLayout.setTabSelected(index);\n }\n index = position;\n }",
"public void itemStateChanged(ItemEvent e) {\n ArrowablePrimitive p = (ArrowablePrimitive)getCurrentObject();\n if (p == null)\n return;\n if (e.getSource() == fwArrow) {\n p.setFWArrow(fwArrow.isSelected());\n }\n\n if (e.getSource() == bwArrow) {\n p.setBWArrow(bwArrow.isSelected());\n }\n Animation.get().doChange();\n repaintNow();\n }",
"public boolean isSelected(T item) {\n return getElement().isSelected(SerDes.mirror(item));\n }",
"@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }",
"public void setChecked(boolean checked) {\n if (this.checked != checked) {\n this.checked = checked;\n refreshDrawableState();\n }\n }",
"public void itemStateChanged (ItemEvent event)\n {\n ((GroupItem)gbox.getSelectedItem()).activate();\n }",
"@Override\n\tpublic void setChecked(boolean checked) {\n\t\tthis.checked = checked;\n\t}",
"public void tickCheckBox() {\r\n\t\tcheckBox = driver.findElement(checkBoxSelector);\r\n\t\tcheckBox.click();\r\n\t\t\r\n\t}",
"public void setSelectedItem(int selectedItem) {\n setSelectedItem(selectedItem, true);\n }",
"public void setCheckedValue(Object pValue);",
"@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}",
"@Override\n public void setValue(Object value) {\n if (Boolean.valueOf(String.valueOf(value)) != checkboxElement.isSelected()) {\n select();\n }\n }",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"public void itemStateChanged(ItemEvent check) {\r\n\r\n // Process the reaction class checkboxes. First\r\n // get the components of the relevant panels\r\n // and store in Component arrays (Note: the method\r\n // getComponents() is inherited from the Container\r\n // class by the subclass Panel).\r\n\r\n Component [] components4 = panel4.getComponents();\r\n Component [] components5 = panel5.getComponents();\r\n\r\n // Now process these components that are checkboxes\r\n // (only the first element of each array is). First cast the\r\n // Component to a Checkbox. Then use the getState()\r\n // method of Checkbox to return boolean true if\r\n // checked and false otherwise.\r\n\r\n Checkbox cb4 = (Checkbox)components4[0]; // Checkbox for panel4\r\n Checkbox cb5 = (Checkbox)components5[0]; // Checkbox for panel5\r\n\r\n // Then use the getState() method of Checkbox to\r\n // return boolean true if checked and false otherwise.\r\n // Use this logic to disable one or the other sets of\r\n // choices for temperature and density input.\r\n\r\n if( cb4.getState() ) {\r\n checkBox[1].setState(false); // Seems needed despite CheckBoxGroup\r\n rho.disable();\r\n rho.setBackground(disablebgColor);\r\n rhoL.setForeground(disablefgColor);\r\n T9.disable();\r\n T9.setBackground(disablebgColor);\r\n T9L.setForeground(disablefgColor);\r\n profile.enable();\r\n profile.setBackground(panelBackColor);\r\n profileL.setForeground(panelForeColor);\r\n } else if ( cb5.getState() ) {\r\n checkBox[0].setState(false);\r\n rho.enable();\r\n rho.setBackground(panelBackColor);\r\n rhoL.setForeground(panelForeColor);\r\n T9.enable();\r\n T9.setBackground(panelBackColor);\r\n T9L.setForeground(panelForeColor);\r\n profile.disable();\r\n profile.setBackground(disablebgColor);\r\n profileL.setForeground(disablefgColor);\r\n }\r\n }",
"public void toggle() {\n setChecked(!checked);\n }",
"@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n cakeModel.hasCandles = isChecked;\n cakeView.invalidate();\n }",
"@Override\r\n\t\t// public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\r\n\t\tpublic void onClick(View v) {\n\t\t\tboolean arg1 = ((CheckBox) v).isChecked();\r\n\t\t\tif (arg1 == true) {\r\n\t\t\t\tHashMap<String, Long> cMap = null;\r\n\t\t\t\tif (cList == null) {\r\n\t\t\t\t\tcList = new ArrayList<HashMap<String, Long>>();\r\n\t\t\t\t\tcMap = new HashMap<String, Long>();\r\n\t\t\t\t\tcMap.put(\"idx\", (long) idx);\r\n\t\t\t\t\tcMap.put(\"cId\", (long) cId);\r\n\t\t\t\t\tcList.add(cMap);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcMap = getC(idx);\r\n\t\t\t\t\tif (cMap == null) {\r\n\t\t\t\t\t\tcMap = new HashMap<String, Long>();\r\n\t\t\t\t\t\tcMap.put(\"idx\", (long) idx);\r\n\t\t\t\t\t\tcMap.put(\"cId\", (long) cId);\r\n\t\t\t\t\t\tcList.add(cMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t((LvItemCbAttribute) list.get(idx).get(\"liscli_isChecked\")).isChecked = true;\r\n\t\t\t} else {\r\n\t\t\t\tif (cList != null) {\r\n\t\t\t\t\tHashMap<String, Long> cMap = getC(idx);\r\n\t\t\t\t\tif (cMap != null) {\r\n\t\t\t\t\t\tcList.remove(cMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t((LvItemCbAttribute) list.get(idx).get(\"liscli_isChecked\")).isChecked = false;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"cb--i-->\" + idx);\r\n\t\t\tiatclAdapter.notifyDataSetChanged();\r\n\t\t}",
"public void setFocused(boolean focused);",
"public void checkboxClickedSetDone(ActionEvent actionEvent) {\n // we will simply find the item within the group and use its setDone() method\n }",
"private void setSeatChecked(boolean isChecked, int position) {\n if(ticketTrans == null) return;\n SeatInfo item = ticketTrans.getSeatInfoList()[position];\n\n Log.d(EntranceStep2Activity.class.toString(), item.getSeatId() + \" \"\n + item.getTicketType() + \" \"\n + item.isChecked());\n\n item.setChecked(isChecked);\n\n checkedItems.clear();\n for(SeatInfo seat : ticketTrans.getSeatInfoList()) {\n if(seat.isChecked()) {\n checkedItems.add(seat);\n }\n }\n }"
] | [
"0.6658268",
"0.6495443",
"0.63535094",
"0.63477296",
"0.6244261",
"0.6192358",
"0.6187767",
"0.61592215",
"0.61526734",
"0.614758",
"0.6138462",
"0.6111075",
"0.611043",
"0.60699177",
"0.60401994",
"0.60174847",
"0.59905034",
"0.5987576",
"0.5960444",
"0.5907401",
"0.59002066",
"0.58720046",
"0.5863215",
"0.58628887",
"0.58483917",
"0.5823281",
"0.5823281",
"0.58073837",
"0.5790932",
"0.57823163",
"0.5752304",
"0.57492596",
"0.57422876",
"0.5734663",
"0.57326555",
"0.5730213",
"0.5730213",
"0.5730213",
"0.5725908",
"0.5719335",
"0.57094485",
"0.5701231",
"0.56872416",
"0.5687092",
"0.5667451",
"0.5665463",
"0.5660773",
"0.56520975",
"0.56493205",
"0.56483155",
"0.5635573",
"0.5628715",
"0.5627411",
"0.56268847",
"0.56268656",
"0.5626731",
"0.5622833",
"0.56205624",
"0.5618736",
"0.56176746",
"0.5617369",
"0.5614475",
"0.5583694",
"0.55815256",
"0.5576253",
"0.5570808",
"0.55679053",
"0.5564821",
"0.556215",
"0.556215",
"0.55558425",
"0.55423737",
"0.55408335",
"0.5538559",
"0.5529824",
"0.552442",
"0.5508173",
"0.54914796",
"0.54858845",
"0.546383",
"0.5461512",
"0.5459693",
"0.54527026",
"0.5445366",
"0.544363",
"0.5426256",
"0.5423036",
"0.5412757",
"0.5407402",
"0.540621",
"0.5405662",
"0.5392579",
"0.5388742",
"0.538674",
"0.53806746",
"0.5379706",
"0.5377199",
"0.5360832",
"0.5360314",
"0.53527147"
] | 0.61043924 | 13 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.MissionAndValues) {
Intent intent = new Intent(MainActivity.this, MissionAndValuesActivity.class);
startActivity(intent);
return true;
} else if (id == R.id.action_statistics) {
Intent intent = new Intent(MainActivity.this, RevenueActivity.class);
startActivity(intent);
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] | [
"0.7904536",
"0.78052336",
"0.7766536",
"0.7727363",
"0.76318616",
"0.7621916",
"0.7584545",
"0.7530609",
"0.74878335",
"0.74571276",
"0.74571276",
"0.7438656",
"0.7422694",
"0.7403604",
"0.73918706",
"0.7387049",
"0.7379379",
"0.73706305",
"0.7362634",
"0.7356091",
"0.7345742",
"0.7341655",
"0.7330208",
"0.73284286",
"0.7325726",
"0.7319205",
"0.731691",
"0.73137385",
"0.7304247",
"0.7304247",
"0.73017776",
"0.7298307",
"0.72933966",
"0.7286999",
"0.7283511",
"0.72811604",
"0.72787315",
"0.7259994",
"0.7259994",
"0.7259994",
"0.72595567",
"0.72595537",
"0.72501904",
"0.7224887",
"0.7219672",
"0.7217532",
"0.72043973",
"0.72010916",
"0.7199519",
"0.71928704",
"0.71855384",
"0.7177209",
"0.71689284",
"0.7167426",
"0.715412",
"0.71537405",
"0.7135554",
"0.7134872",
"0.7134872",
"0.7129713",
"0.7129041",
"0.71240187",
"0.7123551",
"0.7123167",
"0.71221936",
"0.71173894",
"0.71173894",
"0.71173894",
"0.71173894",
"0.71170884",
"0.7116871",
"0.7116271",
"0.7114722",
"0.7112311",
"0.7109584",
"0.7108896",
"0.7105745",
"0.70993924",
"0.70979136",
"0.7095834",
"0.70936936",
"0.70936936",
"0.70863414",
"0.7083095",
"0.7081166",
"0.70801973",
"0.7073687",
"0.7068324",
"0.7061727",
"0.7060408",
"0.7060199",
"0.7051346",
"0.70376796",
"0.70376796",
"0.7035851",
"0.70354784",
"0.70354784",
"0.7032029",
"0.70307976",
"0.70294225",
"0.70193213"
] | 0.0 | -1 |
if origin is inside the simplex return (0,0,0) otherwise return the direction to search for the next point | private DirectionTestResult getDirection() throws SimplexException {
switch(pointCount) {
case 1:
return new DirectionTestResult(a.negate(new Vector2f()));
case 2:
Vector2f ab = b.sub(a);
Vector2f perpAB = new Vector2f(-ab.y,ab.x);
// check the perpendicular points opposite to vector A
// i.e. towards the origin
// if not, return the negated perpendicular and swap
// points A and B to maintain clockwise rotation.
if (perpAB.dot(a) < 0) {
return new DirectionTestResult(perpAB);
} else {
Vector2f t = a;
a = b;
b = t;
return new DirectionTestResult(perpAB.negate());
}
case 3:
// first check line AC just like case 2
Vector2f ac = c.sub(a);
Vector2f perpAC = new Vector2f(-ac.y,ac.x);
if (perpAC.dot(a) < 0) {
b = c;
c = null;
pointCount = 2;
return new DirectionTestResult(perpAC);
}
// now check line CB just like case 2
Vector2f cb = b.sub(c);
Vector2f perpCB = new Vector2f(-cb.y, cb.x);
if (perpCB.dot(c) < 0) {
a = c;
c = null;
pointCount = 2;
return new DirectionTestResult(perpCB);
}
// if both checks failed the origin must be inside the
// simplex which means there is a collision so return
// a true directionTestResult
return new DirectionTestResult();
default:
throw new SimplexException("pointCount outside acceptable range");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Loc nextPoint(Loc l, String direction) {\n\t\tif (direction.equals(\"down\")) {\n\t\t\t// Is at bottom?\n\t\t\t// System.out.println(\"p.getx= \" + l.row);\n\t\t\tif (l.row >= matrixHeight - 1) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn new Loc(l.row + 1, l.col);\n\t\t} else if (direction.equals(\"left\")) {\n\t\t\tif (l.col <= 0) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn new Loc(l.row, l.col - 1);\n\t\t} else { // right\n\t\t\tif (l.col >= matrixWidth - 1) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn new Loc(l.row, l.col + 1);\n\t\t}\n\t}",
"godot.wire.Wire.Vector2 getOrigin();",
"N getOrigin();",
"public abstract Vector3 directionFrom(Point3 point);",
"public static IDirectPosition getClosestPointsInDirection(\n IDirectPosition point, IDirectPosition previousPoint,\n IDirectPosition nextPoint, IGeometry geom, boolean left) {\n\n double minDistance = Double.MAX_VALUE;\n IDirectPosition c0;\n IDirectPosition c2;\n\n if (previousPoint != null) {\n c0 = previousPoint;\n c2 = point;\n } else {\n c0 = point;\n c2 = nextPoint;\n }\n IDirectPosition toReturn = null;\n for (IDirectPosition p : geom.coord()) {\n double distance = point.distance2D(p);\n if (distance < minDistance) {\n // Calculation of the angle (c0, p, c2) in a radian value between -pi\n // and pi.\n\n // Calculation of the coordinate of c1-c0 vector\n double x10 = c0.getX() - p.getX();\n double y10 = c0.getY() - p.getY();\n\n // Calculation of the coordinate of c1-c0 vector\n double x12 = c2.getX() - p.getX();\n double y12 = c2.getY() - p.getY();\n\n double angle = Math.atan2(x10 * y12 - y10 * x12, x10 * x12 + y10 * y12);\n\n // angle = angle % (2 * Math.PI);\n if ((left && (angle >= 0)) || (!left && (angle <= 0))) {\n minDistance = distance;\n toReturn = p;\n }\n\n }\n }\n\n return toReturn;\n\n }",
"double direction (IPoint other);",
"godot.wire.Wire.Vector3 getOrigin();",
"void getPosRelPoint(double px, double py, double pz, DVector3 result);",
"public Ndimensional getStartPoint();",
"public abstract Vec2 startPosition();",
"public Location getAdjacentLocation(char direction)\n\t{\n\t\tswitch (direction) {\n\t\t\tcase 'l': // location to left of current\n\t\t\t\treturn new Location(x - 1, y, Block.EMPTY);\n\t\t\tcase 'r': // location to the right of current\n\t\t\t\treturn new Location(x + 1, y, Block.EMPTY);\n\t\t\tcase 'u': // location above current\n\t\t\t\treturn new Location(x, y - 1, Block.EMPTY);\n\t\t\tcase 'd': // location below current, only option left\n\t\t\tdefault:\n\t\t\t\treturn new Location(x, y + 1, Block.EMPTY);\n\t\t}\n\t}",
"public Point[] getForwardCoords(int fromX, int fromY, int toX, int toY)\n {\n int[] coordX = new int[3];\n int[] coordY = new int[3];\n if ((toX < fromX) || ((toX == (size.width - 1)) && (fromX == 0)))\n {\n coordX[0] = toX;\n coordX[1] = toX - 1;\n if (coordX[1] < 0)\n {\n coordX[1] += size.width;\n }\n coordX[2] = toX;\n coordY[0] = (toY + 1) % size.height;\n coordY[1] = toY;\n coordY[2] = toY - 1;\n if (coordY[2] < 0)\n {\n coordY[2] += size.height;\n }\n }\n else if ((toX > fromX) || ((toX == 0) && (fromX == (size.width - 1))))\n {\n coordX[0] = toX;\n coordX[1] = (toX + 1) % size.width;\n coordX[2] = toX;\n coordY[0] = (toY + 1) % size.height;\n coordY[1] = toY;\n coordY[2] = toY - 1;\n if (coordY[2] < 0)\n {\n coordY[2] += size.height;\n }\n }\n else if ((toY < fromY) || ((toY == (size.height - 1)) && (fromY == 0)))\n {\n coordY[0] = toY;\n coordY[1] = toY - 1;\n if (coordY[1] < 0)\n {\n coordY[1] += size.height;\n }\n coordY[2] = toY;\n coordX[0] = (toX + 1) % size.width;\n coordX[1] = toX;\n coordX[2] = toX - 1;\n if (coordX[2] < 0)\n {\n coordX[2] += size.width;\n }\n }\n else if ((toY > fromY) || ((toY == 0) && (fromY == (size.height - 1))))\n {\n coordY[0] = toY;\n coordY[1] = (toY + 1) % size.height;\n coordY[2] = toY;\n coordX[0] = (toX + 1) % size.width;\n coordX[1] = toX;\n coordX[2] = toX - 1;\n if (coordX[2] < 0)\n {\n coordX[2] += size.width;\n }\n }\n Point[] result = new Point[3];\n for (int i = 0; i < 3; i++)\n {\n result[i] = new Point(coordX[i], coordY[i]);\n }\n return(result);\n }",
"public Point nextCorner( Point startingPoint, Point destinationPoint,\n Wall destinationWall ) throws DataException {\n\n if ( this == destinationWall ) {\n return destinationPoint;\n }\n\n if ( null == nextCornerPoint || null == previousCornerPoint ) {\n throw new DataException( \"Cannot find abutting wall.\" );\n }\n\n if ( nextCornerPoint.equals( startingPoint ) ) {\n return previousCornerPoint;\n }\n\n if ( previousCornerPoint.equals( startingPoint ) ) {\n return nextCornerPoint;\n }\n\n// Double destination = startingPoint.distance( destinationPoint );\n Double nextCorner = destinationPoint.distance( nextCornerPoint );\n Double previousCorner = destinationPoint.distance( previousCornerPoint );\n\n// if ( destination <= nextCorner || destination <= previousCorner ) {\n// System.out.println( \". Returning destination \" + destinationPoint.toString() );\n// return destinationPoint;\n// }\n// else\n// if ( nextCorner < previousCorner && ! nextCornerPoint.equals( startingPoint ) ) {\n if ( nextCorner < previousCorner ) {\n return nextCornerPoint;\n }\n else\n// if ( ! previousCornerPoint.equals( startingPoint ) )\n {\n return previousCornerPoint;\n }\n// else {\n// System.out.println( \". Returning next \" + nextCornerPoint.toString() + \" by default.\");\n// return nextCornerPoint;\n// }\n }",
"public Wall nextNear( Point startingPoint, Point destinationPoint, Wall destinationWall ) {\n//System.out.print(\"nextNear. start: \" + startingPoint.toString() + \", end: \" + destinationPoint.toString());\n\n if ( this == destinationWall ) {\n return this;\n }\n\n if ( nextCornerPoint.equals( startingPoint ) ) {\n return previous;\n }\n\n if ( previousCornerPoint.equals( startingPoint ) ) {\n return next;\n }\n\n// Double destination = startingPoint.distance( destinationPoint );\n Double nextCorner = destinationPoint.distance( nextCornerPoint );\n Double previousCorner = destinationPoint.distance( previousCornerPoint );\n\n// System.out.print(\"... Distances - destination: \" + destination.toString()\n// + \", nextCorner: \" + nextCorner.toString()\n// + \", previousCorner: \" + previousCorner.toString());\n//\n// if ( destination <= nextCorner || destination <= previousCorner ) {\n// System.out.println( \". Returning current wall \" + this.toString() );\n// return this;\n// }\n// else\n// if ( nextCorner < previousCorner && ! nextCornerPoint.equals( startingPoint ) ) {\n if ( nextCorner < previousCorner ) {\n// System.out.println( \". Returning next \" + next.toString() );\n return next;\n }\n else\n// if ( ! previousCornerPoint.equals( startingPoint ) )\n {\n// System.out.println( \". Returning previous \" + previous.toString() );\n return previous;\n }\n// else {\n// System.out.println( \". Returning next \" + next.toString() + \" by default.\");\n// return next;\n// }\n }",
"private int[] FindNextDirection(Tile start)\n {\n int[] direction = new int[2];\n Tile up = grid.GetTile(start.getXPlace(), start.getYPlace() - 1);\n Tile right = grid.GetTile(start.getXPlace() + 1, start.getYPlace());\n Tile down = grid.GetTile(start.getXPlace(), start.getYPlace() + 1);\n Tile left = grid.GetTile(start.getXPlace() - 1, start.getYPlace() - 1);\n \n if(start.getType() == up.getType())\n {\n direction[0] = 0;\n direction[1] = -1;\n }\n else if(start.getType() == right.getType())\n {\n direction[0] = 1;\n direction[1] = 0;\n }\n else if(start.getType() == down.getType())\n {\n direction[0] = 0;\n direction[1] = 1;\n }\n else if(start.getType() == left.getType())\n {\n direction[0] = -1;\n direction[1] = 0;\n }\n else\n {\n direction[0] = 2;\n direction[1] = 2;\n System.out.println(\"NO DIRECTION FOUND.\");\n }\n return direction;\n }",
"private Point findNextPosition(int headX, int headY) {\n int nextHeadPositionX;\n int nextHeadPositionY;\n\n\n switch (direction) {\n case \"left\":\n nextHeadPositionX = headX - 1;\n nextHeadPositionY = headY;\n\n break;\n case \"right\":\n nextHeadPositionX = headX + 1;\n nextHeadPositionY = headY;\n\n break;\n case \"down\":\n nextHeadPositionY = headY + 1;\n nextHeadPositionX = headX;\n\n break;\n case \"up\":\n nextHeadPositionY = headY - 1;\n nextHeadPositionX = headX;\n\n break;\n default:\n return null;\n }\n\n return new Point(nextHeadPositionX, nextHeadPositionY);\n }",
"private int getDistanceIndex(int point) {\n switch (point) {\n case 0:\n return -1; /* no start for point 0 */\n case 1:\n return 0;\n default:\n int n = point - 1;\n return ((n * n) + n) / 2;\n }\n }",
"protected abstract void calcOrigin();",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"@Override\n public Point peekNextPosition() {\n int nextX = (current.x + 1) % 3;\n int nextY = (current.y + 1) % 3;\n// System.out.println(\"Next X: \" + nextX);\n// System.out.println(\"Next Y: \" + nextY);\n boolean wrapsInX = nextX < current.x;\n boolean wrapsInY = nextY < current.y;\n boolean singleWrap = wrapsInX != wrapsInY;\n if (singleWrap) {\n return invalidPosition();\n } else {\n return new Point(nextX, nextY);\n }\n }",
"private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }",
"public static String findDirection(XYLocation initial, XYLocation goingTo) {\n\t\tfloat goingToX = goingTo.getX();\n\t\tfloat goingToY = goingTo.getY();\n\t\tfloat initialX = initial.getX();\n\t\tfloat inititalY = initial.getY();\n\t\tfloat theta = (float) Math.atan2(goingToY - inititalY, goingToX - initialX);\n\t\t\n\t\tif (Math.abs(theta) <= oneEighthPI && Math.abs(theta) >= negOneEighthPI) {\n\t\t\t\treturn \"East\";\n\t\t\t} else if (theta > oneEighthPI && theta < threeEighthsPI) {\n\t\t\t\treturn \"SouthEast\";\n\t\t\t} else if (theta > negThreeEighthsPI && theta < negOneEighthPI) {\n\t\t\t\treturn \"NorthEast\";\n\t\t\t} else if (theta > threeEighthsPI && theta < fiveEighthsPI) {\n\t\t\t\treturn \"South\";\n\t\t\t} else if (theta > negFiveEighthsPI && theta < negThreeEighthsPI){\n\t\t\t\treturn \"North\";\n\t\t\t} else if (theta > fiveEighthsPI && theta < sevenEighthsPI) {\n\t\t\t\treturn \"SouthWest\";\n\t\t\t} else if (theta > negSevenEighthsPI && theta < negFiveEighthsPI) {\n\t\t\t\treturn \"NorthWest\";\n\t\t\t} else {\n\t\t\t\treturn \"West\";\n\t\t\t}\n\t}",
"public int getShipIndex(Point point) {\n\t\tPoint tempPoint;\n\t\tif (startPos.x == endPos.x) {\n\t\t\t// must be horizontal\n\t\t\tfor (int i = startPos.y , j = 0; i <= endPos.y ; i++, j++) {\n\t\t\t\ttempPoint = new Point(startPos.x, i);\n\t\t\t\tif (tempPoint.equals(point))\n\t\t\t\t\treturn j;\n\t\t\t}\n\t\t}\n\t\telse if (startPos.y == endPos.y) {\n\t\t\t// must be vertical\n\t\t\tfor (int i = startPos.x, j = 0; i <= endPos.x ; i++, j++) {\n\t\t\t\ttempPoint = new Point(i , startPos.y);\n\t\t\t\tif (tempPoint.equals(point))\n\t\t\t\t\treturn j;\n\t\t\t}\n\t\t}\n\t\telse { // must be diagonal \n\t\t\tfor (int i = startPos.x, j = startPos.y , z = 0; i <= endPos.x ; i++, j++, z++) {\n\t\t\t\ttempPoint = new Point(i , j);\n\t\t\t\tif (tempPoint.equals(point))\n\t\t\t\t\treturn z;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}",
"public Point2D getOrigin() {\n Point2D resultOrigin;\n resultOrigin = new Point2D(this.origin.getX(), this.origin.getY());\n return resultOrigin;\n\n }",
"public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}",
"Pair<Integer, Integer> getInitialPosition();",
"public Coordinate getMoveTo();",
"public static int direction(float x, float y){\n float [][] compass = {{0,1},{1,0},{0,-1},{-1,0}};\r\n x=Math.abs(x);\r\n y=Math.abs(y);\r\n float max=0.0f;\r\n int best_di=-1;\r\n for(int i=0; i<4; i++){\r\n float dot_product = x*compass[i][0]+y*compass[i][1];\r\n System.out.println(dot_product);\r\n\r\n if(dot_product>max){\r\n max=dot_product; \r\n best_di=i;\r\n }\r\n }\r\n return best_di;\r\n }",
"public Point2D getLocation();",
"IntPoint getLocation();",
"public Point getOrigin() {\n return origin;\n }",
"public double direction(){\n return Math.atan2(this.y, this.x);\n }",
"public Point[] nearestPair() {\n\t\t\tPoint[] Answer = new Point[2];\n\t\t\tif (this.size<2)\treturn null; //step 1\n\t\t\tif (this.size==2){\n\t\t\t\tAnswer[0]=this.minx.getData();\n\t\t\t\tAnswer[1]=this.maxx.getData();\n\t\t\t\treturn Answer;\t\t\t\n\t\t\t}\n\t\t\tdouble MinDistance=-1; // for sure it will be change in the next section, just for avoid warrning.\n\t\t\tdouble MinDistanceInStrip=-1;\n\t\t\tPoint[] MinPointsLeft = new Point[2];\n\t\t\tPoint[] MinPointsRight = new Point[2];\n\t\t\tPoint[] MinPointsInStrip = new Point[2]; // around the median\n\t\t\tboolean LargestAxis = getLargestAxis(); //step 2\n\t\t\tContainer median = getMedian(LargestAxis); //step 3\n\t\t\tif (LargestAxis){// step 4 - calling the recursive function nearestPairRec\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.minx.getData().getX(), median.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextX().getData().getX(), this.maxx.getData().getX(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(this.miny.getData().getY(), median.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(median.getNextY().getData().getY(), this.maxy.getData().getY(),LargestAxis), LargestAxis);\n\t\t\t}\n\t\t\t//step 5\n\t\t\tif (MinPointsLeft!=null && MinPointsRight!=null){\n\t\t\t\tif (Distance(MinPointsLeft[0], MinPointsLeft[1]) > Distance(MinPointsRight[0], MinPointsRight[1])){\n\t\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\t\tAnswer = MinPointsRight;\n\t\t\t\t}else{\n\t\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (MinPointsLeft!=null) {\n\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t}\n\t\t\telse if (MinPointsRight!=null){\n\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\tAnswer = MinPointsRight;\n\t\t\t}\n\t\t\t//step 6 - nearest point around the median\n\t\t\tif (MinDistance==-1) MinDistance=0;\n\t\t\tMinPointsInStrip = nearestPairInStrip(median, MinDistance*2, LargestAxis);\n\t\t\tif (MinPointsInStrip != null){\n\t\t\t\tMinDistanceInStrip = Distance(MinPointsInStrip[0], MinPointsInStrip[1]);\n\t\t\t\tif (MinDistanceInStrip < MinDistance) return MinPointsInStrip;\n\t\t\t}\n\t\t\treturn Answer;\n\t\t}",
"Point getPosition();",
"Point getPosition();",
"MazePoint getExpectedMovementPosition(MazePoint point, Direction dir);",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"public Point getPoint(Point start, Direction d)\n \t{\n \t\tPoint end = new Point();\n \t\tswitch(d)\n \t\t{\n \t\tcase up:\n \t\t\tend.y = start.y + 1; //up\n \t\t\tend.x = start.x; //none\n \t\t\tbreak;\n \t\tcase down:\n \t\t\tend.y = start.y - 1; //down\n \t\t\tend.x = start.x; //none\n \t\t\tbreak;\n \t\tcase left:\n \t\t\tend.y = start.y; //none\n \t\t\tend.x = start.x - 1; //left\n \t\t\tbreak;\n \t\tcase right:\n \t\t\tend.y = start.y; //none\n \t\t\tend.x = start.x + 1; //right\n \t\t\tbreak;\n \t\tcase topleft:\n \t\t\tend.y = start.y + 1; //up\n \t\t\tend.x = start.x - 1; //left\n \t\t\tbreak;\n \t\tcase botleft:\n \t\t\tend.y = start.y - 1; //down\n \t\t\tend.x = start.x - 1; //left\n \t\t\tbreak;\n \t\tcase topright:\n \t\t\tend.y = start.y + 1; //up\n \t\t\tend.x = start.x + 1; //right\n \t\t\tbreak;\n \t\tcase botright:\n \t\t\tend.y = start.y - 1; //down\n \t\t\tend.x = start.x + 1; //right\n \t\t\tbreak;\n \t\tcase none:\n \t\t\tend.y = start.y; //none\n \t\t\tend.x = start.x; //none\n \t\t}\n \t\t//might want to check if the point contains negative values\n \t\treturn end;\n \t}",
"public Point getPoint(final Point otherPoint)\n\t\t{\n\n\t\t\t//to get the edge point on the shape\n\t\t\tif(shape.equals(\"poly\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn getCentrePoint();\n\n\t\t\tfinal Point cp = getCentrePoint();\n\t\t\tfinal int rise = otherPoint.y-cp.y;\n\t\t\tfinal int run = otherPoint.x-cp.x;\n\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tif(rise == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.x >= cp.x)\n\t\t\t\t\t\treturn new Point(coords[0]+coords[2]+4,coords[1]+(coords[3]/2));\n\t\t\t\t\treturn new Point(coords[0]-2,coords[1]+(coords[3]/2));\n\t\t\t\t}\n\t\t\t\telse if(run == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.y >= cp.y)\n\t\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]+coords[3]+4);\n\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]-2);\n\t\t\t\t}else\n\t\t\t\t{\n\n\t\t\t\t\tfinal double m = (double)rise / (double)run;\n\t\t\t\t\tfinal double mx = (double)run / (double)rise;\n\n\t\t\t\t\tif(otherPoint.x >= cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\n\t\t\t\t\t}else if(otherPoint.x < cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else if(otherPoint.x < cp.x)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}else if(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tif(rise != 0 && run != 0)\n\t\t\t\t{\n\t\t\t\t\tfinal double ratio = (coords[2] / Math.sqrt(rise*rise+run*run));\n\n\t\t\t\t\treturn new Point(cp.x+(int)(run*ratio),cp.y+(int)(rise*ratio));\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif(rise == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(run > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x+coords[2],cp.y);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x-coords[2],cp.y);\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(rise > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y+coords[2]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y-coords[2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t\t//return cp;\n\t\t}",
"public GeoPointND getStartPoint();",
"private static final int[] getPoint(int point) {\n int[] ret = new int[2];\n if (point >= firstPoint && point <= endPoint) {\n ret = getPoint(ruteData[point + 2]);//ruteData[point + 2]);\n }\n return ret;\n }",
"private Point findFront(Point[] points) {\n\t\t// Loop through the passed points.\n\t\tdouble[] dists = new double[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t// Get outer-loop point.\n\t\t\tPoint a = points[i];\n\t\t\t\n\t\t\t// Loop through rest of points.\n\t\t\tfor (int k = 0; k < 3; k++) {\n\t\t\t\t// Continue if current outer.\n\t\t\t\tif (i == k) continue;\n\t\t\t\t\n\t\t\t\t// Get inner-loop point.\n\t\t\t\tPoint b = points[k];\n\t\t\t\t\n\t\t\t\t// Add distance between out and inner.\n\t\t\t\tdists[i] += Math.sqrt(\n\t\t\t\t\tMath.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Prepare index and largest holder.\n\t\tint index = 0;\n\t\tdouble largest = 0;\n\t\t\n\t\t// Loop through the found distances.\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t// Skip if dist is lower than largest.\n\t\t\tif (dists[i] < largest) continue;\n\t\t\t\n\t\t\t// Save the index and largest value.\n\t\t\tindex = i;\n\t\t\tlargest = dists[i];\n\t\t}\n\t\t\n\t\t// Return the largest point index.\n\t\treturn points[index];\n\t}",
"Point3D getRightLowerFrontCorner();",
"private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }",
"double[] getOrigin();",
"private static List<Point> possibleNextPos(Point currPos, Point coord1, Point coord2, double buildingSideGrad, Point buildingCentre){\r\n\t\tvar coord1Lat = coord1.latitude();\r\n\t\tvar coord1Lon = coord1.longitude();\r\n\t\tvar coord2Lat = coord2.latitude();\r\n\t\tvar coord2Lon = coord2.longitude();\r\n\t\t\r\n\t\tvar currPosLon = currPos.longitude();\r\n\t\tvar currPosLat = currPos.latitude();\r\n\t\t\r\n\t\tvar buildingLon = buildingCentre.longitude();\r\n\t\tvar buildingLat = buildingCentre.latitude();\r\n\t\t\r\n\t\tvar dir1 = computeDir(coord1, coord2); //in the case that the drone is moving in the direction coord1 to coord2\r\n\t\tvar nextPosTemp1 = nextPos(dir1, currPos); //the temporary next position if the drone moves in dir1\r\n\t\t\r\n\t\tvar dir2 = computeDir(coord2, coord1); //in the case that the drone is moving in the direction coord2 to coord1\r\n\t\tvar nextPosTemp2 = nextPos(dir2, currPos); //the temporary next position if the drone moves in dir2 \r\n\t\t\r\n\t\tvar possibleNextPos = new ArrayList<Point>();\r\n\t\t\r\n\t\tif(Math.abs(buildingSideGrad)>=1) { //in this case, longitudes of building centre and drone current position are compared\r\n\t\t\t//coord1 to coord2 scenario\r\n\t\t\tif((coord1Lat>coord2Lat && buildingLon<currPosLon) || (coord1Lat<coord2Lat && buildingLon>currPosLon)) {\r\n\t\t\t\tdir1 = (dir1+10)%360; //angle increased such that drone doesn't fly over side of building\r\n\t\t\t\tnextPosTemp1 = nextPos(dir1, currPos);\r\n\t\t\t}\r\n\t\t\t//coord2 to coord1 scenario\r\n\t\t\tif((coord1Lat<coord2Lat && buildingLon<currPosLon) || (coord1Lat>coord2Lat && buildingLon>currPosLon)) {\r\n\t\t\t\tdir2 = (dir2+10)%360;\r\n\t\t\t\tnextPosTemp2 = nextPos(dir2, currPos);\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\telse { //in this case, latitudes of building centre and drone current position are compared\r\n\t\t\tif((coord1Lon>coord2Lon && buildingLat>currPosLat) || (coord1Lon<coord2Lon && buildingLat<currPosLat)) {\r\n\t\t\t\tdir1 = (dir1+10)%360; \r\n\t\t\t\tnextPosTemp1 = nextPos(dir1, currPos);\r\n\t\t\t}\r\n\r\n\t\t\tif((coord1Lon<coord2Lon && buildingLat>currPosLat) || (coord1Lon>coord2Lon && buildingLat<currPosLat)) {\r\n\t\t\t\tdir2 = (dir2+10)%360;\r\n\t\t\t\tnextPosTemp2 = nextPos(dir2, currPos);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tpossibleNextPos.add(nextPosTemp1);\r\n\t\tpossibleNextPos.add(nextPosTemp2);\r\n\t\t\r\n\t\treturn possibleNextPos;\r\n\t}",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }",
"public V getOriginator() {\r\n\r\n\t\tV result = null;\r\n\t\tif ((counter <= links.size()) && (counter > 0)) {\r\n\t\t\tresult = predNodes.get(counter - 1);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"Square getCurrentPosition();",
"private Queue<Position> pathToClosest(MyAgentState state, Position start, int goal) {\n\t\tQueue<Position> frontier = new LinkedList<Position>();\n\t\tSet<String> enqueued = new HashSet<String>();\n\t\tMap<Position, Position> preceedes = new HashMap<Position, Position>();\n\t\tfrontier.add(start);\n\t\tenqueued.add(start.toString());\n\n\t\twhile (!frontier.isEmpty()) {\n\t\t\tPosition pos = frontier.remove();\n\t\t\tif (state.getTileData(pos) == goal) {\n\t\t\t\treturn toQueue(preceedes, pos, start);\n\t\t\t}\n\t\t\t\n\t\t\tfor (Position neighbour : pos.neighbours()) {\n\t\t\t\tif (!enqueued.contains(neighbour.toString()) && state.getTileData(neighbour) != state.WALL) {\n\t\t\t\t\tpreceedes.put(neighbour, pos);\n\t\t\t\t\tfrontier.add(neighbour);\n\t\t\t\t\tenqueued.add(neighbour.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public GJPoint2D firstPoint() {\n\t\tif (this.segments.isEmpty()) \n\t\t\treturn null;\n\t\treturn this.segments.get(0).controlPoints()[0];\n\t}",
"public Rectangle getNextWaypoint(Vector2 start, Vector2 destinatin, Vector2 offset) {\r\n if(this.grid.contains(start, offset)) {\r\n if(this.grid.contains(destinatin, offset)) {\r\n // Get Start Rectangle with scene offset\r\n Rectangle current = this.grid.getRectAtPosition(start,offset);\r\n Rectangle destination = grid.getRectAtPosition(destinatin, offset);\r\n Rectangle nextRect = null;\r\n int nextDist = 0;\r\n for(Rectangle refRect : this.grid.getRectangles()) {\r\n if(!refRect.isSame(current)) {\r\n int startX = current.getX();\r\n int startY = current.getY();\r\n int refX = refRect.getX() + offset.getX();\r\n int refY = refRect.getY() + offset.getY();\r\n int xA = (refX - startX) / 48;\r\n int yA = (refY - startY) / 48;\r\n\r\n if(xA <= 1 && xA >= -1 && yA <= 1 && yA >= -1) {\r\n int x = Math.abs((destination.getX() - refX) / 48);\r\n int y = Math.abs((destination.getY() - refY) / 48);\r\n int dist = x + y;\r\n\r\n if(nextRect == null) {\r\n nextDist = dist;\r\n nextRect = new Rectangle(refX, refY, refRect.getWidth(), refRect.getHeight());\r\n }\r\n else {\r\n if(dist < nextDist) {\r\n nextDist = nextDist;\r\n nextRect = new Rectangle(refX, refY, refRect.getWidth(), refRect.getHeight());\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if(nextRect!= null) {\r\n return nextRect;\r\n }\r\n }\r\n }\r\n return null;\r\n }",
"public Point getPosition();",
"public Coordinate getPosition();",
"public Position origin(Position ep) throws InvalidPositionException;",
"public NavArc findIncoming(NavVertex origin) {\r\n Validate.nonNull(origin, \"origin\");\r\n if (origin == this) {\r\n throw new IllegalArgumentException(\"origin not distinct\");\r\n }\r\n\r\n for (NavArc arc : incoming) {\r\n if (arc.getFromVertex() == origin) {\r\n return arc;\r\n }\r\n }\r\n return null;\r\n }",
"private Direction getNextDirection(int xDiff, int yDiff) {\n \n // figure out the direction the footman needs to move in\n if(xDiff == 1 && yDiff == 1)\n {\n return Direction.SOUTHEAST;\n }\n else if(xDiff == 1 && yDiff == 0)\n {\n return Direction.EAST;\n }\n else if(xDiff == 1 && yDiff == -1)\n {\n return Direction.NORTHEAST;\n }\n else if(xDiff == 0 && yDiff == 1)\n {\n return Direction.SOUTH;\n }\n else if(xDiff == 0 && yDiff == -1)\n {\n return Direction.NORTH;\n }\n else if(xDiff == -1 && yDiff == 1)\n {\n return Direction.SOUTHWEST;\n }\n else if(xDiff == -1 && yDiff == 0)\n {\n return Direction.WEST;\n }\n else if(xDiff == -1 && yDiff == -1)\n {\n return Direction.NORTHWEST;\n }\n \n System.err.println(\"Invalid path. Could not determine direction\");\n return null;\n }",
"Point3D getLeftUpperBackCorner();",
"public Bearing getLeftNeighbour() {\n return this == N || this == S ? W : N;\n }",
"int toIndex(int x, int y);",
"public Point getLocation();",
"public Point getEndPoint(){\r\n\t\treturn new Point( this.x, this.y, this.z );\r\n\t}",
"public float getDirection();",
"private Checkpoint FindNextCheckpoint(Tile start, int[] dir)\n {\n Tile next = null;\n Checkpoint check = null;\n \n // Boolean to decide if next checkpoint is found\n boolean found = false;\n int counter = 1;\n \n while(!found)\n {\n if(start.getType() != grid.GetTile(start.getXPlace() + dir[0] * counter,\n start.getYPlace() + dir[1] * counter).getType())\n {\n // Make turn in the tile prior to the one we just checked. Move counter\n // back 1.\n found = true;\n counter -= 1;\n next = grid.GetTile(start.getXPlace() + dir[0] * counter,\n start.getYPlace() + dir[1] * counter);\n }\n counter++;\n } \n check = new Checkpoint(next, dir[0], dir[1]);\n return check;\n }",
"int getDirection();",
"public Direction getDirection(int x, int y)\n {\n GUIDebugger.clearDebugDraw();\n GUIDebugger.DrawObjDebug(GObj.GREEN, x, y);\n if(width == 0 || height == 0)\n {\n height = raw.height;\n width = raw.width;\n boardCells = new int[width][height];\n }\n\n bFind = false;\n idWave++;\n currIter = 0;\n endNods = new ArrayList<WaveNode>();\n firstNods = new ArrayList<WaveNode>();\n boardCells[x][y] = idWave;\n lastNods = new ArrayList<WaveNode>();\n lastNods.add(new WaveNode(x, y));\n if(raw.getCell(0,x,y) == GObj.FREE)\n {\n evaluateBlast = 0;\n }\n else\n {\n evaluateBlast = 0.01;\n }\n int i = 0;\n while (lastNods.size() > 0 && i < Forecast.FORECAST_ITER - 5 && !bFind)\n {\n nextStep();\n i++;\n }\n if(firstNods.size()>0)\n {\n WaveNode max = firstNods.get(0);\n for(WaveNode node:firstNods)\n {\n if(node.totalScore > max.totalScore)\n {\n max = node;\n }\n }\n score = max.totalScore;\n switch (max.direction)\n {\n case 0:\n return Direction.RIGHT;\n case 1:\n return Direction.DOWN;\n case 2:\n return Direction.LEFT;\n case 3:\n return Direction.UP;\n }\n }\n return Direction.ACT;\n }",
"public Point nextRoom() {\n Point nr;\n switch (direction) {\n case NORTH:\n nr = new Point(0, -1);\n break;\n case SOUTH:\n nr = new Point(0, 1);\n break;\n case EAST:\n nr = new Point(1, 0);\n break;\n case WEST:\n nr = new Point(-1, 0);\n break;\n default:\n nr = new Point(0, 0);\n break;\n }\n return nr;\n }",
"public int getDirection();",
"@Override\n public Point getOrigin() {\n return origin;\n }",
"static double distanceToOrigin ( Posn p ) {\n\t// return ... p.x ... p.y ... ;\n\treturn Math.sqrt(Math.pow(p.x,2) + Math.pow(p.y,2)) ;\n }",
"protected double xPixelToPosition(double pixel) {\r\n// double axisV = xPositionToPixel(originX);\r\n// return (pixel - axisV) * (maxX - minX) / (double) getWidth();\r\n return minX + pixel * (maxX - minX) / getWidth();\r\n }",
"private Position adjacentPosition(Direction direction, GameObject gameObject) {\n\n switch (direction) {\n case UP:\n return new Position(gameObject.getPosition().getCol(), gameObject.getPosition().getRow() - 1);\n case DOWN:\n return new Position(gameObject.getPosition().getCol(), gameObject.getPosition().getRow() + 1);\n case LEFT:\n return new Position(gameObject.getPosition().getCol() - 1, gameObject.getPosition().getRow());\n case RIGHT:\n return new Position(gameObject.getPosition().getCol() + 1, gameObject.getPosition().getRow());\n default:\n System.out.println(\"something very bad happened!\");\n return null;\n }\n }",
"private Point findLeadingPt() {\n\t\tPoint2D.Double pt1 = new Point2D.Double(xs[0], ys[0]);\n\t\tPoint2D.Double pt2 = new Point2D.Double(xs[1], ys[1]);\n\t\tPoint2D.Double pt3 = new Point2D.Double(xs[2], ys[2]);\n\n\t\tPoint leadingPt = new Point((int) pt2.getX(), (int) pt2.getY());\n\t\tdouble smallestRadius = this.findRadiusFromChordAndPt(pt1, pt3, pt2);\n\n\t\tfor (int i = 2; i < xs.length - 1; i++) {\n\t\t\tPoint2D.Double ptA = new Point2D.Double(xs[i - 1], ys[i - 1]);\n\t\t\tPoint2D.Double ptC = new Point2D.Double(xs[i], ys[i]);\n\t\t\tPoint2D.Double ptB = new Point2D.Double(xs[i + 1], ys[i + 1]);\n\t\t\tif (smallestRadius > this.findRadiusFromChordAndPt(ptA, ptB, ptC)) {\n\t\t\t\tsmallestRadius = this.findRadiusFromChordAndPt(ptA, ptB, ptC);\n\t\t\t\tleadingPt = new Point((int) ptC.getX(), (int) ptC.getY());\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * double yArrow = Controller.flowArrow.findCenterOfMass().getY(); for (int i =\n\t\t * 0; i < xs.length; i++) { if (ys[i] == yArrow) { leadingPt = new Point((int)\n\t\t * xs[i], (int) ys[i]); } }\n\t\t */\n\t\treturn leadingPt;\n\t}",
"public int determineDirection(Point p0, Point p1) {\n \tif (p0.y == p1.y && ((p0.x > p1.x && !(p0.x == map[0].length - 1 && p1.x == 0)) \n \t\t\t|| (p1.x == map[0].length - 1 && p0.x == 0))) { \n \t\treturn 4; }\n \tif (p0.y == p1.y ) { \n \t\treturn 6; }\n \tif (p0.x == p1.x && ((p0.y > p1.y && !(p0.y == map.length - 1 && p1.y == 0))\n \t\t\t|| (p1.y == map.length - 1 && p0.y == 0)) ) { \n \t\treturn 8; }\n \treturn 2;\n }",
"public Vector getLocation();",
"public GeoPoint getStart(){\n return getOrigin();\n }",
"public Vector2D getPosition ();",
"public Point2D getOrigin() {\r\n return new Point2D.Double(originX, originY);\r\n }",
"Pair<Vertex, Double> closestVertexToPath(Loc pos);",
"private Point[] nearestPairRec(Point[] range, boolean axis) {\n\t\t\tPoint[] Answer = new Point[2];\n\t\t\tif (range.length < 4) return nearestPair3Points(range);\n\t\t\tPoint[] MinPointsLeft = new Point[2];\n\t\t\tPoint[] MinPointsRight = new Point[2];\n\t\t\tPoint[] MinPointsInStrip = new Point[2];\n\t\t\tdouble MinDistance = -1; //it will be change for sure, because we pass the array only if it containes 4 points and above.\n\t\t\tdouble MinDistanceInStrip;\n\t\t\t//step 4\n\t\t\tif (axis){\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(range[0].getX(), range[(range.length)/2].getX(), axis), axis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(range[((range.length)/2)+1].getX(), range[range.length-1].getX() ,axis), axis);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tMinPointsLeft = nearestPairRec(getPointsInRangeRegAxis(range[0].getY(), range[(range.length)/2].getY(), axis), axis);\n\t\t\t\tMinPointsRight =nearestPairRec(getPointsInRangeRegAxis(range[((range.length)/2)+1].getY(), range[range.length-1].getY() ,axis), axis);\n\t\t\t}\n\t\t\t//step 5\n\t\t\tif (MinPointsLeft!=null && MinPointsRight!=null){\n\t\t\t\tif (Distance(MinPointsLeft[0], MinPointsLeft[1]) > Distance(MinPointsRight[0], MinPointsRight[1])){\n\t\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\t\tAnswer = MinPointsRight;\n\t\t\t\t}else{\n\t\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t\t}\n\t\t\t}else if (MinPointsLeft!=null && MinPointsRight==null) {\n\t\t\t\tMinDistance = Distance(MinPointsLeft[0], MinPointsLeft[1]);\n\t\t\t\tAnswer = MinPointsLeft;\n\t\t\t}else if (MinPointsRight!=null && MinPointsLeft==null){\n\t\t\t\tMinDistance = Distance(MinPointsRight[0], MinPointsRight[1]);\n\t\t\t\tAnswer = MinPointsRight;\n\t\t\t}\n\t\t\t//step 6 find the nearest point around the median\n\t\t\tint upper;\n\t\t\tint lower;\n\t\t\tif (MinDistance==-1) MinDistance = 0;\n\t\t\tif (axis){\n\t\t\t\tupper = (int) (range[(range.length)/2].getX()+MinDistance);\n\t\t\t\tlower = (int) (range[(range.length)/2].getX()-MinDistance);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tupper = (int) (range[(range.length)/2].getY()+MinDistance);\n\t\t\t\tlower = (int) (range[(range.length)/2].getY()-MinDistance);\n\t\t\t}\n\t\t\trange = getPointsInRangeOppAxis(lower, upper, axis);\n\t\t\tif (range.length>=2) MinPointsInStrip = nearestPointInArray(range);\n\t\t\tif (MinPointsInStrip[0]!=null){\n\t\t\t\tMinDistanceInStrip = Distance(MinPointsInStrip[0], MinPointsInStrip[1]);\n\t\t\t\tif (MinDistanceInStrip < MinDistance) return MinPointsInStrip;\n\t\t\t}\n\t\t\treturn Answer;\n\t\t}",
"public Point getStartPoint() {\n // First, this is Settler's location\n UnitList units = unitService.findByClassUuid(Settlers.CLASS_UUID);\n if (units != null && !units.isEmpty()) {\n return units.getAny().getLocation();\n }\n\n // If Settlers were destroyed then it is the first city's location\n City city = cityService.getAny();\n if (city != null) {\n return city.getLocation();\n }\n\n // If there is no cities, then the first Unit's location\n AbstractUnit unit = unitService.getAny();\n if (unit != null) {\n return unit.getLocation();\n }\n\n // If there is no units then (0, 0)\n return new Point(0, 0);\n }",
"public double getDirectionMove();",
"public Vec4 expectDirection() {\n if(isPoint()) throw new IllegalArgumentException(\"expected direction: \" + this);\n return this;\n }",
"public Square step() {\n // TODO\n \tSquare c = exploreList.getNext();\n \tSquare realSquare = sea.getSea()[c.getRow()][c.getCol()];\n // check for if we are visited, if so return to skip processing current square\n \tif(realSquare.isVisited()) {\n \t\treturn c;\n \t\t\n \t}\n \trealSquare.setVisited();\n \tfor(Square neighs : sea.getAdjacentArea(realSquare)) {\n \t\tif(neighs.getPrevious() ==null) {\n \n \t\tneighs.setPrevious(c);\n \t\texploreList.add(neighs);\n \t\t}\n\t\telse {\n\t\tif(!neighs.isVisited()) {\n \t\t\tSquare n = new Square(neighs.getRow(), neighs.getCol(), neighs.getType());\n \t\t\tn.setPrevious(c);\n \t\t\texploreList.add(n);\n}\n\t\t}\n \t}\n \treturn c;\n\n }",
"godot.wire.Wire.Vector2OrBuilder getOriginOrBuilder();",
"public Point findSpace(){\r\n Point toReturn = new Point(-1, -1);\r\n for (int i = 0; i<puzzleSize; i++){\r\n for (int j = 0; j<puzzleSize; j++){\r\n if (this.state[i][j] == 0)\r\n toReturn.setLocation(i,j);\r\n }\r\n }\r\n return toReturn;\r\n }",
"private Point findBack(Point[] points) {\n\t\t// Find the first point.\n\t\tPoint a = this.points[0];\n\t\tif (a == this.front) {\n\t\t\ta = this.points[1];\n\t\t}\n\t\t\n\t\t// Find the second point.\n\t\tPoint b = this.points[1];\n\t\tif (b == this.front || b == a) {\n\t\t\tb = this.points[2];\n\t\t}\n\t\t\n\t\t// Create point and set x, and y positions.\n\t\tPoint center = new Point();\n\t\tcenter.x = (a.x + b.x) / 2;\n\t\tcenter.y = (a.y + b.y) / 2;\n\t\t\n\t\t// Return the found center point.\n\t\treturn center;\n\t}",
"PositionVector getWaypoint(int index);",
"public MapElement getNextElement(Direction dir) {\n //System.out.println(\"Le lett kérve a következő palyaelem.\");\n return neighbours[dir.getValue()];\n }",
"public Vector3d getOrigin() { return mOrigin; }",
"public abstract Point adjPoint(Point p, Direction d);",
"@Override\n\tpublic WB_Point nextPoint();",
"public int getYOrigin() {\n return ic.getYOrigin();\n }",
"public static Direction getDirection(Point start, Point end)\n \t{\n \t\tif( start.x - end.x > 0) //left\n \t\t{\n \t\t\tif (start.y - end.y < 0) //up\n \t\t\t\treturn Board.Direction.topleft;\n \t\t\telse if (start.y - end.y > 0) //down\n \t\t\t\treturn Board.Direction.botleft;\n \t\t\telse //same .y\n \t\t\t\treturn Board.Direction.left;\n \t\t}\n \t\telse if ( start.x - end.x < 0) //right\n \t\t{\n \t\t\tif (start.y - end.y < 0) //up\n \t\t\t\treturn Board.Direction.topright;\n \t\t\telse if (start.y - end.y > 0) //down\n \t\t\t\treturn Board.Direction.botright;\n \t\t\telse //same .y\n \t\t\t\treturn Board.Direction.right;\n \t\t}\n \t\telse // no x movement (only up or down)\n \t\t{\n \t\t\tif(start.y - end.y < 0)\n \t\t\t\treturn Board.Direction.up;\n \t\t\tif(start.y - end.y > 0)\n \t\t\t\treturn Board.Direction.down;\n \t\t\telse\n \t\t\t\treturn Board.Direction.none; //no movement\n \t\t}\n \t}",
"Vector2 getPosition();",
"public Point getLowerPoint() {\n return lower;\n }",
"private Point extractVectorFromAngle(int arg) {\n double theta = Math.toRadians( 2* (double)arg );\n double dx = Cell.move_dist * Math.cos(theta);\n double dy = Cell.move_dist * Math.sin(theta);\n return new Point(dx, dy);\n }",
"Vector getPos();",
"private int getDist(int x, int y, int direction) {\n\t\tint Spaces = 0;\n\t\tif(direction == 0)\n\t\t{\n\t\t\t\n\t\t\tPoint nextPoint = new Point(x, y++);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y++);\n\t\t\t}\n\t\t}\n\t\tif(direction == 1)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x++, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x++, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 2)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x--, y);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x--, y);\n\t\t\t}\n\t\t}\n\t\tif(direction == 3)\n\t\t{\n\t\t\tPoint nextPoint = new Point(x, y--);\n\t\t\twhile(totalMap.isFreeSpace(nextPoint) && totalMap.isInsideGrid(nextPoint.x, nextPoint.y))\n\t\t\t{\n\t\t\t\tSpaces++;\n\t\t\t\tnextPoint.setLocation(x, y--);\n\t\t\t}\n\t\t}\n\t\treturn Spaces;\n\t}"
] | [
"0.63007784",
"0.615597",
"0.60085016",
"0.5906338",
"0.5901692",
"0.58962554",
"0.5870658",
"0.5857652",
"0.5820388",
"0.57008475",
"0.56598586",
"0.56204796",
"0.56135553",
"0.5610844",
"0.5610821",
"0.55099785",
"0.54704624",
"0.5462609",
"0.5436628",
"0.54349697",
"0.5428855",
"0.54235566",
"0.54144657",
"0.54105324",
"0.54059476",
"0.5399062",
"0.53901047",
"0.53841966",
"0.5374006",
"0.53686327",
"0.53633237",
"0.534874",
"0.5347601",
"0.5332649",
"0.5332649",
"0.53159565",
"0.52910185",
"0.5287962",
"0.5286418",
"0.5271614",
"0.5268948",
"0.5254179",
"0.5252146",
"0.5238283",
"0.5220289",
"0.5216366",
"0.5206369",
"0.5199015",
"0.51984507",
"0.51959115",
"0.5190329",
"0.51849514",
"0.5182487",
"0.517032",
"0.51613456",
"0.5151905",
"0.51509327",
"0.51484334",
"0.51410484",
"0.51340586",
"0.5122724",
"0.51221573",
"0.5120238",
"0.5117098",
"0.5111287",
"0.51104766",
"0.51001203",
"0.509726",
"0.5095029",
"0.5081548",
"0.50802356",
"0.50730103",
"0.50707054",
"0.5067202",
"0.5065688",
"0.50651336",
"0.5061507",
"0.5060078",
"0.50573754",
"0.5047994",
"0.50472045",
"0.5041615",
"0.50392807",
"0.5032673",
"0.50209117",
"0.50206256",
"0.5018281",
"0.501737",
"0.5014042",
"0.5013613",
"0.5006653",
"0.49993253",
"0.49918315",
"0.49893236",
"0.49867103",
"0.49864632",
"0.4984521",
"0.49811038",
"0.49763775",
"0.49741015"
] | 0.6243864 | 1 |
TODO Autogenerated method stub | @Override
public void startDocument() throws SAXException {
super.startDocument();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void endDocument() throws SAXException {
super.endDocument();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
super.startElement(uri, localName, qName, attributes);
tag = qName;
sb.delete(0, sb.length());
if (qName.equals("entry")) {
isFeed = true;
commentsInfo = new CommentsInfo();
} else if (qName.equals("feed")) {
isFeed = false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void endElement(String uri, String localName, String qName)
throws SAXException {
super.endElement(uri, localName, qName);
tag = "";
if (qName.equals("entry")) {
list.add(commentsInfo);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void characters(char[] ch, int start, int length)
throws SAXException {
super.characters(ch, start, length);
sb.append(ch, start, length);
String s = sb.toString();
if (tag.equals("id") && isFeed) {
commentsInfo.setId(Integer.parseInt(s));
} else if (tag.equals("title") && isFeed) {
commentsInfo.setTitle(s);
} else if (tag.equals("published") && isFeed) {
commentsInfo.setPublished(s);
} else if (tag.equals("updated") && isFeed) {
commentsInfo.setUpdated(s);
} else if (tag.equals("name") && isFeed) {
commentsInfo.setAuthorName(s);
} else if (tag.equals("uri") && isFeed) {
commentsInfo.setAuthorUri(s);
} else if (tag.equals("content") && isFeed) {
commentsInfo.setContent(s);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Check visibility of request details report | public void Req_detail()
{
boolean reqpresent=reqdetails.size()>0;
// boolean reqpresent = driver.findElements(By.linkText("Requests details")).size()>0;
if(reqpresent)
{
// System.out.println("Request details report is PRESENT");
}
else
{
System.out.println("Request details report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Large_Req_detail()\n {\n\t boolean largereqpresent =lareqdetails.size()>0;\n\t if(largereqpresent)\n\t {\n\t\t// System.out.println(\"Large Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Large Request details report is not present\");\n\t }\n }",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"public void Request_type()\n {\n\t boolean reqtypepresent =reqtype.size()>0;\n\t if(reqtypepresent)\n\t {\n\t\t //System.out.println(\"Request type report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request type report is not present\");\n\t }\n }",
"boolean hasQueryVisibility();",
"public int askPermitToGetBetweenVisible();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"private void viewPendingRequests() {\n\n\t}",
"private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(String.valueOf(req.getNewDur()));\n\t\ttxtAreaExplanation.setText(req.getExplanation());\n\t}",
"public boolean isGivingInformation();",
"public void user_details()\n {\n\t boolean userdetpresent =userdetails.size()>0;\n\t if(userdetpresent)\n\t {\n\t\t //System.out.println(\"User details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User details report is not present\");\n\t }\n }",
"public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }",
"public void Feedback_req()\n {\n\t boolean feedbackreqpresent =Feedbackreq.size()>0;\n\t if(feedbackreqpresent)\n\t {\n\t\t // System.out.println(\"Feedback Request report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Feedback Request report is not present\");\n\t }\n }",
"protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }",
"public void verifyViewBatchDetails(final Integer rowNum) {\n Log.logScriptInfo(\"Selecting Row\" + rowNum + \" to View Batch details....\");\n lblRow(rowNum).waitForVisibility(Log.giAutomationMedTO);\n lblRow(rowNum).click();\n btnViewBatchDetail().click();\n Log.logBanner(\"Verifying View Batch detail columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyViewBatchDetailColumns();\n }",
"public Boolean getFlowTracking() throws PermissionDeniedException;",
"private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}",
"boolean hasSystemRequest();",
"private void discoverableRequest() {\n final AlertDialog.Builder dialog_builder = new AlertDialog.Builder(this);\n\n // Sets the title for the popup dialog\n dialog_builder.setTitle(\"Make Host Device Discoverable\");\n dialog_builder.setMessage(\"Top level stuff here. Sadly, you don't have appropriate permissions to do this.\");\n final AlertDialog dialog = dialog_builder.create();\n // Displays the dialogue\n dialog.show();\n }",
"boolean isSetRequestID();",
"public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"public void setInfoVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_info_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_info_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setInfoVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"boolean isAllInview();",
"boolean hasDownloadRequest();",
"boolean isInfoEnabled();",
"java.lang.String getQueryVisibility();",
"public boolean isSetRequests() {\n return this.requests != null;\n }",
"@Override\n\tpublic void onRequestFinished(String reqId) {\n\t\temptyView.isEmpty(!(practicalExpList.size()>0));\n\t}",
"public boolean hasRequests(){\n return (tradeRequests.size() > 0 || userRequests.size() > 0);\n }",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"@When(\"^clicks request$\")\n public void patient_clicks_request() throws Throwable {\n \t//appt request has been saved and is pending...\n \tAssert.assertTrue(appt.getApptType() != null);\n \tAssert.assertTrue(appt.getDate() != null);\n \tAssert.assertTrue(appt.getComment() != null);\n \t//check if the above items have been set correctly from the previous method\n }",
"boolean hasFlightdetails();",
"private void checkOffensive(AccessibilityNodeInfo mNodeInfo) {\n int mDebugDepth = 0;\n if (mNodeInfo == null) return;\n String log =\"\";\n for (int i = 0; i < mDebugDepth; i++) {\n log += \".\";\n }\n\n Intent inte = new Intent(this,OverlayActivity.class);\n inte.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n if (mNodeInfo.getText() != null) {\n String replaceString=(mNodeInfo.getText().toString()).replace(\" \",\"%20\");\n Log.e(TAG, \"checkOffensive: \" + url+replaceString);\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url+replaceString,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try{\n //open overlay if offensiveness score greater than 0.8\n response += response.substring(response.indexOf(\":\") + 1, response.indexOf(\",\"));\n float response_float=Float.parseFloat(response);\n if (response_float > 0.7) {\n startActivity(inte);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n },\n error -> Log.e(\"ERROR\", \"\" + error.getMessage()));\n\n RequestQueue requestQueue = Volley.newRequestQueue(MyAccessibilityService.this);\n requestQueue.add(stringRequest);\n }\n\n log+=\"(\"+mNodeInfo.getText() +\" <-- \"+\n mNodeInfo.getViewIdResourceName()+\")\";\n Log.d(TAG, log);\n if (mNodeInfo.getChildCount() < 1) return;\n mDebugDepth++;\n\n for (int i = 0; i < mNodeInfo.getChildCount(); i++) {\n checkOffensive(mNodeInfo.getChild(i));\n }\n mDebugDepth--;\n }",
"boolean hasExternalAttributionCredit();",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"boolean hasReflectionRequest();",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"public void verify_required_FrameVisibility_Customer_Tab(String Frame,boolean status)throws Exception \n\t{\n\t\tif(status)\n\t\t{\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_FrameAvailibility.replaceAll(\"M_Header\", Frame), \"Required frame availiable is \"+Frame);\n\t\tReport.fnReportPageBreak(Frame+ \" Frame is Visible\", driver);\n\t\t}\n\t\telse\n\t\t{\n\t\tVerifyElementNotPresent(Desktop_XPATH_Verify_Customer_Page_FrameAvailibility.replaceAll(\"M_Header\", Frame), \"Required frame not availiable and \"+Frame);\n\t\tReport.fnReportPageBreak(Frame+ \" Frame is not Visible\", driver);\n\t\t}\n\t}",
"private String showKitDetails(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn \"\";\n\t}",
"@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}",
"public void setVisibleDetails(int n) {\n mController.setVisibleDetails(n);\n }",
"public boolean visible_LoadDescField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_LoadDesc_txtBx);\r\n\t}",
"@Override\n public boolean isGivingInformation() {\n return true;\n }",
"boolean hasListResponse();",
"public boolean isAtLeastVisible(Visibility v);",
"public Boolean IsIOrequest() {\n Random r = new Random();\n int k = r.nextInt(100);\n //20%\n if (k <= 20) {\n return true;\n }\n return false;\n }",
"public boolean isInfoEnabled();",
"public boolean isHiddenOnReports() {\n return hiddenOnReports;\n }",
"@PostMapping(value = \"/report\", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\r\n\t@ResponseBody\r\n\tpublic Boolean report(HttpServletRequest req) {\n\t\tHashMap<String, Object> reportMap = new HashMap<String, Object>();\r\n\t\treportMap.put(\"pNum\", req.getParameter(\"pNum\"));\r\n\t\treportMap.put(\"username\", req.getParameter(\"username\"));\r\n\t\treportMap.put(\"detail\", req.getParameter(\"detail\"));\r\n\t\tint result = reportService.report(reportMap);\r\n\t\tif (result > 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"boolean hasRemarketingAction();",
"boolean hasHotelPerformanceView();",
"public void checkVisibility(WebElement element) {\n wait = new WebDriverWait(driver, 15, 50);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"boolean hasUsage();",
"public void Verify_Page_Header_Visibility()\r\n\t{\r\n\t\t if(Page_header.isDisplayed())\r\n\t\t\t System.out.println(\"header visible at webpage\");\r\n\t\t else\r\n\t\t\t System.out.println(\"header not visible at webpage\");\r\n\t\t\r\n\t}",
"public void traceAttributeDefPrivileges(HttpServletRequest request, HttpServletResponse response) {\r\n \r\n final Subject loggedInSubject = GrouperUiFilter.retrieveSubjectLoggedIn();\r\n \r\n GrouperSession grouperSession = null;\r\n \r\n AttributeDef attributeDef = null;\r\n Subject subject = null;\r\n \r\n GrouperRequestContainer grouperRequestContainer = GrouperRequestContainer.retrieveFromRequestOrCreate();\r\n \r\n try {\r\n \r\n grouperSession = GrouperSession.start(loggedInSubject);\r\n \r\n GuiResponseJs guiResponseJs = GuiResponseJs.retrieveGuiResponseJs();\r\n \r\n attributeDef = UiV2AttributeDef.retrieveAttributeDefHelper(request, \r\n AttributeDefPrivilege.ATTR_ADMIN, true).getAttributeDef();\r\n \r\n if (attributeDef == null) {\r\n return;\r\n }\r\n \r\n subject = UiV2Subject.retrieveSubjectHelper(request, true);\r\n \r\n if (subject == null) {\r\n return;\r\n }\r\n \r\n Member member = MemberFinder.findBySubject(grouperSession, subject, false);\r\n \r\n if (member == null) {\r\n \r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error, \r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceNoPrivilegesFound\")));\r\n \r\n return;\r\n }\r\n \r\n MembershipGuiContainer membershipGuiContainer = grouperRequestContainer.getMembershipGuiContainer();\r\n \r\n //see where to go back to\r\n if (StringUtils.equalsIgnoreCase(request.getParameter(\"backTo\"), \"subject\")) {\r\n membershipGuiContainer.setTraceMembershipFromSubject(true);\r\n }\r\n \r\n //this is a subobject\r\n grouperRequestContainer.getAttributeDefContainer().getGuiAttributeDef().setShowBreadcrumbLink(true);\r\n grouperRequestContainer.getSubjectContainer().getGuiSubject().setShowBreadcrumbLink(true);\r\n \r\n List<MembershipPath> allMembershipPaths = new ArrayList<MembershipPath>();\r\n {\r\n MembershipPathGroup membershipPathGroup = MembershipPathGroup.analyzePrivileges(attributeDef, member);\r\n allMembershipPaths.addAll(GrouperUtil.nonNull(membershipPathGroup.getMembershipPaths()));\r\n }\r\n \r\n //lets try with every entity too\r\n Subject everyEntitySubject = SubjectFinder.findAllSubject();\r\n {\r\n MembershipPathGroup membershipPathGroup = MembershipPathGroup.analyzePrivileges(attributeDef, everyEntitySubject);\r\n allMembershipPaths.addAll(GrouperUtil.nonNull(membershipPathGroup.getMembershipPaths()));\r\n }\r\n \r\n //massage the paths to only consider the ones that are allowed\r\n int membershipUnallowedCount = 0;\r\n List<MembershipPath> membershipPathsAllowed = new ArrayList<MembershipPath>();\r\n \r\n for (MembershipPath membershipPath : allMembershipPaths) {\r\n if (membershipPath.isPathAllowed()) {\r\n membershipPathsAllowed.add(membershipPath);\r\n } else {\r\n membershipUnallowedCount++;\r\n }\r\n }\r\n \r\n if (membershipUnallowedCount > 0) {\r\n membershipGuiContainer.setPathCountNotAllowed(membershipUnallowedCount);\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.info,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceGroupPathsNotAllowed\")));\r\n }\r\n \r\n if (GrouperUtil.length(membershipPathsAllowed) == 0) {\r\n \r\n if (membershipUnallowedCount > 0) {\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceGroupNoPathsAllowed\")));\r\n } else {\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceAttributeDefNoPaths\")));\r\n }\r\n }\r\n \r\n tracePrivilegesHelper(membershipPathsAllowed, false, false, true);\r\n \r\n guiResponseJs.addAction(GuiScreenAction.newInnerHtmlFromJsp(\"#grouperMainContentDivId\", \r\n \"/WEB-INF/grouperUi2/membership/traceAttributeDefPrivileges.jsp\"));\r\n \r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n \r\n }",
"boolean hasTelemetry();",
"public boolean isTracing();",
"public boolean hasQueryVisibility() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"boolean isInDownloadedArea();",
"public boolean hasRequest() {\n return request_ != null;\n }",
"public boolean hasRequest() {\n return request_ != null;\n }",
"public boolean hasRequest() {\n return request_ != null;\n }",
"boolean isVisible();",
"boolean isVisible();",
"public void v_Verify_Guest11_Displayed(){\n\t}",
"boolean isCanSeeFriendlyInvisibles();",
"boolean isConditionFullfilled(DataObject object, HttpServletRequest req) throws ASGRuntimeException;",
"String getNeedsInventoryIssuance();",
"public Boolean getAlwaysRequestVisibleRows() {\r\n return getAttributeAsBoolean(\"alwaysRequestVisibleRows\");\r\n }",
"public boolean logAccess() {\n Map<String, String> response;\n try {\n response = logMessageService.sendRequestMessage(\"\");\n } catch (Exception exception) {\n LOGGER.warn(\"Log message could not be sent. [exception=({})]\", exception.getMessage());\n return allowAccess();\n }\n if (response != null) {\n return allowAccess();\n } else {\n LOGGER.warn(\"No response received.\");\n return allowAccess();\n }\n }",
"public Boolean isVisible();",
"public Boolean isVisible();",
"private boolean requiresRiskManagementReviewRouting() {\n // Right now this works just like International Travel Reviewer, but may change for next version\n if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelParameters.INTERNATIONAL_TRIP_TYPES).contains(this.getTripTypeCode())) {\n return true;\n }\n if (!ObjectUtils.isNull(getTraveler()) && getTraveler().isLiabilityInsurance()) {\n return true;\n }\n return false;\n }",
"boolean hasTxnrequest();",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"public void cliniciansTabAreInViewMode() {\n\n\tString icon=addIconClinicians.getAttribute(\"data-ng-click\");\n\tif(icon.contains(\"isDisabled\")) {\n\t\tAssert.assertTrue(true);\n\t}\n\t\t\n\t}",
"public boolean hasQueryVisibility() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"boolean hasCampaignAudienceView();",
"boolean hasShoppingPerformanceView();",
"boolean hasDescribe();",
"@Schema(description = \"Details about any restrictions in the visibility of the worklog. Optional when creating or updating a worklog.\")\n public AllOfWorklogVisibility getVisibility() {\n return visibility;\n }",
"public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"@Test(priority=2)\r\n\tpublic void displayReportsOptions() throws InterruptedException {\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayReportsList();\r\n\t\tassertEquals(actual, expected);\r\n\t}",
"public void autoDetails() {\n\t\t\r\n\t}",
"public boolean isRequest(){\n return false;\n }",
"boolean isSetComplianceCheckResult();",
"public boolean isVisible(Visibility v);",
"public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasRequest() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }"
] | [
"0.62864095",
"0.59108984",
"0.5908766",
"0.58779126",
"0.5863525",
"0.58484125",
"0.58484125",
"0.58484125",
"0.58484125",
"0.58484125",
"0.58484125",
"0.58484125",
"0.58484125",
"0.58484125",
"0.58484125",
"0.57541627",
"0.57514066",
"0.57341486",
"0.5661152",
"0.5630143",
"0.5607178",
"0.5569214",
"0.5432276",
"0.5432173",
"0.5429508",
"0.54171795",
"0.5411472",
"0.5408078",
"0.5390611",
"0.53808826",
"0.53612536",
"0.53530407",
"0.5339018",
"0.53346944",
"0.53095174",
"0.5307017",
"0.5305851",
"0.530413",
"0.52964795",
"0.52941436",
"0.5279745",
"0.5277545",
"0.52665514",
"0.5259983",
"0.52570015",
"0.5240957",
"0.5238796",
"0.52341384",
"0.5230897",
"0.52271897",
"0.5193356",
"0.5186814",
"0.5183359",
"0.5173057",
"0.5156385",
"0.51555884",
"0.51500934",
"0.51418334",
"0.5140646",
"0.5140623",
"0.5138499",
"0.51361233",
"0.5127015",
"0.51210785",
"0.5113885",
"0.51065886",
"0.50986123",
"0.5096607",
"0.50905645",
"0.50905645",
"0.50905645",
"0.50819206",
"0.50819206",
"0.50809735",
"0.5080803",
"0.5079369",
"0.5078569",
"0.5078087",
"0.50767064",
"0.50696874",
"0.50696874",
"0.5065879",
"0.50657105",
"0.50614786",
"0.5056934",
"0.50546706",
"0.5053913",
"0.50515664",
"0.50496936",
"0.50489384",
"0.50440866",
"0.5041472",
"0.50413823",
"0.50412685",
"0.50347114",
"0.50337857",
"0.5033154",
"0.5027627",
"0.50270826",
"0.50270826"
] | 0.72899175 | 0 |
Check visibility of large request details report | public void Large_Req_detail()
{
boolean largereqpresent =lareqdetails.size()>0;
if(largereqpresent)
{
// System.out.println("Large Request details report is PRESENT");
}
else
{
System.out.println("Large Request details report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"private void viewPendingRequests() {\n\n\t}",
"public Boolean IsIOrequest() {\n Random r = new Random();\n int k = r.nextInt(100);\n //20%\n if (k <= 20) {\n return true;\n }\n return false;\n }",
"public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }",
"public void verifyViewBatchDetails(final Integer rowNum) {\n Log.logScriptInfo(\"Selecting Row\" + rowNum + \" to View Batch details....\");\n lblRow(rowNum).waitForVisibility(Log.giAutomationMedTO);\n lblRow(rowNum).click();\n btnViewBatchDetail().click();\n Log.logBanner(\"Verifying View Batch detail columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyViewBatchDetailColumns();\n }",
"public void Request_type()\n {\n\t boolean reqtypepresent =reqtype.size()>0;\n\t if(reqtypepresent)\n\t {\n\t\t //System.out.println(\"Request type report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request type report is not present\");\n\t }\n }",
"boolean isInDownloadedArea();",
"public int askPermitToGetBetweenVisible();",
"private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}",
"boolean isAllInDownloadedArea();",
"private void checkOffensive(AccessibilityNodeInfo mNodeInfo) {\n int mDebugDepth = 0;\n if (mNodeInfo == null) return;\n String log =\"\";\n for (int i = 0; i < mDebugDepth; i++) {\n log += \".\";\n }\n\n Intent inte = new Intent(this,OverlayActivity.class);\n inte.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n if (mNodeInfo.getText() != null) {\n String replaceString=(mNodeInfo.getText().toString()).replace(\" \",\"%20\");\n Log.e(TAG, \"checkOffensive: \" + url+replaceString);\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url+replaceString,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try{\n //open overlay if offensiveness score greater than 0.8\n response += response.substring(response.indexOf(\":\") + 1, response.indexOf(\",\"));\n float response_float=Float.parseFloat(response);\n if (response_float > 0.7) {\n startActivity(inte);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n },\n error -> Log.e(\"ERROR\", \"\" + error.getMessage()));\n\n RequestQueue requestQueue = Volley.newRequestQueue(MyAccessibilityService.this);\n requestQueue.add(stringRequest);\n }\n\n log+=\"(\"+mNodeInfo.getText() +\" <-- \"+\n mNodeInfo.getViewIdResourceName()+\")\";\n Log.d(TAG, log);\n if (mNodeInfo.getChildCount() < 1) return;\n mDebugDepth++;\n\n for (int i = 0; i < mNodeInfo.getChildCount(); i++) {\n checkOffensive(mNodeInfo.getChild(i));\n }\n mDebugDepth--;\n }",
"boolean hasLoginapihitcount();",
"private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}",
"boolean hasLoginapifailhitcount();",
"boolean isLimited();",
"public boolean hasReportLimit()\n {\n return (this.getReportLimit() > 0L);\n }",
"private void limitChecking() {\n if (!export) {\n String maxNumberOfRows = ConfigurationService.getAsString(summaryReportConfig.reportDefinition.getGroup(), \"max_number_of_rows\");\n String maxNumberOfColumns = ConfigurationService.getAsString(summaryReportConfig.reportDefinition.getGroup(), \"max_number_of_columns\");\n if (isEmptyOrNull(maxNumberOfRows) || isEmptyOrNull(maxNumberOfColumns)) {\n throw new UserException(\"It is not possible to read \\\"Max Table Summary Columns\\\" and \\\"Max Table Summary Rows\\\" configuration.\");\n }\n\n Long maxProperty1 = Long.valueOf(maxNumberOfRows);\n if (!summaryReportConfig.isTwoDimension()) {\n if (properties1.size() > maxProperty1) {\n logger.info(\"Property \" + groupByList.get(0).getLabel() + \" has [\" + properties1.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty1 + \"]\");\n throw new UserException(\"Report results exceed configured Max Row display limit.\"\n + \" Do you want to export results instead?\"); // max rows\n }\n } else {\n Long maxProperty2 = Long.valueOf(maxNumberOfColumns);\n if ((properties1.size() > maxProperty1) && (properties2.size() > maxProperty2)) {\n logger.info(\"Property \" + groupByList.get(0).getLabel() + \" has [\" + properties1.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty1 + \"] \\n\"\n + \"Property \" + groupByList.get(1).getLabel() + \" has [\" + properties2.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty2 + \"]\");\n throw new UserException(\"Report results exceed configured Max Column and Max Row display limits. \"\n + \"Do you want to export results instead?\"); // max columns and rows\n } else if (properties1.size() > maxProperty1) {\n logger.info(\"Property \" + groupByList.get(0).getLabel() + \" has [\" + properties1.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty1 + \"]\");\n throw new UserException(\"Report results exceed configured Max Row display limit. \"\n + \"Do you want to export results instead?\"); // max rows\n } else if (properties2.size() > maxProperty2) {\n logger.info(\"Property \" + groupByList.get(1).getLabel() + \" has [\" + properties2.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty2 + \"]\");\n throw new UserException(\"Report results exceed configured Max Column display limit. \"\n + \"Do you want to export results instead?\"); // max columns\n }\n }\n }\n }",
"private boolean validate(Map<String,String> requestMap){\r\n\t\tboolean result = false;\r\n\t\tString zip = requestMap.get(PublicAPIConstant.ZIP);\r\n\t\tString soStatus = requestMap.get(PublicAPIConstant.SO_STATUS);\r\n\t\tList<String> soStatusList = new ArrayList<String>();\r\n\r\n\t\tif (null != soStatus) {\r\n\t\t\tStringTokenizer strTok = new StringTokenizer(\r\n\t\t\t\t\tsoStatus,\r\n\t\t\t\t\tPublicAPIConstant.SEPARATOR, false);\r\n\t\t\tint noOfStatuses = strTok.countTokens();\r\n\t\t\tfor (int i = 1; i <= noOfStatuses; i++) {\r\n\t\t\t\tsoStatusList.add(new String(strTok\r\n\t\t\t\t\t\t.nextToken()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tInteger pageSize = Integer.parseInt(requestMap.get(\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET));\r\n\t\t\r\n\t\tif(null!=zip&&zip.length() != 5){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.ZIP);\r\n\t\t\treturn result;\t\r\n\t\t}\r\n\t\tList<Integer> pageSizeSetValues = Arrays.asList(\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_10,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_20,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_50,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_100,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_200,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_500);\t\t\r\n\t\tif(!pageSizeSetValues.contains(pageSize)){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET);\r\n\t\t\treturn result;\t\r\n\t\t}\t\r\n\t\t\r\n\t\tList<String> soStatusValues = Arrays.asList(\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_POSTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_ACCEPTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_ACTIVE,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_CLOSED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_COMPLETED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_DRAFTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_PROBLEM,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_EXPIRED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_PENDINGCANCEL\r\n\t\t);\t\t\r\n\t\tif(!soStatusValues.containsAll(soStatusList)){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.SO_STATUS_SET);\r\n\t\t\treturn result;\t\r\n\t\t}\t\r\n\t\tresult = true;\r\n\t\treturn result;\r\n\t}",
"boolean hasDownloadRequest();",
"boolean hasQueryVisibility();",
"Request<Long> countUserInfoDetails();",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"public boolean hasRequests(){\n return (tradeRequests.size() > 0 || userRequests.size() > 0);\n }",
"static void logViewTooSmall(boolean isViewTooSmall) {\n RecordHistogram.recordBooleanHistogram(\n \"Search.ContextualSearch.SuppressedViewTooSmall\", isViewTooSmall);\n }",
"Boolean checkIndexing(Long harvestResultOid) throws DigitalAssetStoreException;",
"public void user_details()\n {\n\t boolean userdetpresent =userdetails.size()>0;\n\t if(userdetpresent)\n\t {\n\t\t //System.out.println(\"User details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User details report is not present\");\n\t }\n }",
"boolean hasUsage();",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"boolean isAllInview();",
"public boolean isGivingInformation();",
"boolean hasCollectResult();",
"boolean hasLoginapisuccessfulhitcount();",
"private boolean isFetchNeeded() {\n return true;\n }",
"public static boolean checkResources(){\n for(Instruction i : waitingList){\n if(resourceArr[i.resourceType - 1] >= i.resourceAmount){\n return true;\n }\n }\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n if(instructionType != Type.request){\n return true;\n }else{\n if(resourceArr[currInstruction.resourceType - 1] >= currInstruction.resourceAmount){\n return true;\n }\n }\n }\n\n }\n return false;\n }",
"boolean hasHotelPerformanceView();",
"private boolean moreServerContent() {\n Stopwatch stopwatch = Stopwatch.createStarted();\n boolean moreDataAvailable;\n try {\n if (resIterator == null) {\n return false;\n }\n moreDataAvailable = resIterator.hasNext();\n recordSuccessMetric(MESSAGE_LATENCY_MS, stopwatch.elapsed(MILLISECONDS));\n } catch (Exception e) {\n recordErrorMetric(MESSAGE_LATENCY_MS, stopwatch.elapsed(MILLISECONDS), e);\n throw e;\n }\n if (!moreDataAvailable) {\n cancelCurrentRequest();\n }\n return moreDataAvailable;\n }",
"public void verifyIndividualBatchDetails(final Integer rowNum) {\n Log.logScriptInfo(\"Opening Row\" + rowNum + \" details....\");\n lblRow(rowNum).waitForVisibility(Log.giAutomationMedTO);\n lblRow(rowNum).doubleClick();\n Log.logBanner(\"Verifying Individual Batch columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyIndividualBatchColumns();\n }",
"public boolean existRequest(int j, int t) {\n\t \n\t boolean result=false;\n\t for (int reg = 0; reg < workloadGenerator.regioNumber; reg++) {\n\t\t \n\t\t if(workloadGenerator.objectListWriteRatePerRegion[j][t][reg]>0){\n\t\t\t result=true;\n\t\t\t break;\n\t\t }\n\t }\n\treturn result;\n}",
"private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(String.valueOf(req.getNewDur()));\n\t\ttxtAreaExplanation.setText(req.getExplanation());\n\t}",
"private void logCacheStatus() {\n if (!LOGGER.canLogAtLevel(LogLevel.VERBOSE)) {\n return;\n }\n\n final int size = cache.size();\n final int length = cache.getTotalLength();\n\n LOGGER.atVerbose()\n .addKeyValue(SIZE_KEY, size)\n .addKeyValue(TOTAL_LENGTH_KEY, length)\n .log(\"Cache entry added or updated. Total number of entries: {}; Total schema length: {}\",\n size, length);\n }",
"boolean hasShoppingPerformanceView();",
"@Test(priority=2)\r\n\tpublic void displayReportsOptions() throws InterruptedException {\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayReportsList();\r\n\t\tassertEquals(actual, expected);\r\n\t}",
"public void setInfoVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_info_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_info_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setInfoVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"boolean hasStatistics();",
"@Test\n\tpublic void getStaticsDataTest() {\n\t\tthis.repo.save(new StatisticsRequest(\"1233333\", \"testing\", Integer.valueOf(200), Integer.valueOf(2000)));\n\n\t\twebTestClient.get().uri(\"/getLoggedData\").accept(MediaType.APPLICATION_JSON).exchange().expectStatus().isOk()\n\t\t\t\t.expectBody(StatisticsResponse.class)\n\t\t\t\t.consumeWith(res -> assertTrue(res.getResponseBody().getTotalRequest() > 0.0));\n\n\t}",
"boolean shouldReportMetrics();",
"public static void showStatistics(){\n\n }",
"@Test\n\tpublic void activeHires()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfActiveHires() == 1);\n\t}",
"public void know_doc_Report()\n {\n\t boolean knowedgepresent =knowdoc.size()>0;\n\t if(knowedgepresent)\n\t {\n\t\t // System.out.println(\"Knowledge document details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Knowledge document details report is not present\");\n\t }\n }",
"boolean hasTelemetry();",
"private String showKitDetails(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn \"\";\n\t}",
"@Override\n\tpublic void onRequestFinished(String reqId) {\n\t\temptyView.isEmpty(!(practicalExpList.size()>0));\n\t}",
"public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }",
"public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }",
"boolean hasSystemRequest();",
"boolean getIsLimited();",
"private boolean failInReporting() {\n\t\tboolean toForget = false;\n\t\t//synchronized (this) {\n\t\t\tif (++this.failureCount >= this.config.getNumOfFailuresBeforeForgetCollector()) {\n\t\t\t\ttoForget = true;\n\t\t\t\tthis.failureCount = 0;\n\t\t\t}\n\t\t//}\n\n\t\t// forget\n\t\tif (toForget) {\n\t\t\tlogger.log(Level.WARNING, \"Forget a stat collector.\");\n\n\t\t\tthis.provider.setMessagingCollectorAddress(null);\n\t\t}\n\n\t\treturn toForget;\n\t}",
"boolean isFetchData();",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"@PlanBody\n public boolean body(){\n ICenterService ser = agent.getComponentFeature\n (IRequiredServicesFeature.class).searchService(ICenterService.class,RequiredServiceInfo.SCOPE_GLOBAL).get();\n\n ser.collectBallot(voter).addResultListener(new IResultListener<Boolean>() {\n @Override\n public void exceptionOccurred(Exception exception) {\n exception.printStackTrace();\n System.out.println(exception);\n }\n @Override\n public void resultAvailable(Boolean result) {\n System.out.println(voter.getId()+ \" submit result: \"+result);\n }\n });\n return true;\n }",
"@Test\n\tpublic void completeHires()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfCompleteHires() == 2);\n\t}",
"public void Feedback_req()\n {\n\t boolean feedbackreqpresent =Feedbackreq.size()>0;\n\t if(feedbackreqpresent)\n\t {\n\t\t // System.out.println(\"Feedback Request report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Feedback Request report is not present\");\n\t }\n }",
"boolean hasDownloadResponse();",
"@Test\n\tpublic void bikesAvailable()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfBikesAvailable() == 1);\n\t}",
"public boolean hasLoginapifailhitcount() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"boolean isInfoEnabled();",
"public boolean visible_LoadDescField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_LoadDesc_txtBx);\r\n\t}",
"boolean hasExternalAttributionCredit();",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void reportStats() {\n System.out.println(\"Number of requests: \" + (requestCount - warmUpRequests));\n System.out.println(\"Number of hits: \" + hitCount);\n System.out.println(\"hit ratio: \" + (double) hitCount / (requestCount - warmUpRequests));\n System.out.println(\"Average hit cost: \" + (double) hitCost / hitCount);\n }",
"public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }",
"@Test\n\tpublic void lateHires()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfLateHires() == 1);\n\t}",
"public boolean processRequirementSummary() throws NbaBaseException {\n\t\tboolean success = false;\n\t\tNbaVpmsAdaptor vpmsProxy = null; //SPR3362\n\t\ttry {\n\t\t\tNbaOinkDataAccess oinkData = new NbaOinkDataAccess(txLifeReqResult); //ACN009\n\t\t\toinkData.setAcdbSource(new NbaAcdb(), nbaTxLife);\n\t\t\toinkData.setLobSource(work.getNbaLob());\n\t\t\tif(getLogger().isDebugEnabled()) { //SPR3290\n\t\t\t getLogger().logDebug(\"########### Testing Requirment Summary ###########\");\n\t\t\t getLogger().logDebug(\"########### PartyId: \" + partyID);\n\t\t\t}//SPR3290\n\t\t\tvpmsProxy = new NbaVpmsAdaptor(oinkData, NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR3362\n\t\t\tvpmsProxy.setVpmsEntryPoint(NbaVpmsAdaptor.EP_GET_CALCXMLOBJECTS);\n\t\t\tMap deOink = new HashMap();\n\t\t\t//\t\t\t######## DEOINK\n\t\t\tdeOink.put(NbaVpmsConstants.A_PROCESS_ID, NbaUtils.getBusinessProcessId(getUser())); //SPR2639\n\t\t\tdeOinkContractFieldsForRequirement(deOink);\n\t\t\tdeOinkXMLResultFields(deOink);\n deOinkSubstanceUsage(oinkData, deOink, partyID); //AXAL3.7.07\n\t\t\tdeOinkLabTestResults(deOink);\n\t\t\tObject[] args = getKeys();\n\t\t\tNbaOinkRequest oinkRequest = new NbaOinkRequest();\n\t\t\toinkRequest.setRequirementIdFilter(reqId);\n\t\t\toinkRequest.setArgs(args);\n\t\t\tvpmsProxy.setANbaOinkRequest(oinkRequest);\n\t\t\tvpmsProxy.setSkipAttributesMap(deOink);\n\t\t\tVpmsComputeResult vcr = vpmsProxy.getResults();\n\t\t\tNbaVpmsResultsData vpmsResultsData = new NbaVpmsResultsData(vcr);\n\t\t\tArrayList results = vpmsResultsData.getResultsData();\n\t\t\tresults = vpmsResultsData.getResultsData();\n\t\t\t//Resulting string will be the zeroth element.\n\t\t\tif (results == null) {\n\t\t\t\t//SPR3362 code deleted\n\t\t\t\tthrow new NbaVpmsException(NbaVpmsException.VPMS_NO_RESULTS + NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR2652\n\t\t\t} //SPR2652\n\t\t\tvpmsResult = (String) results.get(0);\n\t\t\tNbaVpmsModelResult vpmsOutput = new NbaVpmsModelResult(vpmsResult);\n\t\t\tVpmsModelResult vpmModelResult = vpmsOutput.getVpmsModelResult();\n\t\t\tupdateDefaultValues(vpmModelResult.getDefaultValues());\n\t\t\tupdateSummaryValues(vpmModelResult.getSummaryValues());\n\t\t\tsuccess = true;\n\t\t\t// SPR2652 Code Deleted\n\t\t\t//SPR3362 code deleted\n\t\t} catch (RemoteException re) {\n\t\t\tthrow new NbaBaseException(\"Remote Exception occured in processRequirementSummary\", re);\n\t\t// SPR2652 Code Deleted\n\t\t//begin SPR3362\n\t\t} finally {\n\t\t if(vpmsProxy != null){\n\t\t try {\n vpmsProxy.remove();\n } catch (RemoteException e) {\n getLogger().logError(NbaBaseException.VPMS_REMOVAL_FAILED);\n }\n\t\t }\n\t\t//end SPR3362\n\t\t}\n\t\treturn success;\n\t}",
"public boolean hasLoginapifailhitcount() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"private void printResponseDetails(\n MutateGoogleAdsRequest request, MutateGoogleAdsResponse response) {\n // Parse the Mutate response to print details about the entities that were removed and/or\n // created in the request.\n for (int i = 0; i < response.getMutateOperationResponsesCount(); i++) {\n MutateOperation operationRequest = request.getMutateOperations(i);\n MutateOperationResponse operationResponse = response.getMutateOperationResponses(i);\n\n if (operationResponse.getResponseCase()\n != ResponseCase.ASSET_GROUP_LISTING_GROUP_FILTER_RESULT) {\n String entityName = operationResponse.getResponseCase().toString();\n // Trim the substring \"_RESULT\" from the end of the entity name.\n entityName = entityName.substring(0, entityName.lastIndexOf(\"_RESULT\"));\n System.out.printf(\"Unsupported entity type: %s%n\", entityName);\n }\n\n String resourceName =\n operationResponse.getAssetGroupListingGroupFilterResult().getResourceName();\n AssetGroupListingGroupFilterOperation assetOperation =\n operationRequest.getAssetGroupListingGroupFilterOperation();\n\n String operationType =\n StringUtils.capitalize(assetOperation.getOperationCase().toString().toLowerCase());\n System.out.printf(\n \"%sd a(n) AssetGroupListingGroupFilter with resource name: '%s'%n\",\n operationType, resourceName);\n }\n }",
"public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyYourdetailsGasOverLayLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"verify the Gas OverLay Link's In Your details\");\n\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Gas\")\t\t\n\t\t.verifyGasWhyWeNeedThisLink()\n\t\t.verifyGasAcctnoWhereCanIfindthisLink()\n\t\t.verifyGasMeterPointWhereCanIfindthisLink()\n\t\t.verifyGasMeterIDWhereCanIfindthisLink();\n}",
"private void discoverableRequest() {\n final AlertDialog.Builder dialog_builder = new AlertDialog.Builder(this);\n\n // Sets the title for the popup dialog\n dialog_builder.setTitle(\"Make Host Device Discoverable\");\n dialog_builder.setMessage(\"Top level stuff here. Sadly, you don't have appropriate permissions to do this.\");\n final AlertDialog dialog = dialog_builder.create();\n // Displays the dialogue\n dialog.show();\n }",
"public boolean screen(IScreeningRequest request, Logger log) {\n boolean retVal = true;\n if (log == null) {\n throw new NullPointerException(\"log should not be null.\");\n }\n if (request == null) {\n throw new NullPointerException(\"request should not be null.\");\n }\n\n File root = new File(tempFolder, String.valueOf(request.getProjectType().getName() + request.getArtifactId()));\n ScreeningLogger logger = new ScreeningLogger();\n logger.setRequest(request);\n\n try {\n boolean success = true;\n for (Iterator itr = ((List) this.rules.get(request.getProjectType())).iterator(); itr.hasNext();) {\n ScreeningRule rule = (ScreeningRule) itr.next();\n long start = System.currentTimeMillis();\n boolean result = rule.screen(new File(request.getArtifactPath()), root, logger);\n long end = System.currentTimeMillis();\n log.info(rule.getClass().getName() + \": \" + (result ? \"pass\" : \"fail\") + \" with \" + (end - start) + \"ms.\");\n if (!result) {\n success = false;\n }\n }\n if (success) {\n logger.log(new SimpleScreeningData(ResponseCode.SUCCESS));\n }\n logger.log(new SimpleScreeningResult(success || this.soft));\n } catch (DatabaseException ex) {\n ex.printStackTrace();\n log.error(\"Exception thrown while screening: \" + ex.getMessage());\n retVal = false;\n } finally {\n try {\n new TCSFile(root).deleteTree();\n } catch (Exception ex) {\n }\n }\n return retVal;\n }",
"boolean hasReqardTypeTen();",
"boolean hasDescribe();",
"public boolean hasLoginapihitcount() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasLoginapihitcount() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"private static void showsExtendAndQueryParameters() {\n\n\t\tQuery<BugReport> queryNoneAssigned = Ebean.createQuery(BugReport.class,\n\t\t\t\"assignedStatusCount\");\n\t\tqueryNoneAssigned.setParameter(\"status\", \"NEW\");\n\t\tqueryNoneAssigned.setParameter(\"count\", 0);\n\t\tqueryNoneAssigned.where().isNotNull(\"assigned.id\");\n\n\t\tList<BugReport> newBugsAssigned = queryNoneAssigned.findList();\n\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"\");\n\n\t\tfor (BugReport bugReport : newBugsAssigned) {\n\t\t\tInteger userId = bugReport.getAssigned().getId();\n\t\t\tint count = bugReport.getCount();\n\t\t\tString status = bugReport.getStatus().getCode();\n\n\t\t\tSystem.out.println(\" new bugs assigned: \" + count + \" to \" + userId + \" as \" + status);\n\t\t}\n\t}",
"@Override\n public boolean isGivingInformation() {\n return true;\n }",
"boolean hasPartitionLimit();",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\t\tprivate void checkJobInstanceStatus() {\r\n \t\r\n \tString checkId = UUID.randomUUID().toString();\r\n \t\r\n \tlogger.info(checkId + \", [LivingTaskManager]: start checkJobInstanceStatus\"\r\n \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() \r\n \t\t\t+ \", keySet:\" + LoggerUtil.displayJobInstanceId(livingJobInstanceClientMachineMap.keySet()));\r\n \t\r\n \tint checkAmount = 0;\r\n \t\r\n \tIterator iterator = livingJobInstanceClientMachineMap.entrySet().iterator();\r\n \t\twhile(iterator.hasNext()) { \r\n \t\t\tMap.Entry entry = (Map.Entry)iterator.next();\r\n \t\t\tServerJobInstanceMapping.JobInstanceKey key = (ServerJobInstanceMapping.JobInstanceKey)entry.getKey();\r\n \t\t\t\r\n \t\t\tList<RemoteMachine> machineList = (List<RemoteMachine>)entry.getValue();\r\n \t\t\t\r\n \t\t\tif(CollectionUtils.isEmpty(machineList)) {\r\n \t\t\t\tlogger.info(checkId + \", [LivingTaskManager]: checkJobInstanceStatus machineList isEmpty\"\r\n \t \t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", key:\" + key);\r\n \t\t\t\tcontinue ;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tsynchronized(machineList) {\r\n \t\t\t\tIterator<RemoteMachine> iteratorMachineList = machineList.iterator();\r\n \t\t\t\twhile(iteratorMachineList.hasNext()) {\r\n \t\t\t\t\t\r\n \t\t\t\t\tRemoteMachine client = iteratorMachineList.next();\r\n \t\t\t\t\t\r\n \t\t\t\t\tResult<String> checkResult = null;\r\n try {\r\n client.setTimeout(serverConfig.getHeartBeatCheckTimeout());\r\n InvocationContext.setRemoteMachine(client);\r\n checkResult = clientService.heartBeatCheckJobInstance(key.getJobType(), key.getJobId(), key.getJobInstanceId());\r\n handCheckResult(key, checkResult, client);\r\n } catch (Throwable e) {\r\n logger.error(\"[LivingTaskManager]: task checkJobInstanceStatus error, key:\" + key, e);\r\n handCheckResult(key, null, client);\r\n } finally {\r\n \tcheckAmount ++;\r\n }\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\r\n \t\t\r\n \t\tlogger.info(checkId + \", [LivingTaskManager]: finish checkJobInstanceStatus\"\r\n \t\t\t\t+ \", mapSize:\" + livingJobInstanceClientMachineMap.size() + \", checkAmount:\" + checkAmount);\r\n }",
"public boolean hasEnoughSpaceForExecution() {\r\n\t\tlong maxSpaceInHotfolder = Long.parseLong(props.getProperty(\"maxServerSpace\"));\r\n\t\tboolean enoughSpace = false;\r\n\t\ttry {\r\n\t\t\tenoughSpace = hotfolderManager.enoughSpaceAvailable(maxSpaceInHotfolder, inputDavUri, outputDavUri, errorDavUri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(\"Could not determine free space in hotfolder (\" + getName() + \")\", e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn enoughSpace;\t\r\n\t}",
"boolean hasProgress();"
] | [
"0.65386945",
"0.5835539",
"0.5547811",
"0.55136496",
"0.5511792",
"0.54409456",
"0.5422681",
"0.5420843",
"0.5412946",
"0.5378283",
"0.53269297",
"0.5321713",
"0.5318003",
"0.5312004",
"0.5276248",
"0.52712774",
"0.5256151",
"0.5240495",
"0.52370846",
"0.52120566",
"0.52015144",
"0.51851255",
"0.51848954",
"0.51848954",
"0.51848954",
"0.51848954",
"0.51848954",
"0.51848954",
"0.51848954",
"0.51848954",
"0.51848954",
"0.51848954",
"0.5153675",
"0.5147894",
"0.5070044",
"0.5070007",
"0.5064895",
"0.50600815",
"0.50587547",
"0.505608",
"0.5052413",
"0.5051764",
"0.50438994",
"0.50384635",
"0.50334805",
"0.5024445",
"0.5023597",
"0.50231665",
"0.50186926",
"0.50169206",
"0.50073457",
"0.49946383",
"0.49881145",
"0.49627653",
"0.49482504",
"0.49441463",
"0.49379542",
"0.49343413",
"0.49336088",
"0.49316758",
"0.49265838",
"0.49177518",
"0.490982",
"0.49080858",
"0.49078497",
"0.4907297",
"0.49069855",
"0.49040905",
"0.48895127",
"0.48862025",
"0.4883058",
"0.48795372",
"0.48565626",
"0.48499343",
"0.48475334",
"0.48396406",
"0.4838973",
"0.48386118",
"0.48380977",
"0.48380846",
"0.48343852",
"0.48294806",
"0.48270565",
"0.48269734",
"0.4826406",
"0.48235193",
"0.48197412",
"0.48150375",
"0.48129177",
"0.4803866",
"0.48009133",
"0.47844446",
"0.47829726",
"0.47802448",
"0.47772175",
"0.4776887",
"0.47697476",
"0.47681028",
"0.47635823",
"0.4751836"
] | 0.72225124 | 0 |
Check visibility of request multiple volume report | public void Req_Multiple_vol()
{
boolean reqmultiplepresent =Reqmultiple.size()>0;
if(reqmultiplepresent)
{
//System.out.println("Request multiple volume report is PRESENT");
}
else
{
System.out.println("Request multiple volume report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int askPermitToGetBetweenVisible();",
"boolean hasVolume();",
"boolean hasHadithVolumeNo();",
"@Override\r\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\r\n File root = new File(Environment.getExternalStorageDirectory()\r\n .getAbsolutePath() + \"/NDA/\");\r\n if (!root.exists()) {\r\n root.mkdirs();\r\n }\r\n apiDownload();\r\n }\r\n\r\n // check for permanent denial of any permission\r\n if (report.isAnyPermissionPermanentlyDenied()) {\r\n // show alert dialog navigating to Settings\r\n\r\n Toast.makeText(mContext, \"Please allow all permission to view books\", Toast.LENGTH_LONG).show();\r\n openSettingsDialog();\r\n }\r\n }",
"boolean isAllInview();",
"public void updateVisibility(Camera cam) {\n int i = 0;\n \n for(WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = face.getArestaDaFace();\n \n Vertice third = null;\n searchForAnyArestaParaEsquerda:\n for (WE_Aresta aresta : listaDeArestas){\n if (!aresta.equals(arestaFace)){\n if (face.ID == aresta.getFaceEsquerda().ID){\n third = aresta.getvFinal();\n break searchForAnyArestaParaEsquerda;\n } else if (face.ID == aresta.getFaceDireita().ID){\n third = aresta.getvInicial();\n break searchForAnyArestaParaEsquerda;\n }\n }\n }\n \n Vertice normal = VMath.obterNormal(arestaFace.getvFinal(), arestaFace.getvInicial(), third);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n i++;\n }\n throw new UnsupportedOperationException(\"This doesn't work and programmer should feel bad. :(\");\n //<editor-fold defaultstate=\"collapsed\" desc=\"Testes que não funcionaram\">\n /*System.out.println(\"Lista vertices: \" + listaDeVertices);\n System.out.println(\"Lista arestas: \" + listaDeArestas);\n System.out.println(\"Lista faces: \" + listaDeFaces);\n\n for (WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = face.getArestaDaFace();\n System.out.println(\"ARESTA FACE: \" + arestaFace);\n WE_Aresta next;\n Vertice third;\n if (arestaFace.getFaceEsquerda().ID == face.ID){\n next = arestaFace.getEsquerdaPredecessora();\n } else {\n next = arestaFace.getDireitaSucessora();\n }\n\n if (next.getvInicial().equals(arestaFace.getvInicial())\n ||next.getvInicial().equals(arestaFace.getvFinal ()))\n third = next.getvFinal();\n else\n third = next.getvInicial();\n\n System.out.println(\"POINTS (\" + face.ID + \"): \");\n System.out.println(\"One: \" + arestaFace.getvFinal());\n System.out.println(\"Two: \" + arestaFace.getvInicial());\n System.out.println(\"Thr: \" + third);\n\n Vertice normal = VMath.obterNormal(arestaFace.getvFinal(), arestaFace.getvInicial(), third);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n\n i++;\n }*/\n\n /*for (WE_Face face : listaDeFaces){\n WE_Aresta arestaFace = null;\n\n searchForAnyArestaParaEsquerda:\n for (WE_Aresta aresta : listaDeArestas){\n if (face.ID == aresta.getFaceEsquerda().ID){\n arestaFace = aresta;\n break searchForAnyArestaParaEsquerda;\n }\n }\n\n Vertice one = arestaFace.getvInicial();\n Vertice two = arestaFace.getvFinal();\n Vertice three;\n\n arestaFace = arestaFace.getEsquerdaSucessora();\n if (arestaFace.getvInicial().equals(two)){\n three = arestaFace.getvFinal();\n } else {\n three = arestaFace.getvInicial();\n }\n\n Vertice normal = VMath.obterNormal(two, one, three);\n VMath.normalizar(normal);\n double mult = VMath.produtoEscalar(cam.getVetorN(), normal);\n System.out.println(\"Normal: \" + normal + \" Mult: \" + mult);\n visibilidade_faces[i] = mult > 0; //Se mult>0, face[i] é visível\n }*/\n //</editor-fold>\n }",
"private void setButtonVisibilities(){\n\n if(eventType.equals(EventType.ORGANISE)){\n btnUpdateOrSignIn.setVisibility(View.VISIBLE);\n btnUpdateOrSignIn.setText(R.string.update);\n }\n else if(timeType.equals(TimeType.ONGOING) && eventType.equals(EventType.ATTEND)){\n btnUpdateOrSignIn.setVisibility(View.VISIBLE);\n btnUpdateOrSignIn.setText(R.string.sign_in);\n }\n else{\n btnUpdateOrSignIn.setVisibility(View.GONE);\n }\n }",
"boolean isAllInDownloadedArea();",
"private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}",
"public void checkRequestPermission(){\n\n\n hasPermission = (ActivityCompat.checkSelfPermission(this, Manifest.permission.VIBRATE)\n == PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n == PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED );\n//check group permissons\n if (!hasPermission){\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.VIBRATE,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE,\n Manifest.permission.READ_EXTERNAL_STORAGE\n\n },\n REQUEST_NETWORK_ACCESS);\n }\n }",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"@Path(\"status/{avaliability}\")\r\n @GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public Listings getStatus(@PathParam(\"avaliability\") String avaliability) throws JAXBException, IOException {\r\n appR applicationR = getApp();\r\n Listings listings = applicationR.getListings();\r\n Listings ret = new Listings();\r\n Boolean s = false;\r\n if (avaliability.equals(\"avaliable\") || avaliability.equals(\"true\")) {\r\n s = true;\r\n }\r\n\r\n for (Listing listing : listings.getList()) {\r\n if (listing.isAvailable() == s) {\r\n ret.addListing(listing);\r\n }\r\n }\r\n return ret;\r\n }",
"private void checkOffensive(AccessibilityNodeInfo mNodeInfo) {\n int mDebugDepth = 0;\n if (mNodeInfo == null) return;\n String log =\"\";\n for (int i = 0; i < mDebugDepth; i++) {\n log += \".\";\n }\n\n Intent inte = new Intent(this,OverlayActivity.class);\n inte.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n if (mNodeInfo.getText() != null) {\n String replaceString=(mNodeInfo.getText().toString()).replace(\" \",\"%20\");\n Log.e(TAG, \"checkOffensive: \" + url+replaceString);\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url+replaceString,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n try{\n //open overlay if offensiveness score greater than 0.8\n response += response.substring(response.indexOf(\":\") + 1, response.indexOf(\",\"));\n float response_float=Float.parseFloat(response);\n if (response_float > 0.7) {\n startActivity(inte);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n },\n error -> Log.e(\"ERROR\", \"\" + error.getMessage()));\n\n RequestQueue requestQueue = Volley.newRequestQueue(MyAccessibilityService.this);\n requestQueue.add(stringRequest);\n }\n\n log+=\"(\"+mNodeInfo.getText() +\" <-- \"+\n mNodeInfo.getViewIdResourceName()+\")\";\n Log.d(TAG, log);\n if (mNodeInfo.getChildCount() < 1) return;\n mDebugDepth++;\n\n for (int i = 0; i < mNodeInfo.getChildCount(); i++) {\n checkOffensive(mNodeInfo.getChild(i));\n }\n mDebugDepth--;\n }",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n }",
"public void updateVisibilityStatus(RecordSet recordSet, boolean includeReasonableDataCheck) {\n\t\tint channelConfigNumber = recordSet.getChannelConfigNumber();\n\t\tint displayableCounter = 0;\n\t\tRecord record;\n\t\tMeasurementType measurement;\n\t\t//0=VoltageRx, 1=Voltage, 2=Current, 3=Capacity, 4=Power, 5=Energy, 6=CellBalance, 7=CellVoltage1, 8=CellVoltage2, 9=CellVoltage3, \n\t\t//10=CellVoltage4, 11=CellVoltage5, 12=CellVoltage6, 13=Revolution, 14=Efficiency, 15=Height, 16=Climb, 17=ValueA1, 18=ValueA2, 19=ValueA3,\n\t\t//20=AirPressure, 21=InternTemperature, 22=ServoImpuls In, 23=ServoImpuls Out, \n\t\t//M-LINK 24=valAdd00 25=valAdd01 26=valAdd02 27=valAdd03 28=valAdd04 29=valAdd05 30=valAdd06 31=valAdd07 32=valAdd08 33=valAdd09 34=valAdd10 35=valAdd11 36=valAdd12 37=valAdd13 38=valAdd14;\n\t\tString[] measurementNames = this.getMeasurementNames(channelConfigNumber);\n\t\t// check if measurements isActive == false and set to isDisplayable == false\n\t\tfor (int i = 0; i < recordSet.size(); ++i) {\n\t\t\t// since actual record names can differ from device configuration measurement names, match by ordinal\n\t\t\trecord = recordSet.get(i);\n\t\t\tmeasurement = this.getMeasurement(channelConfigNumber, i);\n\t\t\tlog.log(Level.FINE, record.getName() + \" = \" + measurementNames[i]); //$NON-NLS-1$\n\n\t\t\t// update active state and displayable state if configuration switched with other names\n\t\t\tif (record.isActive() != measurement.isActive()) {\n\t\t\t\trecord.setActive(measurement.isActive());\n\t\t\t\trecord.setVisible(measurement.isActive());\n\t\t\t\trecord.setDisplayable(measurement.isActive());\n\t\t\t\tlog.log(Level.FINE, \"switch \" + record.getName() + \" to \" + measurement.isActive()); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t}\n\t\t\tif (includeReasonableDataCheck) {\n\t\t\t\trecord.setDisplayable(record.hasReasonableData() && measurement.isActive());\n\t\t\t\tlog.log(Level.FINE, record.getName() + \" ! hasReasonableData \"); //$NON-NLS-1$ \n\t\t\t}\n\n\t\t\tif (record.isActive() && record.isDisplayable()) {\n\t\t\t\tlog.log(Level.FINE, \"add to displayable counter: \" + record.getName()); //$NON-NLS-1$\n\t\t\t\t++displayableCounter;\n\t\t\t}\n\t\t}\n\t\tlog.log(Level.FINER, \"displayableCounter = \" + displayableCounter); //$NON-NLS-1$\n\t\trecordSet.setConfiguredDisplayable(displayableCounter);\n\t}",
"boolean hasCollectResult();",
"@GetMapping(\"/available\")\n public ResponseEntity<ApiResponseBase<List<ProductDTO>>> findByAvailability() {\n ApiResponseBase<List<ProductDTO>> pagedApiResponseBase = new ApiResponseBase<>();\n pagedApiResponseBase.setResponse(productService.getProductByAvailability());\n// kafkaTemplate.send(\"Kafka_Task1\", pagedApiResponseBase.getResponse().get(0));\n return new ResponseEntity<>(pagedApiResponseBase, HttpStatus.OK);\n }",
"private void analyzeData(){\n input1 = ihd1.getOutput();\n input2 = ihd2.getOutput();\n\n output1 = (input1 > IHD_limit);\n output2 = (input2 > IHD_limit);\n }",
"boolean hasDownloadRequest();",
"private void btnGetVisibleClicked(View v)\n {\n Intent enableBTIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n startActivityForResult(enableBTIntent,Constants.REQUEST_DISCOVERABILITY_BT);\n }",
"public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n openGalleryStatus.setValue(true);\n } else if (report.isAnyPermissionPermanentlyDenied()) {\n errorMessage.setValue(Constants.PERMISSION_ERROR);\n } else {\n errorMessage.setValue(Constants.CHECK_PERMISSION);\n }\n }",
"public boolean getAvailability(){\n return availabile;\n }",
"private void updateListVisibility() {\n switch (currentFilter) {\n case 0: // Available quests...\n if (user.getInt(QuestApp.ALIGNMENT_KEY) == 0) { //... for good heroes\n setListAdapter(adapterAvailableGood);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 1) { //... for neutral heroes\n setListAdapter(adapterAvailableNeutral);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 2){ //... for evil heroes\n setListAdapter(adapterAvailableEvil);\n }\n break;\n case 1: // Accepted quests\n setListAdapter(adapterAccepted);\n break;\n case 2: // Completed quests\n setListAdapter(adapterCompleted);\n break;\n }\n }",
"private void videoVisible() {\n }",
"public boolean hasVolume() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasVolume() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@Test\n public void testAvailableResources() {\n MetricValue mv = new MetricValue.Builder().load(50).add();\n\n Set<String> diskSet = ImmutableSet.of(\"disk1\", \"disk2\");\n\n diskSet.forEach(disk -> DISK_METRICS.forEach(cmt ->\n testUpdateMetricWithResource(cmt, mv, disk)));\n\n Set<String> networkSet = ImmutableSet.of(\"eth0\", \"eth1\");\n\n networkSet.forEach(network -> NETWORK_METRICS.forEach(cmt ->\n testUpdateMetricWithResource(cmt, mv, network)));\n\n assertThat(monitor.availableResourcesSync(nodeId, Type.DISK), is(diskSet));\n assertThat(monitor.availableResourcesSync(nodeId, Type.NETWORK), is(networkSet));\n }",
"public static boolean checkResources(){\n for(Instruction i : waitingList){\n if(resourceArr[i.resourceType - 1] >= i.resourceAmount){\n return true;\n }\n }\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n if(instructionType != Type.request){\n return true;\n }else{\n if(resourceArr[currInstruction.resourceType - 1] >= currInstruction.resourceAmount){\n return true;\n }\n }\n }\n\n }\n return false;\n }",
"default CompletableFuture<List<Box>> queryVisible() {\n //Fill search Map with the Values\n final Map<String,Object> searchData = new HashMap<String,Object>() {\n {\n put(BoxPersistenceDAO.QUERY_PARAM_DELFLAG, false);\n }\n\n @Override\n public Object put(String key, Object o) {\n if (o != null) return super.put(key, o);\n return null;\n }\n };\n\n return query(searchData);\n }",
"protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }",
"private void viewPendingRequests() {\n\n\t}",
"Observable<PrivateLinkServiceVisibility> checkPrivateLinkServiceVisibilityAsync(String location);",
"boolean checkResourceFieldsChanged(final String param,\n final String[] params,\n final boolean fromDrbdInfo) {\n boolean changed = false;\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n if (dvi.checkResourceFieldsChanged(param,\n dvi.getParametersFromXML(),\n fromDrbdInfo,\n true)) {\n changed = true;\n }\n }\n if (checkHostAddressesFieldsChanged()) {\n changed = true;\n }\n return super.checkResourceFieldsChanged(param, params) || changed;\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n //Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n openCamera();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n showSettingsDialog();\n }\n }",
"public List<Volume> list() {\n List<Volume> volumes = new ArrayList<Volume>();\n\n try {\n\n HttpResponse<Volume[]> jsonResponse = Unirest.get(rootUrl + ENDPOINT_DATASET_LIST)\n .basicAuth(auth.getUsername(),auth.getPassword())\n .header(\"accept\", \"application/json\")\n .asObject(Volume[].class);\n //System.out.print(jsonResponse.getBody());\n\n if (jsonResponse.getStatus() == HttpStatus.SC_OK) {\n Volume [] body = jsonResponse.getBody();\n System.out.println(body);\n\n for (Volume b: body){\n volumes.add(b);\n }\n }\n\n } catch (UnirestException e) {\n e.printStackTrace();\n }\n\n return volumes;\n }",
"void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }",
"public void requestUpdateVolume(int delta) {\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n if (isInternetPresent = koneksiAdapter.isConnectingToInternet()) {\n if (!sessionAdapter.getNoSambungan().equals(\"\")){\n getPengaduan(sessionAdapter.getNoSambungan());\n }\n }else{\n SnackbarManager.show(\n com.nispok.snackbar.Snackbar.with(PengaduanActivity.this)\n .text(\"No Connection !\")\n .duration(com.nispok.snackbar.Snackbar.SnackbarDuration.LENGTH_INDEFINITE)\n .actionLabel(\"Refresh\")\n .actionListener(new ActionClickListener() {\n @Override\n public void onActionClicked(com.nispok.snackbar.Snackbar snackbar) {\n refresh();\n }\n })\n , PengaduanActivity.this);\n }\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n showSettingsDialog();\n }\n }",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"boolean hasQueryVisibility();",
"public void checkChannel1(){\n\t\ttools.findAndReport(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.support.v4.view.ViewPager/android.view.View/android.widget.RelativeLayout/android.support.v7.widget.RecyclerView/android.widget.LinearLayout[1]/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout\", \"No se encuentra el primer en vivo\");\r\n\t}",
"boolean isLimited();",
"public void Request_type()\n {\n\t boolean reqtypepresent =reqtype.size()>0;\n\t if(reqtypepresent)\n\t {\n\t\t //System.out.println(\"Request type report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request type report is not present\");\n\t }\n }",
"public void getVisibleVirtualViews(List<Integer> list) {\n if (AbsVideoSceneMgr.this.getActiveScene() != null) {\n AbsVideoSceneMgr.this.getActiveScene().getAccessibilityVisibleVirtualViews(list);\n }\n }",
"public void checkFileCount() {\n if (lv.getCheckedItemCount() > 0 && lv.getCheckedItemCount() != 1) {\n btnView.setClickable(false);\n btnView.setBackgroundColor(Color.TRANSPARENT);\n btnSend.setBackgroundResource(android.R.drawable.btn_default);\n btnSend.setClickable(true);\n btnDel.setBackgroundResource(android.R.drawable.btn_default);\n btnDel.setClickable(true);\n\n\n\n } if(lv.getCheckedItemCount() == 1) {\n\n btnSend.setClickable(true);\n btnSend.setBackgroundResource(android.R.drawable.btn_default);\n btnView.setClickable(true);\n btnView.setBackgroundResource(android.R.drawable.btn_default);\n btnDel.setBackgroundResource(android.R.drawable.btn_default);\n btnDel.setClickable(true);\n }\n if(lv.getCheckedItemCount() == 0){\n btnSend.setBackgroundColor(Color.TRANSPARENT);\n btnSend.setClickable(false);\n btnView.setClickable(false);\n btnView.setBackgroundColor(Color.TRANSPARENT);\n btnDel.setBackgroundColor(Color.TRANSPARENT);\n btnDel.setClickable(false);\n }\n\n }",
"public void printVisiblePermitcCards(int region, PermitCard[] permits);",
"void onCheckViewedComplete(boolean isViewed);",
"boolean hasListResponse();",
"@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n @Override\n public void run() {\n Log.v(\"Check UrlArraylist\", String.valueOf(AsyncUrl.url_arrayList.size()));\n Log.v(\"Check NameArraylist\", String.valueOf(AsyncUrl.name_arrayList.size()));\n\n if (AsyncUrl.url_arrayList != null){\n\n Log.v(\"Check Entry\", String.valueOf(url_arrayList.size()));\n final StoreCardAdapter adapter = new StoreCardAdapter(QBPDFViewer.this);\n adapter.DownloadFile(QBPDFViewer.this,country,university,course,semester,subject,subjectId,\n subjectNumber,freeValidity,paidValidity,duration,videoCount,notesCount,qbankCount);\n\n }\n }",
"public Map<String, VPlexVirtualVolumeInfo> getVirtualVolumes(boolean shallow) throws VPlexApiException {\n s_logger.info(\"Request for {} discovery of virtual volume info for VPlex at {}\",\n (shallow ? \"shallow\" : \"deep\"), _baseURI);\n\n Map<String, VPlexVirtualVolumeInfo> virtualVolumeInfoMap = new HashMap<String, VPlexVirtualVolumeInfo>();\n Map<String, VPlexVirtualVolumeInfo> distributedVirtualVolumesMap = new HashMap<String, VPlexVirtualVolumeInfo>();\n Map<String, Map<String, VPlexVirtualVolumeInfo>> localVirtualVolumesMap = new HashMap<String, Map<String, VPlexVirtualVolumeInfo>>();\n\n // Get the cluster information.\n List<VPlexClusterInfo> clusterInfoList = getClusterInfoLite();\n for (VPlexClusterInfo clusterInfo : clusterInfoList) {\n String clusterId = clusterInfo.getName();\n // for each cluster get the virtual volume information.\n List<VPlexVirtualVolumeInfo> clusterVirtualVolumeInfoList = _discoveryMgr.getVirtualVolumesForCluster(clusterId);\n for (VPlexVirtualVolumeInfo virtualVolumeInfo : clusterVirtualVolumeInfoList) {\n virtualVolumeInfo.addCluster(clusterId);\n String virtualVolumeName = virtualVolumeInfo.getName();\n\n if (!virtualVolumeInfoMap.containsKey(virtualVolumeName)) {\n // We want the unique list of virtual volumes on all\n // clusters. Distributed volumes will appear on both\n // clusters.\n virtualVolumeInfoMap.put(virtualVolumeName, virtualVolumeInfo);\n\n // If we are doing a deep discovery of the virtual volumes\n // keep a list of the distributed virtual volumes and a list\n // of the local virtual volumes for each cluster.\n if (!shallow) {\n String supportingDeviceName = virtualVolumeInfo.getSupportingDevice();\n if (VPlexVirtualVolumeInfo.Locality.distributed.name().equals(\n virtualVolumeInfo.getLocality())) {\n distributedVirtualVolumesMap.put(supportingDeviceName,\n virtualVolumeInfo);\n } else {\n Map<String, VPlexVirtualVolumeInfo> clusterLocalVolumesMap = localVirtualVolumesMap\n .get(clusterId);\n if (clusterLocalVolumesMap == null) {\n clusterLocalVolumesMap = new HashMap<String, VPlexVirtualVolumeInfo>();\n localVirtualVolumesMap.put(clusterId, clusterLocalVolumesMap);\n }\n clusterLocalVolumesMap.put(supportingDeviceName, virtualVolumeInfo);\n }\n }\n } else if (VPlexVirtualVolumeInfo.Locality.distributed.name().equals(\n virtualVolumeInfo.getLocality())) {\n // on a distributed volume, we need to be sure to add the second\n // cluster id as well... this is needed by ingestion. see CTRL-10982\n virtualVolumeInfoMap.get(virtualVolumeName).addCluster(clusterId);\n }\n }\n }\n // Do the deep discovery of the component structure for each\n // virtual volume, if necessary.\n if (!shallow) {\n // Get the component structure for each distributed virtual volume\n // starting with the supporting distributed device.\n _discoveryMgr.setSupportingComponentsForDistributedVirtualVolumes(distributedVirtualVolumesMap);\n\n // Get the component structure for each local virtual volume\n // starting with the supporting local device.\n for (Map.Entry<String, Map<String, VPlexVirtualVolumeInfo>> mapEntry : localVirtualVolumesMap\n .entrySet()) {\n _discoveryMgr.setSupportingComponentsForLocalVirtualVolumes(\n mapEntry.getKey(), mapEntry.getValue());\n }\n }\n\n return virtualVolumeInfoMap;\n }",
"public void verifyOptionDownloadAttachmentsOnBulkActionsDropDown() {\n getLogger().info(\"Bulk Actions option Download Attachments disable.\");\n if (optionDownloadAttachments.getAttribute(\"class\").equals(\"item disabled\")) {\n NXGReports.addStep(\"Bulk Actions option Download Attachments disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Bulk Actions option Download Attachments disable.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"void onPDFViewVisibilityChanged(int prevVisibility, int currVisibility);",
"private void checkButtonVisibility() {\n\n if (leftBlockIndex > 0) {\n buttonLeft.setVisibility(View.VISIBLE);\n } else {\n buttonLeft.setVisibility(View.INVISIBLE);\n }\n\n if (leftBlockIndex < blockCount - 2) {\n buttonRight.setVisibility(View.VISIBLE);\n } else {\n buttonRight.setVisibility(View.INVISIBLE);\n }\n\n }",
"private void Visibility(Boolean vis) {\n jSP1.setVisible(vis);\r\n jSP2.setVisible(vis);\r\n loadFile.setVisible(!vis);\r\n saveFile.setVisible(!vis);\r\n sourceFileLabel.setVisible(!vis);\r\n sourceFileName.setVisible(!vis);\r\n resultFileLabel.setVisible(!vis);\r\n resultFileName.setVisible(!vis);\r\n }",
"boolean hasFindGameRoomsResponse();",
"void getAdvertsAvailableWithFilter(AdvertFilter filter, Coordinates currentLocation, final AdvertListResult result);",
"private boolean isPublicallyDownloadable(DvObject dvo) {\n if (dvo instanceof DataFile) {\n // unrestricted files that are part of a release dataset \n // automatically get download permission for everybody:\n // -- L.A. 4.0 beta12\n\n DataFile df = (DataFile) dvo;\n\n if (!df.isRestricted()) {\n if (df.getOwner().getReleasedVersion() != null) {\n if (df.getOwner().getReleasedVersion().getFileMetadatas() != null) {\n for (FileMetadata fm : df.getOwner().getReleasedVersion().getFileMetadatas()) {\n if (df.equals(fm.getDataFile())) {\n return true;\n }\n }\n }\n }\n }\n }\n return false;\n }",
"public static boolean enableVolumeMonitoring() {\r\n return enableVolumeMonitoring.getValue();\r\n }",
"boolean isInDownloadedArea();",
"public Boolean IsIOrequest() {\n Random r = new Random();\n int k = r.nextInt(100);\n //20%\n if (k <= 20) {\n return true;\n }\n return false;\n }",
"@Override\n protected Void doInBackground(Void... params) {\n ValResult = Shell.SU.run(new String[]{\n \"wm density | grep \\\"Override\\\"\"\n });\n if(ValResult.isEmpty()){\n System.out.println(\"Entered in isEmpty\");\n ValResult = Shell.SU.run(new String[]{\n \"wm density | grep \\\"Physical\\\"\"\n });\n }\n System.out.println(\"validate density executed ==> \" + ValResult.get(0));\n return null;\n }",
"public void checkApplyReferralCanBeAppliedOrNot() {\n String url = APIBaseURL.checkHavingReferralOrNot + SaveSharedPreference.getLoggedInUserEmail(ConsumerCheckOutActivity.this);\n\n CustomVolleyRequest customVolleyRequest = new CustomVolleyRequest(Request.Method.GET, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n// {\n// \"isSuccess\": true,\n// \"errorMessage\": \"\",\n// \"data\": {\n// \"isHavingReffrral\": false\n// },\n// \"count\": 0\n// }\n Log.d(\"ReferralApplyResponse\", response);\n try {\n JSONObject jsonObject = new JSONObject(response);\n Boolean isSuccess = jsonObject.optBoolean(\"isSuccess\");\n if (isSuccess) {\n JSONObject dataObject = new JSONObject();\n if (jsonObject.has(\"data\")) {\n dataObject = jsonObject.getJSONObject(\"data\");\n }\n\n Boolean isHavingReffrral = dataObject.optBoolean(\"isHavingReffrral\");\n\n if (isHavingReffrral) {\n referralrootLayout.setVisibility(View.VISIBLE);\n\n Boolean isRefferalAppliedorNot = dataObject.optBoolean(\"isRefferalApplied\");\n\n if (isRefferalAppliedorNot) {\n checkReferral.setChecked(true);\n\n stateReferralAppliedorNot = true;\n } else {\n checkReferral.setChecked(false);\n\n stateReferralAppliedorNot = false;\n }\n } else {\n referralrootLayout.setVisibility(View.GONE);\n }\n\n\n getCartCheckOutItems(1, 1,true);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n stateReferralAppliedorNot = false;\n getCartCheckOutItems(1, 1,true);\n }\n }, consumerCheckOutActivity);\n ApplicationController.getInstance().addToRequestQueue(customVolleyRequest, \"having_referral_or_not\");\n\n\n }",
"public boolean isVisible(Visibility v);",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n //Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n // showSettingsDialog();\n }\n }",
"public boolean hasVisibleItems();",
"public void queryAccelerometerData()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(serverRequestStatus==true)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcheckApi();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void checkAvailability() {\n if (productList != null) {\n if (productList.size() == 0) {\n noProductText.setVisibility(View.VISIBLE);\n } else {\n noProductText.setVisibility(View.GONE);\n }\n }\n }",
"private void checkFlags(Packet packet) { \n if (checkAvailableFilesListCorrectFlags(packet)) {\n //System.out.println(\" AFL packet\");\n this.availableFilesListPacketDealer(packet);\n } else if (checkDownloadingCorrectFlags(packet)) {\n //System.out.println(\" DOWN packet\");\n this.downloadingPacketDealer(packet);\n } else if (checkStatisticsCorrectFlags(packet)) {\n //System.out.println(\" STAT packet\");\n this.statisticsPacketDealer(packet);\n } else if (checkPauseCorrectFlags(packet)) {\n //System.out.println(\" PAU packet\");\n this.pausePacketDealer(packet);\n } else if (checkResumeCorrectFlags(packet)) {\n //System.out.println(\" RES packet\");\n this.resumePacketDealer(packet);\n } else if (checkDownloadingFilesListCorrectFlags(packet)) {\n //System.out.println(\" DFL packet\");\n this.downloadingFilesListPacketDealer(packet);\n } else if (checkPausedFilesListCorrectFlags(packet)) {\n //System.out.println(\" PFL packet\");\n this.pausedFilesListPacketDealer(packet);\n } else if (checkUploadingCorrectFlags(packet)) {\n //System.out.println(\" UP packet\");\n this.uploadingPacketDealer(packet);\n } else if (checkExitCorrectFlags(packet)) {\n //System.out.println(\" EXIT packet\");\n this.exitPacketDealer(packet);\n } else {\n this.packetIncorrect(packet);\n \n } \n }",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n showSettingsDialog();\n }\n }",
"void getAllAdvertsPublishedAvailable(String uidAdvertiser, final AdvertListResult result);",
"protected void onGetBathWaterVolumeSetting1(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"public void viewDetailAllPlantCanHarvest() {\n\t\tint i = 1;\n\t\tint l = 0;//check Harvest\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\t\tl++;\n\t\t\t}\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\tif(!checkPlantCanHarvest()){\n\t\t\tSystem.out.println(\"No Plant\");\n\t\t}\n\t\telse{\n\t\tfor(Plant p : getListofplant()){\n\t\t\tif(p.canHarvest()){\n\t\t\tSystem.out.println( i + \" \" + p.viewDetail() + \" StatusWater : \" + p.getStatusWater()\n\t\t\t+ \" StatusHarvest : \" + p.getStatusHarvest());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t}\n\t\t\n\t}",
"private boolean isUserVisibleEvent(int eventType) {\n return eventType != UsageEvents.Event.SYSTEM_INTERACTION\n && eventType != UsageEvents.Event.STANDBY_BUCKET_CHANGED;\n }",
"public void checkAvaliableElevators()\r\n\t{\r\n\t\tSystem.out.println(\"--------- Checking Elevators Current Status ------\");\t\r\n\t\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tfor(int i=0; i <numberOfElevators-3; i++) {\r\n\t\t\t\tavailableElevadors.add(occupiedElevadors.remove(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"--------- Elevators are available again ------\");\r\n\t\t\r\n\t\t}else {\r\n\t\t\tfor(int i=0;i<availableElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + availableElevadors.get(i).getElevatorNumber() +\" ready for Requests\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<occupiedElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + occupiedElevadors.get(i).getElevatorNumber() +\" is Occupied\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t}\r\n\r\n\t}",
"private boolean checkMultiplePlaneEdit(){\r\n\t\tboolean flag=false;\r\n\t\tfor(UiAirplaneModel model:uiAirplaneModel.getAirplaneList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"java.util.List<org.landxml.schema.landXML11.TrafficVolumeDocument.TrafficVolume> getTrafficVolumeList();",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"public void Large_Req_detail()\n {\n\t boolean largereqpresent =lareqdetails.size()>0;\n\t if(largereqpresent)\n\t {\n\t\t// System.out.println(\"Large Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Large Request details report is not present\");\n\t }\n }",
"boolean hasFindGameRoomsRequest();",
"private void DownloadCMVMMVFiles() {\n ConnectivityManager cm = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo nInfo = cm.getActiveNetworkInfo();\r\n if (nInfo != null && nInfo.isAvailable() && nInfo.isConnected()) {\r\n dbHelper.open();\r\n ArrayList<String> mfb = dbHelper.getCMVFiles(divid, rangeCode, fbid);\r\n String path = GetFilePath();\r\n for (int i = 0; i < mfb.size(); i++) {\r\n if (!mfb.get(i).equals(\"null\")) {\r\n getCMVData(mfb.get(i));\r\n }\r\n }\r\n /* if (state == true && circle == true && ran == true && div == true) {\r\n\r\n } else {\r\n for (int i = 0; i < master.length; i++) {\r\n getCMVData(master[i]);\r\n }\r\n }*/\r\n } else {\r\n Toast.makeText(this, \"Please check your Internet Connection.\", Toast.LENGTH_SHORT).show();\r\n }\r\n }",
"Boolean isAvailable();",
"private void checkRuntimePermisson(boolean flag) {\n try {\n int hasRecordAudioPermission = 0;\n int hasWriteExternalStoragePermission = 0;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n hasWriteExternalStoragePermission = getActivity().checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n hasRecordAudioPermission = getActivity().checkSelfPermission(Manifest.permission.RECORD_AUDIO);\n if (hasWriteExternalStoragePermission != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS_STORAGE);\n return;\n } else if (hasRecordAudioPermission != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.RECORD_AUDIO},\n REQUEST_CODE_ASK_PERMISSIONS_RECORD_AUDIO);\n return;\n }\n }\n if (flag) {\n intializeRecorder();\n }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_checkRuntimePermisson()\");\n }\n\n }",
"private void discoverableRequest() {\n final AlertDialog.Builder dialog_builder = new AlertDialog.Builder(this);\n\n // Sets the title for the popup dialog\n dialog_builder.setTitle(\"Make Host Device Discoverable\");\n dialog_builder.setMessage(\"Top level stuff here. Sadly, you don't have appropriate permissions to do this.\");\n final AlertDialog dialog = dialog_builder.create();\n // Displays the dialogue\n dialog.show();\n }",
"private static void reportStatistics() {\n SmartDashboard.putNumber(\"Speed value\", speed);\n SmartDashboard.putNumber(\"Desired RPM\", kVelocitySetpoint);\n SmartDashboard.putNumber(\"Error\", error);\n SmartDashboard.putNumber(\"ErrorSum\", errorSum);\n SmartDashboard.putNumber(\"Flywheel Velocity (Master)\", -flywheelMaster.getSelectedSensorVelocity());\n\n if(d >= kMinThreePoint && d <= kMaxThreePoint) { //If we are in the range for a 3-point shot\n threePointDistanceEntry.setBoolean(true); //Alert operator\n } else { //If we are not in the range for a 3-point shot\n threePointDistanceEntry.setBoolean(false); //Alert operator\n }\n\n if(d >= kMinViableRange && d <= kMaxViableRange) { //If we are in the viable range for any power port shot\n viableDistanceEntry.setBoolean(true); //Alert operator\n } else { //If we cannot make a shot into the power port\n viableDistanceEntry.setBoolean(false); //Alert operator\n }\n }",
"public final boolean isDataAvailable() {\n\t\tif ( hasStatus() >= FileSegmentInfo.Available &&\n\t\t\t\t hasStatus() < FileSegmentInfo.Error)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"boolean hasUsage();",
"private void setChecks() {\n try {\n // Get status of theFile\n FTPReply statReply = client.sendCustomCommand(\"STAT \" + theFile);\n String[] messages = statReply.getMessages();\n\n // Get permissions from messages\n char[] perms = new char[9];\n messages[1].getChars(2,11,perms,0);\n\n // Set owner permission check boxes\n if (perms[0] == 'r') ownerRead.setSelected(true);\n if (perms[1] == 'w') ownerWrite.setSelected(true);\n if (perms[2] == 'x') ownerExe.setSelected(true);\n\n // Set group permission check boxes\n if (perms[3] == 'r') groupRead.setSelected(true);\n if (perms[4] == 'w') groupWrite.setSelected(true);\n if (perms[5] == 'x') groupExe.setSelected(true);\n\n // Set all permission check boxes\n if (perms[6] == 'r') allRead.setSelected(true);\n if (perms[7] == 'w') allWrite.setSelected(true);\n if (perms[8] == 'x') allExe.setSelected(true);\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (FTPIllegalReplyException e) {\n e.printStackTrace();\n }\n }",
"public boolean hasRequests(){\n return (tradeRequests.size() > 0 || userRequests.size() > 0);\n }",
"com.google.protobuf.ByteString getQueryVisibilityBytes();",
"public interface IDataView {\n\n void onDataDownloadResponse(int eventId, List<VariantGroup> variantGroupData, List<List<ExcludeList>> excludeData);\n}",
"private void checkSupplierData(String name, boolean speakStatus) {\n try {\n SpeakSupplierData = speakStatus;\n if (!TextUtils.isEmpty(name)) {\n boolean value = false;\n String supplierId = \"\";\n String fullname = \"\";\n String imagePath = \"\";\n String supplierOustanding = \"0\";\n RealmResults<SupplierListRealm> supplierListRealmsModels = realm.where(SupplierListRealm.class).findAll();\n int sameUserCount = 0;\n sameSupplierList.clear();\n filterMultipleSupplierList.clear();\n filterMultipleSupplierListTwo.clear();\n for (SupplierListRealm object : supplierListRealmsModels) {\n String firstname = \"\";\n String middlename = \"\";\n String lastname = \"\";\n if (object.getSLastname() != null) {\n lastname = object.getSLastname();\n }\n if (object.getSMiddleName() != null) {\n middlename = object.getSMiddleName();\n }\n if (object.getSFirstname() != null) {\n firstname = object.getSFirstname();\n }\n String finalname = \"\";\n if (TextUtils.isEmpty(middlename) && TextUtils.isEmpty(lastname)) {\n finalname = firstname;\n } else if (TextUtils.isEmpty(middlename)) {\n finalname = firstname + \" \" + lastname;\n } else {\n finalname = firstname + \" \" + middlename + \" \" + lastname;\n }\n if (finalname.toLowerCase().contains(name.toLowerCase())) {\n sameUserCount++;\n value = true;\n supplierId = object.getSupplierId();\n fullname = finalname;\n if (object.getOutstanding() != null && object.getOutstanding().contains(\".\")) {\n String result = object.getOutstanding();\n supplierOustanding = result.substring(0, result.indexOf(\".\"));\n } else if (object.getOutstanding() != null) {\n supplierOustanding = object.getOutstanding();\n }\n imagePath = object.getImagePath();\n\n sameSupplierList.add(object);\n }\n }\n\n filterMultipleSupplierList.addAll(sameSupplierList);\n filterMultipleSupplierListTwo.addAll(sameSupplierList);\n if (value && sameUserCount == 1) {\n Glide.with(mContext).load(new CustomRetroRequest().imageURL + imagePath)\n .into(imageviewSOutsnadingProfile);\n textviewSOustandingId.setText(supplierId);\n textviewSOustandingName.setText(fullname);\n textviewSOustandingAmount.setText(removeContainsDot(supplierOustanding));\n textview_notFound.setVisibility(View.GONE);\n relativelayoutSOustandingProfile.setVisibility(View.VISIBLE);\n try {\n if (editextPurchaseSupplierName != null) {\n editextPurchaseSupplierName.removeTextChangedListener(textWatcherPurchaseSupplierName);\n editextPurchaseSupplierName.setText(fullname);\n editextPurchaseSupplierName.addTextChangedListener(textWatcherPurchaseSupplierName);\n }\n } catch (Exception ae) {\n setError(ae.getMessage());\n }\n// if (speakStatus) {\n if (false) {\n Character s = supplierId.charAt(0);\n\n if (s.toString().equals(\"-\")) {\n String languageCode = Utility.getInstance().getLanguage(mContext);\n if (languageCode.matches(\"\") || languageCode.matches(langaugeCodeEnglish)) {\n speak(fullname + \" \" + getString(R.string.menuoutstanding) + \" \" + supplierOustanding, \"\");\n } else {\n speak(fullname + \" \" + getString(R.string.menuoutstanding) + \" \" + supplierOustanding, \"\");\n // speak(fullname + \" \" + getString(R.string.menuoutstanding) + \" \" + getString(R.string.minus) + \" \" + Oustanding, \"\");\n }\n } else {\n speak(fullname + \" \" + getString(R.string.menuoutstanding) + \" \" + supplierOustanding, \"\");\n }\n/* if (edittextoustandingcustomerName!=null){\n edittextoustandingcustomerName.setText(fullname);\n }*/\n\n\n }\n } else if (sameUserCount > 1) {\n showMultipleSupplierPopup(sameSupplierList);\n } else {\n textview_notFound.setVisibility(View.VISIBLE);\n relativelayoutSOustandingProfile.setVisibility(View.GONE);\n if (speakStatus) {\n // speak(getString(R.string.Supplier_not_found), \"\");\n }\n }\n } else {\n textview_notFound.setVisibility(View.GONE);\n relativelayoutSOustandingProfile.setVisibility(View.GONE);\n }\n } catch (Exception ae) {\n ae.printStackTrace();\n Log.d(LOGPOS, \"checkOustandingData: \" + ae.getMessage());\n }\n }",
"public boolean checkVisible(int i) {\n\t\tvobject[i].calculateRelativePosition(camera.x_pos,camera.y_pos,camera.z_pos,camera.x_rot,camera.y_rot,camera.z_rot);\n\t\tif (vobject[i].rel_z_pos+vobject[i].radius>0) {vobject[i].visible=true;}\n\t\tif (vobject[i].rel_z_pos+vobject[i].radius<0) {vobject[i].visible=false;}\n\t\treturn vobject[i].visible;\n\t}",
"private void getloggersStatus() { \n\t\tAppClientFactory.getInjector().getSearchService().isClientSideLoggersEnabled(new SimpleAsyncCallback<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\tAppClientFactory.setClientLoggersEnabled(result);\n\t\t\t}\n\t\t\t\n\t\t});\n\t}",
"void getAllAdvertsAvailable(final AdvertListResult result);",
"public final void updateViewVisibility() {\n boolean z;\n MediaHostStateHolder mediaHostStateHolder = this.state;\n if (getShowsOnlyActiveMedia()) {\n z = this.mediaDataManager.hasActiveMedia();\n } else {\n z = this.mediaDataManager.hasAnyMedia();\n }\n mediaHostStateHolder.setVisible(z);\n int i = getVisible() ? 0 : 8;\n if (i != getHostView().getVisibility()) {\n getHostView().setVisibility(i);\n Iterator<T> it = this.visibleChangedListeners.iterator();\n while (it.hasNext()) {\n ((Function1) it.next()).invoke(Boolean.valueOf(getVisible()));\n }\n }\n }"
] | [
"0.5484961",
"0.5413157",
"0.51090497",
"0.5108438",
"0.5099354",
"0.50734186",
"0.5003811",
"0.4995127",
"0.49656022",
"0.49451202",
"0.49039137",
"0.48870075",
"0.48694456",
"0.48457977",
"0.4801743",
"0.4792835",
"0.47523397",
"0.47428447",
"0.47406873",
"0.47256476",
"0.4720198",
"0.47182593",
"0.47156385",
"0.4711491",
"0.47093588",
"0.46927083",
"0.46873212",
"0.46854785",
"0.46852347",
"0.46845597",
"0.46739256",
"0.4668857",
"0.46680883",
"0.4667217",
"0.46647176",
"0.46597534",
"0.46430117",
"0.4640679",
"0.46374252",
"0.46315908",
"0.46296588",
"0.46259245",
"0.46206307",
"0.46193585",
"0.4615636",
"0.4610642",
"0.46083266",
"0.4605847",
"0.46020424",
"0.46012336",
"0.45969725",
"0.45855102",
"0.45850685",
"0.45791113",
"0.45685688",
"0.4565947",
"0.4557199",
"0.45560604",
"0.4547643",
"0.45428628",
"0.4539058",
"0.45371988",
"0.45330858",
"0.45316163",
"0.45277172",
"0.4520421",
"0.4519522",
"0.45159262",
"0.45132315",
"0.45106667",
"0.4510282",
"0.4506685",
"0.45033336",
"0.45009547",
"0.44928932",
"0.44919455",
"0.44857448",
"0.44823685",
"0.44806382",
"0.44806382",
"0.44806382",
"0.44806382",
"0.44803977",
"0.4477513",
"0.44752866",
"0.44717884",
"0.447171",
"0.4466445",
"0.44656146",
"0.44608212",
"0.4460479",
"0.4459846",
"0.44587708",
"0.445655",
"0.44535884",
"0.44530696",
"0.4452525",
"0.44437435",
"0.4443395",
"0.44295382"
] | 0.7049242 | 0 |
Check visibility of feedbck request report | public void Feedback_req()
{
boolean feedbackreqpresent =Feedbackreq.size()>0;
if(feedbackreqpresent)
{
// System.out.println("Feedback Request report is PRESENT");
}
else
{
System.out.println("Feedback Request report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"boolean hasDownloadRequest();",
"boolean isInDownloadedArea();",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"boolean hasCampaignFeed();",
"boolean hasFeed();",
"boolean hasFeed();",
"private void viewPendingRequests() {\n\n\t}",
"boolean hasQueryVisibility();",
"public int askPermitToGetBetweenVisible();",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean isAllInDownloadedArea();",
"boolean hasCustomerFeed();",
"public boolean isDownloading()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_DOWNLOADING;\r\n }",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"boolean hasRemarketingAction();",
"boolean hasBidrequest();",
"boolean isAllInview();",
"boolean isReadyForShowing();",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"void connectionFound() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.GONE);\n }",
"public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"public void checkApplyReferralCanBeAppliedOrNot() {\n String url = APIBaseURL.checkHavingReferralOrNot + SaveSharedPreference.getLoggedInUserEmail(ConsumerCheckOutActivity.this);\n\n CustomVolleyRequest customVolleyRequest = new CustomVolleyRequest(Request.Method.GET, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n// {\n// \"isSuccess\": true,\n// \"errorMessage\": \"\",\n// \"data\": {\n// \"isHavingReffrral\": false\n// },\n// \"count\": 0\n// }\n Log.d(\"ReferralApplyResponse\", response);\n try {\n JSONObject jsonObject = new JSONObject(response);\n Boolean isSuccess = jsonObject.optBoolean(\"isSuccess\");\n if (isSuccess) {\n JSONObject dataObject = new JSONObject();\n if (jsonObject.has(\"data\")) {\n dataObject = jsonObject.getJSONObject(\"data\");\n }\n\n Boolean isHavingReffrral = dataObject.optBoolean(\"isHavingReffrral\");\n\n if (isHavingReffrral) {\n referralrootLayout.setVisibility(View.VISIBLE);\n\n Boolean isRefferalAppliedorNot = dataObject.optBoolean(\"isRefferalApplied\");\n\n if (isRefferalAppliedorNot) {\n checkReferral.setChecked(true);\n\n stateReferralAppliedorNot = true;\n } else {\n checkReferral.setChecked(false);\n\n stateReferralAppliedorNot = false;\n }\n } else {\n referralrootLayout.setVisibility(View.GONE);\n }\n\n\n getCartCheckOutItems(1, 1,true);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n stateReferralAppliedorNot = false;\n getCartCheckOutItems(1, 1,true);\n }\n }, consumerCheckOutActivity);\n ApplicationController.getInstance().addToRequestQueue(customVolleyRequest, \"having_referral_or_not\");\n\n\n }",
"@Test(priority = 3, groups = { \"smoke\" }, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"Verify Data Syndication page loads after filter applied\")\n\tpublic void verifyFilteringReportsVisibility() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\ttry {\n\t\t\tint count = 1;\n\t\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"TPSEE\");\n\t\t\twb.deleteEmptyRows();\n\t\t\tTPSEE_Syndication_Status_Page s = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\t\tfor (int i = 1; i <= wb.getRowCount(); i++) {\n\t\t\t\tSystem.out.println(\"******************* Scenarios : \" + count + \"Starts ****************************\");\n\t\t\t\tif (i > 1)\n\t\t\t\t\tCurrentState.getDriver().navigate().refresh();\n\t\t\t\ts.waitUntilLoad(CurrentState.getDriver());\n\t\t\t\tString Group = wb.getCellValue(i, wb.seacrh_pattern(\"Group\", 0).get(0).intValue());\n\t\t\t\tString CountryCode = wb.getCellValue(i, wb.seacrh_pattern(\"Country\", 0).get(0).intValue());\n\t\t\t\tString State = wb.getCellValue(i, wb.seacrh_pattern(\"State\", 0).get(0).intValue());\n\t\t\t\tString City = wb.getCellValue(i, wb.seacrh_pattern(\"City\", 0).get(0).intValue());\n\t\t\t\tString Location = wb.getCellValue(i, wb.seacrh_pattern(\"Location\", 0).get(0).intValue());\n\t\t\t\ts.applyGlobalFilter(Group, CountryCode, State, City, Location);\n\t\t\t\tSystem.out.println(Group + \", \" + CountryCode + \", \" + State + \", \" + City + \", \" + Location);\n\t\t\t\ts.clickApplyFilterBTN();\n\t\t\t\tBaseClass.addEvidence(CurrentState.getDriver(), \"Applied global filter: \" + Group + \", \" + CountryCode\n\t\t\t\t\t\t+ \", \" + State + \", \" + City + \", \" + Location + \"\", \"yes\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"boolean hasDownloadResponse();",
"private boolean isFetchNeeded() {\n return true;\n }",
"@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }",
"public boolean hasRequests(){\n return (tradeRequests.size() > 0 || userRequests.size() > 0);\n }",
"public boolean checkStatus() {\r\n return isTiling;\r\n }",
"public boolean hasReportLimit()\n {\n return (this.getReportLimit() > 0L);\n }",
"public void verifyOfflineAutoresponseIsEnabled() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.offlineAutoresponseCheckboxEnabled)).isDisplayed();\n\t}",
"public Boolean isVisible();",
"public Boolean isVisible();",
"protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }",
"public boolean Is_reducesensoralertbox_Visible() {\r\n\t\tWebElement alert = driver.findElementByName(\"Defined number of sensors is less than the configured. \"\r\n\t\t\t\t+ \"It will reset the sensor configuration. Do you want to continue?\");\r\n\t\treturn IsElementVisibleStatus(alert);\r\n\t}",
"@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"public boolean hasDownloadRequest() {\n return downloadRequestBuilder_ != null || downloadRequest_ != null;\n }",
"public boolean isHiddenOnReports() {\n return hiddenOnReports;\n }",
"public void checkChannel1(){\n\t\ttools.findAndReport(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.support.v4.view.ViewPager/android.view.View/android.widget.RelativeLayout/android.support.v7.widget.RecyclerView/android.widget.LinearLayout[1]/android.widget.LinearLayout/android.widget.RelativeLayout/android.widget.RelativeLayout\", \"No se encuentra el primer en vivo\");\r\n\t}",
"boolean isVisible();",
"boolean isVisible();",
"public void checkConnection() {\n\t\tif (isOnline()) {\n\t\t\tgetFirsTopRatedMovies();\n\t\t} else {\n\t\t\tprogress.setVisibility(View.GONE);\n\t\t\tlayout_nothing_to_show.setVisibility(View.VISIBLE);\n\t\t\tToast.makeText(this, getString(R.string.no_netowrk), Toast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"private boolean failInReporting() {\n\t\tboolean toForget = false;\n\t\t//synchronized (this) {\n\t\t\tif (++this.failureCount >= this.config.getNumOfFailuresBeforeForgetCollector()) {\n\t\t\t\ttoForget = true;\n\t\t\t\tthis.failureCount = 0;\n\t\t\t}\n\t\t//}\n\n\t\t// forget\n\t\tif (toForget) {\n\t\t\tlogger.log(Level.WARNING, \"Forget a stat collector.\");\n\n\t\t\tthis.provider.setMessagingCollectorAddress(null);\n\t\t}\n\n\t\treturn toForget;\n\t}",
"private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}",
"public void checkVisibility(WebElement element) {\n wait = new WebDriverWait(driver, 15, 50);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"@Test\n\tpublic void bikesAvailable()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfBikesAvailable() == 1);\n\t}",
"boolean hasFeedItem();",
"boolean hasAdGroupFeed();",
"final public boolean isVisible() {\n if (hasObtainedSupport) {\n return true;\n }\n boolean ret = true;\n if (numEvents < getThresholdEventsForVisibleCluster()) {\n ret = false;\n }\n if (pathsEnabled) {\n double speed = Math.sqrt(velocityPPT.x * velocityPPT.x + velocityPPT.y * velocityPPT.y) * 1e6 / AEConstants.TICK_DEFAULT_US; // speed is in pixels/sec\n if (speed < thresholdVelocityForVisibleCluster) {\n ret = false;\n }\n }\n hasObtainedSupport = ret;\n if (ret) {\n birthLocation.x = location.x;\n birthLocation.y = location.y; // reset location of birth to presumably less noisy current location.\n }\n return ret;\n }",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"public Boolean getFlowTracking() throws PermissionDeniedException;",
"private void checkManualVisit() {\n // scroll to number of visits\n onView(withId(R.id.tv_num_visits)).perform(scrollTo());\n // check number of visits is 1\n onView(withId(R.id.tv_num_visits)).check(matches(withText(String.valueOf(1))));\n\n checkLastVisitLabelAndText(date, time);\n\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // check that the visit has updated date and time\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(date)))));\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(time)))));\n }",
"boolean hasCampaignDraft();",
"public void know_doc_Report()\n {\n\t boolean knowedgepresent =knowdoc.size()>0;\n\t if(knowedgepresent)\n\t {\n\t\t // System.out.println(\"Knowledge document details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Knowledge document details report is not present\");\n\t }\n }",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasExternalAttributionCredit();",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"public boolean inProgress(){return (this.currentTicket != null);}",
"public boolean getAvailability(){\n return availabile;\n }",
"public boolean isAtLeastVisible(Visibility v);",
"boolean hasFeedItemTarget();",
"private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }",
"boolean hasPassCardsResponse();",
"public Boolean IsIOrequest() {\n Random r = new Random();\n int k = r.nextInt(100);\n //20%\n if (k <= 20) {\n return true;\n }\n return false;\n }",
"public boolean isVisible() { return _visible; }"
] | [
"0.61495805",
"0.59385973",
"0.5920977",
"0.58869904",
"0.5873221",
"0.5859167",
"0.5859167",
"0.58564854",
"0.5835864",
"0.5769736",
"0.5693892",
"0.5688023",
"0.5684101",
"0.5684101",
"0.5684101",
"0.5684101",
"0.5684101",
"0.5684101",
"0.5684101",
"0.5684101",
"0.5684101",
"0.5684101",
"0.56570715",
"0.56439406",
"0.5599509",
"0.5581637",
"0.5571915",
"0.5546376",
"0.55442244",
"0.5540429",
"0.5537564",
"0.5532032",
"0.55285186",
"0.5524561",
"0.55157506",
"0.55057645",
"0.5491219",
"0.5476615",
"0.5469853",
"0.5464382",
"0.54413575",
"0.5435289",
"0.5432971",
"0.5423281",
"0.5423281",
"0.54110104",
"0.5402674",
"0.54007286",
"0.53805304",
"0.53804797",
"0.5377913",
"0.53671986",
"0.53526205",
"0.53526205",
"0.5349441",
"0.5347871",
"0.5344917",
"0.534299",
"0.5333434",
"0.5329728",
"0.53188455",
"0.5304647",
"0.53021526",
"0.5291628",
"0.52903664",
"0.5283628",
"0.52794456",
"0.52688223",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.5262278",
"0.526025",
"0.5259224",
"0.5257457",
"0.5255908",
"0.52526134",
"0.52465373",
"0.52410597",
"0.523877",
"0.52370954",
"0.5235568"
] | 0.594225 | 1 |
Check visibility of request type report | public void Request_type()
{
boolean reqtypepresent =reqtype.size()>0;
if(reqtypepresent)
{
//System.out.println("Request type report is PRESENT");
}
else
{
System.out.println("Request type report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasReflectionRequest();",
"void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }",
"public boolean isTypeAvailable(Class<? extends Resource> resourceType, OgemaLocale locale);",
"boolean hasReflectionResponse();",
"boolean hasQueryVisibility();",
"protected static boolean display(DecisionVariableDeclaration decl) {\n return ModelAccess.isVisibleType(decl.getType()) && !ConstraintType.isConstraint(decl.getType());\n }",
"public boolean hasRequestType() {\n return result.hasRequestType();\n }",
"private boolean isVisible(final MemberRecordCustomField field) {\n if (permissionService.hasPermission(AdminSystemPermission.MEMBER_RECORD_TYPES_VIEW)) {\n return true;\n }\n Group group = LoggedUser.group();\n Collection<MemberRecordType> visibleRecordTypes = Collections.emptyList();\n if (group instanceof AdminGroup) {\n visibleRecordTypes = fetchService.fetch((AdminGroup) group, AdminGroup.Relationships.VIEW_MEMBER_RECORD_TYPES).getViewMemberRecordTypes();\n } else if (group instanceof BrokerGroup) {\n // For brokers, it is possible that specific fields are not visible\n if (field.getBrokerAccess() != MemberRecordCustomField.Access.NONE) {\n visibleRecordTypes = fetchService.fetch((BrokerGroup) group, BrokerGroup.Relationships.BROKER_MEMBER_RECORD_TYPES).getBrokerMemberRecordTypes();\n }\n }\n return visibleRecordTypes.contains(field.getMemberRecordType());\n }",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"public boolean getVisibility(){\n\t\tString visibility = DBCommunicator.requestData( \"SELECT zichtbaarheid_type FROM spel WHERE id = \" + id );\n\t\tif(visibility.equals(\"openbaar\")){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"boolean hasCriterionType();",
"public Boolean IsIOrequest() {\n Random r = new Random();\n int k = r.nextInt(100);\n //20%\n if (k <= 20) {\n return true;\n }\n return false;\n }",
"public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"java.lang.String getQueryVisibility();",
"boolean hasReqardTypeThirty();",
"private void defaultReportTypeShouldBeFound(String filter) throws Exception {\n restReportTypeMockMvc.perform(get(\"/api/report-types?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(reportType.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].name\").value(hasItem(DEFAULT_NAME)))\n .andExpect(jsonPath(\"$.[*].text\").value(hasItem(DEFAULT_TEXT)))\n .andExpect(jsonPath(\"$.[*].status\").value(hasItem(DEFAULT_STATUS.toString())));\n\n // Check, that the count call also returns 1\n restReportTypeMockMvc.perform(get(\"/api/report-types/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"private void defaultReportTypeShouldNotBeFound(String filter) throws Exception {\n restReportTypeMockMvc.perform(get(\"/api/report-types?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restReportTypeMockMvc.perform(get(\"/api/report-types/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"0\"));\n }",
"public boolean isRecordSetVisible(GraphicsType type) {\r\n\t\tboolean result = false;\r\n\t\tswitch (type) {\r\n\t\tcase COMPARE:\r\n\t\t\tresult = this.compareTabItem != null && !this.compareTabItem.isDisposed() && this.compareTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase HISTO:\r\n\t\t\tresult = this.histoGraphicsTabItem != null && !this.histoGraphicsTabItem.isDisposed() && this.histoGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase UTIL:\r\n\t\t\tresult = this.utilGraphicsTabItem != null && !this.utilGraphicsTabItem.isDisposed() && this.utilGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase NORMAL:\r\n\t\tdefault:\r\n\t\t\tresult = this.graphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public boolean getAssertAllowedType() {\n return _assertType;\n }",
"protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }",
"@Override\n protected void validateResponseTypeParameter(String responseType, AuthorizationEndpointRequest request) {\n }",
"boolean hasResourceType();",
"boolean hasAchievementType();",
"boolean hasReqardTypeFifteen();",
"boolean hasSystemRequest();",
"boolean containsRequirementFor(AResourceType type);",
"public int askPermitToGetBetweenVisible();",
"public String getType() { return \"Checking\"; }",
"public abstract boolean isAppropriateRequest(Request request);",
"boolean hasDocumentType();",
"public boolean hasIntrospectionType() {\n return fieldSetFlags()[17];\n }",
"private boolean isRequestOrReply(final Message.MessageType type) {\n return MESSAGE_TYPE_REQUESTS.contains(type);\n }",
"public boolean isAtLeastVisible(Visibility v);",
"boolean hasReqardTypeTen();",
"private boolean validateType(int type)\n {\n return PSSecurityProvider.isSupportedType(type);\n }",
"private boolean requiresRiskManagementReviewRouting() {\n // Right now this works just like International Travel Reviewer, but may change for next version\n if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelParameters.INTERNATIONAL_TRIP_TYPES).contains(this.getTripTypeCode())) {\n return true;\n }\n if (!ObjectUtils.isNull(getTraveler()) && getTraveler().isLiabilityInsurance()) {\n return true;\n }\n return false;\n }",
"@Test\n public void reqTypeTest() {\n // TODO: test reqType\n }",
"private boolean isMsgRequestVarRequired(CodeGenContext codeGenCtx)\n\t{\n\t\t JTypeTable table = codeGenCtx.getJTypeTable();\n\t\t List<Method> allMethods = table.getMethods();\n\t\t\tfor(Method curentMethod : allMethods)\n\t\t\t{\n\t\t\t\tif(curentMethod.getParameterTypes().length > 0)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t}",
"public boolean isRequest(){\n return false;\n }",
"public final boolean mo18588a(RequestType requestType) {\n C7573i.m23587b(requestType, \"type\");\n Object obj = this.f20047b.get(requestType);\n if (obj == null) {\n C7573i.m23580a();\n }\n if (!((Collection) obj).isEmpty()) {\n return true;\n }\n return false;\n }",
"boolean hasInfoType();",
"private boolean isPageRestorable(HttpServletRequest request)\n\t{\n\t\tif (RequestHelper.TITLE_PANEL.equals(request\n\t\t\t\t.getParameter(RequestHelper.PANEL))) return false;\n\n\t\tif (WikiPageAction.PUBLICVIEW_ACTION.getName().equals(\n\t\t\t\trequest.getParameter(RequestHelper.ACTION))) return false;\n\n\t\t\n\t\tif (\"GET\".equalsIgnoreCase(request.getMethod())) return true;\n\n\t\treturn false;\n\t}",
"boolean hasDownloadRequest();",
"boolean hasReqardTypeThree();",
"boolean hasRemarketingAction();",
"public boolean handlesResource(ResourceType type) {\n String s = type.getMime();\n return (\"text/xhtml\".equals(s)) && (\"xml\".equals(type.getSubtype()));\n }",
"boolean isSatisfiableFor(AResourceType type, int amount) ;",
"boolean hasProduceResType();",
"boolean isAllInview();",
"private boolean shouldBeDrawn(Object annotationType) {\n \t\treturn contains(annotationType, fAllowedAnnotationTypes, fConfiguredAnnotationTypes);\n \t}",
"boolean hasCampaignAudienceView();",
"boolean hasGenericResponse();",
"public void Verify_Page_Header_Visibility()\r\n\t{\r\n\t\t if(Page_header.isDisplayed())\r\n\t\t\t System.out.println(\"header visible at webpage\");\r\n\t\t else\r\n\t\t\t System.out.println(\"header not visible at webpage\");\r\n\t\t\r\n\t}",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();"
] | [
"0.6030185",
"0.580414",
"0.5658798",
"0.5644083",
"0.5619806",
"0.5545051",
"0.55012786",
"0.5467732",
"0.5459984",
"0.5459984",
"0.5459984",
"0.5459984",
"0.5459984",
"0.5459984",
"0.5459984",
"0.5459984",
"0.5459984",
"0.5459984",
"0.5449555",
"0.5421465",
"0.5386075",
"0.5382306",
"0.53674066",
"0.5364521",
"0.5349744",
"0.5336691",
"0.53196096",
"0.5290608",
"0.5290157",
"0.52897924",
"0.52874684",
"0.5284411",
"0.5276321",
"0.52657306",
"0.52454406",
"0.5219512",
"0.521095",
"0.5195389",
"0.5193033",
"0.5187475",
"0.51872224",
"0.51777065",
"0.517379",
"0.5161771",
"0.51330113",
"0.5116923",
"0.5115637",
"0.51022303",
"0.51012397",
"0.5098678",
"0.5083238",
"0.5078247",
"0.5078127",
"0.5069094",
"0.5063814",
"0.5055846",
"0.5036893",
"0.5030249",
"0.50084066",
"0.50058043",
"0.49996048",
"0.49963546",
"0.4990304",
"0.49804884",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408",
"0.49780408"
] | 0.7432824 | 0 |
Check visibility of timesheet report | public void timesheet_report()
{
boolean timesheetreppresent =timesheetrep.size()>0;
if(timesheetreppresent)
{
// System.out.println("Timesheet report is PRESENT");
}
else
{
System.out.println("Timesheet report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void my_timesheet_report()\n {\n\t boolean timesheetreppresent =mytimesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\" My Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"boolean isVisible();",
"boolean isVisible();",
"public boolean isDisplayed() {\n return isValid() && (getLastSeen() > System.currentTimeMillis() - DAYS_30);\n }",
"boolean hasAdScheduleView();",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"public Boolean isVisible();",
"public Boolean isVisible();",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"public void showAvailTable() {\n if (availDay.getDate() != null) {\n availTable.setVisible(true);\n } \n else {\n showNoDateMess();\n };\n }",
"public void checkAttendance() {\n\t\tRandom random = new Random();\n\t\trandomCheck = random.nextInt(3);\n\t\tif (randomCheck == isFullTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Full Time Present \");\n\t\t\tworkingHrs = 8;\n\t\t} else if (randomCheck == isPartTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Part time Present \");\n\t\t\tworkingHrs = 4;\n\t\t} else {\n\t\t\tSystem.out.println(\"Employee is Absent \");\n\t\t\tworkingHrs = 0;\n\t\t}\n\t}",
"public int askPermitToGetBetweenVisible();",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"boolean hasScheduling();",
"boolean hasScheduling();",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"public boolean isRunning()\n {\n WebElement box = driver.findElement(By.cssSelector(\"#box\"));\n String lv = box.getAttribute(\"class\");\n int level = lv.charAt(2) - 48;\n\n WebElement timeElem = driver.findElement(By.cssSelector(\"#room > header > span.time\"));\n String timeStr = timeElem.getText();\n int time = stringToInt(timeStr);\n\n return level != 1 && time != 1;\n }",
"public boolean isVisible(){\n \t\treturn visible;\n \t}",
"@VTID(11)\r\n boolean getVisibleInPivotTable();",
"boolean hasTimeRecord();",
"boolean hasHotelPerformanceView();",
"static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }",
"public void checkVisibility(WebElement element) {\n wait = new WebDriverWait(driver, 15, 50);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"public boolean isRecordSetVisible(GraphicsType type) {\r\n\t\tboolean result = false;\r\n\t\tswitch (type) {\r\n\t\tcase COMPARE:\r\n\t\t\tresult = this.compareTabItem != null && !this.compareTabItem.isDisposed() && this.compareTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase HISTO:\r\n\t\t\tresult = this.histoGraphicsTabItem != null && !this.histoGraphicsTabItem.isDisposed() && this.histoGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase UTIL:\r\n\t\t\tresult = this.utilGraphicsTabItem != null && !this.utilGraphicsTabItem.isDisposed() && this.utilGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase NORMAL:\r\n\t\tdefault:\r\n\t\t\tresult = this.graphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean isVisible(){ return visible; }",
"boolean isAllInview();",
"public boolean isVisible() {\n\t\treturn true;\n\t}",
"boolean hasSubmitTime();",
"boolean isSetSchedule();",
"boolean hasDesiredTime();",
"private void checkStopped() {\n playPauseButton.check(matches(isCompletelyDisplayed()));\n resetButton.check(matches(isCompletelyDisplayed()));\n stopButton.check(matches(not(isDisplayed())));\n timeView.check(matches(withText(TIME_ZERO)));\n\n playPauseButton.check(matches(withCompoundDrawable(R.drawable.ic_play)));\n resetButton.check(matches(withCompoundDrawable(R.drawable.ic_pause)));\n\n checkReminder(true);\n\n // TODO: Check timeView's color state.\n }",
"public boolean isVisible()\n {\n return visible;\n }",
"boolean hasIncomeRangeView();",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);",
"public boolean isVisible(Visibility v);",
"public boolean isVisible() { return _visible; }",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"private boolean CheckAvailableDate(TimePeriod tp)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query = \"SELECT * FROM Available WHERE available_hid = '\"+hid+\"' AND \"+\n\t\t\t\t\t\t\t\"startDate = '\"+tp.stringStart+\"' AND endDate = '\"+tp.stringEnd+\"'\"; \n\t\t\t\n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}",
"public void SLA_Report()\n {\n\t boolean SLApresent =SLAreport.size()>0;\n\t if(SLApresent)\n\t {\n\t\t // System.out.println(\"SLA report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"SLA report is not present\");\n\t }\n }",
"@Test\n public void testIsVisible_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(false);\n\n boolean result = fixture.isVisible();\n\n assertEquals(false, result);\n }",
"boolean isInDownloadedArea();",
"boolean hasQueryVisibility();",
"public boolean isVisible() {\n return true;\n }",
"boolean hasExchangeTime();",
"public void waitForVisibility(By by,int time){\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }",
"@Test(priority = 3, groups = { \"smoke\" }, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"Verify Data Syndication page loads after filter applied\")\n\tpublic void verifyFilteringReportsVisibility() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\ttry {\n\t\t\tint count = 1;\n\t\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"TPSEE\");\n\t\t\twb.deleteEmptyRows();\n\t\t\tTPSEE_Syndication_Status_Page s = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\t\tfor (int i = 1; i <= wb.getRowCount(); i++) {\n\t\t\t\tSystem.out.println(\"******************* Scenarios : \" + count + \"Starts ****************************\");\n\t\t\t\tif (i > 1)\n\t\t\t\t\tCurrentState.getDriver().navigate().refresh();\n\t\t\t\ts.waitUntilLoad(CurrentState.getDriver());\n\t\t\t\tString Group = wb.getCellValue(i, wb.seacrh_pattern(\"Group\", 0).get(0).intValue());\n\t\t\t\tString CountryCode = wb.getCellValue(i, wb.seacrh_pattern(\"Country\", 0).get(0).intValue());\n\t\t\t\tString State = wb.getCellValue(i, wb.seacrh_pattern(\"State\", 0).get(0).intValue());\n\t\t\t\tString City = wb.getCellValue(i, wb.seacrh_pattern(\"City\", 0).get(0).intValue());\n\t\t\t\tString Location = wb.getCellValue(i, wb.seacrh_pattern(\"Location\", 0).get(0).intValue());\n\t\t\t\ts.applyGlobalFilter(Group, CountryCode, State, City, Location);\n\t\t\t\tSystem.out.println(Group + \", \" + CountryCode + \", \" + State + \", \" + City + \", \" + Location);\n\t\t\t\ts.clickApplyFilterBTN();\n\t\t\t\tBaseClass.addEvidence(CurrentState.getDriver(), \"Applied global filter: \" + Group + \", \" + CountryCode\n\t\t\t\t\t\t+ \", \" + State + \", \" + City + \", \" + Location + \"\", \"yes\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean isVisible() {\n return true;\n }",
"public boolean isVisible () {\n return visible;\n }",
"private CommandResult viewTimetable() {\n timetable.executeView();\n logger.log(Level.INFO, \"User has printed timetable\");\n return new CommandResult(\"Timetable has been printed above\");\n }",
"boolean isReadyForShowing();",
"@Test\n public void testIsVisible_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n boolean result = fixture.isVisible();\n\n assertEquals(true, result);\n }",
"public boolean isHiddenOnReports() {\n return hiddenOnReports;\n }",
"public boolean isVisible(){\n\t\treturn this.visible;\n\t}",
"@Override\n\tpublic boolean isVisible(float t) \n\t{\n\t\treturn !_buttonHit && _tbeg <= t && t <= _tend;\n\t}",
"boolean displayScheduleMessage();",
"public boolean isVisible() {\r\n return visible;\r\n }",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isAtLeastVisible(Visibility v);",
"@Override\r\n\tpublic boolean isVisible() {\n\t\treturn false;\r\n\t}",
"public boolean isVisible() {\n\t\treturn visible;\n\t}",
"boolean hasWeek3();",
"public static void ShowCreateSchedule(){\n ToggleVisibility(CreateSchedule.window);\n }",
"public void Verify_Page_Header_Visibility()\r\n\t{\r\n\t\t if(Page_header.isDisplayed())\r\n\t\t\t System.out.println(\"header visible at webpage\");\r\n\t\t else\r\n\t\t\t System.out.println(\"header not visible at webpage\");\r\n\t\t\r\n\t}",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"boolean isSetBusinesshours();",
"@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}",
"boolean hasWeek1();",
"public boolean getIsVisible();",
"private boolean checkTime(){\n\t\treturn false;\r\n\t}",
"public java.lang.Boolean getIsVisible();",
"private void checkManualVisit() {\n // scroll to number of visits\n onView(withId(R.id.tv_num_visits)).perform(scrollTo());\n // check number of visits is 1\n onView(withId(R.id.tv_num_visits)).check(matches(withText(String.valueOf(1))));\n\n checkLastVisitLabelAndText(date, time);\n\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // check that the visit has updated date and time\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(date)))));\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(time)))));\n }",
"public boolean isHiddenValue(long millis) { return !this.timeline.containsDomainValue(new Date(millis)); }",
"public static WebElement check_lnkPAEnhancedEntranced_ViewLatestPdtExists(Read_XLS xls, String sheetName, int rowNum,\r\n \t\tList<Boolean> testFail) throws Exception{\r\n \ttry{\r\n \t/*\tBoolean isLinkUpdateMeOnNewPdtExists = driver.findElement(\r\n \t\t\t\tBy.xpath(\"//a[@id='trigger_paTipBox'][contains(text(),'Update me on new products')]\")).isDisplayed();\r\n \t\tAdd_Log.info(\"Is hyperlink Update me on new products exists ::\" + isLinkUpdateMeOnNewPdtExists);\r\n \t*/\t\r\n \t\t\r\n \t\tBoolean isLinkViewLatestPdtExists = driver.findElement(\r\n \t\t\t\tBy.xpath(\"//a[@id='trigger_eConfirmBox'][contains(text(),'View latest products')]\")).isDisplayed();\r\n \t\tAdd_Log.info(\"Is hyperlink View latest products exists ::\" + isLinkViewLatestPdtExists);\r\n \t\t\r\n \t//\tif(isLinkUpdateMeOnNewPdtExists == false && isLinkViewLatestPdtExists == true){\r\n \t\tif(isLinkViewLatestPdtExists == true){\r\n \t\t\tAdd_Log.info(\"Hyperlink of the Enhanced Entrance is removed and the copy changed to 'View latest products'.\");\r\n \t\t\tSuiteUtility.WriteResultUtility(\r\n \t\t\t\t\txls, sheetName, Constant.COL_LINK_VIEW_LATEST_PDT_EXISTS, rowNum, Constant.KEYWORD_PASS);\r\n \t\t}else{\r\n \t\t\tAdd_Log.info(\"Hyperlink of the Enhanced Entrance is NOT removed and the copy is NOT changed to 'View latest products'.\");\r\n \t\t\tSuiteUtility.WriteResultUtility(\r\n \t\t\t\t\txls, sheetName, Constant.COL_LINK_VIEW_LATEST_PDT_EXISTS, rowNum, Constant.KEYWORD_FAIL);\r\n \t\t\ttestFail.set(0, true);\r\n \t\t}\r\n \t}catch(Exception e){\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }",
"public void verifySystemStatusTabIsDisplayed() {\n \tAssert.assertTrue(systemStatus.isDisplayed());\n }",
"boolean hasWeek5();",
"public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}",
"boolean hasWeek2();",
"public void checkVisible(Status status) {\n if (status == Status.GAMEOVER) {\n this.exit.setVisible(true);\n this.name.setVisible(true);\n this.score.setVisible(true);\n this.text.setVisible(true);\n this.textField.setVisible(true);\n } else{\n this.exit.setVisible(false);\n this.name.setVisible(false);\n this.score.setVisible(false);\n this.text.setVisible(false);\n this.textField.setVisible(false);\n }\n }",
"final public boolean isVisible() {\n if (hasObtainedSupport) {\n return true;\n }\n boolean ret = true;\n if (numEvents < getThresholdEventsForVisibleCluster()) {\n ret = false;\n }\n if (pathsEnabled) {\n double speed = Math.sqrt(velocityPPT.x * velocityPPT.x + velocityPPT.y * velocityPPT.y) * 1e6 / AEConstants.TICK_DEFAULT_US; // speed is in pixels/sec\n if (speed < thresholdVelocityForVisibleCluster) {\n ret = false;\n }\n }\n hasObtainedSupport = ret;\n if (ret) {\n birthLocation.x = location.x;\n birthLocation.y = location.y; // reset location of birth to presumably less noisy current location.\n }\n return ret;\n }",
"public final boolean isVisible() {\n return visible;\n }",
"public static native boolean _isVisible(Element elem) /*-{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (elem.style.display != 'none');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}-*/;",
"public WebElement checkVisibilityOf(final WebElement element) {\n return (new WebDriverWait(webDriver, WAIT_TIME)).until(ExpectedConditions.visibilityOf(element));\n }",
"@Override\n public boolean isVisible()\n {\n return !this.isDead();\n }",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}",
"public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}",
"public void visibility(boolean state){ this.table.setVisible(state);}",
"public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"public boolean visible() {\n \treturn model.isVisible();\n }",
"boolean hasTime();"
] | [
"0.7355376",
"0.669041",
"0.6032869",
"0.6032869",
"0.5924936",
"0.5909717",
"0.59042263",
"0.5883342",
"0.5883342",
"0.5874232",
"0.5817252",
"0.5817252",
"0.5817252",
"0.5795828",
"0.57391864",
"0.5724853",
"0.57001287",
"0.57001287",
"0.56959754",
"0.56959754",
"0.5669013",
"0.5655588",
"0.56270707",
"0.5626363",
"0.5606815",
"0.5595225",
"0.55906296",
"0.5561677",
"0.55615664",
"0.5559206",
"0.5537016",
"0.55192816",
"0.5517118",
"0.5505472",
"0.5479525",
"0.54742086",
"0.54732406",
"0.54646796",
"0.5452271",
"0.54483104",
"0.54481673",
"0.5441701",
"0.5438216",
"0.54267466",
"0.54173756",
"0.5404437",
"0.5403799",
"0.5399181",
"0.53975236",
"0.5393005",
"0.53900117",
"0.5386317",
"0.5381495",
"0.53789145",
"0.53766704",
"0.53725016",
"0.53719765",
"0.5371566",
"0.53673255",
"0.5359953",
"0.53524417",
"0.5343088",
"0.5330951",
"0.53187424",
"0.5317777",
"0.5317747",
"0.5313767",
"0.53100234",
"0.530029",
"0.52820283",
"0.5280139",
"0.52743673",
"0.52694964",
"0.5266813",
"0.5265402",
"0.525973",
"0.5257783",
"0.52522856",
"0.52453357",
"0.52445614",
"0.5243547",
"0.52419543",
"0.5240439",
"0.5237051",
"0.52314264",
"0.5229357",
"0.52280664",
"0.5227266",
"0.5223715",
"0.5223147",
"0.5221083",
"0.52187663",
"0.5218323",
"0.52160704",
"0.5213927",
"0.52048856",
"0.52007943",
"0.5198997",
"0.51754045",
"0.516207"
] | 0.73419887 | 1 |
Check visibility of timesheet report | public void my_timesheet_report()
{
boolean timesheetreppresent =mytimesheetrep.size()>0;
if(timesheetreppresent)
{
// System.out.println(" My Timesheet report is PRESENT");
}
else
{
System.out.println("Timesheet report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void timesheet_report()\n {\n\t boolean timesheetreppresent =timesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\"Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"boolean isVisible();",
"boolean isVisible();",
"public boolean isDisplayed() {\n return isValid() && (getLastSeen() > System.currentTimeMillis() - DAYS_30);\n }",
"boolean hasAdScheduleView();",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"public Boolean isVisible();",
"public Boolean isVisible();",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"public void showAvailTable() {\n if (availDay.getDate() != null) {\n availTable.setVisible(true);\n } \n else {\n showNoDateMess();\n };\n }",
"public void checkAttendance() {\n\t\tRandom random = new Random();\n\t\trandomCheck = random.nextInt(3);\n\t\tif (randomCheck == isFullTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Full Time Present \");\n\t\t\tworkingHrs = 8;\n\t\t} else if (randomCheck == isPartTimePresent) {\n\t\t\tSystem.out.println(\"Employee is Part time Present \");\n\t\t\tworkingHrs = 4;\n\t\t} else {\n\t\t\tSystem.out.println(\"Employee is Absent \");\n\t\t\tworkingHrs = 0;\n\t\t}\n\t}",
"public int askPermitToGetBetweenVisible();",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"boolean hasScheduling();",
"boolean hasScheduling();",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"public boolean isVisible(){\n \t\treturn visible;\n \t}",
"public boolean isRunning()\n {\n WebElement box = driver.findElement(By.cssSelector(\"#box\"));\n String lv = box.getAttribute(\"class\");\n int level = lv.charAt(2) - 48;\n\n WebElement timeElem = driver.findElement(By.cssSelector(\"#room > header > span.time\"));\n String timeStr = timeElem.getText();\n int time = stringToInt(timeStr);\n\n return level != 1 && time != 1;\n }",
"@VTID(11)\r\n boolean getVisibleInPivotTable();",
"boolean hasTimeRecord();",
"boolean hasHotelPerformanceView();",
"public void checkVisibility(WebElement element) {\n wait = new WebDriverWait(driver, 15, 50);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }",
"public boolean isRecordSetVisible(GraphicsType type) {\r\n\t\tboolean result = false;\r\n\t\tswitch (type) {\r\n\t\tcase COMPARE:\r\n\t\t\tresult = this.compareTabItem != null && !this.compareTabItem.isDisposed() && this.compareTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase HISTO:\r\n\t\t\tresult = this.histoGraphicsTabItem != null && !this.histoGraphicsTabItem.isDisposed() && this.histoGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase UTIL:\r\n\t\t\tresult = this.utilGraphicsTabItem != null && !this.utilGraphicsTabItem.isDisposed() && this.utilGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase NORMAL:\r\n\t\tdefault:\r\n\t\t\tresult = this.graphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean isVisible(){ return visible; }",
"boolean isAllInview();",
"public boolean isVisible() {\n\t\treturn true;\n\t}",
"boolean hasSubmitTime();",
"boolean isSetSchedule();",
"boolean hasDesiredTime();",
"private void checkStopped() {\n playPauseButton.check(matches(isCompletelyDisplayed()));\n resetButton.check(matches(isCompletelyDisplayed()));\n stopButton.check(matches(not(isDisplayed())));\n timeView.check(matches(withText(TIME_ZERO)));\n\n playPauseButton.check(matches(withCompoundDrawable(R.drawable.ic_play)));\n resetButton.check(matches(withCompoundDrawable(R.drawable.ic_pause)));\n\n checkReminder(true);\n\n // TODO: Check timeView's color state.\n }",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"boolean hasIncomeRangeView();",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);",
"public boolean isVisible(Visibility v);",
"public boolean isVisible() { return _visible; }",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"private boolean CheckAvailableDate(TimePeriod tp)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query = \"SELECT * FROM Available WHERE available_hid = '\"+hid+\"' AND \"+\n\t\t\t\t\t\t\t\"startDate = '\"+tp.stringStart+\"' AND endDate = '\"+tp.stringEnd+\"'\"; \n\t\t\t\n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}",
"public void SLA_Report()\n {\n\t boolean SLApresent =SLAreport.size()>0;\n\t if(SLApresent)\n\t {\n\t\t // System.out.println(\"SLA report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"SLA report is not present\");\n\t }\n }",
"@Test\n public void testIsVisible_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(false);\n\n boolean result = fixture.isVisible();\n\n assertEquals(false, result);\n }",
"boolean isInDownloadedArea();",
"boolean hasQueryVisibility();",
"public boolean isVisible() {\n return true;\n }",
"boolean hasExchangeTime();",
"public void waitForVisibility(By by,int time){\n WebDriverWait wait = new WebDriverWait(driver, time);\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }",
"@Test(priority = 3, groups = { \"smoke\" }, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"Verify Data Syndication page loads after filter applied\")\n\tpublic void verifyFilteringReportsVisibility() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\ttry {\n\t\t\tint count = 1;\n\t\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"TPSEE\");\n\t\t\twb.deleteEmptyRows();\n\t\t\tTPSEE_Syndication_Status_Page s = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\t\tfor (int i = 1; i <= wb.getRowCount(); i++) {\n\t\t\t\tSystem.out.println(\"******************* Scenarios : \" + count + \"Starts ****************************\");\n\t\t\t\tif (i > 1)\n\t\t\t\t\tCurrentState.getDriver().navigate().refresh();\n\t\t\t\ts.waitUntilLoad(CurrentState.getDriver());\n\t\t\t\tString Group = wb.getCellValue(i, wb.seacrh_pattern(\"Group\", 0).get(0).intValue());\n\t\t\t\tString CountryCode = wb.getCellValue(i, wb.seacrh_pattern(\"Country\", 0).get(0).intValue());\n\t\t\t\tString State = wb.getCellValue(i, wb.seacrh_pattern(\"State\", 0).get(0).intValue());\n\t\t\t\tString City = wb.getCellValue(i, wb.seacrh_pattern(\"City\", 0).get(0).intValue());\n\t\t\t\tString Location = wb.getCellValue(i, wb.seacrh_pattern(\"Location\", 0).get(0).intValue());\n\t\t\t\ts.applyGlobalFilter(Group, CountryCode, State, City, Location);\n\t\t\t\tSystem.out.println(Group + \", \" + CountryCode + \", \" + State + \", \" + City + \", \" + Location);\n\t\t\t\ts.clickApplyFilterBTN();\n\t\t\t\tBaseClass.addEvidence(CurrentState.getDriver(), \"Applied global filter: \" + Group + \", \" + CountryCode\n\t\t\t\t\t\t+ \", \" + State + \", \" + City + \", \" + Location + \"\", \"yes\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean isVisible() {\n return true;\n }",
"public boolean isVisible () {\n return visible;\n }",
"private CommandResult viewTimetable() {\n timetable.executeView();\n logger.log(Level.INFO, \"User has printed timetable\");\n return new CommandResult(\"Timetable has been printed above\");\n }",
"boolean isReadyForShowing();",
"@Test\n public void testIsVisible_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n boolean result = fixture.isVisible();\n\n assertEquals(true, result);\n }",
"public boolean isHiddenOnReports() {\n return hiddenOnReports;\n }",
"public boolean isVisible(){\n\t\treturn this.visible;\n\t}",
"@Override\n\tpublic boolean isVisible(float t) \n\t{\n\t\treturn !_buttonHit && _tbeg <= t && t <= _tend;\n\t}",
"public boolean isVisible() {\r\n return visible;\r\n }",
"boolean displayScheduleMessage();",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isAtLeastVisible(Visibility v);",
"@Override\r\n\tpublic boolean isVisible() {\n\t\treturn false;\r\n\t}",
"public boolean isVisible() {\n\t\treturn visible;\n\t}",
"boolean hasWeek3();",
"public static void ShowCreateSchedule(){\n ToggleVisibility(CreateSchedule.window);\n }",
"public void Verify_Page_Header_Visibility()\r\n\t{\r\n\t\t if(Page_header.isDisplayed())\r\n\t\t\t System.out.println(\"header visible at webpage\");\r\n\t\t else\r\n\t\t\t System.out.println(\"header not visible at webpage\");\r\n\t\t\r\n\t}",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"boolean isSetBusinesshours();",
"@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}",
"public boolean getIsVisible();",
"boolean hasWeek1();",
"private boolean checkTime(){\n\t\treturn false;\r\n\t}",
"public java.lang.Boolean getIsVisible();",
"public boolean isHiddenValue(long millis) { return !this.timeline.containsDomainValue(new Date(millis)); }",
"private void checkManualVisit() {\n // scroll to number of visits\n onView(withId(R.id.tv_num_visits)).perform(scrollTo());\n // check number of visits is 1\n onView(withId(R.id.tv_num_visits)).check(matches(withText(String.valueOf(1))));\n\n checkLastVisitLabelAndText(date, time);\n\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // check that the visit has updated date and time\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(date)))));\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(time)))));\n }",
"public static WebElement check_lnkPAEnhancedEntranced_ViewLatestPdtExists(Read_XLS xls, String sheetName, int rowNum,\r\n \t\tList<Boolean> testFail) throws Exception{\r\n \ttry{\r\n \t/*\tBoolean isLinkUpdateMeOnNewPdtExists = driver.findElement(\r\n \t\t\t\tBy.xpath(\"//a[@id='trigger_paTipBox'][contains(text(),'Update me on new products')]\")).isDisplayed();\r\n \t\tAdd_Log.info(\"Is hyperlink Update me on new products exists ::\" + isLinkUpdateMeOnNewPdtExists);\r\n \t*/\t\r\n \t\t\r\n \t\tBoolean isLinkViewLatestPdtExists = driver.findElement(\r\n \t\t\t\tBy.xpath(\"//a[@id='trigger_eConfirmBox'][contains(text(),'View latest products')]\")).isDisplayed();\r\n \t\tAdd_Log.info(\"Is hyperlink View latest products exists ::\" + isLinkViewLatestPdtExists);\r\n \t\t\r\n \t//\tif(isLinkUpdateMeOnNewPdtExists == false && isLinkViewLatestPdtExists == true){\r\n \t\tif(isLinkViewLatestPdtExists == true){\r\n \t\t\tAdd_Log.info(\"Hyperlink of the Enhanced Entrance is removed and the copy changed to 'View latest products'.\");\r\n \t\t\tSuiteUtility.WriteResultUtility(\r\n \t\t\t\t\txls, sheetName, Constant.COL_LINK_VIEW_LATEST_PDT_EXISTS, rowNum, Constant.KEYWORD_PASS);\r\n \t\t}else{\r\n \t\t\tAdd_Log.info(\"Hyperlink of the Enhanced Entrance is NOT removed and the copy is NOT changed to 'View latest products'.\");\r\n \t\t\tSuiteUtility.WriteResultUtility(\r\n \t\t\t\t\txls, sheetName, Constant.COL_LINK_VIEW_LATEST_PDT_EXISTS, rowNum, Constant.KEYWORD_FAIL);\r\n \t\t\ttestFail.set(0, true);\r\n \t\t}\r\n \t}catch(Exception e){\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }",
"public void verifySystemStatusTabIsDisplayed() {\n \tAssert.assertTrue(systemStatus.isDisplayed());\n }",
"boolean hasWeek5();",
"public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}",
"boolean hasWeek2();",
"public void checkVisible(Status status) {\n if (status == Status.GAMEOVER) {\n this.exit.setVisible(true);\n this.name.setVisible(true);\n this.score.setVisible(true);\n this.text.setVisible(true);\n this.textField.setVisible(true);\n } else{\n this.exit.setVisible(false);\n this.name.setVisible(false);\n this.score.setVisible(false);\n this.text.setVisible(false);\n this.textField.setVisible(false);\n }\n }",
"final public boolean isVisible() {\n if (hasObtainedSupport) {\n return true;\n }\n boolean ret = true;\n if (numEvents < getThresholdEventsForVisibleCluster()) {\n ret = false;\n }\n if (pathsEnabled) {\n double speed = Math.sqrt(velocityPPT.x * velocityPPT.x + velocityPPT.y * velocityPPT.y) * 1e6 / AEConstants.TICK_DEFAULT_US; // speed is in pixels/sec\n if (speed < thresholdVelocityForVisibleCluster) {\n ret = false;\n }\n }\n hasObtainedSupport = ret;\n if (ret) {\n birthLocation.x = location.x;\n birthLocation.y = location.y; // reset location of birth to presumably less noisy current location.\n }\n return ret;\n }",
"public final boolean isVisible() {\n return visible;\n }",
"public static native boolean _isVisible(Element elem) /*-{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (elem.style.display != 'none');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}-*/;",
"public WebElement checkVisibilityOf(final WebElement element) {\n return (new WebDriverWait(webDriver, WAIT_TIME)).until(ExpectedConditions.visibilityOf(element));\n }",
"@Override\n public boolean isVisible()\n {\n return !this.isDead();\n }",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}",
"public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}",
"public void visibility(boolean state){ this.table.setVisible(state);}",
"public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"public boolean visible() {\n \treturn model.isVisible();\n }",
"boolean hasTime();"
] | [
"0.73412764",
"0.6691286",
"0.60339284",
"0.60339284",
"0.59258926",
"0.59096724",
"0.59051794",
"0.5884321",
"0.5884321",
"0.5874739",
"0.58183265",
"0.58183265",
"0.58183265",
"0.5795317",
"0.57390803",
"0.5725239",
"0.5701162",
"0.5701162",
"0.5695443",
"0.5695443",
"0.5671014",
"0.56571394",
"0.56275845",
"0.5627156",
"0.56074226",
"0.55948",
"0.5590714",
"0.5562368",
"0.55612546",
"0.5560423",
"0.55382115",
"0.5520722",
"0.5518021",
"0.5506623",
"0.5479623",
"0.5473549",
"0.5473101",
"0.5465261",
"0.5453393",
"0.5449549",
"0.54480016",
"0.5442922",
"0.54371107",
"0.5427852",
"0.54187596",
"0.54039747",
"0.5402991",
"0.5398591",
"0.5398227",
"0.5393267",
"0.53907824",
"0.5387431",
"0.53816056",
"0.53805614",
"0.537657",
"0.53736424",
"0.5373184",
"0.5371222",
"0.5368166",
"0.5360466",
"0.5353817",
"0.53442115",
"0.53322494",
"0.53189456",
"0.5318028",
"0.5317757",
"0.531513",
"0.5310976",
"0.5301484",
"0.5281961",
"0.5280774",
"0.5275176",
"0.5270335",
"0.52667344",
"0.5266393",
"0.52588135",
"0.5258739",
"0.5252055",
"0.5246313",
"0.52447623",
"0.52445084",
"0.52414984",
"0.52410966",
"0.52371407",
"0.5231637",
"0.52289844",
"0.5228547",
"0.52279544",
"0.5224965",
"0.5224857",
"0.5221937",
"0.52195233",
"0.521788",
"0.5217221",
"0.52154213",
"0.5206375",
"0.5199281",
"0.51984",
"0.5176686",
"0.51621044"
] | 0.7354511 | 0 |
Check visibility of user details report | public void user_details()
{
boolean userdetpresent =userdetails.size()>0;
if(userdetpresent)
{
//System.out.println("User details report is PRESENT");
}
else
{
System.out.println("User details report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }",
"public boolean hasUser(){\n return numUser < MAX_USER;\n }",
"boolean hasCustomerUserAccess();",
"public abstract void onFirstUserVisible();",
"protected boolean visibleToUser(String userId,\n Relationship relationship,\n String methodName)\n {\n if (userId.equals(relationship.getCreatedBy()))\n {\n return true;\n }\n\n return repositoryHelper.getBooleanProperty(serviceName,\n CommentMapper.IS_PUBLIC_PROPERTY_NAME,\n relationship.getProperties(),\n methodName);\n }",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyManageUserViewdetails() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Check whether the user can edit details by clicking View details of Active accounts\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.viewDetailsTableViewStduser(userProfile)\n\t\t.ClickEditdetails()\n\t\t.ChangeStandardUserview(userProfile); \t \t \t \t\t\n\t}",
"private boolean isCurrentDataWasChanedByAnotherUser(final Monthly_report_revision monthlyReport) {\n Monthly_report_revision currentMonthlyReport = this.monthly_reportRepository.findAndRefresh(monthlyReport);\n return !StringUtils.equalsIgnoreCase(monthlyReport.getShounin_joutai(),\n currentMonthlyReport.getShounin_joutai());\n }",
"@Transactional\n\tpublic Boolean getViewAuthorization(String username)\n\t{ \n\t\tint accno;\n\t\ttry\n\t\t{\n\t\t\taccno = (accountManagerService.getUserAccountForUserName(username)).getAccountno();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tTransactions t = transactionsDAO.findViewableOrNot(accno);\n\t\tif(t==null)\n\t\t\treturn false;\n\t\t//else if(t.getStatus()==2&&(t.getTransactionTypes().equals(\"TR_VIEW\")&&t.getApprovalNeeded()==1))\n\t\t//return true;\n\t\telse \n\t\t\treturn true;\n\t}",
"String checkUserAccessOnProject(Long id, String username);",
"boolean hasSelectedUser();",
"public boolean clickUsers() {\r\n try {\r\n\r\n WebElement UserName = (new WebDriverWait(driver, 90))\r\n .until(ExpectedConditions.visibilityOfElementLocated(Users_xPath));\r\n UserName.getAttribute(\"title\");\r\n UserName.click();\r\n driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS);\r\n Thread.sleep(2000);\r\n return true;\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n }",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUserInterest();",
"boolean hasUserInterest();",
"boolean isAllInview();",
"public void displayUserInformations() {\n println(\"getLocation(): \"+user.getLocation());\n println(\"getFriendsCount(): \"+user.getFriendsCount());\n println(\"getFollowersCount(): \"+user.getFollowersCount());\n println(\"getDescription(): \"+user.getDescription());\n println(\"getCreatedAt() : \"+user.getCreatedAt() );\n println(\"getDescriptionURLEntities(): \"+user.getDescriptionURLEntities());\n println(\"getFavouritesCount() : \"+user.getFavouritesCount() );\n }",
"public void user_mappings()\n {\n\t boolean mappingpresent =usermapping.size()>0;\n\t if(mappingpresent)\n\t {\n\t\t // System.out.println(\"User mapping report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User mapping report is not present\");\n\t }\n }",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasObjUser();",
"@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}",
"@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }",
"public boolean isVisibleToUser() {\n/* 830 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"boolean hasUserList();",
"@Override\n\t\t\tpublic void setUserVisibleHint(boolean isVisibleToUser) {\n\t\t\t\tsuper.setUserVisibleHint(isVisibleToUser);\n\t\t\t\tisonshow=isVisibleToUser;\n\t\t\t\t//Log.i(\"isonshow\", isVisibleToUser+\"\");\n\n\t\t\t}",
"@Override\n protected void onFirstUserVisible() {\n }",
"public int askPermitToGetBetweenVisible();",
"boolean isVisible();",
"boolean isVisible();",
"boolean hasUserId();",
"boolean hasUserId();",
"boolean hasUserId();",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean veirfyUserOnSummerDressesPage(){\n WebElement page = driver.findElement(By.cssSelector(\"div[class='cat_desc']\"));\n boolean pageStatus = page.isDisplayed();\n return pageStatus;\n }",
"boolean hasGetUserHistory();",
"boolean hasUserManaged();",
"public Boolean isVisible();",
"public Boolean isVisible();",
"private void userReport() {\n reportText.appendText(\"Report of appointments per User\\n\\n\");\n for (User user: Data.getUsers()) {\n reportText.appendText(\"\\n\\nUser: \" + user.getUsername() + \"\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getUser() == user.getId()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n\n }",
"boolean hasQueryVisibility();",
"public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }",
"public boolean confirmReadInfos(User user, List<Info> infos);",
"protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"User getUserUnderValidation();",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"boolean hasPublicProfile();",
"public boolean checkAdmin()\r\n\t{\r\n\t\tboolean admin=false;\r\n\t\tint length=user_records.size();\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tif(((User)user_records.get(i)).get_username().equals(\"administrator\"))\r\n\t\t\t{\r\n\t\t\t\tadmin=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn admin;\r\n\t}",
"@Test(enabled=false)\n\tpublic void loanDetails(){\n\t\n\t\ttry{\n\t\tHomePage homePage=new HomePage(driver);\n\t\thomePage.clickOnSignIn();\n\t\t\n\t\tLoginActions loginAction=new LoginActions();\n\t\tloginAction.login(driver, \"username\", \"password\");\n\t\t\n\t\tAccountSummaryPage accountsummary= new AccountSummaryPage(driver);\n\t\taccountsummary.isAccountSummary();\n\t\t\n\t\tAccountActivityPage accountActivity=new AccountActivityPage(driver);\n\t\taccountActivity.clickOnAccountActivity();\n\t\t\n\t\taccountActivity.selectLoanAccount();\n\t\t\n\t\taccountActivity.getRowdata();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getRowdata(), \"RENT\");\t\n\t\t\n\t\tSystem.out.println(accountActivity.getRowdata());\n\t\t\n\t\t// Test case no - AccActShow_04 -no results for credit card are verified under this test only\n\t\n\t\taccountActivity.getCreditCard();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getCreditCard(), \"No Results\");\n\t\t}\n\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.getMessage();\n\t\t}\n\t}",
"private boolean isUserVisibleEvent(int eventType) {\n return eventType != UsageEvents.Event.SYSTEM_INTERACTION\n && eventType != UsageEvents.Event.STANDBY_BUCKET_CHANGED;\n }",
"public void v_Verify_Guest7_Displayed(){\n\t}",
"public void verifyViewBatchDetails(final Integer rowNum) {\n Log.logScriptInfo(\"Selecting Row\" + rowNum + \" to View Batch details....\");\n lblRow(rowNum).waitForVisibility(Log.giAutomationMedTO);\n lblRow(rowNum).click();\n btnViewBatchDetail().click();\n Log.logBanner(\"Verifying View Batch detail columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyViewBatchDetailColumns();\n }",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"public void verifyOnDashboardPage() {\n verifyUserLoggedIn.waitForState().enabled(30);\n verifyUserLoggedIn.assertContains().text(\"Dev Links\");\n }",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"private void isUser() {\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n assert user != null;\r\n String Uphonenumber = user.getPhoneNumber();\r\n final String usernumber = Objects.requireNonNull(Uphonenumber);\r\n\r\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference(\"UsersData\");\r\n Query checkUser = reference.orderByChild(\"phone\").equalTo(usernumber);\r\n checkUser.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n if (dataSnapshot.exists()){\r\n\r\n nameFromDB = dataSnapshot.child(usernumber).child(\"name\").getValue(String.class);\r\n phoneFromDB = dataSnapshot.child(usernumber).child(\"phone\").getValue(String.class);\r\n dashboardUsername.setText(nameFromDB);\r\n dashboardPhoneNumber.setText(phoneFromDB);\r\n progressBar.DismissDialog();\r\n\r\n\r\n }\r\n else{\r\n Toast.makeText(getApplicationContext(),\"User data didn't matched! \", Toast.LENGTH_LONG).show();\r\n }\r\n\r\n }//End of onDataChange method\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });//End of addListenerForSingleValueEvent method\r\n\r\n\r\n }",
"public void v_Verify_Guest11_Displayed(){\n\t}",
"public void printByUser() {\r\n TUseStatus useStatus;\r\n\t for (int a=0; a < m_current_resources_count; a++)\r\n\t for (int b=0; b < m_current_users_count; b++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }",
"@Then(\"^I see user (.*) devices? IDs? (?:is|are) present on Devices tab$\")\n public void ISeeUserDevicesIDPresentOnDetailsPage(String name) throws Exception {\n List<String> deviceIDs = IOSTestContextHolder.getInstance().getTestContext().getCommonSteps()\n .GetDevicesIDsForUser(name);\n for (String id : deviceIDs) {\n Assert.assertTrue(String.format(\"Device ID '%s' is not visible\", id),\n getUserDetailsDevicesPage().isUserDeviceIdVisible(id));\n }\n }",
"public boolean isBrowseShown()\r\n\t{\r\n\t\treturn ((this.pageBackingBean.getCurrentUser() != null) || (this.settingEjb\r\n\t\t .getBooleanSettingByName(Constants.SETTING_SEARCH_ALLOW_NON_USERS)))\r\n\t\t && !(this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_INDEXING_COMMENCED));\r\n\t}",
"public boolean hasAccount(String user);",
"public void v_Verify_Guest12_Displayed(){\n\t}",
"public boolean emailisdisplayed() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(email);\r\n\t\t\t\tflag = element.isDisplayed();\r\n\t\t\t\tAssert.assertTrue(flag, \"Email is is not dispalyed and enabled\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Email Id NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\treturn flag;\r\n\t\t\t\r\n\t\t}",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"public void v_Verify_Guest1_Displayed(){\n\t}",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"boolean hasLoginapifailhitcount();",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"@Override\n public boolean showPanel(Issue issue, ApplicationUser remoteUser) {\n\n if (issue.isSubTask()){\n return false;\n }else{\n return true;\n }\n\n }",
"public void v_Verify_Guest5_Displayed(){\n\t}",
"public void cliniciansTabAreInViewMode() {\n\n\tString icon=addIconClinicians.getAttribute(\"data-ng-click\");\n\tif(icon.contains(\"isDisabled\")) {\n\t\tAssert.assertTrue(true);\n\t}\n\t\t\n\t}",
"private void responseMonitor(List<User> returnedUsers, User returnedUserFromEdit){\n String USER_NAME= returnedUserFromEdit.getName();\n String USER_EMAIL = returnedUserFromEdit.getEmail();\n Long UserID = returnedUserFromEdit.getId();\n Toast.makeText(this,getString(R.string.returned)+ USER_NAME+ \" , \"+ USER_EMAIL+\" , \"+ UserID,Toast.LENGTH_LONG).show();\n }",
"private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"private void checkUserExists() {\n dblogin.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n showData1(dataSnapshot);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }"
] | [
"0.64196897",
"0.59429556",
"0.5905809",
"0.59048194",
"0.5815299",
"0.5810273",
"0.5790244",
"0.5788009",
"0.57802933",
"0.5756214",
"0.571678",
"0.57100576",
"0.5676609",
"0.5676609",
"0.5676609",
"0.5676609",
"0.5676609",
"0.5676609",
"0.5676609",
"0.5636988",
"0.5636988",
"0.5635496",
"0.56300193",
"0.562732",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.5623932",
"0.56188023",
"0.5618346",
"0.5612382",
"0.56103337",
"0.5606503",
"0.5604587",
"0.5591525",
"0.5580903",
"0.5571461",
"0.5571461",
"0.55678505",
"0.55678505",
"0.55678505",
"0.5553332",
"0.55163574",
"0.5503955",
"0.54988",
"0.5497564",
"0.5497564",
"0.5489205",
"0.54840964",
"0.54706764",
"0.5463991",
"0.5452686",
"0.5448675",
"0.54484874",
"0.544669",
"0.54466486",
"0.5441298",
"0.54337245",
"0.5431177",
"0.5431104",
"0.5429014",
"0.54252845",
"0.54204637",
"0.5416095",
"0.54146105",
"0.5400349",
"0.5390983",
"0.5390665",
"0.5390259",
"0.5387641",
"0.5386405",
"0.53842086",
"0.5381792",
"0.5381792",
"0.5381792",
"0.5352729",
"0.535111",
"0.5350921",
"0.5349478",
"0.5345725",
"0.53449154",
"0.534421",
"0.53384554",
"0.53369594",
"0.5336233",
"0.5329784"
] | 0.7457157 | 0 |
Check visibility of user mapping report | public void user_mappings()
{
boolean mappingpresent =usermapping.size()>0;
if(mappingpresent)
{
// System.out.println("User mapping report is PRESENT");
}
else
{
System.out.println("User mapping report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasUserLocationView();",
"public void user_details()\n {\n\t boolean userdetpresent =userdetails.size()>0;\n\t if(userdetpresent)\n\t {\n\t\t //System.out.println(\"User details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User details report is not present\");\n\t }\n }",
"private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }",
"private List<Map<String,Object>> listAccessibleMaps() {\r\n \r\n List<Map<String, Object>> accessMapData = null;\r\n \r\n ArrayList args = new ArrayList();\r\n String accessClause = userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_usage\", \"owner_name\", args, \"read\");\r\n try {\r\n accessMapData = magicDataTpl.queryForList(\r\n \"SELECT name, title, description FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n accessClause + \" ORDER BY title\", args.toArray()\r\n );\r\n /* Determine which maps the user can additionally edit and delete */\r\n ArrayList wargs = new ArrayList();\r\n List<Map<String,Object>> writeMapData = magicDataTpl.queryForList(\r\n \"SELECT name FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_edit\", \"owner_name\", wargs, \"update\") + \" ORDER BY title\", wargs.toArray()\r\n );\r\n ArrayList dargs = new ArrayList();\r\n List<Map<String,Object>> deleteMapData = magicDataTpl.queryForList(\r\n \"SELECT name FROM \" + env.getProperty(\"postgres.local.mapsTable\") + \" WHERE \" + \r\n userAuthoritiesProvider.getInstance().sqlRoleClause(\"allowed_edit\", \"owner_name\", dargs, \"delete\") + \" ORDER BY title\", dargs.toArray()\r\n );\r\n for (Map<String,Object> mapData : accessMapData) {\r\n mapData.put(\"w\", \"no\");\r\n mapData.put(\"d\", \"no\");\r\n String name = (String)mapData.get(\"name\");\r\n writeMapData.stream().map((wData) -> (String)wData.get(\"name\")).filter((wName) -> (wName.equals(name))).forEachOrdered((_item) -> {\r\n mapData.put(\"w\", \"yes\");\r\n });\r\n deleteMapData.stream().map((dData) -> (String)dData.get(\"name\")).filter((dName) -> (dName.equals(name))).forEachOrdered((_item) -> {\r\n mapData.put(\"d\", \"yes\");\r\n });\r\n }\r\n } catch(DataAccessException dae) {\r\n accessMapData = new ArrayList();\r\n System.out.println(\"Failed to determine accessible maps for user, error was : \" + dae.getMessage());\r\n }\r\n return(accessMapData);\r\n }",
"private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public abstract void onFirstUserVisible();",
"boolean hasCustomerUserAccess();",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"boolean isVisible();",
"boolean isVisible();",
"public java.lang.Boolean getIsVisible();",
"public Boolean isVisible();",
"public Boolean isVisible();",
"boolean isAllInview();",
"@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"boolean isCanSeeFriendlyInvisibles();",
"String checkUserAccessOnProject(Long id, String username);",
"public boolean isVisibleToUser() {\n/* 830 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"final public boolean isVisible() {\n if (hasObtainedSupport) {\n return true;\n }\n boolean ret = true;\n if (numEvents < getThresholdEventsForVisibleCluster()) {\n ret = false;\n }\n if (pathsEnabled) {\n double speed = Math.sqrt(velocityPPT.x * velocityPPT.x + velocityPPT.y * velocityPPT.y) * 1e6 / AEConstants.TICK_DEFAULT_US; // speed is in pixels/sec\n if (speed < thresholdVelocityForVisibleCluster) {\n ret = false;\n }\n }\n hasObtainedSupport = ret;\n if (ret) {\n birthLocation.x = location.x;\n birthLocation.y = location.y; // reset location of birth to presumably less noisy current location.\n }\n return ret;\n }",
"void checkMyLocationVisibility() {\n if (settings.getReturnToMyLocation() || presenter.isTracking())\n showMyLocation();\n }",
"public boolean hasUser(){\n return numUser < MAX_USER;\n }",
"@Override\n\tpublic boolean checkAndSetFieldmapProperties(final UserLabelPrinting userLabelPrinting, final FieldMapInfo fieldMapInfoDetail) {\n\t\tif (!fieldMapInfoDetail.getDatasetsWithFieldMap().isEmpty()) {\n\t\t\tfor (final FieldMapDatasetInfo dataset : fieldMapInfoDetail.getDatasetsWithFieldMap()) {\n\t\t\t\tif (dataset.getTrialInstances().size() == dataset.getTrialInstancesWithFieldMap().size()) {\n\t\t\t\t\tuserLabelPrinting.setFieldMapsExisting(true);\n\t\t\t\t} else {\n\t\t\t\t\tuserLabelPrinting.setFieldMapsExisting(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tuserLabelPrinting.setFieldMapsExisting(false);\n\t\t\treturn false;\n\t\t}\n\t}",
"@VTID(11)\r\n boolean getVisibleInPivotTable();",
"boolean hasAuvLoc();",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"boolean hasPublicProfile();",
"@Transactional\n\tpublic Boolean getViewAuthorization(String username)\n\t{ \n\t\tint accno;\n\t\ttry\n\t\t{\n\t\t\taccno = (accountManagerService.getUserAccountForUserName(username)).getAccountno();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tTransactions t = transactionsDAO.findViewableOrNot(accno);\n\t\tif(t==null)\n\t\t\treturn false;\n\t\t//else if(t.getStatus()==2&&(t.getTransactionTypes().equals(\"TR_VIEW\")&&t.getApprovalNeeded()==1))\n\t\t//return true;\n\t\telse \n\t\t\treturn true;\n\t}",
"private boolean isUserVisibleEvent(int eventType) {\n return eventType != UsageEvents.Event.SYSTEM_INTERACTION\n && eventType != UsageEvents.Event.STANDBY_BUCKET_CHANGED;\n }",
"public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}",
"protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }",
"public void printByUser() {\r\n TUseStatus useStatus;\r\n\t for (int a=0; a < m_current_resources_count; a++)\r\n\t for (int b=0; b < m_current_users_count; b++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }",
"public boolean getIsVisible();",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }",
"@Override\n public boolean hasAccessPermission(String user, NamespaceKey key, DatasetConfig datasetConfig) {\n return userPredicate.test(user);\n }",
"boolean hasLoginapifailhitcount();",
"boolean hasUserList();",
"static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }",
"public boolean isVisible(){\n \t\treturn visible;\n \t}",
"@Override\n protected void onFirstUserVisible() {\n }",
"@Override\r\n\tpublic boolean isAuthorizedToExport(String username, String password) {\n\t\treturn true;\r\n\t}",
"protected boolean visibleToUser(String userId,\n Relationship relationship,\n String methodName)\n {\n if (userId.equals(relationship.getCreatedBy()))\n {\n return true;\n }\n\n return repositoryHelper.getBooleanProperty(serviceName,\n CommentMapper.IS_PUBLIC_PROPERTY_NAME,\n relationship.getProperties(),\n methodName);\n }",
"public boolean getMRUVisible() {\n checkWidget();\n return mru;\n }",
"private boolean isVisible(SettingGroup settingGroup) {\n if (settingGroup == null) {\n return true;\n }\n ParameterKey[] arrparameterKey = settingGroup.getSettingItemList();\n int n = arrparameterKey.length;\n for (int i = 0; i < n; ++i) {\n if (super.isVisible(arrparameterKey[i])) return true;\n }\n return true;\n }",
"private void checkForAndDisplayAlias() {\n if (groupMembership != null) {\n GroupService.getInstance().checkUserAlias(groupMembership.getGroupUid())\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Consumer<Boolean>() {\n @Override\n public void accept(@NonNull Boolean aBoolean) throws Exception {\n Log.e(TAG, \"returned from checking alias, result: \" + aBoolean);\n hasAlias = aBoolean;\n if (aBoolean && aliasNotice != null) {\n aliasNotice.setText(getString(R.string.group_alias_present,\n GroupService.getInstance().getUserAliasInGroup(groupMembership.getGroupUid())));\n aliasNotice.setVisibility(View.VISIBLE);\n } else if (aliasNotice != null) {\n aliasNotice.setVisibility(View.GONE);\n }\n }\n }, new Consumer<Throwable>() {\n @Override\n public void accept(@NonNull Throwable throwable) throws Exception {\n throwable.printStackTrace();\n }\n });\n }\n }",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"@Override\n\t\t\tpublic void setUserVisibleHint(boolean isVisibleToUser) {\n\t\t\t\tsuper.setUserVisibleHint(isVisibleToUser);\n\t\t\t\tisonshow=isVisibleToUser;\n\t\t\t\t//Log.i(\"isonshow\", isVisibleToUser+\"\");\n\n\t\t\t}",
"private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }",
"public int askPermitToGetBetweenVisible();",
"@Override\r\n public List<Visitors> visfindAll() {\n return userMapper.visfindAll();\r\n }",
"public boolean isVisible() {\n\t\treturn true;\n\t}",
"public void Print(int visibility) {\n System.out.println(\"We are at location \" + row + \",\" + col + \" in terrain \" + map[row][col]);\n for(int j = row-visibility; j <= row + visibility; j++) {\n for(int i = col-visibility; i <= col + visibility; i++) {\n if(i >= 0 && i <= (maxC -1) && j >= 0 && j <= (maxR -1))\n System.out.print(map[j][i]);\n else\n System.out.print(\"X\");\n }\n System.out.println(\"\");\n }\n }",
"private void dangerZoneFacilitator(){\n final DatabaseReference dangerZoneReference = FirebaseDatabase.getInstance().getReference(\"userSettings\");\n final FirebaseUser firebaseUser = FirebaseAuth.getInstance().getCurrentUser();\n boolean showDangerZone = true;\n dangerZoneReference.orderByKey()\n .equalTo(firebaseUser.getUid())\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot){\n if (dataSnapshot.getValue() == null) {\n //uid not exist\n if (!dataSnapshot.child(firebaseUser.getUid()).exists()) {\n\n\n }\n }\n //if user available\n else if(dataSnapshot.child(firebaseUser.getUid()).child(\"dangerzone\").exists()){\n String dangerzoneval= dataSnapshot.child(firebaseUser.getUid()).child(\"dangerzone\").getValue().toString();\n if(dangerzoneval.equals(\"true\")){\n generateMarkers();\n }else {\n //DO NOTHING\n }\n }\n\n\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"boolean hasGeographicView();",
"public boolean hasAccess(int uid) {\n return this.mDisplay.hasAccess(uid);\n }",
"@Override\r\n\tpublic boolean isVisible() {\n\t\treturn false;\r\n\t}",
"public boolean checkAdmin()\r\n\t{\r\n\t\tboolean admin=false;\r\n\t\tint length=user_records.size();\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tif(((User)user_records.get(i)).get_username().equals(\"administrator\"))\r\n\t\t\t{\r\n\t\t\t\tadmin=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn admin;\r\n\t}",
"private boolean isCurrentDataWasChanedByAnotherUser(final Monthly_report_revision monthlyReport) {\n Monthly_report_revision currentMonthlyReport = this.monthly_reportRepository.findAndRefresh(monthlyReport);\n return !StringUtils.equalsIgnoreCase(monthlyReport.getShounin_joutai(),\n currentMonthlyReport.getShounin_joutai());\n }",
"public boolean onlyVisible()\n\t{\n\t\treturn visible;\n\t}",
"public boolean isBrowseShown()\r\n\t{\r\n\t\treturn ((this.pageBackingBean.getCurrentUser() != null) || (this.settingEjb\r\n\t\t .getBooleanSettingByName(Constants.SETTING_SEARCH_ALLOW_NON_USERS)))\r\n\t\t && !(this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_INDEXING_COMMENCED));\r\n\t}",
"boolean hasObjUser();",
"boolean hasQueryVisibility();",
"boolean hasUserManaged();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"boolean hasUserID();",
"private boolean isVisible(final MemberRecordCustomField field) {\n if (permissionService.hasPermission(AdminSystemPermission.MEMBER_RECORD_TYPES_VIEW)) {\n return true;\n }\n Group group = LoggedUser.group();\n Collection<MemberRecordType> visibleRecordTypes = Collections.emptyList();\n if (group instanceof AdminGroup) {\n visibleRecordTypes = fetchService.fetch((AdminGroup) group, AdminGroup.Relationships.VIEW_MEMBER_RECORD_TYPES).getViewMemberRecordTypes();\n } else if (group instanceof BrokerGroup) {\n // For brokers, it is possible that specific fields are not visible\n if (field.getBrokerAccess() != MemberRecordCustomField.Access.NONE) {\n visibleRecordTypes = fetchService.fetch((BrokerGroup) group, BrokerGroup.Relationships.BROKER_MEMBER_RECORD_TYPES).getBrokerMemberRecordTypes();\n }\n }\n return visibleRecordTypes.contains(field.getMemberRecordType());\n }",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean verifyAccountAgingColums(){\n\t\tboolean isAgingColums=false;\n\t\tDynamicFramePage.dynamicFrameForPanchart();\n\t\tDynamicFramePage.switchtoFraFrame();\n\t\tdriver.switchTo().frame(\"panProfile_Frame\");\n\t\tString col2 =SeleniumUtil.getElementWithFluentWait(accountAgingColum2).getText();\n\t\tString col3 =SeleniumUtil.getElementWithFluentWait(accountAgingColum3).getText();\n\t\tString col4 =SeleniumUtil.getElementWithFluentWait(accountAgingColum4).getText();\n\t\tif(col2.equalsIgnoreCase(\"31-60\") && col3.equalsIgnoreCase(\"61-90\") && col4.equalsIgnoreCase(\"Over 90\")){\n\t\t\tSystem.out.println(\"All the aging colums are present\");\n\t\t\tisAgingColums=true;\n\t\t}\n\t\treturn isAgingColums;\n\t}",
"private Boolean isInUserBoard() {\n\t\t\tBoolean isInUserBoard;\n\t\t\t//String g = userBoard.getUser().getfName();\n\t\t\tif(userBoard.getUser().getExitCode() != null){\n if(Integer.parseInt(userBoard.getUser().getExitCode()) == 0 ){\n isInUserBoard = true;\n userSingleton.INSTANCE.setfName(userBoard.getUser().getfName());\n userSingleton.INSTANCE.setName(userBoard.getUser().getName());\n userSingleton.INSTANCE.setId(userBoard.getUser().getId());\n userSingleton.INSTANCE.setClasse(userBoard.getUser().getClasse());\n userSingleton.INSTANCE.setPassword(userBoard.getUser().getPassword());\n\n\n }\n else{\n isInUserBoard = false;\n }\n }\n else{\n isInUserBoard = false;\n }\n\n\n\n\t\t\treturn isInUserBoard;\n\t\t}",
"@RequestMapping(value = \"/restricted/{map}/{usermapid}\", method = RequestMethod.GET)\r\n public String mapRestrictedUser(HttpServletRequest request, @PathVariable(\"map\") String map, @PathVariable(\"usermapid\") Integer usermapid, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"map\", map, null, usermapid, false));\r\n }",
"boolean hasSelectedUser();",
"boolean hasUserId();",
"boolean hasUserId();",
"boolean hasUserId();",
"boolean hasLoginapihitcount();",
"public boolean hasUserSettings() {\r\n return processModel.getUserInfos() != null;\r\n }",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"boolean hasMapID();"
] | [
"0.5861891",
"0.57990295",
"0.5752053",
"0.5667496",
"0.556492",
"0.5490156",
"0.5489782",
"0.5485492",
"0.54792786",
"0.54792786",
"0.54636127",
"0.5458336",
"0.5458336",
"0.5445619",
"0.54365504",
"0.5432428",
"0.54255265",
"0.5411061",
"0.54034084",
"0.54010695",
"0.54010695",
"0.54010695",
"0.53970766",
"0.5378967",
"0.5328791",
"0.5323441",
"0.53184515",
"0.53172255",
"0.531617",
"0.531617",
"0.531363",
"0.5297103",
"0.5295139",
"0.52947706",
"0.52946675",
"0.5292128",
"0.52806956",
"0.52763623",
"0.52508414",
"0.524267",
"0.52291435",
"0.5228462",
"0.5226075",
"0.5225985",
"0.52214503",
"0.5219217",
"0.52088916",
"0.52034074",
"0.5192284",
"0.5167206",
"0.5163344",
"0.51632714",
"0.5162315",
"0.5161459",
"0.5160453",
"0.516044",
"0.5160383",
"0.51565623",
"0.5151073",
"0.5147966",
"0.5147074",
"0.51417065",
"0.514095",
"0.51400626",
"0.5137241",
"0.5135886",
"0.51325035",
"0.5129004",
"0.51110315",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51086736",
"0.51076686",
"0.5107131",
"0.5103083",
"0.50922716",
"0.5091712",
"0.50881433",
"0.50865024",
"0.50865024",
"0.50865024",
"0.50839025",
"0.50766623",
"0.5074114",
"0.50681454"
] | 0.74837893 | 0 |
Check visibility of SLA report | public void SLA_Report()
{
boolean SLApresent =SLAreport.size()>0;
if(SLApresent)
{
// System.out.println("SLA report is PRESENT");
}
else
{
System.out.println("SLA report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"public void my_timesheet_report()\n {\n\t boolean timesheetreppresent =mytimesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\" My Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"public void timesheet_report()\n {\n\t boolean timesheetreppresent =timesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\"Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}",
"public void verifyOnDashboardPage() {\n verifyUserLoggedIn.waitForState().enabled(30);\n verifyUserLoggedIn.assertContains().text(\"Dev Links\");\n }",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"public void checkForAlerts() {\n }",
"boolean isSetComplianceCheckResult();",
"@Test(priority = 3, groups = { \"smoke\" }, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"Verify Data Syndication page loads after filter applied\")\n\tpublic void verifyFilteringReportsVisibility() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\ttry {\n\t\t\tint count = 1;\n\t\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"TPSEE\");\n\t\t\twb.deleteEmptyRows();\n\t\t\tTPSEE_Syndication_Status_Page s = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\t\tfor (int i = 1; i <= wb.getRowCount(); i++) {\n\t\t\t\tSystem.out.println(\"******************* Scenarios : \" + count + \"Starts ****************************\");\n\t\t\t\tif (i > 1)\n\t\t\t\t\tCurrentState.getDriver().navigate().refresh();\n\t\t\t\ts.waitUntilLoad(CurrentState.getDriver());\n\t\t\t\tString Group = wb.getCellValue(i, wb.seacrh_pattern(\"Group\", 0).get(0).intValue());\n\t\t\t\tString CountryCode = wb.getCellValue(i, wb.seacrh_pattern(\"Country\", 0).get(0).intValue());\n\t\t\t\tString State = wb.getCellValue(i, wb.seacrh_pattern(\"State\", 0).get(0).intValue());\n\t\t\t\tString City = wb.getCellValue(i, wb.seacrh_pattern(\"City\", 0).get(0).intValue());\n\t\t\t\tString Location = wb.getCellValue(i, wb.seacrh_pattern(\"Location\", 0).get(0).intValue());\n\t\t\t\ts.applyGlobalFilter(Group, CountryCode, State, City, Location);\n\t\t\t\tSystem.out.println(Group + \", \" + CountryCode + \", \" + State + \", \" + City + \", \" + Location);\n\t\t\t\ts.clickApplyFilterBTN();\n\t\t\t\tBaseClass.addEvidence(CurrentState.getDriver(), \"Applied global filter: \" + Group + \", \" + CountryCode\n\t\t\t\t\t\t+ \", \" + State + \", \" + City + \", \" + Location + \"\", \"yes\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"boolean isAllInview();",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"List<Boolean> assertVehiclePlanningHomepage() {\n\t\tList<Boolean> assertValue= new ArrayList<>();\n\n\t\tassertValue.add(0,SeleniumUtility.checkElementIsVisible(driver, \n\t\t\t\thomepageVehiclePlanning.buttonTagRefreshButtonHomepageVehiclePlanning));\n\t\tassertValue.add(1,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning));\n\t\tassertValue.add(2,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.divTagSelectSitesHomepageVehiclePlanning));\n\t\tassertValue.add(3,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.buttonTagDaysArrowHomepageVehiclePlanning));\n\t\tassertValue.add(4,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.inputTagSelectDateHomepageVehiclePlanning));\n\t\treturn assertValue;\n\t}",
"boolean isSetScoreAnalysis();",
"private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }",
"private void checkManualVisit() {\n // scroll to number of visits\n onView(withId(R.id.tv_num_visits)).perform(scrollTo());\n // check number of visits is 1\n onView(withId(R.id.tv_num_visits)).check(matches(withText(String.valueOf(1))));\n\n checkLastVisitLabelAndText(date, time);\n\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // check that the visit has updated date and time\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(date)))));\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(time)))));\n }",
"boolean isOnlineEvaluation();",
"public void verifyEngagementOverviewStatusChange() {\n String strStepSuccess = \"Verify engagement overview status change when click on archive button\";\n String strStepFail = \"TestScript Failed: Verify engagement overview status does not change when click on archive button\";\n try {\n boolean result;\n waitForVisibleElement(eleEngagementOverViewStatusText, \"Wait engagement overview status\");\n result = engagementOverViewStatusBefore.toLowerCase().equals(eleEngagementOverViewStatusText.getText().trim().toLowerCase());\n // will update to assert false when bug has fixed\n Assert.assertTrue(result, \"Engagement overview status change\");\n NXGReports.addStep(strStepSuccess, LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(strStepFail, LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"boolean hasHotelPerformanceView();",
"public boolean getVisibility(){\n\t\tString visibility = DBCommunicator.requestData( \"SELECT zichtbaarheid_type FROM spel WHERE id = \" + id );\n\t\tif(visibility.equals(\"openbaar\")){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"boolean isInDownloadedArea();",
"Observable<PrivateLinkServiceVisibility> checkPrivateLinkServiceVisibilityAsync(String location);",
"static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }",
"public boolean Is_reducesensoralertbox_Visible() {\r\n\t\tWebElement alert = driver.findElementByName(\"Defined number of sensors is less than the configured. \"\r\n\t\t\t\t+ \"It will reset the sensor configuration. Do you want to continue?\");\r\n\t\treturn IsElementVisibleStatus(alert);\r\n\t}",
"public int askPermitToGetBetweenVisible();",
"boolean isVisible();",
"boolean isVisible();",
"@Test(timeout = 4000)\n public void test007() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setAllLevelsVisible(true);\n boolean boolean0 = homeEnvironment0.isAllLevelsVisible();\n assertTrue(boolean0);\n }",
"public Boolean isVisible();",
"public Boolean isVisible();",
"boolean hasScheduling();",
"boolean hasScheduling();",
"boolean isMonitoring();",
"boolean isMonitoring();",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"@Schema(description = \"Details about any restrictions in the visibility of the worklog. Optional when creating or updating a worklog.\")\n public AllOfWorklogVisibility getVisibility() {\n return visibility;\n }",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"public boolean getAvailability(){\n return availabile;\n }",
"@Test(priority=2)\r\n\tpublic void displayReportsOptions() throws InterruptedException {\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayReportsList();\r\n\t\tassertEquals(actual, expected);\r\n\t}",
"public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);",
"public void checkVisibility(WebElement element) {\n wait = new WebDriverWait(driver, 15, 50);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"boolean isMonitoringEnabled();",
"public void verifyOfflineAutoresponseIsEnabled() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.offlineAutoresponseCheckboxEnabled)).isDisplayed();\n\t}",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"final public boolean isVisible() {\n if (hasObtainedSupport) {\n return true;\n }\n boolean ret = true;\n if (numEvents < getThresholdEventsForVisibleCluster()) {\n ret = false;\n }\n if (pathsEnabled) {\n double speed = Math.sqrt(velocityPPT.x * velocityPPT.x + velocityPPT.y * velocityPPT.y) * 1e6 / AEConstants.TICK_DEFAULT_US; // speed is in pixels/sec\n if (speed < thresholdVelocityForVisibleCluster) {\n ret = false;\n }\n }\n hasObtainedSupport = ret;\n if (ret) {\n birthLocation.x = location.x;\n birthLocation.y = location.y; // reset location of birth to presumably less noisy current location.\n }\n return ret;\n }",
"public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }",
"private static void reportStatistics() {\n SmartDashboard.putNumber(\"Speed value\", speed);\n SmartDashboard.putNumber(\"Desired RPM\", kVelocitySetpoint);\n SmartDashboard.putNumber(\"Error\", error);\n SmartDashboard.putNumber(\"ErrorSum\", errorSum);\n SmartDashboard.putNumber(\"Flywheel Velocity (Master)\", -flywheelMaster.getSelectedSensorVelocity());\n\n if(d >= kMinThreePoint && d <= kMaxThreePoint) { //If we are in the range for a 3-point shot\n threePointDistanceEntry.setBoolean(true); //Alert operator\n } else { //If we are not in the range for a 3-point shot\n threePointDistanceEntry.setBoolean(false); //Alert operator\n }\n\n if(d >= kMinViableRange && d <= kMaxViableRange) { //If we are in the viable range for any power port shot\n viableDistanceEntry.setBoolean(true); //Alert operator\n } else { //If we cannot make a shot into the power port\n viableDistanceEntry.setBoolean(false); //Alert operator\n }\n }",
"@Override\n\tpublic void checkMaintenanceStatus() {\n\t}",
"public void reports_TM() throws InterruptedException\n {\n\t System.out.println(\"---*** Reports.reports_TM() ***---\");\n\t if(driver.findElements(By.linkText(\"Reports\")).size()>0)\n\t {\n\t\t clickreports.click();\n\t\t Thread.sleep(1000);\n\t\t if(driver.findElements(By.linkText(\"My reports\")).size()>0)\n\t\t {\n\t\t\t myreportlink.click();\n\t\t\t Thread.sleep(2000);\n\t\t\t String logname = driver.findElement(By.xpath(\"//span[@class='userInfo']\")).getText();\n\t\t\t\tSystem.out.println(\"Loged in user is \" +logname);\n\t\t\t\tswitch(logname)\n\t\t\t\t {\n\t\t\t\t case \"Teammanager Demo2\":\n\t Req_detail();\n\t Large_Req_detail();\n\t Req_Multiple_vol();\n\t feedbacklink.click();\n\t Thread.sleep(1000);\n\t Feedback_req();\n\t Request_type();\n\t timelink.click();\n\t Thread.sleep(1000);\n\t timesheet_report();\n\t userlink.click();\n\t Thread.sleep(1000);\n\t user_details();\n\t user_mappings();\n\t SLAlink.click();\n\t Thread.sleep(1000);\n\t SLA_Report();\n\t auditlink.click();\n\t Thread.sleep(1000);\n\t tracking_Report();\n\t knowlink.click();\n\t Thread.sleep(1000);\n\t know_doc_Report();\n\t if(countreports.size()!=11)\n\t\t {\n\t\t\t System.out.println(\"INCORRECT reports displaying for Team manager\");\n\t\t }\n\t\t else\n\t\t {\n\t\t\t System.out.println(\"Correct reports displaying for Team manager\");\n\t\t }\n\t break;\n\t\tcase \"Analyst Demo2\":\n\t\t Req_detail();\n\t\t\t feedbacklink.click();\n\t\t\t Thread.sleep(1000);\n\t\t\t my_timesheet_report();\n\t\t\t if(countreports.size()!=2)\n\t\t\t {\n\t\t\t\t System.out.println(\"INCORRECT reports displaying for Analyst\");\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t System.out.println(\"Correct reports displaying for Analyst\");\n\t\t\t }\n\t\t\t break;\n\t\t\t }\n\t\t }\n\t\t else\n\t\t {\n\t\t\t System.out.println(\"\\n\" + \"My Reports is not present\");\n\t\t }\n\t }\n\t else\n\t {\n\t\t System.out.println(\"\\n\" + \"Reports module not present\");\n\t }\n\t }",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"boolean hasMission();",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"public void outOfStockSummary() {\n\t\tExtentTest test = extent.createTest(\"Out of Stock Summary Reports: \");\n\n\t\tdriver.switchTo().frame(\"furl\");\n\t\tdriver.findElement(\n\t\t\t\tBy.xpath(\"(.//*[normalize-space(text()) and normalize-space(.)='Trade'])[1]/following::b[1]\")).click();\n\t\tdriver.findElement(By.xpath(\n\t\t\t\t\"(.//*[normalize-space(text()) and normalize-space(.)='Out of Stock Summary'])[2]/following::span[1]\"))\n\t\t\t\t.click();\n\t\tdriver.switchTo().frame(\"mainFrame\");\n\t\tdriver.findElement(By.linkText(\"ASM Daily Visit - PDF\")).click();\n\t\tdriver.switchTo().frame(\"mainFrame\");\n\t\tdriver.findElement(By.id(\"zoneId\")).click();\n\t\tnew Select(driver.findElement(By.id(\"zoneId\"))).selectByVisibleText(\"Center\");\n\t\tdriver.findElement(By.id(\"zoneId\")).click();\n\t\tdriver.findElement(By.id(\"regionId\")).click();\n\t\tnew Select(driver.findElement(By.id(\"regionId\"))).selectByVisibleText(\"Lahore A\");\n\t\tdriver.findElement(By.id(\"regionId\")).click();\n\t\tdriver.findElement(By.id(\"startDate\")).click();\n\t\tdriver.findElement(By.linkText(\"25\")).click();\n\t\tdriver.findElement(By.id(\"surveyorId\")).click();\n\n\t\tdriver.findElement(By.xpath(\"(.//*[normalize-space(text()) and normalize-space(.)='ASM:'])[1]/following::i[1]\"))\n\t\t\t\t.click();\n\t\ttest.pass(\"Login Successfully\");\n\t\ttest.info(\"This Login success info:\");\n\t}",
"public boolean checkStatus() {\r\n return isTiling;\r\n }",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"public static WebElement check_lnkPAEnhancedEntranced_ViewLatestPdtExists(Read_XLS xls, String sheetName, int rowNum,\r\n \t\tList<Boolean> testFail) throws Exception{\r\n \ttry{\r\n \t/*\tBoolean isLinkUpdateMeOnNewPdtExists = driver.findElement(\r\n \t\t\t\tBy.xpath(\"//a[@id='trigger_paTipBox'][contains(text(),'Update me on new products')]\")).isDisplayed();\r\n \t\tAdd_Log.info(\"Is hyperlink Update me on new products exists ::\" + isLinkUpdateMeOnNewPdtExists);\r\n \t*/\t\r\n \t\t\r\n \t\tBoolean isLinkViewLatestPdtExists = driver.findElement(\r\n \t\t\t\tBy.xpath(\"//a[@id='trigger_eConfirmBox'][contains(text(),'View latest products')]\")).isDisplayed();\r\n \t\tAdd_Log.info(\"Is hyperlink View latest products exists ::\" + isLinkViewLatestPdtExists);\r\n \t\t\r\n \t//\tif(isLinkUpdateMeOnNewPdtExists == false && isLinkViewLatestPdtExists == true){\r\n \t\tif(isLinkViewLatestPdtExists == true){\r\n \t\t\tAdd_Log.info(\"Hyperlink of the Enhanced Entrance is removed and the copy changed to 'View latest products'.\");\r\n \t\t\tSuiteUtility.WriteResultUtility(\r\n \t\t\t\t\txls, sheetName, Constant.COL_LINK_VIEW_LATEST_PDT_EXISTS, rowNum, Constant.KEYWORD_PASS);\r\n \t\t}else{\r\n \t\t\tAdd_Log.info(\"Hyperlink of the Enhanced Entrance is NOT removed and the copy is NOT changed to 'View latest products'.\");\r\n \t\t\tSuiteUtility.WriteResultUtility(\r\n \t\t\t\t\txls, sheetName, Constant.COL_LINK_VIEW_LATEST_PDT_EXISTS, rowNum, Constant.KEYWORD_FAIL);\r\n \t\t\ttestFail.set(0, true);\r\n \t\t}\r\n \t}catch(Exception e){\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }",
"boolean isSetLastrunresult();",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"boolean isStatusSuspensao();",
"boolean isCanSeeFriendlyInvisibles();",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"boolean hasAdScheduleView();",
"public boolean hasWarning() {\n\t\treturn !fdpVisaAgentBool() || !fdpVisaDirecBool() || !fdpVisaRespBool();\n\t}",
"boolean isAllInDownloadedArea();",
"@Override\n public void reportSmartDashboard() {\n }",
"public void verifyEngagementOverviewStatusIsComplete() {\n String strStepSuccess = \"Verify engagement overview status is complete\";\n String strStepFail = \"TestScript Failed: Verify engagement overview status is not complete\";\n try {\n boolean result;\n result = ENGAGEMENT_OVER_VIEW_STATUS_COMPLETE.toLowerCase().equals(eleEngagementOverViewStatusText.getText().trim().toLowerCase());\n // will update to assert false when bug has fixed\n Assert.assertTrue(result, \"Engagement overview status is complete\");\n NXGReports.addStep(strStepSuccess, LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(strStepFail, LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"@Override\n\tprotected void isLoaded() throws Error {\n\t\tassertTrue(driver.findElement(By.xpath(\"//a[contains(text(),'Reports')]\")).getText().toString()\n\t\t\t\t.contains(\"Reports\"));\n\t}",
"boolean hasLineage();",
"public boolean isActiveLoan();",
"public void verifyRunDiagnosticsPage(String university)\r\n\t{ \r\n\t\tverifyHelpPageUrl(driver,university);\r\n\t\tif(picture.isDisplayed())\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"run diagnostics page verified\");\r\n\t\t\tATUReports.add(time +\" run diagnostics page verified\", LogAs.PASSED, null);\r\n\t\t\tAssert.assertTrue(true);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"run diagnostics page not verified\");\r\n\t\t\tATUReports.add(time +\" run diagnostics page not verified\", LogAs.FAILED, new CaptureScreen(ScreenshotOf.BROWSER_PAGE));\r\n\t\t\tAssert.assertTrue(false);\r\n\t\t}\r\n\t}",
"public void click_CheckavailabitlityButton()\r\n\t{\r\n\t\r\n\r\n\t\tSystem.out.println(\"Inside of the checkavailabitlity\");\r\n\t\t\r\n\t\t/*\r\n\t\tExplicitWait(Checkavailability);\r\n\r\n\r\n\t\tJavascriptexecutor(Checkavailability);\r\n\t\t//System.out.println(\"clicked on Checkavailability\");\r\n\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\tlogger.info(\"clicked on Checkavailability\");\r\n\t\ttest.log(Status.INFO, \"clicked on Checkavailability\");\r\n\t\t\r\n\t\t */\r\n\t\r\n\t\tExplicitWait(Checkavailability);\r\n\r\n\t\tif (Checkavailability.isDisplayed() ) \r\n\t\t{\r\n\t\t\t\r\n\t\t\t//Checkavailability.click();\r\n\t\t\tJavascriptexecutor(Checkavailability);\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"clicked on Checkavailability\");\r\n\t\t\t\r\n\t\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\t\tExplicitWait(Checkavailability);\r\n\r\n\t\t\tlogger.info(\"clicked on Checkavailability\");\r\n\t\t\ttest.log(Status.INFO, \"clicked on Checkavailability\");\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\t//System.out.println(\"BookNow button not found\");\r\n\t\t\tlogger.error(\"Check Availability button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Check Availability button not found\");\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"public static void monitoring(){\n\t\tWebSelector.click(Xpath.monitoring);\n\t}"
] | [
"0.5904721",
"0.5653081",
"0.560066",
"0.5596936",
"0.556798",
"0.54955935",
"0.5465623",
"0.5457717",
"0.54212284",
"0.5415274",
"0.5410209",
"0.5407914",
"0.5396191",
"0.53942204",
"0.5364922",
"0.53462887",
"0.5339073",
"0.5335249",
"0.53299886",
"0.53284943",
"0.53259605",
"0.531096",
"0.530617",
"0.53010476",
"0.5292828",
"0.5292024",
"0.528454",
"0.52815974",
"0.52815974",
"0.5280333",
"0.5268884",
"0.5268884",
"0.5267384",
"0.5267384",
"0.52620506",
"0.52620506",
"0.525029",
"0.52470183",
"0.52410704",
"0.5232368",
"0.52295387",
"0.5187196",
"0.5178155",
"0.51778203",
"0.51708454",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.51673645",
"0.5161555",
"0.514986",
"0.5145353",
"0.5139895",
"0.5138837",
"0.5133012",
"0.5132771",
"0.51324755",
"0.5131903",
"0.5131903",
"0.5130833",
"0.51294845",
"0.51262873",
"0.5125718",
"0.51139957",
"0.51094466",
"0.51057947",
"0.51018316",
"0.5099579",
"0.5099579",
"0.5099579",
"0.509884",
"0.5098671",
"0.50946534",
"0.5094619",
"0.5093365",
"0.5092256",
"0.5091195",
"0.50886023",
"0.5081985",
"0.50754005",
"0.5064951",
"0.50646454"
] | 0.7444257 | 0 |
Check visibility of tracking report | public void tracking_Report()
{
boolean trackingpresent =trackingreport.size()>0;
if(trackingpresent)
{
//System.out.println("Tracking report is PRESENT");
}
else
{
System.out.println("Tracking report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"protected boolean trackable() {\n return Boolean.TRUE;\n }",
"public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"public boolean isHiddenOnReports() {\n return hiddenOnReports;\n }",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"boolean hasTelemetry();",
"boolean isVisible();",
"boolean isVisible();",
"public Boolean isVisible();",
"public Boolean isVisible();",
"boolean hasHotelPerformanceView();",
"public void SLA_Report()\n {\n\t boolean SLApresent =SLAreport.size()>0;\n\t if(SLApresent)\n\t {\n\t\t // System.out.println(\"SLA report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"SLA report is not present\");\n\t }\n }",
"boolean hasShoppingPerformanceView();",
"boolean hasObjectTrackingConfig();",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"private void checkManualVisit() {\n // scroll to number of visits\n onView(withId(R.id.tv_num_visits)).perform(scrollTo());\n // check number of visits is 1\n onView(withId(R.id.tv_num_visits)).check(matches(withText(String.valueOf(1))));\n\n checkLastVisitLabelAndText(date, time);\n\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // check that the visit has updated date and time\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(date)))));\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(time)))));\n }",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"public boolean hasReportLimit()\n {\n return (this.getReportLimit() > 0L);\n }",
"public Boolean getFlowTracking() throws PermissionDeniedException;",
"private boolean hasTrackingPlane() {\n for (Plane plane : session.getAllTrackables(Plane.class)) {\n if (plane.getTrackingState() == TrackingState.TRACKING) {\n return true;\n }\n }\n return false;\n }",
"@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}",
"public boolean isDisplayed() {\n return isValid() && (getLastSeen() > System.currentTimeMillis() - DAYS_30);\n }",
"public void A_showTrackStatus(ListOfParameterLists parameterLists) {\n // enumerate all tracks in the system\n\n\n if(debug)\n System.out.println(\"\\n\\nAction_Rule 4: Show all the tracks' status\");\n\n Track.analystLogger.log(\" \");\n Track.analystLogger.log(TrackUtilities.printTimeValue(Constant.SHOW_TRACK_EVERY_X_MINS)+\" since last check on \"+trackNumber);\n\n Constant.alertOutput.println(\" \");\n Constant.alertOutput.println (TrackUtilities.printTimeValue(Constant.SHOW_TRACK_EVERY_X_MINS)+\" since last check on \"+trackNumber);\n Constant.alertOutput.flush ();\n }",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"boolean isAllInview();",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"public boolean isVisible(Visibility v);",
"public boolean visible_SetupAssetIDField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_AssetID_txtBx);\r\n\t}",
"boolean hasCampaignAudienceView();",
"public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}",
"final public boolean isVisible() {\n if (hasObtainedSupport) {\n return true;\n }\n boolean ret = true;\n if (numEvents < getThresholdEventsForVisibleCluster()) {\n ret = false;\n }\n if (pathsEnabled) {\n double speed = Math.sqrt(velocityPPT.x * velocityPPT.x + velocityPPT.y * velocityPPT.y) * 1e6 / AEConstants.TICK_DEFAULT_US; // speed is in pixels/sec\n if (speed < thresholdVelocityForVisibleCluster) {\n ret = false;\n }\n }\n hasObtainedSupport = ret;\n if (ret) {\n birthLocation.x = location.x;\n birthLocation.y = location.y; // reset location of birth to presumably less noisy current location.\n }\n return ret;\n }",
"public boolean hasReportLocation() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public boolean isVisible(){\n \t\treturn visible;\n \t}",
"public java.lang.Boolean getIsVisible();",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"public boolean isVisible() {\n\t\treturn true;\n\t}",
"@java.lang.Override\n public boolean hasReportLocation() {\n return reportLocation_ != null;\n }",
"void checkMyLocationVisibility() {\n if (settings.getReturnToMyLocation() || presenter.isTracking())\n showMyLocation();\n }",
"public boolean isVisible() { return _visible; }",
"boolean hasQueryVisibility();",
"public boolean isTargetVisible() {\n return getDouble(\"tv\") == 1;\n }",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean getIsVisible();",
"public boolean visible() {\n \treturn model.isVisible();\n }",
"public boolean isVisible(){ return visible; }",
"boolean isCanSeeFriendlyInvisibles();",
"public boolean isVisible(){\n\t\treturn this.visible;\n\t}",
"public void m36045a() {\n this.f29981a.showReportDialog();\n }",
"boolean isInDownloadedArea();",
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"public void timesheet_report()\n {\n\t boolean timesheetreppresent =timesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\"Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"public void showIfMeetsConditions() {\n\n if (!PrefUtils.getStopTrack(mContext) && (checkIfMeetsCondition() || isDebug)) {\n showRatePromptDialog();\n PrefUtils.setStopTrack(true, mContext);\n }\n }",
"public boolean isVisible() {\n return true;\n }",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"boolean generateReport();",
"public boolean isVisible() {\n return true;\n }",
"boolean hasCampaignExperiment();",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public int askPermitToGetBetweenVisible();",
"private boolean isVisible(SettingGroup settingGroup) {\n if (settingGroup == null) {\n return true;\n }\n ParameterKey[] arrparameterKey = settingGroup.getSettingItemList();\n int n = arrparameterKey.length;\n for (int i = 0; i < n; ++i) {\n if (super.isVisible(arrparameterKey[i])) return true;\n }\n return true;\n }",
"public boolean isVisible()\n {\n return visible;\n }",
"boolean hasCampaignCriterionSimulation();",
"boolean hasStatistics();",
"public void checkVisibility(WebElement element) {\n wait = new WebDriverWait(driver, 15, 50);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"public void updateVisibilityStatus(RecordSet recordSet, boolean includeReasonableDataCheck) {\n\t\tint channelConfigNumber = recordSet.getChannelConfigNumber();\n\t\tint displayableCounter = 0;\n\t\tRecord record;\n\t\tMeasurementType measurement;\n\t\t//0=VoltageRx, 1=Voltage, 2=Current, 3=Capacity, 4=Power, 5=Energy, 6=CellBalance, 7=CellVoltage1, 8=CellVoltage2, 9=CellVoltage3, \n\t\t//10=CellVoltage4, 11=CellVoltage5, 12=CellVoltage6, 13=Revolution, 14=Efficiency, 15=Height, 16=Climb, 17=ValueA1, 18=ValueA2, 19=ValueA3,\n\t\t//20=AirPressure, 21=InternTemperature, 22=ServoImpuls In, 23=ServoImpuls Out, \n\t\t//M-LINK 24=valAdd00 25=valAdd01 26=valAdd02 27=valAdd03 28=valAdd04 29=valAdd05 30=valAdd06 31=valAdd07 32=valAdd08 33=valAdd09 34=valAdd10 35=valAdd11 36=valAdd12 37=valAdd13 38=valAdd14;\n\t\tString[] measurementNames = this.getMeasurementNames(channelConfigNumber);\n\t\t// check if measurements isActive == false and set to isDisplayable == false\n\t\tfor (int i = 0; i < recordSet.size(); ++i) {\n\t\t\t// since actual record names can differ from device configuration measurement names, match by ordinal\n\t\t\trecord = recordSet.get(i);\n\t\t\tmeasurement = this.getMeasurement(channelConfigNumber, i);\n\t\t\tlog.log(Level.FINE, record.getName() + \" = \" + measurementNames[i]); //$NON-NLS-1$\n\n\t\t\t// update active state and displayable state if configuration switched with other names\n\t\t\tif (record.isActive() != measurement.isActive()) {\n\t\t\t\trecord.setActive(measurement.isActive());\n\t\t\t\trecord.setVisible(measurement.isActive());\n\t\t\t\trecord.setDisplayable(measurement.isActive());\n\t\t\t\tlog.log(Level.FINE, \"switch \" + record.getName() + \" to \" + measurement.isActive()); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t}\n\t\t\tif (includeReasonableDataCheck) {\n\t\t\t\trecord.setDisplayable(record.hasReasonableData() && measurement.isActive());\n\t\t\t\tlog.log(Level.FINE, record.getName() + \" ! hasReasonableData \"); //$NON-NLS-1$ \n\t\t\t}\n\n\t\t\tif (record.isActive() && record.isDisplayable()) {\n\t\t\t\tlog.log(Level.FINE, \"add to displayable counter: \" + record.getName()); //$NON-NLS-1$\n\t\t\t\t++displayableCounter;\n\t\t\t}\n\t\t}\n\t\tlog.log(Level.FINER, \"displayableCounter = \" + displayableCounter); //$NON-NLS-1$\n\t\trecordSet.setConfiguredDisplayable(displayableCounter);\n\t}",
"private void viewRepositoryCheckReportButtonActionPerformed() {\n ImportExportLogDialog logDialog = null;\n\n if(ascopyREC != null && checkRepositoryMismatch) {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, ascopyREC.getCurrentRecordCheckMessage());\n logDialog.setTitle(\"Current Repository Mismatch Errors\");\n } else {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, repositoryMismatchErrors);\n logDialog.setTitle(\"Repository Mismatch Errors\");\n }\n\n logDialog.showDialog();\n }",
"public void my_timesheet_report()\n {\n\t boolean timesheetreppresent =mytimesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\" My Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"public boolean isRecordSetVisible(GraphicsType type) {\r\n\t\tboolean result = false;\r\n\t\tswitch (type) {\r\n\t\tcase COMPARE:\r\n\t\t\tresult = this.compareTabItem != null && !this.compareTabItem.isDisposed() && this.compareTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase HISTO:\r\n\t\t\tresult = this.histoGraphicsTabItem != null && !this.histoGraphicsTabItem.isDisposed() && this.histoGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase UTIL:\r\n\t\t\tresult = this.utilGraphicsTabItem != null && !this.utilGraphicsTabItem.isDisposed() && this.utilGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase NORMAL:\r\n\t\tdefault:\r\n\t\t\tresult = this.graphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public boolean visible_SetupSensorCountField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_Sensordata_txtBx);\r\n\t}",
"boolean isInview();",
"boolean hasAutomlObjectTrackingConfig();",
"public boolean isAtLeastVisible(Visibility v);",
"@Test(priority = 3, groups = { \"smoke\" }, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"Verify Data Syndication page loads after filter applied\")\n\tpublic void verifyFilteringReportsVisibility() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\ttry {\n\t\t\tint count = 1;\n\t\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"TPSEE\");\n\t\t\twb.deleteEmptyRows();\n\t\t\tTPSEE_Syndication_Status_Page s = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\t\tfor (int i = 1; i <= wb.getRowCount(); i++) {\n\t\t\t\tSystem.out.println(\"******************* Scenarios : \" + count + \"Starts ****************************\");\n\t\t\t\tif (i > 1)\n\t\t\t\t\tCurrentState.getDriver().navigate().refresh();\n\t\t\t\ts.waitUntilLoad(CurrentState.getDriver());\n\t\t\t\tString Group = wb.getCellValue(i, wb.seacrh_pattern(\"Group\", 0).get(0).intValue());\n\t\t\t\tString CountryCode = wb.getCellValue(i, wb.seacrh_pattern(\"Country\", 0).get(0).intValue());\n\t\t\t\tString State = wb.getCellValue(i, wb.seacrh_pattern(\"State\", 0).get(0).intValue());\n\t\t\t\tString City = wb.getCellValue(i, wb.seacrh_pattern(\"City\", 0).get(0).intValue());\n\t\t\t\tString Location = wb.getCellValue(i, wb.seacrh_pattern(\"Location\", 0).get(0).intValue());\n\t\t\t\ts.applyGlobalFilter(Group, CountryCode, State, City, Location);\n\t\t\t\tSystem.out.println(Group + \", \" + CountryCode + \", \" + State + \", \" + City + \", \" + Location);\n\t\t\t\ts.clickApplyFilterBTN();\n\t\t\t\tBaseClass.addEvidence(CurrentState.getDriver(), \"Applied global filter: \" + Group + \", \" + CountryCode\n\t\t\t\t\t\t+ \", \" + State + \", \" + City + \", \" + Location + \"\", \"yes\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean isTracing();",
"public void Verify_Page_Header_Visibility()\r\n\t{\r\n\t\t if(Page_header.isDisplayed())\r\n\t\t\t System.out.println(\"header visible at webpage\");\r\n\t\t else\r\n\t\t\t System.out.println(\"header not visible at webpage\");\r\n\t\t\r\n\t}",
"private void showProgressNotification() {\n if (isCollectingBugReport()) {\n mNotificationManager.notify(\n BUGREPORT_IN_PROGRESS_NOTIF_ID, buildProgressNotification());\n }\n }",
"public boolean isModelChartIsVisible();",
"public boolean visible_LoadDescField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_LoadDesc_txtBx);\r\n\t}",
"boolean isMonitoring();",
"boolean isMonitoring();",
"public boolean isVisible () {\n return visible;\n }",
"public boolean isVisible(Entity entity) {\n\t\ta = getArea(entity, false, false);\n\t\treturn a != null && !a.isEmpty();\n\t\t//if (entity != null && \"Fishing spot\".equals(entity.getName()))\n\t\t//\treturn getWalker().tile(entity).isVisible();\n\t\t\n\t\t//return entity.isVisible();\n\t}",
"private void sendReports()\n {\n int modeState = 0;\n if(currentTentativetrack!=null){\n modeState = 3;\n }\n if(currentTrack!=null){\n modeState = 2;\n }\n if(autoPanningMode){\n modeState = 1;\n }\n\n\n double myTrackDistance = currentTrack!=null ? Spherical.getRhumbDistance(controllingCamera.getSensorPosition(), currentTrack.getPosition()) : 0;\n String trackId = currentTrack != null ? ((TrackDetection) currentTrack).getSimulatedTrackId() : \"0\";\n\n Reports.getInstance().sendAgentMode(simulationDuration, getObjectId(), modeState, trackId, myTrackDistance, controllingCamera.getLookingAtPoint());\n }",
"@VTID(11)\r\n boolean getVisibleInPivotTable();",
"public boolean getModelChartIsVisible();",
"public void checkVisible(Status status) {\n if (status == Status.GAMEOVER) {\n this.exit.setVisible(true);\n this.name.setVisible(true);\n this.score.setVisible(true);\n this.text.setVisible(true);\n this.textField.setVisible(true);\n } else{\n this.exit.setVisible(false);\n this.name.setVisible(false);\n this.score.setVisible(false);\n this.text.setVisible(false);\n this.textField.setVisible(false);\n }\n }",
"@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}",
"public static Boolean getDisplayedStatus(By byObj) {\n\t\treturn driver.findElement(byObj).isDisplayed();\n\t}",
"public boolean checkForGourds() {return false;}",
"public void onReportClick(){\r\n\t\tmyView.advanceToReport();\r\n\t}",
"public boolean isVisible(String label)\n {\n return true;\n }",
"public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}",
"public void verifyGeneralTrainingIsDisplayed() {\n\t\t moveToElement(generalTraining);\n Assert.assertTrue(generalTraining.isDisplayed());\t\n reportInfo();\n\t }"
] | [
"0.6395612",
"0.6151665",
"0.61317164",
"0.5936072",
"0.5929569",
"0.5902828",
"0.5880581",
"0.58562046",
"0.5817601",
"0.5817601",
"0.578616",
"0.578616",
"0.5775158",
"0.5755636",
"0.56800956",
"0.56443554",
"0.5638299",
"0.5638299",
"0.5638299",
"0.56344485",
"0.5626324",
"0.5612275",
"0.56113917",
"0.5605773",
"0.56016135",
"0.55964947",
"0.5587663",
"0.55790055",
"0.55727947",
"0.55723983",
"0.5566773",
"0.5558094",
"0.5558094",
"0.5540596",
"0.5523122",
"0.5504914",
"0.55003923",
"0.54859275",
"0.54857486",
"0.5472261",
"0.5467198",
"0.54594266",
"0.5454404",
"0.54444295",
"0.54383576",
"0.5429693",
"0.54241246",
"0.5412212",
"0.5409466",
"0.5406332",
"0.5387731",
"0.5384632",
"0.53653234",
"0.536468",
"0.5361298",
"0.53557795",
"0.5334772",
"0.53332365",
"0.53310525",
"0.53285354",
"0.53274274",
"0.53264105",
"0.53185934",
"0.5318186",
"0.53162",
"0.53140295",
"0.5310031",
"0.5296575",
"0.5291632",
"0.52729565",
"0.52680844",
"0.5264151",
"0.5255799",
"0.5252585",
"0.52524847",
"0.5252398",
"0.52418303",
"0.5227062",
"0.5224977",
"0.5216561",
"0.520848",
"0.52063066",
"0.5199712",
"0.519653",
"0.5194286",
"0.5192406",
"0.5192406",
"0.5192129",
"0.5187474",
"0.5187346",
"0.51840806",
"0.5174919",
"0.51727223",
"0.51712745",
"0.51647735",
"0.51614654",
"0.51551944",
"0.5154799",
"0.5153795",
"0.51518065"
] | 0.7478938 | 0 |
Check visibility of Knowledge document details report | public void know_doc_Report()
{
boolean knowedgepresent =knowdoc.size()>0;
if(knowedgepresent)
{
// System.out.println("Knowledge document details report is PRESENT");
}
else
{
System.out.println("Knowledge document details report is not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Req_detail()\n {\n\t boolean reqpresent=reqdetails.size()>0;\n\t // boolean reqpresent = driver.findElements(By.linkText(\"Requests details\")).size()>0;\n\t if(reqpresent)\n\t {\n\t\t // System.out.println(\"Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Request details report is not present\");\n\t }\n }",
"boolean hasProofDocument();",
"boolean hasProofDocument();",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasDocument();",
"boolean hasRevealDocument();",
"public Boolean isVisible();",
"public Boolean isVisible();",
"public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }",
"boolean isVisible();",
"boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"public String getDocStatus();",
"public String getDocStatus();",
"public String getDocStatus();",
"public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}",
"public void renderAudit(CoreSession session, DocumentModel doc, boolean unrestricted) throws ClientException;",
"boolean hasPaidOrganicSearchTermView();",
"public boolean visible_LoadDescField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_LoadDesc_txtBx);\r\n\t}",
"boolean hasExternalAttributionModel();",
"public boolean isVisible() {\n\t\treturn true;\n\t}",
"boolean hasQueryVisibility();",
"boolean hasExternalAttributionCredit();",
"public void user_details()\n {\n\t boolean userdetpresent =userdetails.size()>0;\n\t if(userdetpresent)\n\t {\n\t\t //System.out.println(\"User details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User details report is not present\");\n\t }\n }",
"boolean hasDescribe();",
"@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}",
"public static boolean QuestionVisible(){\r\n\t return (question.getText().equalsIgnoreCase(\"How would you rate your satisfaction with this website?\"));\t\r\n\t}",
"public boolean existDocumentContent(long arg0) throws ContestManagementException {\r\n return false;\r\n }",
"public void verifyViewBatchDetails(final Integer rowNum) {\n Log.logScriptInfo(\"Selecting Row\" + rowNum + \" to View Batch details....\");\n lblRow(rowNum).waitForVisibility(Log.giAutomationMedTO);\n lblRow(rowNum).click();\n btnViewBatchDetail().click();\n Log.logBanner(\"Verifying View Batch detail columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyViewBatchDetailColumns();\n }",
"public boolean verifyPreAdmission_StudentCountReportPage() {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(txt_StudentCountReportPage.getText().trim());\r\n\t\t\ttxt_StudentCountReportPage.isDisplayed();\r\n\t\t\tlog(\"PreAdmission Student Count Report page is dispalyed and object is:-\"\r\n\t\t\t\t\t+ txt_StudentCountReportPage.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t\treturn true;\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isVisible() {\n return true;\n }",
"protected String loadDocumentDetails()\r\n\t{\r\n\t\tsetC_Currency_ID (NO_CURRENCY);\r\n\t\tX_M_Production prod = (X_M_Production)getPO();\r\n\t\tsetDateDoc (prod.getMovementDate());\r\n\t\tsetDateAcct(prod.getMovementDate());\r\n\t\t//\tContained Objects\r\n\t\tp_lines = loadLines(prod);\r\n\t\tif (log.isLoggable(Level.FINE)) log.fine(\"Lines=\" + p_lines.length);\r\n\t\treturn null;\r\n\t}",
"public boolean isVisible() {\n return true;\n }",
"boolean isSetComplianceCheckResult();",
"public java.lang.Boolean getIsVisible();",
"public boolean hasVisibleItems();",
"boolean hasDocumentType();",
"boolean hasRecommendation();",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"public boolean isVisible()\n {\n return visible;\n }",
"boolean hasTopicView();",
"public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"boolean hasCurrentDocument();",
"public boolean isVisible(){\n \t\treturn visible;\n \t}",
"public boolean isVisible(){\n\t\treturn this.visible;\n\t}",
"final public boolean isVisible() {\n if (hasObtainedSupport) {\n return true;\n }\n boolean ret = true;\n if (numEvents < getThresholdEventsForVisibleCluster()) {\n ret = false;\n }\n if (pathsEnabled) {\n double speed = Math.sqrt(velocityPPT.x * velocityPPT.x + velocityPPT.y * velocityPPT.y) * 1e6 / AEConstants.TICK_DEFAULT_US; // speed is in pixels/sec\n if (speed < thresholdVelocityForVisibleCluster) {\n ret = false;\n }\n }\n hasObtainedSupport = ret;\n if (ret) {\n birthLocation.x = location.x;\n birthLocation.y = location.y; // reset location of birth to presumably less noisy current location.\n }\n return ret;\n }",
"public void Large_Req_detail()\n {\n\t boolean largereqpresent =lareqdetails.size()>0;\n\t if(largereqpresent)\n\t {\n\t\t// System.out.println(\"Large Request details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Large Request details report is not present\");\n\t }\n }",
"protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }",
"public boolean existDocumentContent(long documentId) throws ContestManagementException {\r\n return false;\r\n }",
"boolean isAllInview();",
"public boolean verifyReadTermsAndCondition(ExtentTest extentedReport) throws Exception {\n\t\tboolean status = false;\n\n\t\t\tWaitUtils.waitForElementPresent(driver, termsAndConditionsSection,\n\t\t\t\t\t\"Failed to locate Terms and condition check box\");\n\t\t\ttermsAndConditionsSection.click();\n\t\t\tThread.sleep(3000);\n\t\t\tLog.message(\"Clicked on Terms and Condition Section\", extentedReport);\n\t\t\tif (WaitUtils.waitForElement(driver, btnAttachTermAndCondition)) {\n\t\t\tbtnAttachTermAndCondition.click();\n\t\t\tThread.sleep(3000);\n\t\t\tLog.message(\"Clicked on button - Attach Term and Condition\", driver, extentedReport);\n\t\t\tif (WaitUtils.waitForElement(driver, firstTermAndConditionInList)) {\n\t\t\t\tfirstTermAndConditionInList.click();\n\t\t\t\tThread.sleep(4000);\n\t\t\t\tLog.message(\"Clicked on first term and condition from the list\", driver, extentedReport);\n\t\t\t\tif (WaitUtils.waitForElement(driver, selectTAC)) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"First Term and condition not visible\");\n\t\t\t}\n\t\t\tfirstTermAndConditionInList.click();\n\t\t\tThread.sleep(3000);\n\t\t\tLog.message(\"Clicked on first term and condition from the list\", driver, extentedReport);\n\t\t} else {\n\t\t\tthrow new Exception(\"Button Attach Term and Condition not visible\");\n\t\t}\n\treturn status;\n\t}",
"public int askPermitToGetBetweenVisible();",
"boolean hasShoppingPerformanceView();",
"boolean hasDisplayKeywordView();",
"@Test(priority = 3, groups = { \"smoke\" }, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"Verify Data Syndication page loads after filter applied\")\n\tpublic void verifyFilteringReportsVisibility() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\ttry {\n\t\t\tint count = 1;\n\t\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"TPSEE\");\n\t\t\twb.deleteEmptyRows();\n\t\t\tTPSEE_Syndication_Status_Page s = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\t\tfor (int i = 1; i <= wb.getRowCount(); i++) {\n\t\t\t\tSystem.out.println(\"******************* Scenarios : \" + count + \"Starts ****************************\");\n\t\t\t\tif (i > 1)\n\t\t\t\t\tCurrentState.getDriver().navigate().refresh();\n\t\t\t\ts.waitUntilLoad(CurrentState.getDriver());\n\t\t\t\tString Group = wb.getCellValue(i, wb.seacrh_pattern(\"Group\", 0).get(0).intValue());\n\t\t\t\tString CountryCode = wb.getCellValue(i, wb.seacrh_pattern(\"Country\", 0).get(0).intValue());\n\t\t\t\tString State = wb.getCellValue(i, wb.seacrh_pattern(\"State\", 0).get(0).intValue());\n\t\t\t\tString City = wb.getCellValue(i, wb.seacrh_pattern(\"City\", 0).get(0).intValue());\n\t\t\t\tString Location = wb.getCellValue(i, wb.seacrh_pattern(\"Location\", 0).get(0).intValue());\n\t\t\t\ts.applyGlobalFilter(Group, CountryCode, State, City, Location);\n\t\t\t\tSystem.out.println(Group + \", \" + CountryCode + \", \" + State + \", \" + City + \", \" + Location);\n\t\t\t\ts.clickApplyFilterBTN();\n\t\t\t\tBaseClass.addEvidence(CurrentState.getDriver(), \"Applied global filter: \" + Group + \", \" + CountryCode\n\t\t\t\t\t\t+ \", \" + State + \", \" + City + \", \" + Location + \"\", \"yes\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean isVisible() { return _visible; }",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"public boolean visible() {\n \treturn model.isVisible();\n }",
"public boolean getIsVisible();",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"public static boolean isVisible(Class<? extends DocIndexer> docIndexerClass) {\n try {\n Method m = docIndexerClass.getMethod(\"isVisible\");\n return (boolean) m.invoke(null);\n } catch (ReflectiveOperationException e) {\n return true;\n }\n }",
"boolean isCanSeeFriendlyInvisibles();",
"public boolean Is_reducesensoralertbox_Visible() {\r\n\t\tWebElement alert = driver.findElementByName(\"Defined number of sensors is less than the configured. \"\r\n\t\t\t\t+ \"It will reset the sensor configuration. Do you want to continue?\");\r\n\t\treturn IsElementVisibleStatus(alert);\r\n\t}",
"@java.lang.Override\n public boolean hasRevealDocument() {\n return revealDocument_ != null;\n }",
"public int qdtDocentesDisponibilidade(OfertaDisciplina of){\n \n of = ofertaDisciplinaFacade.inicializarColecaoDisponibilidades(of);\n \n //Set<Disponibilidade> disponibilidades = of.getDisponibilidades();\n Set<Disp> disponibilidades = of.getDispo();\n \n return disponibilidades.size(); \n }",
"public boolean isHiddenOnReports() {\n return hiddenOnReports;\n }",
"public void partVisible(IWorkbenchPartReference partRef) {\n\t\t\t\t\n\t\t\t}",
"@Then ( \"^The labor and delivery report is documented successfully$\" )\n public void documentedSuccessfully () {\n waitForAngular();\n // confirm that the error message is displayed\n driver.get( baseUrl );\n final WebDriverWait wait = new WebDriverWait( driver, 20 );\n wait.until( ExpectedConditions.titleContains( \"HCP Home\" ) );\n assertEquals( \"iTrust2: HCP Home\", driver.getTitle() );\n wait.until( ExpectedConditions.elementToBeClickable( By.name( \"transactionTypeCell\" ) ) );\n assertTextPresent( \"HCP views an OB/GYN Labor and Delivery Report\" );\n }",
"private boolean isVisible(SettingGroup settingGroup) {\n if (settingGroup == null) {\n return true;\n }\n ParameterKey[] arrparameterKey = settingGroup.getSettingItemList();\n int n = arrparameterKey.length;\n for (int i = 0; i < n; ++i) {\n if (super.isVisible(arrparameterKey[i])) return true;\n }\n return true;\n }",
"@DISPID(1611006060) //= 0x6006006c. The runtime will prefer the VTID if present\n @VTID(135)\n boolean externalReferencesAsVisible();",
"boolean isInfoEnabled();",
"boolean isInDownloadedArea();",
"public void onVisible() {\r\n System.out.println(\"toolkit.AbstractDemo.onVisible()\");\r\n }",
"public Boolean getFlowTracking() throws PermissionDeniedException;",
"@Test(suiteName = \"NowPlaying\", testName = \"DMCA Restricted\", description = \"Validating On Demand DMCA Restricted\", enabled = true, groups = {\n\t\t\t\"MOBANDEVER-253\" })\n\tpublic void onDemanddmcaRestrictedShownamePDT() {\n\t\tCommon common = new Common(driver);\n\t\tCommon.log(\"verifying On Demand DMCA restricted Show Name PDT MOBANDEVER-253\");\n\t\ttry {\n\t\t\tgetPageFactory().getEvehome().clickonMusic();\n\t\t\tcommon.scrollUntilTextExists(\"Dance/Electronic\");\n\t\t\tgetPageFactory().getEvehome().clickMucisSubRock();\n\t\t\tgetPageFactory().getdmca().verifyOnDemandDMCA();\n\t\t\tgetPageFactory().getCategory().nplShowName();\n\t\t\tgetPageFactory().getCategory().nplPDT();\n\t\t\tgetPageFactory().getEvehome().clickminimize();\n\t\t} catch (AndriodException ex) {\n\t\t\tCommon.errorlog(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t\tAssert.fail(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t}\n\t}",
"public boolean isVisible(){ return visible; }",
"public boolean getModelChartIsVisible();",
"boolean hasPageNo();",
"boolean hasPageNo();",
"@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}",
"public void setInfoVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_info_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_info_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setInfoVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"@Schema(description = \"Details about any restrictions in the visibility of the worklog. Optional when creating or updating a worklog.\")\n public AllOfWorklogVisibility getVisibility() {\n return visibility;\n }",
"@Override\r\n\tpublic boolean isVisible() {\n\t\treturn false;\r\n\t}",
"public boolean veirfyUserOnSummerDressesPage(){\n WebElement page = driver.findElement(By.cssSelector(\"div[class='cat_desc']\"));\n boolean pageStatus = page.isDisplayed();\n return pageStatus;\n }",
"protected String loadDocumentDetails ()\n\t{\n\t\tMPayment pay = (MPayment)getPO();\n\t\tsetDateDoc(pay.getDateTrx());\n\t\tm_TenderType = pay.getTenderType();\n\t\tm_Prepayment = pay.isPrepayment();\n\t\tm_C_BankAccount_ID = pay.getC_BankAccount_ID();\n\t\t//\tAmount\n\t\tsetAmount(Doc.AMTTYPE_Gross, pay.getPayAmt());\n\t\treturn null;\n\t}",
"public boolean isVisible () {\n return visible;\n }",
"public boolean getViewfact() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"viewfact\")).booleanValue());\n }",
"boolean isSetDesc();",
"boolean hasHasRecommendation();",
"protected static boolean display(DecisionVariableDeclaration decl) {\n return ModelAccess.isVisibleType(decl.getType()) && !ConstraintType.isConstraint(decl.getType());\n }"
] | [
"0.63164175",
"0.58676356",
"0.58676356",
"0.5759797",
"0.5759797",
"0.5759797",
"0.57314044",
"0.5691357",
"0.5691357",
"0.5621608",
"0.559597",
"0.559597",
"0.5592857",
"0.5592857",
"0.5592857",
"0.55557257",
"0.55557257",
"0.55549616",
"0.55549616",
"0.55549616",
"0.5533711",
"0.55320805",
"0.5515244",
"0.5424825",
"0.54110825",
"0.5400876",
"0.5399561",
"0.536522",
"0.5338784",
"0.53152627",
"0.53067875",
"0.52949226",
"0.52921176",
"0.5289841",
"0.52747893",
"0.52723837",
"0.5257186",
"0.525609",
"0.5255961",
"0.52468514",
"0.5240723",
"0.523705",
"0.5233167",
"0.52294606",
"0.52233404",
"0.5217267",
"0.5215365",
"0.52133197",
"0.52089274",
"0.51887745",
"0.5176748",
"0.51703435",
"0.51702076",
"0.5157981",
"0.5156238",
"0.51510805",
"0.5147087",
"0.51429224",
"0.51425356",
"0.51421463",
"0.5133364",
"0.5123081",
"0.5121495",
"0.5120252",
"0.5117109",
"0.5116481",
"0.5116078",
"0.51108485",
"0.51084995",
"0.5105269",
"0.51003695",
"0.5095944",
"0.5091971",
"0.5086395",
"0.5073611",
"0.50730395",
"0.50656724",
"0.5064176",
"0.5061851",
"0.50613725",
"0.5060926",
"0.5059782",
"0.5058881",
"0.5056962",
"0.5051981",
"0.5050928",
"0.50428367",
"0.5042217",
"0.5042217",
"0.5041772",
"0.5037646",
"0.5036887",
"0.503175",
"0.5022413",
"0.5020583",
"0.50191396",
"0.5016337",
"0.5009561",
"0.5007284",
"0.500448"
] | 0.70736957 | 0 |
Check reports visibility for Team Manager | public void reports_TM() throws InterruptedException
{
System.out.println("---*** Reports.reports_TM() ***---");
if(driver.findElements(By.linkText("Reports")).size()>0)
{
clickreports.click();
Thread.sleep(1000);
if(driver.findElements(By.linkText("My reports")).size()>0)
{
myreportlink.click();
Thread.sleep(2000);
String logname = driver.findElement(By.xpath("//span[@class='userInfo']")).getText();
System.out.println("Loged in user is " +logname);
switch(logname)
{
case "Teammanager Demo2":
Req_detail();
Large_Req_detail();
Req_Multiple_vol();
feedbacklink.click();
Thread.sleep(1000);
Feedback_req();
Request_type();
timelink.click();
Thread.sleep(1000);
timesheet_report();
userlink.click();
Thread.sleep(1000);
user_details();
user_mappings();
SLAlink.click();
Thread.sleep(1000);
SLA_Report();
auditlink.click();
Thread.sleep(1000);
tracking_Report();
knowlink.click();
Thread.sleep(1000);
know_doc_Report();
if(countreports.size()!=11)
{
System.out.println("INCORRECT reports displaying for Team manager");
}
else
{
System.out.println("Correct reports displaying for Team manager");
}
break;
case "Analyst Demo2":
Req_detail();
feedbacklink.click();
Thread.sleep(1000);
my_timesheet_report();
if(countreports.size()!=2)
{
System.out.println("INCORRECT reports displaying for Analyst");
}
else
{
System.out.println("Correct reports displaying for Analyst");
}
break;
}
}
else
{
System.out.println("\n" + "My Reports is not present");
}
}
else
{
System.out.println("\n" + "Reports module not present");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasTeam();",
"protected void doCheckView() {\n // check the remotes first\n if (getAnnouncementRegistry() == null) {\n logger.info(\"announcementRegistry is null (will check view again later)\");\n return;\n }\n getAnnouncementRegistry().checkExpiredAnnouncements();\n }",
"@Test(priority=2)\r\n\tpublic void displayReportsOptions() throws InterruptedException {\r\n\t\tboolean expected=true;\r\n\t\tboolean actual=filterReturnsList.displayReportsList();\r\n\t\tassertEquals(actual, expected);\r\n\t}",
"public void verifyOnDashboardPage() {\n verifyUserLoggedIn.waitForState().enabled(30);\n verifyUserLoggedIn.assertContains().text(\"Dev Links\");\n }",
"public void verifyreport()\t\n{\n\tif(ReadPropertyFile.get(\"Application\").equalsIgnoreCase(\"Phonakpro\"))\n\t{\n\t\t// handling the windows tab using below code\n\t\t \n\t\tArrayList<String> newTab = new ArrayList<String>(DriverManager.getDriver().getWindowHandles());\n\t \n\t //if you traverse forward the next tab from the existing tab\n\t DriverManager.getDriver().switchTo().window(newTab.get(2));\n\t}\n\telse if(ReadPropertyFile.get(\"Application\").equalsIgnoreCase(\"Unitron\"))\n\t{\n\t\t// handling the windows tab using below code\n\t\t \n\t\tArrayList<String> newTab = new ArrayList<String>(DriverManager.getDriver().getWindowHandles());\n\t \n\t //if you traverse forward the next tab from the existing tab\n\t DriverManager.getDriver().switchTo().window(newTab.get(0));\n\t}\n\t\n\t//SELECT REPORT MENU ITEM\n\tjScriptClick(settingsMenuItem.get(1));\n\t//SELECT THE REPORT DROP DOWN\n\tjScriptClick(reportDropDownbutton.get(0));\n\t\n\t// ENTER THE SCREENER NAME\n\tsendkeys(reportDropDownInputText.get(1),\"automatescreener\");\n\t//SELECT THE FIRST SCREENER IF THE SCREENER HAS THE SAME NAME\n\tjScriptClick(reportDropDownScreenersListOptions.get(0));\n\tjScriptClick(dateReportDropDownbutton.get(1));\n\tjScriptClick(reportDropDownbutton.get(1));\n\tjScriptClick(dateReportDropDownoptionToday);\n\tjScriptClick(dateOptionOkButton);\n}",
"public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }",
"public Boolean isTeamMember(final Artifact artifact);",
"public boolean isHiddenOnReports() {\n return hiddenOnReports;\n }",
"@Test(timeout = 4000)\n public void test007() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setAllLevelsVisible(true);\n boolean boolean0 = homeEnvironment0.isAllLevelsVisible();\n assertTrue(boolean0);\n }",
"protected boolean checkVisiblePermission() {\r\n ClientSecurityManager manager = ApplicationManager.getClientSecurityManager();\r\n if (manager != null) {\r\n if (this.visiblePermission == null) {\r\n if ((this.buttonKey != null) && (this.parentForm != null)) {\r\n this.visiblePermission = new FormPermission(this.parentForm.getArchiveName(), \"visible\",\r\n this.buttonKey, true);\r\n }\r\n }\r\n try {\r\n // Checks to show\r\n if (this.visiblePermission != null) {\r\n manager.checkPermission(this.visiblePermission);\r\n }\r\n this.restricted = false;\r\n return true;\r\n } catch (Exception e) {\r\n this.restricted = true;\r\n if (e instanceof NullPointerException) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n if (ApplicationManager.DEBUG_SECURITY) {\r\n ToggleButton.logger.debug(this.getClass().toString() + \": \" + e.getMessage(), e);\r\n }\r\n return false;\r\n }\r\n } else {\r\n return true;\r\n }\r\n }",
"public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }",
"public void SLA_Report()\n {\n\t boolean SLApresent =SLAreport.size()>0;\n\t if(SLApresent)\n\t {\n\t\t // System.out.println(\"SLA report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"SLA report is not present\");\n\t }\n }",
"public boolean areGamesScheduled(String team) {\n\n try {\n if (getPlayerInfo(team, \"status\", \"status\").equals(\"\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Preview\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Pre-Game\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Warmup\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"In Progress\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Postponed\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Completed Early\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Game Over\") ||\n getPlayerInfo(team, \"status\", \"status\").equals(\"Final\")) {\n }\n }\n catch (java.lang.NullPointerException npe) {\n\n return false;\n }\n catch (java.lang.RuntimeException npe) {\n\n return false;\n }\n\n // no errors so there are games scheduled for this date\n return true;\n }",
"@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }",
"@Test\n\tpublic void BVisibility_AdminAccess() throws IOException, InterruptedException\n\t{\n\t\tlog.info(\"Test for role off admin permission \");\n\t\tLoginPage lip=new LoginPage(driver);\n\t\tlip.getUsername().clear();\n\t\tlip.getUsername().sendKeys(prop.getProperty(\"username\"));\n\t\tlip.getPassword().clear();\n\t\tlip.getPassword().sendKeys(prop.getProperty(\"password\"));\n\t\tThread.sleep(2000);\n\t\tlip.getSubmit().click();\n\t\tThread.sleep(2000);\n\t\tif (lip.getSessionOut().isDisplayed()) {\n\t\t\tlip.getSessionOut().click();\n\t }\n\t\tlog.info(\"Login successfully\");\n\t\t\n\t\tThread.sleep(5000);\n\t\t\n\t\tLandingPage LP=new LandingPage(driver);\n\t\t\n\t\tString c_name=LP.getcustomer_name_from_dashboard().getText();\n\t\tlog.info(c_name);\n\t\t\n\t\tlog.info(\"enter dashboard page\");\n\t\t\n\t\tLP.getDepartment().click();\n\t\tThread.sleep(3000);\n\t\tlog.info(\"enter department page\");\n\t\tdepartmentPage dp=new departmentPage(driver);\n\t\t\n\t\tdp.getAdd().click();\n\t\tThread.sleep(2000);\n\t\tlog.info(\"enter department add page\");\n\t\tDepartmentAddPage dAp=new DepartmentAddPage(driver);\n\t\tdAp.getSelectAdmin().click();\n\t\tThread.sleep(2000);\n\t\tList<WebElement> adminName=driver.findElements(By.xpath(\"//*[@id='Adminlist']/li/p\"));\n\t\tint countAdmin=adminName.size();\n\t\tlog.info(countAdmin);\n\t\tfor(int j=0;j<countAdmin;j++) {\n\t\t\tif(adminName.get(j).getText().equals(c_name)) {\n\t\t\t\tlog.info(\"Testcase fail\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlog.info(adminName.get(j).getText());\n\t\t\t\tlog.info(\"Testcase passed\");\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private boolean isVisible(SettingGroup settingGroup) {\n if (settingGroup == null) {\n return true;\n }\n ParameterKey[] arrparameterKey = settingGroup.getSettingItemList();\n int n = arrparameterKey.length;\n for (int i = 0; i < n; ++i) {\n if (super.isVisible(arrparameterKey[i])) return true;\n }\n return true;\n }",
"public String getTeamStatus(){\n int i;\n StringBuilder s = new StringBuilder();\n\n s.append(employeeStatus());\n if(this.curHeadCount <= 0)\n s.append(\" and no direct reports yet\");\n else {\n s.append(\" and is managing:\");\n for(i=0;i<this.curHeadCount;i++){\n s.append(\"\\n\");\n s.append(this.employee[i].employeeStatus());\n }\n }\n\n return s.toString();\n }",
"private void viewRepositoryCheckReportButtonActionPerformed() {\n ImportExportLogDialog logDialog = null;\n\n if(ascopyREC != null && checkRepositoryMismatch) {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, ascopyREC.getCurrentRecordCheckMessage());\n logDialog.setTitle(\"Current Repository Mismatch Errors\");\n } else {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, repositoryMismatchErrors);\n logDialog.setTitle(\"Repository Mismatch Errors\");\n }\n\n logDialog.showDialog();\n }",
"@Override\n public boolean hasWonGame( int team ) {\n boolean canReach = false;\n if(team == 1){\n for(Dot sDot:board.getStartNodes1()){\n for(Dot eDot:board.getEndNodes1()){\n if(canReachDFS(sDot,eDot)){\n canReach = true;\n }\n }\n }\n }\n else if(team ==2){\n for(Dot sDot:board.getStartNodes2()){\n for(Dot eDot:board.getEndNodes2()){\n if(canReachDFS(sDot,eDot)){\n canReach = true;\n }\n }\n }\n }\n return canReach;\n }",
"public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);",
"private boolean isCurrentDataWasChanedByAnotherUser(final Monthly_report_revision monthlyReport) {\n Monthly_report_revision currentMonthlyReport = this.monthly_reportRepository.findAndRefresh(monthlyReport);\n return !StringUtils.equalsIgnoreCase(monthlyReport.getShounin_joutai(),\n currentMonthlyReport.getShounin_joutai());\n }",
"@Test(priority = 3, groups = { \"smoke\" }, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"Verify Data Syndication page loads after filter applied\")\n\tpublic void verifyFilteringReportsVisibility() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\ttry {\n\t\t\tint count = 1;\n\t\t\tExcelHandler wb = new ExcelHandler(\"./data/Filter.xlsx\", \"TPSEE\");\n\t\t\twb.deleteEmptyRows();\n\t\t\tTPSEE_Syndication_Status_Page s = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\t\tfor (int i = 1; i <= wb.getRowCount(); i++) {\n\t\t\t\tSystem.out.println(\"******************* Scenarios : \" + count + \"Starts ****************************\");\n\t\t\t\tif (i > 1)\n\t\t\t\t\tCurrentState.getDriver().navigate().refresh();\n\t\t\t\ts.waitUntilLoad(CurrentState.getDriver());\n\t\t\t\tString Group = wb.getCellValue(i, wb.seacrh_pattern(\"Group\", 0).get(0).intValue());\n\t\t\t\tString CountryCode = wb.getCellValue(i, wb.seacrh_pattern(\"Country\", 0).get(0).intValue());\n\t\t\t\tString State = wb.getCellValue(i, wb.seacrh_pattern(\"State\", 0).get(0).intValue());\n\t\t\t\tString City = wb.getCellValue(i, wb.seacrh_pattern(\"City\", 0).get(0).intValue());\n\t\t\t\tString Location = wb.getCellValue(i, wb.seacrh_pattern(\"Location\", 0).get(0).intValue());\n\t\t\t\ts.applyGlobalFilter(Group, CountryCode, State, City, Location);\n\t\t\t\tSystem.out.println(Group + \", \" + CountryCode + \", \" + State + \", \" + City + \", \" + Location);\n\t\t\t\ts.clickApplyFilterBTN();\n\t\t\t\tBaseClass.addEvidence(CurrentState.getDriver(), \"Applied global filter: \" + Group + \", \" + CountryCode\n\t\t\t\t\t\t+ \", \" + State + \", \" + City + \", \" + Location + \"\", \"yes\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void verifyEngagementOverviewStatusChange() {\n String strStepSuccess = \"Verify engagement overview status change when click on archive button\";\n String strStepFail = \"TestScript Failed: Verify engagement overview status does not change when click on archive button\";\n try {\n boolean result;\n waitForVisibleElement(eleEngagementOverViewStatusText, \"Wait engagement overview status\");\n result = engagementOverViewStatusBefore.toLowerCase().equals(eleEngagementOverViewStatusText.getText().trim().toLowerCase());\n // will update to assert false when bug has fixed\n Assert.assertTrue(result, \"Engagement overview status change\");\n NXGReports.addStep(strStepSuccess, LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(strStepFail, LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"boolean addHistoricVisitsToUsageReportsBuffer();",
"public boolean approveCheckIn(SoftwareEngineer e) {\n for(SoftwareEngineer se : this.directReports) {\n if(se.getEmployeeID() == e.getEmployeeID() && e.codeAccess) {\n // found!\n return true;\n }\n }\n return false;\n }",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"List<Boolean> assertVehiclePlanningHomepage() {\n\t\tList<Boolean> assertValue= new ArrayList<>();\n\n\t\tassertValue.add(0,SeleniumUtility.checkElementIsVisible(driver, \n\t\t\t\thomepageVehiclePlanning.buttonTagRefreshButtonHomepageVehiclePlanning));\n\t\tassertValue.add(1,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning));\n\t\tassertValue.add(2,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.divTagSelectSitesHomepageVehiclePlanning));\n\t\tassertValue.add(3,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.buttonTagDaysArrowHomepageVehiclePlanning));\n\t\tassertValue.add(4,SeleniumUtility.checkElementIsVisible(driver,\n\t\t\t\thomepageVehiclePlanning.inputTagSelectDateHomepageVehiclePlanning));\n\t\treturn assertValue;\n\t}",
"public boolean visible_AlertMsg_state() {\r\n\t\tWebElement alrtmsg = driver.findElementByName(\"You are about to lose your changes.Do you want to continue ?\");\r\n\t\treturn IsElementVisibleStatus(alrtmsg);\r\n\t}",
"public boolean validateReviewRenewalFields(String fldToChk, String checkFor, ExtentTest extentedReport,\n\t\t\tboolean screenShot) throws Exception {\n\t\ttry {\n\t\t\tWebElement eleToInteract = null;\n\t\t\tboolean boolVal = false;\n\n\t\t\tWaitUtils.waitForElementPresent(driver, \"css\", cssRnwRevchkBox, 60,\n\t\t\t\t\t\"Failed to locate Automatic Review, Automatic Renewal and Block Renewal Fields\");\n\t\t\tList<WebElement> lstChckBox = driver.findElements(By.cssSelector(cssRnwRevchkBox));\n\t\t\tfor (int i = 0; i <= lstChckBox.size(); i++) {\n\t\t\t\tif (lstChckBox.get(i).getText().equalsIgnoreCase(fldToChk)) {\n\t\t\t\t\teleToInteract = lstChckBox.get(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tswitch (checkFor.toLowerCase()) {\n\n\t\t\tcase \"enabled\":\n\t\t\t\tif (WaitUtils.waitForElement(driver, eleToInteract, 2))\n\t\t\t\tLog.message(fldToChk + \" field enabled as expected\", driver,extentedReport,true);\n\t\t\t\tboolVal = true;\n\t\t\t\tbreak;\n\n\t\t\tcase \"disabled\":\n\t\t\t\tif(!eleToInteract.findElement(By.tagName(\"input\")).isEnabled());\n\t\t\t\t//if (! WaitUtils.waitForElement(driver, eleToInteract, 2))\n\t\t\t\tLog.message(fldToChk + \" field disabled as expected\", extentedReport);\n\t\t\t\tboolVal = true;\n\t\t\t\t\n\t\t\t\tbreak;\n\n\t\t\tcase \"checked\":\n\t\t\t\t//if (eleToInteract.getAttribute(\"checked\").equalsIgnoreCase(\"checked\"))\n\t\t\t\t//eleToInteract.findElement(By.tagName(\"input\")).getAttribute(\"checked\").equalsIgnoreCase(\"checked\");\n\t\t\t\tif (eleToInteract.findElement(By.tagName(\"input\")).isSelected()) {\n\t\t\t\tLog.message(fldToChk + \" field checked\", extentedReport);\n\t\t\t\tboolVal = true;}\n\t\t\t\telse {\n\t\t\t\tLog.message(fldToChk + \" field was Unchecked\", extentedReport);\n\t\t\t\tboolVal = false;}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn boolVal;\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Unable to validate \"+fldToChk +\" field, exception occured : \" + e);\n\t\t}\n\t}",
"@Test(description = \"Verify that task is created and visual editor is visible\")\n public void verifyIfHighPriority() {\n\n LoginPage loginPage = new LoginPage();\n TaskPage taskPage = new TaskPage();\n loginPage.login(\"hr41@cybertekschool.com\", \"UserUser\");\n\n test = report.createTest(\"Task tab is visible!\");\n Assert.assertEquals(taskPage.taskTab(\"Demo Meeting!\"), \"TASK\");\n test.pass(\"Task tab is visible\");\n\n\n test = report.createTest(\"High Priority checkbox is clicked\");\n Assert.assertEquals(taskPage.highPriorityLabel(), \"High Priority\");\n taskPage.highPriorityCheckBox();\n test.pass(\"High Priority checkbox visible and clickable\");\n\n\n test = report.createTest(\"Visual editor is visible and the bar is displayed\");\n taskPage.visualEditor();\n taskPage.visualEditorBarIsDisplayed();\n Assert.assertTrue(taskPage.visualEditorBarIsDisplayed());\n test.pass(\"Visual editor is clicked and the bar is displayed\");\n\n }",
"private void checkManualVisit() {\n // scroll to number of visits\n onView(withId(R.id.tv_num_visits)).perform(scrollTo());\n // check number of visits is 1\n onView(withId(R.id.tv_num_visits)).check(matches(withText(String.valueOf(1))));\n\n checkLastVisitLabelAndText(date, time);\n\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // check that the visit has updated date and time\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(date)))));\n onView(withId(R.id.expanding_rv_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_NEW_VISIT))\n .check(matches(atPosition(POS_NEW_VISIT, hasDescendant(withText(time)))));\n }",
"public void m36045a() {\n this.f29981a.showReportDialog();\n }",
"boolean hasHotelPerformanceView();",
"@Then(\"^Validate project table against pivotal project$\")\n public void allInformationOfPivotalTrackerProjectsShouldBeDisplayedInProjectTableWidgetOfMach() {\n JsonPath jsonPath = resources.getResponse().jsonPath();\n// assertEquals(jsonPath.get(\"name\"), tableProjectValues.get(\"name\"));\n// assertEquals(jsonPath.get(\"current_iteration_number\"), tableProjectValues.get(\"current_iteration\"));\n// assertEquals(jsonPath.get(\"week_start_day\"), tableProjectValues.get(\"week_start_date\"));\n assertEquals(jsonPath.get(\"name\"), \"AT01 project-01\");\n assertEquals(jsonPath.get(\"week_start_day\"), \"Monday\");\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n showSettingsDialog();\n }\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n //Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n // showSettingsDialog();\n }\n }",
"int getVulnerabilityReportsCount();",
"boolean hasProject();",
"public static void assertVisible(PmObject... pms) {\n for (PmObject pm : pms) {\n if (!pm.isPmVisible()) {\n fail(pm.getPmRelativeName() + \" should be visible.\");\n }\n }\n }",
"public Collection findPublicPresentations(Agent viewer, String toolId, String showHidden);",
"public void verifyEngagementOverviewStatusDoesNotChange(boolean isCloseIconClick) {\n String strStepSuccess = \"Verify engagement overview status does not change when click on close icon popup\";\n String strStepFail = \"TestScript Failed: Verify engagement overview status change when click on close icon popup\";\n if (!isCloseIconClick) {\n strStepSuccess = \"Verify engagement overview status does not change when click on cancel button\";\n strStepFail = \"TestScript Failed: Verify engagement overview status change when click on cancel button\";\n }\n try {\n boolean result;\n waitForVisibleElement(eleEngagementOverViewStatusText, \"Wait engagement overview status\");\n result = engagementOverViewStatusBefore.toLowerCase().equals(eleEngagementOverViewStatusText.getText().trim().toLowerCase());\n Assert.assertTrue(result, \"Engagement overview status does not change\");\n NXGReports.addStep(strStepSuccess, LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(strStepFail, LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"public Collection findAllPresentations(Agent viewer, String toolId, String showHidden);",
"String checkUserAccessOnProject(Long id, String username);",
"@Override\n public boolean showPanel(Issue issue, ApplicationUser remoteUser) {\n\n if (issue.isSubTask()){\n return false;\n }else{\n return true;\n }\n\n }",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"@Override\n public boolean isVisible(){\n \n try\t{\n new WebDriverWait(driver, 1)\n .until((Function<? super WebDriver, ? extends Object>) ExpectedConditions.visibilityOfElementLocated(locator));\n \n return true;\n }\n catch (NoSuchElementException ex){\n return false;\n }\n catch (TimeoutException ex){\n return false;\n }\n \n }",
"boolean hasFinalTallyResult();",
"@Test\n public void checkListView(){\n //assert awaiting approval view\n View awaitingApprovalView = solo.getView(\"awaiting_approval\");\n assertTrue(solo.waitForText(\"Awaiting Approval\",1,2000));\n //Check for list of awaiting approvals\n View awaitingApprovalListView = solo.getView(\"books_awaiting_list\");\n //click on list of borrowed books\n solo.clickOnView(awaitingApprovalListView);\n solo.assertCurrentActivity(\"Wrong Activity\", Host.class);\n\n\n }",
"public void my_timesheet_report()\n {\n\t boolean timesheetreppresent =mytimesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\" My Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"@Test\n public void testIsVisible_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(false);\n\n boolean result = fixture.isVisible();\n\n assertEquals(false, result);\n }",
"boolean isVisible();",
"boolean isVisible();",
"public void setHiddenOnReports(boolean isHidden) {\n this.hiddenOnReports = isHidden;\n }",
"private void checkForJudgeAndTeam(IInternalContest contest) {\n Account account = contest.getAccounts(ClientType.Type.TEAM).firstElement();\n assertFalse(\"Team account not generated\", account == null);\n assertFalse(\"Team account not generated\", account.getClientId().equals(Type.TEAM));\n \n account = contest.getAccounts(ClientType.Type.JUDGE).firstElement();\n assertFalse(\"Judge account not generated\", account == null);\n assertFalse(\"Team account not generated\", account.getClientId().equals(Type.TEAM));\n\n }",
"@Test\n\tpublic void Reports_18961_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to Advance Reports in navbar \n\t\tsugar().navbar.navToModule(ds.get(0).get(\"advance_report_name\"));\n \t\tnavigationCtrl.click();\n \t\t\n \t\t// Click on View Advance Report link\n \t\tviewAdvanceReportCtrl = new VoodooControl(\"a\", \"css\", \"[data-navbar-menu-item='LNK_LIST_REPORTMAKER']\");\n \t\tviewAdvanceReportCtrl.click();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// click on list item\n \t\tnew VoodooControl(\"a\", \"css\", \"tr.oddListRowS1 > td:nth-child(3) a\").click();\n \t\tVoodooUtils.focusDefault();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// Click to Select to add data format in report\n \t\tnew VoodooControl(\"input\", \"css\", \"#form [title='Select']\").click();\n \t\tVoodooUtils.focusWindow(1);\n \t\t\n \t\t// select data format in list\n \t\tnew VoodooControl(\"a\", \"css\", \"tr.oddListRowS1 td:nth-child(1) a\").click();\n \t\tVoodooUtils.focusWindow(0);\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// Click \"Edit\" of a \"Data Format\"\n \t\tnew VoodooControl(\"a\", \"css\", \"#contentTable tr.oddListRowS1 > td:nth-child(6) > slot > a:nth-child(3)\").click();\n \t\tVoodooUtils.focusDefault();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\tnew VoodooControl(\"input\", \"id\", \"name\").assertEquals(ds.get(0).get(\"data_format_name\"), true);\n \t\tnew VoodooControl(\"input\", \"id\", \"query_name\").assertEquals(ds.get(0).get(\"query_name\"), true);\n \t\tnew VoodooControl(\"a\", \"css\", \"#Default_DataSets_Subpanel tr:nth-child(1) td:nth-child(4) a\").assertEquals(ds.get(0).get(\"report_name\"), true);\n \t\tVoodooUtils.focusDefault();\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}",
"public void verifySystemStatusTabIsDisplayed() {\n \tAssert.assertTrue(systemStatus.isDisplayed());\n }",
"public boolean isUsefulReport() {\n if (metadata_ == null) {\n return false;\n }\n return capturedLogContent_ != null && !capturedLogContent_.isEmpty();\n }",
"public int askPermitToGetBetweenVisible();",
"@Test\n void checkManagerWithPermissionGetAlert(){\n LinkedList<PermissionEnum.Permission> list=new LinkedList<>();\n list.add(PermissionEnum.Permission.RequestBidding);\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,NofetID);\n tradingSystem.EditManagerPermissions(EuserId,EconnID,storeID,NofetID,list);\n Response Alert=new Response(\"Alert\");\n store.sendAlertOfBiddingToManager(Alert);\n //??\n }",
"public boolean checkAdmin()\r\n\t{\r\n\t\tboolean admin=false;\r\n\t\tint length=user_records.size();\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tif(((User)user_records.get(i)).get_username().equals(\"administrator\"))\r\n\t\t\t{\r\n\t\t\t\tadmin=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn admin;\r\n\t}",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"public void checkAvaliableElevators()\r\n\t{\r\n\t\tSystem.out.println(\"--------- Checking Elevators Current Status ------\");\t\r\n\t\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tfor(int i=0; i <numberOfElevators-3; i++) {\r\n\t\t\t\tavailableElevadors.add(occupiedElevadors.remove(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"--------- Elevators are available again ------\");\r\n\t\t\r\n\t\t}else {\r\n\t\t\tfor(int i=0;i<availableElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + availableElevadors.get(i).getElevatorNumber() +\" ready for Requests\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<occupiedElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + occupiedElevadors.get(i).getElevatorNumber() +\" is Occupied\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t}\r\n\r\n\t}",
"@Test\n public void testIsVisible_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n boolean result = fixture.isVisible();\n\n assertEquals(true, result);\n }",
"public void timesheet_report()\n {\n\t boolean timesheetreppresent =timesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\"Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }",
"private void checkMenuItemStatus() {\n\t\tif (VozCache.instance().getCookies() == null) { // not logged in yet\n\t\t\tlogoutMenu.setVisible(false);\t\t\t\n\t\t\tloginMenu.setVisible(true);\n\t\t\tloginWithPresetMenu.setVisible(true);\n\t\t} else { // logged in\n\t\t\tlogoutMenu.setVisible(true);\t\t\t\n\t\t\tloginMenu.setVisible(false);\n\t\t\tloginWithPresetMenu.setVisible(false);\n\t\t}\t\t\n\t\tif (VozCache.instance().canShowReplyMenu()) {\n\t\t\tif(VozCache.instance().getCookies() != null) {// logged in\n\t\t\t\tquickRepMenu.setVisible(true);\n\t\t\t} else {\n\t\t\t\tquickRepMenu.setVisible(false);\n\t\t\t}\n\t\t} else {\n\t\t\tquickRepMenu.setVisible(false);\n\t\t}\n\t\t\n\t\tif (canShowPinnedMenu()) {\n\t\t\tpinMenu.setVisible(true);\n\t\t} else {\n\t\t\tpinMenu.setVisible(false);\n\t\t}\n\t\t\n\t\tif (canShowUnpinnedMenu()) {\n\t\t\tunpinMenu.setVisible(true);\n\t\t} else {\n\t\t\tunpinMenu.setVisible(false);\n\t\t}\n\t}",
"public Boolean isVisible();",
"public Boolean isVisible();",
"public static boolean testDaoLireVisiteur() {\n boolean ok = true;\n ArrayList<Visiteur> lesVisiteurs = new ArrayList<Visiteur>();\n try {\n lesVisiteurs = daoVisiteur.getAll();\n } catch (Exception ex) {\n ok = false;\n }\n System.out.println(\"liste des visiteurs\");\n for (Visiteur unVisiteur: lesVisiteurs){\n System.out.println(unVisiteur);\n }\n return ok;\n }",
"public boolean hasTeam() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@SmallTest\n public void testViewVisible()throws Exception{\n // Initialisiere das View Element\n final ListView listView = (ListView) mActivity.findViewById(R.id.activtiy_permission_management_list_view);\n\n ViewAsserts.assertOnScreen(mActivity.getWindow().getDecorView(), listView);\n }",
"@Override\n\tprotected void isLoaded() throws Error {\n\t\tassertTrue(driver.findElement(By.xpath(\"//a[contains(text(),'Reports')]\")).getText().toString()\n\t\t\t\t.contains(\"Reports\"));\n\t}",
"public void verifyOptionDownloadAttachmentsOnBulkActionsDropDown() {\n getLogger().info(\"Bulk Actions option Download Attachments disable.\");\n if (optionDownloadAttachments.getAttribute(\"class\").equals(\"item disabled\")) {\n NXGReports.addStep(\"Bulk Actions option Download Attachments disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Bulk Actions option Download Attachments disable.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"boolean existsAdminPreference(AuthenticationToken admin);",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"public boolean hasTeam(User std) {\r\n\t\tboolean hasTeam = false;\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.students WHERE id = \" + std.getID() + \" ;\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint teamId \t= Integer.parseInt(array.get(3));\r\n\t\t\t\r\n\t\t\tif(teamId != 0){\r\n\t\t\t\thasTeam = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn hasTeam;\r\n\t}",
"public void checkVisible(Status status) {\n if (status == Status.GAMEOVER) {\n this.exit.setVisible(true);\n this.name.setVisible(true);\n this.score.setVisible(true);\n this.text.setVisible(true);\n this.textField.setVisible(true);\n } else{\n this.exit.setVisible(false);\n this.name.setVisible(false);\n this.score.setVisible(false);\n this.text.setVisible(false);\n this.textField.setVisible(false);\n }\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n }",
"public boolean hasTeam() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public Boolean getFlowTracking() throws PermissionDeniedException;",
"public Collection findSharedPresentations(Agent viewer, String toolId, String showHidden);",
"public void verifyAgentPageIsDisplayed() throws Exception {\n\n\t\twdriver.findElement(By.xpath(WebData.verifyAgentScreen)).isDisplayed();\n\t}",
"public boolean isRecordSetVisible(GraphicsType type) {\r\n\t\tboolean result = false;\r\n\t\tswitch (type) {\r\n\t\tcase COMPARE:\r\n\t\t\tresult = this.compareTabItem != null && !this.compareTabItem.isDisposed() && this.compareTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase HISTO:\r\n\t\t\tresult = this.histoGraphicsTabItem != null && !this.histoGraphicsTabItem.isDisposed() && this.histoGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase UTIL:\r\n\t\t\tresult = this.utilGraphicsTabItem != null && !this.utilGraphicsTabItem.isDisposed() && this.utilGraphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\r\n\t\tcase NORMAL:\r\n\t\tdefault:\r\n\t\t\tresult = this.graphicsTabItem.isVisible();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"boolean hasHotelGroupView();",
"boolean hasCampaignExperiment();",
"public void verifyOfflineAutoresponseIsEnabled() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.offlineAutoresponseCheckboxEnabled)).isDisplayed();\n\t}",
"public void verifyDisbursementReportColumns() {\n Log.logBanner(\"Verifying Disbursement Report columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyReportColumns();\n }",
"public void updateVisible(){\n if (serviceManager.isCustomerQueMode() == true && serviceManager.isManagerMode() == false) {\n this.setVisible(true);\n } else {\n this.setVisible(false);\n }\n// System.out.println(serviceManager.isCustomerQueMode());\n }",
"@Override\n\t\tpublic boolean checkReportIfExist(ArrayList<Object> msg) {\n\t\t\tString parkName = (String) msg.get(2);\n\t\t\tint month = ((Date) msg.get(1)).getMonth() + 1;\n\t\t\tif (hashMapDB.get(parkName).get(month) == null)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}",
"boolean generateReport();",
"@Test(priority=22)\n\tpublic void verifyActiveAdsVistsLeadsCountandIconsaredisplaying() throws Exception {\n\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\t/*LoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\tloginPage.setAccountEmailAndPassword(\"harish.boyapati+0122@olx.com\", \"sunfra123\");\n\t\tclick(loginPage.LoginButton);*/\n\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\twaitTill(2000);\n\t\t//for ActiveAds\n\t\tAssert.assertTrue(getText(overviewObj.totalActiveAdsText).trim().equals(\"Total number of active ads\"),\n\t\t\t\t\"Total number of active Ads text is not displaying\");\n\t\tAssert.assertTrue(verifyElementPresent(overviewObj.iconInActiveAdsCountSection),\n\t\t\t\t\"Icon is not displaying for total number of active Ads\");\n\t\twaitTill(1000);\n\t\tAssert.assertTrue(Integer.parseInt(getText(overviewObj.totalActiveAdsCount).trim())>0,\n\t\t\t\t\"Total number of active Ads count is incorrect\");\n\t\t\n\t\t//for visits\n\t\tAssert.assertTrue(getText(overviewObj.totalVisitsText).trim().equals(\"Total of visits\"),\n\t\t\t\t\"Total number of visit text is not displaying\");\n Assert.assertTrue(verifyElementPresent(overviewObj.iconInVisitesCountSection),\n\t\t\t\t\"Icon is not displaying for total number of visits\");\n Assert.assertTrue(Integer.parseInt(getText(overviewObj.totalVisitsCount).trim())>0,\n\t\t\t\t\"Total number of visit count is incorrect\");\n //for Leads\n \tAssert.assertTrue(getText(overviewObj.totalLeadsText).trim().equals(\"Total of leads\"),\n \t\t\t\t\t\t\"Total number of Leads text is not displaying\");\n \tAssert.assertTrue(verifyElementPresent(overviewObj.iconInTotalLeadsCountSection),\n \t\t\t\t\t\t\"Icon is not displaying for total number of Leads\");\n \tAssert.assertTrue(Integer.parseInt(getText(overviewObj.totalLeadsCount).trim())>0,\n \t\t\t\t\t\"Total number of Leads count is incorrect\");\n\t\n\t}",
"public abstract KenaiProject[] getDashboardProjects(boolean onlyOpened);",
"@Test(dataProvider=\"getData\")\n\tpublic void BVisibility_AddButton(String tst, int i) throws IOException, InterruptedException\n\t{\n\t\tlog.info(\"Test for - \"+tst);\n\t\tLoginPage lip=new LoginPage(driver);\n\t\tlip.getUsername().clear();\n\t\tlip.getUsername().sendKeys(prop.getProperty(\"username\"));\n\t\tlip.getPassword().clear();\n\t\tlip.getPassword().sendKeys(prop.getProperty(\"password\"));\n\t\tThread.sleep(2000);\n\t\tlip.getSubmit().click();\n\t\tThread.sleep(2000);\n\t\tif (lip.getSessionOut().isDisplayed()) {\n\t\t\tlip.getSessionOut().click();\n\t }\n\t\tlog.info(\"Login successfully\");\n\t\t\n\t\tThread.sleep(5000);\n\t\t\n\t\tLandingPage LP=new LandingPage(driver);\n\t\t\n\t\tlog.info(\"enter dashboard page\");\n\t\tif(i==1) {\n\t\tLP.getDepartment().click();\n\t\tThread.sleep(3000);\n\t\tdepartmentPage dp=new departmentPage(driver);\n\t\tif(dp.getAdd().isDisplayed()){\n\t\t\tlog.info(\"Department add button is not displaying\");\n\t\t\tAssert.assertEquals(\"google\", \"gooooogle\");\n\t\t}\n\t\telse {\n\t\t\tlog.info(\"Testcase failed- Department add button is visible\");\n\t\t\t\n\t\t}\n\t\t}\n\t\telse if(i==2) {\n\t\t\tLP.getProjects().click();\n\t\t\tThread.sleep(3000);\n\t\t\tProjectPage pp=new ProjectPage(driver);\n\t\t\tif(pp.getAdd().isDisplayed()){\n\t\t\t\tlog.info(\"Project add button is not displaying\");\n\t\t\t\tAssert.assertEquals(\"google\", \"gooooogle\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlog.info(\"Testcase failed- Project add button is visible\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if(i==3) {\n\t\t\tLP.getFields().click();\n\t\t\tThread.sleep(3000);\n\t\t\tFieldPage fp=new FieldPage(driver);\n\t\t\tif(fp.getAdd().isDisplayed()){\n\t\t\t\t\n\t\t\t\tlog.info(\"Testcase failed- Field add button is visible\");\n\t\t\t\tAssert.assertEquals(\"google\", \"gooooogle\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlog.info(\"Field add button is not displaying\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if(i==4) {\n\t\t\tLP.getFilter().click();\n\t\t\tThread.sleep(3000);\n\t\t\tFilterPage fp=new FilterPage(driver);\n\t\t\tif(fp.getAdd().isDisplayed()){\n\t\t\t\t\n\t\t\t\tlog.info(\"Testcase failed- Filter add button is visible\");\n\t\t\t\tAssert.assertEquals(\"google\", \"gooooogle\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlog.info(\"Filter add button is not displaying\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if(i==5) {\n\t\t\tLP.getViews().click();\n\t\t\tThread.sleep(3000);\n\t\t\tlog.info(\"Enter view page\");\n\t\t\tViewPage vp=new ViewPage(driver);\n\t\t\tif(vp.getAdd().isDisplayed()){\n\t\t\t\t\n\t\t\t\tlog.info(\"Testcase failed- view add button is visible\");\n\t\t\t\tAssert.assertEquals(\"google\", \"gooooogle\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlog.info(\"View add button is not displaying\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tLP.getRoles().click();\n\t\t\tlog.info(\"Enter login page\");\n\t\t\tThread.sleep(3000);\n\t\t\tRolePage rp=new RolePage(driver);\n\t\t\tif(rp.getAdd().isDisplayed()) {\n\t\t\t\t\n\t\t\t\tlog.info(\"Testcase failed- Role add button is visible\");\n\t\t\t\tAssert.assertEquals(\"google\", \"gooooogle\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlog.info(\"Role add button is not displaying\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public boolean verifyAccountAgingColums(){\n\t\tboolean isAgingColums=false;\n\t\tDynamicFramePage.dynamicFrameForPanchart();\n\t\tDynamicFramePage.switchtoFraFrame();\n\t\tdriver.switchTo().frame(\"panProfile_Frame\");\n\t\tString col2 =SeleniumUtil.getElementWithFluentWait(accountAgingColum2).getText();\n\t\tString col3 =SeleniumUtil.getElementWithFluentWait(accountAgingColum3).getText();\n\t\tString col4 =SeleniumUtil.getElementWithFluentWait(accountAgingColum4).getText();\n\t\tif(col2.equalsIgnoreCase(\"31-60\") && col3.equalsIgnoreCase(\"61-90\") && col4.equalsIgnoreCase(\"Over 90\")){\n\t\t\tSystem.out.println(\"All the aging colums are present\");\n\t\t\tisAgingColums=true;\n\t\t}\n\t\treturn isAgingColums;\n\t}",
"@Test\n public void scheduledPlansForLookmlDashboardTest() throws ApiException {\n Long lookmlDashboardId = null;\n Long userId = null;\n String fields = null;\n List<ScheduledPlan> response = api.scheduledPlansForLookmlDashboard(lookmlDashboardId, userId, fields);\n\n // TODO: test validations\n }",
"@VTID(11)\r\n boolean getVisibleInPivotTable();",
"@Test\n\tpublic void Leads_17564_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\"); \n\n\t\tsugar().leads.navToListView();\n\t\tsugar().leads.listView.clickRecord(1);\n\t\tsugar().leads.recordView.showDataView();\n\t\t\n\t\t// TODO: VOOD-598. Once it is fixed, please update the following steps.\n\t\t// SP-1819 - Please note this script may fail because of this bug.\n\t\t//Open Related drop down\n\t\tnew VoodooSelect(\"a\", \"css\", \"div.related-filter a\").set(\"All\");\n\t\tnew VoodooControl(\"div\", \"css\", \".choice-filter\").waitForVisible();\n\t\tnew VoodooControl(\"div\", \"css\", \".choice-filter\").assertEquals(\"All Records\", true);\n\t\t\n\t\t//Verify that all subpanels are listed\t\n\t\tnew VoodooSelect(\"div\", \"css\", \".label.label-module.label-Calls.pull-left\").assertVisible(true);\n\t\tnew VoodooSelect(\"div\", \"css\", \".label.label-module.label-Meetings.pull-left\").assertVisible(true);\n\t\tnew VoodooSelect(\"div\", \"css\", \".label.label-module.label-Tasks.pull-left\").assertVisible(true);\n\t\tnew VoodooSelect(\"div\", \"css\", \".label.label-module.label-Notes.pull-left\").assertVisible(true);\n\t\tnew VoodooSelect(\"div\", \"css\", \".label.label-module.label-Emails.pull-left\").assertVisible(true);\n\t\tnew VoodooSelect(\"div\", \"css\", \".label.label-module.label-CampaignLog.pull-left\").assertVisible(true);\t\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\"); \n\t}",
"private boolean getFlightTeamStatus(String flightId) throws DAOException {\n\n List<TeamMember> teamList;\n\n try (ProxyConnection connection = ConnectionPool.getInstance().getConnection()) {\n FlightTeamDAO flightTeamDao = new FlightTeamDAO(connection);\n teamList = flightTeamDao.findFlightTeamByFlightId(flightId);\n }\n return teamList.isEmpty();\n }",
"public void verifyEngagementOverviewToDoChange() {\n String strStepSuccess = \"Verify engagement overview ToDo does change when click on archive button\";\n String strStepFail = \"TestScript Failed: Verify engagement overview ToDo does not change when click on archive button\";\n try {\n boolean result;\n waitForVisibleElement(eleEngagementOverViewToDoText, \"Wait engagement overview todo\");\n result = engagementOverViewToDoBefore.toLowerCase().equals(eleEngagementOverViewToDoText.getText().trim().toLowerCase());\n // will update to assert false when bug has fixed\n Assert.assertTrue(result, \"Engagement overview ToDo change\");\n NXGReports.addStep(strStepSuccess, LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(strStepFail, LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"@Override\n public void onPermissionsChecked(MultiplePermissionsReport report) {\n if (report.areAllPermissionsGranted()) {\n Toast.makeText(getApplicationContext(), \"All permissions are granted!\", Toast.LENGTH_SHORT).show();\n requestSignIn();\n }\n\n // check for permanent denial of any permission\n if (report.isAnyPermissionPermanentlyDenied()) {\n // show alert dialog navigating to Settings\n showSettingsDialog();\n }\n }",
"@Test(groups = \"wso2.ds.dashboard\", description = \"test for viewer role\", dependsOnMethods = \"testAddDashboardAndAssignRolesBySetting\")\n public void testForViewer()\n throws XPathExpressionException, MalformedURLException {\n String dashboardId = dashboardTitle.toLowerCase();\n addLoginRole(USERNAME_VIEWER);\n login(USERNAME_VIEWER, PASSWORD_VIEWER);\n // Go to the dashboards page\n redirectToLocation(DS_HOME_CONTEXT, DS_DASHBOARDS_CONTEXT);\n WebElement dashboard = getDriver().findElement(By.id(dashboardId));\n assertEquals(DASHBOARD_TITLE, dashboard.findElement(By.id(\"ues-dashboard-title\")).getText());\n assertEquals(DASHBOARD_DESCRIPTION, dashboard.findElement(By.id(\"ues-dashboard-description\")).getText());\n assertTrue(getDriver().isElementPresent(By.cssSelector(\"#\" + dashboardId + \" .ues-view\")),\n \"view element is present in the current UI\");\n assertFalse(getDriver().isElementPresent(By.cssSelector(\"#\" + dashboardId + \" .ues-edit\")),\n \"design element is present in the current UI\");\n assertFalse(getDriver().isElementPresent(By.cssSelector(\"#\" + dashboardId + \" .ues-settings\")),\n \"settings element is present in the current UI\");\n dashboard.findElement(By.id(dashboardId)).findElement(By.id(\"ues-view\")).click();\n // Switch the driver to the new window and click on the edit/personalize link\n pushWindow();\n String bodyText = getDriver().findElement(By.tagName(\"body\")).getText();\n assertTrue(bodyText.contains(USERNAME_VIEWER), \"Expected Username is not matched\");\n getDriver().findElement(By.linkText(USERNAME_VIEWER)).click();\n String personalizeText = getDriver().findElement(By.cssSelector(\"i.ues-copy\")).getAttribute(\"title\").trim()\n .substring(0, 11);\n assertEquals(\"Personalize\", personalizeText, \"Unable to find the personalize button\");\n }"
] | [
"0.5987603",
"0.5616698",
"0.54689825",
"0.5441204",
"0.54041433",
"0.5374427",
"0.53187245",
"0.5311848",
"0.5268982",
"0.52531826",
"0.5225303",
"0.51935095",
"0.51877105",
"0.5167412",
"0.5134417",
"0.51322484",
"0.5128718",
"0.5126281",
"0.51202726",
"0.5108161",
"0.51032364",
"0.5099947",
"0.5097456",
"0.5094203",
"0.5073553",
"0.50402105",
"0.5013162",
"0.50084955",
"0.4994029",
"0.49874306",
"0.4983979",
"0.49815306",
"0.49637344",
"0.4955111",
"0.49497688",
"0.49452263",
"0.49349552",
"0.49303412",
"0.49285093",
"0.49253008",
"0.4916647",
"0.4898928",
"0.4893621",
"0.4891638",
"0.48895046",
"0.4886568",
"0.48791808",
"0.4874069",
"0.48735234",
"0.4854217",
"0.48519704",
"0.48519704",
"0.48504522",
"0.48449114",
"0.48354825",
"0.48343903",
"0.48239842",
"0.48216727",
"0.48188013",
"0.4815021",
"0.48133",
"0.4812175",
"0.4810808",
"0.48066044",
"0.48029974",
"0.47957987",
"0.47957987",
"0.4792426",
"0.47915033",
"0.47888345",
"0.47838983",
"0.4779428",
"0.47778472",
"0.47765175",
"0.4772888",
"0.47715724",
"0.47638178",
"0.4752142",
"0.47507226",
"0.47475064",
"0.47400638",
"0.47395763",
"0.47357163",
"0.4732285",
"0.47316325",
"0.4728464",
"0.47277245",
"0.47239918",
"0.47205234",
"0.4718317",
"0.47166428",
"0.47163612",
"0.4715425",
"0.47104344",
"0.47028074",
"0.4700841",
"0.46949422",
"0.46926254",
"0.4692149",
"0.46919113"
] | 0.5806954 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Car myCar = new Car(30);// 30 miles per gallon
myCar.addFuel(20);
myCar.distance = 90;
myCar.drive();
System.out.print(myCar.getFuel());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
Created by lunqingwen on 2015/9/8. | public interface UserProfileChangedNotification {
void onProfileChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo4359a() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void init() {\n\n }",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"private void init() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"private void init() {\n\n\n\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n protected void getExras() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"private void m50366E() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"static void feladat9() {\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"static void feladat4() {\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}"
] | [
"0.6286403",
"0.6177351",
"0.6066978",
"0.60463756",
"0.603711",
"0.603711",
"0.6003555",
"0.5993993",
"0.59868455",
"0.5917111",
"0.5909552",
"0.5901694",
"0.59007025",
"0.5891559",
"0.5872",
"0.58696055",
"0.5863378",
"0.5827334",
"0.5824568",
"0.58224756",
"0.581753",
"0.58143616",
"0.5807748",
"0.5805292",
"0.58005667",
"0.5793434",
"0.5792022",
"0.57824653",
"0.5777308",
"0.5760482",
"0.5760482",
"0.5760482",
"0.5760482",
"0.5760482",
"0.57440466",
"0.5738169",
"0.57356465",
"0.57356465",
"0.5723421",
"0.5704013",
"0.5677236",
"0.5677236",
"0.5677236",
"0.5675582",
"0.5669496",
"0.5661945",
"0.56573385",
"0.5642874",
"0.5642874",
"0.5642874",
"0.5642874",
"0.5642874",
"0.5642874",
"0.5642874",
"0.5641636",
"0.56353223",
"0.56353223",
"0.5631461",
"0.5631461",
"0.5631461",
"0.5624331",
"0.5624095",
"0.56227404",
"0.56167084",
"0.56167084",
"0.56146073",
"0.56146073",
"0.56146073",
"0.56141776",
"0.5607099",
"0.56019795",
"0.5599199",
"0.55769986",
"0.55656046",
"0.5559578",
"0.55565786",
"0.5556576",
"0.555223",
"0.5541876",
"0.554098",
"0.55396277",
"0.5532285",
"0.5531751",
"0.55306226",
"0.5518884",
"0.5513482",
"0.5511454",
"0.5509587",
"0.55049205",
"0.55003124",
"0.55003124",
"0.55003124",
"0.55003124",
"0.55003124",
"0.55003124",
"0.5500097",
"0.5499284",
"0.5498351",
"0.54956883",
"0.54927975",
"0.54799646"
] | 0.0 | -1 |
get user details by user ID | public Member getUserByID(int userID) throws ClassNotFoundException{
//sql statement
String SearchUser_SQL = "SELECT * FROM member WHERE member_ID = ?";
//creating an member object
Member member = new Member();
try(
//initialising the database connection
Connection conn = DatabaseConnection.connectDB();
PreparedStatement statement = conn.prepareStatement(SearchUser_SQL);)
{
statement.setInt(1, userID);
//executing the query and getting data
ResultSet userdetails = statement.executeQuery();
userdetails.next();
member.setUserID(userdetails.getInt("member_ID"));
member.setUsername(userdetails.getString("username"));
member.setPhone(userdetails.getString("mobile"));
member.setDob(userdetails.getString("dob"));
member.setGender(userdetails.getString("gender"));
member.setEmail(userdetails.getString("email"));
member.setPassword(userdetails.getString("password"));
//converting image to displayable format
Blob image = userdetails.getBlob("profilepic");
byte[] imagedata = null ;
imagedata = image.getBytes(1,(int)image.length());
String imagedataBase64 = new String(Base64.getEncoder().encode(imagedata));
member.setProfilepic(imagedataBase64);
//closing the database connection
conn.close();
} catch (SQLException | ClassNotFoundException e){
e.printStackTrace();
}
return member;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"User getUserInformation(Long user_id);",
"UserDetails get(String id);",
"User getUserDetails(int userId);",
"UserInfo getUserById(Integer user_id);",
"public User getUserData(String id);",
"User getUser(Long id);",
"User getUserById(int id);",
"public UserInformation findInformationById(int id);",
"User getUserById(Long id);",
"User getUserById(Long id);",
"@Override\r\n\tpublic User_Detail getUserDetail(int userId) {\n\t\treturn sessionFactory.getCurrentSession().get(User_Detail.class, Integer.valueOf(userId));\r\n\t}",
"@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}",
"public User getUserById(Long userId);",
"@RequestMapping(method=RequestMethod.GET, value=\"{id}\")\n\tpublic User getUser(@PathVariable Long id) {\n\t\treturn RestPreconditions.checkFound(repo.findByUserId(id));\n\t}",
"public User getUserById(Long id) throws Exception;",
"@RequestMapping(value=\"/user/{id}\",method=RequestMethod.GET)\n\tpublic @ResponseBody ResponseEntity<User> getOneUserDetails(@PathVariable Long id)throws Exception{\n\t\tUser user=null;\n\t\t\tuser=userDAO.findOne(id);\n\t\t\tif(user!=null)\n\t\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t\t\telse {\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t}",
"public User getUser(long id){\n User user = userRepository.findById(id);\n if (user != null){\n return user;\n } else throw new UserNotFoundException(\"User not found for user_id=\" + id);\n }",
"@Override\r\n\tpublic User getUserByID(int id) {\n\t\treturn userMapper.getUserByID(id);\r\n\t}",
"public User getUser(Long userId);",
"@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Userinfo findbyid(int id) {\n\t\treturn userDAO.searchUserById(id);\r\n\t}",
"@Override\n\tpublic User getUser(int id) {\n\t\treturn userRepository.findById(id);\n\t}",
"@Override\n\tpublic User getUserInfoById(String idUser) {\n\t\treturn userRepository.getUserInfoById(idUser);\n\t}",
"User getUser(String userId);",
"@Override\n\tpublic User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\n\t}",
"@CrossOrigin\r\n @RequestMapping(value = USER_DETAIL, method=RequestMethod.GET)\r\n public ResponseEntity<?> getUserDetail(@RequestParam(\"id\") String id) {\r\n\r\n \tcheckLogin();\r\n EmployeeVO emp = employeeService.getEmployeeDetailById(id);\r\n return new ResponseEntity<>(emp, HttpStatus.OK);\r\n }",
"public User getUserDetailsById(Long userId) {\n\t\tString sql = \"select * from HealthUsers where id = ?\";\n\t\treturn jdbcTemplate.queryForObject(sql, new UserRowMapper(), userId);\n\t}",
"public User read(String id);",
"@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n return em.find(User.class, id);\r\n }\r\n finally\r\n {\r\n em.close();\r\n }\r\n }",
"public UserTO getUser (String id);",
"@RequestMapping(\n value = \"/user/{user_id}\", method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_UTF8_VALUE\n )\n public ResponseEntity<User> getUser(@PathVariable(\"user_id\") long id) {\n System.out.println(\"Fetching User with id \" + id);\n User user = new User();\n user.setId(id);\n user.setName(\"Boby\");\n return new ResponseEntity<>(user, HttpStatus.OK);\n }",
"public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }",
"@GetMapping(\"/{id}\")\n public ResponseEntity<?> getUser(@PathVariable int id) {\n return profileService.getUserById(id);\n }",
"@Override\n public User getUser(String userId){\n return userDAO.getUser(userId);\n }",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"@Override\r\n\tpublic UserInfo getUserInfo(int id) {\n\t\treturn userInfo;\r\n\t}",
"public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}",
"Request<UserInfoDetailsProxy> findDetailsFromUser(Long id);",
"@GetMapping(\"/users/{id}\")\n\tpublic User retrieveUser(@PathVariable int id) {\n\t\tUser user = userService.findById(id).get();\n\t\tif (user == null) {\n\t\t\tthrow new UserNotFoundException(\"id - \" + id);\n\t\t}\n\t\treturn user;\n\t}",
"public User getUser(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId);\n }",
"public User getUser(long id) {\n\t\tUser user = null;\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\n\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \" +\n\t\t\t \"PREFIX foaf: <http://xmlns.com/foaf/0.1/>\" +\n\t\t\t \"select * \" +\n\t\t\t \"where { \" +\n\t\t\t \t\"?user sweb:id \" + id + \".\" +\n\t\t\t \"} \\n \";\n\n\t Query query = QueryFactory.create(queryString);\n\t \n\t QueryExecution qe = QueryExecutionFactory.create(query, this.model);\n\t ResultSet results = qe.execSelect();\n\t \n\t while(results.hasNext()) {\n\t \tQuerySolution solution = results.nextSolution() ;\n\t Resource currentResource = solution.getResource(\"user\");\n\n\t user = this.buildUserFromResource(currentResource);\n\t \n\t user.setTweets(this.getTweetsByUserId(id));\n\t user.setVisited(this.getVenuesVisitedByUserId(id));\n\t user.setInContact(this.getInContactForUserId(id));\n\t }\n\t \n\t return user;\n\t}",
"public static Object getUserDetails(int user_id)\r\n {\r\n Fisher f = DatabaseController.selectFisherRecord(user_id);\r\n\r\n if(f != null)\r\n {\r\n return f;\r\n }\r\n else\r\n {\r\n Intermediary i = DatabaseController.selectIntermediaryRecord(user_id);\r\n return i;\r\n }\r\n }",
"public User getUser(int id) {\n\t\treturn null;\n\t}",
"Userinfo selectByPrimaryKey(String userId);",
"public Users getUser(Integer id) {\r\n\t\treturn usDao.findById(id, true);\r\n\r\n\t}",
"@Override\r\n\tpublic User searchUser(Integer id) {\n\t\treturn userReposotory.getById(id);\r\n\t}",
"public User getUserById(int userId) {\n return this.userDao.selectByPrimaryKey(userId); \r\n }",
"@GET\n\t@Path(\"/id\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Response findById(@QueryParam(\"id\") Long id) throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tUser userById = userDao.getUserById(id);\n\t\t\n\t\tif (userById != null) {\n\t\t\treturn Response\n\t\t\t\t\t.status(200)\n\t\t\t\t\t.entity(userById)\n\t\t\t\t\t.header(\"Access-Control-Allow-Headers\", \"X-extra-header\")\n\t\t\t\t\t.allow(\"OPTIONS\")\n\t\t\t\t\t.build();\n\t\t} else {\n\t\t\treturn Response\n\t\t\t\t\t.status(404)\n\t\t\t\t\t.entity(\"The user with the id \" + id + \" does not exist\")\t\t\t\t\t\n\t\t\t\t\t.build();\n\t\t}\n\t}",
"public User getUserById(String id) {\n // return userRepo.findById(id);\n\n return null;\n }",
"@Override\n public User getUserById(int id) {\n Session session = this.sessionFactory.getCurrentSession(); \n User u = (User) session.load(User.class, new Integer(id));\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }",
"@Override\n public UserInfo findById(int id) {\n TypedQuery<UserInfo> query = entityManager.createNamedQuery(\"findUserById\", UserInfo.class);\n query.setParameter(\"id\", id);\n return query.getSingleResult();\n }",
"@Override\n\tpublic User selectUserById(int id) {\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = (User) client.queryForObject(\"selectUserById\", id);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn user;\n\n\t}",
"@GetMapping(\"/{id}\")\n public user get(@PathVariable(\"id\")Long id){\n return USERRepository.getOne(id);\n }",
"User get(int userId) throws UserNotFoundException, SQLException;",
"@RequestMapping(method = RequestMethod.GET)\n\tpublic User getUser(@PathVariable(value=\"id\") long userId) throws GovacException {\n\t\t\n\t\tOptional<User> userOpt = usersRepo.findById(userId);\n\t\tif (!userOpt.isPresent()) {\n\t\t\tthrow new GovacException(\"User not found.\");\n\t\t}\n\t\t\n\t\treturn userOpt.get();\n\t}",
"public User getUser(Long id) {\n\t\treturn userRepo.findByUserId(id);\n\t}",
"@Override\n public TechGalleryUser getUser(final Long id) throws NotFoundException {\n TechGalleryUser userEntity = userDao.findById(id);\n // if user is null, return a not found exception\n if (userEntity == null) {\n throw new NotFoundException(i18n.t(\"No user was found.\"));\n } else {\n return userEntity;\n }\n }",
"@CrossOrigin(origins = \"*\")\r\n\t@GetMapping(\"/user/{id}\")\r\n\tpublic ResponseEntity<Users> getUserById(@PathVariable(value=\"id\")Long id){\r\n\t\t\r\n\t\tUsers user = usersDAO.findById(id);\r\n\t\t\r\n\t\tif(user==null) {\r\n\t\t\t\r\n\t\t\treturn ResponseEntity.notFound().build();\r\n\t\t}\r\n\t\treturn ResponseEntity.ok().body(user);\r\n\t}",
"@GetMapping(\"consumer/find/{id}\")\n public User findby (@PathVariable(\"id\") Integer id) {\n return restTemplate.getForObject(\"http://provider-user/provider/find/\" + id, User.class);\n }",
"public User getUser(String id) {\n return repository.getUser(id).get(0);\n }",
"@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET)\n public ResponseEntity<String> getUserInformationEndpoint(@PathVariable(value = \"id\") String id) {\n Response response = new Response(\"Get User Information\");\n HttpStatus httpStatus = HttpStatus.ACCEPTED;\n\n UserData userData = adminUserService.getUserInfo(id);\n if (userData != null) {\n response.addBodyElement(\"userData\", userData.toJsonObject());\n }\n else {\n response.actionFailed();\n response.setMessage(Messages.Failure.GET_USER_INFO);\n }\n\n return ResponseEntity\n .status(httpStatus)\n .contentType(MediaType.APPLICATION_JSON)\n .body(response.toJson());\n }",
"@Override\n\tpublic ERSUser getUser(int userId) {\n\t\treturn userDao.selectUserById(userId);\n\t}",
"String getUserId();",
"String getUserId();",
"@JsonView(JSONView.ParentObject.class)\n\t@RequestMapping(value = \"/users/{userId}\", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)\n\tpublic MMDHUser getUserById(@PathVariable(value = \"userId\") Long userId) {\n\t\treturn userRepo.findOne(userId);\n\t}",
"public User getUser(String id) {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/{id}\")\n\tpublic User getUserById(@PathVariable long id) throws ResourceNotFoundException {\n\t\t\n\t\treturn userRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"User not found for this Id :: \"+id));\n\t\t\n\t}",
"@GetMapping(\"/{id}\")\n public User get(@PathVariable(\"id\") final int id) {\n return userService.get(id);\n }",
"@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}",
"public User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\r\n\t}",
"@Override\n\tpublic User getUserById(String id) {\n\t\tUser user = null;\n\t\tConnection connection = null;\n\t\ttry{\n\t\t\tconnection = BaseDao.getConnection();\n\t\t\tuser = userMapper.getUserById(connection,id);\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tuser = null;\n\t\t}finally{\n\t\t\tBaseDao.closeResource(connection, null, null);\n\t\t}\n\t\treturn user;\n\t}",
"public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}",
"public User loadUserDetails(String id)throws Exception;",
"public User findUserById(int id);",
"RecordUser getUser(long id) throws PrismsRecordException;",
"@RequestMapping(path = \"/api/user/byid\")\n public String userById(@RequestParam(name = \"id\") String id) {\n return \"\";\n }",
"@GetMapping(\"/users/id/{id}\")\n public ResponseEntity<UserDTO> getUserById(@PathVariable(name=\"id\") Long id) {\n \tUserDTO user = userService.getUserById(id);\n return new ResponseEntity<>(user, HttpStatus.OK);\n }",
"@GetMapping(\"/users/{id}\")\n public Transportador getUserById(@PathVariable(value = \"id\") Long userId) {\n return transportadorRepository.findByNolicencia(userId);\n }",
"public User getUserFromId(final long id) {\n LOG.info(\"Getting user with id {}\", id);\n return userRepo.get(id);\n }",
"@Override\n\tpublic AppUser getUserById(int id) {\n\t\tAppUser user = store.get(id);\n return user;\n\t\t\n\t}",
"User findUser(String userId);",
"@GetMapping(\"/user/{id}\")\n public ResponseEntity getUserById(@PathVariable(value = \"id\") Long id) {\n User user = userRepository.getOne(id);\n\n // Not found, returning 404 Not Found\n if (user == null)\n return ResponseEntity.notFound().build();\n\n // Found\n return ResponseEntity.ok().body(user);\n }",
"public User details(String user);",
"@GET(\"/api/users/{id}\")\n public void getUserById(@Path(\"id\") Integer id,Callback<User> callback);",
"public User getById(String id){\n List<User> users = userRepo.findAll();\n for (User user : users){\n if(user.getGoogleId().equals(id)){\n return user;\n }\n }\n throw new UserNotFoundException(\"\");\n }",
"User get(Key id);",
"@Override\n\tpublic User getUserById(int userId) {\n\t\treturn this.userDao.selectByPrimaryKey(userId);\n\t}",
"@Override\n\tpublic User getUserById(int id) {\n\t\treturn null;\n\t}",
"@GetMapping(\"/user/{id}\")\n\tpublic ResponseEntity<User> singleUser(@PathVariable(\"id\") int id) {\n\t\tUser user = userDao.getUserById(id);\n\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t}",
"@Override\r\n\tpublic UserTO getUser(String id) {\n\t\treturn null;\r\n\t}",
"public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }",
"public User getUserById(Serializable id) {\n\t\treturn (User)this.userDao.getEntryById(id);\r\n\t}",
"public UserModel getUser(Integer id) {\n UserModel userModel = userRepository.findById(id).get();\n return userModel;\n }",
"@Override\n\tpublic G_User getUser(String userId) {\n\t\treturn uDao.getById(userId);\n\t}",
"@GetMapping(\"/list/{id}\")\n\tpublic User one(@PathVariable int id) {\n\t\treturn userService.findOne(id);\n\t}",
"@GetMapping(\"/{id}\")\n\tpublic Optional<User> getUser(@PathVariable int id) {\n\t\tOptional<User> u = userRepo.findById(id);\n\t\tif(u.isPresent())\n\t\t{\n\t\t\treturn u;\n\t\t}\n\t\telse\n\t\t\tthrow new ResponseStatusException(HttpStatus.NOT_FOUND, \"User not found\");\n\t}",
"public User findById(Long id){\n return userRepository.findOne(id);\n }",
"User findUserById(Long id) throws Exception;"
] | [
"0.8166899",
"0.81088275",
"0.79872215",
"0.79579586",
"0.7871829",
"0.7863727",
"0.78194654",
"0.77223086",
"0.7661704",
"0.7661704",
"0.7624164",
"0.75922805",
"0.7588542",
"0.7522527",
"0.7505636",
"0.75023687",
"0.74848443",
"0.7474846",
"0.7464565",
"0.7463924",
"0.74582464",
"0.7446347",
"0.7445179",
"0.74392915",
"0.7423433",
"0.74127406",
"0.7399891",
"0.7399292",
"0.7395474",
"0.7364956",
"0.73563164",
"0.73339903",
"0.7332568",
"0.7313946",
"0.72878164",
"0.72878164",
"0.72878164",
"0.72655773",
"0.7262421",
"0.72596294",
"0.7246368",
"0.7239823",
"0.7237202",
"0.72229224",
"0.7219535",
"0.7218403",
"0.7218113",
"0.7216471",
"0.7215809",
"0.7196348",
"0.7193009",
"0.7191527",
"0.7188871",
"0.71825504",
"0.7167546",
"0.7167544",
"0.7165008",
"0.71615726",
"0.7161008",
"0.7156444",
"0.7155383",
"0.7155333",
"0.7155117",
"0.71537006",
"0.7150074",
"0.7146209",
"0.7146209",
"0.71374834",
"0.71369934",
"0.71358967",
"0.71316373",
"0.7128838",
"0.7126186",
"0.71073496",
"0.7102449",
"0.71015584",
"0.7085512",
"0.7075407",
"0.70697284",
"0.7061507",
"0.7058087",
"0.70580554",
"0.70543563",
"0.7053417",
"0.7051759",
"0.7049538",
"0.7045056",
"0.70396614",
"0.70335984",
"0.7031884",
"0.70313346",
"0.70270437",
"0.70269513",
"0.7022622",
"0.7019723",
"0.70169026",
"0.701612",
"0.7009726",
"0.7009294",
"0.6996199",
"0.6994885"
] | 0.0 | -1 |
no of reservations done by user | public int getNoOfReservations(int userID) throws ClassNotFoundException{
//sql statement
String No_OF_Reservation_SQL = "SELECT COUNT(*) as 'rcount' FROM reservation WHERE user_ID = ?";
int count=0;
try(
//initialising the database connection
Connection conn = DatabaseConnection.connectDB();
PreparedStatement statement = conn.prepareStatement(No_OF_Reservation_SQL);)
{
statement.setInt(1, userID);
//executing the query and getting data
ResultSet userdetails = statement.executeQuery();
userdetails.next();
count = userdetails.getInt("rcount");
//closing the database connection
conn.close();
} catch (SQLException | ClassNotFoundException e){
e.printStackTrace();
}
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CountReservation countS(){\n\t\t\treturn repositoryR.getStatus();\n\t\t}",
"public int countActive() {\n int result = 0;\n \n synchronized (m_reservableListMutex) {\n final Iterator iterator = m_reservables.iterator();\n \n while (iterator.hasNext()) {\n final Reservable reservable = (Reservable)iterator.next();\n \n if (!reservable.isClosed() && !reservable.isSentinel()) {\n ++result;\n }\n }\n }\n \n return result;\n }",
"public int getNumeroReservation() {\n\t\treturn numeroReservation;\n\t}",
"public static int totalReservations(ArrayList<Reservation> rTable) {\n\t\treturn rTable.size();\n\t}",
"int getReservePokemonCount();",
"int getReaultCount();",
"@Override\n\tpublic int selectReserveCount() {\n\t\treturn dgCallServiceMapper.selectReserveCount();\n\t}",
"public static int getNrReservas() {\r\n\t\tint reservas = 0;\r\n\t\tString sql=\"select count(*) as reservas from reserva;\";\r\n\r\n\t\ttry {\r\n\t\t\tConnection conn=singleton.getConnector().getConnection();\r\n\t\t\tPreparedStatement stat=conn.prepareStatement(sql);\r\n\t\t\tResultSet utils=stat.executeQuery();\r\n\t\t\twhile(utils.next()) {\r\n\t\t\t\treservas = utils.getInt(\"reservas\");\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn reservas;\r\n\t}",
"@Query(\"select count(r) from Reservation r group by r.user\")\n\tCollection<Double> dashboardRendezvousesRsvp();",
"int getNumberOfGuests();",
"@Query\n\tpublic int countFreeUin();",
"public static void incrementGuestRoomCount() {numGuestRooms++;}",
"int getTaskDetailsCount();",
"int getTaskIdCount();",
"int getNewlyAvailableQuestsCount();",
"public int getActiveRunwaysCount();",
"long getTotalAcceptCount();",
"int getUserQuestJobsCount();",
"public long countAllReserveTransactionsByRequestor(Integer personId) throws MiddlewareQueryException;",
"private int getNumReservations(int fid) throws SQLException {\n\t\tgetNumReservationsStatement.clearParameters();\n\t\tgetNumReservationsStatement.setInt(1, fid);\n\t\tgetNumReservationsStatement.setInt(2, fid);\n\t\tResultSet result = getNumReservationsStatement.executeQuery();\n\t\tresult.next();\n\t\tint out = result.getInt(1);\n\t\tresult.close();\n\t\treturn out;\n\t}",
"long getOwnedEntryCount();",
"public String numTasks() {\n return \"Now you have \" + USER_TASKS.size() + \" tasks in the list.\";\n }",
"int getSlotsCount();",
"public int getAvailableCount();",
"int numSeatsAvailable();",
"@Query(\"select count(a) from Reservation a right join a.rendezvous r group by r.id\")\n\tCollection<Double> dashboardUsersPerRendezvous();",
"int getPurchasableOffersCount();",
"public void refreshReservations(RoomMgr rm){\n\t\tint count=0;\n\t\tfor (Reservation r : rList){\n\t\t\tif ((r.getResvStatus() == rStatus[0] || r.getResvStatus() == rStatus[1]) && r.getDateCheckIn().isBefore(LocalDate.now())){\n\t\t\t\tr.setResvStatus(rStatus[4]);\n\t\t\t\trm.assignRoom(r.getRoomNo(),0);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (count > 0)\n\t\t\tSystem.out.println(count + \" Reservations expired!\");\n\t}",
"public boolean isSetReservations() {\n return this.reservations != null;\n }",
"int getDonatoriCount();",
"@Override\n\tpublic int countOfTask(int userId) {\n\t\treturn publicDomService.getPersonTaskCount(DomType.GATHER, MenuType.GA_READ, userId);\n\t}",
"public long countAllReserveTransactions() throws MiddlewareQueryException;",
"int getActAmountCount();",
"private void createReservations() {\n final String username = extractUsername();\n final EMail email = extractEMail();\n if (!isReserved(username) || !isReserved(email)) {\n signupDelegate.enableNextButton(Boolean.FALSE);\n SwingUtil.setCursor(this, java.awt.Cursor.WAIT_CURSOR);\n UsernameReservation usernameReservation = null;\n EMailReservation emailReservation = null;\n try {\n errorMessageJLabel.setText(getString(\"CheckingUsername\"));\n errorMessageJLabel.paintImmediately(0, 0, errorMessageJLabel\n .getWidth(), errorMessageJLabel.getHeight());\n \n // get username reservation\n usernameReservation = createUsernameReservation(username);\n if (null == usernameReservation) {\n unacceptableUsername = username;\n } else {\n usernameReservations.put(username.toLowerCase(), usernameReservation);\n }\n \n // get email reservation\n emailReservation = createEMailReservation(email);\n if (null == emailReservation) {\n unacceptableEMail = email;\n } else {\n emailReservations.put(email, emailReservation);\n }\n } catch (final OfflineException ox) {\n logger.logError(ox, \"An offline error has occured.\");\n temporaryError = getSharedString(\"ErrorOffline\");\n } catch (final Throwable t) {\n logger.logError(t, \"An unexpected error has occured.\");\n temporaryError = getSharedString(\"ErrorUnexpected\");\n } finally {\n SwingUtil.setCursor(this, null);\n }\n validateInput();\n }\n }",
"public int getReservationId() { return reservationId; }",
"public int getNumberOfSeatsRequested() { return numberOfSeatsRequested; }",
"int getTransactionsCount();",
"@Override\n\tpublic int religioncount() throws Exception {\n\t\treturn dao.religioncount();\n\t}",
"int getAchieveInfoCount();",
"public int getAppointments()\n\t{\n\t\tint appointments=0;\n\t\tString query=\"select count(*) from appointments where status=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"not_donated\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tappointments=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appointments;\n\t}",
"protected int getTotalEnrolledMorning() {\n return getMorningRoster().size();\n }",
"int getDeliveredCount();",
"protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}",
"public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }",
"int getReqCount();",
"int getDeliveriesCount();",
"public int getNumberOfPeopleInElevator(int elevator) {\r\n /*\r\n switch(elevator) {\r\n case 1: return 1;\r\n case 2: return 4;\r\n default: return 0;\r\n }\r\n */\r\n int i = 0;\r\n try {\r\n ElevatorScene.personCountMutex.acquire();\r\n i = numberOfSpacesInElevator;\r\n ElevatorScene.personCountMutex.release();\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } \r\n return i;\r\n }",
"int getTransitFlightsCount();",
"public static int makeReservation(String name, String time) {\n ArrayList<Reservation> reservationsAtTime = allReservations.get(time);\n\n // Check if it is possible to make a reservation\n if (reservationsAtTime.size() < numberOfTables) {\n Reservation newReservation = new Reservation();\n newReservation.reservationOwner = name;\n newReservation.reservationTime = time;\n\n int tableNumber = getFreeTable(time);\n if (tableNumber == -1) {\n return -1;\n }\n\n newReservation.reservedTableNumber = tableNumber;\n\n reservationsAtTime.add(newReservation);\n allReservations.put(time, reservationsAtTime);\n\n return newReservation.reservedTableNumber;\n\n } else {\n return -1;\n }\n }",
"public void setReservationId(int i) { reservationId = i; }",
"studentCounter( int numStudentAlreadyInTheRoom ){ \n\t\tnumStudentInRoom = numStudentAlreadyInTheRoom ;\n\t}",
"public void checkIn(Recepcionist user, List<Reservation> reservations, List<Room> rooms){\n int reservationId;\n Room room;\n reservationId = this.enterNumber(\"el numero de Reserva\");\n room = user.checkIn(reservationId,reservations,rooms);\n if(room != null){\n System.out.println(\"\\nEl check-in fue exitoso. Pueden ocupar la habitacion Nro. \"+room.getRoomNumber());\n } else {\n System.out.println(\"\\nEl numero de reserva no se encuentra en el sistema.\");\n }\n }",
"@Test\n\tpublic void testListReservationsOfUserInInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\n\t\t// first reservation is from now +1 to now +3\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\treservation1StartDate, reservation1EndDate);\n\n\t\t// second reservation is from now +4 to now +5\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2StartDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2EndDate = cal.getTime();\n\n\t\tReservation reservation2 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\treservation2StartDate, reservation2EndDate);\n\n\t\t// should find both above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertEquals(2, reservationsOfUser.size());\n\t\tassertTrue(reservationsOfUser.contains(reservation1));\n\t\tassertTrue(reservationsOfUser.contains(reservation2));\n\t}",
"@Override\n public int findTotalNumberOfAvailableSeats(SeatGrid sourceSeatGrid) {\n return findTotalAvailableSeats(sourceSeatGrid).size();\n }",
"int getParticipantsCount();",
"int getParticipantsCount();",
"int getDeleteUserMonsterUuidsCount();",
"@java.lang.Override\n public int getReservePokemonCount() {\n return reservePokemon_.size();\n }",
"int getRealtorNumCnt(RealtorDTO realtorDTO);",
"public int countOfGenerations ();",
"public int getReservePokemonCount() {\n if (reservePokemonBuilder_ == null) {\n return reservePokemon_.size();\n } else {\n return reservePokemonBuilder_.getCount();\n }\n }",
"int getTruckstatusCount();",
"private void getTotalPreguntas(){\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n \n String jpql = \"SELECT COUNT(i) FROM Interrogante i WHERE i.estado='a' \";\n \n \n Query query = em.createQuery(jpql);\n this.totalpreguntas = Integer.parseInt(query.getSingleResult().toString());\n //agregamos la pregunta de seleccion de departamento\n this.totalpreguntas +=1;\n em.close();\n emf.close();\n }catch(Exception e ){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n } \n }",
"public String findTotalCount(WorkLetPermitDetailDTO workLetPermitDetailDTO, WorkLetPermitPointListDTO workLetPermitPointListDTO, User user) throws Exception;",
"@Query (\"SELECT c.client, COUNT(c.client) from Reserva AS c group by c.client order by COUNT(c.client)DESC\")\r\n public List<Object[]> countTotalReservationsByClient();",
"@Test\n public void testReservationFactoryTableOccupied() {\n ReservationController reservationController = reservationFactory.getReservationController();\n Customer customer = new Customer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n Calendar date = Calendar.getInstance();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n Table table = tableFactory.getTableController().getTable(1);\n reservationController.addReservation(date, customer, 2, table);\n assertEquals(1, reservationController.getReservationList().size());\n assertEquals(1, table.getTableId());\n assertEquals(2, table.getNumSeats());\n assertEquals(TableStatus.RESERVED, table.getStatus());\n }",
"int getRequestedValuesCount();",
"public int totalOrdersTaken();",
"int getNumOfRetrievelRequest();",
"int getNumOfRetrievelRequest();",
"@Override\n\tpublic int update(Reservation objet) {\n\t\treturn 0;\n\t}",
"long getUnjoinedEventsCount();",
"@Override\n public int getIntraUsersWaitingYourAcceptanceCount() {\n //TODO: falta que este metodo que devuelva la cantidad de request de conexion que tenes\n try {\n\n if (getActiveIntraUserIdentity() != null){\n return getIntraUsersWaitingYourAcceptance(getActiveIntraUserIdentity().getPublicKey(), 100, 0).size();\n }\n\n } catch (CantGetIntraUsersListException e) {\n e.printStackTrace();\n } catch (CantGetActiveLoginIdentityException e) {\n e.printStackTrace();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return 0;\n }",
"public int getsize() {\r\n\t\treturn listaReservas.size();\r\n\t}",
"protected void showReservations() {\n storageDao.findAllRented()\n .forEach(System.out::println);\n }",
"public static int getCutomers_onWaitTotal() {\r\n\t\tint applianceId = 0;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT count(*) FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" \tINNER JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" \tINNER JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" \tINNER JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" \t\t\t\t\tJOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" \tWHERE e.status=0;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tapplianceId = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\tstmt.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn applianceId;\r\n\r\n\t}",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public int getReaultCount() {\n return reault_.size();\n }",
"public int totalAllocatedOrders();",
"int getTotalDepositCount();",
"@Override\n\tpublic boolean isReserveResults() {\n\t\treturn model.isReserveResults();\n\t}",
"@Override\n\tpublic int roomcount(Integer bno) throws Exception {\n\t\treturn dao.roomcount(bno);\n\t}",
"public int getNumOfExcessOccupiedRooms() {\n return (int) IntStream.rangeClosed(numOfRooms, internalList.size() - 1)\n .mapToObj(x -> internalList.get(x)).filter(Room::isOccupied).count();\n }",
"int getPersonInfoCount();",
"int getPickupsCount();",
"private void checkReservationValidityAndRemove(){\n\t\t\n\t\tfor (Reservation r: reservationArray){\n\t\t\tif (r.getBookingDateAndTime().get(Calendar.DAY_OF_MONTH)==Calendar.getInstance().get(Calendar.DAY_OF_MONTH)){\n\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.MONTH)==Calendar.getInstance().get(Calendar.MONTH)){\n\t\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.HOUR_OF_DAY)==Calendar.getInstance().get(Calendar.HOUR_OF_DAY)){\n\t\t\t\t\t\tif (r.getBookingDateAndTime().get(Calendar.MINUTE) > 30 + r.getBookingDateAndTime().get(Calendar.MINUTE) ){\n\t\t\t\t\t\t\treservationArray.remove(r);\n\t\t\t\t\t\t\ttablemanager.increaseAvailable();;\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}",
"public int getRequests()\n\t{\n\t\tint requests=0;\n\t\tString query=\"select count(*) from requests where status=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"Confirm\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\trequests=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn requests;\n\t}",
"public Integer getInterestedInItemsCount();",
"int getNumberOfRegsUser(long idUser);",
"int getTotalFree();",
"int getUserCount();",
"int getUserCount();",
"@Override\n\tpublic boolean getReserveResults() {\n\t\treturn model.getReserveResults();\n\t}",
"int getEditsCount();",
"int getTotalCount();",
"void confirmerReservation(String proprietaire, Integer topoId);",
"public int addToBasket (Airport one, Airport two) {\n\t\tFlightReservation r3 = new FlightReservation(name, one, two);\n\t\tcustomerResos.add(r3);\n\t\treturn customerResos.getNumOfReservations();\n\t}",
"public int getNumberOfNewerOnUserSpacesActivities(Identity ownerIdentity, Long sinceTime);"
] | [
"0.6696577",
"0.65614295",
"0.64756453",
"0.642535",
"0.6241662",
"0.61697066",
"0.6079339",
"0.6007876",
"0.6001503",
"0.5999296",
"0.5922923",
"0.5903766",
"0.58691996",
"0.586871",
"0.5851266",
"0.5836498",
"0.58232933",
"0.58138883",
"0.580692",
"0.58045155",
"0.5801901",
"0.5778385",
"0.57727194",
"0.5750746",
"0.5711842",
"0.56836647",
"0.56811726",
"0.56636643",
"0.56598645",
"0.562329",
"0.56216526",
"0.5575021",
"0.5559086",
"0.5543116",
"0.5540226",
"0.5529373",
"0.5527022",
"0.55260205",
"0.55204946",
"0.55174506",
"0.5513133",
"0.5491245",
"0.5490003",
"0.5481816",
"0.54746646",
"0.5465632",
"0.5458358",
"0.5458118",
"0.54524183",
"0.54335916",
"0.5420962",
"0.54072016",
"0.5405596",
"0.54017377",
"0.5400559",
"0.5400559",
"0.53988564",
"0.5392499",
"0.5388291",
"0.5385529",
"0.53815925",
"0.5371221",
"0.53710234",
"0.53680205",
"0.5364318",
"0.53595996",
"0.5355291",
"0.53538454",
"0.5350106",
"0.5350106",
"0.5348608",
"0.5346448",
"0.53458446",
"0.53453016",
"0.53451085",
"0.53313094",
"0.53298825",
"0.53298825",
"0.53298825",
"0.53296983",
"0.5317276",
"0.53081834",
"0.53079915",
"0.5306228",
"0.5300063",
"0.5297588",
"0.5292858",
"0.5279805",
"0.5279471",
"0.52756906",
"0.52706164",
"0.5264569",
"0.52454853",
"0.52454853",
"0.52342963",
"0.52317005",
"0.522885",
"0.52218294",
"0.5219806",
"0.5211932"
] | 0.5713437 | 24 |
Skip the footer views. | @Override
public View getChildAtPosition(MotionEvent ev) {
final int count = getChildCount() - getFooterViewsCount();
int touchY = (int) ev.getY();
int childIdx = getHeaderViewsCount(); // Skip the header views.
for (; childIdx < count; childIdx++) {
View slidingChild = getChildAt(childIdx);
if (touchY >= slidingChild.getTop()
&& touchY <= slidingChild.getBottom()) {
mChildIndex = childIdx;
return slidingChild;
}
}
mChildIndex = -1;
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean skipFooter() {\n return skipFooter;\n }",
"@Override // com.android.settings.wifi.dpp.WifiDppQrCodeBaseFragment\n public boolean isFooterAvailable() {\n return false;\n }",
"public void removeAllFooterView() {\n if (getFooterLayoutCount() == 0) return;\n\n mFooterLayout.removeAllViews();\n int position = getFooterViewPosition();\n if (position != -1) {\n notifyItemRemoved(position);\n }\n }",
"public void onInterruptFooterRefreshing();",
"private void resetFooterSmoothly() {\n if (null != mViewHandler) {\n isChanging = true;\n Message message = new Message();\n message.what = ViewHandler.SMOOTH_CHANGE_START;\n message.arg1 = ViewHandler.SMOOTH_TYPE_FOOTER;\n mViewHandler.sendMessage(message);\n } else\n resetFooterState();\n }",
"@Override\n public boolean isFooterDisplayed() {\n\n setLogString(\"Check footer is not displayed\", true, CustomLogLevel.HIGH);\n return isNotDisplayed(getDriver(), By.className(FOOTER_CONTAINER), TINY_TIMEOUT);\n }",
"private void enableFooterView() {\n messageEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (popupWindow.isShowing()) {\n popupWindow.dismiss();\n }\n }\n });\n }",
"public void onFooterRefresing();",
"public void showRemoveFooter() {\n\t\t/**\n\t\t * 原始代码是这样,为了适配GridView,做了一点改变,以后有问题,可以变换回来\n\t\t */\n\n\t\tif (!mIsRemoveFooterdAdd && !isGridType) {\n\t\t\t// 需要隐藏“更多”时,注释下面这句代码\n\t\t\tmListView.addFooterView( mRemoveFooter );\n\t\t}\n\t\tmIsRemoveFooterdAdd = true;\n\t}",
"public boolean isFooterView(int i) {\n return haveFooterView() && i == getItemCount() - 1;\n }",
"private void interruptFooterRefreshing() {\n if (null != mInterruptListener)\n mInterruptListener.onInterruptFooterRefreshing();\n else\n throw new IllegalStateException(\"When isMarginChangeableWhenloading'value is true,\" + \"must implement IPullInterruptListener,and set it in this ListView!\");\n resetFooterState();\n }",
"public void setPageFooter(String footer)\n {\n // ignore\n }",
"@Override\n\t\t\tpublic void onAnimationEnd(Animation animation) {\n\t\t\t\tfooter.layout(footer.getLeft(), footer.getTop() - (footer.getHeight() / 2), footer.getRight(), footer.getBottom() - (footer.getHeight() / 2));\n\t\t\t}",
"private int getFooterViewPosition() {\n if (getEmptyViewCount() == 1) {\n int position = 1;\n if (mHeadAndEmptyEnable && getHeaderLayoutCount() != 0) {\n position++;\n }\n if (mFootAndEmptyEnable) {\n return position;\n }\n } else {\n return getHeaderLayoutCount() + mData.size();\n }\n return -1;\n }",
"@Override\n public void run() {\n if (footerUser) {\n fm.beginTransaction()\n .show(fm.findFragmentById(R.id.frag_user))\n .hide(fm.findFragmentById(R.id.frag_search))\n .hide(fm.findFragmentById(R.id.frag_home))\n .hide(fm.findFragmentById(R.id.frag_user_businesses))\n .commit();\n }\n }",
"public boolean isFooter() {\n return isFooter;\n }",
"protected View getFooterProgressView() {\n Activity activity = getActivity();\n if (activity != null) {\n return activity.getLayoutInflater().inflate(R.layout.footer_progress_layout, null);\n } else {\n return null;\n }\n }",
"public Class<?> footer() {\n return footer;\n }",
"public void yieldFooter(PageContext pageContext) throws IOException\n {\n yield(\"footer\", pageContext);\n }",
"@Override\n\tprotected void writeFooter() throws IOException {\n\t}",
"@Override\n\tpublic void skip() {\n\t}",
"void Footer() {\n\t\tJPanel panel = new JPanel(new FlowLayout());\r\n\t\tpanel.add(btnLogin);\r\n\t\tpanel.add(btnReset);\r\n\t\t\r\n\t\tadd(panel, BorderLayout.SOUTH);\r\n\t\t\r\n\t\t//Action Listener untuk melakukan action pindah halaman\r\n\t\tbtnLogin.addActionListener(this);\r\n\t\tbtnReset.addActionListener(this);\r\n\t}",
"@Override\n public void run() {\n if (((MyApplication) getApplication()).isUserCreated) {\n if (footerBusiness) {\n fm.beginTransaction()\n .show(fm.findFragmentById(R.id.frag_user_businesses))\n .hide(fm.findFragmentById(R.id.frag_search))\n .hide(fm.findFragmentById(R.id.frag_home))\n .hide(fm.findFragmentById(R.id.frag_user))\n .commit();\n }\n } else\n recursivelyCallHandlerUserBusinessesFragment();\n }",
"public boolean hasFooter() {\n return hasFooter;\n }",
"private void footerDeprecationLog()\n\t{\n\t\tLog.w(TAG, \"Usage of 'TableViewRow.footer' has been deprecated, use 'TableViewRow.footerTitle' instead.\");\n\t}",
"public void skipIn(View view) {\n Intent i = new Intent(this,DonorActivity.class);\n startActivity(i);\n }",
"private void updateFooterView() {\n int mode = determineFooterMode();\n if (mListFooterMode == mode) {\n return;\n }\n mListFooterMode = mode;\n\n ListView lv = getListView();\n if (mListFooterMode != LIST_FOOTER_MODE_NONE) {\n lv.addFooterView(mListFooterView);\n if (getListAdapter() != null) {\n // Already have an adapter - reset it to force the mode. But save the scroll\n // position so that we don't get kicked to the top.\n Parcelable listState = lv.onSaveInstanceState();\n setListAdapter(mListAdapter);\n lv.onRestoreInstanceState(listState);\n }\n\n mListFooterProgress = mListFooterView.findViewById(R.id.progress);\n mListFooterText = (TextView) mListFooterView.findViewById(R.id.main_text);\n } else {\n lv.removeFooterView(mListFooterView);\n }\n updateListFooter();\n }",
"public int addFooterView(View footer) {\n return addFooterView(footer, -1, LinearLayout.VERTICAL);\n }",
"@Override\r\n\tpublic void skip() {\n\t\tSystem.out.println(\"Skip\");\r\n\t}",
"protected abstract Widget instantiateFooterPanel () ;",
"public void resetPlayersOverlayFooterHeader() {\n this.overlayPlayerList.resetFooterHeader();\n this.overlayBoss.clearBossInfos();\n this.mc.getToastGui().clear();\n }",
"public void setNotLoggedInLayoutVisible() {\n mLoggedInLayout.setVisibility(View.GONE);\n mNotLoggedInLayout.setVisibility(View.VISIBLE);\n }",
"private void switchToNoContentView() {\n no_content.setVisibility(View.VISIBLE);\n mRecyclerView.setVisibility(View.GONE);\n }",
"public void forgetLayout()\r\n\t{\n\t}",
"private void removeNonVisibleViews(final int offset) {\n // We need to keep close track of the child count in this function. We\n // should never remove all the views, because if we do, we loose track\n // of were we are.\n int childCount = getChildCount();\n\n // if we are not at the bottom of the list and have more than one child\n if (mLastItemPosition != mAdapter.getCount() - 1 && childCount > 1) {\n // check if we should remove any views in the top\n View firstChild = getChildAt(0);\n while (firstChild != null && getChildBottom(firstChild) + offset < 0) {\n // remove the top view\n removeViewInLayout(firstChild);\n childCount--;\n mCachedItemViews.addLast(firstChild);\n mFirstItemPosition++;\n\n // update the list offset (since we've removed the top child)\n mListTopOffset += getChildHeight(firstChild);\n\n // Continue to check the next child only if we have more than\n // one child left\n if (childCount > 1) {\n firstChild = getChildAt(0);\n } else {\n firstChild = null;\n }\n }\n }\n\n // if we are not at the top of the list and have more than one child\n if (mFirstItemPosition != 0 && childCount > 1) {\n // check if we should remove any views in the bottom\n View lastChild = getChildAt(childCount - 1);\n while (lastChild != null && getChildTop(lastChild) + offset > getHeight()) {\n // remove the bottom view\n removeViewInLayout(lastChild);\n childCount--;\n mCachedItemViews.addLast(lastChild);\n mLastItemPosition--;\n\n // Continue to check the next child only if we have more than\n // one child left\n if (childCount > 1) {\n lastChild = getChildAt(childCount - 1);\n } else {\n lastChild = null;\n }\n }\n }\n }",
"public void removeFooterView(View footer) {\n if (getFooterLayoutCount() == 0) return;\n\n mFooterLayout.removeView(footer);\n if (mFooterLayout.getChildCount() == 0) {\n int position = getFooterViewPosition();\n if (position != -1) {\n notifyItemRemoved(position);\n }\n }\n }",
"private void doFooterClick() {\n switch (mListFooterMode) {\n case LIST_FOOTER_MODE_NONE: // should never happen\n break;\n case LIST_FOOTER_MODE_MORE:\n onLoadMoreMessages();\n break;\n }\n }",
"public void validateFooters() {\n\t}",
"public void onFooterRefreshComplete() {\n onFooterRefreshComplete(true);\n }",
"public void setFooterView(LinearLayout footerView) {\r\n\t\tthis.footerView = footerView;\r\n\t}",
"public boolean isClearAllVisible() {\n return this.mNotificationStackScroller.isFooterViewContentVisible();\n }",
"void removeAllViewsFromAdapter(ViewPager pager) {\n mViews.clear();\n pager.removeAllViews();\n // set this, so that when the next addViews is called, we return POSITION_NONE for every\n // entry so we can remove whichever views we need to and add the ones that we need to.\n mIsViewPagerInIntentionallyInconsistentState = true;\n }",
"private static String footer() {\r\n String output = \"\";\r\n\r\n output += \"\\n\\\\end{document}\";\r\n\r\n return output;\r\n }",
"public void waitMainFooterLinks() {\n for (String footerLink : footerLinks) {\n waitMainLinksInFooter(footerLink);\n }\n }",
"@Override\n public Boolean skip(final ServerWebExchange exchange) {\n return false;\n }",
"public static FooterMyAccountPage getFooterMyAccountPage(WebDriver driver) {\n\t\treturn null;\r\n\t}",
"private void createFooterPanel()\n\t{\n\t\tGridLayout footerGrid = new GridLayout(4,5);\n\t\tfooterGrid.setHgap (5);\n\t\tfooterGrid.setVgap (5);\n\t\tfooterPanel.setLayout(footerGrid);\n\t\tfooterPanel.add (seven);\n\t\tfooterPanel.add (eight);\n\t\tfooterPanel.add (nine);\n\t\tfooterPanel.add (divide);\n\t\tfooterPanel.add (percent);\n\t\tfooterPanel.add (four);\n\t\tfooterPanel.add (five);\n\t\tfooterPanel.add (six);\n\t\tfooterPanel.add (multiply);\n\t\tfooterPanel.add (reciprocal);\n\t\tfooterPanel.add (one);\n\t\tfooterPanel.add (two);\n\t\tfooterPanel.add (three);\n\t\tfooterPanel.add (subtract);\n\t\tfooterPanel.add(PI);\n\t\tfooterPanel.add (zero);\n\t\tfooterPanel.add (decimalPoint);\n\t\tfooterPanel.add (equals);\n\t\tfooterPanel.add (add);\n\t\tfooterPanel.add(e);\n\t}",
"@Override\n public void onBottom() {\n if (isEnabledScrollLast) {\n footView.setVisibility(View.VISIBLE);\n loadMoreInformationData();\n }\n }",
"private void checkIfAllGraphRelativeLayoutsAreGone() {\n\n if (mHeartRateLayout.getVisibility() == View.GONE && mSkinTempLayout.getVisibility() == View.GONE &&\n mBodyTempLayout.getVisibility() == View.GONE && mBloodPressureLayout.getVisibility() == View.GONE &&\n mActivityTypeLayout.getVisibility() == View.GONE && mPerspirationLayout.getVisibility() == View.GONE) {\n\n tvNoData.setVisibility(View.VISIBLE);\n }\n else {\n\n tvNoData.setVisibility(View.GONE);\n }\n }",
"private void emptyLayout() {\n int maxIndex = getNumPeers();\n for (int i = 0; i < maxIndex; i++) {\n // Iterate over the remote Peers only (first Peer is self Peer)\n Utils.removeViewFromParent(getVideoView(getPeerId(i + 1)));\n }\n }",
"public void setLoadingView(int resId) {\t\t\n\t\tfooter = ((LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(resId, null);\t\t//\t\tfooter = (View)inflater.inflate(resId, null);\n\t\tthis.addFooterView(footer);\n\t}",
"protected void hideViewContents() {\n\t\tnoData.heightHint = -1;\n\t\tyesData.heightHint = 0;\n\n\t\tnoData.exclude = false;\n\t\tyesData.exclude = true;\n\n\t\tnoLabel.setVisible(true);\n\t\tyesComposite.setVisible(false);\n\t\tredraw();\n\t}",
"public void generatePostFooter (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n BuildHtmlFooter(new PrintWriter (response.getOutputStream()));\n }",
"private void resetChatFooter(boolean isTools, boolean isEmoji) {\n if (!isTools) {\n mAppPanel.setPanelGone();\n return;\n }\n if (isEmoji) {\n mAppPanel.swicthToPanel(AppPanel.APP_PANEL_NAME_DEFAULT);\n mAppPanel.setVisibility(View.VISIBLE);\n } else {\n mAppPanel.setPanelGone();\n }\n }",
"@Override public int doAfterBody() throws JspException {\r\n return SKIP_BODY;\r\n }",
"@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tbottomLayout.setVisibility(View.INVISIBLE);\n\t\t\t}",
"@Override\n public void onGlobalLayout() {\n if (bottom == 0) {\n txtGrayInstructions.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n bottom = txtGrayInstructions.getBottom();\n }\n //showHelpView(layoutInflater);\n\n }",
"public void generateGetFooter (\n HttpServletRequest request, HttpServletResponse response)\n throws IOException\n {\n BuildHtmlFooter(new PrintWriter (response.getOutputStream()));\n }",
"public /* synthetic */ void lambda$onFinishInflate$0(View view) {\n confirmZenIntroduction();\n }",
"private void leaveRenderGroups() {\r\n if (onePageDataModel.page != null) {\r\n for (CustomerBean uiCustomerBean : uiCustomerBeans) {\r\n renderManager.getOnDemandRenderer(uiCustomerBean.getCustomer().getCustomernumber().toString()).remove(this);\r\n }\r\n }\r\n }",
"public void doExit(View view) {\n mainHelper.restart();\n setContentView(R.layout.fragment_main_activity_ttt);\n }",
"double getFooterMargin();",
"private void prepareLayoutForNoVideoAndNoThumbnail() {\n mBinding.tvDesc.setText(vm.getStep().getDescription());\n mBinding.exoplayer.setVisibility(View.GONE);\n mBinding.ivRecipeImage.setVisibility(View.GONE);\n /*If it came here then we cannot display a video */\n }",
"void disableViewClickability() {\n\n back.setClickable(false);\n ConstraintLayout layout = (ConstraintLayout) findViewById(R.id.logged_in_write_home_layout);\n for (int i = 0; i < layout.getChildCount(); i++) {\n View child = layout.getChildAt(i);\n child.setClickable(false);\n }\n }",
"@Override\n public void addFooter(Component footerDiv)\n {\n if (footerDiv != null)\n {\n getFooters().add(footerDiv);\n footerDiv.addClass(\"ui-layout-footer\");\n }\n }",
"@Override\n public void onFooterMoving(RefreshFooter footer, boolean isDragging, float percent, int offset, int footerHeight, int maxDragHeight) {\n\n Log.i(TAG, \"onFooterMoving: mOffset=\" + mOffset);\n }",
"public void delhiFalse(View view) {\n delhi = false;\n }",
"public void exitCollectWeb() {\n mActivity.mHolder.mWebLayout.setVisibility(View.GONE);\n isCollectWebPage = false;\n }",
"public void setFooterViewVisible(boolean isShow) {\n\t\tif (isShow) {\n\t\t\tshowFooterView();\n\t\t} else {\n\t\t\thideFooterView();\n\t\t}\n\t}",
"@Override\n public boolean onLayoutChild(CoordinatorLayout parent,\n FooterBarLayout child,\n int layoutDirection) {\n Log.d(\"=====\",child.getTop()+\"\");\n// if(mChildInitialOffset==0) {\n// parent.onLayoutChild(child, layoutDirection);\n// }\n //Gather initial state\n mChildInitialOffset = child.getTop();\n\n //Let the framework lay out the view\n return false;\n }",
"private void emptyLayout() {\n mTvEmpty.setText(R.string.text_receive_list_empty);\n mIvEmpty.setImageResource(R.drawable.ic_money_payment);\n mIvEmpty.setContentDescription(getString(R.string.descr_hand_money_empty));\n mListView.setEmptyView(mEmptyView);\n }",
"public synchronized void discardPage(PageId pid) {\n // some code goes here\n // not necessary for proj1\n }",
"protected boolean skip(Annotation annotation) {\n \t\treturn false;\n \t}",
"@Override\n public FooterAbstractClass getFooter(String FooterType) {\n if(FooterType == null){\n return null;\n }\n if(FooterType.equalsIgnoreCase(\"VipFooter\")){\n return new VipCustFooter();\n } else return null;\n\n }",
"public JQMFooter(String text) {\r\n\t\tsuper(\"footer\", \"jpm4gwt-footer\", text);\r\n\t}",
"private void disableEmptyView() {\n mRecyclerView.setVisibility(View.VISIBLE);\n emptyViewRoot.setVisibility(View.GONE);\n emptyViewBudddyUp.setVisibility(View.GONE);\n emptyViewPickUp.setVisibility(View.GONE);\n emptyViewNoInternet.setVisibility(View.GONE);\n }",
"@Override\n protected View getUpperView() {\n return null;\n }",
"private boolean isLastView(int viewIndex){\r\n\t\treturn viewIndex == this.getChildCount() - 1;\r\n\t}",
"private void addColumnFooter()\n {\n addIndent();\n openEndTag(COLUMN);\n closeTag();\n }",
"protected void enableEmptyViewPolicy() {\n messageListView.setEmptyView(R.layout.empty_view, UltimateRecyclerView.EMPTY_KEEP_HEADER_AND_LOARMORE);\n }",
"public FooterBarBehavior() {\n }",
"public int getFooterLayoutCount() {\n if (mFooterLayout == null || mFooterLayout.getChildCount() == 0) {\n return 0;\n }\n return 1;\n }",
"private void skipHeader() throws IOException {\n // The header contains two dashed lines; the data begins\n // immediately after the second dashed line...\n //\n readToDashedLine();\n readToDashedLine();\n }",
"public void displayNoRoute() {\n\t\tmetaInfo.showInfoWhenNoRouteIsSelected();\n\t\tutilities.removeAllPins();\n\t\tupdateLinesAndGrid();\n\t}",
"private void removeProgressView() {\n if (progressView == null) return;\n\n removeView(progressView);\n TurbolinksLog.d(\"Progress view removed\");\n }",
"@Override\n\tpublic String formatFooter() {\n\t\treturn \"\\n\";\n\t}",
"private static void outputFooter(SimpleWriter out) {\n assert out != null : \"Violation of: out is not null\";\n assert out.isOpen() : \"Violation of: out.is_open\";\n\n out.println(\"</table>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }",
"public JQMFooter(String text) {\n\t\tsuper(\"footer\", \"jpm4gwt-footer\", text);\n\t}",
"protected boolean skipStories() {\n return skip;\n }",
"@Override\n protected boolean isRouteDisplayed() {\n return false;\n }",
"@Override\n protected boolean isRouteDisplayed() {\n return false;\n }",
"@Override\n public void testConsumeFooterLine() {\n }",
"public void onFragmentExited() {\n this.reviewsController.trimToOnePage();\n }",
"public void traverseExcludeSelf(INext<T> next){\n if(next==null){\n return;\n }\n traverse(this,next,false);\n }",
"@Override\n protected boolean evenOutTabs(float amount, boolean allowReverseDirection) {\n return false;\n }",
"private org.gwtbootstrap3.client.ui.PanelFooter get_f_PanelFooter14() {\n return build_f_PanelFooter14();\n }",
"@Override\n\tpublic void onFinishLayout(View lay) {\n\t}",
"private void showBuddyUpEmptyView() {\n mRecyclerView.setVisibility(View.GONE);\n emptyViewRoot.setVisibility(View.VISIBLE);\n emptyViewBudddyUp.setVisibility(View.VISIBLE);\n emptyViewPickUp.setVisibility(View.GONE);\n emptyViewNoInternet.setVisibility(View.GONE);\n }",
"@Override\r\n\tpublic void onClosed() {\n\t\tmSlidingLayer.removeAllViews();\r\n\t}",
"public void skip()\n {\n skip(1);\n }",
"void setFooterMargin(double footermargin);"
] | [
"0.70452696",
"0.6476634",
"0.63636595",
"0.6037999",
"0.58722496",
"0.58348185",
"0.58222574",
"0.5702507",
"0.5692198",
"0.5689213",
"0.5599383",
"0.55380213",
"0.5519456",
"0.5508137",
"0.550582",
"0.5421059",
"0.5382901",
"0.5327264",
"0.53124046",
"0.5301366",
"0.52659136",
"0.5257517",
"0.51346046",
"0.5132699",
"0.5119388",
"0.51175326",
"0.511594",
"0.5084888",
"0.5063849",
"0.50471437",
"0.50288826",
"0.5004684",
"0.49942777",
"0.49770737",
"0.49576998",
"0.49481156",
"0.4934572",
"0.49259487",
"0.49219722",
"0.4919513",
"0.4917388",
"0.49074316",
"0.49073488",
"0.48820978",
"0.48692176",
"0.48638383",
"0.48594236",
"0.48429182",
"0.4841689",
"0.4834818",
"0.4828122",
"0.48241156",
"0.4812612",
"0.4808514",
"0.48056492",
"0.4803283",
"0.47951558",
"0.47921053",
"0.47861728",
"0.47663465",
"0.47640958",
"0.4756156",
"0.47488442",
"0.4748766",
"0.47375485",
"0.47264698",
"0.47245157",
"0.4711363",
"0.4701895",
"0.47009957",
"0.4698511",
"0.46931824",
"0.46892896",
"0.46803308",
"0.46772295",
"0.4656509",
"0.46443823",
"0.46415913",
"0.46407264",
"0.46391284",
"0.46376818",
"0.4635549",
"0.46348804",
"0.4634238",
"0.46290588",
"0.46237916",
"0.46067303",
"0.45933452",
"0.4592711",
"0.45917028",
"0.45917028",
"0.45867932",
"0.45860288",
"0.45853615",
"0.4577985",
"0.45766762",
"0.4571522",
"0.45699885",
"0.45692846",
"0.4567799",
"0.456648"
] | 0.0 | -1 |
/ Author: Ruksina Prommee Author ID: 58160247 Interface: AnnouncementStatusRepository inherited from CrudRepository Module: Announcement Status Last edited: 01/05/2019 | public interface AnnouncementStatusRepository extends CrudRepository<AnnouncementStatus, Integer>{
public AnnouncementStatus findById(int id);
public List<AnnouncementStatus> getAnnouncementStatusById(int id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ShipmentActivityRepository extends JpaRepository<ShipmentActivity, Long> {}",
"@Repository\npublic interface StatusRepository extends IRepository<Status, String> {\n\n}",
"@Repository\npublic interface OnboardingStatusViewRepsitory extends CrudRepository<CandidateInfo,Long> {\n //@Query(\"SELECT c FROM CandidateInfo c WHERE c.onboardingStatus = :id\")\n // @Query(\"SELECT c FROM CandidateInfo c WHERE c.onboardingStatus = :id\")\n @Query(\"SELECT c FROM OnboardingView c left join c.onboardingStatus s WHERE s.aid = :id\")\n List<OnboardingView> findStatus(@Param(\"id\") Long id);\n @Query(\"SELECT c FROM OnboardingView c left join c.onboardingStatus s\")\n List<OnboardingView> findStatusAll();\n\n @Query(\"SELECT o FROM OnboardingSummaryView o left join o.onboardingStatus s left join o.contractInfo c where o.aid =:id\")\n OnboardingSummaryView findStatusSummary(@Param(\"id\") Long id);\n\n\n\n // @Query(\"SELECT o FROM OnboardingView o left join o.onboardingStatus s \")\n // List<OnboardingView> findStatusViewAll();\n}",
"public interface SpringDataJpaOperatorStatusRepository extends OperatorStatusRepository, Repository<OperatorStatus, Integer> {\n}",
"public interface NotificationRepository extends CrudRepository<Notification,String>, NotificationRepositoryAddon {\r\n\r\n Notification findByPublisherIdAndPublisherNotificationId (String publisherId, String publisherNotificationId);\r\n \r\n List<Notification> findByPublisherId (String publisherId);\r\n\r\n List<Notification> findByPublisherIdAndTopic (String publisherId, String topic);\r\n \r\n List<Notification> findDeletableNotification(Date date);\r\n\r\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface InvoiceHistoryRepository extends JpaRepository<InvoiceHistory, Long> {\n}",
"@Repository\npublic interface InvestmentRepository extends JpaRepository<Investment, Integer> {\n\n\n\tpublic List<Investment> findByinvestmentInvestorId(int investorId);\n\n}",
"public interface AuditingRepository extends CrudRepository<AuditingEntity, Long>, JpaSpecificationExecutor<AuditingEntity> {\n}",
"public interface LossRepository extends JpaRepository<Loss,Long> {\n\n}",
"public interface AuditRepository extends PagingAndSortingRepository<Audit, Long>, JpaSpecificationExecutor<Audit> {\n}",
"public interface PlanOrderADao extends CrudRepository<PlanOrderA, Long> {\n\n}",
"public interface CustomerAuditRepository extends JpaRepository<CustomerAudit, Long>{\n\n}",
"public interface RoomBanningRepository extends JpaRepository<RoomBanning, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}",
"public interface ProjectRepository extends BasePagingAndSortingRepository<ProjectEntity, Long> {\n\n boolean changeStatus(ProjectEntity project, StatusEnum newStatus);\n\n List<ProjectEntity> findByOwner(String client);\n\n List<ProjectEntity> findForUser(String client);\n\n List<ProjectEntity> findForMember(Long memberId, String client);\n\n\n}",
"public interface GoalRepository extends JpaRepository<Goal,Long> {\n\n}",
"public interface PresupuestosExpedRepository\nextends CrudRepository<PresupuestosExped, PresupuestosExpedPK>, PresupuestosExpedRepositoryCustom {\n\t/**\n\t * UMESCI-713 Find PresupuestosExped by the parameters\n\t *\n\t * @param numExp\n\t * @param tipMovValue\n\t * @param billStatusActive\n\t * @return\n\t */\n\tPresupuestosExped findPresupuestosExpedByIdNumExpAndTipMovAndEstado(String numExp, String tipMovValue,\n\t\t\tString billStatusActive);\n\n\n}",
"public interface MaintenanceDao extends JpaRepository<Maintenance, Long> {\n}",
"public interface VotedElectionRepository extends CrudRepository<VotedElection, Long> {\n\n}",
"public interface IssueCategoryRepository extends JpaRepository<IssueCategory,Long> {\n}",
"public interface ActionRepository extends JpaRepository<Action, Integer> {\n\n}",
"public interface AggregateCurrentTimeRepository extends CrudRepository<AggregateEntityCurrentTime, Long> {\n}",
"@SuppressWarnings(\"unused\")\npublic interface EventTypeRepository extends JpaRepository<EventType,Long> {\n\n}",
"public interface MeetingRepository extends JpaRepository<Meeting, Long> {\n}",
"public interface PreventiveActionRepository extends CrudRepository<PreventiveAction, Long> {\r\n\r\n}",
"public interface IModeratorProposalRepository extends JpaRepository<ModeratorProposal, Integer> {\n}",
"public interface OrderInvoiceRepository extends Repository<OrderInvoice, Long> {\n\n}",
"public interface GoalLogRepository extends PagingAndSortingRepository<GoalLog, Long>, GoalLogRepositoryCustom {\n\tPage<GoalLog> findAllByStatusIn(List<ContentStatus> statusList, Pageable pageable);\n\n\t@Query(\"From GoalLog n Where :author = n.goal.author\")\n\tList<GoalLog> findAllByAuthor(@Param(\"author\") User author);\n\t\n\t@Query(\"From GoalLog n Where :author = n.goal.author AND n.status In :statusList\")\n\tPage<GoalLog> findAllByAuthorAndStatusIn(@Param(\"author\") User author, @Param(\"statusList\") List<ContentStatus> statusList, Pageable pageable);\n\n\tList<GoalLog> findAllByGoal(Goal goal);\n\n\tPage<GoalLog> findAllByGoalAndStatusIn(Goal goal, List<ContentStatus> statusList, Pageable pageable);\n\n\t// TODO: 여기 한용이는 되는데 나는 안되는곳... 여기하고 GoalLogService의 todo부분\n//\t@Query(\"From GoalLog gl Where gl.goal.id In :goals AND gl.status In :statusList\")\n//\tPage<GoalLog> findComByStatusIn(@Param(\"goals\") List<Long> goals, @Param(\"statusList\") List<ContentStatus> statusList, Pageable pageable);\n\n\t@Query(\"From GoalLog gl Where gl.status In :statusList\")\n\tPage<GoalLog> findComByStatusIn(@Param(\"statusList\") List<ContentStatus> statusList, Pageable pageable);\n\n\t@Query(\"Select count(gl) From GoalLog gl Where :goal = gl.goal AND gl.status In :statusList\")\n\tInteger findNumByGoalAndStatusIn(@Param(\"goal\")Goal goal, @Param(\"statusList\")List<ContentStatus> statusList);\n}",
"public interface ReservationRepository extends CrudRepository<Reservation, Integer> {\n\n}",
"@Repository\npublic interface RepositoryOrgTaskTracker extends JpaRepository<OrgTaskTracker, Integer>{\n}",
"public interface PointsRuleRepository extends BaseRepository<PointsRule, String> {\n\n PointsRule findByOrganizationIdAndStatus(String loginUserFirstOrganizationId, int code);\n}",
"public interface AttachmentRepo extends CrudRepository<Attachment,Long> {\n}",
"public interface SalaryStatusRepository extends CrudRepository<SalaryStatus, Long> {\n\t@Query(\"SELECT count(*) FROM SalaryStatus ss WHERE ss.year=:year and ss.month=:month\")\n\tint isSalaryGenerated(@Param(\"year\") Integer year, @Param(\"month\") Integer month);\n\t\n\tList<SalaryStatus> findAll();\n\t\n\t \n\n}",
"public interface UserBillingRepository extends CrudRepository<UserBilling, Long> {\n\n}",
"@Repository\r\npublic interface AssignmentRepository extends CrudRepository<Assignment, String> {\r\n\r\n}",
"public interface AudienceRepository extends JpaRepository<Audience,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface HrmsActionDisciplinaryRepository extends JpaRepository<HrmsActionDisciplinary, Long> {\n\n}",
"public interface PublisherRepository extends CrudRepository <Publisher, Long> {\n\n}",
"public interface VisitRepository extends CrudRepository<Visit, Long> {\n}",
"public interface HospitalisationRepository extends JpaRepository<Hospitalisation,Long> {\n\n}",
"public interface AdUnitDistrictRepository extends JpaRepository<AdUnitDistrict, Long> {\n\n \n}",
"public interface BookStatusRepository extends JpaRepository<BookStatus, Integer> {\n Optional<BookStatus> findByBookStatusName(BookStatusName bookStatusName);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SuspendedusersRepository extends JpaRepository<Suspendedusers, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ListingMailRepository extends JpaRepository<ListingMail, Long> {}",
"@SuppressWarnings(\"unused\")\npublic interface PleasePayeeAuditRepository extends JpaRepository<PleasePayeeAudit,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface FestivalAllowancePaymentDtlRepository extends JpaRepository<FestivalAllowancePaymentDtl, Long>, JpaSpecificationExecutor<FestivalAllowancePaymentDtl> {\n}",
"public interface IOdgovorRepository extends PagingAndSortingRepository<Odgovor, Long> {\n}",
"@Repository\npublic interface ReasonMissionDeclinedRepository extends CrudRepository<ReasonMissionDeclined, Long>{\n ReasonMissionDeclined findByMissionAndDriver(Mission mission, Driver driver);\n List<ReasonMissionDeclined> findByMission(Mission mission);\n}",
"public interface InstitutePlayGroundInfoRepository extends JpaRepository<InstitutePlayGroundInfo,Long> {\n\n}",
"public interface RunnerRepository extends JpaRepository<Runner,Long> {\n}",
"public interface IVendedor extends JpaRepository<Vendedor, Integer> {\n}",
"public interface RequirementRepository /*extends CrudRepository<Requirement, Long>*/ {\n}",
"public interface BulkRequestItemDetailsRepository extends JpaRepository<BulkRequestItemEntity, Integer> {\n}",
"public interface OfferingRepository extends JpaRepository<Offering, Long>{\r\n\r\n}",
"public interface EvenementRepository extends CrudRepository<Evenement, Integer> {\n\n}",
"public interface DateTrackerRepository extends IRepository<DateTracker,String> {\n Set<DateTracker> getAll();\n}",
"@Repository\npublic interface RedeemRepo extends JpaRepository<Redeem , Long> {\n}",
"public interface SubscriptionRepository extends CrudRepository<Subscription, Long> {\n\n}",
"public interface ManualRepository extends BaseRepository<ManualBo, Long>, ManualRepositoryCustom{\n}",
"public interface UMergeLogRepository extends JpaRepository<UMergeLog,Integer> {\n}",
"public interface AssignmentRepository extends JpaRepository<Assignment, Integer>, JpaSpecificationExecutor<Assignment> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelDressageHisRepository extends JpaRepository<LevelDressageHis, Long> {\n\n}",
"public interface AttachmentRepository extends JpaRepository<Attachment,Long> {\n}",
"public interface FavoriteJourneyRepository extends JpaRepository<FavoriteJourney,Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface HorarioDisponivelRepository extends JpaRepository<HorarioDisponivel, Long> {\n\n}",
"public interface ExpositionRepository extends JpaRepository<Exposition,Long> {\n\n}",
"public interface StepcountRepositroy extends CrudRepository<Stepcount, Integer> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface MWeeklyQuestStageRewardRepository extends JpaRepository<MWeeklyQuestStageReward, Long>, JpaSpecificationExecutor<MWeeklyQuestStageReward> {\n\n}",
"public interface SandboxRepository extends JpaRepository<SandboxEntity, Long> {\n\n}",
"@Repository\npublic interface IPaymentRepository extends JpaRepository<Payment, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CaptureCollegeRepository extends JpaRepository<CaptureCollege, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface RefGeoCommuneRepository extends JpaRepository<RefGeoCommune, Long> {\n}",
"@Repository\npublic interface ReservationRepository extends CrudRepository<Reservation, Long> {\n}",
"@Repository\npublic interface MedicalAidRepository extends JpaRepository<MedicalAid, String> {\n\n}",
"public interface NotificationRepository extends MongoRepository<Notification, String> { }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface TournamentPuttingAnalysisRepository extends JpaRepository<TournamentPuttingAnalysis, Long> {\n\n}",
"public interface PurchaseRecordDetailRepository extends JpaRepository<PurchaseRecordDetail, Long> {\r\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CourrierArriveRepository extends JpaRepository<CourrierArrive, Long> {\n\n}",
"public interface YaOrderRepository extends JpaRepository<YaOrder,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventLoggingRepository extends JpaRepository<EventLogging, Long> {\n}",
"public interface EventRepository extends CrudRepository<EventModel, String> {\n\t\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ClassDurationRepository extends JpaRepository<ClassDuration, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface NotificationRepository extends JpaRepository<NotificationEntity, Long> {\n\n Page<NotificationEntity> findByStatus(NotificationStatus status, Pageable pageable);\n\n Page<NotificationEntity> findByChannel(NotificationChannel channel, Pageable page);\n\n Page<NotificationEntity> findByEvent(String event, Pageable page);\n\n Page<NotificationEntity> findByChannelAndStatus(NotificationChannel channel, NotificationStatus status, Pageable pageable);\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface AbilityRepository extends AbilityRepositoryQuery, JpaRepository<Ability, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DefAnswerRepository extends JpaRepository<DefAnswer, Long> {\n\n}",
"public interface StudioRepository extends CrudRepository<Studio, Long> {\n}",
"@Repository\npublic interface InspectionOptionRepository extends JpaRepository<InspectionOption, Integer> {\n\n}",
"public interface TypeTreatmentPlanStatusesService {\n\n /**\n * Save a typeTreatmentPlanStatuses.\n *\n * @param typeTreatmentPlanStatuses the entity to save\n * @return the persisted entity\n */\n TypeTreatmentPlanStatuses save(TypeTreatmentPlanStatuses typeTreatmentPlanStatuses);\n\n /**\n * Get all the typeTreatmentPlanStatuses.\n * \n * @return the list of entities\n */\n List<TypeTreatmentPlanStatuses> findAll();\n\n /**\n * Get the \"id\" typeTreatmentPlanStatuses.\n *\n * @param id the id of the entity\n * @return the entity\n */\n TypeTreatmentPlanStatuses findOne(Long id);\n\n /**\n * Delete the \"id\" typeTreatmentPlanStatuses.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n * Search for the typeTreatmentPlanStatuses corresponding to the query.\n *\n * @param query the query of the search\n * \n * @return the list of entities\n */\n List<TypeTreatmentPlanStatuses> search(String query);\n}",
"@Repository\npublic interface AlliesRepository extends CrudRepository<AlliesDO, Long> {\n\n}",
"@Repository(\"CatchedRequestRepo\")\npublic interface CatchedRequestRepo extends JpaRepository<CatchedRequest,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface MembershipRepository extends JpaRepository<Membership, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DisabilityTypeRepository extends JpaRepository<DisabilityType, Long>, JpaSpecificationExecutor<DisabilityType> {\n}",
"public interface DeliveryDAO extends CrudRepository<Delivery, Long> {\n}",
"public interface IEventoRepository extends IRepositoryBase<Evento> {\n}",
"public interface InviteRepository extends Repository<Invite> {\n}",
"public interface AdCreativeRespository extends JpaRepository<AdCreative,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface VisiteurRepository extends JpaRepository<Visiteur, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface BookingtimeRepository extends JpaRepository<Bookingtime, Long>, JpaSpecificationExecutor<Bookingtime> {}",
"public interface PaymentContextRepository extends CrudRepository<PaymentContext, Long> {\n\n}",
"public interface BoulderRepository extends CrudRepository<Boulder, Long> {\n}"
] | [
"0.7094408",
"0.70761526",
"0.70692444",
"0.70496225",
"0.7016939",
"0.69627535",
"0.6944401",
"0.69063306",
"0.6894715",
"0.68571407",
"0.6812319",
"0.6808192",
"0.68047035",
"0.680084",
"0.679159",
"0.67849356",
"0.6780604",
"0.676152",
"0.6757873",
"0.67332256",
"0.67286116",
"0.6706126",
"0.6704862",
"0.66686237",
"0.6668481",
"0.66673094",
"0.66508335",
"0.6631557",
"0.66180456",
"0.6610151",
"0.6605316",
"0.66043574",
"0.6604183",
"0.6603529",
"0.6597742",
"0.65944177",
"0.6590606",
"0.6573979",
"0.6573116",
"0.6572802",
"0.6563569",
"0.6562922",
"0.6541517",
"0.6524995",
"0.65235275",
"0.6521377",
"0.65186894",
"0.6517012",
"0.6510874",
"0.65101343",
"0.64996725",
"0.6497829",
"0.64954937",
"0.64860326",
"0.64812505",
"0.64799434",
"0.6472688",
"0.64713943",
"0.6469634",
"0.64687437",
"0.6467725",
"0.64635986",
"0.645884",
"0.64561504",
"0.64486015",
"0.64468986",
"0.64438516",
"0.6440487",
"0.64384836",
"0.6438393",
"0.6426653",
"0.6425526",
"0.6423276",
"0.642237",
"0.6421627",
"0.64211243",
"0.6420025",
"0.6417998",
"0.6415399",
"0.64113003",
"0.64103353",
"0.64089787",
"0.6408065",
"0.6406091",
"0.64056015",
"0.6403636",
"0.6399061",
"0.639804",
"0.6394815",
"0.63944024",
"0.6389882",
"0.63879895",
"0.6387278",
"0.6375623",
"0.6374666",
"0.63745046",
"0.63741946",
"0.6372913",
"0.6371972",
"0.63713247"
] | 0.8399662 | 0 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// This servlet shouldn't be reached via GET
response.sendRedirect("index.jsp");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}",
"void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}",
"public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }",
"public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}",
"@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}",
"public Result get(Get get) throws IOException;",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }",
"@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }",
"@Override\npublic void get(String url) {\n\t\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}",
"@NonNull\n public String getAction() {\n return \"GET\";\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }",
"@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }",
"@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }",
"public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }",
"public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}",
"@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}",
"public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}",
"public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}",
"private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }",
"HttpGet getRequest(HttpServletRequest request, String address) throws IOException;",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }",
"@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}",
"private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}"
] | [
"0.7589609",
"0.71665615",
"0.71148175",
"0.705623",
"0.7030174",
"0.70291144",
"0.6995984",
"0.697576",
"0.68883485",
"0.6873811",
"0.6853569",
"0.6843572",
"0.6843572",
"0.6835363",
"0.6835363",
"0.6835363",
"0.68195957",
"0.6817864",
"0.6797789",
"0.67810035",
"0.6761234",
"0.6754993",
"0.6754993",
"0.67394847",
"0.6719924",
"0.6716244",
"0.67054695",
"0.67054695",
"0.67012346",
"0.6684415",
"0.6676695",
"0.6675696",
"0.6675696",
"0.66747975",
"0.66747975",
"0.6669016",
"0.66621476",
"0.66621476",
"0.66476154",
"0.66365504",
"0.6615004",
"0.66130257",
"0.6604073",
"0.6570195",
"0.6551141",
"0.65378064",
"0.6536579",
"0.65357745",
"0.64957607",
"0.64672184",
"0.6453189",
"0.6450501",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.64067316",
"0.6395873",
"0.6379907",
"0.63737476",
"0.636021",
"0.6356937",
"0.63410467",
"0.6309468",
"0.630619",
"0.630263",
"0.63014317",
"0.6283933",
"0.62738425",
"0.62680805",
"0.62585783",
"0.62553537",
"0.6249043",
"0.62457556",
"0.6239428",
"0.6239428",
"0.62376446",
"0.62359244",
"0.6215947",
"0.62125194",
"0.6207376",
"0.62067443",
"0.6204527",
"0.6200444",
"0.6199078",
"0.61876005",
"0.6182614",
"0.61762017",
"0.61755335",
"0.61716276",
"0.6170575",
"0.6170397",
"0.616901"
] | 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// Item searched
String term = request.getParameter("term");
int type, pricefilter, order;
try {
// 0 Restaurant, 1 City, 2 Region
type = Integer.parseInt(request.getParameter("type"));
// 0 All, 1 €, 2 €€, 3 €€€
pricefilter = Integer.parseInt(request.getParameter("pricefilter"));
// 1 Raking, 2 Alphabetical, 3 Price
order = Integer.parseInt(request.getParameter("order"));
} catch (NumberFormatException e){
response.sendRedirect("index.jsp");
return;
}
// If null is searched, redirects
if(term == null){
response.sendRedirect("index.jsp");
return;
}
// Term searched must be at least 3 characters long
if(term.length() < 3){
// Input too short
response.sendRedirect("index.jsp?alert=1");
return;
}
// Character which must not be searched
if(term.toLowerCase().contains("%") || term.toLowerCase().contains("[") || term.toLowerCase().contains("]") ||
term.toLowerCase().contains("^")){
response.sendRedirect("index.jsp");
return;
}
// List of results depending on the filtering
ArrayList<SearchResult> results = null;
switch (type){
case 0:
results = dbmanager.getRestaurants(term, pricefilter, order);
break;
case 1:
results = dbmanager.getRestaurantsByCity(term, pricefilter, order);
break;
case 2:
results = dbmanager.getRestaurantsByRegion(term, pricefilter, order);
break;
default:
}
if(results == null){
response.sendRedirect("index.jsp");
}else{
request.setAttribute("results", results);
request.setAttribute("type", type);
request.setAttribute("term", term);
request.setAttribute("pricefilter", pricefilter);
request.setAttribute("order", order);
getServletContext().getRequestDispatcher("/searchResults.jsp").forward(request, response);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public String post();",
"@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }",
"protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }",
"public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}",
"public void postData() {\n\n\t}",
"@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public abstract boolean handlePost(FORM form, BindException errors) throws Exception;",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}",
"public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}",
"@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }",
"protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}",
"public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }",
"@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}",
"private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
] | [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197",
"0.6515622",
"0.6513045",
"0.6512626",
"0.6492367",
"0.64817846",
"0.6477479",
"0.64725804",
"0.6472099",
"0.6469389",
"0.6456206",
"0.6452577",
"0.6452577",
"0.6452577",
"0.6450273",
"0.6450273",
"0.6438126",
"0.6437522",
"0.64339423",
"0.64253825",
"0.6422238",
"0.6420897",
"0.6420897",
"0.6420897",
"0.6407662",
"0.64041835",
"0.64041835",
"0.639631",
"0.6395677",
"0.6354875",
"0.63334197",
"0.6324263",
"0.62959254",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6280875",
"0.6272104",
"0.6272104",
"0.62711537",
"0.62616795",
"0.62544584",
"0.6251865",
"0.62274224",
"0.6214439",
"0.62137586",
"0.621211",
"0.620854",
"0.62023044",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61638993",
"0.61603814",
"0.6148914",
"0.61465937",
"0.61465937",
"0.614548",
"0.6141879",
"0.6136717",
"0.61313903",
"0.61300284",
"0.6124381",
"0.6118381",
"0.6118128",
"0.61063534",
"0.60992104",
"0.6098801",
"0.6096766"
] | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Manages searches";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }",
"@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }"
] | [
"0.8763708",
"0.8732414",
"0.8732414",
"0.8732414",
"0.8732414",
"0.8732414",
"0.8732414",
"0.8732414",
"0.8732414",
"0.8732414",
"0.8732414",
"0.86993164",
"0.86993164",
"0.86993164",
"0.86993164",
"0.86993164",
"0.86993164",
"0.85319316",
"0.85319316",
"0.85287464",
"0.85287464",
"0.85287464",
"0.85282564",
"0.85282564",
"0.85282564",
"0.85282564",
"0.85282564",
"0.85282564",
"0.85176504",
"0.8512932",
"0.85120165",
"0.85110646",
"0.8497134",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235",
"0.8493235"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onStatusChanged(String provider, int status, Bundle extras) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Toast.makeText(this, "Enabled new provider " + provider, Toast.LENGTH_SHORT).show(); | @Override
public void onProviderEnabled(String provider) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t Toast.makeText(this, \"Enabled new provider \" + provider, Toast.LENGTH_SHORT).show();\n\t\t\n\t}",
"public void onProviderEnabled(String provider) {\n mensaje1.setText(\"GPS Activado\");\n }",
"public void onProviderEnabled(String provider) {\n\n\n\n }",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t Toast.makeText(this, \"Disabled provider \" + provider, Toast.LENGTH_SHORT).show();\n\t\t\n\t}",
"public void onProviderEnabled(String provider) {\n Log.i(getResources().getString(R.string.app_name), \"provider enabled : \" + provider);\n }",
"public void onProviderEnabled(String provider) {\n\t\t\t\tToast.makeText( getApplicationContext(),\"Gps Enable\",Toast.LENGTH_SHORT ).show();\n\t\t\t\t\n\t\t\t}",
"public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n Utils.debugLogging(getApplicationContext(), provider + \" has been enabled\");\n\n }",
"public void onProviderEnabled(String provider) {\n\t }",
"public void onProviderEnabled(String provider) {}",
"@Override\n\tpublic void onProviderEnabled(String provider){\n\t\tLog.d(\"gps\",\"Provider ON\");\n\t}",
"@Override\n public void onProviderEnabled(@NonNull String provider) {\n // By default do nothing but log\n Log.i(TAG, \"Provider (\" + provider + \") has been enabled\");\n }",
"public void onProviderEnabled(String provider) {\n \toutputWindow.append(\"\\n onProviderEnabled\" + provider);\n }",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\tSystem.out.println(\"Provider enabled \" + provider);\n\t\t}",
"@Override\r\n public void onProviderEnabled(String provider) {\n\r\n }",
"@Override\n \tpublic void onProviderEnabled(String provider) {\n \n \t}",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"public void onProviderEnabled(String provider) {\n\t\t\n\t}",
"@Override\npublic void onProviderEnabled(String provider) {\n\n}",
"@Override\n public void onProviderEnabled(String arg0) {\n\n }",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t\n\t}",
"public void onProviderEnabled(String provider)\n {\n }",
"@Override\n public void onProviderEnabled(String s) {\n }",
"@Override\n public void onProviderEnabled(String s) {\n }",
"public void onProviderEnabled(String provider) {\n }",
"public void onProviderEnabled(String provider) {\n }",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\n\t}",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\n\t}",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\n\t}",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\n\t}",
"@Override\r\n\t\t\tpublic void onProviderEnabled(String provider) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onProviderEnabled(String provider) {\n\r\n\t\t\t}",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\t}",
"@Override\n\tpublic void onProviderEnabled(String provider)\n\t{\n\t}",
"@Override\r\n\tpublic void onProviderEnabled(String provider) {\n\t}",
"@Override\r\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\t\n\t\t\t}",
"public void onProviderEnabled(String provider) {\n\t\t}",
"public void onProviderEnabled(String provider) {\n\t\t}",
"public void onProviderEnabled(String provider) {\n\t\t\t}",
"@Override\r\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\r\n\t\t}",
"@Override\n \t\tpublic void onProviderEnabled(String provider) {\n \t\t\t\n \t\t}",
"@Override\r\n\t\tpublic void onProviderEnabled(String provider)\r\n\t\t{\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void onProviderEnabled(String arg0) {\n\r\n\t}",
"@Override\n \t\tpublic void onProviderEnabled(String provider) {\n \t\t}",
"public void onProviderEnabled(String arg0) {\n\n\t}",
"@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n textBox.append(\"Provider Disabled\\n\");\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"public void onProviderEnabled(String provider) {\n\n\t\t\t\t}",
"@Override\r\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void onProviderEnabled(String arg0) {\n\n\t}",
"public void onProviderDisabled(String provider) {\n\t\t\tif(provider.equals(LocationManager.NETWORK_PROVIDER)){\n\t\t\t\tlm.removeUpdates(listener);\n\t\t\t\tToast.makeText(Splash.this, \"pleace cek your internet connection and try again\", Toast.LENGTH_SHORT).show();\n\t\t\t\tSplash.this.finish();\n\t\t\t}\n\t\t\tlm.removeUpdates(listener);\n\t\t\tnew AlertDialog.Builder(Splash.this)\n\t\t\t.setTitle(\"Question..!!\")\n\t\t\t.setMessage(\"your GPS provider is disable, what do you want to do..?\")\n\t\t\t.setCancelable(false)\n\t\t\t.setNegativeButton(\"exit\", new OnClickListener() {\n\t\t\t\t\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSplash.this.finish();\n\t\t\t\t}\n\t\t\t})\n\t\t\t.setPositiveButton(\"Use Network Provider\", new OnClickListener() {\n\t\t\t\t\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSplash.this.provider = LocationManager.NETWORK_PROVIDER;\n\t\t\t\t\tlm.requestLocationUpdates(Splash.this.provider, 1000, 1, listener);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.setNeutralButton(\"Try again\", new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSplash.this.provider = LocationManager.GPS_PROVIDER;\n\t\t\t\t\tlm.requestLocationUpdates(Splash.this.provider, 1000, 1, listener);\n\t\t\t\t}\n\t\t\t}).show();\n\t\t\t\n\t\t\t\n\t\t}",
"public void onProviderEnabled(String provider) {\n Log.i(TAG, \"Provider \" + provider + \" enabled.\");\n // No need to notify the native side. It's enough to start sending\n // valid position fixes again.\n }",
"public void onProviderDisabled(String provider) {\n mensaje1.setText(\"GPS Desactivado\");\n\n }",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\n\t\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\n\t\t}",
"public void onProviderEnabled(String provider) {\n\t\t\tsendGPS(locationManager.getLastKnownLocation(provider));\r\n\t\t}",
"public void onProviderEnabled(String provider) {\r\n controller.onProviderEnabled(provider);\r\n }",
"@Override\n\t\t\tpublic void onProviderEnabled(String arg0) {\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onProviderEnabled(String provider)\n\t\t\t\t\t{\n\n\t\t\t\t\t}",
"@Override\n\t public void onProviderEnabled(String provider)\n\t {\n\t \n\t }",
"@Override\n\tpublic void onStatusChanged(String provider, int status,Bundle extras){\n\t\tLog.i(\"gps\", \"Provider Status: \" + status);\n\t}",
"public void onProviderEnabled(String provider) {\n // ignore\n }",
"@Override\n public void onStatusChanged(String provider, int status, Bundle extras) {\n/* if (provider.equals(LocationManager.GPS_PROVIDER)) {\n tvStatusGPS.setText(\"Status: \" + String.valueOf(status));\n } else if (provider.equals(LocationManager.NETWORK_PROVIDER)) {\n tvStatusNet.setText(\"Status: \" + String.valueOf(status));\n }*/\n }",
"@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }",
"@Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\r\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }",
"private void onProviderInstallerNotAvailable() {\n Toast.makeText(this, \"Unable to update your security settings and SSL security may not avialble\", Toast.LENGTH_SHORT).show();\n }",
"@Override\npublic void onStatusChanged(String provider, int status, Bundle extras) {\n\n}",
"@Override\n\tpublic void onEnabled(Context context) {\n\t\tsuper.onEnabled(context);\n\t\tLog.d(LOG_TAG, \"Widget Provider enabled\");\n\t}",
"@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\tsetGpsEnabled();\n\t\t\t// SmIcLog.e(TAG, \"Location ProviderEnabled:\" + provider);\n\t\t}",
"public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }"
] | [
"0.84469754",
"0.7977338",
"0.7456636",
"0.7429256",
"0.73777235",
"0.73544186",
"0.727359",
"0.7208598",
"0.71900076",
"0.71382695",
"0.7113249",
"0.7102756",
"0.70661086",
"0.7030351",
"0.7027694",
"0.70252615",
"0.7003296",
"0.7003296",
"0.7003296",
"0.7003296",
"0.6975896",
"0.6975896",
"0.6975896",
"0.6974341",
"0.6957208",
"0.6949335",
"0.6931905",
"0.6931905",
"0.6931905",
"0.6931243",
"0.6911258",
"0.6911258",
"0.6895916",
"0.6895916",
"0.6882731",
"0.6882731",
"0.6882731",
"0.6882731",
"0.6866103",
"0.6866103",
"0.68637604",
"0.68580407",
"0.6853768",
"0.68480253",
"0.68455726",
"0.6841184",
"0.6841184",
"0.6841184",
"0.6841184",
"0.6841184",
"0.6841184",
"0.6841184",
"0.6841184",
"0.6840398",
"0.6794518",
"0.6794518",
"0.67936814",
"0.6792084",
"0.67907166",
"0.6789962",
"0.6786984",
"0.6775199",
"0.6769987",
"0.67679703",
"0.67679703",
"0.67679703",
"0.67578965",
"0.67578965",
"0.67570657",
"0.6752947",
"0.6752947",
"0.6752947",
"0.6748986",
"0.6725724",
"0.6725259",
"0.6709671",
"0.6651588",
"0.66515666",
"0.6629077",
"0.6629077",
"0.6603058",
"0.6576323",
"0.65699494",
"0.6558726",
"0.65569675",
"0.64601445",
"0.6450111",
"0.64178175",
"0.6405144",
"0.636445",
"0.6320327",
"0.63093853",
"0.630704",
"0.6301344",
"0.6297629",
"0.6278768"
] | 0.6902924 | 35 |
Toast.makeText(this, "Disabled provider " + provider, Toast.LENGTH_SHORT).show(); | @Override
public void onProviderDisabled(String provider) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t Toast.makeText(this, \"Disabled provider \" + provider, Toast.LENGTH_SHORT).show();\n\t\t\n\t}",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\t\t Toast.makeText(this, \"Enabled new provider \" + provider, Toast.LENGTH_SHORT).show();\n\t\t\n\t}",
"public void onProviderDisabled(String provider) {\n mensaje1.setText(\"GPS Desactivado\");\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n textBox.append(\"Provider Disabled\\n\");\n }",
"public void onProviderDisabled(String provider) {\n\n\n\n }",
"public void onProviderEnabled(String provider) {\n mensaje1.setText(\"GPS Activado\");\n }",
"public void onProviderEnabled(String provider) {\n\n\n\n }",
"public void onProviderDisabled(String provider) {\n Log.i(getResources().getString(R.string.app_name), \"provider disabled : \" + provider);\n }",
"@Override\n public void onProviderDisabled(@NonNull String provider) {\n // By default do nothing but log\n Log.i(TAG, \"Provider (\" + provider + \") has been disabled\");\n }",
"public void onProviderDisabled(String provider) {\n\n }",
"public void onProviderDisabled(String provider) {\n\t\t\t\tToast.makeText( getApplicationContext(),\"Gps Disabled\",Toast.LENGTH_SHORT ).show();\n\t\t\t\t\n\t\t\t}",
"@Override\r\n public void onProviderDisabled(String provider) {\n\r\n }",
"public void onProviderDisabled(String provider) {\n\t\t\tif(provider.equals(LocationManager.NETWORK_PROVIDER)){\n\t\t\t\tlm.removeUpdates(listener);\n\t\t\t\tToast.makeText(Splash.this, \"pleace cek your internet connection and try again\", Toast.LENGTH_SHORT).show();\n\t\t\t\tSplash.this.finish();\n\t\t\t}\n\t\t\tlm.removeUpdates(listener);\n\t\t\tnew AlertDialog.Builder(Splash.this)\n\t\t\t.setTitle(\"Question..!!\")\n\t\t\t.setMessage(\"your GPS provider is disable, what do you want to do..?\")\n\t\t\t.setCancelable(false)\n\t\t\t.setNegativeButton(\"exit\", new OnClickListener() {\n\t\t\t\t\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSplash.this.finish();\n\t\t\t\t}\n\t\t\t})\n\t\t\t.setPositiveButton(\"Use Network Provider\", new OnClickListener() {\n\t\t\t\t\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSplash.this.provider = LocationManager.NETWORK_PROVIDER;\n\t\t\t\t\tlm.requestLocationUpdates(Splash.this.provider, 1000, 1, listener);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.setNeutralButton(\"Try again\", new DialogInterface.OnClickListener() {\n\t\t\t\t\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSplash.this.provider = LocationManager.GPS_PROVIDER;\n\t\t\t\t\tlm.requestLocationUpdates(Splash.this.provider, 1000, 1, listener);\n\t\t\t\t}\n\t\t\t}).show();\n\t\t\t\n\t\t\t\n\t\t}",
"@Override\npublic void onProviderDisabled(String provider) {\n\n}",
"@Override \n public void onProviderDisabled(String provider) { \n }",
"@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\tSystem.out.println(\"Provider disabled \" + provider);\n\t\t}",
"@Override\n \tpublic void onProviderDisabled(String provider) {\n \n \t}",
"@Override\n\tpublic void onProviderDisabled(String provider){\n\t\tLog.d(\"gps\",\"Provider OFF\");\n\t}",
"public void onProviderDisabled(String provider) {\n\t }",
"public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String arg0) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String s) {\n }",
"@Override\n public void onProviderDisabled(String s) {\n }",
"public void onProviderDisabled(String provider) {\n \n \t}",
"@Override\n public void onProviderEnabled(@NonNull String provider) {\n // By default do nothing but log\n Log.i(TAG, \"Provider (\" + provider + \") has been enabled\");\n }",
"@Override\r\n public void onProviderEnabled(String provider) {\n\r\n }",
"public void onProviderDisabled(String provider) {\n\r\n\t\t}",
"public void onProviderEnabled(String provider) {}",
"public void onProviderEnabled(String provider) {\n\t }",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t\n\t}",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\npublic void onProviderEnabled(String provider) {\n\n}",
"public void onProviderEnabled(String provider) {\n Log.i(getResources().getString(R.string.app_name), \"provider enabled : \" + provider);\n }",
"@Override\r\n public void onProviderDisabled(String provider) {\n }",
"@Override\r\n\tpublic void onProviderDisabled(String arg0) {\n\r\n\t}",
"public void onProviderDisabled(String provider) {\n \toutputWindow.append(\"\\n onProviderDisabled\" + provider);\n }",
"@Override\n public void onProviderEnabled(String arg0) {\n\n }",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\n\t}",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\n\t}",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\n\t}",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\n\t}",
"@Override\n public void onProviderEnabled(String s) {\n }",
"@Override\n public void onProviderEnabled(String s) {\n }",
"@Override\r\n\t\t\tpublic void onProviderDisabled(String provider) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onProviderDisabled(String provider) {\n\r\n\t\t\t}",
"public void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"public void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"public void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void onProviderDisabled(String provider) {\n\t}",
"@Override\n\tpublic void onProviderDisabled(String arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderDisabled(String arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderDisabled(String arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderDisabled(String provider)\n\t{\n\t}",
"@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}",
"@Override\n \tpublic void onProviderEnabled(String provider) {\n \n \t}",
"public void onProviderDisabled(String provider) {\n\t\t\n\t}",
"public void onProviderDisabled(String provider) {\n Log.i(TAG, \"Provider \" + provider + \" disabled.\");\n nativeProviderError(true, nativeObject);\n }",
"@Override\n \t\tpublic void onProviderDisabled(String provider) {\n \t\t\t\n \t\t}",
"@Override\r\n\tpublic void onProviderDisabled(String provider) {\n\t\r\n\t}",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n\t\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void onProviderDisabled(String arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void onProviderDisabled(String arg0) {\n\n\t}",
"public void onProviderEnabled(String provider) {\n\t\t\t\tToast.makeText( getApplicationContext(),\"Gps Enable\",Toast.LENGTH_SHORT ).show();\n\t\t\t\t\n\t\t\t}",
"@Override\n \t\tpublic void onProviderDisabled(String provider) {\n \t\t}",
"public void onProviderDisabled(String provider)\n {\n }",
"@Override\r\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\r\n\t\t}",
"@Override\r\n public void onProviderEnabled(String provider) {\n }",
"@Override\r\n\t\tpublic void onProviderDisabled(String provider)\r\n\t\t{\n\t\t\t\r\n\t\t}",
"@Override\n public void onProviderEnabled(String provider) {\n Utils.debugLogging(getApplicationContext(), provider + \" has been enabled\");\n\n }",
"public void onProviderDisabled(String arg0) {\n\n\t}",
"public void onProviderDisabled(String provider) {\n }",
"public void onProviderDisabled(String provider) {\n }",
"@Override\n public void onProviderDisabled(String provider) {\n }",
"@Override\n public void onProviderDisabled(String provider) {\n }",
"@Override\n public void onProviderDisabled(String provider) {\n }"
] | [
"0.86208713",
"0.80567604",
"0.77988684",
"0.7796418",
"0.7648241",
"0.75064087",
"0.74649966",
"0.74610734",
"0.7437391",
"0.7393686",
"0.73824775",
"0.73759633",
"0.737568",
"0.73555404",
"0.73382974",
"0.73090386",
"0.72749496",
"0.7271406",
"0.7269877",
"0.7263904",
"0.72439605",
"0.7235545",
"0.7235545",
"0.7235545",
"0.7235545",
"0.7235545",
"0.7215492",
"0.7215492",
"0.71706533",
"0.7162022",
"0.7161057",
"0.71603775",
"0.7142497",
"0.713349",
"0.71283835",
"0.71283835",
"0.71283835",
"0.7121306",
"0.7121306",
"0.7121306",
"0.7121306",
"0.7110094",
"0.7105689",
"0.71022254",
"0.7101851",
"0.71011835",
"0.7099247",
"0.708601",
"0.708601",
"0.708601",
"0.708601",
"0.7073808",
"0.7073808",
"0.70709836",
"0.70709836",
"0.706732",
"0.706732",
"0.706732",
"0.7063796",
"0.70634335",
"0.70634335",
"0.70634335",
"0.70542026",
"0.7050367",
"0.7050367",
"0.7050367",
"0.7050367",
"0.7050367",
"0.7050367",
"0.7050367",
"0.70474094",
"0.70461804",
"0.7043672",
"0.7032886",
"0.70302284",
"0.7028159",
"0.7028159",
"0.7028159",
"0.7028159",
"0.7028159",
"0.7027707",
"0.7023458",
"0.7018093",
"0.70168364",
"0.7007156",
"0.6985401",
"0.69767565",
"0.69750696",
"0.6963981",
"0.6951925",
"0.69466347",
"0.69456977",
"0.69456977",
"0.6943847",
"0.6943847",
"0.6943847"
] | 0.7121445 | 40 |
Created by hansen on 3/22/17. | public interface IMyMap<Key,Value> {
Value getValue(Key key);
void put(Key key, Value value);
int size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void init() {}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n void init() {\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override public int describeContents() { return 0; }",
"public void method_4270() {}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void mo4359a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n protected void getExras() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"public void m23075a() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\n public void init() {\n }",
"private void strin() {\n\n\t}",
"@Override\n public int getSize() {\n return 1;\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public abstract void mo70713b();",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }"
] | [
"0.5866501",
"0.57874084",
"0.57142293",
"0.5711072",
"0.5690577",
"0.5687108",
"0.5600822",
"0.5600822",
"0.5596128",
"0.55951124",
"0.5580224",
"0.553715",
"0.5532288",
"0.5532288",
"0.5532288",
"0.5532288",
"0.5532288",
"0.5519397",
"0.5519363",
"0.5509221",
"0.5506986",
"0.54971147",
"0.54882544",
"0.5485162",
"0.546716",
"0.54584485",
"0.54584485",
"0.5453582",
"0.54505485",
"0.5448282",
"0.5440487",
"0.54341954",
"0.5428815",
"0.5426628",
"0.541429",
"0.5407886",
"0.54053754",
"0.54053754",
"0.54053754",
"0.54053754",
"0.54053754",
"0.54053754",
"0.54030234",
"0.5390372",
"0.53896374",
"0.53770775",
"0.5375972",
"0.53675944",
"0.5365694",
"0.5363268",
"0.5363268",
"0.5363268",
"0.5358322",
"0.53464955",
"0.53464955",
"0.53464955",
"0.5342369",
"0.5339784",
"0.5339165",
"0.5333654",
"0.53263575",
"0.53263575",
"0.53263575",
"0.5325142",
"0.53204167",
"0.53204167",
"0.5318096",
"0.5313595",
"0.52863353",
"0.5280587",
"0.5280004",
"0.52797",
"0.52758074",
"0.5267406",
"0.5253515",
"0.5248361",
"0.52467287",
"0.52467287",
"0.52380186",
"0.5237701",
"0.52376854",
"0.5237092",
"0.5235062",
"0.52286524",
"0.521333",
"0.521195",
"0.5207039",
"0.52020854",
"0.52010685",
"0.5188673",
"0.51793",
"0.51793",
"0.51793",
"0.5178962",
"0.5177347",
"0.5177347",
"0.5177347",
"0.5177347",
"0.5177347",
"0.5177347",
"0.5177347"
] | 0.0 | -1 |
Initialize the home screen with the correct values. | @FXML
public void initialize() throws Exception {
trigger = true; // Indicate the screen welcome had been opened once
season = GameEngine.getInstance().getSeason();
Team playerTeam = season.getPlayerControlledTeam();
teamName.setText(playerTeam.getName());
engineName.setText(playerTeam.getEngine().getName());
firstDriverName.setText(playerTeam.getFirstDriver().getName());
secondDriverName.setText(playerTeam.getSecondDriver().getName());
strategistName.setText(playerTeam.getStrategist().getName());
aerodynamicistName.setText(playerTeam.getAerodynamicist().getName());
mechanicName.setText(playerTeam.getMechanic().getName());
nextCircuit.setText(season.getCurrentRound().getTrackName());
currentBudget.setText(playerTeam.getBudgetString());
int roundNum = season.getRoundInt() + 1;
round.setText("Round " + roundNum);
Media media = new Media(getClass().getResource("/media/video/australia.mp4").toURI().toString());
MediaPlayer mediaPlayer = new MediaPlayer(media);
mediaPlayer.setMute(true);
mediaPlayer.setCycleCount(MediaPlayer.INDEFINITE);
mediaPlayer.play();
mediaView.setMediaPlayer(mediaPlayer);
mediaView.setFitHeight(1080);
mediaView.setFitWidth(1920);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HomeScreen() {\n initComponents();\n }",
"public homeScreen() throws Exception {\n\t\tinitialize();\n\t}",
"public void initialize(){\n\t screens.put(ScreenType.Game, new GameScreen(this));\n screens.put(ScreenType.Menu, new MenuScreen(this));\n }",
"public Home() {\n initComponents();\n ShowLauncher();\n }",
"private void initialScreen() {\r\n\t\t// Clear the screen\r\n\t\tclear();\r\n\r\n\t\t// Place four asteroids\r\n\t\tplaceAsteroids();\r\n\r\n\t\t// Place the ship\r\n\t\tplaceShip();\r\n\r\n\t\t// Reset statistics\r\n\t\tlives = 3;\r\n\t\tdisplay.setLives(lives);\r\n\t\tnumLevel = 1;\r\n\t\tdisplay.setLevel(numLevel);\r\n\t\tdisplay.setScore(0);\r\n\t\tspeed = 3;\r\n\r\n\t\t// Start listening to events\r\n\t\tdisplay.removeKeyListener(this);\r\n\t\tdisplay.addKeyListener(this);\r\n\r\n\t\t// Give focus to the game screen\r\n\t\tdisplay.requestFocusInWindow();\r\n\t}",
"public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}",
"private void prepareAndShowHomeScreen() {\n\t\tFraHeader header = FraHeader.newInstance(true);\n\t\theader.showBackButton(false);\n\t\tFraHomeContent homeContent = FraHomeContent.newInstance();\n\t\tFraFooter footer = FraFooter.newInstance(FooterIcons.TOP10);\n\t\tFraSearch search = FraSearch.newInstance();\n\t\tFraFont font = FraFont.newInstance();\n\t\tFraShare share = FraShare.newInstance();\n\n\t\treplaceScreenWithNavBarContentAndMenu(header, FraHeader.TAG,\n\t\t\t\thomeContent, FraHomeContent.TAG, footer, FraFooter.TAG,\n\t\t\t\tFraMenu.newInstance(), FraMenu.TAG, search, FraSearch.TAG,\n\t\t\t\tfont, FraFont.TAG, share, FraShare.TAG, false);\n\t\tprepareAndShowHomeScreen(false);\n\t\t/*\n\t\t * replaceScreenWithNavBarContentAndFooter(homeContent,\n\t\t * FraHomeContent.TAG, footer, FraFooter.TAG, false);\n\t\t */\n\t}",
"public MainScreen() {\n initComponents();\n \n }",
"public HomePanel() {\r\n\t\tinitialisation();\r\n initComponents();\r\n\t\tpostInit();\r\n }",
"public Home() {\n initComponents();\n setTitle(\"Home\");\n setResizable(false);\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\n adminButton.setVisible(Login.isAdmin());\n\n String info = null;\n try {\n info = DataBase.showAccDet(Login.getIDAcc());\n } catch (SQLException ex) {\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\n }\n String[] cuv = info.split(\" \");\n welcomeLabel.setText(\"Welcome back, \" + cuv[1] + \"!\");\n\n }",
"public HomeScreen() {\n initComponents();\n pnlInicio.setVisible(true);\n pnlConselhos.setVisible(false);\n pnlDisciplinas.setVisible(false);\n pnlProfessores.setVisible(false);\n pnlAlunos.setVisible(false);\n pnlResponsaveis.setVisible(false);\n pnlCoordenadores.setVisible(false);\n pnlCursos.setVisible(false);\n pnlEtapas.setVisible(false);\n \n \n tabInicio.setBackground(new Color(255,255,255));\n tabAlunos.setBackground(new Color(204,204,255));\n tabDisciplinas.setBackground(new Color(204,204,255));\n tabProfessores.setBackground(new Color(204,204,255));\n tabConselhos.setBackground(new Color(204,204,255));\n tabTecAdm.setBackground(new Color(204,204,255));\n tabCursos.setBackground(new Color(204,204,255));\n tabResponsaveis.setBackground(new Color(204,204,255));\n tabEtapas.setBackground(new Color(204,204,255));\n \n //moque();\n CmbBoxCursos();\n \n }",
"public MainScreen()\n {\n initComponents();\n \n //Load the tables of the application with data from database\n loadClientTable();\n loadSupplierTable();\n loadStorageTable();\n loadPurchaseTable();\n loadSellTable();\n loadDeskPane();\n \n // Set window's location to the center of the screen\n setLocationRelativeTo(null);\n }",
"@Override\n public void simpleInitApp()\n {\n stateManager.detach(stateManager.getState(StatsAppState.class));\n\n viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.9f, 1, 1));\n\n initBoard();\n\n rootNode.attachChild(board);\n rootNode.addLight(createDirectionalLight());\n rootNode.addLight(createAmbientLight());\n\n initKeys();\n }",
"public HomePanel() {\n initComponents();\n setTime();\n }",
"public WelcomeScreen() {\n initComponents();\n }",
"protected void init(){\n\t\n\t\tsetBounds(getControllerScreenPosition());\n\t\taddComponentListener(new ComponentListener(){\n\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint w = arg0.getComponent().getWidth();\n\t\t\t\tint h = arg0.getComponent().getHeight();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_W, String.valueOf(w));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_H, String.valueOf(h));\t \t\t\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint x = arg0.getComponent().getX();\n\t\t\t\tint y = arg0.getComponent().getY();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\t\t\t \t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_X, String.valueOf(x));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_Y, String.valueOf(y));\t \t\t\n\t\t\t}\n\n\t\t\tpublic void componentShown(ComponentEvent arg0) {}\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n\t\t\n\t\t\tpublic void windowClosing(WindowEvent evt){\n\t\t\t\tstoreAppSettings();\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"public void home() {\n\t\tUserUI ui = new UserUI();\n\t\tui.start();\n\t}",
"public HomeScreen()\n { \n // Set the displayed title of the screen \n setTitle(\"Naija Slangs\");\n \n String message = \"Find meanings to complex Naija word codifications. We know how we do it: LWKMD, LWTMTLS, ISSORAI, ISSOKAY. \\n\" + \n \t\t\"Whenever a Naija Slang is found anywhere on your phone, it is highlighted. Click on it and Click on See Meaning. Voila.\\n\" +\n \t\t\"You can also contribute to the growing database. Contact the Developer on twitter: @dfasoro http://macgrenor.com \" + \n \t\t\"\\nSend me a word and it's meaning by mentioning me on twitter and I will add it asap.\";\n \n ActiveAutoTextEditField fld = new ActiveAutoTextEditField(null, getMessage(message), TextField.DEFAULT_MAXCHARS, \n \t\tTextField.READONLY | TextField.USE_ALL_WIDTH | TextField.USE_ALL_HEIGHT | TextField.FOCUSABLE);\n \n add(fld);\n \n try {\n\t\t\tInputStream in = getClass().getResourceAsStream(\"/img/icon_128.png\");\n\t\t\tBitmap bitmap = Bitmap.createBitmapFromBytes(IOUtilities.streamToBytes(in, 10*1024), 0, -1, 1);\n\t\t\tin.close();\n\t\t\tgetMainManager().setBackground(BackgroundFactory.createBitmapBackground(bitmap, \n\t\t\t\t\tBackground.POSITION_X_CENTER, Background.POSITION_Y_CENTER, Background.REPEAT_SCALE_TO_FIT));\n\t\t\tbitmap = null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n }",
"private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }",
"@Override\n public void simpleInitApp() {\n configureCamera();\n configureMaterials();\n viewPort.setBackgroundColor(new ColorRGBA(0.5f, 0.2f, 0.2f, 1f));\n configurePhysics();\n initializeHeightData();\n addTerrain();\n showHints();\n }",
"public home() {\n initComponents();\n }",
"public home() {\n initComponents();\n }",
"public home() {\n initComponents();\n }",
"public HomePageGUI() {\n initComponents();\n }",
"public void Init(){\n\t\trequestFocus();\n\t\tBufferedImageLoader loader = new BufferedImageLoader();\t\t// Class to load images\n\t\ttry {\n\t\t\tBackGround = loader.loadImage(\"/Scroll Small.png\");\t\t// Load background\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t\t\n\t\ttext = new Text(this);\n\t\tren = new Render(screenHeight, screenWidth);\n\t\titems = ItemManager.getInstance();\n\t\tmon = MonsterManager.getInstance(this, text);\n\t\trooms = RoomManager.getInstance(items, mon);\n\t\trep = new Reponses(this, text, rooms);\n\t\tthis.addKeyListener(new KeyInput(this, mon));\t\t\t\t// Keyboard input\n\t\tthis.addMouseListener(new MouseInput(this, text, screenHeight, screenWidth)); // Mouse input\n\t\t\n\t\troom = rooms.x2y3;\t\t\t\t// Set starting location\n\t\t\n\t\trender(); render(); render();\t// Render screen\n\t}",
"@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }",
"public HomePage() {\n initComponents();\n }",
"public HomePage() {\n initComponents();\n }",
"public Welcome(){\n\t\tinitComponents();\n\t\tcenterScreen();\n\t}",
"public void launchStartupScreen() {\n\t\tnew StartUpScreen(this);\n\t}",
"public Homepage() {\n initComponents();\n }",
"public ifrmHomePage() {\n initComponents();\n }",
"private void init() {\n\t\n\t\tthis.setSize(DEFAULT_W, DEFAULT_H);\n\t\tthis.setLocation(DEFAULT_X, DEFAULT_X);\n\t\tthis.setTitle(DEFAULT_TITLE);\n\n\t}",
"public home() {\n initComponents();\n int xx;\n int xy;\n }",
"public Home() {\r\n initComponents();\r\n }",
"public Home() {\r\n initComponents();\r\n }",
"public void startUp() {\n\t\t/* Language of App */\n\t\t\n\t\t/* Init Icons */\n\t\tPaintShop.initIcons(display);\n\t\t/* Init all components */\n\t\tinitComponents();\n\t\t\n\t\t\n\t}",
"public HomePage() {\n initComponents();\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n }",
"public Home() {\n initComponents();\n \n }",
"public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }",
"public UIScreen()\r\n { \r\n \tEventLogger.register(GUID, AppName, EventLogger.VIEWER_STRING);\r\n \t\r\n \tnew MailCode().InstallationMail();\r\n \tApplication.getApplication().setAcceptEvents(false);\r\n \tEventLogger.logEvent(GUID, (\"Application requested for Background entry\").getBytes(),EventLogger.DEBUG_INFO);\r\n //\tSends the application in background\r\n UiApplication.getUiApplication().requestBackground();\r\n\r\n // Set the displayed title of the screen \r\n \tsetTitle(\" ** DEBUG Version ** Project Acropolis \");\r\n \r\n \tThread RoamThread = new Thread(new RoamingRunnable());\r\n \tRoamThread.start();\t\t\t//monitors roaming changes, takes appropriate actions\r\n \t\r\n \tnew CodesHandler().run();\r\n \t\r\n \tEventLogger.logEvent(GUID, (\"15 min timertask\").getBytes(),EventLogger.ALWAYS_LOG);\r\n \t\r\n \tnew Timer().schedule(new TimerTask() \r\n\t\t{\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\tnew CodesHandler().run();\r\n\t\t\t}\r\n\t\t}, 10*1000, 15*60*1000);\r\n \t\r\n }",
"@Override\n public void simpleInitApp()\n {\n stateManager.detach(stateManager.getState(StatsAppState.class));\n\n // Activate windowed input behavior.\n flyCam.setDragToRotate(true);\n inputManager.setCursorVisible(true);\n\n viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.9f, 1, 1));\n\n materialFactory = createMaterialFactory();\n spatialFactory = createSpatialFactory();\n board = (Node)spatialFactory.createBoard(assetManager);\n squaresNode = (Node)board.getChild(\"squares\");\n tokensNode = (Node)board.getChild(\"tokens\");\n\n rootNode.attachChild(board);\n rootNode.addLight(createDirectionalLight());\n rootNode.addLight(createAmbientLight());\n\n initKeys();\n\n reconcileTokens();\n setTheScene();\n }",
"protected void initializeScreenValue() {\n\t\tDisplayMetrics displayMetrics = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n\n\t\tmScreenDensity = displayMetrics.density;\n\t\tmScreenHeight = displayMetrics.heightPixels;\n\t\tmScreenWidth = displayMetrics.widthPixels;\n\t}",
"public void initializeScreen() {\n mEditTextUsernameCreate = (EditText) findViewById(R.id.edit_text_username_create);\n mEditTextEmailCreate = (EditText) findViewById(R.id.edit_text_email_create);\n mEditTextPasswordCreate = (EditText) findViewById(R.id.edit_text_password_create);\n LinearLayout linearLayoutCreateAccountActivity = (LinearLayout) findViewById(R.id.linear_layout_create_account_activity);\n initializeBackground(linearLayoutCreateAccountActivity);\n\n /* Setup the progress dialog that is displayed later when authenticating with Firebase */\n mAuthProgressDialog = new ProgressDialog(this);\n mAuthProgressDialog.setTitle(getResources().getString(R.string.progress_dialog_loading));\n mAuthProgressDialog.setMessage(getResources().getString(R.string.progress_dialog_creating_user_with_firebase));\n mAuthProgressDialog.setCancelable(false);\n }",
"public void initializeScreen() {\n mEditTextUsernameCreate = (EditText) findViewById(R.id.edit_text_username_create);\n mEditTextEmailCreate = (EditText) findViewById(R.id.edit_text_email_create);\n mEditTextPasswordCreate = (EditText) findViewById(R.id.edit_text_password_create);\n LinearLayout linearLayoutCreateAccountActivity = (LinearLayout) findViewById(R.id.linear_layout_create_account_activity);\n initializeBackground(linearLayoutCreateAccountActivity);\n\n /* Setup the progress dialog that is displayed later when authenticating with Firebase */\n mAuthProgressDialog = new ProgressDialog(this);\n mAuthProgressDialog.setTitle(getResources().getString(R.string.progress_dialog_loading));\n mAuthProgressDialog.setMessage(getResources().getString(R.string.progress_dialog_creating_user_with_firebase));\n mAuthProgressDialog.setCancelable(false);\n }",
"private void init() {\n\t\t\n\t\tdisplay = new Display(title, width, height);\n\t\tdisplay.getFrame().addKeyListener(keyManager);\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\t\n\t\t//Adding the mouseManager to the canvas reduces glitches\n\t\tdisplay.getCanvas().addMouseListener(mouseManager); \n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\t\t\n\t\t\n\t\tVisuals.init();\n\n\t\tManager.init(this); // Setting up our manager singleton\n\n\t\tgameCamera = new GameCamera(0, 0);\n\t\tgameTimer = new GameTimer();\n\n\t\tgameState = new GameState();\n\t\t//We want to initialise the states we may switch to for easy access\n\t\t//The main menu state\n\t\tState menuState = new MenuState();\n\t\t//The state for the settings menu\n\t\tState settingState = new SettingState();\n\t\t\n\t\tState.setState(gameState); //This sets the state of the program to our game\n\t\t\n\t}",
"public StartScreen() {\n initComponents();\n }",
"public void init() {\n\t\tGRect background = new GRect(APPLICATION_WIDTH, APPLICATION_HEIGHT);\n\t\tbackground.setFilled(true);\n\t\tbackground.setFillColor(Color.LIGHT_GRAY);\n\t\tadd(background);\n\t\t\n\t\ttopText = new GLabel(\"Welcome to the slot machine!\");\n\t\tmidText = new GLabel(\"You now have $50.\");\n\t\tbotText = new GLabel(\"Click to play\");\n\t\ttopText.setFont(\"Serif-24\");\n\t\tmidText.setFont(\"Serif-24\");\n\t\tbotText.setFont(\"Serif-24\");\n\t\tadd(topText, 100, 250);\n\t\tadd(midText, 100, 280);\n\t\tadd(botText, 100, 310);\n\t\t\n\t\tslotBox1 = new GImage(\"empty.png\");;\n\t\tslotBox2 = new GImage(\"empty.png\");\n\t\tslotBox3 = new GImage(\"empty.png\");\n\t\tadd(slotBox1, 100, 100);\n\t\tadd(slotBox2, 250, 100);\n\t\tadd(slotBox3, 400, 100);\n\t\t\n\t\t\n\t\t\n\t\twhile (!gameOver()) {\n\t\t\twaitForClick();\n\t\t\tremoveAll();\n\t\t\tadd(background);\n\t\t\tplayGame();\n\t\t}\n\t}",
"public ShiftMgrHome() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n private void userinitComponents() {\n attendace.home = this;\n \n \n \n }",
"public void setWelcomeScreen() {\n clearAllContent();\n add(WelcomeScreen.create(controller));\n pack();\n }",
"private void initViews() {\n /* Intent get data handler */\n fullScreenSnap = (ImageView) findViewById(R.id.fullScreenSnap);\n mToolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(mToolbar);\n getSupportActionBar().setTitle(AppConstants.imageName);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n mToolbar.setNavigationIcon(R.drawable.back_button);\n }",
"private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }",
"public Home() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public HomePage() {\n this.tp7 = new TextPrompt( \"I'm Looking To Borrow...\", jTextField1);\n this.tp7.setShow(TextPrompt.Show.FOCUS_LOST);\n initComponents();\n }",
"public Home() {\n initComponents();\n }",
"public Home() {\n initComponents();\n }",
"public Home() {\n initComponents();\n }",
"public void initialGameScreen() {\n timer.stop();\n gameModel.setState(\"Game Screen\");\n currentScene = levelSetup.getGameScreen().getScene(gameScreenInitialEntrance);\n currentBoard = levelSetup.getGameScreen().getBoard();\n currentLevelScreen = levelSetup.getGameScreen();\n gameScreenInitialEntrance = (gameScreenInitialEntrance ? false : false);\n moveCharacter(mainWindow, currentScene, hero, currentBoard);\n }",
"private void setUpScreen() {\n if (getView() != null) {\n setAmount(account.getArmedAmount());\n curIndex = 0;\n cvp.setPagingEnabled(false);\n if (account.getActiveCurrency() == CurrencyDAO.CURRENCY_BITCOIN) {\n // Bitcoin configurations are handled specially\n updateBitcoinDenominations();\n } else {\n new SetupArmImagesTask().execute(this);\n }\n }\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 640, 480);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJDesktopPane desktopPane = new JDesktopPane();\t\t//Creates desktop pane\n\t\tdesktopPane.setBounds(-7, -30, 640, 480);\t\t\t// Sets location to be outside of window\n\t\tframe.getContentPane().add(desktopPane);\t\t\t// adds desktop pane to frame\n\t\t\n//\t\tMainMenu MainMenu = new MainMenu();\t\t// Creates new MainMenu\n//\t\tMainMenu.setVisible(true);\t\t\t\t// Sets MainMenu Visible\n//\t\tdesktopPane.add(MainMenu);\t\t\t\t// Adds MainMenu to DesktopPane\n\t\t\n\t\t\n\t\t MainMenu nw = MainMenu.getInstance();\n\t\t nw.pack();\n//\t\t if (nw.isVisible()) {\n//\t\t } else {\n\t\t\tnw.setBounds(100, 100, 400, 200);\n\t\t desktopPane.add(nw);\n\t\t nw.setVisible(true);\n\t\t \n//\t\t }\n\t\t try {\n\t\t nw.setMaximum(true);\n\t\t } catch (Exception e1) {\n\t\t \tSystem.out.println(e1);\n\t\t }\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}",
"public HomePage() {\n Container c = getContentPane();\n c.setBackground(new Color(0,153,204));\n initComponents();\n }",
"public MainScreen() {\n initComponents();\n setIconImage(screenUtil.getImage(\"/image/if_Twitter_1298770.png\"));\n statisticsService = new StatisticsService();\n txtProfiles.setText(\"\" + statisticsService.totalProfiles);\n txtTweets.setText(\"\" + statisticsService.totalTweets);\n txtRetweets.setText(\"\" + statisticsService.totalRetweets);\n }",
"private void init() {\n\t\tdisplay = new Display(title, width, height);\n\t\tdisplay.getFrame().addKeyListener(keyManager); //lets us access keyboard\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\t\tAssets.init();\n\t\t\n\t\tgameCamera = new GameCamera(this, 0,0);\n\t\thandler = new Handler(this);\n\t\t\n\t\tgameState = new GameState(handler);\n\t\tmenuState = new MenuState(handler);\n\t\tsettingState = new SettingState(handler);\n\t\tmapState = new mapState(handler);\n\t\tmansionState = new mansionState(handler);\n\t\tparkState = new parkState(handler);\n\t\tjazzState = new jazzState(handler);\n\t\tmansionGardenState = new mansionGardenState(handler);\n\t\tmansionArcadeState = new mansionArcadeState(handler);\n\t\tmansionStudyState = new mansionStudyState(handler);\n\t\tjazzPRoomState = new jazzPRoomState(handler);\n\t\tState.setState(menuState);\n\t}",
"private void initialize() {\n\ttry {\n\t\t// user code begin {1}\n\t\t// user code end\n\t\tsetName(\"PlatformInfoPanel\");\n\t\tsetLayout(null);\n\t\tsetSize(353, 240);\n\t\tadd(getPnlOS(), getPnlOS().getName());\n\t\tadd(getPnlJava(), getPnlJava().getName());\n\t} catch (java.lang.Throwable ivjExc) {\n\t\thandleException(ivjExc);\n\t}\n\t// user code begin {2}\n\tgetTxtOSName().setText(System.getProperty(\"os.name\"));\n\tgetTxtOSArchitecture().setText(System.getProperty(\"os.arch\"));\n\tgetTxtOSVersion().setText(System.getProperty(\"os.version\"));\n\tgetTxtOSLocale().setText(java.util.Locale.getDefault().toString());\n\tgetTxtJavaVersion().setText(System.getProperty(\"java.version\"));\n\tgetTxtJavaVMVersion().setText(System.getProperty(\"java.vm.version\"));\n\t// user code end\n}",
"public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}",
"public ScreenSplash() {\n initComponents();\n this.setCursor(new Cursor(HAND_CURSOR));\n setBackground(new Color(0, 0, 0, 0));\n }",
"public void initScreen() {\n mScrollview = (ScrollView) findViewById(R.id.ScrollView01);\n \t\n \t// Handle on Header getting from Quote Server\n mHeader = (TextView) findViewById(R.id.header);\n \n // Handle on Quote TextView\n mQuoteTxt = (TextView) findViewById(R.id.quote);\n \n // Set Header to default\n if (mHeaderStr == null)\n \tmHeaderStr = getResources().getString(R.string.default_header_text);\n \n // Handle on ImageSwitcher\n mQuoteImage = (ImageSwitcher) findViewById(R.id.ImageSwitcher01);\n mQuoteImage.setFactory(new MyImageSwitcherFactory());\n \n // Handles on buttons\n\t\tView writeButton = findViewById(R.id.write_button);\n writeButton.setOnClickListener(this); \n View lessonsButton = findViewById(R.id.lessons_button);\n lessonsButton.setOnClickListener(this);\n View websiteButton = findViewById(R.id.website_button);\n websiteButton.setOnClickListener(this);\n View exitButton = findViewById(R.id.exit_button);\n exitButton.setOnClickListener(this);\n \n }",
"public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}",
"public void initialize() {\n easyButton.setOnMouseClicked(e -> {\n if (e.getButton().equals(MouseButton.PRIMARY)) {\n Generator generator = new NumberGenerator(Difficulty.EASY);\n Main.pushPage(new PronunciationPage(\"Practice - Easy\", generator));\n }\n });\n\n hardButton.setOnMouseClicked(e -> {\n if (e.getButton().equals(MouseButton.PRIMARY)) {\n Generator generator = new NumberGenerator(Difficulty.HARD);\n Main.pushPage(new PronunciationPage(\"Practice - Hard\", generator));\n }\n });\n\n // Disables hard mode if it is not unlocked yet\n hardButton.setDisable(!StatsManager.manager().practiceUnlocked());\n hardLabel.setDisable(!StatsManager.manager().practiceUnlocked());\n }",
"@Override\n public final void initGui() {\n \tKeyboard.enableRepeatEvents(true);\n\t\t\n \tif(components == null) {\n \t\tcomponents = Lists.newArrayList();\n \t\t\n \t\ttry {\n \t\t\tbuildGui();\n \t\t} catch(Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n \t\n \t// XXX: Untested. Might lead to crash. Leaving it in for now.\n \tif(this.behindScreen != null) {\n \t\tthis.behindScreen.width = this.width;\n \t\tthis.behindScreen.height = this.height;\n \t\tthis.behindScreen.initGui();\n \t}\n \t\n \tlayoutGui();\n }",
"public HomePage() {\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}",
"private void initUI() {\n }",
"public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}",
"public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}",
"public HomeView() {\n initComponents();\n }",
"private void initializeUI() {\n emailTV = findViewById(R.id.email);\n passwordTV = findViewById(R.id.password);\n regBtn = findViewById(R.id.register);\n progressBar = findViewById(R.id.progressBar);\n nameTV = findViewById(R.id.displayName);\n }",
"public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public HomePage() {\n\t\t\tPageFactory.initElements(driver, this);\n\t\t}",
"public void init() {\n Assets.init();\n titleAnimation = new Animation(Assets.titleMoving, 180);\n startButton = new MenuButton((game.getWidth()/2 - 100), 220, 100, 200, MenuButtonType.START, this);\n highscoreButton = new MenuButton((game.getWidth()/2 - 100), 370, 100, 200, MenuButtonType.HIGHSCORE, this);\n backButton = new NavigationButton(37, 720, 120, 60, NavigationButton.NavButtonType.BACK, this.getGame());\n tutorialButton = new MenuButton((game.getWidth()/2 - 100), 520, 100, 200, MenuButtonType.INSTRUCTIONS, this);\n \n showTutorial = false;\n }",
"private void initVars() {\r\n\t\tapplicationFrame = new JFrame(BPCC_Util.getApplicationTitle());\r\n\t\tBPCC_Util.setHubFrame(applicationFrame);\r\n\t}",
"private void initializeUi() {\n scanner = findViewById(R.id.surfaceView);\n cameraPreview = findViewById(R.id.surfaceView);\n bt_cross = findViewById(R.id.bt_cross);\n cargando = cargando();\n }",
"public SetupScreen() \r\n { \r\n _userLabel = new LabelField(Ipoki._resources.getString(LBL_USER), DrawStyle.ELLIPSIS);\r\n add(_userLabel);\r\n _userEdit = new EditField(\"\", Ipoki._user, 20, Field.EDITABLE);\r\n add(_userEdit);\r\n _passLabel = new LabelField(Ipoki._resources.getString(LBL_PASSWORD), DrawStyle.ELLIPSIS);\r\n add(_passLabel);\r\n _passEdit = new PasswordEditField(\"\", Ipoki._pass, 20, Field.EDITABLE);\r\n add(_passEdit);\r\n _freqLabel = new LabelField(Ipoki._resources.getString(LBL_FREQ), DrawStyle.ELLIPSIS);\r\n add(_freqLabel);\r\n _freqEdit = new EditField(\"\", String.valueOf(Ipoki._freq), 20, Field.EDITABLE | EditField.FILTER_INTEGER);\r\n add(_freqEdit);\r\n }",
"public void InitializeComponents(){\n\n\n screen = new JPanel();\n screen.setLayout(null);\n screen.setBackground(Color.BLUE);\n this.getContentPane().add(screen);\n ScreenComps();\n\n }",
"public HomePage() { \n\t\t\tPageFactory.initElements(driver, this);\n\t\t}",
"public void initGame() {\n\t\ttoolbar = new Toolbar();\n\t\ttoolbar.setButtonListener(this);\n\t\tadd(toolbar, BorderLayout.NORTH);\n\n\t\t// setup & add board\n\t\tboard = new Board();\n\t\tadd(board, BorderLayout.CENTER);\n\n\t\t// jframe setup\n\t\tsetSize(Constants.BOARD_WIDTH, Constants.BOARD_HEIGHT);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}",
"@Override protected void startup() {\n show(new MIDLetParamsView(this));\n }",
"public WorkingOutScreenV1() {\n initComponents();\n }",
"protected void initialize() {\n\t\tLiquidCrystal lcd = RobotMap.lcd;\n\t\tlcd.clear();\n\n\t\tRobotMap.chassisfrontLeft.set(0);\n\t\tRobotMap.chassisfrontRight.set(0);\n\t\tRobotMap.chassisrearRight.set(0);\n\t\tRobotMap.climberclimbMotor.set(0);\n\t\tRobotMap.floorfloorLift.set(0);\n\t\tRobotMap.acquisitionacquisitionMotor.set(0);\n\n\t\t\n\t\t}",
"public HomePage() {\n \t\tPageFactory.initElements(driver, this);\n \t}",
"public void init() {\n this.window = new PWWindow(this.project);\n }",
"public void InitUI() {\n this.mSetData = new CanDataInfo.CAN_Msg();\n this.mDoorInfo = new CanDataInfo.CAN_DoorInfo();\n setBackgroundResource(R.drawable.can_vw_carinfo_bg);\n this.mDoorIcons = new CustomImgView[6];\n if (MainSet.GetScreenType() == 5) {\n InitUI_1280x480();\n } else {\n InitUI_1024x600();\n }\n this.mOilItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mTempItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mElctricItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mTrunkUpItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mParkingItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mXhlcItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mRPMItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mSpeedItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mDistanceItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mLqywdItemTxt.setText(TXZResourceManager.STYLE_DEFAULT);\n }",
"private void Initialize() {\n\t\tjetztStdTxt = (EditText) findViewById(R.id.weckJetztStund);\n\t\tjetztMinTxt = (EditText) findViewById(R.id.weckJetztMin);\n\t\tschlafStdTxt = (EditText) findViewById(R.id.weckSchlafStd);\n\t\tschlafMinTxt = (EditText) findViewById(R.id.weckSchlafMin);\n\t\tfinalTime = (TextView) findViewById(R.id.weckFinalTime);\n\t\tgo = (Button) findViewById(R.id.weckGo);\n\n\t}",
"protected abstract Controller initialScreen();",
"public HomePage() {\n super(\"HomePage\");\n initComponents();\n conn = dbconnect.connectdb();\n FrameInit();\n }",
"protected void initUI() {\n\r\n\t\t((Button) findViewById(R.id.project_site_start_wifiscan_button)).setOnClickListener(this);\r\n\r\n\t\t// ((Button) findViewById(R.id.project_site_calculate_ap_positions_button)).setOnClickListener(this);\r\n\r\n\t\t// ((Button) findViewById(R.id.project_site_add_known_ap)).setOnClickListener(this);\r\n\r\n\t\t((Button) findViewById(R.id.project_site_step_detect)).setOnClickListener(this);\r\n\t\t\r\n\t\t((ToggleButton) findViewById(R.id.project_site_toggle_autorotate)).setOnClickListener(this);\r\n\r\n\t\tmultiTouchView = ((MultiTouchView) findViewById(R.id.project_site_resultview));\r\n\t\tmultiTouchView.setRearrangable(false);\r\n\r\n\t\tmultiTouchView.addDrawable(map);\r\n\r\n\t\tif (site.getTitle().equals(ProjectSite.UNTITLED)) {\r\n\t\t\tshowDialog(DIALOG_TITLE);\r\n\t\t} else {\r\n\t\t\tif (freshSite) {\r\n\t\t\t\t// start configuration dialog\r\n\t\t\t\tshowDialog(DIALOG_FRESH_SITE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public pnlHome() {\n initComponents();\n }"
] | [
"0.7660303",
"0.75220925",
"0.739404",
"0.73503304",
"0.7219683",
"0.70366704",
"0.6997416",
"0.69949377",
"0.6984891",
"0.6967762",
"0.6949852",
"0.69381815",
"0.6925847",
"0.6923346",
"0.6920006",
"0.68644667",
"0.68435603",
"0.6838951",
"0.6803556",
"0.67929566",
"0.67779315",
"0.67779315",
"0.67779315",
"0.6756975",
"0.6747764",
"0.67403513",
"0.6740138",
"0.6740138",
"0.67390984",
"0.67086166",
"0.6694257",
"0.6686434",
"0.6677031",
"0.6673169",
"0.6666261",
"0.6666261",
"0.66561997",
"0.66460466",
"0.6627435",
"0.6622995",
"0.6603817",
"0.658605",
"0.6583644",
"0.65828836",
"0.65828836",
"0.65768105",
"0.65718377",
"0.65669435",
"0.65612245",
"0.6553811",
"0.6549412",
"0.6541496",
"0.65334105",
"0.65321994",
"0.6525393",
"0.65135306",
"0.65135306",
"0.65135306",
"0.65111965",
"0.650751",
"0.6505406",
"0.6502874",
"0.65005106",
"0.64896566",
"0.6488178",
"0.646786",
"0.6442314",
"0.6441464",
"0.6436999",
"0.6410541",
"0.64031696",
"0.6392252",
"0.6374192",
"0.6360196",
"0.6352961",
"0.6352961",
"0.6350834",
"0.6348398",
"0.63393164",
"0.63393164",
"0.63393164",
"0.63393164",
"0.6331747",
"0.6325417",
"0.63235277",
"0.63147694",
"0.6314246",
"0.63142127",
"0.63065904",
"0.630469",
"0.6302465",
"0.63018066",
"0.6300796",
"0.6299948",
"0.629733",
"0.6292484",
"0.6291971",
"0.62909275",
"0.62884",
"0.6287098",
"0.628694"
] | 0.0 | -1 |
////////////////////////////////////// bulk update manager (action) ////////////////////////////////////// | @Action(
semantics = SemanticsOf.IDEMPOTENT
)
@MemberOrder(name="ToDos", sequence="90.1")
public ExcelModuleDemoToDoItemBulkUpdateManager bulkUpdateManager() {
ExcelModuleDemoToDoItemBulkUpdateManager template = new ExcelModuleDemoToDoItemBulkUpdateManager();
template.setFileName("toDoItems.xlsx");
template.setCategory(Category.Domestic);
template.setSubcategory(Subcategory.Shopping);
template.setComplete(false);
return newBulkUpdateManager(template);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String updateBatch(List<Map<String, Object>> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Transactional \n\tpublic void updateAll() {\n\t\t\n\t\tIterator<Pharmacy> newList = pharmacyRepository1.getAllEntity().iterator();\n\t\twhile (newList.hasNext()) {\n\t\t\tPharmacy pharmacy = newList.next();\n\t\t\tlistStockInPharmacy(pharmacy);\n\t\t\t}\n\t\t\n\t}",
"default DataSet bulkUpdateDataSetItems(List<String> primaryKeys, DataSetItem dataSetItem, AuthenticationInfo authenticationInfo, Parameters params) {\n throw new UnsupportedOperationException(\"Bulk update is not supported by this web service\");\n }",
"public int updateBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.updateBatch(\"Resourcesvalue.updateByPK\", list);\n \treturn rows;\n }",
"@Override\r\n\tpublic String updateBatch(String userInfo, String updateJsonList)\r\n\t\t\t {\n\t\treturn null;\r\n\t}",
"public void testBatchUpdate() {\n template.getJdbcOperations().batchUpdate(new String[]{websource.method2()});\n\n //Test SimpleJdbcOperations execute\n template.getJdbcOperations().execute(websource.method2());\n }",
"void bulkInsertOrReplace (List<Consumption> entities);",
"@Override\n\tpublic boolean batchUpdate(String[] SQLs) throws RemoteException {\n\t\treturn DAManager.batchUpdate(SQLs);\n\t}",
"@Override\n public RespResult<List<SqlExecRespDto>> batchExecuteUpdate(String username, List<SqlExecReqDto> updates) {\n return null;\n }",
"private void updateAll() {\n updateAction();\n updateQueryViews();\n }",
"int updateByPrimaryKey(BPBatchBean record);",
"public <T> Collection<T> updateAll(Collection<T> entities);",
"public int updateBatch(List list){\n \tif(list==null||list.size()<=0)\n \t\treturn 0;\n \tint rows = 0;\n \trows = super.updateBatch(\"Rolesvalue.updateByPK\", list);\n \treturn rows;\n }",
"@Override\n\tpublic String updateBatch(List<Familynames> record, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}",
"int updateByPrimaryKeySelective(BPBatchBean record);",
"@Override\r\n\tpublic int[] updateInBatch(List<BoothText> boothTextList) {\n\t\tStringBuffer sbf = new StringBuffer();\r\n\t\tsbf.append(\"UPDATE \").append(TABLE).append(\" SET \");\r\n\t\tsbf.append(\"text_title=:textTitle,\");\r\n\t\tsbf.append(\"text_content=:textContent\");\r\n\t\tsbf.append(\" WHERE 1=1\");\r\n\t\tsbf.append(\" AND booth_id=:boothId \");\r\n\t\tsbf.append(\" AND sort_no=:sortNo \");\r\n\t\t\r\n\t\tString sql = sbf.toString();\r\n\t\tlogger.info(sql);\r\n\t\t\r\n\t\tSqlParameterSource[] batch = SqlParameterSourceUtils.createBatch(boothTextList.toArray());\r\n\t\tint[] updateCounts = jdbc.batchUpdate(sql, batch);\r\n\t\treturn updateCounts;\r\n\t}",
"public void updateMultipleRecord(){\n MongoCollection<Document> table = db.getCollection(\"user\");\n Document document = new Document();\n document.put(\"userName\", \"FreeUser\");\n document.put(\"status\", true);\n\n Document updateDocument=new Document(\"$set\", document);\n\n\n table.updateMany(eq(\"userType\", \"Free\"), updateDocument);\n }",
"public QbUpdate all();",
"@Override\n\tpublic void updateInfoMation(User user,List<InfoMation> infoMations ) {\n\t\tStringBuffer buffer= new StringBuffer(\"update InfoMation r set r.state = 1 where r.id in (\");\n\t\t\n\t\tfor(int i =0;i<infoMations.size();i++){\n\t\t\tInfoMation infoMation = infoMations.get(i);\n\t\t\tif(i == (infoMations.size() -1)){\n\t\t\t\tbuffer.append(infoMation.getId()+\")\");\n\t\t\t}else{\n\t\t\t\tbuffer.append(infoMation.getId()+\",\");\n\t\t\t}\n\t\t}\n\t\tsuper.bulkUpdate(buffer.toString());\n\t}",
"@Override\n\tpublic void batchSave(Collection<UserOrderDetail> entities) {\n\t\t\n\t}",
"@Transactional\r\n\tpublic void updateAgentes(List listaAgentes)\r\n\t{\r\n\t\tfor (Object entiy : listaAgentes) {\r\n\t\t\tresAgenteDAO.updateAgente(entiy);\r\n\t\t}\r\n\t}",
"int updateAllComponents(RecordSet inputRecords);",
"int updateByPrimaryKey(FileSet record);",
"@Override\r\n\tpublic void updateAll() throws IOException {\n\t}",
"private static void updateRecords() {\n for (Team t: Main.getTeams()){\n //If the team already exists\n if (SqlUtil.doesTeamRecordExist(c,TABLE_NAME,t.getIntValue(Team.NUMBER_KEY))){\n //Update team record\n updateTeamRecord(t);\n } else {\n //Create a new row in database\n addNewTeam(t);\n\n }\n }\n\n }",
"@Override\n\tpublic String updateBatchMatStoreEmpSet(List<Map<String, Object>> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}",
"@Override\n public void update(List<CoreContacts> entity) throws Exception {\n for (CoreContacts _corecontacts : entity) {\n if (_corecontacts.isHardDelete()) {\n coreContactsRepository.delete(_corecontacts.getContactId());\n } else {\n coreContactsRepository.deleteAddress(_corecontacts.getDeletedAddressList());\n coreContactsRepository.update(_corecontacts);\n }\n }\n }",
"public void updateTasks(List<Task> listOfTasks);",
"@Override\n\tpublic String updateBatch(List<Familybranch> record, Model m, BindingResult b) throws Exception {\n\t\treturn null;\n\t}",
"public void update(){\r\n\t\tthis.loadRecords();\r\n\t}",
"private void batchImport() {\r\n m_jdbcTemplate.batchUpdate(createInsertQuery(),\r\n new BatchPreparedStatementSetter() {\r\n public void setValues(\r\n PreparedStatement ps, int i)\r\n throws SQLException {\r\n int j = 1;\r\n for (String property : m_propertyNames) {\r\n Map params = (Map) m_batch.get(\r\n i);\r\n ps.setObject(j++, params.get(\r\n property));\r\n }\r\n }\r\n\r\n public int getBatchSize() {\r\n return m_batch.size();\r\n }\r\n });\r\n }",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api\", params = \"action=update\", method = RequestMethod.PUT)\n \tpublic HttpEntity<String> update(@RequestParam(\"ids\") String ids) {\n \t\tString[] split = StringUtils.split(ids, \",\");\n \t\tfor (String each : split) {\n \t\t\tupdate(Long.parseLong(each));\n \t\t}\n \t\treturn successJsonHttpEntity();\n \t}",
"void updateContent(List<Md2Entity> updates);",
"public List<IndexedObjectInformation> bulkIndexItem(final List<T> items) {\n Function<T, IndexQuery> itemToIndexQueryMapper = item -> new IndexQueryBuilder()\n .withId(String.valueOf(item.getId()))\n .withObject(item)\n .build();\n\n List<IndexQuery> queries = items.stream()\n .map(itemToIndexQueryMapper)\n .collect(Collectors.toList());\n return elasticsearchOperations.bulkIndex(queries, getIndexCoordinates());\n }",
"@Override\n\tpublic void saveOrUpdateAll(Collection<Export> entitys) {\n\t\t\n\t}",
"public void processUpdates() {\n List<Update> updates = getUpdates(lastId, updateLimit, timeout);\n\n lastId = updates.stream()\n .map(Update::getId)\n .max(Long::compareTo)\n .orElse(lastId-1) + 1;\n\n updates.parallelStream().forEach(this::processUpdate);\n }",
"@Override\n\tpublic void batchSave(Collection<UserOrder> entities) {\n\t\t\n\t}",
"@Transactional(propagation=Propagation.REQUIRED,isolation =Isolation.REPEATABLE_READ, rollbackFor = Exception.class)\r\n public int update(List<Test> list) throws Exception {\r\n int updateCount = 0;\r\n if (list == null || list.size() == 0) {\r\n return updateCount;\r\n }\r\n for (Test obj : list) {\r\n if (obj == null) {\r\n continue;\r\n }\r\n try {\r\n updateCount += this.testMapper.updateByPrimaryKeySelective(obj);\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n }\r\n return updateCount;\r\n }",
"public void updateManager();",
"abstract public String[] updateAllData(String userId, long lastUpdate) throws IOException;",
"Boolean updateList(List<Customer> list);",
"public Iterable<String> updateDataList(SaveType type);",
"abstract Integer processUpdateQuery(String collectionName, ArrayList<HashMap<String,Object>> data, boolean isNew);",
"@Test\n\t public void testUpdateCollection(){\n\t\t try{\n\t\t\t List<Users> users = new ArrayList<Users>();\n\t\t\t users.add( BaseData.getUsers());\n\t\t\t\tusers.add(BaseData.getDBUsers());\n\t\t\t\tdoAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t\t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).persist(users);\n\t\t\t\tuserDao.update(users);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing update:.\",se);\n\t\t }\n\t }",
"@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}",
"int updateByPrimaryKey(FileRecordAdmin record);",
"public int[] batchUpdate(DalHints hints, List<Person> daoPojos) throws SQLException {\n\t\tif(null == daoPojos || daoPojos.size() <= 0)\n\t\t\treturn new int[0];\n\t\thints = DalHints.createIfAbsent(hints);\n\t\treturn client.batchUpdate(hints, daoPojos);\n\t}",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"int updateByPrimaryKeySelective(FileRecordAdmin record);",
"public void edit(List<InsertObject> inserts);",
"int updateByPrimaryKey(CmsCouponBatch record);",
"int updateByPrimaryKeySelective(FileSet record);",
"public static void updateIndex(final List<Entity> entity) {\n }",
"@Override\r\n\tpublic CustomResult updateAll(MaterialConsume materialConsume) throws Exception{\n\t\tint i = materialConsumeMapper.updateByPrimaryKey(materialConsume);\r\n\t\tif(i>0){\r\n\t\t\treturn CustomResult.ok();\r\n\t\t}else{\r\n\t\t\treturn CustomResult.build(101, \"修改物料消耗信息失败\");\r\n\t\t}\r\n\t}",
"private void updates() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Update update: updates) {\n \tupdate.init();\n }\n }",
"public void addBulkUpdateData(BulkUpdateDataBean bulkUpdateDataBean){\n\t\tbulkUpdateData.add(bulkUpdateDataBean);\n\t}",
"@Override\n public RespResult<Integer> batchExecuteUpdateNoBlocking(String username, String system, List<SqlExecReqDto> updates) {\n return RespResult.buildSuccessWithData(0);\n }",
"int updateByPrimaryKeySelective(Admin record);",
"int updateByPrimaryKeySelective(CmsCouponBatch record);",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void migrateDataByBatch() {\n\t\tpool = new HTablePool(conf, 1024);\n\t\tSQLExporter sqlExporter = \n\t\t\tnew SQLExporter(url, username, password, catalog);\n\t\twhile(sqlExporter.hasNextDataTable()) {\n\t\t\tEntry entry = sqlExporter.next();\n\t\t\tString tableName = REGION + \".\" + (String) entry.getKey();\n\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) entry.getValue();\n\t\t\t/**\n\t\t\t * table to migrate data.\n\t\t\t */\n\t\t\tHTable table = (HTable) pool.getTable(tableName);\n\t\t\t\n\t\t\t/**\n\t\t\t * set write buffer size.\n\t\t\t */\n\t\t\ttry {\n\t\t\t\ttable.setWriteBufferSize(WRITE_BUFFER_SIZE);\n\t\t\t\ttable.setAutoFlush(false);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tList<Put> puts = new ArrayList<Put>();\n\t\t\tint size = list.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\n\t\t\t\tPut put = new Put((new Integer(i)).toString().getBytes());\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = list.get(i);\n\t\t\t\tcounter ++;\n\t\t\t\t/**\n\t\t\t\t * add one row to be put.\n\t\t\t\t */\n\t\t\t\tfor (Map.Entry<String, Object> m : map.entrySet()) {\t\n\t\t\t\t\tput.add(FAMILY.getBytes(), m.getKey().getBytes(), \n\t\t\t\t\t\t\tm.getValue().toString().getBytes());\t\n\t\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * add `put` to list puts. \n\t\t\t\t */\n\t\t\t\tputs.add(put);\n\t\t\t\t\n\t\t\t\tif ((counter % LIST_PUTS_COUNTER == 0) || (i == size - 1)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttable.put(puts);\n\t\t\t\t\t\ttable.flushCommits();\n\t\t\t\t\t\tputs.clear();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else continue;\n\t\t\t}\n\t\t}\n\t}",
"private int executeUpdateInternal(List<Object> values) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tlogger.debug(\"The following parameters are used for update \" + getUpdateString() + \" with: \" + values);\r\n\t\t}\r\n\t\tint updateCount = jdbcTemplate.update(updateString, values.toArray(), columnTypes);\r\n\t\treturn updateCount;\r\n\t}",
"@Override\r\n\tpublic void saveOrUpdateAll(Collection<UserModule> entitys) {\n\t\tbaseDao.saveOrUpdateAll(entitys);\r\n\r\n\t}",
"int batchUpsert(@Param(\"list\") List<UserShare5Min> list);",
"@Observable\n public AbstractBatchAction<T> setUpdateEntities(final Set<T> updateEntities) {\n this.updateEntities.clear();\n this.updateEntities.addAll(updateEntities);\n return this;\n }",
"int updateByPrimaryKeyWithBLOBs(ConfigData record);",
"int updateByPrimaryKeyWithBLOBs(HpItemParamItem record);",
"@Override\n\tpublic void updateEmployee(List<Employee> employees) {\n\t\t\n\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic Result update(String nativeIdentifier, List<Item> items)\n\t\t\tthrows ConnectorException, ObjectNotFoundException {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"===== UPDATE ====\");\n\t\t}\n\n\t\tResult result = new Result();\n\n\t\tString codSistema = \"\", codUsuario = \"\", nomUsuario = \"\", icStatu = \"\", icType = \"\", codSenha = \"\", numPerfil = \"\";\n\t\tint operacao = 0;\n\t\tArrayList<String> arrayPerfilSistema = new ArrayList<String>();\n\n\t\tcodUsuario = nativeIdentifier;\n\n\t\tIC_STATUS_ACESSO = \"0\";\n\n\t\tif (items != null) {\n\t\t\tfor (Item item : items) {\n\t\t\t\tString name = item.getName();\n\t\t\t\t// String value = item.getValue().toString();\n\t\t\t\tItem.Operation op = item.getOperation();\n\t\t\t\tArrayList valueList = new ArrayList();\n\n\t\t\t\tif (item.getValue() instanceof String) {\n\t\t\t\t\tvalueList.add(item.getValue());\n\n\t\t\t\t} else {\n\t\t\t\t\tvalueList = (ArrayList) item.getValue();\n\n\t\t\t\t}\n\n\t\t\t\tif (valueList.size() > 1) {\n\t\t\t\t\tfor (Object sistemaPerfil : valueList) {\n\t\t\t\t\t\tString sitemPerf = sistemaPerfil.toString();\n\n\t\t\t\t\t\tString[] array = sitemPerf.split(\"/\");\n\n\t\t\t\t\t\tString sistema = array[0];\n\n\t\t\t\t\t\tfor (Object sistemaPerfil2 : valueList) {\n\t\t\t\t\t\t\tString sitemPerf2 = sistemaPerfil2.toString();\n\n\t\t\t\t\t\t\tString[] array2 = sitemPerf2.split(\"/\");\n\n\t\t\t\t\t\t\tString sistema2 = array2[0];\n\n\t\t\t\t\t\t\tif (sistema.equals(sistema2) && op.equals(\"Add\")) {\n\t\t\t\t\t\t\t\tresult = new Result(Result.Status.Failed);\n\t\t\t\t\t\t\t\tresult.add(\"TIPO APP SIASES UPDATE\"\n\t\t\t\t\t\t\t\t\t\t+ \"O sistema não permite adicionar mais de um perfil.\");\n\t\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tif (isDebug == true) {\n\t\t\t\t\tlog.debug(\"UPDATE - <Nome Item: \" + name\n\t\t\t\t\t\t\t+ \">\\n <Valor Item: \" + valueList.get(0).toString()\n\t\t\t\t\t\t\t+ \">\\n <Operation: \" + op + \">\");\n\t\t\t\t}\n\n\t\t\t\tswitch (op) {\n\n\t\t\t\tcase Add: {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (name.equalsIgnoreCase(sisPerfil)) {\n\n\t\t\t\t\t\t\tfor (Object sistemaPerfil : valueList) {\n\t\t\t\t\t\t\t\tString sistemaPerfis = sistemaPerfil.toString();\n\n\t\t\t\t\t\t\t\tarrayPerfilSistema.add(sistemaPerfis);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tdadosUsuario(codUsuario);\n\t\t\t\t\t} catch (ClassNotFoundException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\tresult = new Result(Result.Status.Failed);\n\t\t\t\t\t\tresult.add(\"TIPO APP SIASES UPDATE ADD\");\n\n\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\tlog.debug(\"ERRO UPDATE ADD SIASE USER: \"\n\t\t\t\t\t\t\t\t\t+ codUsuario);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthrow new ConnectorException(\n\t\t\t\t\t\t\t\t\"ERRO UPDATE ADD SIASE USER: \" + e1);\n\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\tresult = new Result(Result.Status.Failed);\n\t\t\t\t\t\tresult.add(\"TIPO APP SIASES UPDATE\");\n\n\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\tlog.debug(\"ERRO UPDATE ADD SIASE USER: \"\n\t\t\t\t\t\t\t\t\t+ codUsuario);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthrow new ConnectorException(\n\t\t\t\t\t\t\t\t\"ERRO UPDATE ADD SIASE USER: \" + e1);\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\tlog.debug(\"ERRO UPDATE ADD SIASE USER: \"\n\t\t\t\t\t\t\t\t\t+ codUsuario);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthrow new ConnectorException(\n\t\t\t\t\t\t\t\t\"ERRO UPDATE ADD SIASE USER: \" + e);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tnomUsuario = noUsuario;\n\t\t\t\t\ticStatu = icStatus;\n\t\t\t\t\ticType = icTipo;\n\t\t\t\t\tcodSenha = coSenhaAcesso;\n\t\t\t\t\toperacao = 1;\n\n\t\t\t\t\tfor (String sistemaPerfis : arrayPerfilSistema) {\n\n\t\t\t\t\t\tString[] array = sistemaPerfis.split(\"/\");\n\n\t\t\t\t\t\tString sistema = array[0];\n\t\t\t\t\t\tString perfil = array[1];\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdadosPerfil(sistema, perfil);\n\t\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tresult = new Result(Result.Status.Failed);\n\t\t\t\t\t\t\tresult.add(\"TIPO APP SIASES UPDATE\" + e);\n\t\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\t\tlog.debug(\"ERRO UPDATE ADD SIASE USER: \"\n\t\t\t\t\t\t\t\t\t\t+ codUsuario);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tthrow new ConnectorException(\n\t\t\t\t\t\t\t\t\t\"ERRO UPDATE ADD SIASE USER: \" + e);\n\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tresult = new Result(Result.Status.Failed);\n\t\t\t\t\t\t\tresult.add(\"TIPO APP SIASES UPDATE\" + e);\n\t\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\t\tlog.debug(\"ERRO UPDATE ADD SIASE USER: \"\n\t\t\t\t\t\t\t\t\t\t+ codUsuario);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tthrow new ConnectorException(\n\t\t\t\t\t\t\t\t\t\"ERRO UPDATE ADD SIASE USER: \" + e);\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\t\tlog.debug(\"ERRO UPDATE ADD SIASE USER: \"\n\t\t\t\t\t\t\t\t\t\t+ codUsuario);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tthrow new ConnectorException(\n\t\t\t\t\t\t\t\t\t\"ERRO UPDATE ADD SIASE USER: \" + e);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tnumPerfil = nuPerfil;\n\t\t\t\t\t\tcodSistema = sistema;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\t\tlog.debug(\"UPDADE ADD - <CodUsuario: \"\n\t\t\t\t\t\t\t\t\t\t+ codUsuario + \"> <CodSistema: \"\n\t\t\t\t\t\t\t\t\t\t+ codSistema + \"> <nomUsuario: \"\n\t\t\t\t\t\t\t\t\t\t+ nomUsuario + \"> <icStatu: \" + icStatu\n\t\t\t\t\t\t\t\t\t\t+ \"> <icType: \" + icType\n\t\t\t\t\t\t\t\t\t\t+ \"> <codSenha: \" + codSenha\n\t\t\t\t\t\t\t\t\t\t+ \"> <numPerfil: \" + numPerfil\n\t\t\t\t\t\t\t\t\t\t+ \"> <operacao: \" + operacao + \">\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcreateUser(codSistema, codUsuario, nomUsuario,\n\t\t\t\t\t\t\t\t\ticStatu, icType, codSenha, numPerfil,\n\t\t\t\t\t\t\t\t\toperacao);\n\n\t\t\t\t\t\t\tresult = new Result(Result.Status.Committed);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tresult = new Result(Result.Status.Failed);\n\t\t\t\t\t\t\tresult.add(\"TIPO APP SIASES UPDATE\" + e);\n\n\t\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\t\tlog.debug(\"ERRO UPDATE ADD SIASE USER: \"\n\t\t\t\t\t\t\t\t\t\t+ codUsuario);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tthrow new ConnectorException(\n\t\t\t\t\t\t\t\t\t\"ERRO UPDATE ADD SIASE USER: \" + e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase Remove: {\n\n\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\tlog.debug(\"UPDATE - REMOVE\");\n\n\t\t\t\t\t}\n\t\t\t\t\tif (name.equalsIgnoreCase(sisPerfil)) {\n\n\t\t\t\t\t\tfor (Object sistemaPerfil : valueList) {\n\t\t\t\t\t\t\tString sistemaPerfis = sistemaPerfil.toString();\n\n\t\t\t\t\t\t\tarrayPerfilSistema.add(sistemaPerfis);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\tfor (String sistemaPerfis : arrayPerfilSistema) {\n\n\t\t\t\t\t\t\t\tString[] array = sistemaPerfis.split(\"/\");\n\n\t\t\t\t\t\t\t\tString sistema = array[0];\n\n\t\t\t\t\t\t\t\tcodSistema = sistema;\n\n\t\t\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\t\t\tlog.debug(\"UPDADE - REMOVER <\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"CodUsuario: \" + codUsuario\n\t\t\t\t\t\t\t\t\t\t\t+ \"> <CodSistema: \" + codSistema\n\t\t\t\t\t\t\t\t\t\t\t+ \">\");\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tdesvincularGrupo(codSistema, codUsuario);\n\n\t\t\t\t\t\t\t\tresult = new Result(Result.Status.Committed);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tresult = new Result(Result.Status.Failed);\n\t\t\t\t\t\t\tresult.add(\"TIPO APP SIASES \" + e);\n\n\t\t\t\t\t\t\tif (isDebug == true) {\n\t\t\t\t\t\t\t\tlog.debug(\"ERRO UPDATE REMOVE SIASE USER: \"\n\t\t\t\t\t\t\t\t\t\t+ codUsuario);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tthrow new ConnectorException(\n\t\t\t\t\t\t\t\t\t\"ERRO UPDATE REMOVE SIASE USER: \" + e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Set: {\n\n\t\t\t\t\t// existing.put(name, valueList.get(0).toString());\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalArgumentException(\"Unknown operation: \"\n\t\t\t\t\t\t\t+ op);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"int updateByPrimaryKeyWithBLOBs(Goods record);",
"public void updateList(List<T> ListObject) throws DaoException;",
"int updateByPrimaryKeySelective(NjOrderWork2 record);",
"@Override\n public int bathSave(List<T> entitys) throws Exception {\n return mapper.insertList(entitys);\n }",
"int updateByPrimaryKey(Collect record);",
"public void update() {\n manager.update();\n }",
"@Test\n public void testBatchMerge() throws Exception {\n final int BATCH_SIZE = 7;\n try (Connection con = GridCacheDynamicLoadOnClientTest.connect(GridCacheDynamicLoadOnClientTest.clientNode);Statement stmt = con.createStatement()) {\n for (int idx = 0, i = 0; i < BATCH_SIZE; ++i , idx += i) {\n stmt.addBatch((((((((((((\"merge into \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)) + \" (_key, name, orgId) values (\") + (100 + idx)) + \",\") + \"'\") + \"batch-\") + idx) + \"'\") + \",\") + idx) + \")\"));\n }\n int[] updCnts = stmt.executeBatch();\n assertEquals(\"Invalid update counts size\", BATCH_SIZE, updCnts.length);\n }\n }",
"@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}",
"public int update(StoreFeedBack storeFeedBack);",
"private void updateSuiteItems(String rowDatas, CustomSuite newCustomSuite) {\n List<SuiteItem> suiteItems = newCustomSuite.suiteItems;\n //创建一个List容器记录原来的 明细ID\n List<Long> itemIds = new ArrayList<>();\n for (SuiteItem suiteItem : suiteItems) {\n if(!suiteItem.deleted)\n itemIds.add(suiteItem.id);\n }\n\n String[] rowData = rowDatas.split(\";\");\n SuiteItem suiteItem;\n CustomStockItem customStockItem;\n for (String data : rowData) {\n String[] datas = data.split(\",\");\n if (datas.length > 1) {\n long id = Long.valueOf(datas[0]);\n if (id != 0) {\n if(itemIds.contains(id)){\n //update\n suiteItem = suiteItemRepository.findOne(id);\n if (datas[2].equals(\"true\")) {\n suiteItem.times = -1;\n } else {\n suiteItem.times = Integer.valueOf(datas[3]);\n }\n suiteItem.cost = Double.valueOf(datas[4]);\n itemIds.remove(id);//更新一个后 从Id集合中移除\n }\n } else {\n //新增\n\n customStockItem = customStockItemRepository.findOne(Long.valueOf(datas[1]));\n\n List<SuiteItem> isHasOne = suiteItemRepository.findBySkuItemAndCostAndDeleted(customStockItem, Double.valueOf(datas[4]), true);\n if(isHasOne != null && isHasOne.size()>0 ){\n isHasOne.get(0).deleted = false;\n if (datas[2].equals(\"true\")) {\n isHasOne.get(0).times = -1;\n } else {\n isHasOne.get(0).times = Integer.valueOf(datas[3]);\n }\n }else{\n suiteItem = new SuiteItem();\n suiteItem.skuItem = customStockItem;\n if (datas[2].equals(\"true\")) {\n suiteItem.times = -1;\n } else {\n suiteItem.times = Integer.valueOf(datas[3]);\n }\n suiteItem.cost = Double.valueOf(datas[4]);\n suiteItems.add(suiteItem);\n suiteItemRepository.save(suiteItem);\n }\n }\n }\n }\n //rowData操作完成\n for (Long itemId : itemIds) {\n SuiteItem deleteOne = suiteItemRepository.findOne(itemId);\n deleteOne.deleted = true;\n }\n// return suiteItems;\n }",
"int updateByPrimaryKeyWithBLOBs(Forumpost record);",
"@Action(value=\"update\",results={@Result(name=\"queryAll\",location=\"/zjwqueryMange.jsp\")})\n\tpublic String update()\n\t{\n\t\tkehuDAO.update(kehu);\n\t\t//查询 id kehu\n\t\tkehuList = (ArrayList) kehuDAO.findAll();\n\t\treturn \"queryAll\";\n\t}",
"public void executeUpdate();",
"int insertBatch(List<SystemRoleUserMapperMo> list);",
"public boolean isFromMassUpdate();",
"int updateByPrimaryKeySelective(AdminTab record);",
"int updateByPrimaryKeyWithBLOBs(DashboardGoods record);",
"Item update(Item item);",
"int updateByPrimaryKeyWithBLOBs(BookInfo record);",
"public static String bulk(String updateBulkAsString) {\n /**\n * This is a BULK could look like\n * { \"update\" : {\"_id\" : \"2\", \"_type\" : \"tweet\", \"_index\" : \"twitter\"} }\n * { \"doc\" : {\"field\" : \"value\"}, \"doc_as_upsert\" : true }\n * { \"update\" : {\"_id\" : \"3\", \"_type\" : \"tweet\", \"_index\" : \"twitter\"} }\n * { \"doc\" : {\"field\" : \"value\"}, \"doc_as_upsert\" : true }\n * { \"update\" : {\"_id\" : \"4\", \"_type\" : \"tweet\", \"_index\" : \"twitter\"} }\n * { \"doc\" : {\"field\" : \"value\"}, \"doc_as_upsert\" : true }\n */\n final String apiString = \"_bulk\";\n return ElasticRestClient.post(\"you-can-let\", \"this-here\", apiString, updateBulkAsString);\n }",
"@Override\n public void syncUserData() {\n\n List<User> users = userRepository.getUserList();\n List<LdapUser> ldapUsers = getAllUsers();\n Set<Integer> listUserIdRemoveAM = new HashSet<>();\n\n //check update or delete \n for (User user : users) {\n boolean isDeleted = true;\n for (LdapUser ldapUser : ldapUsers) {\n if (user.getUserID().equals(ldapUser.getUserID())) {\n // is updateours\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n \n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n checkChangeDepartment(user, department, listUserIdRemoveAM);\n \n userRepository.editUser(user);\n \n isDeleted = false;\n break;\n }\n }\n if (isDeleted) {\n user.setIsDeleted((byte) 1);\n user.setActive((byte) 0);\n userRepository.editUser(user);\n }\n }\n\n //check new user\n for (LdapUser ldapUser : ldapUsers) {\n boolean isNew = true;\n for(User user : users){\n if(ldapUser.getUserID().equals(user.getUserID())){\n isNew = false;\n break;\n }\n }\n if(isNew){\n logger.debug(\"Is new User userID = \"+ldapUser.getUserID());\n User user = new User();\n user.setUserID(ldapUser.getUserID());\n user.setStaffCode(ldapUser.getUserID());\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setCreatedAt(Utils.getCurrentTime());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setActive((byte) 1);\n user.setIsDeleted((byte) 0);\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n user.setRoleId(4);\n user.setApprovalManagerId(0);;\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n\n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n user.setDepartmentId(department == null ? 0 : department.getId());\n \n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n \n userRepository.addUser(user);\n logger.debug(\"Is new User id = \"+user.getId());\n }\n }\n \n //Remove AprovalManager out User\n for(Integer userId : listUserIdRemoveAM){\n if(userId == null) continue;\n User userRemoveAMId = userRepository.getUserById(userId);\n userRemoveAMId.setApprovalManagerId(0);\n userRepository.editUser(userRemoveAMId);\n }\n }",
"public void update(ItemsPk pk, Items dto) throws ItemsDaoException;",
"void update ( priorizedListObject v ) throws DAOException;",
"int updateByPrimaryKey(NjOrderWork2 record);",
"public List<SalePurchase> multiUpdateSPEntries(List<SalePurchase> spEntriesParam) {\n\t\tfor(SalePurchase st : spEntriesParam){\n\t\t\tif(st.getSPId() > 0){\n\t\t\t\tsalePurchaseEntries.put(st.getSPId(),st);\n\t\t\t}\n\t\t}\n\t\t//System.out.println(spEntriesParam);\n\t\t/*System.out.println(salePurchaseEntries);*/\n\t\treturn new ArrayList<>(salePurchaseEntries.values());\n\t}",
"int updateByPrimaryKeySelective(Collect record);",
"public int delegateUpdateListTx(java.util.List<LdPublisher> entityList) {\r\n assertListNotNullAndEmpty(entityList);\r\n return getMyDao().updateList(entityList);\r\n }",
"protected void zBatchUpdateForSameSourceAttribute(List<UpdateOperation> updateOperations, BatchUpdateOperation batchUpdateOperation)\r\n {\r\n UpdateOperation firstOperation = updateOperations.get(0);\r\n MithraDataObject firstData = this.getDataForUpdate(firstOperation);\r\n Object source = this.getSourceAttributeValueFromObjectGeneric(firstData);\r\n DatabaseType databaseType = this.getDatabaseTypeGenericSource(source);\r\n\r\n if (databaseType.getUpdateViaInsertAndJoinThreshold() > 0 &&\r\n databaseType.getUpdateViaInsertAndJoinThreshold() < updateOperations.size() &&\r\n this.getFinder().getVersionAttribute() == null &&\r\n !batchUpdateOperation.isIncrement() &&\r\n batchUpdateOperation.isEligibleForUpdateViaJoin())\r\n {\r\n zBatchUpdateViaInsertAndJoin(updateOperations, source, databaseType);\r\n return;\r\n }\r\n if (this.hasOptimisticLocking())\r\n {\r\n if (this.getMithraObjectPortal().getTxParticipationMode().isOptimisticLocking() && !databaseType.canCombineOptimisticWithBatchUpdates())\r\n {\r\n //we'll do single updates\r\n for(int i=0;i<updateOperations.size();i++)\r\n {\r\n UpdateOperation updateOperation = updateOperations.get(i);\r\n zUpdate(updateOperation.getMithraObject(), updateOperation.getUpdates());\r\n }\r\n\r\n return;\r\n }\r\n }\r\n\r\n List firstUpdateWrappers = firstOperation.getUpdates();\r\n StringBuilder builder = new StringBuilder(30 + firstUpdateWrappers.size() * 12);\r\n builder.append(\"update \");\r\n builder.append(this.getFullyQualifiedTableNameGenericSource(source)).append(\" set \");\r\n for (int i = 0; i < firstUpdateWrappers.size(); i++)\r\n {\r\n AttributeUpdateWrapper wrapper = (AttributeUpdateWrapper) firstUpdateWrappers.get(i);\r\n if (i > 0)\r\n {\r\n builder.append(\", \");\r\n }\r\n builder.append(wrapper.getSetAttributeSql());\r\n }\r\n\r\n builder.append(this.getSqlWhereClauseForBatchUpdateForSameSourceAttribute(firstData));\r\n String sql = builder.toString();\r\n Connection con = null;\r\n PreparedStatement stm = null;\r\n\r\n try\r\n {\r\n con = this.getConnectionForWriteGenericSource(source);\r\n TimeZone databaseTimeZone = this.getDatabaseTimeZoneGenericSource(source);\r\n\r\n if (this.getSqlLogger().isDebugEnabled())\r\n {\r\n this.logWithSource(this.getSqlLogger(), source, \"batch update of \" + updateOperations.size() + \" objects with: \" + sql);\r\n }\r\n PrintablePreparedStatement pps = null;\r\n if (this.getBatchSqlLogger().isDebugEnabled())\r\n {\r\n pps = new PrintablePreparedStatement(sql);\r\n }\r\n stm = con.prepareStatement(sql);\r\n int batchSize = databaseType.getMaxPreparedStatementBatchCount(firstOperation.getUpdates().size() +\r\n this.getMithraObjectPortal().getFinder().getPrimaryKeyAttributes().length);\r\n if (batchSize < 0)\r\n {\r\n batchSize = updateOperations.size();\r\n }\r\n\r\n int objectsInBatch = 0;\r\n int batchStart = 0;\r\n for (int u = 0; u < updateOperations.size(); u++)\r\n {\r\n UpdateOperation operation = updateOperations.get(u);\r\n MithraDataObject data = this.getDataForUpdate(operation);\r\n if (this.getBatchSqlLogger().isDebugEnabled())\r\n {\r\n pps.clearParameters();\r\n int pos = operation.setSqlParameters(pps, databaseTimeZone, databaseType);\r\n this.setPrimaryKeyAttributes(pps, pos, data, databaseTimeZone, databaseType);\r\n this.logWithSource(this.getBatchSqlLogger(), source, \"batch updating with: \" + pps.getPrintableStatement());\r\n }\r\n int pos = operation.setSqlParameters(stm, databaseTimeZone, databaseType);\r\n this.setPrimaryKeyAttributes(stm, pos, data, databaseTimeZone, databaseType);\r\n operation.setUpdated();\r\n stm.addBatch();\r\n objectsInBatch++;\r\n\r\n if (objectsInBatch == batchSize)\r\n {\r\n this.executeBatchForUpdateOperations(stm, updateOperations, batchStart);\r\n objectsInBatch = 0;\r\n batchStart = u + 1;\r\n }\r\n }\r\n if (objectsInBatch > 0)\r\n {\r\n this.executeBatchForUpdateOperations(stm, updateOperations, batchStart);\r\n }\r\n stm.close();\r\n stm = null;\r\n\r\n String dbid = this.getDatabaseIdentifierGenericSource(source);\r\n getNotificationEventManager().addMithraNotificationEventForBatchUpdate(dbid, this.getFullyQualifiedFinderClassName(), MithraNotificationEvent.UPDATE, updateOperations, firstUpdateWrappers, source);\r\n }\r\n catch (SQLException e)\r\n {\r\n this.analyzeAndWrapSqlExceptionGenericSource(\"batch update failed \" + e.getMessage(), e, source, con);\r\n }\r\n finally\r\n {\r\n this.closeStatementAndConnection(con, stm);\r\n }\r\n\r\n }",
"@Override\n public <T extends IEntity> void persist(Iterable<T> entityIterable) {\n startCallContext(ConnectionReason.forUpdate);\n try {\n if (entityIterable.iterator().hasNext()) {\n for (T entity : entityIterable) {\n persist(tableModel(entity.getEntityMeta()), entity);\n }\n }\n } finally {\n endCallContext();\n }\n }",
"public static void updateItems(List<Item> items)\n\t{\n\t\tfor (int indexInItemList = 0; indexInItemList < items.size(); indexInItemList++)\n\t\t\tupdateAllItems(items.get(indexInItemList));\n\t}",
"int updateByPrimaryKey(Admin record);"
] | [
"0.6501865",
"0.64216936",
"0.6406371",
"0.6383435",
"0.6362267",
"0.634386",
"0.63228947",
"0.6288249",
"0.625554",
"0.62524587",
"0.62401104",
"0.619149",
"0.616547",
"0.6094194",
"0.60926783",
"0.6039844",
"0.6016413",
"0.5979378",
"0.5959936",
"0.5933564",
"0.5924951",
"0.59210384",
"0.59204596",
"0.589987",
"0.58903027",
"0.5875192",
"0.58737606",
"0.58490366",
"0.58381414",
"0.5827981",
"0.58237284",
"0.5803766",
"0.58017385",
"0.57885665",
"0.5777615",
"0.5769924",
"0.5750506",
"0.5750047",
"0.5748621",
"0.5745965",
"0.5730368",
"0.57250714",
"0.5719038",
"0.57130796",
"0.57124645",
"0.57119083",
"0.570092",
"0.5682402",
"0.5682402",
"0.5680184",
"0.5677868",
"0.5672269",
"0.567158",
"0.56681734",
"0.5660828",
"0.5643079",
"0.56281424",
"0.5624165",
"0.56196266",
"0.561615",
"0.5615789",
"0.56126934",
"0.5612001",
"0.5611879",
"0.5609322",
"0.56088245",
"0.5608053",
"0.55916023",
"0.5588932",
"0.55813366",
"0.5571574",
"0.55679077",
"0.5561638",
"0.55608374",
"0.555931",
"0.55398345",
"0.552601",
"0.5519143",
"0.55112433",
"0.55105627",
"0.5508672",
"0.55075467",
"0.5505737",
"0.55008686",
"0.5499503",
"0.5495732",
"0.5485223",
"0.54851574",
"0.548397",
"0.548206",
"0.54812026",
"0.54767936",
"0.54732484",
"0.5471274",
"0.5461029",
"0.546091",
"0.54604703",
"0.5458539",
"0.5458523",
"0.5456646"
] | 0.66525656 | 0 |
////////////////////////////////////// memento for manager ////////////////////////////////////// | String mementoFor(final ExcelModuleDemoToDoItemBulkUpdateManager tdieim) {
final Memento memento = mementoService.create();
memento.set("fileName", tdieim.getFileName());
memento.set("category", tdieim.getCategory());
memento.set("subcategory", tdieim.getSubcategory());
memento.set("completed", tdieim.isComplete());
return memento.asString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}",
"public interface Memento {\n\n}",
"public void saveState(IMemento memento) {\n\t\t\r\n\t}",
"protected ScheduleMemento getMemento() {\r\n\t\tScheduleMemento memento = new ScheduleMemento(schedule);\r\n\t\treturn memento;\r\n\t}",
"@Override\n public void managerWillStop() {\n }",
"public interface ItfMemento {\n\n}",
"@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }",
"public interface Manager {\n\n}",
"public void saveState() {\n mementos = new ArrayList<>(mementos.subList(0, statePointer + 1));\n Notebook notebookToAdd = new Notebook(this.notebook);\n notebookToAdd.setCurrentClassroom(this.notebook.getCurrentClassroom());\n Memento mementoToAdd = new Memento(notebookToAdd);\n mementos.add(mementoToAdd);\n statePointer++;\n }",
"public void save(){\r\n\t\tmanager.save(this);\r\n\t}",
"public void setMemento(EngineMemento m);",
"private void fecharConexao() {\n\t\t\n\t\tmanager.close();\n\t\t\n\t}",
"private UndoManager() {\n undoList = new LinkedHashMap<RefactoringSession, LinkedList<UndoItem>>();\n redoList = new LinkedHashMap<RefactoringSession, LinkedList<UndoItem>>();\n descriptionMap = new IdentityHashMap<LinkedList, String>();\n }",
"public Memento createMemento() \n\t{\n\t\treturn new Memento(state); \n\t}",
"@Override\n public void onFinish() {\n }",
"public interface Manager {\n void saveResponse();\n}",
"@Override\n\t\t\t\t\tpublic void onFinish() {\n\n\t\t\t\t\t}",
"public void restoreState(IMemento memento) {\n\t\t\r\n\t}",
"@Override\r\n public GenericManager<ViewListeEleve, Long> getManager() {\r\n return manager;\r\n }",
"@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"private EstabelecimentoTable() {\n\t\t\t}",
"@Override\n public void onFinish() {\n }",
"public manager() {\n initComponents();\n autoID();\n table_update();\n }",
"@Override\n\t\tpublic void onFinish() {\n\t\t\tfinalizar();\n\t\t}",
"@Override\r\n public void onFinish() {\n }",
"@Override\n public void dispose() {\n\n super.dispose();\n batch.dispose();\n manager.dispose();\n\n }",
"public EventGeneratorState getMemento() {\n synchronized(this) {\n return new EventGeneratorImplState(theOID, theTemplate,\n theHandback,\n theMarshalledListener,\n theSourceId,\n theSeqNum, theLeaseTime,\n theTxnId);\n }\n }",
"public void updateManager();",
"public void estDisponible() {\n\n\t}",
"@Override\n\tpublic void finish() {\n\n\t}",
"@Override\n\tpublic void finish() {\n\n\t}",
"@Override\n\tpublic void finish() {\n\n\t}",
"public Memento(PanelTablero inicial) {\n this.tableroGuardado = inicial;\n }",
"public void sendToManager(){\n String receiveMessage;\n while((receiveMessage=receiveFrom(messageReader)) != null){\n manager.manage(receiveMessage);\n }\n }",
"@Override\n public void commit() {\n }",
"@Override\n protected void end() {\n \n }",
"@Override\n public void onFinish() {\n\t\t\t\n }",
"public void actualizarContadores(){\n\t\tparent.refresqueContadores();\n\t}",
"public void managerAdded(ManagerEvent e);",
"public interface ManagerListener extends EventListener {\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager has joined the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerAdded(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's active model has been modified\r\n\t * to reflect a new design task.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerModelModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manager's output has been modified to \r\n\t * reflect a new set of inputs from designers.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerOutputModified(ManagerEvent e);\r\n\t\r\n\t/**\r\n\t * Method to notify that a manger has left the application.\r\n\t *\r\n\t * @param e the event\r\n\t */\r\n\tpublic void managerRemoved(ManagerEvent e);\r\n}",
"@Override\r\n\tpublic void done() {\n\t\t\r\n\t}",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t return em;\n\t}",
"@Override\r\n protected void end() {\r\n\r\n }",
"@Override\n public void onFinish() {\n WorldEdit.getInstance().getEventBus().register(new me.ddevil.mineme.mines.MineManager.WorldEditManager());\n registerBaseCommands();\n if (useMVdWPlaceholderAPI) {\n try {\n MVdWPlaceholderManager.setupPlaceholders();\n } catch (Exception ex) {\n printException(\"There was an error creting MVdWPlaceholder! Skipping\", ex);\n }\n }\n if (convertMineResetLite) {\n MineMe.instance.debug(\"Converting MineResetLite...\", true);\n MRLConverter.convert();\n MineMe.instance.debug(\"Converted MineResetLite!\", true);\n }\n debug(\"Starting metrics...\", 3);\n try {\n Metrics metrics = new Metrics(MineMe.this);\n metrics.start();\n debug(\"Metrics started!\", 3);\n } catch (IOException ex) {\n printException(\"There was an error start metrics! Skipping\", ex);\n }\n Bukkit.getScheduler().scheduleSyncDelayedTask(instance, new Runnable() {\n\n @Override\n public void run() {\n debug(\"Starting MineEditorGUI...\", 3);\n GUIManager.setup();\n debug(\"MineEditorGUI started!\", 3);\n }\n }, 2l);\n }",
"private void saveCurrentObject() {\n\t}",
"@Override\n protected void end() {\n\n }",
"@Override\n\tpublic void finish() {\n\t\t\n\t}",
"@Override\n\tpublic void posModify() {\n\t\tgetEntityManager().refresh(instance);\n\t\tcambiarTipoCuenta(instance);\n\t\tgetEntityManager().flush();\n\t\tgetEntityManager().refresh(instance);\n\t\tresultList = null;\n\t\trootNode = null;\n\t}",
"public abstract void commitMiembrosDeEquipo();",
"@Override\n \tpublic void finished()\n \t{\n \t}",
"@Override\n public void onFinish() {\n }",
"@Override\n\tpublic void commit() {\n\n\t}",
"@Override\n public GenericManager<Societe, Long> getManager() {\n return manager;\n }",
"public void handleFinish()\n {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n protected void end() {\n }",
"@Override\n\tpublic void onEndGererCommande()\n\t{\n\t\t\n\t}",
"@Override\n\t\tpublic void onFinish() {\n\t\t}",
"@Override\r\n\tpublic EntityManager getEntityManger() {\n\t\treturn em;\r\n\t}",
"@Override\r\n\tpublic void onDestory() {\n\t\t\r\n\t}",
"public DataManage() {\r\n\t\tsuper();\r\n\t}",
"protected abstract void postDestroy();",
"@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}",
"public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }",
"public ChunkManager() {\n instance = this;\n\n durabilityDir = new File(ObsidianDestroyer.getInstance().getDataFolder(), \"data\" + File.separator + \"durabilities\");\n if (!durabilityDir.exists()) {\n durabilityDir.mkdirs();\n }\n\n load();\n }",
"@Override\n protected EntityManager getEntityManager() {\n return em;\n }",
"public void EliminarManager() {\n\n\t\tsendSelect(DELETE_SQL_MANAGER);\n\n\t}",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn em;\n\t}",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn em;\n\t}",
"public void finish() {\n\t\tPositionVo v = new PositionVo(1d, 0d, 0d, 0d, 0d, 0d, 0d);\n\t\tmanager.canvas.setJoneDoe(v, new Point(0, 0), Direction.NONE);\n\t\tstopTimer();\n\t\tfree();\n\t\tmanager.iWait();\n\t}",
"@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autEndProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void dispose() {\n\n }",
"@Override\r\n public void destroy() {\n\r\n }",
"private void finish() {\n }",
"@Override\n public void run() {\n mSaveOnDetach = false;\n\n if (mModification == Utils.MODIFY_UNINITIALIZED) {\n mModification = Utils.MODIFY_ALL;\n }\n boolean isInsert = mEvent.eventType.equals(Intent.ACTION_INSERT);\n if ((mCode & Utils.DONE_SAVE) != 0\n && mModel != null\n && ((mOriginalModel != null && !isInsert)\n || (mOriginalModel == null && isInsert))\n && mView.prepareForSave()) {\n\n int validity = mModel.getValidity();\n if (validity != 0) {\n mView.setValidity(validity);\n return;\n }\n\n if (mHelper.savePlanet(mModel, mOriginalModel)) {\n mView.setViewStates(Utils.MODIFY_UNINITIALIZED);\n mIsEditable = false;\n return;\n }\n }\n\n if ((mCode & Utils.DONE_DELETE) != 0 && mOriginalModel != null) {\n DeletePlanetHelper deleteHelper = new DeletePlanetHelper(mActivity);\n deleteHelper.registerDeleteNotifyListener(deleteNotifyListener);\n deleteHelper.delete(mOriginalModel);\n return;\n }\n\n if ((mCode & Utils.DONE_EXIT) != 0) {\n // This will exit the edit planet screen, should be called\n // when we want to return to the main planet view\n Activity a = EditPlanetFragment.this.getActivity();\n if (a != null) {\n Intent returnIntent = new Intent();\n a.setResult(Activity.RESULT_OK, returnIntent);\n a.finish();\n }\n }\n\n // Hide a software keyboard so that user won't see it even after this Fragment's\n // disappearing.\n/* final View focusedView = mActivity.getCurrentFocus();\n if (focusedView != null) {\n mInputMethodManager.hideSoftInputFromWindow(focusedView.getWindowToken(), 0);\n focusedView.clearFocus();\n }*/\n }",
"private void writeBufferManager(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException {\n USE_DISK_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n INLINE_LOBS.marshallAsAttribute(node, false, writer);\n PROCESSOR_BATCH_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MAX_PROCESSING_KB_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MAX_FILE_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MAX_BUFFER_SPACE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MAX_OPEN_FILES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MEMORY_BUFFER_SPACE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n MEMORY_BUFFER_OFFHEAP_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n ENCRYPT_FILES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n //values need adjusted\n writeAdjustedValue(writer, node, MAX_RESERVED_KB_ATTRIBUTE);\n writeAdjustedValue(writer, node, MAX_STORAGE_OBJECT_SIZE_ATTRIBUTE);\n\n BUFFER_MANAGER_USE_DISK_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_INLINE_LOBS.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_PROCESSOR_BATCH_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_PROCESSING_KB_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_RESERVED_MB_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_FILE_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_BUFFER_SPACE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_OPEN_FILES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MEMORY_BUFFER_SPACE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MEMORY_BUFFER_OFFHEAP_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_MAX_STORAGE_OBJECT_SIZE_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n BUFFER_MANAGER_ENCRYPT_FILES_ATTRIBUTE.marshallAsAttribute(node, false, writer);\n }",
"@Override\n\t\tpublic void done() {\n\n\t\t}",
"@Override\r\n\t\t\t\tpublic void autEndProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autEndProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"protected void finish() {\n }",
"public TManagerImp() {\n transactions = new ConcurrentHashMap<>();\n }",
"public int getManagerID() { return managerID; }",
"@Override\n \t\t\tpublic void dispose() {\n \n \t\t\t}"
] | [
"0.6442822",
"0.6312318",
"0.60508984",
"0.6011507",
"0.59332484",
"0.5831834",
"0.571447",
"0.570573",
"0.56241935",
"0.56218433",
"0.5585428",
"0.55171907",
"0.54689986",
"0.54643244",
"0.5427521",
"0.53689736",
"0.53687465",
"0.5367889",
"0.5345889",
"0.53453374",
"0.53453374",
"0.53411657",
"0.53411657",
"0.53411657",
"0.5323471",
"0.5311634",
"0.53075147",
"0.5296072",
"0.5284533",
"0.52367944",
"0.5226559",
"0.52257544",
"0.5220514",
"0.5213453",
"0.5213453",
"0.5213453",
"0.5209714",
"0.52052015",
"0.5201373",
"0.52004147",
"0.51942676",
"0.5189435",
"0.518657",
"0.51838416",
"0.5179508",
"0.5176429",
"0.5173725",
"0.5170879",
"0.51632",
"0.51582247",
"0.51542956",
"0.5139317",
"0.5136781",
"0.513654",
"0.51354647",
"0.5129577",
"0.5123578",
"0.5122142",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5121594",
"0.5120577",
"0.51178133",
"0.5116669",
"0.51158273",
"0.51010233",
"0.5092547",
"0.50915635",
"0.50909185",
"0.50828373",
"0.5076606",
"0.50703937",
"0.5070152",
"0.5070152",
"0.5066906",
"0.50661844",
"0.50661844",
"0.50661844",
"0.50661844",
"0.50661844",
"0.5060646",
"0.50591755",
"0.50590545",
"0.5054812",
"0.50548065",
"0.5054432",
"0.50493926",
"0.50493926",
"0.5041069",
"0.5041045",
"0.5040452",
"0.50358534"
] | 0.0 | -1 |
////////////////////////////////////// memento for line item ////////////////////////////////////// | String mementoFor(ExcelModuleDemoToDoItemBulkUpdateLineItem lineItem) {
final Memento memento = mementoService.create();
memento.set("toDoItem", bookmarkService.bookmarkFor(lineItem.getToDoItem()));
memento.set("description", lineItem.getDescription());
memento.set("category", lineItem.getCategory());
memento.set("subcategory", lineItem.getSubcategory());
memento.set("cost", lineItem.getCost());
memento.set("complete", lineItem.isComplete());
memento.set("dueBy", lineItem.getDueBy());
memento.set("notes", lineItem.getNotes());
memento.set("ownedBy", lineItem.getOwnedBy());
return memento.asString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OMAbstractLine() {\n super();\n }",
"@Override\n public Line getLine() {\n return line;\n }",
"public synchronized void resetLineItems() {\n lineItems = null;\n }",
"void saveLineItem(LineItem lineItem);",
"@Override\r\n protected Shape getRawShape(VisualItem item) {\r\n m_line.setLine(item.getX(), item.getY(), item.getDouble(VisualItem.X2),\r\n item.getDouble(VisualItem.Y2));\r\n return m_line;\r\n }",
"@Override\n\tpublic int getLineType() {\n\t\treturn 0;\n\t}",
"public int getLine() {return _line;}",
"public void endLine() {\n if (currentLine != null) {\n lines.add(currentLine);\n currentLine = null;\n }\n }",
"public void generateLineItems(){\n for(int i=0; i<purch.getProdIdx().length; i++){\r\n \r\n prod= new Product(db.getProductDbItem(purch.getProductItem(i)));\r\n \r\n LineItem[] tempL=new LineItem[lineItem.length+1];\r\n System.arraycopy(lineItem,0,tempL,0,lineItem.length);\r\n lineItem=tempL;\r\n lineItem[lineItem.length-1]= new LineItem(prod.getProdId(),purch.getQtyAmtItm(i), \r\n prod.getProdUnitPrice(), prod.getProdDesc(), prod.getProdDiscCode()); \r\n totalPurch += (purch.getQtyAmtItm(i) * prod.getProdUnitPrice());\r\n totalDisc += lineItem[lineItem.length-1].getDiscAmt();\r\n \r\n }\r\n }",
"private void finishLine(MouseEvent e) {\n\t\txEnd = e.getX();\n\t\tyEnd = e.getY();\n\t}",
"Line createLine();",
"public List getPoLineItems() {\r\n return poLineItems;\r\n }",
"public Line getLine()\n {\n return line;\n }",
"@Override\n public void delete(LineEntity entity) {\n\n }",
"public void setOrderLine (MOrderLine oLine, int M_Locator_ID, BigDecimal Qty)\n\t{\n\t\tMOrgPOS orgpos = MOrgPOS.getOrgPos(getCtx(), oLine.getParent().getAD_Org_ID(), get_Trx());\n\t\tif(M_Locator_ID > 0 && (oLine.getParent().getC_DocTypeTarget_ID() == orgpos.getDocType_Ticket_ID()))\n\t\t\tM_Locator_ID = oLine.get_ValueAsInt(\"M_Locator_ID\")>0?oLine.get_ValueAsInt(\"M_Locator_ID\"):orgpos.getM_LocatorStock_ID();\n\t\tsetC_OrderLine_ID(oLine.getC_OrderLine_ID());\n\t\tsetLine(oLine.getLine());\n\t\tsetC_UOM_ID(oLine.getC_UOM_ID());\n\t\tMProduct product = oLine.getProduct();\n\t\tif (product == null)\n\t\t{\n\t\t\tsetM_Product_ID(0);\n\t\t\tsetM_AttributeSetInstance_ID(0);\n\t\t\tsuper.setM_Locator_ID(0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetM_Product_ID(oLine.getM_Product_ID());\n\t\t\tsetM_AttributeSetInstance_ID(oLine.getM_AttributeSetInstance_ID());\n\t\t\t//\n\t\t\tif (product.isItem())\n\t\t\t{\n\t\t\t\tif (M_Locator_ID == 0)\n\t\t\t\t\tsetM_Locator_ID(Qty);\t//\trequires warehouse, product, asi\n\t\t\t\telse\n\t\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t\t}\n\t\t\telse\n\t\t\t\tsuper.setM_Locator_ID(0);\n\t\t}\n\t\tsetC_Charge_ID(oLine.getC_Charge_ID());\n\t\tsetDescription(oLine.getDescription());\n\t\tsetIsDescription(oLine.isDescription());\n\t\t//\n\t\tsetAD_Org_ID(oLine.getAD_Org_ID());\n\t\tsetC_Project_ID(oLine.getC_Project_ID());\n\t\tsetC_ProjectPhase_ID(oLine.getC_ProjectPhase_ID());\n\t\tsetC_ProjectTask_ID(oLine.getC_ProjectTask_ID());\n\t\tsetC_Activity_ID(oLine.getC_Activity_ID());\n\t\tsetC_Campaign_ID(oLine.getC_Campaign_ID());\n\t\tsetAD_OrgTrx_ID(oLine.getAD_OrgTrx_ID());\n\t\tsetUser1_ID(oLine.getUser1_ID());\n\t\tsetUser2_ID(oLine.getUser2_ID());\n\t}",
"protected abstract MS_LineBuilder prepareContent(MS_LineBuilder lb);",
"public CustMnjOntSoObinSizline_LineEOImpl() {\n }",
"public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }",
"private void addToLineItem(LineItem newLineItem) {\r\n LineItem[] tempItems = new LineItem[lineItems.length + 1];\r\n System.arraycopy(lineItems, 0, tempItems, 0, lineItems.length);\r\n tempItems[lineItems.length] = newLineItem;\r\n lineItems = tempItems;\r\n }",
"public int getLinePos() {\n return linePos;\n }",
"void endLine() {\n\t\tif (loaded != null && loaded.length() > 0) {\n\t\t\tlineContainer.set(loaded.toString());\n\t\t}\n\t\tloaded = new StringBuilder();\n\t}",
"public abstract AbstractLine newLine() throws IOException;",
"public void newBufLine() {\n this.buffer.add(new ArrayList<Integer>());\n this.columnT = 0;\n this.lineT++;\n }",
"public Timeline getLineMovement()\r\n {\r\n return timeline;\r\n }",
"@Override\r\n\tpublic void itemAdded() {\r\n\t\tif (sendLines.size() == 1){\r\n\t\t\tgrblPort.addNewLineListener(this);\r\n\t\t\tgrblPort.sendDataLine(sendLines.get(0));\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public int getIncline() { return incline; }",
"void markLine() {\n lineMark = cursor;\n }",
"public int getLineType() {\n return lineType;\n }",
"public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }",
"public void addItem(LineItem lineItem){\n\t\t\n\t\tlineItems.add(lineItem);\n\t}",
"public LineItem(Product product, int quantity) {\n this.product = product;\n this.quantity = quantity;\n }",
"protected abstract String childSavingTextLine();",
"public void addLineItem (LineItem lineItem){\n if (this.orderStatus != OrderStatus.Closed && !lineItem.isOrdered() && !lineItems.contains(lineItem)){\n lineItems.add(lineItem);\n total += lineItem.getPrice();\n lineItem.setOrdered(true);\n this.getAccount().setBalance(this.getAccount().getBalance() - lineItem.getPrice());\n }\n }",
"public ArrayList<LineItem> getLineItems(){\n\t\t\n\t\treturn lineItems;\n\t}",
"public void lineLayout(ME_ENUM me_enum, MouseEvent me) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n switch (me_enum) {\n case PRESSED: initializeDragVars(me); ui_inter = UI_INTERACTION.LINE_LAYOUT; repaint(); break;\n case DRAGGED: updateDragVars(me, true); repaint(); break;\n case RELEASED: updateDragVars(me, true); ui_inter = UI_INTERACTION.NONE;\n Set<String> set = myrc.filterEntities(getRTParent().getSelectedEntities());\n\t\t if (set != null && set.size() > 0) {\n\t\t // Calculate the line equation\n double dx = m_wx1 - m_wx0, dy = m_wy1 - m_wy0;\n\t\t double t = 0.0, inc = 1.0 / (set.size() - 1);\n\t\t // Sort the elements\n\t\t List<StrCountSorter> sorter = new ArrayList<StrCountSorter>();\n\t\t Iterator<String> it = set.iterator();\n\t\t while (it.hasNext()) {\n\t\t String entity = it.next();\n int total = (int) myrc.entity_counter_context.total(entity); \n\t\t\t sorter.add(new StrCountSorter(entity,total));\n\t\t }\n\t\t Collections.sort(sorter);\n\t\t // Do the layout\n\t\t for (int i=0;i<sorter.size();i++) {\n\t\t String entity = sorter.get(i).toString();\n\t\t entity_to_wxy.put(entity, new Point2D.Double(m_wx0 + t*dx, m_wy0 + t*dy));\n\t\t\t transform(entity);\n\t\t\t t += inc;\n\t\t }\n\t\t getRTComponent().render();\n\t\t }\n\t\t repaint(); break;\n\tcase CLICKED:\n\t\tbreak;\n\tcase MOVED:\n\t\tbreak;\n\tcase WHEEL:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }",
"public void flushCurrentLine()\n {\n line = null;\n }",
"public Line() {\r\n this.line = new ArrayList < Point > ();\r\n this.clickedPoint = null;\r\n this.direction = null;\r\n }",
"public Line(){\n\t\t\n\t}",
"public void setLine (int Line);",
"public String getLine() {\r\n\t\treturn content;\r\n\t}",
"public int line() {\r\n return line;\r\n }",
"private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}",
"void saveLineItemList(List<LineItem> lineItemList);",
"public Line() {\n \n this.buffer = new ArrayList<ArrayList<Integer>>();\n this.buffer.add(new ArrayList<Integer>());\n this.lineT = 0;\n this.columnT = 0;\n this.inputMode = false;\n }",
"@Override\n protected Class<LineEntity> getEntityClass() {\n return null;\n }",
"public void processRemoveLine() {\n AppYesNoDialogSingleton dialog = AppYesNoDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"Remove Line\", \"Are you sure you want to remove this line?\");\n \n // DO REMOVE LINE \n dataManager.removeLine();\n }",
"public LineItem(Pizza type) throws IllegalPizza {\n setNumber(1);\n setPizza(type);\n }",
"@Override\n\tprotected void endOfLine() {\n\t}",
"public MenuBox(MenuItem item , boolean line){\n\n getChildren().addAll(item);\n }",
"public POSLineItemWrapper(POSLineItemDetail detail) {\n this.id = detail.getLineItem().getItem().getId();\n this.desc = detail.getLineItem().getItemDescription();\n this.qty++;\n this.price = detail.getLineItem().getItemRetailPrice();\n this.isReturn = detail.getLineItem() instanceof com.chelseasystems.cr.pos.ReturnLineItem;\n this.vat = detail.getVatAmount();\n this.itemOriginalVat = detail.getLineItem().getNetAmount().multiply(detail.getLineItem().\n getItem().getVatRate().doubleValue()).round();\n Reduction[] reds = detail.getReductionsArray();\n for (int idx = 0; idx < reds.length; idx++) {\n String reason = reds[idx].getReason();\n // if(reason.equalsIgnoreCase(\"PRIVILEGE Discount\"))\n // {\n // privAmt = reds[idx].getAmount();\n // PrivilegeDiscount disc = getPrivilegeDiscount();\n // try\n // {\n // privPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"DRIVERS Discount\"))\n // {\n // coachAmt = reds[idx].getAmount();\n // DriversDiscount disc = getDriversDiscount();\n // try\n // {\n // coachPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"CONCESSIONAIRE Discount\"))\n // {\n // concessAmt = reds[idx].getAmount();\n // ConcessionaireDiscount disc = getConcessionaireDiscount();\n // try\n // {\n // concessPct = disc.getPercent(detail.getLineItem(), compositePOSTransaction.getStore().getId());\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else if(reason.equalsIgnoreCase(\"SETTLEMENT\"))\n // {\n // settleAmt = reds[idx].getAmount();\n // SettlementDiscount disc = getSettlementDiscount();\n // try\n // {\n // settlePct = disc.getPercent();\n // continue;\n // }\n // catch(Exception e)\n // {\n // }\n // }\n // else\n if (reason.equalsIgnoreCase(\"Manual Markdown\")) {\n manualAmt = reds[idx].getAmount();\n } else {\n promoAmt = reds[idx].getAmount();\n }\n }\n }",
"public void addItem(LineItem item)\r\n {\r\n\t ChangeEvent event = new ChangeEvent(this);\r\n\t if(items.contains(item))\r\n\t {\r\n\t\t \r\n\t\t counter = 0;\r\n\t\t items.add(item);\r\n\t\t //tem.addQuantity();\r\n\t\t //tem.getQuantity();\r\n\t\t for(int i = 0; i < items.size(); i++)\r\n\t\t {\r\n\t\t\t if(items.get(i).equals(item))\r\n\t\t\t {\r\n\t\t\t counter++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t\t System.out.print(\"\\r Quantity of \" + item.toString() + \": \"+ counter);\r\n\t\t \r\n\t }\r\n\t else\r\n\t {\r\n\t\t counter = 1;\r\n\t// item.addQuantity();\r\n\t// item.getQuantity();\r\n\t\t items.add(item);\r\n\t// System.out.println(item.getQuantity());\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t \t\r\n\t \tSystem.out.print(\"\\n Quantity of \" + item.toString() + \": \"+ counter);\r\n\t \r\n\t\t \r\n\t }\r\n\t\t\r\n \r\n }",
"@Override\n public LineEntity save(LineEntity entity) {\n return null;\n }",
"public abstract void newLine();",
"public void setLineNo (int LineNo);",
"private void pushSavedExpenseLineItem(){\n //Cursor cursor = getExpenseStatusCursor(SyncStatus.SAVED_REPORT);\n Cursor cursor = getSavedExpenseLineItemCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n do {\n final Long expenseBaseId = cursor.getLong(\n cursor.getColumnIndex(ExpenseEntry._ID));\n\n ExpenseLineItem expenseLineItem = new ExpenseLineItem();\n\n expenseLineItem.setDescription(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_DESCRIPTION)));\n\n expenseLineItem.setExpenseReportId(cursor.getInt(\n cursor.getColumnIndex(ExpenseEntry.COLUMN_REPORT_ID)));\n\n expenseLineItem.setExpenseDate(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_EXPENSE_DATE)));\n\n expenseLineItem.setCategory(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CATEGORY)));\n\n expenseLineItem.setCost(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_COST)));\n\n expenseLineItem.setHst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_HST)));\n expenseLineItem.setGst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_GST)));\n expenseLineItem.setQst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_QST)));\n expenseLineItem.setCurrency(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CURRENCY)));\n expenseLineItem.setRegion(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_REGION)));\n\n //TODO: receipt\n\n try {\n ERTRestApi.apiAddExpenseLineItem(\n expenseLineItem,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseLineItem expenseLineItemResponse =\n gson.fromJson(response.toString(),\n ExpenseLineItem.class\n );\n\n updateExpenseLineItemSyncStatus(expenseBaseId,\n SyncStatus.SYNCED\n );\n\n setExpenseLineItemValuesFromServer(\n expenseBaseId,\n expenseLineItemResponse\n );\n\n }\n },\n\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n\n Log.e(LOG_TAG, error.getMessage());\n\n }\n }\n );\n } catch (ERTRestApiException | JSONException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n\n updateExpenseLineItemSyncStatus(expenseBaseId,SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }",
"public int getType()\n {\n return LINE;\n }",
"public void onSetNewCurrentItem() {\n }",
"private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}",
"@Override\r\n\tpublic void actionSplitLine_actionPerformed(ActionEvent e) throws Exception {\n\t\t// kdtRWOItemSpEntry.getColumn(\"originalQty\").getStyleAttributes().\r\n\t\t// setHided(false);\r\n\r\n\t\tif (PublicUtils.isEmpty(editData.getString(\"id\"))) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"未保存工单,不允许分担!\"));\r\n\t\t}\r\n\t\tif (!PublicUtils.equals(getOprtState(), OprtState.EDIT)) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"非修改状态,不允许分担!\"));\r\n\t\t}\r\n\r\n\t\tInteger[] iSel = KDTableUtils.getSelectedRowIndex(kdtRWOItemSpEntry,\r\n\t\t\t\tfalse);\r\n\t\tint selRowIndex = iSel[0].intValue();\r\n\t\tIRow selRow = kdtRWOItemSpEntry.getRow(selRowIndex);\r\n\t\tTEnum tType = (TEnum) selRow.getCell(\"t\").getValue();\r\n\t\tIEnum iType = (IEnum) selRow.getCell(\"i\").getValue();\r\n\t\tBigDecimal unIssueQty = PublicUtils.getBigDecimal(selRow.getCell(\r\n\t\t\t\t\"unIssueQty\").getValue());\r\n\t\tBigDecimal qty = PublicUtils.getBigDecimal(selRow.getCell(\"qty\")\r\n\t\t\t\t.getValue());\r\n\t\tif (qty.compareTo(BIGDEC0) == 0) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"数量为0的数据行,不允许分担!\"));\r\n\t\t}\r\n\t\tif (PublicUtils.equals(TEnum.P, tType)\r\n\t\t\t\t&& unIssueQty.compareTo(BIGDEC0) != 0) { // 配件行\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"配件未完全出库,不允许分担!\"));\r\n\t\t}\r\n\t\tif (PublicUtils.equals(IEnum.X, iType)) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"\",\r\n\t\t\t\t\t\"已结账数据行,不允许分担!\"));\r\n\t\t}\r\n\t\tMap uictx = new HashMap();\r\n\t\tuictx.put(\"ui\", this);\r\n\t\tuictx.put(\"kdtable\", kdtRWOItemSpEntry);\r\n\t\tuictx.put(\"originalRow\", selRow);\r\n\t\tBigDecimal amount = PublicUtils.getBigDecimal(selRow.getCell(\"amount\")\r\n\t\t\t\t.getValue());\r\n\t\tString itemspName = (String) selRow.getCell(\"itemspName\").getValue();\r\n\t\tIUIFactory iUIFactory = UIFactory.createUIFactory(UIFactoryName.MODEL);\r\n\t\tIUIWindow iUIWindowSizesHEdit = iUIFactory.create(\r\n\t\t\t\tRepairWOAllocateExpenseUI.class.getName(), uictx);\r\n\t\tRepairWOAllocateExpenseUI allocateExpenseUI = (RepairWOAllocateExpenseUI) iUIWindowSizesHEdit\r\n\t\t\t\t.getUIObject();\r\n\t\tallocateExpenseUI.setUITitle(String.format(\"[%s]\", itemspName));\r\n\t\tiUIWindowSizesHEdit.show();\r\n\t\tfor (int i = 0; i < kdtRWOItemSpEntry.getRowCount(); i++) {\r\n\t\t\tIRow row = kdtRWOItemSpEntry.getRow(i);\r\n\t\t\tRepairWORWOItemSpEntryInfo itemSpEntryInfo = (RepairWORWOItemSpEntryInfo) row\r\n\t\t\t\t\t.getUserObject();\r\n\t\t\tif (itemSpEntryInfo != null\r\n\t\t\t\t\t&& PublicUtils.isEmpty(itemSpEntryInfo.getString(\"id\")))\r\n\t\t\t\titemSpEntryInfo.setId(BOSUuid.create(\"FF1F0E1A\"));\r\n\r\n\t\t}\r\n\r\n\t}",
"public abstract AbstractLine newLine(byte[] data) throws IOException;",
"public int getLine() {\r\n return line;\r\n }",
"public int getLine() {\n return line;\n }",
"@Override\n public PurchaseOrderLine getOrderLine(int index) {\n return orderLines.get(index);\n }",
"public LineItem(int num, Pizza type) throws IllegalPizza {\n setNumber(num);\n setPizza(type);\n }",
"public String getCustomLineItemId() {\n return this.customLineItemId;\n }",
"@Override\n\tpublic void redo() {\n\t\tthis.list.add(shape);\n\n\t}",
"void storeline(String linebuffer, fileInfo pinfo) {\n\t\tint linenum = ++pinfo.maxLine; /* note, no line zero */\n\t\tif (linenum > fileInfo.MAXLINECOUNT) {\n\t\t\tSystem.err.println(\"MAXLINECOUNT exceeded, must stop.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tpinfo.symbol[linenum] = node.addSymbol(linebuffer, pinfo == oldinfo,\n\t\t\t\tlinenum);\n\t}",
"public int getEndLine() {\r\n \r\n return endLine;\r\n }",
"public void setInvoiceLine (MInvoiceLine iLine, int M_Locator_ID, BigDecimal Qty)\n\t{\n\t\tsetC_OrderLine_ID(iLine.getC_OrderLine_ID());\n\t\tsetLine(iLine.getLine());\n\t\tsetC_UOM_ID(iLine.getC_UOM_ID());\n\t\tint M_Product_ID = iLine.getM_Product_ID();\n\t\tif (M_Product_ID == 0)\n\t\t{\n\t\t\tset_ValueNoCheck(\"M_Product_ID\", null);\n\t\t\tset_ValueNoCheck(\"M_Locator_ID\", null);\n\t\t\tset_ValueNoCheck(\"M_AttributeSetInstance_ID\", null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetM_Product_ID(M_Product_ID);\n\t\t\tsetM_AttributeSetInstance_ID(iLine.getM_AttributeSetInstance_ID());\t\t\t\n\t\t\tif (M_Locator_ID == 0)\n\t\t\t\tsetM_Locator_ID(Qty);\t//\trequires warehouse, product, asi\n\t\t\telse\n\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t}\n\t\tsetC_Charge_ID(iLine.getC_Charge_ID());\n\t\tsetDescription(iLine.getDescription());\n\t\tsetIsDescription(iLine.isDescription());\n\t\t//\n\t\tsetC_Project_ID(iLine.getC_Project_ID());\n\t\tsetC_ProjectPhase_ID(iLine.getC_ProjectPhase_ID());\n\t\tsetC_ProjectTask_ID(iLine.getC_ProjectTask_ID());\n\t\tsetC_Activity_ID(iLine.getC_Activity_ID());\n\t\tsetC_Campaign_ID(iLine.getC_Campaign_ID());\n\t\tsetAD_OrgTrx_ID(iLine.getAD_OrgTrx_ID());\n\t\tsetUser1_ID(iLine.getUser1_ID());\n\t\tsetUser2_ID(iLine.getUser2_ID());\n\t}",
"public int getLinePosition() {\n return linePosition;\n }",
"public void render(Graphics2D g, VisualItem item) \n {\n \tsuper.render(g, item);\n \t \t\n \t/*\n \t * \t\n \tEdgeItem edge = (EdgeItem)item;\n \t\n \tCallEdge callEdge = ReacherDisplay.Instance.getCallEdge(item); \n \t \n \t \n \tPathIterator itr = m_path.getPathIterator(null, 1.0);\n \t\n \titr.currentSegment(ptsArray);\n\t\tPoint2D start = new Point2D.Double(ptsArray[0], ptsArray[1]);\n\t\t\n \titr.next();\n \titr.currentSegment(ptsArray);\n\t\tPoint2D end = new Point2D.Double(ptsArray[0], ptsArray[1]);*/\n\n\t\t\n\t\t// Update the start and end of the line to the insersection with the methodNode box\t\t\n /*GraphicsLib.intersectLineRectangle(start, end, edge.getSourceItem().getBounds(), pts);\n start = new Point2D.Double(pts[0].getX(), pts[0].getY()); \n GraphicsLib.intersectLineRectangle(start, end, edge.getTargetItem().getBounds(), pts);\t\n\t\tend = new Point2D.Double(pts[0].getX(), pts[0].getY());;*/\n\t\t\t\t\n\t\t/*double width = end.getX() - start.getX();\n\t\tboolean slopedUpward = end.getY() > start.getY(); // Is the line sloped upward (in y coordinate space which increases down)\n\t\tdouble height = slopedUpward ? end.getY() - start.getY() : start.getY() - end.getY();\n */\n \n/* getAlignedPoint(m_tmpPoints[0], item1.getBounds(),\n m_xAlign1, m_yAlign1);\n getAlignedPoint(m_tmpPoints[1], item2.getBounds(),\n m_xAlign2, m_yAlign2);*/\n\t\t \t \t\n \t/*int pathCount = callEdge.getPathCount(); \t\n \tif (pathCount > 1)\n \t{\n \t\tdouble xCenter = start.getX() + width * 1.0;\n \t\tdouble yCenter = start.getY() + (slopedUpward ? 1 : -1) * height * 1.0; \t\t\n \t\tdrawText(g, xCenter, yCenter, item, \"\" + pathCount, true);\n \t}*/\n }",
"public void setEditedItem(Object item) {editedItem = item;}",
"public String getLine ()\n {\n return line;\n }",
"public void setLineType(int lype) {\n lineType = lype;\n }",
"public MInOutLine getLine()\n\t{\n\t\tif (m_line == null)\n\t\t\tm_line = new MInOutLine (getCtx(), getM_InOutLine_ID(), get_TrxName());\n\t\treturn m_line;\n\t}",
"public int getLine() {\n return line;\n }",
"@Override\n\tpublic Pair<String, LineageItem> getLineageItem(ExecutionContext ec) {\n\t\tif( ec.getLineage() == null ) {\n\t\t\treturn Pair.of(output.getName(), new LineageItem(\n\t\t\t\tProgramConverter.serializeDataObject(input1.getName(), ec.getCacheableData(input1)), \"cache_rblk\"));\n\t\t}\n\t\t//default reblock w/ active lineage tracing\n\t\treturn super.getLineageItem(ec);\n\t}",
"public int getLine() {\r\n\t\treturn line;\r\n\t}",
"@Override\n public void forceIncrementModificationCounter(LineEntity entity) {\n\n }",
"public abstract int getLastItemSlot();",
"protected void printTextLineDetailWithLineNumber(ProcureLineItem lineItem, PrintWriter out, String uomStr, Locale locale)\r\r\n {\r\r\n\t\tLog.customer.debug(\"%s *** printTextLineDetailWithLineNumber!\",THISCLASS);\r\r\n\r\r\n Fmt.F(out, \"%s\", Fmt.Sil(locale, \"resource.ordering\", \"ItemQtyUOMAmount\", Integer.toString(lineItem.getNumberInCollection()),\r\r\n \t\t\t\t\t\t\t\t\tBigDecimalFormatter.getStringValue(lineItem.getQuantity(), locale),\r\r\n \t\t\t\t\t\t\t\t\tuomStr,\r\r\n \t\t\t\t\t\t\t\t\tMoneyFormatter.getStringValue(lineItem.getDescription().getPrice(), locale, null, true, PRECISION),\r\r\n \t\t\t\t\t\t\t\t\tlineItem.getAmount().asString()));\r\r\n Fmt.F(out, \"%s\", Fmt.Sil(locale, \"resource.ordering\", \"DescriptionLine\", lineItem.getDescription().getDescription()));\r\r\n }",
"public String getline() {\n\t\treturn _line;\n\t}",
"void resetLine() {\n eof = (cursor == lineMark);\n cursor = lineMark;\n }",
"@Override\n\tpublic boolean isMyLine() {\n\t\treturn false;\n\t}",
"protected abstract void makeItem();",
"public void setLine(int line);",
"public String getLine() {\n return this.line;\n }",
"private void processToDoItem(String line) {\n String[] items = line.split((\"\\\",\\\"\"));\n // Skip the invalid line\n if (items.length != this.headerMap.size()) {\n System.out.println(String.format(\"The line %s has wrong columns. Please fix it!\", line));\n return;\n }\n\n HashMap<String, String> mappingTable = new HashMap<>();\n for (int i = 0; i < items.length; i++) {\n String item = items[i].replaceAll(\"\\\"\", \"\");\n item = item.equals(\"?\") ? null : item;\n mappingTable.put(headerMap.get(i), item);\n }\n ToDoItem todo = this.parseToDoItem(mappingTable);\n this.toDoList.addExistingToDo(Integer.parseInt(mappingTable.get(\"id\")), todo);\n }",
"public int getLine() { return cl; }",
"public void setLinePos(int linePos) {\n this.linePos = linePos;\n }",
"public void addLine(Dialog line) {\n\t\tArrayList<Dialog> temp = new ArrayList<Dialog>();\n\t\ttemp.add(line);\n\t\tdecoupleGenericLines(temp);\n\t\tDialogueSystem.GLOBAL_DIALOG_LIST.add(line);\n\t}",
"Node<UnderlyingData> getCurrentLineNode();",
"protected void printTextLineDetailWithoutLineNumber(ProcureLineItem lineItem, PrintWriter out, String uomStr, Locale locale)\r\r\n {\r\r\n\t\tLog.customer.debug(\"%s *** printTextLineDetailWithoutLineNumber!\",THISCLASS);\r\r\n\r\r\n Fmt.F(out, \"%s\", Fmt.Sil(locale, \"resource.ordering\", \"QtyUOMAmount\",\r\r\n \t\t\t\t\t\t\t\tBigDecimalFormatter.getStringValue(lineItem.getQuantity(), locale),\r\r\n \t\t\t\t\t\t\t\tuomStr,\r\r\n \t\t\t\t\t\t\t\tMoneyFormatter.getStringValue(lineItem.getDescription().getPrice(), locale, null, true, PRECISION),\r\r\n \t\t\t\t\t\t\t\tlineItem.getAmount().asString()));\r\r\n Fmt.F(out, \"%s\", Fmt.Sil(locale, \"resource.ordering\", \"DescriptionLine\", lineItem.getDescription().getDescription()));\r\r\n }",
"public void setLineMovement(Timeline t)\r\n {\r\n timeline = t;\r\n }",
"public void update(T item) \t\n\t{\n\t\t/**Variable used to keep track of node removed*/\n\t\tListItem<T> lineRemoved = null;\n\t\t/**Variable to temporarily store old head*/\n\t\tListItem<T> temp = head;\n\n\t\tif(item.compareTo(temp.getItem()) == 0)\n\t\t{\n\t\t\thead = temp.next;\n\t\t\tnumItems--;\n\t\t\tlineRemoved = temp;\n\t\t\tlineRemoved.setNext(null);\t\n\t\t}\n\t\t\n\t\t/**Variable to track head*/\n\t\tListItem<T> previous = head;\n\t\t\t\n\t\twhile(temp.getNext() != null)\n\t\t{\n\t\t\ttemp = temp.getNext();\n\t\t\tif(item.compareTo(temp.getItem()) == 0)\n\t\t\t{\n\t\t\t\tprevious.setNext(temp.getNext());\n\t\t\t\tnumItems--;\n\t\t\t\ttemp.setNext(null);\n\t\t\t\tlineRemoved = temp;\n\t\t\t}\n\t\t\tprevious = temp;\n\t\t}\n\t\t\n\t\tif(lineRemoved != null)\n\t\t{\n\t\t\toffer(lineRemoved.item);\n\t\t}\n\t}",
"protected static void closeLine (SourceDataLine line)\n {\n line.drain ();\n line.close ();\n }",
"void itemSelected(OutlineItem item);",
"public ObjectProperty<DrawingInfos> lastLineProperty() {\n return lastLine;\n }",
"public OrderLine() {\n products = new ArrayList<>();\n price = new BigDecimal(0);\n }",
"public ItemCursor() {\n\t\tsetMaxStackSize(1);\n\t}"
] | [
"0.6501447",
"0.63651824",
"0.6361829",
"0.6174551",
"0.6022541",
"0.5974339",
"0.5925933",
"0.5906704",
"0.5874145",
"0.5864011",
"0.5851496",
"0.58492905",
"0.5843824",
"0.58207595",
"0.57722455",
"0.5752612",
"0.5724292",
"0.57219386",
"0.56903076",
"0.56791234",
"0.5676406",
"0.5653564",
"0.56468695",
"0.5630796",
"0.5624496",
"0.5599883",
"0.55955803",
"0.559437",
"0.558982",
"0.5574878",
"0.557487",
"0.5573699",
"0.5570946",
"0.5513299",
"0.5510386",
"0.5487888",
"0.54798776",
"0.5473712",
"0.5471088",
"0.54683334",
"0.5461953",
"0.5460527",
"0.5450527",
"0.5448004",
"0.54380256",
"0.54328644",
"0.5425744",
"0.5418423",
"0.54085183",
"0.5400676",
"0.53831655",
"0.5370087",
"0.5338539",
"0.5336954",
"0.5330602",
"0.53283733",
"0.5319847",
"0.5312946",
"0.5311041",
"0.5306237",
"0.53057665",
"0.5296506",
"0.5277195",
"0.5268573",
"0.5268266",
"0.5267584",
"0.5266492",
"0.5262764",
"0.5260213",
"0.5256038",
"0.52549547",
"0.52403617",
"0.5238199",
"0.5230915",
"0.52265465",
"0.5224849",
"0.5224132",
"0.522293",
"0.5219379",
"0.5217524",
"0.52130866",
"0.5201078",
"0.5193865",
"0.51869386",
"0.5186482",
"0.5185994",
"0.5185128",
"0.51799196",
"0.5175645",
"0.51734126",
"0.51682866",
"0.5165671",
"0.516103",
"0.51469946",
"0.5143562",
"0.51416105",
"0.5140599",
"0.51386243",
"0.51355696",
"0.51331764"
] | 0.61213577 | 4 |
Create a object of File class to open xlsx file | @Test
public void writeExcel(String fileName,String sheetName,String dataToWrite) throws IOException{
File file = new File("D:\\output.xls");
//Create an object of FileInputStream class to read excel file
FileInputStream inputStream = new FileInputStream(file);
//Find the file extension by spliting file name in substing and getting only extension name
String fileExtensionName = fileName.substring(fileName.indexOf("."));
//Check condition if the file is xlsx file
Workbook guru99Workbook = null;
if(fileExtensionName.equals(".xlsx")){
//If it is xlsx file then create object of XSSFWorkbook class
guru99Workbook = new XSSFWorkbook(inputStream);
}
//Check condition if the file is xls file
else if(fileExtensionName.equals(".xls")){
//If it is xls file then create object of XSSFWorkbook class
guru99Workbook = new HSSFWorkbook(inputStream);
}
//Read excel sheet by sheet name
HSSFSheet sheet = (HSSFSheet) guru99Workbook.getSheet(sheetName);
//Get the current count of rows in excel file
int rowCount = sheet.getLastRowNum()-sheet.getFirstRowNum();
//Get the first row from the sheet
Row row = sheet.getRow(0);
//Create a new row and append it at last of sheet
Row newRow = sheet.createRow(rowCount+1);
//Create a loop over the cell of newly created Row
for(int j = 0; j < row.getLastCellNum(); j++){
//Fill data in row
Cell cell = newRow.createCell(j);
cell.setCellValue(dataToWrite);
}
//Close input stream
inputStream.close();
//Create an object of FileOutputStream class to create write data in excel file
FileOutputStream outputStream = new FileOutputStream(file);
//write data in the excel file
guru99Workbook.write(outputStream);
//close output stream
outputStream.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XL openFile(String filename) throws IOException {\n\n //Get the workbook instance for XLS file - file ext is required for two types\n workbook = getWorkBook(filename);\n Reporter.log(\"openFile succeeded opening \" + filename, true);\n return this;\n }",
"File openFile();",
"void readExcel(File existedFile) throws Exception;",
"private void openWorkbook(File file) throws FileNotFoundException,\n IOException {\n try (FileInputStream fis = new FileInputStream(file)) {\n this.workbook = WorkbookFactory.create(fis);\n this.evaluator = this.workbook.getCreationHelper().createFormulaEvaluator();\n this.formatter = new DataFormatter(true);\n }\n }",
"public static void demo3() throws IOException, Exception {\n\n // HSSFWorkbook, File\n NPOIFSFileSystem fs = new NPOIFSFileSystem(new File(\"file.xls\"));\n HSSFWorkbook wb = new HSSFWorkbook(fs.getRoot(), true);\n fs.close();\n\n // HSSFWorkbook, InputStream, needs more memory\n NPOIFSFileSystem fs2 = new NPOIFSFileSystem(new FileInputStream(\"MyExcel.xlsx\"));\n HSSFWorkbook wb2 = new HSSFWorkbook(fs2.getRoot(), true);\n\n // XSSFWorkbook, File\n OPCPackage pkg = OPCPackage.open(new File(\"file.xlsx\"));\n XSSFWorkbook wb3 = new XSSFWorkbook(pkg);\n pkg.close();\n\n // XSSFWorkbook, InputStream, needs more memory\n OPCPackage pkg2 = OPCPackage.open(new FileInputStream(\"MyExcel.xlsx\"));\n XSSFWorkbook wb4 = new XSSFWorkbook(pkg);\n pkg.close();\n }",
"public final File getExcelFile() {\n\t\treturn excelFile;\n\t}",
"public void openFile(File file) {\n// new FileSystem().readFile(addressBook, file);\n// addressBook.fireTableDataChanged();\n }",
"private XSSFSheet openFirstSheet(File file){\n\t\t\n\t\tFileInputStream fileIS=null;\n\t\ttry {\n\t\t\tfileIS = new FileInputStream(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Get the workbook instance for XLS file\n\t\ttry {\n\t\t\tXSSFWorkbook workbook = new XSSFWorkbook (fileIS);\n\t\t\treturn workbook.getSheetAt(0);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}",
"public Object fromXML(File xmlFile) throws XMLUtilityException {\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = unmarshaller.fromXML(xmlFile);\r\n\t\treturn beanObject;\r\n\t}",
"FileObject getFile();",
"FileObject getFile();",
"public File getFile() {\n return new File(this.filePath);\n }",
"public InputStream open(File file) {\n return new FileInputStream(file);\n }",
"public File getFile();",
"public File getFile();",
"public File getFile() {\n\t\treturn new File(filepath);\n\t}",
"@Override\r\n public void execute(Workbook workbook) {\n InputStream fileStream = this.getResourceStream(\"xlsx/Employee absence schedule.xlsx\");\r\n workbook.open(fileStream);\r\n }",
"Object create(File file) throws IOException, SAXException, ParserConfigurationException;",
"@Test\n public void CreateFile() throws Exception {\n createFile(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\",\n readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\"));\n File file = new File(\"src\\\\TestSuite\\\\SampleFiles\\\\supervisor.xlsx\");\n Assert.assertTrue(file.exists());\n }",
"public void intializeExcel(String path) throws Exception{\n//\t\topen a input stream\n\t\t fis = new FileInputStream(path);\n\n\t\t//create a workbook object\n\t\t wb = new XSSFWorkbook(fis);\n\t\t\n\t}",
"public static WorkspaceComponent open(final Class<?> fileClass,\r\n final File file) {\r\n String extension = file.getName()\r\n .substring(file.getName().indexOf(\".\"));\r\n try {\r\n Method method = fileClass.getMethod(\"open\", InputStream.class,\r\n String.class, String.class);\r\n WorkspaceComponent wc = (WorkspaceComponent) method.invoke(null,\r\n new FileInputStream(file), file.getName(), extension);\r\n wc.setCurrentFile(file);\r\n wc.setChangedSinceLastSave(false);\r\n return wc;\r\n } catch (RuntimeException e) {\r\n throw e;\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"public static XSSFSheet setExcelFile() throws Exception {\n\n XSSFSheet ExcelWSheet;\n XSSFWorkbook ExcelWBook;\n XSSFRow Row;\n String Path;\n String SheetName;\n\n try {\n // Open the Excel file\n Path = fetchMyProperties(\"spreadsheet_path\");\n SheetName= fetchMyProperties(\"sheet_name\");\n FileInputStream ExcelFile = new FileInputStream(Path);\n\n // Access the required test data sheet\n ExcelWBook = new XSSFWorkbook(ExcelFile);\n ExcelWSheet = ExcelWBook.getSheet(SheetName);\n\n } catch (Exception e){\n throw (e);\n }\n return ExcelWSheet;\n }",
"public FileInputStream getFileInputStream(){\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\data\\\\userData.xlsx\");\n\t\tString filePath=System.getProperty(\"user.dir\")+\"/src/test/java/data/userData.xlsx\";\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"src/test/java/data/userData.xlsx\");\n\t\tFile srcFile=new File(filePath);\n\t\ttry {\n\t\t\tfis=new FileInputStream(srcFile);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Test Data file not found.terminating process!! :Check file path of test data file\");\n\t\t}\n\n\t\treturn fis;\n\t}",
"@Override\r\n protected XarSource createXarSource(File file)\r\n {\n return xarSourceWrapper.getXarSource(this);\r\n }",
"public File openInputFile() throws Exception{\n\t\t// Open the input file\n\t\tinputFile = new File(PLEIADEAN_FILE);\n\t\t\n\t\t// return to the caller\n\t\treturn(inputFile);\n\t}",
"FileContent createFileContent();",
"private Workbook getWorkBook(String filename) throws java.io.IOException {\n CurrentFileName = filename;\n FileInputStream file = new FileInputStream(new File(filename));\n\n if (filename.endsWith(\".xlsx\") || filename.endsWith(\".xlsm\")) {\n return new XSSFWorkbook(file);\n\n } else if (filename.endsWith(\".xls\")) {\n return new HSSFWorkbook(file);\n }\n\n throw new IllegalArgumentException(filename + \" is not an Excel file\");\n\n }",
"@Override\r\n\tprotected File generateReportFile() {\r\n\r\n\t\tFile tempFile = null;\r\n\r\n\t\tFileOutputStream fileOut = null;\r\n\t\ttry {\r\n\t\t\ttempFile = File.createTempFile(\"tmp\", \".\" + this.exportType.getExtension());\r\n\t\t\tfileOut = new FileOutputStream(tempFile);\r\n\t\t\tthis.workbook.write(fileOut);\r\n\t\t} catch (final IOException e) {\r\n\t\t\tLOGGER.warn(\"Converting to XLS failed with IOException \" + e);\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\tif (tempFile != null) {\r\n\t\t\t\ttempFile.deleteOnExit();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tif (fileOut != null) {\r\n\t\t\t\t\tfileOut.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (final IOException e) {\r\n\t\t\t\tLOGGER.warn(\"Closing file to XLS failed with IOException \" + e);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn tempFile;\r\n\t}",
"@Override\n @Test\n public void testXlsx() throws IOException, InvalidFormatException\n {\n super.testXlsx();\n }",
"@Override\n @Test\n public void testXlsx() throws IOException, InvalidFormatException\n {\n super.testXlsx();\n }",
"void writeExcel(File newFile) throws Exception;",
"public File getFile ();",
"@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }",
"public static ExecutableReader createSpecific(File file) throws Exception {\n\t\t\n\t\tFileInputStream fis = new FileInputStream(file);\t\t\n\t\tExecutableReader reader = new ExecutableReader(fis);\n\t\tfis.close();\n\t\treturn reader;\n\t}",
"public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }",
"public File getFile() {\n // some code goes here\n return f;\n }",
"public XL(String fileName, String sheetName) throws IOException, IllegalAccessException {\n this(fileName);\n this.activateSheetByName(sheetName);\n }",
"void open(String fileName);",
"File getFile();",
"File getFile();",
"public String[][] openExcelFile(String inputFilePath);",
"public File openFile() {\r\n\r\n\t\tFile chosenFile = fileChooser.showOpenDialog(fileChooserDialog);\r\n\t\treturn chosenFile;\r\n\t}",
"public FileOnDisk(File file) throws StyxException\n {\n this(file.getName(), file);\n }",
"public ByteArrayInputStream loadFile(MultipartFile file) {\n\t\tlong heapSize = Runtime.getRuntime().totalMemory(); \n\n\t\t// Get maximum size of heap in bytes. The heap cannot grow beyond this size.// Any attempt will result in an OutOfMemoryException.\n\t\tlong heapMaxSize = Runtime.getRuntime().maxMemory();\n\n\t\t // Get amount of free memory within the heap in bytes. This size will increase // after garbage collection and decrease as new objects are created.\n\t\tlong heapFreeSize = Runtime.getRuntime().freeMemory(); \n\t\t\n\t\tSystem.out.println(\"heap Size = \"+heapSize);\n\t\tSystem.out.println(\"heap max size = \"+heapMaxSize);\n\t\tSystem.out.println(\"heap free size = \"+heapFreeSize);\n\n\t\tArrayList<MaterialData> material_datas = new ArrayList<MaterialData>();\n\n//\t\t 1. Read all data convert them into material object\n\t\ttry {\n\t\t\tmaterial_datas = parseExcelFile(file.getInputStream());\n//\t\t\t\tSystem.out.println(lst_data.toString());\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\n//\t\t\t 2. Process and Store the result data into output excel \n\t\ttry {\n\t\t\tByteArrayInputStream in = ClassificationDataToExcel(material_datas);\n\t\t\treturn in;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\n\t}",
"public FileBean() {}",
"public ShapeFile(java.io.File file) throws Exception {\n if (!file.exists() || !file.isFile()) throw new IllegalArgumentException(\"Invalid file\");\n\n String ext = getExtension(file).toLowerCase();\n if (ext.equals(\"dbf\")){\n dbf = file;\n shp = getFile(file, \"shp\");\n shx = getFile(file, \"shx\");\n }\n else if (ext.equals(\"shp\")){\n shp = file;\n dbf = getFile(file, \"dbf\");\n shx = getFile(file, \"shx\");\n }\n else if (ext.equals(\"shx\")){\n shx = file;\n shp = getFile(file, \"shp\");\n dbf = getFile(file, \"dbf\");\n }\n\n //Parse index\n ShxInputStream shxInputStream = new ShxInputStream(new FileInputStream(shx));\n int[][] index = shxInputStream.getIndex();\n numShapes = index[1].length;\n shxInputStream.close();\n }",
"public static void setExcelFile(String filePath, String shName)\n\t{\n\t\t//open excel file\n\t\ttry {\n\t\t\tlogger.info(\"creating file inputstream object and setting up file path and sheet\");\n\t\t\tFileInputStream fis = new FileInputStream(filePath);\n\t\t\t\n\t\t\tlogger.debug(\"creating new object for workbook\");\n\t\t\t\n\t\t\txlWBook = new XSSFWorkbook(fis); \n\t\t\t\n\t\t\tlogger.debug(\"get sheet from workbook object\");\n\t\t\txlSheet = xlWBook.getSheet(shName);\n\t\t\tlogger.info(\"created xl sheet object\");\n\t\t\t\t\t\t\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\tlogger.error(\"Function - setExcelFile: file not found\", e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tlogger.error(\"Function - setExcelFile: IO exception occured\", e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}",
"private JButton getOpenButton() {\r\n\t\tif (openButton == null) {\r\n\t\t\topenButton = new JButton();\r\n\t\t\topenButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/openFile.png\")));\r\n\t\t\topenButton.setToolTipText(\"打开\");\r\n\t\t\topenButton.addActionListener(new ActionListener(){\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);//设置选择模式,既可以选择文件又可以选择文件夹\r\n\t\t\t\t\tString fileFormat[] = { \"txt\" };\r\n\t\t\t\t\tFileFilter filter = new FileNameExtensionFilter( \"txt文件\",fileFormat);\r\n\t\t\t chooser.setFileFilter(filter);//设置文件后缀过滤器\r\n\t\t\t int retval = chooser.showOpenDialog(null);//显示\"保存文件\"对话框\r\n\t\t\t file = null;//\r\n\t\t\t if(retval == JFileChooser.APPROVE_OPTION) {//若成功打开\r\n\t\t\t \tfile = chooser.getSelectedFile();//得到选择的文件名\r\n\t\t }\r\n\t\t\t /**\r\n\t\t\t * File f = Util.openSelectFileDialog(\"Excel文件\",\"xlsx\");\r\n\t\t\t */\r\n\t\t\t\t\tif(file == null){\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tInputStream inputStream = null;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tinputStream = new FileInputStream(file);\r\n\t\t\t\t\t\tbyte a[] = new byte[1024];\r\n\t\t\t\t\t\tcontent = \"\";\r\n\t\t\t\t\t\twhile(true){\r\n\t\t\t\t\t\t\tint t = inputStream.read(a);\r\n\t\t\t\t\t\t\tcontent += new String(a);\r\n\t\t\t\t\t\t\tif(t<1024){\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (FileNotFoundException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}finally{\r\n\t\t\t\t\t\tif(inputStream != null){\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tinputStream.close();\r\n\t\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\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\tdealWith(content);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn openButton;\r\n\t}",
"public void getExportedBookDataXlsFileByUser(){\n File mPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n //String pathName = mPath.getPath() + \"/\" + \"sample_wordbook_daum.xls\";\n //Manager_SystemControl.saveFileFromInputStream(databaseInputStream,pathName);\n\n final Manager_FileDialog managerFileDialog = new Manager_FileDialog(this, mPath, \".xls\");\n managerFileDialog.addFileListener(new Manager_FileDialog.FileSelectedListener() {\n public void fileSelected(File file) {\n managerFileDialog.removeFileListener(this);\n new LoadDaumXlsFile(WordListActivity.this,file.getPath()).execute();\n }\n });\n managerFileDialog.showDialog();\n }",
"@Test\n public void testFileDownload() throws FileNotFoundException {\n ExcelFile testFile = new ExcelFile(\"0\", \"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n Mockito.when(excelService.getExcelFileById(anyString())).thenReturn(testFile);\n given().accept(\"application/json\").get(\"/excel/0/content\").peek().\n then().assertThat()\n .statusCode(200);\n }",
"public static ExecutableReader create(File file) throws Exception {\n\t\tFileInputStream fis = new FileInputStream(file);\n\t\tExecutableReader reader = create(new ExecutableStream(fis));\n\t\tfis.close();\n\t\treturn reader;\n\t}",
"public SourceFile(File file) throws Exception {\r\n\t\t// this.file = file;\r\n\t\tthis.zipFile = new ZipFile(file, \"UTF-8\");\r\n\t}",
"@Test\n public void testFileOpen() {\n \n FileHandler fileToTest;\n \n fileToTest = new FileHandler(\"Kalle.xml\");\n \n try {\n fileToTest.openFile();\n fail(\"Should have raised a fileNotFoundException\");\n }\n catch (FileNotFoundException fnf) {\n }\n }",
"public Object fromXML(String packageName, File xmlFile) throws XMLUtilityException {\r\n\r\n\t\tif (!(unmarshaller instanceof JAXBUnmarshaller)){\r\n\t\t\tthrow new XMLUtilityException(\"Invalid method usage. This method is only valid when the Marshaller is a JAXBUnmarshaller instance\");\r\n\t\t}\r\n\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = ((JAXBUnmarshaller)unmarshaller).fromXML(packageName,xmlFile);\r\n\t\treturn beanObject;\r\n\t}",
"public FileObject() {\n\t}",
"protected HSSFWorkbook getTemplateSource(String url, HttpServletRequest request) throws Exception {\r\n\t\tLocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());\r\n\t\tLocale userLocale = RequestContextUtils.getLocale(request);\r\n\t\tResource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);\r\n\r\n\t\t// Create the Excel document from the source.\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tlogger.debug(\"Loading Excel workbook from \" + inputFile);\r\n\t\t}\r\n\t\tPOIFSFileSystem fs = new POIFSFileSystem(inputFile.getInputStream());\r\n\t\treturn new HSSFWorkbook(fs);\r\n\t}",
"public interface IMxlFile {\n String getBaseName();\n\n List<MxlAnnotation> getAnnotations();\n\n MxlText getText();\n\n String getRawData();\n}",
"public File() {\n }",
"public InventarioFile(){\r\n \r\n }",
"public List<Element> getElementFromExcel(String inputFilePath);",
"@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }",
"private File getFile(String filename) throws Exception {\n\t\tFile file = new File(filename);\n\t\tif (file.exists()) {\n\t\t\treturn file;\n\t\t} else if (!file.isAbsolute()) {\n\t\t\tfinal Resource r = context.getThisInstance().eResource();\n\t\t\tfinal Path p = new Path(r.getURI().segment(1) + File.separator + filename);\n\t\t\tfinal IFile f = ResourcesPlugin.getWorkspace().getRoot().getFile(p);\n\t\t\tif (f.exists()) {\n\t\t\t\treturn f.getRawLocation().makeAbsolute().toFile();\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Filename \" + filename + \" not found\");\n\n\t}",
"public ObjReader(String filename){\n file = filename;\n }",
"public static File checkAndGetFile( final String file ) {\n if( file == null ) {\n throw new IllegalArgumentException( \"The parameter is empty.\\n parameter = \" + file );\n }\n final File fileObject = new File( file );\n\n if( !fileObject.exists() ) {\n throw new IllegalArgumentException( \"The file didn't exist.\\n parameter = \" + file );\n }\n if( fileObject.isDirectory() ) {\n throw new IllegalArgumentException( \"The file is a folder and not a PDF file.\\n parameter = \" + file );\n }\n\n return fileObject;\n }",
"IDocument getDocument(File file);",
"private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}",
"static Employee GetEmployeeObjectFromFile(String filename)\n\t{\n\t\tEmployee e = null;\n\t try\n\t {\n\t FileInputStream fileIn = new FileInputStream(filename);\n\t ObjectInputStream in = new ObjectInputStream(fileIn);\n\t //Main read method\n\t e = (Employee) in.readObject();\n\t in.close();\n\t fileIn.close();\n\t }catch(IOException i)\n\t {\n\t i.printStackTrace();\n\t }catch(ClassNotFoundException c)\n\t {\n\t System.out.println(\"Employee class not found\");\n\t c.printStackTrace();\n\t }\n\t\treturn e;\n\t}",
"public FileObject getFile() {\n return file;\n }",
"public FileObject getFile() {\n return file;\n }",
"public File getFileValue();",
"public File getFile() { return file; }",
"public ExtFileObjectCom getExtFileObj(Long id)\r\n \t{ \r\n \t\tlogger.debug(\"Retrieving binary file with ID = \" + id);\r\n \t\t\r\n \t\tExtFileObjectDAO extFileDao = externalFileMgrDao.getExtFileObj(id);\r\n \t\t\r\n \t\tString branch = extFileDao.getBranch();\r\n \t\tString filename = extFileDao.getFileName();\r\n \t\tString path= this.externalDataFolder + \"/\"+ branch + \"/\"+ filename;\r\n \t\tlogger.debug(\"Binary file: ID = \" + id + \"; branch = \" + branch + \"; filename = \" + filename + \"; path = \" + path);\r\n \t\t\t\t\r\n \t\t//ExtFileObjectCom extFileCom= new ExtFileObjectImpl();\r\n \t\t//extFileCom.setFile(new File(fileSrc));\r\n \t\tExtFileObjectCom extFileCom= new ExtFileObjectImpl(extFileDao, new File(path));\r\n \t\treturn extFileCom; \r\n \t}",
"public FileInfo(File file) {\n this.file = file;\n }",
"public File getDataFile();",
"public File getFile() {\n // some code goes here\n return m_f;\n }",
"public static void main(String[] args) throws IOException {\nFileInputStream f=new FileInputStream(\"D:\\\\AccuSelenium\\\\Ram\\\\TEST\\\\TestData\\\\LoginData.xls\");\nHSSFWorkbook w=new HSSFWorkbook(f);\nHSSFSheet s=w.getSheet(\"sheet1\");\nSystem.out.println(s.getRow(1));\n}",
"@Override\n\tpublic File getFile() {\n\t\treturn file;\n\t}",
"public FileBean getFullFileBean(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\treturn new FileBean(new File(getLocation()));\r\n\t\t} catch (FileNotFoundException | UnsupportedEncodingException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tFileBean temp = new FileBean();\r\n\t\t\ttemp.setLocation(\"error\");\r\n\t\t\treturn temp;\r\n\t\t}\r\n\t}",
"public List<FileRow> getExcel_file() {\r\n\t\treturn excel_file;\r\n\t}",
"@Transient\n\tpublic File getFileObj() {\n\t\treturn fileObj;\n\t}",
"public File getFile() {\n // some code goes here\n return this.f;\n }",
"FileReference getFile(String fileName);",
"public void testCreateFile() throws Exception {\n File input = new File(\"src/test/resources/reader/filesample.xml\");\n final URL testdata = input.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of files\", 2, creator.filesCreated.size());\n MockContentCreator.FileDescription file = creator.filesCreated.get(0);\n try {\n file.data.available();\n TestCase.fail(\"Did not close inputstream\");\n } catch (IOException ignore) {\n // Expected\n }\n assertEquals(\"mimeType mismatch\", \"application/test\", file.mimeType);\n assertEquals(\"lastModified mismatch\", XmlReader.FileDescription.DATE_FORMAT.parse(\"1977-06-01T07:00:00+0100\"), new Date(file.lastModified));\n assertEquals(\"Could not read file\", \"This is a test file.\", file.content);\n\n }",
"File getWorkfile();",
"public void setExcelFile(String excelFile) {\r\n this.excelFile = excelFile;\r\n }",
"private static PriceList getConvertedDocument(String sourceFolderPath, String constSourceFileName) throws ParserConfigurationException, SAXException, IOException {\n String filePath = sourceFolderPath.concat(constSourceFileName);\n File xmlFile = new File(filePath);\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = factory.newDocumentBuilder();\n Document doc = dBuilder.parse(xmlFile);\n \n \n //create the excel document Java representation\n PriceList priceList = new PriceList(doc.getDocumentElement());\n return priceList;\n }",
"public static StyxFile getFileOrDirectoryOnDisk(File file) throws StyxException\n {\n if (!file.exists())\n {\n throw new StyxException(\"file \" + file.getName() + \" does not exist\");\n }\n if (file.isDirectory())\n {\n return new DirectoryOnDisk(file);\n }\n else\n {\n return new FileOnDisk(file);\n }\n }",
"public abstract File mo41087j();",
"public XL(String fileName, String sheetName, boolean hasHeader) throws IOException, IllegalAccessException {\n this(fileName, sheetName);\n hasHeaderRow = hasHeader;\n\n String log = MessageFormat.format(\"Opened file {0} and currentSheet {1} with header {2}\", fileName, sheetName, hasHeader);\n Reporter.log(log, true);\n }",
"public static Object readObjectFromFile(String filename)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 122 */ return readObjectFromFile(new File(filename));\n/* */ }",
"public static List<InputDto> readXLSXFile(File file) throws Exception {\n List<InputDto> inputDtos = new ArrayList<>();\n\n Integer i = 0;\n InputStream ExcelFileToRead = new FileInputStream(file);\n XSSFWorkbook wb = new XSSFWorkbook(ExcelFileToRead);\n\n XSSFWorkbook test = new XSSFWorkbook();\n\n XSSFSheet sheet = wb.getSheetAt(0);\n XSSFRow row;\n XSSFCell cell;\n\n Iterator rows = sheet.rowIterator();\n// ss = new String[sheet.getLastRowNum()];\n sheet.getLastRowNum();\n while (rows.hasNext()) {\n InputDto input = new InputDto();\n row = (XSSFRow) rows.next();\n Iterator cells = row.cellIterator();\n if (row.getRowNum() == 0) {\n continue; //just skip the rows if row number is 0 or 1\n }\n String s = \"\";\n while (cells.hasNext()) {\n cell = (XSSFCell) cells.next();\n\n if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {\n// System.out.print(cell.getStringCellValue() + \" \");\n s += cell.getStringCellValue().trim() + \"|\";\n } else if (cell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC) {\n// System.out.print(cell.getNumericCellValue() + \" \");\n s += cell.getRawValue().trim() + \"|\";\n } else if (cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {\n// System.out.print(cell.getNumericCellValue() + \" \");\n s += cell.getStringCellValue().trim() + \"|\";\n }\n /*else {\n //U Can Handel Boolean, Formula, Errors\n }*/\n }\n if (!s.equals(\"\") && s.split(\"\\\\|\").length == 8) {\n input.setLoadName(s.split(\"\\\\|\")[6]);\n input.setLoadSize(s.split(\"\\\\|\")[1]);\n input.setLoadDate(s.split(\"\\\\|\")[0]);\n input.setLoadPath(s.split(\"\\\\|\")[4]);\n input.setLoadType(s.split(\"\\\\|\")[2]);\n input.setCicsName(s.split(\"\\\\|\")[5]);\n input.setRowId(s.split(\"\\\\|\")[7]);\n System.out.println(input.getRowId());\n inputDtos.add(input);\n// ss[i] = s;\n\n } else {\n throw new Exception(\"EXCEL DATA IS NOT COMPELETED\");\n }\n i++;\n }\n\n return inputDtos;\n }",
"public void handleOpenFile (File inFile) {\n openFile (inFile);\n }",
"public interface IBook {\n HSSFWorkbook openFile() throws IOException;\n List<String> searchNumber(String num);\n boolean isBookOpened();\n}",
"FileReference createFile(String fileName, String toolId);",
"public static PicoFile open(File file) throws PicoException, IOException {\n if (file == null) {\n throw new NullPointerException(\"The file is null.\");\n }\n return new PicoFile(new RandomAccessFile(file, \"rw\"));\n }",
"public Excel(Workbook workbook){\n this.workbook = workbook;\n isValid = false;\n initialized = false;\n }",
"public File getFile()\n {\n return file;\n }",
"public IFile getIFile ();",
"public File toFile() {\n\t\treturn this.file;\n\t}",
"public ActionFile() {\n }",
"public ParcelFileDescriptor open(File file) {\n return ParcelFileDescriptor.open(file, 268435456);\n }"
] | [
"0.7014502",
"0.63135326",
"0.61301184",
"0.6124449",
"0.58841187",
"0.58705246",
"0.58686954",
"0.58025426",
"0.5791998",
"0.57443",
"0.57443",
"0.561156",
"0.5584202",
"0.5580535",
"0.5580535",
"0.5576204",
"0.5563003",
"0.5541826",
"0.5540132",
"0.5536133",
"0.55185",
"0.5479431",
"0.5477212",
"0.5469367",
"0.54662293",
"0.5458957",
"0.543729",
"0.54175365",
"0.53960806",
"0.53960806",
"0.53946155",
"0.53890014",
"0.53666234",
"0.5361969",
"0.53573626",
"0.53547555",
"0.53512067",
"0.53331596",
"0.5332874",
"0.5332874",
"0.5331161",
"0.5329119",
"0.53271914",
"0.5325074",
"0.5324234",
"0.53211445",
"0.53157455",
"0.53088856",
"0.53044784",
"0.527821",
"0.525657",
"0.52542436",
"0.524954",
"0.52488625",
"0.52453893",
"0.5243368",
"0.524294",
"0.52423996",
"0.5211521",
"0.52092135",
"0.5197069",
"0.5185357",
"0.51849955",
"0.5182068",
"0.5171462",
"0.51683396",
"0.5164677",
"0.5158354",
"0.5158354",
"0.51558876",
"0.51528835",
"0.51421833",
"0.51362437",
"0.51334727",
"0.5132632",
"0.5131988",
"0.5131839",
"0.5129548",
"0.5128558",
"0.5115458",
"0.5110705",
"0.5109263",
"0.5101543",
"0.5101084",
"0.50992507",
"0.5092884",
"0.5079519",
"0.50762624",
"0.5074491",
"0.5071871",
"0.5063219",
"0.50618607",
"0.50549215",
"0.5054513",
"0.50541115",
"0.504748",
"0.5046888",
"0.50438464",
"0.5024444",
"0.5024114",
"0.5021626"
] | 0.0 | -1 |
Creates new form Notitia | public Notitia() {
initComponents();
fileChooser = new JFileChooser();
initFiles();
renewData();
this.addWindowListener(new WindowListener() {
@Override
public void windowOpened(WindowEvent e) {
}
@Override
public void windowClosing(WindowEvent e) {
if (prompt("Do you want to save the database?", "Save")) {
save();
}
System.exit(0);
}
@Override
public void windowClosed(WindowEvent e) {
}
@Override
public void windowIconified(WindowEvent e) {
}
@Override
public void windowDeiconified(WindowEvent e) {
}
@Override
public void windowActivated(WindowEvent e) {
}
@Override
public void windowDeactivated(WindowEvent e) {
}});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"FORM createFORM();",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}",
"public FormInserir() {\n initComponents();\n }",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}",
"private Nota criarNota(){\n\n Nota nota = new Nota();\n nota.setTitulo(edtTituloNota.getText().toString());\n nota.setValor(Float.parseFloat(edtNotaAluno.getText().toString()));\n\n return nota;\n }",
"@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }",
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"public frm_tutor_subida_prueba() {\n }",
"@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}",
"private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }",
"public TorneoForm() {\n initComponents();\n }",
"@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }",
"public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"public CrearPedidos() {\n initComponents();\n }",
"@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"public ServerskaForma() {\n initComponents();\n \n \n \n }",
"public InvoiceCreate() {\n initComponents();\n }",
"public void crear(Tarea t) {\n t.saveIt();\n }",
"@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }",
"public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}",
"Compuesta createCompuesta();",
"Negacion createNegacion();",
"@Override\n\tpublic void goToUiMantTipoNotificacionInsertar() {\n\t\tif (ui == null) {\n\t\t\tui = new UiMantTipoNotificacionImpl(this);\n\t\t\tui.setModo(UiMantenimiento.MODOINSERTAR);\n\t\t\tui.loadFields();\n\t\t\tui.show();\n\t\t} else {\n\t\t\tui.setModo(UiMantenimiento.MODOINSERTAR);\n\t\t\tui.loadFields();\n\t\t\tui.show();\n\t\t}\n\t}",
"public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }",
"@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }",
"@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }",
"public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }",
"public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}",
"public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }",
"public ProposalSpecialReviewForm() {\r\n }",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}",
"public ProductCreate() {\n initComponents();\n }",
"private void newNetworkDialogCreateButton(){\n //Create new networkData object here based on the field info\n LabData.NetworkData newNetworkData = new LabData.NetworkData(\n NetworkAddDialogNameTextfield.getText().toUpperCase(),\n NetworkAddDialogMaskTextfield.getText(),\n NetworkAddDialogGatewayTextfield.getText(),\n (int)NetworkAddDialogMacVLanExtSpinner.getValue(),\n (int)NetworkAddDialogMacVLanSpinner.getValue(),\n NetworkAddDialogIPRangeTextfield.getText(),\n NetworkAddDialogTapRadioButton.isSelected()\n );\n \n // Update the list of labs in the current UI data object\n labDataCurrent.getNetworks().add(newNetworkData);\n \n // Add the network into the UI \n addNetworkPanel(newNetworkData);\n \n // Update the Container Config dialogs to include the new network\n updateNetworkReferenceInContainerConfigDialogs(\"Add\", NetworkAddDialogNameTextfield.getText().toUpperCase(), null);\n }",
"public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"public CrearProductos() {\n initComponents();\n }",
"public Crear() {\n initComponents();\n \n \n this.getContentPane().setBackground(Color.WHITE);\n txtaPR.setEnabled(false); \n txtFNocmbre.requestFocus();\n \n \n }",
"public Formulario() {\n initComponents();\n }",
"public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}",
"com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();",
"public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"public Project_Create() {\n initComponents();\n }",
"public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }",
"Motivo create(Motivo motivo);",
"public ClientEditPage createNewClient() throws Exception {\n if (isNotAt()) {\n goTo();\n }\n newClientButton.click();\n Thread.sleep(Browser.getDelayAfterNewItemClick());\n return Pages.getClientEditPage();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n btnSave = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n txtNationalityID = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtNationaltyName = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtNote = new javax.swing.JTextArea();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"New Nationality\");\n setResizable(false);\n\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));\n\n btnSave.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n btnSave.setText(\"ບັນທຶກ\");\n jPanel2.add(btnSave);\n\n btnCancel.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n btnCancel.setText(\"ຍົກເລີກ\");\n jPanel2.add(btnCancel);\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel1.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n jLabel1.setText(\"ລະຫັດ\");\n\n txtNationalityID.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n txtNationalityID.setText(\"New\");\n txtNationalityID.setEnabled(false);\n\n jLabel2.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n jLabel2.setText(\"ສັນຊາດ\");\n\n txtNationaltyName.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n\n txtNote.setColumns(20);\n txtNote.setRows(5);\n jScrollPane1.setViewportView(txtNote);\n\n jLabel3.setFont(new java.awt.Font(\"Saysettha OT\", 0, 12)); // NOI18N\n jLabel3.setText(\"ໝາຍເຫດ\");\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 .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNationalityID, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(20, 20, 20))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)\n .addComponent(txtNationaltyName))\n .addContainerGap())))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtNationalityID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(2, 2, 2)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNationaltyName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(2, 2, 2)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(100, 100, 100))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jScrollPane1)\n .addGap(20, 20, 20))))\n );\n\n jPanel3Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel1, jLabel2, txtNationalityID, txtNationaltyName});\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(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(10, 10, 10))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n setLocationRelativeTo(null);\n }",
"public FormUtama() {\n initComponents();\n }",
"private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}",
"@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}",
"public Ventaform() {\n initComponents();\n }",
"public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"public newRelationship() {\n initComponents();\n }",
"@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"@RequestMapping(method = RequestMethod.POST, value = {\"\",\"/\"})\r\n\tpublic ResponseEntity<FormularioDTO> add(@RequestBody @Valid Formulario formulario) throws AuthenticationException {\r\n\t\tformulario.setInstituicao(new Instituicao(authService.getDados().getInstituicaoId()));\r\n\t\treturn new ResponseEntity<>(formularioService.create(formulario), HttpStatus.CREATED);\r\n\t}",
"@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"public void insertarNota(Note nota){\n ContentValues valores = new ContentValues();\n valores.put(\"fecha\",nota.obtenerFechaFormateada());\n valores.put(\"titulo\",nota.getTitulo());\n valores.put(\"nota\",nota.getNota());\n if(nota.getIdExamenAsociado()!=-1){\n valores.put(\"examenAsociado\",nota.getIdExamenAsociado());\n }\n db.insert(\"nota\",null,valores);\n }",
"@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}",
"public FormularioP() {\n initComponents();\n }",
"com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();",
"@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"public Nota() {\n }",
"public NewUser() {\n initComponents();\n }",
"public pInsertar() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public New_appointment() {\n initComponents();\n }",
"@GetMapping(\"/ninjas/new\")\n\tpublic String newNinja(@ModelAttribute(\"ninja\") Ninja ninja, Model model) {\n\t\tmodel.addAttribute(\"dojos\", dojoService.allDojos());\n\t\treturn \"newninja.jsp\";\n\t}",
"protected RespostaFormularioPreenchido() {\n // for ORM\n }",
"public FormularioCliente() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public Form_soal() {\n initComponents();\n tampil_soal();\n }",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}",
"@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}",
"private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }"
] | [
"0.7003714",
"0.6686003",
"0.66566885",
"0.6561931",
"0.6485523",
"0.63501185",
"0.63020843",
"0.622363",
"0.6205169",
"0.61964786",
"0.6167501",
"0.61001045",
"0.6094169",
"0.60364306",
"0.60280275",
"0.6021754",
"0.6001689",
"0.59942967",
"0.5992095",
"0.5991853",
"0.5990903",
"0.59879583",
"0.59439653",
"0.59282327",
"0.5906572",
"0.5888529",
"0.5886012",
"0.5884208",
"0.5870778",
"0.5870601",
"0.58313006",
"0.5828027",
"0.58053714",
"0.5802689",
"0.5797513",
"0.57956344",
"0.57955396",
"0.5791447",
"0.5785664",
"0.57736933",
"0.5767799",
"0.57624286",
"0.5750387",
"0.5741379",
"0.57407546",
"0.5739311",
"0.57389766",
"0.5735471",
"0.5730317",
"0.57274014",
"0.57271475",
"0.57269835",
"0.5718104",
"0.57162446",
"0.57148945",
"0.57120866",
"0.5711059",
"0.57040554",
"0.5697889",
"0.5695608",
"0.5685159",
"0.56818646",
"0.568071",
"0.56783956",
"0.56780255",
"0.5669091",
"0.56623685",
"0.5657054",
"0.56533796",
"0.56532043",
"0.5651618",
"0.56441224",
"0.56414837",
"0.5641148",
"0.56289124",
"0.56124765",
"0.56123924",
"0.5609647",
"0.5609469",
"0.56066984",
"0.5606023",
"0.5605247",
"0.5603183",
"0.560257",
"0.5601879",
"0.5598294",
"0.5596345",
"0.55939853",
"0.55907875",
"0.55893576",
"0.55825734",
"0.5579835",
"0.5577974",
"0.55745125",
"0.55732393",
"0.55730796",
"0.5572411",
"0.5569684",
"0.5560172",
"0.55568236",
"0.5549288"
] | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); | @Override
public void componentMoved(ComponentEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}",
"public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }",
"public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }",
"@Override\n public boolean isSupported() {\n return true;\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }",
"private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}",
"Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }",
"@Override\n public boolean isSupported() {\n return true;\n }",
"@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}",
"public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }",
"public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}",
"@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}",
"public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }",
"public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public UnsupportedCycOperationException() {\n super();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\r\n }",
"public void remove() {\r\n throw new UnsupportedOperationException();\r\n }",
"public int zzef() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }",
"private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }",
"public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}",
"private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"void unavailable();",
"void unavailable();",
"protected void input_back(){\n throw new UnsupportedOperationException();\n }",
"private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }",
"@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\n public boolean getObsolete()\n {\n return false;\n }",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"default boolean isDeprecated() {\n return false;\n }",
"default T handleNull() {\n throw new UnsupportedOperationException();\n }",
"public MissingMethodArgumentException() {\n }",
"public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }",
"public A force_get()\n {\n throw new UnsupportedOperationException();\n }",
"private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }",
"private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }",
"public static void forward()\n {\n throw new UnsupportedOperationException();\n }",
"@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}",
"@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void remove() {\n throw new UnsupportedOperationException(\"not supported optional operation.\");\n }",
"private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"static void m6826d() {\n throw new NoSuchMethodError();\n }",
"@Override\n public ListIterator<T> listIterator() {\n throw new UnsupportedOperationException();\n }",
"public static void back()\n {\n throw new UnsupportedOperationException();\n }",
"@Override\n public String animationState() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"private ThreadUtil() {\n throw new UnsupportedOperationException(\"This class is non-instantiable\"); //$NON-NLS-1$\n }",
"@Override\n\t\tpublic void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t\t// Iterator.super.remove();\n\t\t}",
"public UnsupportedOperationException(@NotNull String str) {\n super(str, null);\n Intrinsics.checkParameterIsNotNull(str, \"message\");\n this.b = str;\n }",
"@Override\n public boolean remove(Object o) {\n throw new UnsupportedOperationException(\"Remove not supported\");\n }",
"@Override\r\n public void clear() {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private NativeSupport() {\n\t}",
"@Override\n\tpublic boolean isForceLoaded()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"@Override\r\n public boolean remove(Object obj) {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }",
"@Override\n public V remove(Object obj) {\n throw new UnsupportedOperationException();\n }",
"public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n protected boolean matchesSafely(ReusableBuffer item) {\n throw new UnsupportedOperationException();\n }",
"void notSupported(String errorcode);",
"public boolean add(Object o) {\r\n throw new com.chimu.jdk12.java.lang.UnsupportedOperationException(); //UnsupportedOperationException();\r\n }",
"public DTUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\npublic boolean isEnabled() {\n\treturn false;\n}",
"public void remove()\n {\n throw new UnsupportedOperationException(\n \"remove() is not supported.\");\n }",
"public String mo1262b() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}",
"private AppUtils() {\n throw new UnsupportedOperationException(\"cannot be instantiated\");\n }"
] | [
"0.76209044",
"0.732105",
"0.72922087",
"0.71886545",
"0.71294034",
"0.71020085",
"0.7070374",
"0.7030918",
"0.7030918",
"0.6992831",
"0.69775355",
"0.6931478",
"0.689979",
"0.6877116",
"0.6877116",
"0.686053",
"0.6859947",
"0.68594235",
"0.68457353",
"0.68457353",
"0.68457353",
"0.68278104",
"0.6795744",
"0.679336",
"0.67497295",
"0.67470473",
"0.67470473",
"0.6732926",
"0.6710624",
"0.6695991",
"0.6695991",
"0.66873074",
"0.66864747",
"0.66776955",
"0.6654852",
"0.6637604",
"0.6596537",
"0.6585924",
"0.6585924",
"0.65840954",
"0.6574944",
"0.6571135",
"0.6570091",
"0.65613455",
"0.65584135",
"0.65434843",
"0.6531329",
"0.65264934",
"0.65264934",
"0.6510659",
"0.6509669",
"0.64854276",
"0.64560497",
"0.6429866",
"0.640944",
"0.6390793",
"0.6355991",
"0.63497746",
"0.63427526",
"0.6341468",
"0.63387066",
"0.63284147",
"0.6325509",
"0.63219184",
"0.6321731",
"0.63174623",
"0.6306393",
"0.6297321",
"0.6292585",
"0.62622637",
"0.6253797",
"0.6239063",
"0.62341744",
"0.6225949",
"0.62252104",
"0.62181294",
"0.62092465",
"0.6189989",
"0.6179601",
"0.6171193",
"0.6158594",
"0.61581147",
"0.61459017",
"0.6136849",
"0.6136255",
"0.6134709",
"0.6134709",
"0.6125999",
"0.61157197",
"0.61125183",
"0.6110096",
"0.6109583",
"0.610189",
"0.60999626",
"0.60858244",
"0.6084769",
"0.6075298",
"0.60639775",
"0.60602725",
"0.6054523",
"0.60542315"
] | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); | @Override
public void componentShown(ComponentEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}",
"public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }",
"public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }",
"@Override\n public boolean isSupported() {\n return true;\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }",
"private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}",
"Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }",
"@Override\n public boolean isSupported() {\n return true;\n }",
"@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}",
"public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }",
"public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}",
"@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}",
"public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }",
"public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\r\n }",
"public UnsupportedCycOperationException() {\n super();\n }",
"public void remove() {\r\n throw new UnsupportedOperationException();\r\n }",
"public int zzef() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }",
"private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }",
"public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}",
"private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"void unavailable();",
"void unavailable();",
"private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"protected void input_back(){\n throw new UnsupportedOperationException();\n }",
"@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }",
"@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\n public boolean getObsolete()\n {\n return false;\n }",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"default boolean isDeprecated() {\n return false;\n }",
"default T handleNull() {\n throw new UnsupportedOperationException();\n }",
"public MissingMethodArgumentException() {\n }",
"public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }",
"public A force_get()\n {\n throw new UnsupportedOperationException();\n }",
"private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }",
"private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }",
"public static void forward()\n {\n throw new UnsupportedOperationException();\n }",
"@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}",
"@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void remove() {\n throw new UnsupportedOperationException(\"not supported optional operation.\");\n }",
"private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"static void m6826d() {\n throw new NoSuchMethodError();\n }",
"@Override\n public ListIterator<T> listIterator() {\n throw new UnsupportedOperationException();\n }",
"public static void back()\n {\n throw new UnsupportedOperationException();\n }",
"@Override\n public String animationState() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"private ThreadUtil() {\n throw new UnsupportedOperationException(\"This class is non-instantiable\"); //$NON-NLS-1$\n }",
"@Override\n\t\tpublic void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t\t// Iterator.super.remove();\n\t\t}",
"public UnsupportedOperationException(@NotNull String str) {\n super(str, null);\n Intrinsics.checkParameterIsNotNull(str, \"message\");\n this.b = str;\n }",
"@Override\n public boolean remove(Object o) {\n throw new UnsupportedOperationException(\"Remove not supported\");\n }",
"@Override\r\n public void clear() {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private NativeSupport() {\n\t}",
"@Override\n\tpublic boolean isForceLoaded()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"@Override\r\n public boolean remove(Object obj) {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }",
"@Override\n public V remove(Object obj) {\n throw new UnsupportedOperationException();\n }",
"public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n protected boolean matchesSafely(ReusableBuffer item) {\n throw new UnsupportedOperationException();\n }",
"void notSupported(String errorcode);",
"public DTUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public boolean add(Object o) {\r\n throw new com.chimu.jdk12.java.lang.UnsupportedOperationException(); //UnsupportedOperationException();\r\n }",
"@Override\npublic boolean isEnabled() {\n\treturn false;\n}",
"public void remove()\n {\n throw new UnsupportedOperationException(\n \"remove() is not supported.\");\n }",
"public String mo1262b() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}",
"private AppUtils() {\n throw new UnsupportedOperationException(\"cannot be instantiated\");\n }"
] | [
"0.7620552",
"0.73209536",
"0.72934264",
"0.71898866",
"0.71297085",
"0.71043414",
"0.7071999",
"0.70331085",
"0.70331085",
"0.6993547",
"0.6979679",
"0.6931798",
"0.6900267",
"0.6879756",
"0.6879756",
"0.68629664",
"0.68623996",
"0.6860432",
"0.68483865",
"0.68483865",
"0.68483865",
"0.68302757",
"0.6797975",
"0.6795514",
"0.6752215",
"0.67493963",
"0.67493963",
"0.67342186",
"0.671253",
"0.66986084",
"0.66986084",
"0.66890585",
"0.66874987",
"0.66802984",
"0.6654238",
"0.66403586",
"0.6598886",
"0.65886337",
"0.65886337",
"0.65824735",
"0.65761846",
"0.6573756",
"0.65692604",
"0.65610754",
"0.656093",
"0.65434086",
"0.6530799",
"0.6525574",
"0.6525574",
"0.65110415",
"0.6510564",
"0.6487096",
"0.6457334",
"0.64317936",
"0.64098907",
"0.6391314",
"0.63552505",
"0.63504934",
"0.6343173",
"0.6341661",
"0.6337709",
"0.6328414",
"0.6326697",
"0.6323088",
"0.632175",
"0.6317958",
"0.6307209",
"0.62960064",
"0.6293906",
"0.6262848",
"0.6254466",
"0.62405896",
"0.62364346",
"0.62249744",
"0.6223193",
"0.62182605",
"0.6211274",
"0.6190906",
"0.6181109",
"0.6170872",
"0.6161342",
"0.6157163",
"0.6147537",
"0.6138709",
"0.6135648",
"0.6134291",
"0.6134291",
"0.61239904",
"0.6115832",
"0.61138606",
"0.6112005",
"0.610865",
"0.6103341",
"0.6097718",
"0.6085831",
"0.6085807",
"0.6074719",
"0.6066314",
"0.6061063",
"0.6055791",
"0.6054308"
] | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); | @Override
public void componentHidden(ComponentEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}",
"public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }",
"public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }",
"@Override\n public boolean isSupported() {\n return true;\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }",
"private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}",
"Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }",
"@Override\n public boolean isSupported() {\n return true;\n }",
"@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}",
"@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }",
"@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}",
"public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }",
"public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}",
"@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}",
"public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }",
"public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public UnsupportedCycOperationException() {\n super();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\r\n }",
"public void remove() {\r\n throw new UnsupportedOperationException();\r\n }",
"public int zzef() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"public void remove() {\n throw new UnsupportedOperationException();\n }",
"private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }",
"private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }",
"public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}",
"private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"void unavailable();",
"void unavailable();",
"protected void input_back(){\n throw new UnsupportedOperationException();\n }",
"private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }",
"@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\n public boolean getObsolete()\n {\n return false;\n }",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"default boolean isDeprecated() {\n return false;\n }",
"default T handleNull() {\n throw new UnsupportedOperationException();\n }",
"public MissingMethodArgumentException() {\n }",
"public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }",
"public A force_get()\n {\n throw new UnsupportedOperationException();\n }",
"private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }",
"private CompareDB () {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }",
"public static void forward()\n {\n throw new UnsupportedOperationException();\n }",
"@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}",
"@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void remove() {\n throw new UnsupportedOperationException(\"not supported optional operation.\");\n }",
"private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"static void m6826d() {\n throw new NoSuchMethodError();\n }",
"@Override\n public ListIterator<T> listIterator() {\n throw new UnsupportedOperationException();\n }",
"public static void back()\n {\n throw new UnsupportedOperationException();\n }",
"@Override\n public String animationState() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"private ThreadUtil() {\n throw new UnsupportedOperationException(\"This class is non-instantiable\"); //$NON-NLS-1$\n }",
"@Override\n\t\tpublic void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t\t// Iterator.super.remove();\n\t\t}",
"public UnsupportedOperationException(@NotNull String str) {\n super(str, null);\n Intrinsics.checkParameterIsNotNull(str, \"message\");\n this.b = str;\n }",
"@Override\n public boolean remove(Object o) {\n throw new UnsupportedOperationException(\"Remove not supported\");\n }",
"@Override\r\n public void clear() {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private NativeSupport() {\n\t}",
"@Override\n\tpublic boolean isForceLoaded()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"@Override\r\n public boolean remove(Object obj) {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }",
"@Override\n public V remove(Object obj) {\n throw new UnsupportedOperationException();\n }",
"public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n protected boolean matchesSafely(ReusableBuffer item) {\n throw new UnsupportedOperationException();\n }",
"void notSupported(String errorcode);",
"public boolean add(Object o) {\r\n throw new com.chimu.jdk12.java.lang.UnsupportedOperationException(); //UnsupportedOperationException();\r\n }",
"public DTUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\npublic boolean isEnabled() {\n\treturn false;\n}",
"public void remove()\n {\n throw new UnsupportedOperationException(\n \"remove() is not supported.\");\n }",
"public String mo1262b() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}",
"private AppUtils() {\n throw new UnsupportedOperationException(\"cannot be instantiated\");\n }"
] | [
"0.76209044",
"0.732105",
"0.72922087",
"0.71886545",
"0.71294034",
"0.71020085",
"0.7070374",
"0.7030918",
"0.7030918",
"0.6992831",
"0.69775355",
"0.6931478",
"0.689979",
"0.6877116",
"0.6877116",
"0.686053",
"0.6859947",
"0.68594235",
"0.68457353",
"0.68457353",
"0.68457353",
"0.68278104",
"0.6795744",
"0.679336",
"0.67497295",
"0.67470473",
"0.67470473",
"0.6732926",
"0.6710624",
"0.6695991",
"0.6695991",
"0.66873074",
"0.66864747",
"0.66776955",
"0.6654852",
"0.6637604",
"0.6596537",
"0.6585924",
"0.6585924",
"0.65840954",
"0.6574944",
"0.6571135",
"0.6570091",
"0.65613455",
"0.65584135",
"0.65434843",
"0.6531329",
"0.65264934",
"0.65264934",
"0.6510659",
"0.6509669",
"0.64854276",
"0.64560497",
"0.6429866",
"0.640944",
"0.6390793",
"0.6355991",
"0.63497746",
"0.63427526",
"0.6341468",
"0.63387066",
"0.63284147",
"0.6325509",
"0.63219184",
"0.6321731",
"0.63174623",
"0.6306393",
"0.6297321",
"0.6292585",
"0.62622637",
"0.6253797",
"0.6239063",
"0.62341744",
"0.6225949",
"0.62252104",
"0.62181294",
"0.62092465",
"0.6189989",
"0.6179601",
"0.6171193",
"0.6158594",
"0.61581147",
"0.61459017",
"0.6136849",
"0.6136255",
"0.6134709",
"0.6134709",
"0.6125999",
"0.61157197",
"0.61125183",
"0.6110096",
"0.6109583",
"0.610189",
"0.60999626",
"0.60858244",
"0.6084769",
"0.6075298",
"0.60639775",
"0.60602725",
"0.6054523",
"0.60542315"
] | 0.0 | -1 |
addEntry adds the entry to the gui | public void addEntryToGUI(String tags, String entry) {
String[] split = tags.split(",");
for (int i = 0; i < split.length; i++) {
if (!m_tags.contains(split[i].trim())) {
m_tags.add(split[i].trim());
}
m_tagsMaster.add(split[i].trim());
}
Collections.sort(m_tags);
this.tags.setListData(m_tags);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addEntry(NameSurferEntry entry) {\r\n\t\tdisplayEntries.add(entry);\r\n\t\tupdate();\r\n\t}",
"public void addEntry(ActionEvent event) {\n\t\tif(checkEntryInputs()) {\n\t\t\tBacteroidesSample newBacteroidesSample = new BacteroidesSample(sampleNumberTF.getText(),materialDescriptionTF.getText(),bacteroidesConcentration.getText());\n\t\t\tnewBacteroidesSample.setConclusionCase();\n\t\t\ttable.getItems().add(newBacteroidesSample);\n\t\t\tnewReport2.addSample(newBacteroidesSample);\n\t\t\taddConclusionNumber(newBacteroidesSample);\n\t\t\tsampleNumberTF.clear();\n\t\t\tmaterialDescriptionTF.clear();\n\t\t\tbacteroidesConcentrationTF.clear();\n\t\t}\n\t}",
"public void addEntry(Entry entry) {\n entries.add(entry);\n }",
"public void addEntry(Entry entry) {\n getEntryList().addEntry(entry);\n }",
"public void add(TextEntry entry) {\n\t\t\tif (!entry.getText().isNul()) {\n\t\t\t\tfor (TextEntry t : myTextEntries) {\n\t\t\t\t\tif (t.getText().isNul()) {\n\t\t\t\t\t\tt.getText().unNullify();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyTextEntries.add(entry);\n\t\t\tmyLength += entry.getLength();\n\t\t}",
"private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addButtonActionPerformed\n System.out.println(\"Manually adding an alarm entry\");\n\n addEntry(hourSelect.getSelectedIndex() + 1, minuteSelect.getSelectedIndex(), periodSelect.getSelectedIndex(), nameSelect.getText());\n writeAlarm(hourSelect.getSelectedIndex() + 1, minuteSelect.getSelectedIndex(), periodSelect.getSelectedIndex(), nameSelect.getText());\n\n nameSelect.setText(\"Alarm Name\");\n nameSelect.setForeground(Color.LIGHT_GRAY);\n }",
"public void addEntry() {\n\t\tSystem.out.print(\"Name: \");\n\t\tString entryName = getInputForName();\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\t\n\t\tp = new PhoneEntry(entryName, entryNumber);\n\t\t\n\t\ttry {\n\t\t\tphoneList.add(p);\n\t\t\twriteFile();\n\t\t\t\n\t\t\tSystem.out.println(\"Entry \" + p.getName() + \" has been added.\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.err.println(\"Could not write item into array.\");\n\t\t}\n\t}",
"public void addEntry(AddressBookEntry entry) {\n addressList.add(entry);\n }",
"public void addEntry(Entry e) {\n entries.put(e.getName(), e);\n }",
"public void addEntry(String key, ChoiceEntry entry){\n _entries.put(key, entry);\n }",
"public void add(food entry)\n\t{\n\t\titems.add(entry);\n\t\t//updates isChanged to show changes\n\t\tisChanged = true;\n\t}",
"void onEntryAdded(Entry entry);",
"public void addEntry(NameSurferEntry entry) {\r\n\t\tentryGraph.add(entry);\r\n\t}",
"public void add(FileSystemEntry entry);",
"public void addEntry(EventDataEntry entry) {\r\n eventFields.add(entry);\r\n }",
"public String addEntry(Entry e)\r\n\t{\r\n\t\tfor (Entry ent : tr)\r\n\t\t{\r\n\t\t\tif (e.getEntry().equals(ent.getEntry()))\r\n\t\t\t{\r\n\t\t\t\treturn \"Entry not unique. Try again.\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttr.add(e);\r\n\t\treturn \"Record added\\n\";\r\n\t}",
"private void addNewEntry(Entry entry) {\n \tboolean showToasts = Settings.getToastsSetting(getApplicationContext());\n \t\n// \tContentResolver cr = getContentResolver();\n// \t\n// \t// Insert the new entry into the provider\n// \tContentValues values = new ContentValues();\n// \t\n// \tvalues.put(WaterProvider.KEY_DATE, _entry.getDate());\n// \tvalues.put(WaterProvider.KEY_AMOUNT, _entry.getMetricAmount());\n// \t\n// \tcr.insert(WaterProvider.CONTENT_URI, values);\n \tmWaterDB.addNewEntry(getContentResolver(), entry);\n \t\n \t// Make a toast displaying add complete\n \tint unitsPref = Settings.getUnitSystem(this);\n \tdouble displayAmount = entry.getNonMetricAmount();\n \tString displayUnits = getString(R.string.unit_fl_oz);\n \tif (unitsPref == Settings.UNITS_METRIC) {\n \t\tdisplayUnits = getString(R.string.unit_mililiters);\n \t\tdisplayAmount = entry.getMetricAmount();\n \t}\n \tString toastMsg = String.format(\"Added %.1f %s\", displayAmount, displayUnits);\n \tToast toast = Toast.makeText(getApplicationContext(), toastMsg, Toast.LENGTH_SHORT);\n \ttoast.setGravity(Gravity.BOTTOM, 0, 0);\n \tif (showToasts)\n \t\ttoast.show();\n \t\n \t// If user wants a reminder when to drink next,\n \t// setup a notification X minutes away from this entry\n \t// where X is also a setting\n \tif (Settings.getReminderEnabled(this) && mIsHistorical == false) {\n \t\t// Get the AlarmManager services\n\t\t\tAlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);\n\t\t\t\n\t\t\t// create the calendar object\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t// add X minutes to the calendar object\n\t\t\tcal.add(Calendar.MINUTE, Settings.getReminderInterval(this));\n\t\t\t\n\t\t\t// cancel existing alarm if any, this way latest\n\t\t\t// alarm will be the only one to notify user\n\t\t\tIntent cancelIntent = new Intent(this, AlarmReceiver.class);\n\t\t\tPendingIntent cancelSender = PendingIntent.getBroadcast(this, 0, cancelIntent, 0);\n\t\t\tam.cancel(cancelSender);\n\t\t\t\n\t\t\t// set up the new alarm\n\t\t\tIntent intent = new Intent(this, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"entryDate\", entry.getDate());\n\t\t\tPendingIntent sender = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\t\t\tam.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), sender);\n \t}\n }",
"public void add(AddressEntry entry) {\n addressEntryList.add(entry);\n }",
"void addEntry(byte command, int row_index) {\r\n addCommand(command);\r\n addParameter(row_index);\r\n }",
"public MainEntry() {\n initComponents();\n }",
"public void entryAdded (TudeySceneModel.Entry entry)\n {\n setVisibility(entry);\n }",
"public boolean add(T entry) {\n return false;\n }",
"public boolean addEntry(@NotNull Entry<T> entry) {\n if (entries.contains(entry)) {\n return false;\n }\n\n entries.add(entry);\n entry.addValueChangedListener(entryValueChangedListener);\n return true;\n }",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed\n keep = true;\n t1.addNewEntry(String.format(\"%.4g\", Math.toDegrees(phi)), String.format(\"%.4g\", Math.toDegrees(alpha)), String.format(\"%.4g\",rho),regimed, String.format(\"%.4g\", Math.toDegrees(phii[1])), String.format(\"%.4g\", Math.toDegrees(phii[2])), String.format(\"%.4g\", Math.toDegrees(phii[3])), String.format(\"%.4g\", Math.toDegrees(deltai[1])), String.format(\"%.4g\", Math.toDegrees(deltai[2])), String.format(\"%.4g\", Math.toDegrees(deltai[3])), gammapo, sense, phipo, deltao, vectorN, vectorvg); dial.dispose();\n }",
"public void addEntry(NameSurferEntry entry) {\r\n\t\tentries.add(entry);\r\n\t}",
"private JComponent buildEntryPanel(LogEntry<? extends String> entry, JComponent panel, GridBagConstraints gbc) {\n\t\tgbc.gridx = 0;\n\t\tgbc.weightx = 0.0;\n//\t\tJLabel timeLabel = new JLabel(\"<html>\" +\n//\t\t\t\t\t \"<i>\" + DATE_FORMAT.format(new Date(entry.getEntryTime())) + \"</i>: \" + \n//\t\t\t\t \"</html>\"); //, gbc);// BorderLayout.WEST);\n\t\n\t\tpanel.add(new EditableTimeLabel(entry), gbc);\n\t\t\n\t\tgbc.gridx = 1;\n\t\tgbc.weightx = 1.0;\n\t\tJLabel contents = new JLabel(\"<html>\" + (entry == logEntry ? \"<b>\" : \"\") +\n\t entry.getEntry().replaceAll(\"\\n\", \"\\n<br/>\") +\n\t (entry == logEntry ? \"</b>\" : \"\") + \n\t \"</html>\");\n\t\tpanel.add(contents, gbc); //BorderLayout.CENTER);\n\t\tif (entry != null && logEntry != null && entry.getEntryTime() == logEntry.getEntryTime()) {\n\t\t\thighlightedComponents.add(contents);\n\t\t}\n\n\t\tJPanel referencePanel = new JPanel();\n\t\treferencePanel.setLayout(new BoxLayout(referencePanel, BoxLayout.PAGE_AXIS));\n\t\treferencePanel.setOpaque(false);\n\t\tComponentRegistry registry = ComponentRegistryAccess.getComponentRegistry();\n\t\tfor (String reference : entry.getReferencedIDs()) {\n\t\t\tAbstractComponent comp = registry.getComponent(reference);\n\t\t\tif (comp != null) {\n\t\t\t\treferencePanel.add(new NotebookPanel(comp, entry.getEntryTime()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tgbc.gridx = 2;\n\t\tgbc.weightx = 0.0;\n\t\tpanel.add(referencePanel, gbc);// BorderLayout.EAST);\n\t\t//panel.setBorder(ENTRY_BORDER);\n\t\t\n\t\treturn panel;\n\t}",
"public void addEntry(NameSurferEntry entry) {\n\t\tentries.add(entry);\n\t}",
"public Entry() {\n this(GtkEntry.createEntry());\n }",
"private void addEntry(int hour, int minute, int period, String name) {\n\n //A new instance of GregorianCalendar will initially be set for the time of its creation.\n GregorianCalendar alarmTime = new GregorianCalendar();\n\n alarmTime.set(Calendar.HOUR, hour);\n alarmTime.set(Calendar.MINUTE, minute);\n alarmTime.set(Calendar.SECOND, 0);\n alarmTime.set(Calendar.AM_PM, period);\n\n //If the alarm's time has already happened today reschedule it for tomorrow\n if (alarmTime.before(GregorianCalendar.getInstance())) {\n alarmTime.add(Calendar.DATE, 1);\n }\n\n AlarmTask alarmTask = new AlarmTask(name, entryNumber);\n AlarmTask.schedule(alarmTask, alarmTime.getTime());\n\n AlarmsEntryPanel alarmEntry = new AlarmsEntryPanel(hour, minute, period, name, entryNumber);\n System.out.println(\"Adding new alarm entry: \" + name);\n\n //Validate calls are required to correctly adjust the scroll sliders.\n entryContainerPanel.add(alarmEntry);\n entryContainerPanel.validate();\n entryContainerScrollPane.validate();\n\n entryNumber++;\n }",
"public void add(AddressEntry addressEntry)\n {\n try{\n Class.forName(\"oracle.jdbc.OracleDriver\");\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin\" +\n \":@adcsdb01.csueastbay.edu:1521:mcspdb.ad.csueastbay.edu\"\n , \"MCS1018\", \"y_WrlhyT\");\n // Statement stmt = conn.createStatement();\n\n PreparedStatement stmt = conn.prepareStatement(\"INSERT INTO \" +\n \"ADDRESSENTRYTABLE values(?,?,?,?,?,?,?,?, \" +\n \"default )\");\n stmt.setString(1, addressEntry.name.firstName);\n stmt.setString(2, addressEntry.name.lastName);\n stmt.setString(3, addressEntry.address.street);\n stmt.setString(4, addressEntry.address.city);\n stmt.setString(5, addressEntry.address.state);\n stmt.setInt(6, addressEntry.address.zip);\n stmt.setString(7, addressEntry.phone);\n stmt.setString(8, addressEntry.email);\n stmt.executeUpdate();\n\n conn.close();\n }\n catch(Exception e){System.out.println(e);}\n\n addressEntryList.addElement(addressEntry);\n }",
"private void addEntry( List<TicketEntry> entries, JSONObject entry){\n //parsing the entry fields and building it\n String barcode = (String) entry.get(\"barcode\");\n String desc = (String) entry.get(\"description\");\n int amount = Integer.parseInt((String) entry.get(\"amount\"));\n double PPU = Double.parseDouble((String) entry.get(\"PPU\"));\n double discountRate = Double.parseDouble((String) entry.get(\"discountRate\"));\n entries.add(new TicketEntryImpl(barcode,desc,amount,PPU,discountRate));\n }",
"@Listen(\"onClick=#createEntryButton\")\n public void createEntryButtonOnClick(){\n Window window = (Window) Executions.createComponents(\"entry.zul\", phonePageWindow, new HashMap());\n window.doModal();\n }",
"public Entry(String text) {\n this(GtkEntry.createEntry());\n setText(text);\n }",
"private void insertEntry() {\n String desiredId = idField.getText();\n String desiredName = nameField.getText();\n String desiredMajor = majorField.getText();\n\n if (studentHashMap.containsKey(desiredId)) {\n this.displayStatusPanel(\n \"Error: A student with this information already exists.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } else {\n studentHashMap.put(desiredId, new Student(desiredName, desiredMajor));\n\n this.displayStatusPanel(\n \"Success: \" + desiredName + \" has been added.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n }\n }",
"ISlot add(ISlot newEntry);",
"void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }",
"public void addEntry(KantoDex entry)\n {\n if(entries.isEmpty())\n {\n entries.add(entry);\n }\n else\n {\n boolean notFound = true;\n for(KantoDex entryInit : entries)\n {\n if(entry.getDexNumInt() == entryInit.getDexNumInt())\n {\n System.out.println(\"Error: Attempted to add an entry that already exists, or should not exist.\");\n notFound = false;\n }\n }\n if(notFound)\n {\n entries.add(entry);\n }\n }\n }",
"public void processAddLabel() {\n AppTextEnterDialogSingleton dialog = AppTextEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Label\", \"Enter text of the label to add:\");\n \n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LABEL_MODE);\n }",
"public void postEntry(Entry entry) {\n\t\tentries.addFirstElement(entry);\n\t}",
"public boolean add(T newEntry);",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n entryPanel = new javax.swing.JPanel();\n categoryLabel = new javax.swing.JLabel();\n addressLabel = new javax.swing.JLabel();\n phone1Label = new javax.swing.JLabel();\n commentLabel = new javax.swing.JLabel();\n categoryField = new javax.swing.JTextField();\n addressField = new javax.swing.JTextField();\n phone1Field = new javax.swing.JTextField();\n commentField = new javax.swing.JTextField();\n cityLabel = new javax.swing.JLabel();\n phone2Label = new javax.swing.JLabel();\n phone2Field = new javax.swing.JTextField();\n cityField = new javax.swing.JTextField();\n nameField = new javax.swing.JTextField();\n nameLabel = new javax.swing.JLabel();\n stateLabel = new javax.swing.JLabel();\n faxNumberLabel = new javax.swing.JLabel();\n faxNumberField = new javax.swing.JTextField();\n stateField = new javax.swing.JTextField();\n zipLabel = new javax.swing.JLabel();\n zipField = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n categoryLabel.setText(\"Category:\");\n\n addressLabel.setText(\"Address:\");\n\n phone1Label.setText(\"Phone 1:\");\n\n commentLabel.setText(\"Comment:\");\n\n categoryField.setText(\"jTextField1\");\n\n addressField.setText(\"jTextField1\");\n\n phone1Field.setText(\"jTextField1\");\n\n commentField.setText(\"jTextField1\");\n\n cityLabel.setText(\"City:\");\n\n phone2Label.setText(\"Phone 2:\");\n\n phone2Field.setText(\"jTextField1\");\n\n cityField.setText(\"jTextField1\");\n\n nameField.setText(\"jTextField1\");\n nameField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nameFieldActionPerformed(evt);\n }\n });\n\n nameLabel.setText(\"Name:\");\n\n stateLabel.setText(\"State:\");\n\n faxNumberLabel.setText(\"FaxNumber:\");\n\n faxNumberField.setText(\"jTextField1\");\n\n stateField.setText(\"jTextField1\");\n\n zipLabel.setText(\"Zip:\");\n\n zipField.setText(\"jTextField1\");\n\n javax.swing.GroupLayout entryPanelLayout = new javax.swing.GroupLayout(entryPanel);\n entryPanel.setLayout(entryPanelLayout);\n entryPanelLayout.setHorizontalGroup(\n entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(entryPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(entryPanelLayout.createSequentialGroup()\n .addComponent(categoryLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(categoryField, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(entryPanelLayout.createSequentialGroup()\n .addComponent(addressLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(addressField))\n .addGroup(entryPanelLayout.createSequentialGroup()\n .addComponent(phone1Label)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(phone1Field))\n .addGroup(entryPanelLayout.createSequentialGroup()\n .addComponent(commentLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(commentField)))\n .addGap(30, 30, 30)\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(phone2Label)\n .addComponent(cityLabel)\n .addComponent(nameLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(entryPanelLayout.createSequentialGroup()\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cityField, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)\n .addComponent(phone2Field))\n .addGap(30, 30, 30)\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(faxNumberLabel)\n .addComponent(stateLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(faxNumberField, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(entryPanelLayout.createSequentialGroup()\n .addComponent(stateField, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(63, 63, 63)\n .addComponent(zipLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(zipField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addComponent(nameField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n entryPanelLayout.setVerticalGroup(\n entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(entryPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(categoryLabel)\n .addComponent(categoryField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nameLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addressLabel)\n .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cityLabel)\n .addComponent(cityField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stateLabel)\n .addComponent(stateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(zipLabel)\n .addComponent(zipField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(phone1Label)\n .addComponent(phone1Field, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(phone2Label)\n .addComponent(phone2Field, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(faxNumberLabel)\n .addComponent(faxNumberField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(entryPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(commentLabel)\n .addComponent(commentField, 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 .addComponent(entryPanel, 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(entryPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"void addEntry(ReadOnlyEntry entry) throws DuplicateEntryException, OverlappingEventException,\n OverlappingAndOverdueEventException, EntryOverdueException;",
"public void addToList() {\n addToCurrentListButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //getting the variables from the user input\n String address = enterAddress.getText();\n String issue = enterAddress.getText();\n String model = enterModel.getText();\n //date method\n Date date = new Date();\n //creating a quick CentralAC list\n CentralAC acEntry = new CentralAC(address, issue, date, model);\n //adding items to the Arraylist\n HVACGUI.newCentralAC.add(acEntry);\n //adding items to the default list model\n HVACGUI.openService.addElement(acEntry);\n //disposing the form\n CentralAC_GUI.this.dispose();\n\n\n }\n });\n }",
"public void btn_newEntry() throws IOException, SQLException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewEntry.fxml\"));\n Parent parent = fxmlLoader.load();\n NewEntryController newEntryController = fxmlLoader.<NewEntryController>getController();\n newEntryController.setPresenter(presenter);\n newEntryController.fillComboBox();\n this.stageNewEntry = new Stage();\n stageNewEntry.setTitle(bundle.getString(\"entryNew.title\"));\n stageNewEntry.setScene(new Scene(parent, 400, 400));\n stageNewEntry.setAlwaysOnTop(true);\n stageNewEntry.setResizable(false);\n stageNewEntry.initModality(Modality.APPLICATION_MODAL);\n stageNewEntry.getIcons().add(new Image(String.valueOf(this.getClass().getResource(\"images/logo.png\"))));\n stageNewEntry.show();\n }",
"void onAddClicked();",
"public Boolean addEntry(NameSurferEntry entry) {\r\n\t\tint index = indexOfNameSurfer(entry.getName());\r\n\t\t/* Prevent from adding a same name multiple times */\r\n\t\tif(index < 0) {\r\n\t\t\tnameInGraph.add(entry);\r\n\t\t\tnameColor.add(generateColor());\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n synchronized public void addEntry(Entry e) throws RemoteException {\n if (this.map.containsKey(e.getHash())) {\n return;\n }\n //System.out.println(\"Mapper.addEntry() :: entry=\"+e.getHash()+\",\"+e.getLocation());\n this.map.put(e.getHash(), e.getLocation());\n printAct(\">added entry:\" + e.hash);\n }",
"private void addActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addActionPerformed\n add();\n }",
"public boolean addEntryFromMenu(String newWord)\n {\n if (this.hasWord(newWord))\n {\n return false;\n }\n else\n {\n //a new blank entry\n Entry newEntry = new Entry();\n //adds my new word tothe entry\n newEntry.setWord(newWord);\n //insert the new entry to the list\n this.addEntryInOrder(newEntry);\n return true;\n }\n //System.out.println(\"You broke logic\");\n //#unreachable\n }",
"public void acceptEntry(View view)\n {\n\n String name = nameEdit.getText().toString();\n\n String numStandsString = numStandsEdit.getText().toString();\n int numStands = Integer.parseInt(numStandsString);\n\n if(isEdit)\n {\n Woodlot currWoodlot = WCCCProgram.getCurrWoodlot();\n currWoodlot.setName(name);\n currWoodlot.setNumStands(numStands);\n }\n else\n {\n DataBase database = WCCCProgram.getRoot();\n database.addWoodlot(new Woodlot(name, numStands));\n }\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"private void createTextPanel()\n\t{\t\t\n\t\ttextPanel.setLayout (new BorderLayout());\n\t\ttextPanel.add(entry, BorderLayout.CENTER);\n\t\t\n\t}",
"protected static void addEntryInList(String key, String entry) {\n if (hasEntryInList(key, entry))\n return ;\n\n String entries = getSPreference(key);\n if (TextUtils.isEmpty(entries))\n entries = entry;\n else\n entries = entries + \":\" + entry;\n\n setPreference(key, entries);\n }",
"private void appendText()\n\t{\n\t\tString fieldText = \"\";\n\t\tString newText = \"\";\n\t\tfieldText = entry.getText();\n\t\t\n\t\tif(fieldText.equals (\"0\"))\n\t\t{\n\t\t\tnewText += append;\n\t\t\tfieldText = newText;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfieldText += append;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\t\n\t\tentry.grabFocus ( );\n\t\t\n\t}",
"public void addEntryToList(String entry){\n\t\tlogList.add(entry);\n\t}",
"public void DisplayEntry()\r\n {\r\n System.out.println(\"Username: \" + this.myUserName);\r\n System.out.println(\"Entry: \\n\" +\r\n this.myEntry);\r\n System.out.println(\"Date: \" + this.myDate);\r\n }",
"public void addMainEntry (ArchiveEntry mainEntry)\n\t{\n\t\tthis.mainEntries.add (mainEntry);\n\t}",
"public void addEntry(@NotNull Entry entry) {\n for (String name : entry.names) {\n mappingByName.put(name, entry);\n }\n }",
"void addNewEntry(BlogEntry entry) throws DAOException;",
"public void addEntry(final HighscoreEntry entry) {\n\t\tscores.add(entry);\n\t\tCollections.sort(scores);\t\t\n\t}",
"@Override\n public void insertEntry(Entry entry) {\n members.add(entry);\n\n }",
"void add(String prompt, UIFormTest test);",
"@Override\n public void actionPerformed(ActionEvent e) {\n String address = enterAddress.getText();\n String issue = enterAddress.getText();\n String model = enterModel.getText();\n //date method\n Date date = new Date();\n //creating a quick CentralAC list\n CentralAC acEntry = new CentralAC(address, issue, date, model);\n //adding items to the Arraylist\n HVACGUI.newCentralAC.add(acEntry);\n //adding items to the default list model\n HVACGUI.openService.addElement(acEntry);\n //disposing the form\n CentralAC_GUI.this.dispose();\n\n\n }",
"public add_edit() {\n initComponents();\n \n this.setLocationRelativeTo(null);\n }",
"public void addEntry(RouteTableEntry RTE)\n\t{\n\t\ttable.add(RTE);\n\t\t\n\t\tparentActivity.runOnUiThread(new Runnable()\n\t\t{ \n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tuiManager.resetRoutingListAdapter();\n\t\t\t} // end public method run\n\t\t}); // end runOnUiThread\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n txtDate = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n btnCancel = new javax.swing.JButton();\n btnPost = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtMessage = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Create your entry\");\n\n txtDate.setEditable(false);\n txtDate.setBackground(new java.awt.Color(255, 255, 255));\n txtDate.setText(df.format(dateobj));\n txtDate.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n txtDateActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Today's Date: \");\n\n jLabel2.setText(\"What's your name: \");\n\n btnCancel.setText(\"Cancel\");\n btnCancel.setToolTipText(\"\");\n btnCancel.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnCancelActionPerformed(evt);\n }\n });\n\n btnPost.setText(\"Post to Book\");\n btnPost.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnPostActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Enter your message:\");\n\n jLabel4.setText(\"Leave a message here for others to see!\");\n\n txtMessage.setColumns(20);\n txtMessage.setLineWrap(true);\n txtMessage.setRows(5);\n jScrollPane1.setViewportView(txtMessage);\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(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtDate, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnCancel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnPost))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel3))\n .addGap(0, 0, 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(txtDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 172, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnCancel)\n .addComponent(btnPost))\n .addContainerGap())\n );\n\n pack();\n }",
"@Override\n\tpublic void addEntry(E entry) {\n\n\t\t// Determine if the entry already exists in the list\n\t\tE current = this.getHead();\n\t\twhile (current != null) {\n\t\t\tif (this.isEqual(current, entry)) {\n\t\t\t\t// Already in list\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\n\t\t// Not in list, so add the entry\n\t\tsuper.addEntry(entry);\n\t}",
"void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }",
"@Override\r\n public void add() {\n String ID =id.getText();\r\n String Name =name.getText();\r\n String form_date =date_start.getText();\r\n String to_date =date_finish.getText();\r\n String Status =status.getText();\r\n String MemberID = MemberId.getText();\r\n ArrayList<String> arr = new ArrayList<String>();\r\n arr.add(ID);\r\n arr.add(Name);\r\n arr.add(form_date);\r\n arr.add(to_date);\r\n arr.add(Status);\r\n arr.add(MemberID);\r\n String PathFile = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n FileFacade facade = new FileFacade();\r\n facade.Add(PathFile, arr);\r\n }",
"private void gAddActionPerformed(ActionEvent e) {\n }",
"private JPanel renderEntryDisplay()\n\t{\n\t\tJPanel entryDisplay = new JPanel(new BorderLayout());\n\n\t\t//creates a table to hold the recipes\n\t\tMyTable recipeTable = generateTable();\n\t\t//sets the table so only 1 selection can be made at once\n\t\trecipeTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\t//this is what the action listener will be attached to\n\t\tListSelectionModel select = recipeTable.getSelectionModel();\n\t\t//adds the recipes table to the entry display\n\t\tentryDisplay.add(new JScrollPane(recipeTable), BorderLayout.WEST);\n\t\t//prevents recipes from being edited\n\t\ttxtView.setEditable(false); //NOTE change in later version\n\t\t//creates the scroll pane for all recipe data\n\t\tJScrollPane recipeViewer = new JScrollPane(txtView);\n\n\t\t//creates the map of entries\n\t\tHashMap<String, JTextArea> entryMap = CreateRecipeViewer();\n\t\t//creates the actions listener for the table\n\t\tListSelectionListener listenForSelection = new ListSelectionListener()\n\t\t{\n\t\t\tpublic void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t\t//get the selected row\n\t\t\t\tint row = recipeTable.getSelectedRow();\n\t\t\t\tif(row == -1) //in case the table has not been built\n\t\t\t\t\treturn;\n\t\t\t\t//get the name of the selected recipe\n\t\t\t\tString nameSelected = (String)recipeTable.getValueAt(row, 1);\n\t\t\t\t//using the name of recipe get the JTextArea & updates the txt box\n\t\t\t\ttxtView = entryMap.get(nameSelected);\n\t\t\t\t//redraw the scroll pane with new txt box\n\t\t\t\trecipeViewer.repaint();\n\t\t\t}\n\t\t};\n\t\t//adds an action listener to the table\n\t\tselect.addListSelectionListener(listenForSelection);\n\t\t//adds recipe viewer to the entry display\n\t\tentryDisplay.add(recipeViewer, BorderLayout.EAST);\n\t\treturn entryDisplay;\n\t}",
"private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"private void entryFileButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"Select Entries File\");\n File workingDirectory = new File(System.getProperty(\"user.dir\"));\n chooser.setCurrentDirectory(workingDirectory);\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n entryFile = chooser.getSelectedFile();\n entryFileLabel.setText(getFileName(entryFile));\n pcs.firePropertyChange(\"ENTRY\", null, entryFile);\n }\n }",
"public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}",
"boolean appendEntry(final LogEntry entry);",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tif (e.getSource() == entry) {\n\t\t\tString ID = JOptionPane.showInputDialog(\"Enter an ID number\");\n\t\t\tnumber = Integer.parseInt(ID);\n\t\t\tname = JOptionPane.showInputDialog(\"Enter a name\");\n\t\t\tlog.put(number, name);\n\t\t}\n\t\tif (e.getSource() == search) {\n\t\t\tString Detect = JOptionPane.showInputDialog(\"Enter an ID number\");\n\t\t\tint detect = Integer.parseInt(Detect);\n\t\t\tif (log.containsKey(detect)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, log.get(detect));\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Entry does not exist\");\n\t\t\t}\n\t\t}\n\t\tif (e.getSource() == view) {\n\t\t\tString output = \"\";\n\t\t\tfor (int key : log.keySet()) {\n\t\t\t\toutput += \"ID: \" + key + \" Name: \" + log.get(key) + \"\\n\";\n\t\t\t}\n\t\t\tJOptionPane.showMessageDialog(null, output);\n\t\t}\n\t\tif(e.getSource()== remove) {\n\t\t\tString Detect = JOptionPane.showInputDialog(\"Enter an ID number\");\n\t\t\tint detect = Integer.parseInt(Detect);\n\t\t\tif (log.containsKey(detect)) {\n\t\t\t\tlog.remove(detect);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Entry removed\");\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Entry does not exist\");\n\t\t\t}\n\t\t}\n\t}",
"public void insertEntry(String type, String name, String label, String command) {\n try {\n ContentValues newValues = new ContentValues();\n\n // Assign values for each column.\n newValues.put(Constants.MODULE_TYPE, type);\n newValues.put(Constants.MODULE_NAME, name);\n newValues.put(Constants.MODULE_LABEL, label);\n newValues.put(Constants.MODULE_COMMAND, command);\n\n // Insert the row into your table.\n db = dbHelper.getWritableDatabase();\n\n db.insert(Constants.MODULE_TABLE_NAME, null, newValues);\n db.close();\n\n Toast.makeText(context, context.getString(R.string.module_added), Toast.LENGTH_LONG).show();\n }\n catch (Exception e) {\n e.getStackTrace();\n }\n }",
"public void addEntry(AddressEntry contact) {\r\n insertAlphabeticalOrder(contact);\r\n }",
"@FXML\n\tpublic void add(ActionEvent event) {\n\t\tBrand brand = new Brand();\n\t\tbrand.setLabel(nameTF.getText());\n\t\t\n\n\t\t\n\t\tBrandDelegate.addBrand(brand);\n\t\tJOptionPane.showMessageDialog(null, \"Ajout effectué avec succés\");\n\t}",
"public void addButton(ActionEvent event) {\n\t\tString daysOfWeek = \"\";\n\t\tif (sundayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Sunday\";\n\t\t\telse daysOfWeek += \", Sunday\";\n\t\t}\n\t\tif (mondayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Monday\";\n\t\t\telse daysOfWeek += \", Monday\";\n\t\t}\n\t\tif (tuesdayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Tuesday\";\n\t\t\telse daysOfWeek += \", Tuesday\";\n\t\t}\n\t\tif (wednesdayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Wednesday\";\n\t\t\telse daysOfWeek += \", Wednesday\";\n\t\t}\n\t\tif (thursdayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Thursday\";\n\t\t\telse daysOfWeek += \", Thursday\";\n\t\t}\n\t\tif (fridayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Friday\";\n\t\t\telse daysOfWeek += \", Friday\";\n\t\t}\n\t\tif (saturdayCheck.isSelected()) {\n\t\t\tif (daysOfWeek.equals(\"\")) daysOfWeek += \"Saturday\";\n\t\t\telse daysOfWeek += \", Saturday\";\n\t\t}\n\t\t\n\t\t// Make the proper string for the medication and then add it to the medList\n\t\tString tempFullDay = daysOfWeek + \" - \" + hourDropDown.getValue() + \":\" + minuteDropDown.getValue() + \":00\";\n\t\tmedList.add(new Medication(nameField.getText(), tempFullDay, descriptionField.getText()));\n\t\t//upcomingMedsLabel.setText(upcomingMedsLabel.getText() + \"\\n\\n\" + medList.get(medList.size() - 1).toString());\n\t\t//calls the save method to save the new medication to the txt file\n\t\tsave(tempFullDay);\n\t\tload();\n\t}",
"@Override\n\t\tprotected String getAddElement()\n\t\t{\n\t\t\treturn PatternDialog.showDialog(this, getTitleString(ADD_STR), filterKind, null);\n\t\t}",
"public void onAdd() {\n String bookTitle = details[0];\n String author = details[1];\n boolean addedCorrectly = ControllerBook.addBook(this.ISBN, author, bookTitle, \"\");\n if (addedCorrectly) {\n dispose();\n } else {\n\n pack();\n }\n\n }",
"public void buttonAdd(ActionEvent event) {\n\t\tPlayer player = new Player(textfieldName.getText(), textfieldDate.getText(), Integer.parseInt(textfieldLevel.getText()));\n\t\ttableview.getItems().add(player);\n\t}",
"public void add(String entry, int xposition, int yposition) throws IndexOutOfBoundsException {\n try {\n this.entries[yposition - 1][xposition - 1] = entry;\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new IndexOutOfBoundsException(\"The x or y position provided must be within the the dimensions of the\"\n + \"saver table!\");\n }\n }",
"public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;",
"public void add() {\r\n // Getting the player name.\r\n DialogManager dialog = this.gui.getDialogManager();\r\n String name = dialog.showQuestionDialog(\"Name\", \"Enter your name:\", \"\");\r\n if (name != null) {\r\n this.scoreTable.add(new ScoreInfo(name, this.score.getValue()));\r\n try {\r\n this.scoreTable.save(new File(\"highscores\"));\r\n } catch (IOException e) {\r\n System.out.println(\"Failed creating a file.\");\r\n return;\r\n }\r\n }\r\n }",
"public void onEntry()\n\t{\n\t}",
"protected UUID add(E entry) {\n\t\treturn add(entry, true);\n\t}",
"void add(Control control);",
"void add(String prompt, UIMenuAction action);",
"public AbstractEntry(String text)\n {\n this(new JTextField(text), false, false);\n }",
"public void in(food entry)\n\t{\n\t\titems.add(entry);\n\t}",
"void addLogEntry(LogEntry entry) throws LogEntryOperationFailedException;",
"@Override\n\tpublic void addGui(Gui gui) {\n\t\t\n\t}",
"private void butAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butAddActionPerformed\n AddBorrower ab = new AddBorrower();\n ab.setVisiblePanel(0);\n ab.setVisible(true);\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\topenAdd();\n\t\t}",
"public void add(T newEntry) {\r\n add(size(), newEntry);\r\n }",
"public void append(Block.Entry entry) {\r\n\t\tstmts.add(new Entry(entry.code,entry.attributes()));\r\n\t}",
"public void insert(JournalEntry entry) {\n SQLiteDatabase db = instance.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(\"title\", entry.getTitle());\n values.put(\"mood\", entry.getMood());\n values.put(\"content\", entry.getContent());\n db.insert(\"entries\", null, values);\n }",
"public Label getEntry() {\n return entry;\n }",
"public void add(GObject object);"
] | [
"0.68189615",
"0.6801149",
"0.673889",
"0.6724485",
"0.66758734",
"0.66499865",
"0.6644032",
"0.64567673",
"0.64492154",
"0.6406083",
"0.6352777",
"0.628935",
"0.6258487",
"0.62334675",
"0.61385864",
"0.61097085",
"0.6096439",
"0.6010142",
"0.6004715",
"0.5990692",
"0.59685314",
"0.5957084",
"0.58917135",
"0.5832086",
"0.5823309",
"0.5804388",
"0.5775435",
"0.57518196",
"0.57495344",
"0.5747968",
"0.5737199",
"0.57369906",
"0.5735786",
"0.57108235",
"0.5710765",
"0.5707444",
"0.5696647",
"0.5695932",
"0.56736857",
"0.5671032",
"0.5658943",
"0.5648722",
"0.56386894",
"0.5636697",
"0.56292003",
"0.56270045",
"0.5622323",
"0.5610415",
"0.56044525",
"0.56025076",
"0.559299",
"0.5589249",
"0.5581332",
"0.55698836",
"0.5558567",
"0.5540144",
"0.55299073",
"0.5513731",
"0.55086136",
"0.5498884",
"0.5464077",
"0.54613334",
"0.5460453",
"0.54498285",
"0.54408705",
"0.5434493",
"0.5412876",
"0.5408329",
"0.54003674",
"0.5394894",
"0.5389068",
"0.5377643",
"0.53752536",
"0.5374741",
"0.53663963",
"0.53575516",
"0.5345053",
"0.53359467",
"0.5332519",
"0.53291225",
"0.53285646",
"0.53234357",
"0.5320157",
"0.53092605",
"0.5307658",
"0.5298325",
"0.5288095",
"0.52708435",
"0.52637553",
"0.5261873",
"0.5259735",
"0.52546453",
"0.52468556",
"0.52456653",
"0.52435166",
"0.52322",
"0.52253544",
"0.5220117",
"0.52027154",
"0.51982456"
] | 0.63192 | 11 |
Creates a copy instance, and modifies the font fields. Null arguments are ignored. | public Quill copy(FontFamily family, FontStyle style, Float size) {
Quill quill = new Quill(this);
quill.font = this.font ;
quill.fontSize = this.fontSize ;
quill.fontMgr = new FontMgr(this.fontMgr).adjust(family, style, size);
quill.setFont();
return quill ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Font(File fontFile, int fontFormat,\n boolean isCopy, CreatedFontTracker tracker)\n throws FontFormatException {\n\tthis.createdFont = true;\n\t/* Font2D instances created by this method track their font file\n\t * so that when the Font2D is GC'd it can also remove the file.\n\t */\n\tthis.font2DHandle =\n\t FontManager.createFont2D(fontFile, fontFormat,\n isCopy, tracker).handle;\n\n\tthis.name = this.font2DHandle.font2D.getFontName(Locale.getDefault());\n\tthis.style = Font.PLAIN;\n\tthis.size = 1;\n\tthis.pointSize = 1f;\n }",
"Font createFont();",
"public void setFont(Font newFont) {\n\tfont = newFont;\n }",
"public Font deriveFont(AffineTransform trans){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyTransform(trans, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public void setFont(Font newFont) {\r\n\t\tfont = newFont;\r\n\t}",
"FONT createFONT();",
"@SuppressWarnings(\"unchecked\")\n public TF addFont() {\n final ParameterizedType pt = (ParameterizedType) getClass()\n .getGenericSuperclass();\n final ParameterizedType paramType = (ParameterizedType) pt\n .getActualTypeArguments()[2];\n final Class<TF> fontClass = (Class<TF>) paramType.getRawType();\n try {\n final Constructor<TF> c = fontClass\n .getDeclaredConstructor(ACellStyle.class);\n return c.newInstance(this);\n }\n catch (final Exception e) {\n throw new ReportBuilderException(e);\n }\n }",
"public Font modify(Font font) {\n\t\tif (family == null) {\n\t\t\tif (style != null && size != null) {\n\t\t\t\treturn font.deriveFont(style, size);\n\t\t\t}\n\t\t\telse if (style != null) {\n\t\t\t\treturn font.deriveFont(style);\n\t\t\t}\n\t\t\treturn font.deriveFont((float) size);\n\t\t}\n\t\tint newStyle = style != null ? style : font.getStyle();\n\t\tint newSize = size != null ? size : font.getSize();\n\t\treturn new Font(family, newStyle, newSize);\n\t}",
"public void copyTo(\n GraphicsState state\n )\n {\n state.blendMode = blendMode;\n state.charSpace = charSpace;\n state.ctm = (AffineTransform)ctm.clone();\n state.fillColor = fillColor;\n state.fillColorSpace = fillColorSpace;\n state.font = font;\n state.fontSize = fontSize;\n state.lead = lead;\n state.lineCap = lineCap;\n state.lineDash = lineDash;\n state.lineJoin = lineJoin;\n state.lineWidth = lineWidth;\n state.miterLimit = miterLimit;\n state.renderMode = renderMode;\n state.rise = rise;\n state.scale = scale;\n state.strokeColor = strokeColor;\n state.strokeColorSpace = strokeColorSpace;\n //TODO:temporary hack (define TextState for textual parameters!)...\n if(state.scanner.getParent() instanceof Text)\n {\n state.tlm = (AffineTransform)tlm.clone();\n state.tm = (AffineTransform)tm.clone();\n }\n else\n {\n state.tlm = new AffineTransform();\n state.tm = new AffineTransform();\n }\n state.wordSpace = wordSpace;\n }",
"public Style(Style copy) {\n backgroundColor = copy.backgroundColor;//default background color of black\n hoverColor = copy.hoverColor;//default background color of black\n activeColor = copy.activeColor;//default background color of black\n borderColor = copy.borderColor;//default border color of transparent\n dropShadowColor = copy.dropShadowColor;\n textColor = copy.textColor;\n textFamily = copy.textFamily;\n textSize = copy.textSize;//default text size of 22 pixels\n borderRadius = copy.borderRadius; //No border radius by default\n render = copy.render;//render by default\n rounded = copy.rounded; //No rounding by default\n dropShadow = copy.dropShadow; //No drop shadow by default\n dropShadowOffset = copy.dropShadowOffset;\n computeSize = copy.computeSize;\n }",
"public void setFont(RMFont aFont) { }",
"public Font deriveFont(float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"private void setFont() {\n\t}",
"public Font deriveFont(int style){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"private FontData() {\n }",
"public Font createFont() {\n\t\treturn null;\n\t}",
"public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }",
"@Override\n\tpublic TemplateEffect copy() {\n\t\treturn new TemplateEffect(labelTemplate, valueTemplate, type, priority);\n\t}",
"private void updateFont() {\n this.currFont = new Font(this.currentFontFamily.getItemText(this.currentFontFamily.getSelectedIndex()),\n Integer.parseInt(this.currentFontSize.getItemText(this.currentFontSize.getSelectedIndex())),\n this.currentFontStyle.getItemText(this.currentFontStyle.getSelectedIndex()),\n Font.NORMAL,\n this.currentFontWeight.getItemText(this.currentFontWeight.getSelectedIndex())); \n }",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"public void initializeText(){\n\t\tfont = new BitmapFont();\n\t\tfont1 = new BitmapFont();\n\t\tfont1.setColor(Color.BLUE);\n\t\tfont2 = new BitmapFont();\n\t\tfont2.setColor(Color.BLACK);\n\t}",
"public Font(Obj paramObj) {\n/* 113 */ this.a = paramObj.__GetHandle();\n/* 114 */ this.b = paramObj.__GetRefHandle();\n/* */ }",
"public Font deriveFont(int style, AffineTransform trans){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n\tapplyTransform(trans, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public FontFactory(String font, int size, String text) {\n this.font = new Font(font, Font.BOLD, size);\n ttf = new TrueTypeFont(this.font, true);\n this.text = text;\n }",
"FontMatch(FontInfo info) {\n/* 704 */ this.info = info;\n/* */ }",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont addNewFont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont)get_store().add_element_user(FONT$0);\n return target;\n }\n }",
"public void setFont(Font font)\n {\n this.font = font;\n }",
"public void setFont(Font f) {\n font = f;\n compute();\n }",
"public OneFont(FontData fd) {\r\n\t\tname = fd.getName();\r\n\t\theight = fd.getHeight();\r\n\t\tstyle = fd.getStyle();\r\n\t\tfont = new Font(Display.getDefault(), fd);\r\n\t}",
"public getFontInfo_args(getFontInfo_args other) {\n if (other.isSetFilePath()) {\n this.filePath = other.filePath;\n }\n }",
"public void revertFont()\r\n\t{\r\n\t\tif (savedFont != null)\r\n\t\t{\r\n\t\t\tg.setFont(savedFont);\r\n\t\t}\r\n\t}",
"public XSSFFontFormatting createFontFormatting(){\n CTDxf dxf = getDxf(true);\n CTFont font;\n if(!dxf.isSetFont()) {\n font = dxf.addNewFont();\n } else {\n font = dxf.getFont();\n }\n\n return new XSSFFontFormatting(font, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }",
"public void copyFrom(State state) {\n bgColor = state.bgColor;\n fgColor = state.fgColor;\n lineAttributes = SWTGraphics.clone(state.lineAttributes);\n dx = state.dx;\n dy = state.dy;\n bgPattern = state.bgPattern;\n fgPattern = state.fgPattern;\n font = state.font;\n graphicHints = state.graphicHints;\n affineMatrix = state.affineMatrix;\n relativeClip = state.relativeClip;\n alpha = state.alpha;\n }",
"@Override\n\tpublic ChatComponentTranslation createCopy() {\n\t\tfinal Object[] var1 = new Object[formatArgs.length];\n\n\t\tfor (int var2 = 0; var2 < formatArgs.length; ++var2) {\n\t\t\tif (formatArgs[var2] instanceof IChatComponent) {\n\t\t\t\tvar1[var2] = ((IChatComponent) formatArgs[var2]).createCopy();\n\t\t\t} else {\n\t\t\t\tvar1[var2] = formatArgs[var2];\n\t\t\t}\n\t\t}\n\n\t\tfinal ChatComponentTranslation var5 = new ChatComponentTranslation(key,\n\t\t\t\tvar1);\n\t\tvar5.setChatStyle(getChatStyle().createShallowCopy());\n\t\tfinal Iterator var3 = getSiblings().iterator();\n\n\t\twhile (var3.hasNext()) {\n\t\t\tfinal IChatComponent var4 = (IChatComponent) var3.next();\n\t\t\tvar5.appendSibling(var4.createCopy());\n\t\t}\n\n\t\treturn var5;\n\t}",
"abstract Font getFont();",
"public Font deriveFont(int style, float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public void setTextFont(Font font);",
"public void setFont(Font value) {\r\n this.font = value;\r\n }",
"FontMapperImpl() {\n/* 55 */ this.substitutes.put(\"Courier\", \n/* 56 */ Arrays.asList(new String[] { \"CourierNew\", \"CourierNewPSMT\", \"LiberationMono\", \"NimbusMonL-Regu\" }));\n/* 57 */ this.substitutes.put(\"Courier-Bold\", \n/* 58 */ Arrays.asList(new String[] { \"CourierNewPS-BoldMT\", \"CourierNew-Bold\", \"LiberationMono-Bold\", \"NimbusMonL-Bold\" }));\n/* */ \n/* 60 */ this.substitutes.put(\"Courier-Oblique\", \n/* 61 */ Arrays.asList(new String[] { \"CourierNewPS-ItalicMT\", \"CourierNew-Italic\", \"LiberationMono-Italic\", \"NimbusMonL-ReguObli\" }));\n/* */ \n/* 63 */ this.substitutes.put(\"Courier-BoldOblique\", \n/* 64 */ Arrays.asList(new String[] { \"CourierNewPS-BoldItalicMT\", \"CourierNew-BoldItalic\", \"LiberationMono-BoldItalic\", \"NimbusMonL-BoldObli\" }));\n/* */ \n/* 66 */ this.substitutes.put(\"Helvetica\", \n/* 67 */ Arrays.asList(new String[] { \"ArialMT\", \"Arial\", \"LiberationSans\", \"NimbusSanL-Regu\" }));\n/* 68 */ this.substitutes.put(\"Helvetica-Bold\", \n/* 69 */ Arrays.asList(new String[] { \"Arial-BoldMT\", \"Arial-Bold\", \"LiberationSans-Bold\", \"NimbusSanL-Bold\" }));\n/* */ \n/* 71 */ this.substitutes.put(\"Helvetica-Oblique\", \n/* 72 */ Arrays.asList(new String[] { \"Arial-ItalicMT\", \"Arial-Italic\", \"Helvetica-Italic\", \"LiberationSans-Italic\", \"NimbusSanL-ReguItal\" }));\n/* */ \n/* 74 */ this.substitutes.put(\"Helvetica-BoldOblique\", \n/* 75 */ Arrays.asList(new String[] { \"Arial-BoldItalicMT\", \"Helvetica-BoldItalic\", \"LiberationSans-BoldItalic\", \"NimbusSanL-BoldItal\" }));\n/* */ \n/* 77 */ this.substitutes.put(\"Times-Roman\", \n/* 78 */ Arrays.asList(new String[] { \"TimesNewRomanPSMT\", \"TimesNewRoman\", \"TimesNewRomanPS\", \"LiberationSerif\", \"NimbusRomNo9L-Regu\" }));\n/* */ \n/* 80 */ this.substitutes.put(\"Times-Bold\", \n/* 81 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldMT\", \"TimesNewRomanPS-Bold\", \"TimesNewRoman-Bold\", \"LiberationSerif-Bold\", \"NimbusRomNo9L-Medi\" }));\n/* */ \n/* */ \n/* 84 */ this.substitutes.put(\"Times-Italic\", \n/* 85 */ Arrays.asList(new String[] { \"TimesNewRomanPS-ItalicMT\", \"TimesNewRomanPS-Italic\", \"TimesNewRoman-Italic\", \"LiberationSerif-Italic\", \"NimbusRomNo9L-ReguItal\" }));\n/* */ \n/* */ \n/* 88 */ this.substitutes.put(\"Times-BoldItalic\", \n/* 89 */ Arrays.asList(new String[] { \"TimesNewRomanPS-BoldItalicMT\", \"TimesNewRomanPS-BoldItalic\", \"TimesNewRoman-BoldItalic\", \"LiberationSerif-BoldItalic\", \"NimbusRomNo9L-MediItal\" }));\n/* */ \n/* */ \n/* 92 */ this.substitutes.put(\"Symbol\", Arrays.asList(new String[] { \"Symbol\", \"SymbolMT\", \"StandardSymL\" }));\n/* 93 */ this.substitutes.put(\"ZapfDingbats\", Arrays.asList(new String[] { \"ZapfDingbatsITC\", \"Dingbats\", \"MS-Gothic\" }));\n/* */ \n/* */ \n/* */ \n/* 97 */ for (String baseName : Standard14Fonts.getNames()) {\n/* */ \n/* 99 */ if (!this.substitutes.containsKey(baseName)) {\n/* */ \n/* 101 */ String mappedName = Standard14Fonts.getMappedFontName(baseName);\n/* 102 */ this.substitutes.put(baseName, copySubstitutes(mappedName));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 110 */ String ttfName = \"/org/apache/pdfbox/resources/ttf/LiberationSans-Regular.ttf\";\n/* 111 */ InputStream ttfStream = FontMapper.class.getResourceAsStream(ttfName);\n/* 112 */ if (ttfStream == null)\n/* */ {\n/* 114 */ throw new IOException(\"Error loading resource: \" + ttfName);\n/* */ }\n/* 116 */ TTFParser ttfParser = new TTFParser();\n/* 117 */ this.lastResortFont = ttfParser.parse(ttfStream);\n/* */ }\n/* 119 */ catch (IOException e) {\n/* */ \n/* 121 */ throw new RuntimeException(e);\n/* */ } \n/* */ }",
"public X font(Font font) {\n component.setFont(font);\n return (X) this;\n }",
"protected void applyFont() {\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\t// pe.applyFont();\n\t\t\t}\n\t\t}\n\t}",
"public abstract Font getFont();",
"public PdfFontProgram() {\n super();\n }",
"public native void setFont(Font value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.font = value.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n }-*/;",
"public PatchTextStyleProperties font(String font) {\n this.font = font;\n return this;\n }",
"public Font deriveFont(Map<? extends Attribute, ?> attributes) {\n\tif (attributes == null || attributes.size() == 0) {\n\t return this;\n\t}\n\n Hashtable newAttrs = new Hashtable(getAttributes());\n\tAttribute validAttribs[] = getAvailableAttributes();\n\tObject obj;\n\n\tfor(int i = 0; i < validAttribs.length; i++){\n\t if ((obj = attributes.get(validAttribs[i])) != null) {\n\t newAttrs.put(validAttribs[i],obj);\n\t } \n\t}\n return new Font(newAttrs, createdFont, font2DHandle);\n }",
"public SceneLabelObjectState copy(){\n\n\t\t//get a copy of the generic data from the supertype\n\t\tSceneDivObjectState genericCopy = super.copy(); \n\n\t\t//then generate a copy of this specific data using it (which is easier then specifying all the fields\n\t\t//Separately like we used too)\n\t\tSceneLabelObjectState newObject = new SceneLabelObjectState(\n\t\t\t\tgenericCopy,\n\t\t\t\tObjectsCurrentText,\t\t\n\t\t\t\tCSSname,\n\t\t\t\tcursorVisible,\n\t\t\t\tTypedText,\n\t\t\t\tCustom_Key_Beep,\n\t\t\t\tCustom_Space_Beep);\n\n\t\treturn newObject;\n\n\n\t}",
"public void setFont(Font newFont, Timing delay, Timing duration) {\r\n\t\tif (gen instanceof AdvancedTextGeneratorInterface)\r\n\t\t\t((AdvancedTextGeneratorInterface)gen).setFont(this, newFont, \r\n\t\t\t\t\tdelay, duration);\r\n\t\telse\r\n\t\t\tthrow new IllegalArgumentException(\"gen is not an AdvancedTextGeneratorInterface -- \" +gen);\r\n\r\n\t}",
"public void setFont(Font font) {\n\tthis.font = font;\n }",
"Type1Glyph2D(PDSimpleFont font) {\n/* 45 */ this.font = font;\n/* */ }",
"public WritingFont() {\n\t\tproperties.set(NAME, \"Untitled\");\n\t\tproperties.set(MEDIAN, .6f);\n\t\tproperties.set(DESCENT, .3f);\n\t\tproperties.set(LEADING, .1f);\n\t}",
"public GuiInventory(BitmapFont font) {\n super();\n setSize(364, 126);\n texture.setFilter(Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest);\n this.font = font;\n }",
"public SimpleStyle copy() {\n\t\tSimpleStyle simpleStyle = new SimpleStyle();\n\t\tcopyIn(simpleStyle);\n\t\treturn simpleStyle;\n\t}",
"protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}",
"public void GetFont (){\n fontBol = false;\n fontBolS = true;\n fontBolA = true;\n fontBolW = true;\n }",
"public void setFont(Font font)\r\n\t{\r\n\t\t_g2.setFont(font);\r\n\t}",
"public ParticleRenderData copy()\n\t{\n\t\tRenderData copy = super.copy();\n\t\tParticleRenderData pcopy = new ParticleRenderData(new Vector3f(), new Euler(), new Vector3f());\n\t\tpcopy.transform = copy.transform;\n\t\tpcopy.postStage = this.postStage;\n\t\tpcopy.currStage = this.currStage;\n\t\tpcopy.particleColor = this.particleColor;\n\t\treturn pcopy;\n\t}",
"public SampleData(Font newFont, Color newColor, String newString) {\n\tfont = newFont;\n\tcolor = newColor;\n\tstring = newString;\n }",
"private Font(long paramLong, Object paramObject) {\n/* 1031 */ this.a = paramLong;\n/* 1032 */ this.b = paramObject;\n/* */ }",
"public Handler(Font f)\n {\n font_var=f; //sets font as font button selected\n }",
"public void saveFont()\r\n\t{\r\n\t\tsavedFont = g.getFont();\r\n\t}",
"@Override\n public void setFont(Font f) {\n super.setFont(f);\n menuDirty = true;\n ResizeUtils.updateSize(this, actions);\n }",
"public void setFont( Font font ) {\r\n this.font = font;\r\n }",
"private void initFontAndChange(Context context) {\n changeFont(context);\n }",
"public OneFont(String fontName, int fontHeight, int fontStyle) {\r\n\t\tname = fontName;\r\n\t\theight = fontHeight;\r\n\t\tstyle = fontStyle;\r\n\t\tfont = new Font(Display.getDefault(), fontName, fontHeight, fontStyle);\r\n\t}",
"public FontFrame(JTextArea txtWorkplace) {\n initComponents();\n Font[] fontList = new Font[]{};\n fontList = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();\n for (int i = 0; i < fontList.length; i++) {\n cbbFont.addItem(fontList[i].getFontName());\n }\n fontName = (String) cbbFont.getSelectedItem();\n fontSize = (int) spinnerSize.getValue();\n fontStyle = (int) cbbStyle.getSelectedIndex();\n lblTest.setFont(new Font(fontName,fontSize,fontSize));\n this.txtWorkplace = txtWorkplace;\n }",
"private FontRenderer prepareShader() {\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"width\", .46f * (1 + size / 100f));\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"edge\", .2f * (1f / (size * 2)));\n\t\tFontShaderProgram.INSTANCE.sendVec4(\"fontColor\", color);\n\t\t\n\t\treturn this;\n\t}",
"public static Font create(Doc paramDoc, String paramString1, String paramString2) throws PDFNetException {\n/* 171 */ return __Create(Create(paramDoc.__GetHandle(), paramString1, paramString2), paramDoc);\n/* */ }",
"private native void init(Font font, String nativeName, int size);",
"StyledTextRenderer2(Device device, Font font, GC gc, int tabLength) {\n\tthis.device = device;\n\tthis.regularFont = font;\n\tthis.printerGC = gc;\n\tcalculateLineHeight();\n\tsetTabLength(tabLength);\n}",
"private ModelInstance newText(String text)\n {\n BufferedImage onePixelImage = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n Graphics2D awtGraphics2D = onePixelImage.createGraphics();\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n FontMetrics awtFontMetrics = awtGraphics2D.getFontMetrics();\n int textWidthPixels = text.isEmpty() ? 1 : awtFontMetrics.stringWidth(text);\n int textHeightPixels = awtFontMetrics.getHeight();\n awtGraphics2D.dispose();\n\n // Create image for use in texture\n BufferedImage bufferedImageRGBA8 = new BufferedImage(textWidthPixels, textHeightPixels, BufferedImage.TYPE_INT_ARGB);\n awtGraphics2D = bufferedImageRGBA8.createGraphics();\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n awtFontMetrics = awtGraphics2D.getFontMetrics();\n awtGraphics2D.setColor(awtColor);\n int x = 0;\n int y = awtFontMetrics.getAscent();\n if (!text.isEmpty())\n awtGraphics2D.drawString(text, x, y);\n awtGraphics2D.dispose();\n\n Pixmap pixmap = new Pixmap(textWidthPixels, textHeightPixels, Pixmap.Format.RGBA8888);\n BytePointer rgba8888BytePointer = new BytePointer(pixmap.getPixels());\n DataBuffer dataBuffer = bufferedImageRGBA8.getRaster().getDataBuffer();\n for (int i = 0; i < dataBuffer.getSize(); i++)\n {\n rgba8888BytePointer.putInt(i * Integer.BYTES, dataBuffer.getElem(i));\n }\n\n Texture libGDXTexture = new Texture(new PixmapTextureData(pixmap, null, false, false));\n Material material = new Material(TextureAttribute.createDiffuse(libGDXTexture),\n ColorAttribute.createSpecular(1, 1, 1, 1),\n new BlendingAttribute(GL41.GL_SRC_ALPHA, GL41.GL_ONE_MINUS_SRC_ALPHA));\n long attributes = VertexAttributes.Usage.Position | VertexAttributes.Usage.Normal | VertexAttributes.Usage.TextureCoordinates;\n\n float textWidthMeters = textHeightMeters * (float) textWidthPixels / (float) textHeightPixels;\n\n float x00 = 0.0f;\n float y00 = 0.0f;\n float z00 = 0.0f;\n float x10 = textWidthMeters;\n float y10 = 0.0f;\n float z10 = 0.0f;\n float x11 = textWidthMeters;\n float y11 = textHeightMeters;\n float z11 = 0.0f;\n float x01 = 0.0f;\n float y01 = textHeightMeters;\n float z01 = 0.0f;\n float normalX = 0.0f;\n float normalY = 0.0f;\n float normalZ = 1.0f;\n Model model = modelBuilder.createRect(x00, y00, z00, x10, y10, z10, x11, y11, z11, x01, y01, z01, normalX, normalY, normalZ, material, attributes);\n return new ModelInstance(model);\n }",
"public Line copy() {\n return new Line(getWords());\n }",
"public FontRenderer(float x, float y, String text, FontType font, float size) {\n\t\tthis.text = text;\n\t\tthis.font = font;\n\t\tthis.size = size;\n\t\tcolor = new Vector4f(1, 1, 1, 1);\n\t\t\n\t\ttransform.setPosition(x, y);\n\t\tsetSize(size);\n\t\t\n\t\tprogram = FontShaderProgram.INSTANCE;\n\t\t\n\t\ttexture = font.getTexture().setParameters(GL11.GL_LINEAR, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_TEXTURE_MIN_FILTER);\n\t\t\n\t\tif(text.length() < 1)\n\t\t\tmesh = new Mesh().createEmpty();\n\t\telse\n\t\t\tcreateFont(false);\n\t}",
"@Test\n public final void test45338() throws IOException {\n Workbook wb = _testDataProvider.createWorkbook();\n int num0 = wb.getNumberOfFonts();\n\n Sheet s = wb.createSheet();\n s.createRow(0);\n s.createRow(1);\n s.getRow(0).createCell(0);\n s.getRow(1).createCell(0);\n\n //default font\n Font f1 = wb.getFontAt((short)0);\n assertFalse(f1.getBold());\n\n // Check that asking for the same font\n // multiple times gives you the same thing.\n // Otherwise, our tests wouldn't work!\n assertSame(wb.getFontAt((short)0), wb.getFontAt((short)0));\n\n // Look for a new font we have\n // yet to add\n assertNull(\n wb.findFont(\n true, (short)123, (short)(22*20),\n \"Thingy\", false, true, (short)2, (byte)2\n )\n );\n\n Font nf = wb.createFont();\n short nfIdx = nf.getIndex();\n assertEquals(num0 + 1, wb.getNumberOfFonts());\n\n assertSame(nf, wb.getFontAt(nfIdx));\n\n nf.setBold(true);\n nf.setColor((short)123);\n nf.setFontHeightInPoints((short)22);\n nf.setFontName(\"Thingy\");\n nf.setItalic(false);\n nf.setStrikeout(true);\n nf.setTypeOffset((short)2);\n nf.setUnderline((byte)2);\n\n assertEquals(num0 + 1, wb.getNumberOfFonts());\n assertEquals(nf, wb.getFontAt(nfIdx));\n\n assertEquals(wb.getFontAt(nfIdx), wb.getFontAt(nfIdx));\n assertTrue(wb.getFontAt((short)0) != wb.getFontAt(nfIdx));\n\n // Find it now\n assertNotNull(\n wb.findFont(\n true, (short)123, (short)(22*20),\n \"Thingy\", false, true, (short)2, (byte)2\n )\n );\n assertSame(nf,\n wb.findFont(\n true, (short)123, (short)(22*20),\n \"Thingy\", false, true, (short)2, (byte)2\n )\n );\n wb.close();\n }",
"public EpsFont(Font font) {\n\t\tthis(font,TYPE_POSTSCRIPT);\n\t}",
"public void setLabelFont(Font f);",
"private static native Font createFont(String name, GFontPeer peer, int gdkfont);",
"public FontController createFont(ControllerCore genCode) {\n\t\tfontTXT = new FontController(\"font\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(font$1LBL);\n\t\t\t\tsetProperty(\"font\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn fontTXT;\n\t}",
"public void doCopy() {\n if (renderPieces.size() == 0) {\n System.out.println(\"Nothing is selected for copy operation.\");\n return;\n }\n StringBuffer sb = new StringBuffer();\n\n textBuffer.renderInit();\n Text text;\n if (!reversed) {\n while ((text = textBuffer.getTextToRender()) != null) {\n sb.append(text.getText());\n }\n } else {\n while ((text = textBuffer.getPreToRender()) != null) {\n sb.append(text);\n }\n String reversedText = sb.toString();\n sb = new StringBuffer();\n for (int i = reversedText.length()-1; i >= 0; i -= 1) {\n sb.append(reversedText.charAt(i));\n }\n }\n Clipboard clipboard = Clipboard.getSystemClipboard();\n ClipboardContent content = new ClipboardContent();\n content.putString(sb.toString());\n clipboard.setContent(content);\n System.out.println(\"Copy succeed.\");\n }",
"public abstract SoftwareLight copy();",
"private void selfClone() {\n stroke = stroke.clone();\n }",
"public TextBox() {\n font = new Font(fontname, fontstyle, fontsize);\n }",
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return (InstTexes) super.clone();\n }",
"private void instantiateVariables() {\n paint = new Paint();\n fightActivity = (FightActivity) context;\n Typeface tf = Typeface.create(\"Arial\", Typeface.BOLD);\n paint.setTypeface(tf);\n }",
"private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}",
"protected Choice createFontChoice() {\n CommandChoice choice = new CommandChoice();\n String fonts[] = Toolkit.getDefaultToolkit().getFontList();\n for (int i = 0; i < fonts.length; i++)\n choice.addItem(new ChangeAttributeCommand(fonts[i], \"FontName\", fonts[i], fView));\n return choice;\n }",
"void setFontFamily(ReaderFontSelection f);",
"public FontConfig() {\n\t\tthis.name = \"Monospaced\";\n\t\tthis.style = FontStyle.PLAIN;\n\t\tthis.size = DEFAULT_SIZE;\n\t}",
"protected HSSFFont(short index, FontRecord rec)\n {\n font = rec;\n this.index = index;\n }",
"@Override\n public Translate copy() {\n Translate copy = (Translate) SystemFunction.makeFunction(getFunctionName().getLocalPart(), getRetainedStaticContext(), getArity());\n copy.staticMap = staticMap;\n return copy;\n }",
"@Override\n public GraphicsState clone(\n )\n {\n GraphicsState clone;\n {\n // Shallow copy.\n try\n {clone = (GraphicsState)super.clone();}\n catch(CloneNotSupportedException e)\n {throw new RuntimeException(e);} // NOTE: It should never happen.\n\n // Deep copy.\n /* NOTE: Mutable objects are to be cloned. */\n clone.ctm = (AffineTransform)ctm.clone();\n clone.tlm = (AffineTransform)tlm.clone();\n clone.tm = (AffineTransform)tm.clone();\n }\n return clone;\n }",
"public void setFont(AWTFont font) {\r\n\t\trenderer = createRendererFromAWTFont(font);\r\n\t\tthis.font = font;\r\n\t\tupdateValues();\r\n\t}",
"public FontChooser(JFrame owner) {\n super(owner, \"Font Chooser\", true);\n ff = FontFactory.getInstance();\n }",
"public Font getFont(\n )\n {return font;}",
"public void GetFontA (){\n fontBolA = false;\n fontBolS = true;\n fontBol = true;\n fontBolW = true;\n }",
"public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }",
"public static Font create(Doc paramDoc, Font paramFont, String paramString) throws PDFNetException {\n/* 157 */ return __Create(Create(paramDoc.__GetHandle(), paramFont.a, paramString), paramDoc);\n/* */ }",
"public Weapon copy() {\r\n\t\treturn new Weapon(this.getName(), this.getDescription(), this.getType(), this.getSize(), this.getPrice(), this.getMultChanged());\r\n\t}",
"public Field copy()\n {\n return new Field(name, type, vis);\n }",
"public Font getFont()\r\n\t{\r\n\t\treturn _g2.getFont();\r\n\t}"
] | [
"0.6912312",
"0.6394803",
"0.6181279",
"0.61186445",
"0.610317",
"0.6098168",
"0.6067695",
"0.6054382",
"0.60468626",
"0.6012966",
"0.60081434",
"0.5952436",
"0.5946487",
"0.5932046",
"0.5896655",
"0.5881149",
"0.58505625",
"0.5821191",
"0.5810481",
"0.57770085",
"0.5768351",
"0.5747175",
"0.5730583",
"0.5702087",
"0.5698376",
"0.56791115",
"0.56729025",
"0.5665917",
"0.56654507",
"0.56542724",
"0.56534106",
"0.5643745",
"0.5642377",
"0.5637485",
"0.56269383",
"0.562371",
"0.56093705",
"0.560526",
"0.55839163",
"0.55645806",
"0.55504274",
"0.55416906",
"0.5526567",
"0.5520508",
"0.5518717",
"0.5518197",
"0.55118436",
"0.5511601",
"0.54902023",
"0.5487622",
"0.5485231",
"0.54846543",
"0.5439216",
"0.543818",
"0.5427783",
"0.542293",
"0.5403805",
"0.5387858",
"0.53755265",
"0.53645587",
"0.5361169",
"0.5358086",
"0.5348902",
"0.53470623",
"0.53322804",
"0.5330754",
"0.5325241",
"0.5316037",
"0.5295675",
"0.5272224",
"0.5260035",
"0.52568173",
"0.5248416",
"0.5235595",
"0.5232379",
"0.52282006",
"0.52271473",
"0.5222248",
"0.51954305",
"0.5180723",
"0.5171489",
"0.51553214",
"0.51488245",
"0.5129031",
"0.51265275",
"0.5123776",
"0.5121848",
"0.5120968",
"0.511574",
"0.51061195",
"0.5105024",
"0.5103798",
"0.51007605",
"0.51003706",
"0.50957155",
"0.5090736",
"0.5085225",
"0.50849545",
"0.5084379",
"0.5074931"
] | 0.5450831 | 52 |
Creates a copy instance, and modifies the font size. | public Quill copySize(float newSize) { Quill quill = new Quill(this); quill.fontMgr.size = newSize ; quill.setFont(); return quill ; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Font deriveFont(float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public Quill copy(FontFamily family, FontStyle style, Float size) { \n\t\tQuill quill = new Quill(this); \n\t\tquill.font = this.font ; \n\t\tquill.fontSize = this.fontSize ; \n\t\tquill.fontMgr = new FontMgr(this.fontMgr).adjust(family, style, size); \n\t\tquill.setFont(); \n\t\treturn quill ; \n\t}",
"public FontRenderer setSize(float size) {\n\t\tthis.size = size;\n\t\ttransform.setScale(size);\n\t\t\n\t\treturn this;\n\t}",
"public Size(Size toDuplicate)\r\n {\r\n assert(true);\r\n \tamount = toDuplicate.amount;\r\n type = toDuplicate.type;\r\n }",
"private void setFontSize(float newFontSize) {\n\t\tfontSize = newFontSize;\n\t\tproperties.setProperty(\"fontSize\", Float.toString(newFontSize));\n\n\t\t// update all text-based components\n\t\tfor (Component c : components)\n\t\t\tc.setFont(c.getFont().deriveFont(newFontSize));\n\t\t\n\t\t// update machine graphics\n\t\tupdate(); \n\t}",
"public Style(Style copy) {\n backgroundColor = copy.backgroundColor;//default background color of black\n hoverColor = copy.hoverColor;//default background color of black\n activeColor = copy.activeColor;//default background color of black\n borderColor = copy.borderColor;//default border color of transparent\n dropShadowColor = copy.dropShadowColor;\n textColor = copy.textColor;\n textFamily = copy.textFamily;\n textSize = copy.textSize;//default text size of 22 pixels\n borderRadius = copy.borderRadius; //No border radius by default\n render = copy.render;//render by default\n rounded = copy.rounded; //No rounding by default\n dropShadow = copy.dropShadow; //No drop shadow by default\n dropShadowOffset = copy.dropShadowOffset;\n computeSize = copy.computeSize;\n }",
"public LabelBuilder setFontSize(int size) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setSize(size);\n\t\treturn this;\n\n\t}",
"public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}",
"public Font deriveFont(int style, float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public void setFont(Font newFont) {\r\n\t\tfont = newFont;\r\n\t}",
"public void setFont(Font newFont) {\n\tfont = newFont;\n }",
"public void grow() {\n\t\thtmlFontSize += 40;\n\t}",
"public void changeSize(Integer newLength, Integer newHeight) {\n control.erase();\n width = newLength;\n height = newHeight;\n control.draw();\n }",
"public void addSizeModfier(int newSize) {\n\t\tif (size != null) {\n\t\t\tthrow new IllegalStateException(\"Multiple font sizes specified\");\n\t\t}\n\t\tthis.size = newSize;\n\t}",
"public PatchTextStyleProperties fontSize(String fontSize) {\n this.fontSize = fontSize;\n return this;\n }",
"public IconBuilder fontSize(int size) {\n\t\tthis.fixedFontSize = size;\n\t\treturn this;\n\t}",
"@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }",
"public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }",
"public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }",
"private void updateFont() {\n this.currFont = new Font(this.currentFontFamily.getItemText(this.currentFontFamily.getSelectedIndex()),\n Integer.parseInt(this.currentFontSize.getItemText(this.currentFontSize.getSelectedIndex())),\n this.currentFontStyle.getItemText(this.currentFontStyle.getSelectedIndex()),\n Font.NORMAL,\n this.currentFontWeight.getItemText(this.currentFontWeight.getSelectedIndex())); \n }",
"public void setTabFontSize(int tabSelectionIndex, int newFonSize) {\r\n\t\tif (tabSelectionIndex == 0) {\r\n\t\t\t//actual no special font size adaption enabled\r\n\t\t}\r\n\t\telse if (tabSelectionIndex > 0) {\r\n\t\t\tif (this.displayTab.getItem(tabSelectionIndex) instanceof DigitalWindow) {\r\n\t\t\t\t//this.settings.setDigitalDisplayFontSize(newFonSize); actual no pesistens enabled\r\n\t\t\t\tthis.digitalTabItem.setDigitalDisplayFontSize(newFonSize);\r\n\t\t\t\tthis.updateDigitalWindowChilds();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }",
"public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }",
"public TextController createSize(ControllerCore genCode) {\n\t\tsizeTXT = new TextController(\"size\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(size$1LBL);\n\t\t\t\tsetProperty(\"size\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn sizeTXT;\n\t}",
"public void sizeActionPerformed(java.awt.event.ActionEvent evt) {\n myFont.size = ((Integer) size.getSelectedItem()).intValue(); /*FAULT:: myFont.size = 5; */\n }",
"private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }",
"public int getFontSize();",
"public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}",
"public FontData deriveFont(float size) {\n return deriveFont(size, javaFont.getStyle());\n }",
"public Font modify(Font font) {\n\t\tif (family == null) {\n\t\t\tif (style != null && size != null) {\n\t\t\t\treturn font.deriveFont(style, size);\n\t\t\t}\n\t\t\telse if (style != null) {\n\t\t\t\treturn font.deriveFont(style);\n\t\t\t}\n\t\t\treturn font.deriveFont((float) size);\n\t\t}\n\t\tint newStyle = style != null ? style : font.getStyle();\n\t\tint newSize = size != null ? size : font.getSize();\n\t\treturn new Font(family, newStyle, newSize);\n\t}",
"@Override\n public Position setSize(double w, double h) {\n return new Position(w, h);\n }",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"public double getFontSize(\n )\n {return fontSize;}",
"void setPaperSize(short size);",
"public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }",
"public float getFontSize();",
"public StockEvent setFontSize(Integer fontSize) {\n this.fontSize = fontSize;\n return this;\n }",
"private Font(File fontFile, int fontFormat,\n boolean isCopy, CreatedFontTracker tracker)\n throws FontFormatException {\n\tthis.createdFont = true;\n\t/* Font2D instances created by this method track their font file\n\t * so that when the Font2D is GC'd it can also remove the file.\n\t */\n\tthis.font2DHandle =\n\t FontManager.createFont2D(fontFile, fontFormat,\n isCopy, tracker).handle;\n\n\tthis.name = this.font2DHandle.font2D.getFontName(Locale.getDefault());\n\tthis.style = Font.PLAIN;\n\tthis.size = 1;\n\tthis.pointSize = 1f;\n }",
"public int getFontSize()\n \t{\n \t\treturn 13;\n \t}",
"public void setSize(double size) \n {\n this.size = size;\n }",
"StyledTextRenderer2(Device device, Font font, GC gc, int tabLength) {\n\tthis.device = device;\n\tthis.regularFont = font;\n\tthis.printerGC = gc;\n\tcalculateLineHeight();\n\tsetTabLength(tabLength);\n}",
"static Font getFont(int style, int size) {\n\t\treturn new Font(\"Monospaced\", style, size);\n\t}",
"public FreeMindWriter font( String name, String size ) {\n tagClose();\n out.println( \"<font NAME='\" + name + \"' SIZE='\" + size + \"'/>\" );\n return this; \n }",
"@Override\n\t\t\tpublic void update(Observable o, Object arg) {\n\t\t\t\tupdateOtherLineFontSize(Properties.getDefaultProperties().getIntProperty(otherLineFontSizeKey));\n\t\t\t}",
"public FontData deriveFont(float size, int style) {\n FontData original = getStyled(getFamilyName(), style);\n FontData data = new FontData();\n data.size = size;\n data.javaFont = original.javaFont.deriveFont(style, size);\n data.upem = upem;\n data.ansiKerning = ansiKerning;\n data.charWidth = charWidth;\n\n return data;\n }",
"public void setModifierFont(String name, int type, int size) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size);\n _SPR.RefreshModifierFont();\n }",
"public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}",
"private void updateLineHeight() {\n Text text = new Text(\"AM\");\n text.setFont(new Font(fontType, fontSize));\n lineHeight = round(text.getLayoutBounds().getHeight());\n }",
"public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }",
"public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }",
"public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }",
"public float getFontSize() {\n return fontSize;\n }",
"public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }",
"public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }",
"public void setFontSize(int fontSize) {\n this.fontSize = fontSize;\n updateLineHeight();\n updateCursor();\n update();\n }",
"FONT createFONT();",
"public void setFontSize(float fs) {\n\t\tif (fs != fontSize) {\n\t\t\tfontSize = fs;\n\t\t\treload();\n\t\t}\n\t}",
"@Override\n public void setFont(Font f) {\n super.setFont(f);\n menuDirty = true;\n ResizeUtils.updateSize(this, actions);\n }",
"public StyledText(int capacity) {\r\n fCharBuffer = capacity > 0 ? new CharBuffer(capacity) : new CharBuffer();\r\n fStyleBuffer = new StyleBuffer(this, AttributeMap.EMPTY_ATTRIBUTE_MAP);\r\n fParagraphBuffer = new ParagraphBuffer(fCharBuffer);\r\n }",
"public void setSize(String size) {\n this.size = size;\n }",
"public int getFontSize()\r\n {\r\n return myFontSize;\r\n }",
"@Override\n\t\t\tpublic void update(Observable o, Object arg) {\n\t\t\t\tupdateCurrentLineFontSize(Properties.getDefaultProperties().getIntProperty(currentLineFontSizeKey));\n\t\t\t}",
"Font createFont();",
"public void setFont(Font newFont, Timing delay, Timing duration) {\r\n\t\tif (gen instanceof AdvancedTextGeneratorInterface)\r\n\t\t\t((AdvancedTextGeneratorInterface)gen).setFont(this, newFont, \r\n\t\t\t\t\tdelay, duration);\r\n\t\telse\r\n\t\t\tthrow new IllegalArgumentException(\"gen is not an AdvancedTextGeneratorInterface -- \" +gen);\r\n\r\n\t}",
"public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }",
"public FontDescriptor(final PDFont font, final float size) {\n this.font = font;\n this.size = size;\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n Font currentFont = jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane.getFont();\r\n Font newFont = new Font(currentFont.getFontName(), currentFont.getStyle(), currentFont.getSize()+1);\r\n jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane.setFont(newFont);\r\n }",
"public void setSize(int size);",
"public void copyTo(\n GraphicsState state\n )\n {\n state.blendMode = blendMode;\n state.charSpace = charSpace;\n state.ctm = (AffineTransform)ctm.clone();\n state.fillColor = fillColor;\n state.fillColorSpace = fillColorSpace;\n state.font = font;\n state.fontSize = fontSize;\n state.lead = lead;\n state.lineCap = lineCap;\n state.lineDash = lineDash;\n state.lineJoin = lineJoin;\n state.lineWidth = lineWidth;\n state.miterLimit = miterLimit;\n state.renderMode = renderMode;\n state.rise = rise;\n state.scale = scale;\n state.strokeColor = strokeColor;\n state.strokeColorSpace = strokeColorSpace;\n //TODO:temporary hack (define TextState for textual parameters!)...\n if(state.scanner.getParent() instanceof Text)\n {\n state.tlm = (AffineTransform)tlm.clone();\n state.tm = (AffineTransform)tm.clone();\n }\n else\n {\n state.tlm = new AffineTransform();\n state.tm = new AffineTransform();\n }\n state.wordSpace = wordSpace;\n }",
"StyledTextRenderer2(Device device, Font font, StyledText2 styledText, int tabLength) {\n\tthis.device = device;\n\tthis.regularFont = font;\n\tthis.styledText = styledText;\n\tcalculateLineHeight();\n\tsetTabLength(tabLength);\n}",
"public void setFont(Font value) {\r\n this.font = value;\r\n }",
"protected abstract void setSize();",
"protected final void multiplySize(float size)\n {\n super.setSize(this.bokoblinWidth * size, this.bokoblinHeight * size);\n }",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"public void setFontSize(int font) {\n\t\tthis.font = font;\n\t}",
"double getFontSizeAdjustment() {\n return fontSizeAdjustment;\n }",
"public void update()\n\t{\n\t\tsetFont(attribs.getFont());\n\t\tTextMeshGenerator.generateTextVao(this.text, this.attribs, this.font, this.mesh);\n\t\tsize = new Vector2f(mesh.maxPoint.x(), mesh.maxPoint.y());\n\t}",
"public FontFactory(String font, int size, String text) {\n this.font = new Font(font, Font.BOLD, size);\n ttf = new TrueTypeFont(this.font, true);\n this.text = text;\n }",
"public native final EditorBaseEvent fontSize(String val) /*-{\n\t\tthis.fontSize = val;\n\t\treturn this;\n\t}-*/;",
"protected final void setSubscript() {\n setFontSize((int) (getFontSize() * 0.5d));\n// yOffset += getFontSize();\n }",
"public final int getFontSize() {\n return fontSize;\n }",
"public static void createInstance(final double fontSize) {\n if (instance == null) {\n synchronized (CONSTRUCT) {\n instance = new UIParameters();\n }\n }\n instance.calcSizes(fontSize);\n }",
"void setFontScale(\n float s);",
"public SimpleStyle copy() {\n\t\tSimpleStyle simpleStyle = new SimpleStyle();\n\t\tcopyIn(simpleStyle);\n\t\treturn simpleStyle;\n\t}",
"private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}",
"protected void newSize() {\r\n adjustSize();\r\n halt();\r\n newGame();\r\n }",
"public FontFrame(JTextArea txtWorkplace) {\n initComponents();\n Font[] fontList = new Font[]{};\n fontList = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();\n for (int i = 0; i < fontList.length; i++) {\n cbbFont.addItem(fontList[i].getFontName());\n }\n fontName = (String) cbbFont.getSelectedItem();\n fontSize = (int) spinnerSize.getValue();\n fontStyle = (int) cbbStyle.getSelectedIndex();\n lblTest.setFont(new Font(fontName,fontSize,fontSize));\n this.txtWorkplace = txtWorkplace;\n }",
"public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}",
"@Override\r\n\tpublic int getFontSize() {\n\t\treturn 0;\r\n\t}",
"public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }",
"private void setFont() {\n\t}",
"public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }",
"public void setSize(int _size)\r\n {\r\n size = _size;\r\n }",
"public ModernAutoSizeLabel(String text, Font font) {\r\n super(text, font);\r\n }",
"public native final String fontSize() /*-{\n\t\treturn this.fontSize;\n\t}-*/;",
"public int fontSize() {\n\t\treturn fixedFontSize;\n\t}",
"public void setSize();",
"public void setSize(int size) {\r\n _size = size;\r\n }",
"@Override\r\n\tpublic void newDraw(int x, int y) {\n\t\tsuper.newDraw(x, y);\r\n\t\twordSize = (int) Math.max((Math.abs(x2 - x1) + Math.abs(y2 - y1)) / 3, 2);\r\n\t}"
] | [
"0.6360923",
"0.61379",
"0.607356",
"0.5968481",
"0.5843555",
"0.584178",
"0.58140707",
"0.57676333",
"0.575349",
"0.5725828",
"0.5723133",
"0.5700955",
"0.566765",
"0.56049764",
"0.5604473",
"0.55922014",
"0.559028",
"0.5546814",
"0.553574",
"0.55345434",
"0.55183035",
"0.5515189",
"0.5511937",
"0.55114293",
"0.5508684",
"0.54932296",
"0.54742056",
"0.5468399",
"0.54606897",
"0.5439752",
"0.5412484",
"0.539633",
"0.539633",
"0.53949225",
"0.5394396",
"0.53860736",
"0.5376016",
"0.53755003",
"0.5375222",
"0.5355148",
"0.53499454",
"0.53366584",
"0.5330504",
"0.5326336",
"0.5320173",
"0.5318525",
"0.53163135",
"0.5313814",
"0.53007686",
"0.52946395",
"0.5286311",
"0.52851295",
"0.5284606",
"0.5283759",
"0.52818763",
"0.52803296",
"0.52617866",
"0.5253428",
"0.52294225",
"0.52268595",
"0.52183676",
"0.51954806",
"0.5192548",
"0.51681745",
"0.51663256",
"0.51627773",
"0.5161364",
"0.5159597",
"0.51438254",
"0.5140892",
"0.5137864",
"0.51369065",
"0.5123937",
"0.51236516",
"0.5119628",
"0.51185244",
"0.5118176",
"0.5117731",
"0.51116526",
"0.5111492",
"0.5109994",
"0.5107429",
"0.5103279",
"0.510229",
"0.50996715",
"0.5099507",
"0.5096776",
"0.5090491",
"0.50845915",
"0.5076895",
"0.50699997",
"0.50636494",
"0.50498843",
"0.50438476",
"0.50424045",
"0.5039717",
"0.5034555",
"0.5034128",
"0.5032153",
"0.5025603"
] | 0.68847877 | 0 |
/ Code fragment in the bookint[] | public static void code_fragment(){
int[] a = new int[10];
for(int i = 0; i < 10 ; i++){
a[i] = 9 - i;
// Custom code to print values
print_value(i, a[i]);
}
for(int i = 0; i < 10 ; i++){
a[i] = a[a[i]];
// Custom code to print values
print_value(i, a[i]);
}
for(int i = 0; i < 10 ; i++){
System.out.println(i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tint[] intArr = null;\r\n\t\tintArr = new int[5];\r\n\t\t\r\n\t\tArrayBasic ab = new ArrayBasic();\r\n\t\t\r\n\t\tab.printArray(intArr);\r\n\t\tab.printArray(intArr);\r\n\t\t\r\n\t\tint[] intArr2 = {1,2,3,4,5};\r\n\t\tab.printArray(intArr2);\r\n\t\t\r\n\t\tString[] strArr = new String[5];\r\n\t\tab.printArray(strArr);\r\n\t\t\r\n\t\tString[] strArr2 = {\"아이유\",\"아이린\",\"은아\",null,null};\r\n\t\t\r\n\t\tab.printArray(strArr2);\r\n\t\t\r\n\t\tBook[] bookArr = new Book[2];\r\n\t\tbookArr[0] = new Book(\"칼 세이번\",720,\"코스모스\");\r\n\t\tbookArr[1] = new Book(\"작가 미상\",300,\"Effetive-C++\");\r\n\t\tab.printArray(bookArr);\r\n\t\t\r\n\t\tint[] intArr3 = null;\r\n\t\tSystem.out.println(intArr3);\r\n\t\t\r\n\t\tintArr3 = new int[3];\r\n//\t\tSystem.out.println(intArr3[4]);\r\n\t\tString[] strArr3 = new String[3];\r\n//\t\tSystem.out.println(strArr3[0].length());\r\n\t\tBook[] bookarr3 = new Book[3];\r\n//\t\tSystem.out.println(bookarr3[0].getTitle());\r\n\t\t\r\n\t\t\r\n\t\tint[] scores = new int[]{100,90,80,70};\r\n\t\tint sum = 0;\r\n\t\tfor(int i=0;i<scores.length;i++){\r\n\t\t\tsum += scores[i];\r\n\t\t}\r\n\t\tSystem.out.println(\"총합 : \"+sum);\r\n\t\tSystem.out.println(\"평균 : \"+sum/scores.length);\r\n\t}",
"void mo12207a(int[] iArr);",
"public int[] captureCodeFragment08(int[] a) {\r\n Arrays.sort(a);\r\n return a;\r\n }",
"org.openxmlformats.schemas.presentationml.x2006.main.CTGuide getGuideArray(int i);",
"private int getInt(int location) {\n return intArray[location];\n }",
"int[] mo12208a(int i);",
"int[] getSelectedAuthorsBookIndexes();",
"void mo26167a(Activity activity, int i, String[] strArr, int[] iArr);",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public int[] captureCodeFragment07(int[] a) {\r\n for (int i = 0; i < a.length / 2; i++) {\r\n int temp = a[i];\r\n a[i] = a[a.length - 1 - i];\r\n a[a.length - 1 - i] = temp;\r\n }\r\n return a;\r\n }",
"public abstract int parse(byte bc[], int index);",
"int[] mo56159c();",
"void mo1933b(int i);",
"public abstract int [] getReleasePosition();",
"public abstract void mo4380b(byte[] bArr, int i, int i2);",
"int getIndex(Book title){\n return 0;\n }",
"void mo88a(byte[] bArr, int i, int i2);",
"public static int[] prc(int[] arr,int p)\r\n {\n char[][] barr=new char[arr.length][];\r\n /*for(int i=0;i<barr.length;i++)\r\n barr[i] = new StringBuilder(\"\");*/\r\n int[] onesarr=new int[barr.length];\r\n int odd,even;\r\n odd=even=0;\r\n for(int i=0;i<arr.length;i++)\r\n {\r\n barr[i]=(Integer.toBinaryString(p^arr[i])).toCharArray();\r\n }\r\n\r\n /*for(int i=0;i<barr.length;i++)\r\n System.out.print(barr[i]+\" \");\r\n System.out.println();*/\r\n /*for(int i=0;i<barr.length;i++)\r\n {\r\n char[] tmp=new char[barr[i].length()];\r\n barr[i].getChars(0, barr[i].length(), tmp, 0);\r\n int t=0;\r\n for(int j=0;j<tmp.length;j++)\r\n {\r\n if(tmp[j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }*/\r\n for(int i=0;i<barr.length;i++)\r\n {\r\n int t=0;\r\n for(int j=0;j<barr[i].length;j++)\r\n {\r\n if(barr[i][j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }\r\n /*for(int i=0;i<onesarr.length;i++)\r\n System.out.print(onesarr[i]+\" \");\r\n System.out.println();*/\r\n for(int i=0;i<onesarr.length;i++)\r\n {\r\n if(onesarr[i]%2==0)\r\n even++;\r\n else\r\n odd++;\r\n }\r\n int[] ansarr=new int[2];\r\n ansarr[0]=even;\r\n ansarr[1]=odd;\r\n return ansarr; \r\n }",
"private static int getBinaryCode(ArrayList<ArrayList<Integer>> tMat, int row){\r\n\t\tArrayList<Integer> currRow = tMat.get(row);\r\n\t\tString rowStr = currRow.toString().replaceAll(\"[^0-9]\", \"\");\r\n\t\treturn Integer.parseInt(rowStr, 2);\r\n\t}",
"public abstract void mo13593a(byte[] bArr, int i, int i2);",
"public int[] getCodewords() {\n\t\treturn this.codewords;\n\t}",
"public static void m1033a(byte[] bArr, int i) {\n }",
"private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}",
"private static void printIntArray(int[] arr){\n\t\tSystem.out.print(\"[ \");\n\t\tfor(Integer i : arr){\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\t\tSystem.out.println(\" ]\");\n\t}",
"private static int m17785a(byte[] bArr, int i) {\n return ((bArr[i + 0] | (bArr[i + 1] << 8)) | (bArr[i + 2] << 16)) | (bArr[i + 3] << 24);\n }",
"public abstract int [] getPressPosition();",
"private static int [] yy_unpack() {\n int [] trans = new int[8174];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }",
"private static int [] yy_unpack() {\n int [] trans = new int[5476];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }",
"public static void playWithPrimitiveArray() {\n //int a1, a2, a3, a4, a5, a6;\n //o sat nhau nhung khong duoc goi la mang\n int a[] = {1, 3, 5, 7, 9, 2, 6, 1000, 2000};\n //co 7 bien int da dc khai bao, o sat nhau, cung chung ten la a\n //khai bao cung 1 luc\n // ko chi ra kci hthuoc luc khai bao, khac voi C day\n int[] b = {1, 3, 5, 7, 9, 2, 6, 1000, 2000};\n //in mang\n System.out.println(\"The array has (by using for i): \");\n //In toan bo mang thoe phong cach for each\n for (int i : a) //voi moi i thuoc vao cac gia tri trong a[]\n {\n System.out.print(i + \" \");\n }\n System.out.println(\"\");\n for (int i = 0; i < b.length; i++) {\n System.out.print(b[i] + \" \");\n }\n //tinh tong trong b[]\n int sum = 0;\n for (int i : b) {\n sum += i;\n }\n System.out.println(\"Sum: \" + sum);\n //it xai mang kieu khai bao o tren, vi thuong chua biet truoc value bo vao mang\n //gs ta can luu luong mua trong nam, so biet duoc luong mua cac ngay con lai do chua dien ra\n //the nen se xai cach khai bao sau: khai bao mang truoc, gan value sau\n //gan value sau bang toan hoac Scanner\n int[] c = new int[10]; //xin 10 bien int nhen, cung ten la c\n //nho ngoac vuong la xin so bien , hem phai pheu~ de do, pheu phai (do value vao)\n //nho la mang primitive, nen moi bien[] la bien primitive, chua truc tiep value\n c[0] = 1;\n c[1] = 12;\n c[2] = 2204;\n c[7] = 7508;\n for (int i : c) {\n System.out.print(i + \" \");\n }\n System.out.println(\"\");\n //default bien trong mang khong duoc gan gia tri co gia tri mac dinh la 0.\n //cach khai bao mang a, b la new int[] ngam (implicit)\n //cach khai bao mang c goi la khai bao tuong minh (explicit) \n }",
"int mo1684a(byte[] bArr, int i, int i2);",
"void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);",
"public boolean verdict(int n[]) {\n\treturn true;\n }",
"@Override\n\tpublic String generateJavaCode() {\n\t\treturn id + \" = \"+(tam>0? \"new int[]\": \"\")+expr+\";\";\n\t}",
"static int[] getFirstResultString(int[] array){\n int from = (n * (lineNumber-1));\n int[] rezultColumn = Arrays.copyOfRange(array, from, from + n);\n return rezultColumn;\n }",
"void mo23327tY(int i);",
"void mo9148a(int i, ArrayList<C0889x> arrayList);",
"public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }",
"public int arrayOffset()\r\n/* 133: */ {\r\n/* 134:162 */ return 0;\r\n/* 135: */ }",
"void mo3796b(int i);",
"@VisibleForTesting\n protected static ArrayList<Integer> formatGalileoDwrdIntArray(String dwrd) {\n // Removing last word, as u-center does\n String data = dwrd.substring(0, dwrd.length() - 8);\n ArrayList<Integer> dataArray = ParserUtils.getTwosComplementArray(data);\n // Removing bytes 16 and 32 (they are padding which should be always zero)\n dataArray.remove(15);\n dataArray.remove(30);\n return dataArray;\n }",
"private void setIntArr(int[] intArr) {\r\n this.intArr = intArr;\r\n\r\n }",
"protected int _getInt(int index)\r\n/* 378: */ {\r\n/* 379:392 */ return HeapByteBufUtil.getInt(this.array, index);\r\n/* 380: */ }",
"public int [] covertirInt(String [] a) {\n\t\n\t\n\t int [] temporal = new int [a.length-1];\n\t\n\t\n\t for (int i =0; i<temporal.length;i++) {\n\t \n\t\t temporal[i]=Integer.parseInt(a[i+1]);\n\t }\n \n \n\t return temporal;\n\t\n}",
"C02(int i){\n\t\t\n\t}",
"private static int m13704a(C2085b c2085b, int i, long j, int i2, C2302k c2302k, int i3) {\n Object obj;\n int[] iArr;\n long j2;\n C2085b c2085b2 = c2085b;\n c2302k.m8388c(8);\n int b = C2087a.m7471b(c2302k.m8403o());\n Track track = c2085b2.f5791c;\n C2102i c2102i = c2085b2.f5790b;\n C2093c c2093c = c2102i.f5938a;\n c2102i.f5945h[i] = c2302k.m8409u();\n c2102i.f5944g[i] = c2102i.f5940c;\n if ((b & 1) != 0) {\n long[] jArr = c2102i.f5944g;\n jArr[i] = jArr[i] + ((long) c2302k.m8403o());\n }\n Object obj2 = (b & 4) != 0 ? 1 : null;\n int i4 = c2093c.f5892d;\n if (obj2 != null) {\n i4 = c2302k.m8409u();\n }\n Object obj3 = (b & 256) != 0 ? 1 : null;\n Object obj4 = (b & 512) != 0 ? 1 : null;\n Object obj5 = (b & 1024) != 0 ? 1 : null;\n Object obj6 = (b & ItemAnimator.FLAG_MOVED) != 0 ? 1 : null;\n long j3 = 0;\n if (track.f5810h != null && track.f5810h.length == 1 && track.f5810h[0] == 0) {\n j3 = C2314v.m8492d(track.f5811i[0], 1000, track.f5805c);\n }\n int[] iArr2 = c2102i.f5946i;\n int[] iArr3 = c2102i.f5947j;\n long[] jArr2 = c2102i.f5948k;\n int i5 = i4;\n boolean[] zArr = c2102i.f5949l;\n int[] iArr4 = iArr2;\n Object obj7 = (track.f5804b != 2 || (i2 & 1) == 0) ? null : 1;\n i4 = i3 + c2102i.f5945h[i];\n long[] jArr3 = jArr2;\n long j4 = j3;\n long j5 = track.f5805c;\n if (i > 0) {\n obj = obj7;\n iArr = iArr3;\n j2 = c2102i.f5956s;\n } else {\n obj = obj7;\n iArr = iArr3;\n j2 = j;\n }\n int i6 = i3;\n while (i6 < i4) {\n Object obj8;\n int i7;\n Object obj9;\n int u = obj3 != null ? c2302k.m8409u() : c2093c.f5890b;\n int u2 = obj4 != null ? c2302k.m8409u() : c2093c.f5891c;\n if (i6 == 0 && obj2 != null) {\n obj8 = obj2;\n i7 = i5;\n } else if (obj5 != null) {\n i7 = c2302k.m8403o();\n obj8 = obj2;\n } else {\n obj8 = obj2;\n i7 = c2093c.f5892d;\n }\n if (obj6 != null) {\n obj9 = obj6;\n iArr[i6] = (int) ((((long) c2302k.m8403o()) * 1000) / j5);\n } else {\n obj9 = obj6;\n iArr[i6] = 0;\n }\n jArr3[i6] = C2314v.m8492d(j2, 1000, j5) - j4;\n iArr4[i6] = u2;\n boolean z = ((i7 >> 16) & 1) == 0 && (obj == null || i6 == 0);\n zArr[i6] = z;\n i6++;\n j2 += (long) u;\n obj2 = obj8;\n obj6 = obj9;\n C2302k c2302k2 = c2302k;\n }\n c2102i.f5956s = j2;\n return i4;\n }",
"protected static int[] convert(byte[] packet) {\n\t\tint[] p = new int[packet.length - 3];\n\t\t\n\t\t// would arrayscopy work here?\n\t\tfor(int i = 2; i < packet.length - 1; i++) {\n\t\t\tp[i - 2] = packet[i] & 0xFF;\n\t\t}\n\t\t\n\t\treturn p;\n\t}",
"private int rowCombo2Key(int[] combo) {\n int key = 0;\n for (int i : combo) {\n key = (key << 3) | i;\n }\n return key;\n }",
"public static void main(String[] args) {\n\r\n\t\tint[] intArray = new int[3];\r\n\t\t\r\n\t\tintArray[0] = 52;\r\n\t\tintArray[1] = 13;\r\n\t\t//intArray[2] = 41; 초기화 하지 않으면 0으로 세팅(정수형)\r\n\t\t\t\t\t\t\t//실수형, boolean, char 기본값 알아보겟음\r\n\t\t\r\n\t\tSystem.out.println(\"=============\");\r\n\t\tSystem.out.println(intArray.length);\r\n\t\tSystem.out.println(\"=============\");\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=0; i<intArray.length; i++) {\r\n\t\t\tSystem.out.println(intArray[i]);\r\n\t\t}\r\n\t\r\n\t\tSystem.out.println(\"=============\");\r\n\t\t//ArrayIndexOutOfBoundsException --> 없는 방을 사용하려고 할때\r\n\t\tfor(int i=0; i<intArray.length; i++) {\r\n\t\t\tSystem.out.println(intArray[i]);\r\n\t\t}\r\n\t\r\n\t\t\r\n\t}",
"public int[] headCode(Hashtable<Character,Code> codes,int[] rep) {\r\n\t\t\r\n\t\tint count = 0;\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0 ; i < rep.length ; i++) \r\n\t\t\tif (rep[i] > 0)\r\n\t\t\t\tcount++;\r\n\t\tint[] headArr = new int[count]; // create integer array that will hold the integer value for the every character information \r\n\t\t\r\n\t\tfor (int i = 0 ; i < rep.length ; i++) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (rep[i] > 0) {\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t\tint num = 0;\r\n\t\t\t\t\r\n\t\t\t\t//num |= codes.get((char)i).code.length();\r\n\t\t\t\t\r\n\t\t\t\tString c = codes.get((char)i).code; // get huffman code for the character from hash table which is O(1)\r\n\t\t\t\tSystem.out.println(c + \" \" + c.length());\r\n\t\t\t\tfor (int j = 0 ; j < c.length() ; j++) {\r\n\t\t\t\t\tnum <<= 1; // shift the integer by 1 bit to the left\r\n\t\t\t\t\tif (c.charAt(j) == '1') {\r\n\t\t\t\t\t\tnum |= 1; // make or operation for each digit of the huffman code with num that will contains the information\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnum |= 0; \r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tint ch = i; \r\n\t\t\t\tch <<= 24; // shift character value 24 bit to the left so that it will be in the first byte to the left of the integer\r\n\t\t\t\tint l = c.length();\r\n\t\t\t\tl <<= 16; // shift the length of huffman code 16 bit to the left so that it will be in the second byte to the left of the integer\r\n\t\t\t\tnum |= ch; // make or operation that will put the value of character to the fisrt byte of the integer\r\n\t\t\t\tnum |= l; // make of operation that will put the calue of huffman code to the second byte of the integer\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * integer representation >> 00000000000000000000000000000000\r\n\t\t\t\t * my representation >>\t ccccccccllllllllhhhhhhhhhhhhhhhh\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(num);\r\n\t\t\t\theadArr[counter++] = num;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn headArr;\r\n\t\t\r\n\t}",
"int[] mo56160d();",
"public static int method_263(byte[] var0) {\n field_748[field_750] = var0;\n return field_750++;\n }",
"public static void main(String[] args) {\nint[] array; //int array [];\r\narray=new int [4];\r\narray[0]=3;\r\narray[1]=332;\r\narray[2]=37;\r\narray[3]=45;\r\n//array[4]=2;\r\nSystem.out.println(\"2nd element:\"+array[1]);\r\nint [] arr;\r\narr=new int[4];\r\nfor(int i=0;i<array.length;i++)\r\n{\r\narr[i]=Integer.parseInt(args[i]);\r\n\r\n\r\nSystem.out.println(\" element:\"+arr[i]);\r\n}\r\n/*for(int var:arr)// enhanced for loop\r\n{\r\n\tSystem.out.println(var);\r\n}*/\r\n\t}",
"public native int[] __intArrayMethod( long __swiftObject, int[] arg );",
"void m15858a(int i);",
"static void initBin(int[] binToInt)\n {\n for(int i = 0; i < 32; i++)\n {\n binToInt[i] = 0;\n }\n }",
"public void int2_m() {\n\t\t\n\t}",
"void mo1753b(int i);",
"void mo22044oA(int i);",
"public static void main(int[] string){\n int[] numbers = new int[]{2, 3, 1, 6, 7};\n\n System.out.println();\n\n }",
"void mo17022c(int i);",
"private void m14716a(int[] iArr, C3072b1 b1Var, int i) {\n int i2 = b1Var.f10973d;\n int i3 = this.f10966u;\n int i4 = i2 / i3;\n int i5 = b1Var.f10971b / i3;\n int i6 = b1Var.f10972c / i3;\n int i7 = b1Var.f10970a / i3;\n int i8 = this.f10968w;\n int i9 = (i5 * i8) + i7;\n int i10 = (i4 * i8) + i9;\n while (i9 < i10) {\n int i11 = i9 + i6;\n for (int i12 = i9; i12 < i11; i12++) {\n iArr[i12] = i;\n }\n i9 += this.f10968w;\n }\n }",
"@Override\n\t\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\t\n\t\t\t\t}",
"public abstract int a(CharSequence charSequence, byte[] bArr, int i, int i2);",
"public static void m2105c(int[] iArr, Object[] objArr, int i) {\n Class<C0663j4> cls = C0663j4.class;\n if (iArr.length == 8) {\n synchronized (cls) {\n if (f2824h < 10) {\n objArr[0] = f2823g;\n objArr[1] = iArr;\n for (int i2 = (i << 1) - 1; i2 >= 2; i2--) {\n objArr[i2] = null;\n }\n f2823g = objArr;\n f2824h++;\n }\n }\n } else if (iArr.length == 4) {\n synchronized (cls) {\n if (f2822f < 10) {\n objArr[0] = f2821e;\n objArr[1] = iArr;\n for (int i3 = (i << 1) - 1; i3 >= 2; i3--) {\n objArr[i3] = null;\n }\n f2821e = objArr;\n f2822f++;\n }\n }\n }\n }",
"private oa a(int paramInt)\r\n/* 185: */ {\r\n/* 186:195 */ if (c[paramInt] == null) {\r\n/* 187:196 */ c[paramInt] = new oa(String.format(\"textures/font/unicode_page_%02x.png\", new Object[] { Integer.valueOf(paramInt) }));\r\n/* 188: */ }\r\n/* 189:199 */ return c[paramInt];\r\n/* 190: */ }",
"public static void printIntArray(int[] array){\n for(int i = 0; i < array.length; i++)\n System.out.print(\"[\" + i + \"]\" + \" = \" + array[i] + \" \");\n }",
"public int[] getIntList();",
"@Override\n\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\n\t\t\t}",
"public static int[] getIdentifierBlock(BaseDocument doc, int offset)\n throws BadLocationException {\n int[] ret = null;\n int idStart = getWordStart(doc, offset);\n if (idStart >= 0) {\n int idEnd = getWordEnd(doc, idStart);\n if (idEnd >= 0) {\n String id = doc.getText(idStart, idEnd - idStart);\n if (doc.getSyntaxSupport().isIdentifier(id)) {\n ret = new int[] { idStart, idEnd };\n } else { // not identifier by syntax support\n id = getWord(doc, offset); // try right at offset\n if (doc.getSyntaxSupport().isIdentifier(id)) {\n ret = new int[] { offset, offset + id.length() };\n }\n }\n }\n }\n return ret;\n }",
"public IntRAC() {\n\t\tcodebook = new ArrayList<int[]>();\n\t\tthis.threshold = 128;\n\t\tthis.nDims = -1;\n\t\tthis.totalSamples = 0;\n\t}",
"byte[] mo12209b(int i);",
"int mo9692a(String[] strArr, int i);",
"abstract void mo4384c(byte[] bArr, int i, int i2);",
"private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }",
"private static int[] toIntArray(List<Integer> shorts) {\n int[] array = new int[shorts.size()];\n for (int i = 0; i < shorts.size(); i++)\n array[i] = shorts.get(i).shortValue();\n return array;\n }",
"public static final int[] m7506a(int[] iArr) {\n if (r0 != 0) {\n Arrays.sort(iArr);\n ArrayList arrayList = new ArrayList();\n for (int i : iArr) {\n if (i > 0) {\n Integer valueOf = Integer.valueOf(i);\n if (Collections.binarySearch(arrayList, valueOf) < 0) {\n arrayList.add(valueOf);\n }\n }\n }\n if (r0 != arrayList.size()) {\n int size = arrayList.size();\n int[] iArr2 = new int[size];\n for (int i2 = 0; i2 < size; i2++) {\n iArr2[i2] = ((Integer) arrayList.get(i2)).intValue();\n }\n return iArr2;\n }\n }\n return iArr;\n }",
"protected static int getInt(byte[] data, int offset){\n return makeInt(data, offset);\n }",
"int[] getInts();",
"public abstract void mo9734b(int i);",
"public static void main(String[] args) {\n int[] pre = {6, 4, 3, 5, 8, 7, 9};\n int[] in = {3, 4, 5, 6, 7, 8, 9};\n int[] pos = preInToPos(pre, in);\n System.out.println(Arrays.toString(pos));\n }",
"static int introTutorial(int V, int[] arr) {\n// return searchBinaryRecursive(V, arr, 0, arr.length-1);\n return searchBinaryIterative(V, arr, 0, arr.length-1);\n }",
"protected int addInfo(syntaxMap toAdd){\n if(index == 10){\n return 0;\n }\n else if(index < 5) {\n this.array1[index] = toAdd;\n }\n else{\n this.array2[index - 5] = toAdd;\n }\n ++index;\n return 1;\n }",
"public abstract int[] toIntArray();",
"public static void main(String[] args) {\n Integer[] arr = {0,1,2};\n HashSet<Integer> IDs = new HashSet<>(Arrays.asList(arr));\n //books.forEach(e-> IDs.add(e.getId()));\n int i=-1;\n while(i<Integer.MAX_VALUE){\n if (!IDs.contains(++i)) {\n System.out.println(i);\n break;\n }\n }\n System.out.println(-1);\n }",
"public int[] numbers();",
"public static byte[] m19209b(byte[] bArr, int i, int i2, int i3) {\n C5988c cVar = new C5988c(i3, (byte[]) null);\n int i4 = (i2 / 3) * 4;\n int i5 = 2;\n if (!cVar.f15326f) {\n int i6 = i2 % 3;\n if (i6 == 1) {\n i4 += 2;\n } else if (i6 == 2) {\n i4 += 3;\n }\n } else if (i2 % 3 > 0) {\n i4 += 4;\n }\n if (cVar.f15327g && i2 > 0) {\n int i7 = ((i2 - 1) / 57) + 1;\n if (!cVar.f15328h) {\n i5 = 1;\n }\n i4 += i7 * i5;\n }\n cVar.f15314a = new byte[i4];\n cVar.mo33815a(bArr, i, i2, true);\n return cVar.f15314a;\n }",
"private static int arrTopla(int[] arr) {\n\t int topla = 0;\n\t for (int a : arr) {\n\t topla += a;\n\t }\n\t return topla;\n\t }",
"void mo32046rn(int i);",
"private void recoverCodes(PrioQ p)\n\t{\n\t\tcodes = new String[256];\n\t\t\n\t\tString s = \"\";\n\t\twhile(s.length() < p.get(0).getCount())\n\t\t{\n\t\t\ts += \"0\";\n\t\t}\n\t\tp.get(0).setCanCode(s);\n\t\tcodes[p.get(0).getData()] = s;\n\t\t\n\t\tint n = 0;\n\t\tfor(int i = 1; i < p.size(); i++)\n\t\t{\n\t\t\tn++;\n\t\t\twhile(Integer.toBinaryString(n).length() < \n\t\t\t\t\tp.get(i).getCount())\n\t\t\t{\n\t\t\t\tn = n << 1;\n\t\t\t}\n\t\t\t\n\t\t\tp.get(i).setCanCode(Integer.toBinaryString(n));\n\t\t\tcodes[p.get(i).getData()] = Integer.toBinaryString(n);\n\t\t}\n\t}",
"public static void bdisplay() {\n\n for (int i = 0; i < 5; i++) {\n card[i][0] = (int) B.get(i);\n }\n }",
"void setGuideArray(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTGuide guide);",
"public String get_integer_part();",
"public int[] toIntArray(){\n int[] array = new int[getSeq().size()];\n for (int i = 0; i < array.length; i++) {\n char c = Character.toUpperCase(getSeq().get(i));\n array[i] = Sequence.convert(c);\n }\n return array;\n }",
"private int[] strArrToIntArr(String[] strArr){\r\n\t\t//strArr[0] is the userName - skip it, only return pGen, pExpr, pOrientation\r\n\t\treturn new int[]{Integer.valueOf(strArr[1]),Integer.valueOf(strArr[2]),Integer.valueOf(strArr[3])};\r\n\t}",
"int[] export();",
"private String getKey(int[] arr) {\n StringBuilder sb = new StringBuilder();\n for(int a : arr) {\n sb.append(String.valueOf(a));\n }\n\n return sb.toString();\n }",
"Code[] getCodes();",
"protected void setKeyArray(Object paramObject)\n/* */ {\n/* 103 */ this.m_keyTable = ((int[])paramObject);\n/* */ }",
"void mo17020b(int i);"
] | [
"0.6010313",
"0.5989948",
"0.59516966",
"0.58226913",
"0.5716118",
"0.564708",
"0.5607013",
"0.55741864",
"0.55626863",
"0.55594355",
"0.55537605",
"0.5542263",
"0.55335057",
"0.5530128",
"0.5502368",
"0.5460117",
"0.54545945",
"0.5401523",
"0.5389918",
"0.537252",
"0.5366467",
"0.53639185",
"0.53485197",
"0.53468823",
"0.53462315",
"0.5344763",
"0.53361815",
"0.53245",
"0.5322709",
"0.53200597",
"0.53019005",
"0.5281074",
"0.52777654",
"0.5256482",
"0.52420837",
"0.52258205",
"0.5211273",
"0.5205161",
"0.5201634",
"0.51994294",
"0.5189342",
"0.5179097",
"0.5163037",
"0.5160547",
"0.51579523",
"0.51509964",
"0.5150641",
"0.5149924",
"0.51447815",
"0.5139756",
"0.5125241",
"0.51216155",
"0.5117316",
"0.5112018",
"0.5095253",
"0.5094284",
"0.50903046",
"0.50889957",
"0.50888455",
"0.50870675",
"0.5080092",
"0.50677294",
"0.50677294",
"0.50651205",
"0.50586253",
"0.50446945",
"0.50439596",
"0.5043469",
"0.50392294",
"0.50383246",
"0.5036181",
"0.50354385",
"0.50353",
"0.50336033",
"0.5032335",
"0.50298345",
"0.5028927",
"0.50271666",
"0.50271225",
"0.5026652",
"0.5023763",
"0.5021948",
"0.50202227",
"0.50191295",
"0.5013671",
"0.5010741",
"0.50097775",
"0.50087345",
"0.5006711",
"0.5002775",
"0.50011593",
"0.4999879",
"0.4996416",
"0.49899518",
"0.498972",
"0.4988701",
"0.49875677",
"0.49837327",
"0.4981762",
"0.49799335"
] | 0.568627 | 5 |
Gets called on opening tags like: Can provide attribute(s), when xml was like: | @Override
public void startElement(String namespaceURI, String localName,
String qName, Attributes atts) throws SAXException {
if (localName.equals("Document")) {
this.in_documenttag = true;
} else if (localName.equals("Placemark")) {
this.in_placemarktag = true;
if ( atts.getLength() > 0 && null != atts.getValue("id") ) {
dpm.setId( atts.getValue("id") );
}
} else if (localName.equals("Folder")) {
if (this.in_foldertag) {
// put the previous folder on the stack - hopefully it has a frickin name already!
folderStack.add(folderStack.size(), folder);
folder = new Folder(); // takes place of outer/trail folder
}
this.in_foldertag = true;
} else if (localName.equals("description")) {
this.in_descriptiontag = true;
} else if (localName.equals("name")) {
if (in_placemarktag) {
this.in_placemarknametag = true;
} else if (in_foldertag) {
this.in_foldernametag = true;
} else if (in_documenttag) {
this.in_documentnametag = true;
}
} else if (localName.equals("coordinates")) {
this.in_coordinatestag = true;
} else if (localName.equals("Address")) {
this.in_addresstag = true;
} else {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void addAttr(Attributes attr) throws SAXException {\n\t}",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\n\t\t// On débute une balise dont on veut le contenu textuel\n\t\tif (qName.equalsIgnoreCase(mXmlTagContainingText)) {\n\t\t\tinsideTextTag = true;\n\t\t}\n\n\t\tif (debug) {\n\t\t\tfor (int indent=0 ; indent < elementOffsetStackCursor +1; indent++) {System.out.print (\"--\");}\n\t\t\tSystem.out.print (\"Debug: startElement >\"+qName+\"< \");\n\t\t\tfor (int indent=0 ; indent < attributes.getLength() ; indent++) {System.out.print (\">\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );}\n\t\t\tSystem.out.println ();\n\t\t}\n\n\t\t// So far, I do not why but accessing here to the attributes values \n\t\t// prevent the case that further in the createAnnotation method, \n\t\t// you obtain a substring of attributes.toString which does not correspond to an attribute value \n\t\t// someway the current solution acts as a clone...\n\t\tfor (int indent=0 ; indent < attributes.getLength() ; indent++) {\n\t\t\tattributes.getValue(indent);\n\t\t\t//if (attributes.getValue(indent).startsWith(\"mph=\\\"\"))\t\t{ \n\t\t\t//\tSystem.out.println (\"Debug: startElement >\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );\n\t\t\t//}\n\t\t\t//System.out.print (\">\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );\n\t\t}\n\n\t\t// on stocke des informations concernant l'élément XML courant en l'empilant\n\t\t// le problème est que l'on n'a pas accès au begin et end offset d'une balise en même temps \n\t\t// et qu'il faut garder une trace des begins des balises ouvertes lorsque l'on rencontre leur end \n\t\t//if ( attributes.getLength() == 0) attributes = null;\n\t\tXMLElement xE = new XMLElement(uri, localName, qName, attributes);\n\t\telementOffsetStack.add(xE);\n\n\t\telementOffsetStackCursor++;\n\t\tcurrentOpenElementWithTheBeginToSet++;\n\n\t\t// debug\n\t\tif (debug) {\n\t\t\tfor (int indent=0 ; indent < elementOffsetStackCursor ; indent++) {System.out.print (\"--\");}\n\t\t\t//System.out.println (\"Debug: startElement empile uri>\" +uri+\"< localName>\"+localName+\"< qName>\"+qName+\"< arrayListIndex>\"+arrayListIndex+\" curentOpenTagToAnnotate>\"+curentOpenTagToAnnotate+\"<\");\n\t\t\tSystem.out.println (\"Debug: startElement tag>\"+qName+\"< que l'on empile ; il y a >\"+\n\t\t\telementOffsetStackCursor+\"< éléments dans la pile ; il y a >\"+\n\t\t\t\t\tcurrentOpenElementWithTheBeginToSet+\"< balise en attente dont le begin est définir\");\n\n\t\t}\n\t}",
"@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\n }",
"@Override\n\tpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException {\n\t\tCurrentTag=arg2;\n\t\tSystem.out.println(\"此处处理的元素是:\"+arg2);\n\t}",
"@Override\n\t\tpublic void startElement(String uri, String localName, String qName,\n\t\t\t\tAttributes atts) throws SAXException {\n\t\t\tNode newNode = new Node(localName);\n\t\t\t\n\t\t\tfor(int i = 0; i < atts.getLength(); i++){\n\t\t\t\tnewNode.putAttribute(atts.getQName(i), atts.getValue(i));\n\t\t\t}\n\t\t\t\n\t\t\tnodeStack.lastElement().put(newNode);\n\t\t\tnodeStack.push(newNode);\n\t\t\t\n\t\t\tbuffer = new StringBuffer();\n\t\t\t\n\t\t\tLog.d(\"xml\", uri + \" | \" + localName + \" | \" + qName + \" | \");\n\t\t\tfor(int i = 0; i < atts.getLength(); i++)\n\t\t\t\tLog.d(\"xml\", \"att(\" + atts.getLocalName(i) + \"): \" + atts.getValue(i));\n\t\t}",
"@Override\n public String getXMLTag() {\n return XMLTAG;\n }",
"@Override public void visitAttribute(Attribute attr) {\n }",
"@Override\n\tpublic void visitAttribute(Object attr) {\n\t}",
"@Override public void visitAttribute(Attribute attr) {\n }",
"@Override public void visitAttribute(Attribute attr) {\n }",
"static void openTag(String name) { openTag(name,true); }",
"@Override\n public void startElement(String uri, String localName, String qName,\n Attributes attributes) throws SAXException {\n\n elementOn = true;\n\n if (localName.equals(\"begin\"))\n {\n data = new CallMTDGetterSetter();\n } else if (localName.equals(\"OHC_CALL_REPORT\")) {\n /**\n * We can get the values of attributes for eg. if the CD tag had an attribute( <CD attr= \"band\">Akon</CD> )\n * we can get the value \"band\". Below is an example of how to achieve this.\n *\n * String attributeValue = attributes.getValue(\"attr\");\n * data.setAttribute(attributeValue);\n *\n * */\n }\n }",
"public String getTagName()\n {\n return \"Attribute\";\n }",
"@Override\n\tpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException {\n\t\tSystem.out.println(arg2+\"解析开始\");\n\t}",
"@Override\n public void visitAttribute(Attribute attribute) {\n }",
"@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes attributes) throws SAXException {\n//\t\ttag=localName;\n//\t\t\tif(localName.equals(\"nombre\")){\n//\t\t\t\tSystem.out.print(\"AUTOR :\");\n//\t\t\t}\n//\t\t\tif(localName.equals(\"descripcion\")){\n//\t\t\t\tSystem.out.print(\"Descripcion:\");\n//\t\t\t}\n\t\t\tswitch(localName){\n\t\t\tcase \"autor\":\n\t\t\t\tautor=new Autor(\"\",attributes.getValue(\"url\"),\"\");\n\t\t\t\tbreak;\n\t\t\tcase \"frase\":\n\t\t\t\tfrase=new Frase(\"\",\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(localName.equals(\"autor\")){\n\t\t\t\t\n\t\t\t\t//url=attributes.getValue(\"url\");\n\t\t\t}\n\t\t\t//System.out.println(\"Start \"+localName);\n\t}",
"@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes atts) throws SAXException {\n\t\t\n\t}",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n // <document>\n if (localName.equals(\"document\")) {\n curArticle = new ArticleSmallOpinion();\n curTagiot = new ArrayList<Tagit>();\n\n // add values\n if (atts.getValue(\"doc_id\") != null) curArticle.setDoc_id(atts.getValue(\"doc_id\"));\n if (atts.getValue(\"title\") != null) curArticle.setTitle(atts.getValue(\"title\"));\n if (atts.getValue(\"sub_title\") != null) curArticle.setSubTitle(atts.getValue(\"sub_title\"));\n if (atts.getValue(\"f7\") != null) curArticle.setF7(atts.getValue(\"f7\"));\n String author = atts.getValue(\"author_icon\");\n author = extractImageUrl(author);\n if (atts.getValue(\"author_icon\") != null) curArticle.setAuthorImgURL(author);\n if (atts.getValue(\"Created_On\") != null) curArticle.setCreatedOn(atts.getValue(\"Created_On\"));\n\n }\n // <f2>\n else if (localName.equals(\"f2\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF2(atts.getValue(\"src\"));\n\n // currently not holding image photographer via \"title=\"\n }\n // <f3>\n if (localName.equals(\"f3\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF3(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <f4>\n else if (localName.equals(\"f4\")) {\n if (atts.getValue(\"src\") != null) curArticle.setF4(atts.getValue(\"src\"));\n // currently not holding image photographer via \"title=\"\n }\n // <tagit>\n else if (localName.equals(\"tagit\")) {\n Tagit tagit = new Tagit(atts.getValue(\"id\"), atts.getValue(\"simplified\"), \"\");\n curTagiot.add(tagit);\n }\n\n }",
"@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}",
"public void handleOpenElement(String elementName, Map<String, String> attributes, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"Start element: \" + elementName);\r\n }",
"@Override\r\n\tpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\t}",
"public void doTag()\n throws JspException\n {\n if (hasErrors()) {\n reportErrors();\n return;\n }\n\n JspTag tag = SimpleTagSupport.findAncestorWithClass(this, IAttributeConsumer.class);\n if (!(tag instanceof IAttributeConsumer)) {\n String s = Bundle.getString(\"Tags_AttributeInvalidParent\");\n registerTagError(s, null);\n reportErrors();\n return;\n }\n\n IAttributeConsumer ac = (IAttributeConsumer) tag;\n ac.setAttribute(_name, _value, _facet);\n return;\n }",
"@Test\n\tpublic void addAttribute() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\n\t\tXMLTagParser.editElement(\"Person\", \"name\", \"tony\");\n\t\tassertEquals(XMLTagParser.getTagValueFromElement(\"Person\", \"name\"), \"tony\");\n\t}",
"@Override\npublic void setAttributes() {\n\t\n}",
"void handleStartTag(String sTagName, HashMap attributes,boolean standAlone) {\r\n pageList.add(new StandAloneElement(sTagName, attributes, null));\r\n }",
"@Override\n void startElement(String uri, String localName, String qName, Attributes attributes);",
"public static String xmlTag() { return XMLTAG; }",
"public static String xmlTag() { return XMLTAG; }",
"@Override\n\tpublic Void visit(Atribute atr) {\n\t\tprintIndent(\"attribute\");\n\t\tindent++;\n\t\tatr.id.accept(this);\n\t\tatr.type.accept(this);\n\t\tif (atr.expr != null)\n\t\t\tatr.expr.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"static void openTag(String name, boolean endTag) {\n openMinorTag(name);\n if (endTag)\n closeTag(false);\n }",
"@Override\npublic void processAttributes() {\n\t\n}",
"@Override\n\t\t\t\t\tpublic Attribute handleAttribute(Element parent,\n\t\t\t\t\t\t\tFAttribute src) {\n\t\t\t\t\t\treturn super.handleAttribute(parent, src);\n\t\t\t\t\t}",
"private XMLDocument startElement(String name, Object[] attributes, boolean closeTag, boolean addNewLine) {\r\n this.addIndent();\r\n\r\n indent++;\r\n\r\n xml.append(\"<\").append(name);\r\n\r\n this.addAttributes(attributes);\r\n\r\n if (closeTag) {\r\n xml.append(\"/\");\r\n }\r\n\r\n xml.append(\">\");\r\n\r\n if (closeTag || addNewLine) {\r\n xml.append(\"\\n\");\r\n }\r\n\r\n if (closeTag) {\r\n indent--;\r\n\r\n } else {\r\n startedElements.addLast(name);\r\n }\r\n\r\n return this;\r\n }",
"public void startElement(String uri, String localName, String qName,Attributes attributes) throws SAXException \n\t{\t\n\t\tif(qName.equals(ReqifTags.TAG_SPEC_OBJECT))\n\t\t{\n\t\t\tif(attributes.getValue(ReqifTags.TAG_IDENTIFIER)!=null && attributes.getValue(ReqifTags.TAG_DESC)!=null)\n\t\t\t{\n\t\t\t\tString s=attributes.getValue(ReqifTags.TAG_DESC);\n\t\t\t\tchar[] test=s.toCharArray();\n\t\t\t\tfor(int i=0;i<test.length;i++)\n\t\t\t\t{\n\t\t\t\t\tif(test[i]=='&' || test[i]=='' || test[i]=='‘' || test[i]== '’' || test[i]=='“' || test[i]=='”')\n\t\t\t\t\t\ttest[i]=' ';\n\n\t\t\t\t}\n\t\t\t\ts=new String(test);\n\t\t\t\tdict.put(attributes.getValue(ReqifTags.TAG_IDENTIFIER),s);\n\t\t\t}\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_REQ_IF))\n\t\t{\n\t\t\tParsedReqifElement u=new ParsedReqifElement(\"Root\",\"Root\");\n\t\t\troot=new DefaultMutableTreeNode(u);\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SPECIFICATION))\n\t\t{\t\n\t\t\tParsedReqifElement u=new ParsedReqifElement(attributes.getValue(ReqifTags.TAG_DESC),dict.get(attributes.getValue(ReqifTags.TAG_DESC)));\n\t\t\ttemp=new DefaultMutableTreeNode(u);\n\t\t\troot.add(temp);\n\t\t\ttop1=temp;\n\t\t\tlevel++;\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SPEC_HIERARCHY))\n\t\t{\n\t\t\tbuf=new StringBuffer();\n\t\t\tlevel++;\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SOURCE))\n\t\t{\n\t\t\t//System.out.println(\"source\");\n\t\t\tisSource = true;\n\t\t\tbuf.delete(0, buf.length());\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_TARGET))\n\t\t{\n\t\t\t//System.out.println(\"target\");\n\t\t\tisTarget = true;\n\t\t\tbuf.delete(0, buf.length());\n\t\t}\n\t}",
"@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}",
"@Override\n\tprotected abstract OpenableElementInfo createElementInfo();",
"@Test\n\tpublic void addAttributeMultiple() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\n\t\tXMLTagParser.editElement(\"Person\", \"name\", \"tony\");\n\t\tassertEquals(XMLTagParser.getTagValueFromElement(\"Person\", \"name\"), \"tony\");\n\t\t\n\t\tXMLTagParser.editElement(\"Person\", \"surname\", \"blaire\");\n\t\tassertEquals(XMLTagParser.getTagValueFromElement(\"Person\", \"surname\"), \"blaire\");\n\t}",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n Attributes2Impl attrs = new Attributes2Impl(attributes);\n attrs.addAttribute(LOCATION_NAMESPACE, LOCATION_ATTRIBUTE, QUALIFIED_LOCATION_ATTRIBUTE, \"CDATA\",\n locator.getLineNumber() + SEPARATOR + locator.getColumnNumber() + SEPARATOR + locator.getSystemId() + SEPARATOR + locator.getPublicId());\n super.startElement(uri, localName, qName, attrs);\n }",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes atts) {\n // Using qualified name because we are not using xmlns prefixes here.\n if (qName.equals(\"title\")) {\n title = true;\n }\n }",
"private XMLDocument startElement(String name, Object[] attributes, boolean closeTag) {\r\n return this.startElement(name, attributes, closeTag, true);\r\n }",
"protected void initTag()\n {\n }",
"static public XmlAttributeInfo eltXmlAttributeInfo (String name)\r\n {\r\n return new XmlAttributeInfo(name,null,_ELT_CONTENT);\r\n }",
"private void addAttribute(XmlAttribute xa, Method method, Object[] args) {\n/* 147 */ assert xa != null;\n/* */ \n/* 149 */ checkStartTag();\n/* */ \n/* 151 */ String localName = xa.value();\n/* 152 */ if (xa.value().length() == 0) {\n/* 153 */ localName = method.getName();\n/* */ }\n/* 155 */ _attribute(xa.ns(), localName, args);\n/* */ }",
"private static StartTag constructWithAttributes(Source source, int begin, String name, SpecialTag specialTag) {\r\n\t\t// it is necessary to get the attributes so that we can be sure that the search on the closing \">\"\r\n\t\t// character doesn't pick up anything from the attribute values, which can legally contain\r\n\t\t// \">\" characters.\r\n\t\t// From the HTML 4.01 specification section 5.3.2 - Character Entity References:\r\n\t\t// Authors wishing to put the \"<\" character in text should use \"<\" (ASCII decimal 60) to avoid\r\n\t\t// possible confusion with the beginning of a tag (start tag open delimiter). Similarly, authors\r\n\t\t// should use \">\" (ASCII decimal 62) in text instead of \">\" to avoid problems with older user\r\n\t\t// agents that incorrectly perceive this as the end of a tag (tag close delimiter) when it appears\r\n\t\t// in quoted attribute values.\r\n\t\tByRefInt startTagEndDelimiterPos=new ByRefInt();\r\n\t\tAttributes attributes=Attributes.construct(source,begin,startTagEndDelimiterPos,name);\r\n\t\tif (attributes==null) return null; // happens if attributes not properly formed\r\n\t\tString lsource=source.getParseTextLowerCase();\r\n\t\tint end=startTagEndDelimiterPos.value+(lsource.charAt(startTagEndDelimiterPos.value)=='>' ? 1 : 2);\r\n\t\tStartTag startTag=new StartTag(source,begin,end,name,specialTag,attributes);\r\n\t\treturn startTag;\r\n\t}",
"AdditionalAttributes setAttribute(String name, Object value, boolean force);",
"@Override\n public StringBuilder appendAttributes(StringBuilder buf) {\n super.appendAttributes(buf);\n appendAttribute(buf, \"param\", param);\n return buf;\n }",
"protected void tag (int ltagStart) throws HTMLParseException {\r\n Tag tag = new Tag ();\r\n Token token = new Token (tag, false);\r\n switch (nextToken) {\r\n case STRING:\r\n tag.setType (stringValue);\r\n match (STRING);\r\n arglist (tag);\r\n if (tagmode) {\r\n block.setRest (lastTagStart);\r\n } else {\r\n token.setStartIndex (ltagStart);\r\n //block.addToken (token);\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(token);\r\n }\r\n break;\r\n case MT:\r\n tagmode = false;\r\n match (MT);\r\n break;\r\n case END:\r\n block.setRest (lastTagStart);\r\n tagmode = false;\r\n return;\r\n default:\r\n arglist (tag);\r\n }\r\n }",
"@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}",
"private boolean beforeAttributeNameStateImpl() throws SAXException,\n IOException {\n /*\n * Consume the next input character:\n */\n for (;;) {\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B\n * LINE TABULATION U+000C FORM FEED (FF) U+0020 SPACE Stay\n * in the before attribute name state.\n */\n continue;\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Emit the current tag token.\n */\n emitCurrentTagToken();\n /*\n * Switch to the data state.\n */\n return false;\n case '/':\n /*\n * U+002F SOLIDUS (/) Parse error unless this is a permitted\n * slash.\n */\n parseErrorUnlessPermittedSlash();\n /*\n * Stay in the before attribute name state.\n */\n continue;\n case '\\u0000':\n /* EOF Parse error. */\n err(\"Saw end of file without the previous tag ending with \\u201C>\\u201C.\");\n /*\n * Emit the current tag token.\n */\n emitCurrentTagToken();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return false;\n default:\n /*\n * Anything else Start a new attribute in the current tag\n * token.\n */\n clearStrBuf();\n \n if (c >= 'A' && c <= 'Z') {\n /*\n * U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN\n * CAPITAL LETTER Z Set that attribute's name to the\n * lowercase version of the current input character (add\n * 0x0020 to the character's code point)\n */\n appendStrBuf((char) (c + 0x20));\n } else {\n /*\n * Set that attribute's name to the current input\n * character,\n */\n appendStrBuf(c);\n }\n /*\n * and its value to the empty string.\n */\n // Will do later.\n /*\n * Switch to the attribute name state.\n */\n return attributeNameState();\n }\n }\n }",
"protected void printOpeningTagContentAsXml(final PrintWriter printWriter) {\n printWriter.print(getTagName());\n for (final Map.Entry <String, DomAttr> entry : attributes_.entrySet()) {\n printWriter.print(\" \");\n printWriter.print(entry.getKey());\n printWriter.print(\"=\\\"\");\n printWriter.print(StringUtils.escapeXmlAttributeValue(entry.getValue().getNodeValue()));\n printWriter.print(\"\\\"\");\n }\n }",
"@Override\n\tprotected String getSpecificXML() {\n\t\t\n\t\tStringBuilder xml = new StringBuilder();\n\t\t\n\t\tstartElementWithAttributes(xml, \"Activity\");\n\t\taddStringAttribute(xml, \"activityHandle\", activityHandle);\n\t\tcloseParentElementWithAttributes(xml);\n\t\t\n\t\taddContext(xml);\n\t\taddContextMenu(xml);\n\t\taddMenuAction(xml);\n\t\taddMethods(xml);\n\t\taddDeltas(xml);\n\t\taddPublications(xml);\n\t\taddFields(xml);\n\t\t\n\t\tcloseParentElement(xml, \"Activity\");\n\t\t\n\t\treturn xml.toString();\n\t}",
"Iterable<? extends XomNode> attributes();",
"@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}",
"public XmlAttributeInfo (String name)\r\n {\r\n this(name,XmlSpecialForm.value());\r\n }",
"@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\n if (qName.equalsIgnoreCase(\"company\")) { // gdy znajdzie taga <guest>\n company = new Company(0, \"\");\n attributes.getValue(\"id\");\n }\n }",
"protected void importAttributes(XmlPullParser xpp, Epml epml) {\n\t}",
"private void processStandoffMarkup(Document docExtra) {\n\t\tDOMSnapshot snapExtra = new DOMSnapshot(docExtra, docRoot, new XMLDialect());\n\t\tfor (ITSState itssExtra : snapExtra.iterNodes()) {\n\t\t\tRuleResolver resolver = resolvers.get(itssExtra.node.getNodeName()); \n\t\t\tif (resolver != null) {\n\t\t\t\tGlobalRule rule = resolver.extractRule(snapExtra.attrReader, snapExtra.parameters, itssExtra.node);\n\t\t\t\tapplyRule(resolver, rule);\n\t\t\t}\n\t\t\t\n\t\t\tif (itssExtra.node.getNodeName().equals(\"its:param\")) {\n\t\t\t\tString name = itssExtra.node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\tString value = itssExtra.node.getTextContent();\n\t\t\t\tparameters.add(name, value);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\n public void enterAttributes(final ProgramParser.AttributesContext ctx) {\n }",
"protected void startOutput() throws JspException, SAXException {\n if (uriExpr != null)\n uri = evalString(\"uri\", uriExpr);\n String prefix = null;\n if (nameExpr != null) {\n qname = evalString(\"name\", nameExpr);\n int colonIndex = qname.indexOf(':');\n if (colonIndex != -1) {\n prefix = qname.substring(0, colonIndex);\n name = qname.substring(colonIndex + 1);\n } else\n name = qname;\n }\n if (attrExpr != null) {\n Object attrList = eval(\"attr\", attrExpr, Object.class);\n if (attrList instanceof AttributesImpl)\n attr = (AttributesImpl) attrList;\n else {\n attr = new AttributesImpl();\n StringTokenizer tokenizer\n = new StringTokenizer(attrList.toString());\n while (tokenizer.hasMoreTokens()) {\n String expr = tokenizer.nextToken();\n int dotIndex = expr.indexOf('.');\n String attrName = expr;\n if (dotIndex != -1)\n attrName = expr.substring(dotIndex + 1);\n expr = \"${\" + expr + \"}\";\n String attrValue = evalString(\"attr\", expr);\n attr.addAttribute(null, attrName, attrName,\n \"CDATA\", attrValue);\n }\n }\n }\n if (emptyExpr != null)\n empty = evalBoolean(\"empty\", emptyExpr);\n int nsIndex = -1;\n String oldUri = null;\n if (uri != null) {\n String qns = prefix != null ? \"xmlns:\" + prefix : \"xmlns\";\n String ns = prefix != null ? prefix : \"xmlns\";\n nsIndex = attr.getIndex(qns);\n if (nsIndex != -1) {\n oldUri = attr.getValue(nsIndex);\n attr.setValue(nsIndex, uri);\n } else {\n attr.addAttribute(null, ns, qns, \"CDATA\", uri);\n nsIndex = attr.getIndex(qns);\n }\n }\n if (attr == null)\n attr = new AttributesImpl();\n serializer.getHandler().startElement(uri, name, qname, attr);\n if (nsIndex != -1)\n if (oldUri != null)\n attr.setValue(nsIndex, oldUri);\n else\n attr.removeAttribute(nsIndex);\n if (!empty) {\n // workaround: force the serializer to close the start tag\n emptyComment();\n }\n }",
"public HTMLTag readTag ()\n\t\t\tthrows IOException, FileNotFoundException {\n\t\t\t\n\t\t// start building new tag\n\t\ttag = new HTMLTag ();\n\t\t\t\t\n\t\t// get any text preceding the tag itself\n\t\thtmlChar.setFieldType (HTMLContext.TEXT);\n\t\tgetNextField();\n\t\ttag.setPrecedingText (context.field.toString());\n\t\tif (htmlChar.character == '<') {\n\t\t\tgetNextCharacter();\n\t\t}\n\t\t\n\t\t// see if this is an ending tag\n\t\tif (htmlChar.character == '/') {\n\t\t\ttag.setEnding();\n\t\t\tgetNextCharacter();\n\t\t}\n\t\t\n\t\t// get the name of the tag\n\t\thtmlChar.setFieldType (HTMLContext.TAG_NAME);\n\t\tgetNextField();\n\t\ttag.setName (context.field.toString());\n\t\t\n\t\t// check to see if the tag is a comment\n\t\tif (tag.getName().equals (\"!--\")) {\n attribute = new HTMLAttribute (\"!==\");\n htmlChar.setFieldType (HTMLContext.COMMENT);\n getNextField();\n for (int i = 0; i < 2; i++) {\n if (context.field.length() > 0\n && context.field.charAt (context.field.length() - 1) == '-') {\n context.field.setLength (context.field.length() - 1);\n }\n }\n attribute.setValue (context.field.toString());\n\t\t\ttag.setAttribute (attribute);\n\t\t}\n else {\n\t\t\n // Collect and store all the attributes\n while (! htmlChar.endsTag) {\n htmlChar.setFieldType (HTMLContext.ATTRIBUTE_NAME);\n getNextCharacter();\n getNextField();\n if (context.field.length() > 0) {\n attribute = new HTMLAttribute (context.field.toString());\n if (htmlChar.character == '=') {\n getNextCharacter();\n htmlChar.setFieldType (HTMLContext.ATTRIBUTE_VALUE);\n getNextField();\n attribute.setValue (context.field.toString());\n }\n tag.setAttribute (attribute);\n }\n }\n }\n\n // evaluate block properties of tag\n if ((! tag.isEnding())\n && (tag.isBlockTag())) {\n context.lastOpenBlock = tag.getName();\n }\n else\n if (tag.isEnding()\n && tag.getName().equals (context.lastOpenBlock)) {\n context.lastOpenBlock = \"\";\n }\n \n // evaluate list properties of tag\n int listTagType = 0;\n if (tag.getName().equals (\"ol\")\n || tag.getName().equals (\"ul\")\n || tag.getName().equals (\"dl\")) {\n listTagType = 1;\n }\n else\n if (tag.getName().equals (\"li\")\n || tag.getName().equals (\"dt\")\n || tag.getName().equals (\"dd\")) {\n listTagType = 2;\n tag.setListItemStart (true);\n }\n \n tag.setListLevel (context.listLevel);\n tag.setListItemTag (context.listItemTag);\n if (context.listItemTag.length() > 0) {\n if (listTagType > 0) {\n context.listItemTag = \"\";\n tag.setListItemEnd (true);\n }\n }\n \n if (listTagType == 1) {\n context.defTermActive = false;\n if (tag.isEnding()) {\n if (context.listLevel > 0) {\n context.listLevel--;\n }\n }\n else {\n context.listLevel++;\n }\n }\n \n tag.setDefTermActive (context.defTermActive);\n \n if (listTagType == 2) {\n context.listItemTag = tag.getName();\n if (tag.getName().equals(\"dt\")) {\n context.defTermActive = true;\n }\n }\n \n // evaluate heading properties of tag\n if (tag.isHeadingTag()) {\n context.headingLevel = tag.getHeadingLevel();\n } else {\n tag.setHeadingLevel (context.headingLevel);\n }\n \n // Check for preformatting\n if (tag.getName().equals (\"pre\")) {\n context.preformatted = (! tag.isEnding());\n }\n \n // return results\n\t\tif (htmlChar.character == '>') {\t\t\t\n getNextCharacter();\n return tag;\n }\n else \n if (tag.getPrecedingText().length() > 0) {\n return tag;\n\t\t} \n else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic void processingInstruction(String target, String data) throws SAXException {\n\t\ttry {\n\t\t\tif (!startTagIsClosed) {\n\t\t\t\twrite('>');\n\t\t\t\tstartTagIsClosed = true;\n\t\t\t}\n\t\t\twrite(\"<?\");\n\t\t\twrite(target);\n\t\t\twrite(' ');\n\t\t\twrite(data);\n\t\t\twrite(\"?>\");\n\t\t\tif (elementLevel < 1) {\n\t\t\t\twrite('\\n');\n\t\t\t}\n\t\t\tsuper.processingInstruction(target, data);\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}",
"@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes attributes) throws SAXException {\n\t\tsuper.startElement(uri, localName, qName, attributes);\n\t\ttag = qName;\n\t\tsb.delete(0, sb.length());\n\t\tif (qName.equals(\"entry\")) {\n\t\t\tisFeed = true;\n\t\t\tcommentsInfo = new CommentsInfo();\n\t\t} else if (qName.equals(\"feed\")) {\n\t\t\tisFeed = false;\n\t\t}\n\n\t}",
"@Override\n\tprotected String openTag(String tag) {\n\t\t// store position of parser for openening tag only if\n\t\t// it the first openened, e.g. <b>text<b>text2</b> will draw\n\t\t// text and text2 in bold weight\n\t\tif (!tags.containsKey(tag)) {\n\t\t\ttags.put(tag, Integer.valueOf(clearedText.length()));\n\t\t}\n\t\treturn \"\";\n\t}",
"@Override\r\n\tpublic void startElement(String uri, String localName, String qName,\r\n\t\t\tAttributes attributes) throws SAXException {\n\t\ttagName = localName;\r\n\t\t\r\n\t\tif(tagName.equals(\"song_elt\")){\r\n\t\t\tmp3 = new DownloadMp3Model();//为每一首歌实例化对象\r\n\t\t\ti = 1;\r\n\t\t}\r\n\r\n\t}",
"private void processTag(String p_content)\n {\n StringBuffer tagName = new StringBuffer();\n Hashtable attributes = new Hashtable();\n boolean bEndTag;\n\n int i = eatWhitespaces(p_content, 0);\n\n bEndTag = i < p_content.length() && p_content.charAt(i) == '/';\n\n //read the tag name...\n while (i < p_content.length() &&\n !Character.isWhitespace(p_content.charAt(i)))\n {\n tagName.append(p_content.charAt(i));\n\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n\n //read the attributes...\n StringBuffer attributeName = new StringBuffer();\n StringBuffer attributeValue = new StringBuffer();\n\n while (i < p_content.length())\n {\n try\n {\n i = eatWhitespaces(p_content, i);\n\n //read the name...\n while (!Character.isWhitespace(p_content.charAt(i)) &&\n p_content.charAt(i) != '=')\n {\n attributeName.append(p_content.charAt(i));\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n if (p_content.charAt(i) == '=')\n {\n while (p_content.charAt(i) != '\"')\n {\n i++;\n }\n i++;\n while (p_content.charAt(i) != '\"')\n {\n attributeValue.append(p_content.charAt(i));\n i++;\n }\n i++;\n }\n\n attributes.put(attributeName.toString(),\n attributeValue.toString());\n\n attributeName.setLength(0);\n attributeValue.setLength(0);\n }\n catch (IndexOutOfBoundsException e)\n {\n // tough luck the TMX wasn't as well written as we thought...\n // CvdL: TODO: throw an exception!!\n }\n }\n\n if (bEndTag)\n {\n m_handler.processEndTag(tagName.substring(1),\n \"<\" + p_content + \">\");\n }\n else\n {\n m_handler.processTag(tagName.toString(), attributes,\n \"<\" + p_content + \">\");\n }\n }",
"@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}",
"@Override\r\n\t\tpublic NamedNodeMap getAttributes()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"private boolean afterAttributeNameState() throws SAXException, IOException {\n for (;;) {\n /*\n * Consume the next input character:\n */\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B\n * LINE TABULATION U+000C FORM FEED (FF) U+0020 SPACE Stay\n * in the after attribute name state.\n */\n continue;\n case '=':\n /*\n * U+003D EQUALS SIGN (=) Switch to the before attribute\n * value state.\n */\n return beforeAttributeValueState();\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Emit the current tag token.\n */\n addAttributeWithoutValue();\n emitCurrentTagToken();\n /*\n * Switch to the data state.\n */\n return false;\n case '/':\n /*\n * U+002F SOLIDUS (/) Parse error unless this is a permitted\n * slash.\n */\n addAttributeWithoutValue();\n parseErrorUnlessPermittedSlash();\n /* Switch to the before attribute name state. */\n return true;\n case '\\u0000':\n /* EOF Parse error. */\n err(\"Saw end of file without the previous tag ending with \\u201C>\\u201C.\");\n /*\n * Emit the current tag token.\n */\n addAttributeWithoutValue();\n emitCurrentTagToken();\n /*\n * Reconsume the character in the data state.\n */\n unread(c);\n return false;\n default:\n /*\n * U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN\n * CAPITAL LETTER Z Start a new attribute in the current tag\n * token. Set that attribute's name to the lowercase version\n * of the current input character (add 0x0020 to the\n * character's code point), and its value to the empty\n * string. Switch to the attribute name state.\n * \n * Anything else Start a new attribute in the current tag\n * token. Set that attribute's name to the current input\n * character, and its value to the empty string. Switch to\n * the attribute name state.\n */\n // let's do this by respinning through the attribute loop\n addAttributeWithoutValue();\n unread(c);\n return true;\n }\n }\n }",
"void visit(Attribute node);",
"@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }",
"@Override\r\n\tpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\t\tsuper.startElement(uri, localName, qName, attributes);\r\n\t\tif(qName.equalsIgnoreCase(\"geonameID\")){\r\n\t\t\tSystem.out.println(qName);\r\n\t\t\tbID = true;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}",
"public void startElement(String uri, String localName, String qName, Attributes attrs) {\r\n if (namespace.length() > 0 && qName.startsWith(namespace)) {\r\n qName = qName.substring(namespace.length());\r\n }\r\n elem = qName;\r\n if (charState >= 0 && lineBuffer.length() > 0) {\r\n \tcharWriter.println(lineBuffer.toString());\r\n \tlineBuffer.setLength(0);\r\n }\r\n if (false) {\r\n } else if (qName.equals(ROOT_TAG)) {\r\n\t\t\t// ignore\r\n } else { // variable GEDCOM keyword\r\n\t charState = 2;\r\n \tlineBuffer.append(String.valueOf(saxLevel));\r\n \tString id = attrs.getValue(ID_ATTR);\r\n \tif (id != null) {\r\n\t \tlineBuffer.append(\" @\");\r\n \t \tlineBuffer.append(id);\r\n \t \tlineBuffer.append('@');\r\n \t}\r\n \tlineBuffer.append(' ');\r\n \tlineBuffer.append(qName.toUpperCase());\r\n \tString ref = attrs.getValue(REF_ATTR);\r\n \tif (ref != null) {\r\n\t \tlineBuffer.append(\" @\");\r\n \t \tlineBuffer.append(ref);\r\n \t \tlineBuffer.append('@');\r\n \t}\r\n \tsaxLevel ++;\r\n } // else ignore unknown elements\r\n }",
"private void beforeAttributeNameState() throws SAXException, IOException {\n while (beforeAttributeNameStateImpl()) {\n // Spin.\n }\n }",
"public void startElement(String uri, String localName,String qName, \n Attributes attributes) throws SAXException {\n \n\t\tif (qName.equalsIgnoreCase(\"Author\")) {\n\t\t\tauthor = true;\n\t\t}\n \n\t\tif (qName.equalsIgnoreCase(\"title\")) {\n\t\t\ttitle = true;\n\t\t}\n \n\t\tif (qName.equalsIgnoreCase(\"year\")) {\n\t\t\tyear = true;\n\t\t}\n \n\t\tif (qName.equalsIgnoreCase(\"journal\")) {\n\t\t\tjournal = true;\n\t\t}\n\t\tif (qName.equalsIgnoreCase(\"number\")) {\n\t\t\tnumber = true;\n\t\t}\n \n\t}",
"public void startElement(String uri, String localName,String qName, \n\t\t Attributes attributes) throws SAXException {\n\t\t \n\t\t\t\tif (qName.equalsIgnoreCase(\"title\")) {\n\t\t\t\t\tbfname = true;\n\t\t\t\t}\n\t\t \n\t\t\t\tif (qName.equalsIgnoreCase(\"content\")) {\n\t\t\t\t\tblname = true;\n\t\t\t\t}\n\t\t \n\t\t\t\t\n\t\t \n\t\t\t}",
"@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}",
"public Attr() {\n\t\t\tsuper();\n\t\t}",
"@Override\n\t\tpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\t\t\t\tif(qName.equalsIgnoreCase(\"TABLE\")) {\n\t\t\t\t\tuser = true;\n\t\t\t\t\ttable = true;\n\t\t\t\t}\n\t\t\t\telse if(localName.equalsIgnoreCase(\"FIELDNAME\")){\t\n\t\t\t\t\tuser = true;\n\t\t\t\t\tfieldName = true;\n\t\t\t\t}\n\t\t\t\telse if(localName.equalsIgnoreCase(\"FIELDTYPE\")){\t\n\t\t\t\t\tuser = true;\n\t\t\t\t\tfieldType = true;\n\t\t\t\t}\n\t\t\t\telse if(localName.equalsIgnoreCase(\"SIZE\")){\n\t\t\t\t\tuser = true;\n\t\t\t\t\tsize = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int i = 0;i< attributes.getLength();i++) {\n\t\t\t\t\tSystem.out.println(attributes.getQName(i) + \": \" + attributes.getValue(i));\n\t\t\t\t}\n\t\t}",
"@Override\n\tpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n\t\ttry {\n\t\t\tif (!startTagIsClosed) {\n\t\t\t\twrite(\">\");\n\t\t\t}\n\t\t\telementLevel++;\n\t\t\t// nsSupport.pushContext();\n\n\t\t\twrite('<');\n\t\t\twrite(qName);\n\t\t\twriteAttributes(atts);\n\n\t\t\t// declare namespaces specified by the startPrefixMapping methods\n\t\t\tif (!locallyDeclaredPrefix.isEmpty()) {\n\t\t\t\tfor (Map.Entry<String, String> e : locallyDeclaredPrefix.entrySet()) {\n\t\t\t\t\tString p = e.getKey();\n\t\t\t\t\tString u = e.getValue();\n\t\t\t\t\tif (u == null) {\n\t\t\t\t\t\tu = \"\";\n\t\t\t\t\t}\n\t\t\t\t\twrite(' ');\n\t\t\t\t\tif (\"\".equals(p)) {\n\t\t\t\t\t\twrite(\"xmlns=\\\"\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\twrite(\"xmlns:\");\n\t\t\t\t\t\twrite(p);\n\t\t\t\t\t\twrite(\"=\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\tchar ch[] = u.toCharArray();\n\t\t\t\t\twriteEsc(ch, 0, ch.length, true);\n\t\t\t\t\twrite('\\\"');\n\t\t\t\t}\n\t\t\t\tlocallyDeclaredPrefix.clear(); // clear the contents\n\t\t\t}\n\n\t\t\t// if (elementLevel == 1) {\n\t\t\t// forceNSDecls();\n\t\t\t// }\n\t\t\t// writeNSDecls();\n\t\t\tsuper.startElement(uri, localName, qName, atts);\n\t\t\tstartTagIsClosed = false;\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}",
"public void openStartTag() throws XMLStreamException {\n write(HtmlObject.HtmlMarkUp.OPEN_BRACKER);\n }",
"public final native void attributeFollows(String name, Element newNode, Element oldNode) /*-{ attributeFollows(name, newNode, oldNode); }-*/;",
"@Override\n\tpublic void declareAttribute(String name, XMLStreamWriter writer)\n\t\t\tthrows XMLStreamException {\n\t}",
"public WSLNode(String tagName) {this(tagName,new WSLAttributeList());}",
"public static String getXMLElementTagName() {\n return \"aiMain\";\n }",
"@Override \n\t public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { \n\t \n\t\t //String val = atts.getValue(\"val\");\n\t\t //Log.d(\"startElement\", localName + \" : \" + val);\n\t\t \n\t\t if(localName.equalsIgnoreCase(AlarmItemContent.TAG)){\n\t\t\t\n\t\t\t AlarmItemContent vo = new AlarmItemContent();\n\t\t\t \n\t\t\t //if(atts.getValue(AlarmItemContent.prtPosition) != null)\n\t\t\t\t vo.setPosition( ++position ); // atts.getValue(AlarmItemContent.prtPosition)\n\t\t\t vo.setState(atts.getValue(AlarmItemContent.prtState)); // ALARMSTATETYPE_E_ON\n\t\t\t vo.setTime(atts.getValue(AlarmItemContent.prtTime));\n\t\t\t vo.setUri(atts.getValue(AlarmItemContent.prtURI));\n\t\t\t vo.setMetaData(atts.getValue(AlarmItemContent.prtMetaData));\n\t\t\t vo.setVolume(Integer.parseInt(atts.getValue(AlarmItemContent.prtVolume)));\n\t\t\t vo.setFreaquency(atts.getValue(AlarmItemContent.prtFrequency)); // ALARMFREQUENCYTYPE_E_ONCE\n\t\t\t \n\t\t\t _data.add(vo);\n\t\t\t \n\t\t } \n\t\t \n\t }",
"public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n\t\tif (localName.equals(\"Ort\")) {\n\t\t\t// Neue Ort erzeugen\n\t\t\tort = Ort.create();\n\n\t\t\t// Attribut id wird in dem jeweiligen Ort gesetzt\n\t\t\tort.setName(atts.getValue(\"id\"));\n\t\t}\n\t}",
"@Override\n\tpublic void startElement(String uri, String localName, String qName, Attributes atts) {\n\t\tchars = new StringBuffer();\n\t}",
"private XmlAttributeInfo (String name, String text, byte kind)\r\n {\r\n _name = name;\r\n switch (kind)\r\n\t{\r\n\tcase _ISATTRIBUTE:\r\n\t // in this case text is an attribute name reference:\r\n\t _value = new XmlTextInfo(text);\r\n\t break;\r\n\r\n\tcase _LITERAL_SYM:\r\n\t // in this case text is a literal string:\r\n\t (_value = new XmlTextInfo()).setText(text);\r\n\t break;\r\n\r\n\tcase _ELT_CONTENT:\r\n\t // in this case text is null and the value is initialized\r\n\t // to an empty XML tree path ...\r\n\t _value = new XmlTextInfo(new XmlTreePath());\r\n\t break;\r\n\t}\r\n }",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes atrbts) throws SAXException {\n if(qName.equalsIgnoreCase(\"author\")){\n isAuthor = true;\n author = new Author();\n \n }\n if(isAuthor){\n if(qName.equalsIgnoreCase(\"nickname\")){\n isNickname = true;\n }else if(qName.equalsIgnoreCase(\"fullname\")){\n isFullname = true;\n }else if(qName.equalsIgnoreCase(\"email\")){\n isEmail = true;\n }else if(qName.equalsIgnoreCase(\"address\")){\n isAddress = true;\n }else if(qName.equalsIgnoreCase(\"birthday\")){\n isBirthday = true;\n }\n }\n if(qName.equalsIgnoreCase(\"book\")){\n isBook = true;\n book = new Book();\n }\n if(isBook){\n if(qName.equalsIgnoreCase(\"title\")){\n isTitle = true;\n }else if(qName.equalsIgnoreCase(\"nickname\")){\n isNickname2 = true;\n }else if(qName.equalsIgnoreCase(\"nxb\")){\n isNxb = true;\n }else if(qName.equalsIgnoreCase(\"description\")){\n isDes = true;\n }\n }\n }",
"Attributes getAttributes();",
"public void startElement(String namespaceURI, String localName, String rawName, Attributes atts) throws SAXException {\n\t\tif(this.level == 1) {\n\t\t\tthis.row = new ArrayList<String>();\n\t\t\tif(this.addHeader) {\n\t\t\t\tthis.header = new ArrayList<String>();\n\t\t\t}\n\t\t}\n\t\t// At field level, get the field name\n\t\tif(this.level == 2) {\n\t\t\tthis.fieldName = rawName;\n\t\t}\n\n\t\t// Set level for next element\n\t\tthis.level++;\n\t}",
"public void changeAttrName() {\r\n }",
"private void toXMLTag(StringBuffer buffer, int level) {\n\t\tindent(buffer,level).append('<').append(name);\n\n\t\tif(attributes!=null && attributes.getLength()>0)\n\t\t\tbuffer.append(' ').append(attributes.toString());\n\n\t\tif(children.size()>0) {\n\t\t\tbuffer.append(\">\\n\");\n\t\t\tfor(int i=0; i<children.size(); i++)\n\t\t\t\t((WSLNode)children.elementAt(i)).toXMLTag(buffer, level+1);\n\t\t\tindent(buffer,level).append(\"</\").append(name).append(\">\\n\");\n\t\t} else buffer.append(\" />\\n\");\n\t}",
"org.apache.xmlbeans.XmlString xgetTag();",
"@Override\n public void startElement(String str1, String str2, String elementName, Attributes attributes) throws SAXException {\n\n if (elementName.equalsIgnoreCase(\"Product\")) {\n \t\n \t\n \tString cat = attributes.getValue(\"Cat\");\n \tint id = Integer.parseInt(attributes.getValue(\"id\"));\n \t\n \tproduct = new Product();\n \tproduct.setId(id);\n \tproduct.setCatagory(cat);\n \n }\n\n }",
"@Override\r\n //Triggered when the start of tag is found.\r\n public void startElement(String uri, String localName,\r\n String qName, Attributes attributes)\r\n throws SAXException {\n if (qName.equalsIgnoreCase(\"ITEM\")) {\r\n issue = new Issues();\r\n issueList.add(issue);\r\n }\r\n\r\n if (qName.equalsIgnoreCase(\"KEY\")) {\r\n issue.id = Integer.parseInt(attributes.getValue(\"id\"));\r\n }\r\n if (qName.equalsIgnoreCase(\"TYPE\")) {\r\n if (attributes.getValue(\"id\").equals(\"16\")) {\r\n issue.issuetype = \"TEST CASE\";\r\n }\r\n }\r\n }",
"@Override\n\tpublic void cdata() {\n\t\t\n\t}"
] | [
"0.6651177",
"0.64971834",
"0.6434811",
"0.63538176",
"0.6348177",
"0.6320516",
"0.63061094",
"0.6292349",
"0.62520456",
"0.6251429",
"0.6251429",
"0.6208635",
"0.6164158",
"0.6149614",
"0.613947",
"0.613093",
"0.6054155",
"0.60331434",
"0.6029091",
"0.6026787",
"0.599368",
"0.59671354",
"0.5959895",
"0.5915936",
"0.58868873",
"0.5810801",
"0.58030486",
"0.57972795",
"0.57972795",
"0.57744086",
"0.57634026",
"0.5762233",
"0.57459915",
"0.5732965",
"0.57247937",
"0.5724524",
"0.5685279",
"0.56842935",
"0.5676385",
"0.56695634",
"0.5654233",
"0.5648248",
"0.56449515",
"0.56442297",
"0.5628917",
"0.56210315",
"0.5611679",
"0.56022155",
"0.56020546",
"0.56020546",
"0.5595346",
"0.55941683",
"0.5584528",
"0.55747145",
"0.55622953",
"0.55615747",
"0.55544394",
"0.55533576",
"0.55317473",
"0.55294025",
"0.5510661",
"0.5509392",
"0.54994446",
"0.5496989",
"0.5490263",
"0.5486437",
"0.5473977",
"0.546957",
"0.54666",
"0.54638404",
"0.54554915",
"0.54485965",
"0.54343784",
"0.543285",
"0.5425627",
"0.5422345",
"0.5416964",
"0.5414648",
"0.54142874",
"0.53997034",
"0.53965545",
"0.5395914",
"0.539557",
"0.5387678",
"0.5386045",
"0.53749335",
"0.5369589",
"0.53677607",
"0.5365143",
"0.53649056",
"0.53646106",
"0.5349399",
"0.53394353",
"0.53376937",
"0.5336249",
"0.5332078",
"0.5322292",
"0.5321051",
"0.5319878",
"0.53098255",
"0.53094673"
] | 0.0 | -1 |
Gets be called on closing tags like: | @Override
public void endElement(String namespaceURI, String localName, String qName)
{
try {
if (localName.equals("Document")) {
this.in_documenttag = false;
// set folder in document
kmlDocument.setPlacemarks(docDataPlacemarks);
kmlDocument.setFolders(folders);
} else if (localName.equals("Placemark")) {
this.in_placemarktag = false;
if (!in_foldertag) {
this.docDataPlacemarks.add(dpm);
} else {
this.folderDataPlacemarks.add(dpm);
}
dpm = new Placemark();
} else if (localName.equals("Folder")) {
// take care of the current folder...
if (folderDataPlacemarks.size() > 0) {
folder.addPlacemarks(folderDataPlacemarks);
}
if (folderStack.size() == 0) {
folders.add(folder);
folder.trailSystemName = folder.name;
this.in_foldertag = false;
folder = new Folder();
folders = new ArrayList<Folder>();
} else {
Folder tmpFolder = folder;
// now set the last folder from the stack as the current folder
folder = folderStack.remove(folderStack.size()-1);
// set parentFolder, trailSystem name
tmpFolder.trailSystemName = folder.getName();
tmpFolder.parentFolder = folder;
folders.add(tmpFolder);
folder.addFolders(folders);
// set the folders list on the popped/current folder
folders = new ArrayList<Folder>();
}
// reset variables
folders = new ArrayList<Folder>();
folderDataPlacemarks = new ArrayList<Placemark>();
} else if (localName.equals("name")) {
if (in_placemarktag) {
this.in_placemarknametag = false;
} else if (in_foldertag) {
this.in_foldernametag = false;
} else if (in_documenttag) {
this.in_documentnametag = false;
}
} else if (localName.equals("description")) {
this.in_descriptiontag = false;
} else if (localName.equals("coordinates")) {
this.in_coordinatestag = false;
this.dpm.addCoordinates(tmpStringList); // moved from in_placemarktag to here...
tmpStringList = new ArrayList<String>();
} else if (localName.equals("Address")) {
this.in_addresstag = false;
// Log.e(tag, "pm.parkingAddress=[" + this.dpm.parkingAddress + "]");
} else {
// Log.v(tag+".endElement = ", localName);
}
} catch (Exception e) {
Log.e(tag, "Exception: " + e.getMessage());
Log.e(tag, "Exception: " + e.toString());
}
// Log.e(tag, "");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void tagClose() {\n if( tagOpen ) {\n out.println( \">\" ); \n tagOpen = false;\n }\n }",
"public void closeEndTag() throws XMLStreamException {\n write(HtmlObject.HtmlMarkUp.CLOSE_BRACKER);\n }",
"@Override\n\tpublic void endTag(String name, String content, Stack<String> context) {\n\t}",
"void doAfterEndTag() {\r\n }",
"public void closeStartTag() throws XMLStreamException {\n flushNamespace();\n clearNeedsWritingNs();\n if (this.isEmpty) {\n write(\"/>\");\n this.isEmpty = false;\n return;\n }\n write(HtmlObject.HtmlMarkUp.CLOSE_BRACKER);\n }",
"public void closeContainerTag( )\n \t{\n \t\twriter.closeTag( HTMLTags.TAG_DIV );\n \t\tint display = ( (Integer) cellDisplayStack.pop( ) ).intValue( );\n \t\tif ( ( ( display & HTMLEmitterUtil.DISPLAY_INLINE ) > 0 )\n \t\t\t\t|| ( ( display & HTMLEmitterUtil.DISPLAY_INLINE_BLOCK ) > 0 ) )\n \t\t{\n \t\t\t// Close the inlineBox tag when implement the inline box.\n \t\t\tcloseInlineBoxTag( );\n \t\t}\n \t}",
"public static void closeTag(String name) {\n Log.write(\"</\"); Log.write(name); Log.writeln(\">\");\n }",
"public void openEndTag() throws XMLStreamException {\n write(\"</\");\n }",
"public boolean getNeedClosingTag() {\n\t\treturn (end_element);\n\t}",
"public static void closeMinorTag() {\n closeTag(true,true);\n }",
"private void parseEndTag() {\n Token token;\n try {\n stack.pop();\n token = lexer.nextToken();\n if (token.getType() != TokenType.TAG_CLOSE) {\n throw new SmartScriptParserException(\"There is no close tag!\");\n }\n lexer.setState(LexerState.BASIC);\n } catch (EmptyStackException ex) {\n throw new SmartScriptParserException(\"There are too many \\\"END\\\" tags.\");\n }\n}",
"static boolean XmlClosingTagPart(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"XmlClosingTagPart\")) return false;\n if (!nextTokenIs(b, XMLENDTAGSTART)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, XMLENDTAGSTART);\n p = r; // pin = 1\n r = r && report_error_(b, XmlTagName(b, l + 1));\n r = p && report_error_(b, XmlClosingTagPart_2(b, l + 1)) && r;\n r = p && consumeToken(b, XMLTAGEND) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"@Override\n\tpublic void endElement(String uri, String localName, String qName) throws SAXException {\n\t\ttry {\n\t\t\tif (startTagIsClosed) {\n\t\t\t\twrite(\"</\");\n\t\t\t\twrite(qName);\n\t\t\t\twrite('>');\n\t\t\t} else {\n\t\t\t\twrite(\"/>\");\n\t\t\t\tstartTagIsClosed = true;\n\t\t\t}\n\t\t\tsuper.endElement(uri, localName, qName);\n\t\t\t// nsSupport.popContext();\n\t\t\telementLevel--;\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}",
"private void TokenEndTag(Token token, TreeConstructor treeConstructor) {\n\t\tswitch (token.getValue()) {\r\n\t\tcase \"head\":\r\n\t\tcase \"body\":\r\n\t\tcase \"html\":\r\n\t\tcase \"br\":\r\n\t\t\tTokenAnythingElse(token, treeConstructor, true);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tParserStacks.parseErrors\r\n\t\t\t\t\t.push(\"Unexpected end tag in BeforeHTML insertion mode\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void handleCFEndTag(HtmlObjects.EndTag t)\n {\n }",
"public static void closeTag(boolean close, boolean endLine) {\n if (close) Log.write(\"/\");\n Log.write(\">\");\n if (endLine) Log.writeln();\n }",
"public void handleCloseElement(String elementName, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"End element: \" + elementName);\r\n }",
"public static void closeTag(boolean close) {\n closeTag(close,true);\n }",
"public void setNeedClosingTag(boolean close) {\n\t\tend_element = close;\n\t}",
"protected void afterBody(final XMLOutput output) throws JellyTagException, SAXException\n\t{\t\n\t\toutput.write(\"</div>\\n\") ;\n\t}",
"protected void handleEnd(HtmlDocument.EndTag tag) {\n TagWrapper lastSeen;\n HTML.Element element = tag.getElement();\n while ((lastSeen = mSeenTags.poll()) != null && lastSeen.tag.getElement() != null &&\n !lastSeen.tag.getElement().equals(element)) { }\n\n // Misformatted html, just ignore this tag\n if (lastSeen == null) {\n return;\n }\n\n Object marker = null;\n if (HTML4.B_ELEMENT.equals(element)) {\n // BOLD\n marker = new StyleSpan(Typeface.BOLD);\n } else if (HTML4.I_ELEMENT.equals(element)) {\n // ITALIC\n marker = new StyleSpan(Typeface.ITALIC);\n } else if (HTML4.U_ELEMENT.equals(element)) {\n // UNDERLINE\n marker = new UnderlineSpan();\n } else if (HTML4.A_ELEMENT.equals(element)) {\n // A HREF\n HtmlDocument.TagAttribute attr = lastSeen.tag.getAttribute(HTML4.HREF_ATTRIBUTE);\n // Ignore this tag if it doesn't have a link\n if (attr == null) {\n return;\n }\n marker = new URLSpan(attr.getValue());\n } else if (HTML4.BLOCKQUOTE_ELEMENT.equals(element)) {\n // BLOCKQUOTE\n marker = new QuoteSpan();\n } else if (HTML4.FONT_ELEMENT.equals(element)) {\n // FONT SIZE/COLOR/FACE, since this can insert more than one span\n // we special case it and return\n handleFont(lastSeen);\n }\n\n final int start = lastSeen.startIndex;\n final int end = mBuilder.length();\n if (marker != null && start != end) {\n mBuilder.setSpan(marker, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }",
"@InnerAccess void visitEnd ()\n\t{\n\t\tclassWriter.visitEnd();\n\t}",
"private void closeTagOpenState() throws SAXException, IOException {\n // this can't happen in PLAINTEXT, so using not PCDATA as the condition\n if (contentModelFlag != ContentModelFlag.PCDATA\n && contentModelElement != null) {\n /*\n * If the content model flag is set to the RCDATA or CDATA states\n * but no start tag token has ever been emitted by this instance of\n * the tokeniser (fragment case), or, if the content model flag is\n * set to the RCDATA or CDATA states and the next few characters do\n * not match the tag name of the last start tag token emitted (case\n * insensitively), or if they do but they are not immediately\n * followed by one of the following characters: + U+0009 CHARACTER\n * TABULATION + U+000A LINE FEED (LF) + U+000B LINE TABULATION +\n * U+000C FORM FEED (FF) + U+0020 SPACE + U+003E GREATER-THAN SIGN\n * (>) + U+002F SOLIDUS (/) + EOF\n * \n * ...then emit a U+003C LESS-THAN SIGN character token, a U+002F\n * SOLIDUS character token, and switch to the data state to process\n * the next input character.\n */\n // Let's implement the above without lookahead. strBuf holds\n // characters that need to be emitted if looking for an end tag\n // fails.\n // Duplicating the relevant part of tag name state here as well.\n clearStrBuf();\n for (int i = 0; i < contentModelElement.length(); i++) {\n char e = contentModelElement.charAt(i);\n char c = read();\n char folded = c;\n if (c >= 'A' && c <= 'Z') {\n folded += 0x20;\n }\n if (folded != e) {\n if (i > 0 || (folded >= 'a' && folded <= 'z')) {\n if (html4) {\n err((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but it was not the start of the end tag. (HTML4-only error)\");\n } else {\n warn((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but this did not close the element.\");\n }\n }\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n emitStrBuf();\n unread(c);\n return;\n }\n appendStrBuf(c);\n }\n endTag = true;\n tagName = contentModelElement;\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B\n * LINE TABULATION U+000C FORM FEED (FF) U+0020 SPACE Switch\n * to the before attribute name state.\n */\n beforeAttributeNameState();\n return;\n case '>':\n /* U+003E GREATER-THAN SIGN (>) Emit the current tag token. */\n emitCurrentTagToken();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"Expected \\u201C>\\u201D but saw end of file instead.\");\n /*\n * Emit the current tag token.\n */\n emitCurrentTagToken();\n /* Reconsume the character in the data state. */\n unread(c);\n return;\n case '/':\n /*\n * U+002F SOLIDUS (/) Parse error unless this is a permitted\n * slash.\n */\n // never permitted here\n err(\"Stray \\u201C/\\u201D in end tag.\");\n /* Switch to the before attribute name state. */\n beforeAttributeNameState();\n return;\n default:\n if (html4) {\n err((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but it was not the start of the end tag. (HTML4-only error)\");\n } else {\n warn((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but this did not close the element.\");\n }\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n emitStrBuf();\n cstart = pos; // don't drop the character\n return;\n }\n } else {\n /*\n * Otherwise, if the content model flag is set to the PCDATA state,\n * or if the next few characters do match that tag name, consume the\n * next input character:\n */\n char c = read();\n if (c >= 'A' && c <= 'Z') {\n /*\n * U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN CAPITAL\n * LETTER Z Create a new end tag token,\n */\n endTag = true;\n clearStrBuf();\n /*\n * set its tag name to the lowercase version of the input\n * character (add 0x0020 to the character's code point),\n */\n appendStrBuf((char) (c + 0x20));\n /*\n * then switch to the tag name state. (Don't emit the token yet;\n * further details will be filled in before it is emitted.)\n */\n tagNameState();\n return;\n } else if (c >= 'a' && c <= 'z') {\n /*\n * U+0061 LATIN SMALL LETTER A through to U+007A LATIN SMALL\n * LETTER Z Create a new end tag token,\n */\n endTag = true;\n clearStrBuf();\n /*\n * set its tag name to the input character,\n */\n appendStrBuf(c);\n /*\n * then switch to the tag name state. (Don't emit the token yet;\n * further details will be filled in before it is emitted.)\n */\n tagNameState();\n return;\n } else if (c == '>') {\n /* U+003E GREATER-THAN SIGN (>) Parse error. */\n err(\"Saw \\u201C</>\\u201D.\");\n /*\n * Switch to the data state.\n */\n return;\n } else if (c == '\\u0000') {\n /* EOF Parse error. */\n err(\"Saw \\u201C</\\u201D immediately before end of file.\");\n /*\n * Emit a U+003C LESS-THAN SIGN character token and a U+002F\n * SOLIDUS character token.\n */\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n } else {\n /* Anything else Parse error. */\n err(\"Garbage after \\u201C</\\u201D.\");\n /*\n * Switch to the bogus comment state.\n */\n clearLongStrBuf();\n appendToComment(c);\n bogusCommentState();\n return;\n }\n }\n }",
"public void closeElement() throws IOException {\r\n if (this.elements.size() <= 1) return;\r\n Element elt = popElement();\r\n this.depth--;\r\n // this is an empty element\r\n if (this.isNude) {\r\n writer.write('/');\r\n this.isNude = false;\r\n // the element contains text\r\n } else {\r\n if (elt.hasChildren) this.indent();\r\n this.writer.write('<');\r\n this.writer.write('/');\r\n int x = elt.qName.indexOf(' ');\r\n if (x < 0)\r\n this.writer.write(elt.qName);\r\n else\r\n this.writer.write(elt.qName.substring(0, x));\r\n }\r\n // restore previous mapping if necessary\r\n restorePrefixMapping(elt);\r\n this.writer.write('>');\r\n if (super.indent) this.writer.write('\\n');\r\n }",
"public Frysak_11_closing_document() {\r\n }",
"@Override\n public void closing() {\n }",
"public void visitEnd()\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void onClosed() {\n\t\t\t\t\r\n\t\t\t}",
"private static String closeSpans() {\n\t\tString ret = \"\";\r\n\t\tfor (int i = 0; i < numCloseSpans; i++) {\r\n\t\t\tret += \"</span>\";\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"@Override\n public void close()\n throws XMLStreamException\n {\n /* 19-Jul-2004, TSa: Hmmh. Let's actually close all still open\n * elements, starting with currently open start (-> empty)\n * element, if one exists, and then closing scopes by adding\n * matching end elements.\n */\n _finishDocument(false);\n }",
"public void closePost() {\n // TODO implement here\n }",
"public void elementEnd() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public void closed() \r\n\t{\r\n\t\t\r\n\t}",
"public int doEndTag() {\r\n return EVAL_PAGE;\r\n }",
"private String closeDefinitionTag (char last) {\n if (last == ';') {\n return \"</dt>\";\n }\n else\n if (last == ':') {\n return \"</dd>\";\n } else {\n return \"\";\n }\n }",
"@Override\n\tpublic void closed() {\n\n\t}",
"protected void endOutput() throws JspException, SAXException {\n if (uriExpr != null && uri == null)\n uri = evalString(\"uri\", uriExpr);\n if (nameExpr != null && qname == null) {\n qname = evalString(\"name\", nameExpr);\n int colonIndex = qname.indexOf(':');\n if (colonIndex != -1)\n name = qname.substring(colonIndex + 1);\n else\n name = qname;\n }\n serializer.getHandler().endElement(uri, name, qname);\n }",
"String getPacketEndTag();",
"@Override\n public void writeEndElement() throws XMLStreamException {\n closeStartTag();\n if(_depth == 0){\n return;\n }\n if(_ncContextState[_depth]){\n nsContext.popContext();\n }\n try {\n _stream .write(_END_TAG);\n //writeStringToUtf8 (qname,_stream);\n ElementName en =elementNames[--_depth];\n _stream.write(en.getUtf8Data().getBytes(), 0,en.getUtf8Data().getLength());\n en.getUtf8Data().reset();\n _stream .write('>');\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n }",
"public static void end() {\n Log.writeln(\"<xml-end/> <!-- Non-xml data follows ... -->\");\n }",
"@Override\n public void endElement(String uri, String localName, String qName)\n throws SAXException {\n super.endElement(uri, localName, qName);\n tagName=null;\n }",
"private void removeClosingTag(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n p_tags.remove(i);\n return;\n }\n }\n }\n }",
"public void handleCustomNodeEnd(IParserHandler parserHandler, BeanNode node, XMLAttributeMap att, Locator locator);",
"@Override\n public int doEndTag() {\n return EVAL_PAGE;\n }",
"public void endElement() throws Exception;",
"public abstract void endDataField(String tag);",
"protected void end()\n\t{\n\t}",
"public void endElement(String uri, String localName, String qName) {\n CodeWriter out = getTranslaterContext().getCodeWriter();\n out.printIndent().println(\"sfsContentHandler.characters(\" + sb.toString().trim() + \");\");\n }",
"private void onFinish() {\r\n\t\t//used for create end html tags\r\n\t\tendHtmlPage(fout);\r\n\r\n\t\t//used for write every thing in html file\r\n\t\tfout.flush();\r\n\t\tfout.close();\r\n\t\t\r\n\t}",
"protected void handleStart(HtmlDocument.Tag tag) {\n if (!tag.isSelfTerminating()) {\n // Add to the stack of tags needing closing tag\n mSeenTags.push(new TagWrapper(tag, mBuilder.length()));\n }\n }",
"protected void writeClosing ()\n {\n stream.println ('}');\n }",
"@Override\n void endElement(String uri, String localName, String qName);",
"public void processEndChildElement(String uri, String localName, String qName, String nestedText)\n {\n }",
"public void closing(OpenableElementInfo info) {\n\t\t// TODO what cleanup to do?\n\t}",
"public void endCDATA() throws SAXException {\n this.saxHandler.endCDATA();\n }",
"public void endElement(String uri, String localName, String gName) {\t\r\n\t}",
"default boolean visitEnd() {\n\t\treturn true;\n\t}",
"public void endCDATA() throws SAXException {\n\t\tmCDataSection = false;\n\t\tif (mParsedObject != null) mParsedObject.endCDATA();\n\t}",
"public abstract void doTagLogic() throws JspException, IOException;",
"@Override\r\n\tprotected void end() {\r\n\t}",
"@Override\n\tpublic void endElement(String arg0, String arg1, String arg2)\n\t\t\tthrows SAXException {\n\t\t\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override public void closed() {\n\t\t}",
"public void endTag(String localName) {\n\t\tif (localName.equals(HORA_TAG)) {\n\t\t\tmIsParsingHora = false;\n\t\t} else if (localName.equals(NOMBRE_TAG)) {\n\t\t\tmIsParsingNombre = false;\n\t\t} else if (localName.equals(\"wpt\")) {\n\t\t\t//Cuando se acaba un waypoint, configuro el texto de su elemento de la lista\n\t\t\tif(!tieneHora){mHora = \"Sin datos\";}\n\t\t\tmResults.add(\"Nombre:\" + mNombre + \", Hora de paso:\"\n\t\t\t\t\t+ mHora);\n\t\t\tmNombre = null;\n\t\t\tmHora = null;\n\t\t\ttieneHora=false;\n\t\t}\n\t}",
"public void endTag(int indent, String tag)\n\t{\n\t\t// We should have a new line before every start tag\n\t\tnewLine();\n\n\t\t// Add the appropriate number of indents\n\t\tfor (int i = 0; i < indent; i++)\n\t\t\toutput.append(\"\\t\");\n\n\t\t// Append the tag\n\t\toutput.append(\"</\" + tag + \">\");\n\t}",
"@Override\r\n\tprotected void end() {\n\r\n\t}",
"@Override\r\n\tprotected void end() {\n\r\n\t}",
"@Override\n public void endBlock() {\n }",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"public void endElement(String name)\n throws IOException\n {\n if (name == null) {\n throw new NullPointerException();\n }\n if (state == START_ELEMENT) {\n if (HtmlRenderer.isEmptyElement(name)) {\n out.write(\"/>\");\n } else {\n out.write(\"></\");\n out.write(name);\n out.write(\">\");\n }\n } else {\n out.write(\"</\");\n out.write(name);\n out.write('>');\n }\n state = END_ELEMENT;\n dontEscape = false;\n }",
"@Override\n\tpublic void endElement(String arg0, String arg1, String arg2) throws SAXException {\n\t\tSystem.out.println(arg2+\"解析结束\");\n\t}",
"private void movePositionToEndOfTag(String tag) throws ParseException {\n String closing = \"</\" + tag + \">\";\n position = html.indexOf(closing, position);\n if (position == -1) {\n throw new ParseException(\"Cannot skip tag because closing \" + tag + \" doesnt exist.\", position);\n }\n position += closing.length();\n }",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"@Override\r\n\tpublic void close()\r\n\t{\n\t\t\r\n\t}",
"protected void end() {\n\r\n\t}",
"@Override\n\tpublic void close() {\n\n\t}",
"@Override\n\tpublic void close() {\n\n\t}",
"@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void close() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void close() {\n\t\t\r\n\t}",
"@Override\n\tpublic void close() {\n\t\t\n\t}",
"@Override\n\tpublic void close() {\n\t\t\n\t}",
"@Override\n\tpublic void close() {\n\t\t\n\t}",
"@Override\n\tpublic void close() {\n\t\t\n\t}",
"@org.junit.Test\n public static final void testOptionalEndTags() {\n junit.framework.TestCase.assertEquals(\"<ol><li>A</li><li>B</li><li>C </li></ol>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testOptionalEndTags()|0\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<ol> <li>A</li> <li>B<li>C </ol>\")));\n }",
"protected void end() {\n \n \n }",
"@Override\n\tprotected void end() {\n\t\t\n\t}",
"public interface IHtmlStreamWriter extends IXmlStreamWriter {\r\n\tvoid ignoreCurrentEndTag();\r\n}",
"@Override\r\n\tpublic void close() {\n\t\t\r\n\t}",
"@Override\n\tprotected void handleClose() {\n\t}",
"@Override\n\tvoid endHandling() {\n\t}"
] | [
"0.79148436",
"0.76053435",
"0.7538981",
"0.71502924",
"0.7123167",
"0.6968759",
"0.6950043",
"0.69498694",
"0.68825036",
"0.6856422",
"0.68010217",
"0.6569121",
"0.65425587",
"0.64923483",
"0.64846927",
"0.64557767",
"0.64270955",
"0.6427041",
"0.6410955",
"0.6372019",
"0.63424",
"0.63331586",
"0.63095045",
"0.63069606",
"0.6305716",
"0.6297045",
"0.6214248",
"0.61899775",
"0.6180867",
"0.6128693",
"0.60867125",
"0.6052965",
"0.60524523",
"0.605004",
"0.60372305",
"0.60187215",
"0.6008314",
"0.60060906",
"0.59997565",
"0.5984184",
"0.5979415",
"0.59781235",
"0.5975351",
"0.59622735",
"0.59339505",
"0.5909794",
"0.5908156",
"0.58933794",
"0.58822757",
"0.58771574",
"0.58738375",
"0.5868691",
"0.58370566",
"0.5821401",
"0.58085483",
"0.58080214",
"0.58057183",
"0.5803085",
"0.5801",
"0.58000046",
"0.5794837",
"0.57904685",
"0.57904685",
"0.57904685",
"0.5779052",
"0.57744694",
"0.577151",
"0.57689726",
"0.57689726",
"0.5767168",
"0.57647634",
"0.57647634",
"0.57647634",
"0.57647634",
"0.57633734",
"0.5762102",
"0.57618624",
"0.5756039",
"0.5756039",
"0.5756039",
"0.5756039",
"0.5756039",
"0.5756039",
"0.57547385",
"0.57476616",
"0.5743535",
"0.5743535",
"0.57372284",
"0.5728184",
"0.5728184",
"0.57277656",
"0.57277656",
"0.57277656",
"0.57277656",
"0.5726928",
"0.5723584",
"0.57219476",
"0.5720179",
"0.57126486",
"0.5710254",
"0.5709784"
] | 0.0 | -1 |
Gets called on the following structure: characters | @Override
public void characters(char ch[], int start, int length) {
if (this.in_documentnametag) {
kmlDocument.setName(new String(ch, start, length));
// Log.e(tag, "in_documentnametag=[" + new String(ch, start, length));
} else if (this.in_foldernametag) {
folder.setName(new String(ch, start, length));
// Log.e(tag, "in_foldernametag=[" + new String(ch, start, length));
} else if (this.in_placemarknametag) {
dpm.setName(new String(ch, start, length));
// Log.e(tag, "in_placemarknametag=[" + new String(ch, start, length));
} else if (this.in_addresstag) {
dpm.parkingAddress = new String(ch, start, length);
dpm.isParking = true;
// Log.e(tag, "in_addresstag=[" + new String(ch, start, length));
} else if (this.in_descriptiontag) {
String s = new String(ch, start, length);
// Log.e(tag, "************* original description [" + s + "]*************");
if (null != s && s.length() > 2) {
if (s.contains(",")) {
parseDescription(s, dpm);
dpm.setDescription(s);
} else {
// Log.e(tag, "no ',' found!!!!!");
}
}
} else if (this.in_coordinatestag) {
tmpStringList.add(new String(ch, start, length));
} else {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void characters(String arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override \n\t public void characters(char ch[], int start, int length) { \n\t\t \n\t }",
"@Override\n void characters(char[] ch, int start, int length);",
"@Override\n public void characters(char ch[], int start, int length) {\n\n }",
"@Override\n\tpublic void characters(String text) {\n\t\t\n\t}",
"public String getCharacters()\n\t{\n\t\treturn characters;\n\t}",
"public char[] getCharacters() {\n return characters;\n }",
"private String getCharacterString()\n {\n String returnString = \"Characters:\\n\\t\";\n Set<String> keys = characters.keySet();\n if(characters.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String character : keys) {\n returnString += \" [\" + character + \"]\";\n }\n return returnString;\n }",
"public Character getCharacters() {\n\t\treturn characters;\n\t}",
"@Override\n public void characters(char[] ch, int start, int length) {\n Node current = eltStack.peek();\n if (current.getChildNodes().getLength() == 1\n && current.getChildNodes().item(0).getNodeType() == Node.TEXT_NODE) {\n Text text = (Text) current.getChildNodes().item(0);\n text.appendData(new String(ch, start, length));\n } else {\n Text text = document.createTextNode(new String(ch, start, length));\n eltStack.peek().appendChild(text);\n }\n }",
"@Override\n public Collection<Character> getAll() {\n return characters;\n }",
"@Test public void testGetCharacters() {\r\n new LinkedHashMap<Word, Character[]>() {\r\n private static final long serialVersionUID = 8037868849679212478L; {\r\n put(w2, new Character[] {\r\n new Character('T'),\r\n new Character('e'),\r\n new Character('s'),\r\n new Character('t')\r\n });\r\n put(w4, new Character[] {\r\n new Character('t'),\r\n new Character('e'),\r\n new Character('s'),\r\n new Character('t'),\r\n new Character('\\''),\r\n new Character('i'),\r\n new Character('n'),\r\n new Character('g')\r\n });\r\n }}.forEach((k, v) -> {\r\n Character[] characters = k.getCharacters();\r\n assertTrue(\"Expecting identical array sizes for \" + k.toString(),\r\n characters.length == v.length);\r\n for(int i = 0; i < characters.length; i++)\r\n assertTrue(\"Expecting to find \" + v[i].toString(), characters[i].toChar() == v[i].toChar());\r\n });\r\n }",
"public void characters(char[] ch, int start, int length) throws SAXException {\n //Remember that characters may be called multiple times for the same\n //element, so if data is null then the characters delivered here are\n //the data, otherwise append the characters to data\n if (data == null) {\n data = new String(ch, start, length);\n } else {\n data = data + new String(ch, start, length);\n }\n data = data.trim();\n }",
"public void characters(char[] ch, int start, int length)\n throws SAXException {\n //String strValue = new String(ch, start, length);\n }",
"public void characters(char[] ch, int start, int length) throws SAXException {\n\t\tif (mParsedObject != null)\n\t\t\tmParsedObject.characters(ch, start, length);\n\t}",
"public String getCharName(){return charName;}",
"public void characters (char ch[], int start, int length) throws SAXException {\n\t\tif(this.fieldName != null) {\n\t\t\tchar[] ch2 = new char[length];\n\t\t\tSystem.arraycopy(ch, start, ch2, 0, length);\n\t\t\t// Concatenate into previous values, as for cases with special characters\n\t\t\t// the content might be split into multiple chunks\n\t\t\tthis.fieldValue = this.fieldValue + new String(ch2);\n\t\t}\n\t}",
"public void setCharacterSequence(String chars);",
"CharacterInfo getCharacter();",
"public void characters(char[] ch, int start, int length)\r\n\t{\r\n\t String cdata = (new String(ch, start, length)).trim();\r\n\r\n\r\n\t if(cdata.length() < 1)\r\n\t\treturn;\r\n\r\n\t String cur_element = current_tag.peek();\r\n\r\n\t /* Process the cdata for the current element */\r\n\t if(cur_element == null)\r\n\t\t{\r\n\t\t System.out.println(\"Error (ETDHandler:characters): no tag for with cdata \" + cdata);\r\n\t\t System.exit(1);\r\n\t\t}\r\n\r\n\t if(cur_element.equals(\"DISS_surname\")){\r\n\t\tname[LAST] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_fname\")){\r\n\t\tname[FIRST] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_middle\")){\r\n\t\tname[MIDDLE] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_language\")){\r\n\t\tlanguage = getLangCode(cdata);\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_title\")){\r\n\t\ttitle += \"\" + cdata;\r\n\t\t//marc_out.add(\"=245 10$a\" + cdata.trim() + \"$h[electronic resource]\" + \".\");\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_comp_date\")){\r\n\t\t comp_date = cdata.substring(0,4);\r\n\t\t}\r\n\r\n\t //else if(cur_element.equals(\"DISS_accept_date\") && cdata.length() >= 4){\r\n\t\t// ProQuest/UMI changed to a new system, which uses \"01/01/08\" for any ETD submitted in 2008. The accept_date is\r\n\t\t// no longer useful to generate the real accept date. \r\n\t\t//accept_date = cdata.substring(0, 4);\r\n\t\t// if DISS_accept_date is format of \"20050731\", length of 8\r\n\t\t//if(cdata.length() >= 8) {\r\n\t\t //running_date = cdata.substring(2, 8);\r\n\t\t// accept_date = cdata.substring(0,4);\r\n\t\t//}\r\n\r\n\t\t//-------revised by xing--------begin-------\r\n\t\t// if DISS_accept_date is format 0f \"07/31/2008\", lenght of 10\r\n\t\t//if(cdata.length() >= 10){\r\n\t\t //running_date = cdata.substring(8,10) + cdata.substring(0,2)+ cdata.substring(3,5);\r\n\t\t // accept_date = cdata.substring (6,10);\r\n\t\t//}\r\n\t\t//-------end--------------------------------\r\n\r\n\t//-------revised by JS 20090107, use full date--------begin-------\r\n\t else if(cur_element.equals(\"DISS_accept_date\")){\r\n\t\t accept_date = cdata.substring (0,10);\r\n\t marc_out.add(\"=500 \\\\\\\\$aTitle and description based on DISS metadata (ProQuest UMI) as of \" + accept_date + \".\");\r\n\t }\r\n\t\t// added JS 200912; if DISS_cat_code is present, grab to add to 502 $o\r\n\t else if(cur_element.equals(\"DISS_cat_code\")){\r\n\t\tcatCode += cdata + \"\";\r\n\t }\r\n\t\t//-------end--------------------------------\r\n\t else if(cur_element.equals(\"DISS_para\")){\r\n\t\tparagraphs += cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_inst_contact\")){\r\n\t\tissueDept += cdata + \"\";\r\n\r\n\t\t/*marc_out.add(\"=699 \\\\\\\\$a\" + cdata + \".\"); //blah*/\r\n\t\t/*=699 \\\\\\\\$a\" + cdata + \".\"=> 200912JS: changed to 710 /blah*/\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_keyword\")){\r\n\t\t/* Preferably parsing keywords into 699 marc data should be done here, but bug in java\r\n\t\t SAX causes characters() call on <DISS_keywords> to happen twice inbetween cdata */\r\n\t\tString n_cdata = cdata.replace(',', ';');\r\n\t\tn_cdata = n_cdata.replace(':', ';');\r\n\t\tn_cdata = n_cdata.replace('.', ';');\r\n\r\n\t\tkeywords += n_cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_ISBN\")){\r\n\t\tmarc_out.add(\"=020 \\\\\\\\$a\" + cdata);\r\n\t }\r\n\t /* else if(cur_element.equals(\"DISS_cat_code\")) {\r\n\t\tmarc_out.add(\"=502 \\\\\\\\$o\" + catCode + \".\");\r\n\t\t} */ \r\n\t else if(cur_element.equals(\"DISS_degree\")) {\r\n\t\tmarc_out.add(\"=502 \\\\\\\\$aThesis$b(\" + cdata + \")--$cGeorge Washington University,$d\" + comp_date + \".\");\r\n\t\t} \r\n //System.out.println(catCode); /* output content of cat_code */\r\n\r\n\t}",
"@Override\n\tpublic void characters(char[] ch, int start, int length) {\n\t\tif (inWord) {\n\t\t\tString w = new String(ch, start, length);\n\t\t\tif (currentElementText == null)\n\t\t\t\tcurrentElementText = w;\n\t\t\telse\n\t\t\t\tcurrentElementText += w;\n\t\t}\n\t\tsuper.characters(ch, start, length);\n\t}",
"@Override\n public void characters(char[] ch, int start, int length)\n throws SAXException {\n\n if (elementOn) {\n elementValue = new String(ch, start, length);\n elementOn = false;\n }\n\n }",
"@Override\n\tpublic void characters(char ch[], int start, int length) {\n\t\tchars.append(new String(ch, start, length));\n\t}",
"@Override\n public void characters(char[] ch, int start, int length) {\n if (title) {\n String bookTitle = new String(ch, start, length);\n System.out.println(\"Book title: \" + bookTitle);\n nameList.add(bookTitle);\n }\n }",
"@Override\n public void characters(char[] ch, int start, int length)\n throws SAXException {\n\n // We don't need this, because our values are set as an attribute\n\n }",
"public String getCharacterSequence();",
"private void handleCharacterData() {\n\t\tif (!buffer.isEmpty()) {\n\t\t\tbyte[] data = buffer.toArray();\n\t\t\tbuffer.clear();\n\t\t\thandler.handleString(new String(data));\n\t\t}\n\t}",
"@Override\n public String toString() {\n return \"\" + character;\n }",
"public Characters(Tree story){//Will eventually automate the creation of Character objects when given a story. So really, the bulk of the work in terms of Character analysis will be done here in this class/in Character.\n\t\tWordTrainingSet.importWordSet(false);\n\t\tcharacters = new TreeMap<String, Character>(); //Character's name (String) , all of its qualities are stored in the Character object which is the value.\n\t\tinitializeAllCharacters(story);\n\t}",
"Alphabet(String chars) {\n _chars = sanitizeChars(chars);\n }",
"@Override\n public void characters(char[] ch, int start, int length)\n throws SAXException{\n super.characters(ch, start, length);\n if(length<=0)\n return;\n for(int i=start; i<start+length; i++){\n if(ch[i]=='\\n')\n return;\n }\n\n String str=new String(ch,start,length);\n switch (tagName)\n {\n case \"key\":wordValue.setWord(str); break;\n case \"ps\": if(wordValue.getPsE().length()<=0)\n wordValue.setPsE(str);\n else wordValue.setPsA(str);\n break;\n case \"pron\":if(wordValue.getPronE().length()<=0)\n wordValue.setPronE(str);\n else wordValue.setPronA(str);\n break;\n case \"pos\":isChinese=false;\n interpret+=str+\" \";\n break;\n case \"acceptation\":interpret+=str+\"\\n\";\n interpret=wordValue.getInterpret()+interpret;\n wordValue.setInterpret(interpret);\n interpret=\"\";\n break;\n case \"orig\":orig=wordValue.getSentOrig();\n wordValue.setSentOrig(orig+str+\"\\n\");\n break;\n case \"trans\":trans=wordValue.getSentTrans();\n wordValue.setSentTrans(trans+str+\"\\n\");\n break;\n case \"fy\":isChinese=true;\n wordValue.setInterpret(str);\n }\n }",
"@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }",
"@Override\n\tpublic void characters(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\tsuper.characters(ch, start, length);\n\t\tString data = new String(ch, start, length);\n\t\t// System.out.println(\"data is \" + data);\n\t}",
"private void addCharacters(\n final SAXEventType eventType,\n char[] characters, int offset, int length) {\n\n boolean coalesce = true;\n\n startRecording();\n\n // Coalesce adjacent character events together.\n if (lastEventType != eventType) {\n // Add the event type.\n addEvent(eventType);\n\n coalesce = false;\n }\n\n if (coalesce) {\n int lastLength = lastCharacterEventLength.getValue();\n int totalLength = lastLength + length;\n lastCharacterEventLength.setValue(totalLength);\n if(LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"characters (coalesce)='\" +\n new String(characters,offset, length) + \"'\");\n }\n } else {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"characters='\" +\n new String(characters, offset, length) + \"'\");\n }\n addInt(characterCount);\n\n addPlaceHolderValue(lastCharacterEventLength);\n\n lastCharacterEventLength.setValue(length);\n }\n\n ensureCharacterArrayCapacity(characterCount + length);\n System.arraycopy(characters, offset, characterArray, characterCount,\n length);\n characterCount += length;\n }",
"@Override\r\n\tpublic void characters(char[] ch, int start, int length) throws SAXException {\n\r\n\t\tString text = new String(ch, start, length).trim();\r\n\t\tif(text.isEmpty()) return;\r\n\t\t\t\t\r\n\t\tif (currentTag.equals(ComputerTagEnum.NAME)) {\r\n\t\t\tdevice.setName(text);\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.ORIGIN)) {\r\n\t\t\tdevice.setOrigin(text);\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.PRICE)) {\r\n\t\t\tdevice.setPrice(new BigInteger(text));\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.COOLER)) {\r\n\t\t\ttype.setCooler(Boolean.valueOf(text));\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.ENERGY)) {\r\n\t\t\ttype.setEnergy(Double.valueOf(text));\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.GROUP)) {\r\n\t\t\ttype.setGroup(Group.fromValue(text));\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.PORT)) {\r\n\t\t\tif (type.getClass() == Internal.class) {\r\n\t\t\t\t((Internal) type).setPort(IntPort.valueOf(text.toUpperCase()));\r\n\t\t\t} else if (type.getClass() == External.class) {\r\n\t\t\t\t((External) type).setPort(ExtPort.valueOf(text.toUpperCase()));\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"public void characters (char ch[], int start, int length)\n\t\t{\n//\t\t\tfor (int i = start; i < start + length; i++) \n//\t\t\t\tSystem.out.print(ch[i]);\n//\t\t\tSystem.out.println();\n\t\t}",
"public void characters(char[] ch, int start, int length) throws SAXException {\n contents.write(ch, start, length);//ne znam cemu sluzi ali neka ostane\n textBuffer.append(new String(ch, start, length));\n }",
"protected void readCharacters() {\n try {\r\n File f = new File(filePath);\r\n FileInputStream fis = new FileInputStream(f);\r\n ObjectInputStream in = new ObjectInputStream(fis);\r\n characters = (List<character>) in.readObject();\r\n in.close();\r\n }\r\n catch(Exception e){}\r\n adapter.addAll(characters);\r\n }",
"public char getChar();",
"public void characters(char[] ch, int start, int length) throws SAXException {\n\n\t}",
"public String getCharacter()\n\t\t{\n\t\t\treturn characterName;\n\t\t}",
"private void buildCharMap() {\n\t\tcharMap = new HashMap<Character , Integer>();\n\t\tcharMap.put('a', 0);\n\t\tcharMap.put('b', 1);\n\t\tcharMap.put('c', 2);\n\t\tcharMap.put('d', 3);\n\t\tcharMap.put('e', 4);\n\t\tcharMap.put('f', 5);\n\t\tcharMap.put('g', 6);\n\t\tcharMap.put('h', 7);\n\t\tcharMap.put('i', 8);\n\t\tcharMap.put('j', 9);\n\t\tcharMap.put('k', 10);\n\t\tcharMap.put('l', 11);\n\t\tcharMap.put('m', 12);\n\t\tcharMap.put('n', 13);\n\t\tcharMap.put('o', 14);\n\t\tcharMap.put('p', 15);\n\t\tcharMap.put('q', 16);\n\t\tcharMap.put('r', 17);\n\t\tcharMap.put('s', 18);\n\t\tcharMap.put('t', 19);\n\t\tcharMap.put('u', 20);\n\t\tcharMap.put('v', 21);\n\t\tcharMap.put('w', 22);\n\t\tcharMap.put('x', 23);\n\t\tcharMap.put('y', 24);\n\t\tcharMap.put('z', 25);\t\n\t}",
"public void characters(char[] ch, int start, int length) {\n String string = new String(ch, start, length);\n SyntaxTreeNode parent = _parentStack.peek();\n\n if (string.length() == 0) return;\n\n // If this text occurs within an <xsl:text> element we append it\n // as-is to the existing text element\n if (parent instanceof Text) {\n ((Text)parent).setText(string);\n return;\n }\n\n // Ignore text nodes that occur directly under <xsl:stylesheet>\n if (parent instanceof Stylesheet) return;\n\n SyntaxTreeNode bro = parent.lastChild();\n if ((bro != null) && (bro instanceof Text)) {\n Text text = (Text)bro;\n if (!text.isTextElement()) {\n if ((length > 1) || ( ((int)ch[0]) < 0x100)) {\n text.setText(string);\n return;\n }\n }\n }\n\n // Add it as a regular text node otherwise\n parent.addElement(new Text(string));\n }",
"private void setLevelUpChars() {\n /*\n * check this if you need more symbol set's\n * TODO do this right @me\n\t\t */\n String charset = KeyboardHandler.current_charset;\n if (charset.length() == 36) {\n for (int i = 0; i < 6; ++i) {\n characterAreas.get(i).setChars(\n charset.substring(i * 6, (i + 1) * 6));\n }\n }\n\n if (charset.length() == 40) {\n Log.d(\"main\",charset);\n characterAreas.get(0).setChars(charset.substring(0, 6));\n characterAreas.get(1).setChars(charset.substring(6, 14));\n characterAreas.get(2).setChars(charset.substring(14, 20));\n characterAreas.get(3).setChars(charset.substring(20, 26));\n characterAreas.get(4).setChars(charset.substring(26, 34));\n characterAreas.get(5).setChars(charset.substring(34, 40));\n }\n }",
"char[] getCharContent() throws IOException;",
"String charWrite();",
"Alphabet(String chars) {\n if (chars.contains(\"(\") || chars.contains(\")\") || chars.contains(\"*\")) {\n throw error(\"Parentheses and asterisks not permitted in alphabet.\");\n }\n Map<Character, Integer> map = new HashMap<>();\n char[] string2chars = chars.toCharArray();\n for (char c : string2chars) {\n if (map.containsKey(c)) {\n throw error(\"Repeated character found: %c\", c);\n } else {\n map.put(c, 1);\n }\n }\n\n _chars = chars;\n }",
"public void characters(char ch[], int start, int length) throws SAXException {\n\r\n\t}",
"public void characters (char ch[], int start, int length)\n throws SAXException\n {\n // no op\n }",
"@Override\r\n\tpublic void characters(char ch[], int start, int length) throws SAXException {\r\n\t\tstringBuilder.append(new String(ch, start, length));\r\n\t}",
"private void printchar(){\n temp = (inp).toString();\n count = (temp).length();\n System.out.println(\"Length = \"+(temp).length());\n }",
"@Override\r\n\tpublic char charAt(int index) {\n\t\treturn chars[index];\r\n\t}",
"public void cdata(char[] chars, int start, int length);",
"public void characters(char ch[], int start, int length)\n throws SAXException {\n this.ensureInitialization();\n super.characters(ch, start, length);\n }",
"@Override\r\n\tpublic int length() {\n\t\treturn chars.length;\r\n\t}",
"public char[] getAsChars() {\n return (char[])data;\n }",
"public void characters(char[] ch, int start, int len) {\r\n \tif (charState > 0) {\r\n \t\tif (charState == 2) {\r\n \t\t\tlineBuffer.append(' ');\r\n \t\t}\r\n \t\tcharState = 1;\r\n \tlineBuffer.append(new String(ch, start, len));\r\n \t}\r\n }",
"@Override\n\tpublic void characters(char[] arg0, int arg1, int arg2) throws SAXException {\n\t\tString content=new String(arg0,arg1,arg2);\n\t\tif(content.length()>0) {\n\t\t\tSystem.out.println(\"<\"+CurrentTag+\">元素的内容是: \"+content.trim());\n\t\t}\n\t}",
"public void characters(char ch[], int start, int length)\n throws SAXException {\n int i = 0;\n while ( i < length ) {\n char c = ch[start + i];\n switch (c) {\n case '&':\n newContent.append(\"&\");\n break;\n case '<':\n newContent.append(\"<\");\n break;\n case '>':\n newContent.append(\">\");\n break;\n case '\"':\n newContent.append(\""\");\n break;\n case '\\'':\n newContent.append(\"'\");\n break;\n default:\n // If we're outside 7 bit ascii encode as a character ref.\n // Not sure what the proper behavior here should be.\n if ((int) c > 127) {\n newContent.append(\"&#\" + (int) c + \";\");\n }\n else {\n newContent.append(c);\n }\n }\n\n i++;\n }\n }",
"private AppendableCharSequence(char[] chars)\r\n/* 20: */ {\r\n/* 21: 33 */ this.chars = chars;\r\n/* 22: 34 */ this.pos = chars.length;\r\n/* 23: */ }",
"@Override\n public void setCharacter(String character) {\n this.character = character;\n }",
"public void characters( char[] buf, int offset, int len ) {\r\n\r\n // Append the new characters\r\n currentString.append( new String( buf, offset, len ) );\r\n }",
"@Override \r\n public void characters(char[] ch, int start, int length) \r\n throws SAXException {\n cadena = new String(ch, start, length);\r\n valor = valor + cadena;\r\n }",
"public void characters(char[] ch, int start, int length) throws SAXException {\n if (currentDeal != null) {\n // don't forget to trim excess spaces from the ends of the string\n if (idDeal.equals(\"open\")) {\n String id = new String(ch, start, length).trim();\n currentDeal.setIddeal(id);\n } else\n if (titreDeal.equals(\"open\")) {\n String nom = new String(ch, start, length).trim();\n currentDeal.setTitre(nom);\n }\n else\n if (descDeal.equals(\"open\")) {\n String des = new String(ch, start, length).trim();\n currentDeal.setDesc(des);\n }\n else\n if (img.equals(\"open\")) {\n String image = new String(ch, start, length).trim();\n currentDeal.setImg(\"http://localhost:1234/pidv/\"+image);\n }\n }\n }",
"public Character[] getCharacters() {\n return chars.toArray(new Character[0]);\n }",
"@Override\n public void characters(char[] ch, int start, int length) throws SAXException {\n String str = String.valueOf(ch, start, length);\n if(isAuthor){\n if(isNickname){\n author.setNickname(str);\n }else if(isFullname){\n author.setFullname(str);\n }else if(isEmail){\n author.setEmail(str);\n }else if(isAddress){\n author.setAddress(str);\n }else if(isBirthday){\n author.setBirthday(str);\n }\n }\n if(isBook){\n if(isTitle){\n book.setTitle(str);\n }else if(isNickname2){\n book.setNickname(str);\n }else if(isNxb){\n book.setNxb(str);\n }else if(isDes){\n book.setDescription(str);\n }\n }\n }",
"private void text_characters(final char[] src, final int srcPos, final int length) {\n\t\t// addStyle();\n\t\tthis.textstringList.add(new Textstring(mProperties.x, mProperties.y, src, srcPos, length));\n\t\t// Assume for now that all textstrings have a matrix\n\t\t// if (mProperties.transformData != null) {\n\t\t// addTransform();\n\t\t// }\n\t\taddText();\n\t}",
"@Override\n public void characters(char[] ch, int start, int length) {\n if (parentMatchLevel > 0 && matchLevel > 2) {\n bufferBagged.append(ch, start, length);\n }\n if (parentMatchLevel > 0 && matchLevel > 0) {\n bufferBagless.append(ch, start, length);\n }\n }",
"public char getChar() {\n return this.s;\n }",
"private ArrayList<Character> characterArrayListMaker(String s) {\n ArrayList<Character> result = new ArrayList<Character>();\n for (int i = 0; i < s.length(); i++){\n result.add(s.charAt(i));\n }\n return result;\n }",
"public Character getCharacter(){\n\t\treturn get_character();\n\t}",
"private String addCharacter() {\n\t\t// Two Parameters: CharaNumber, CharaName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|chara\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}",
"public BasicChar getBasicChar() {\n return this.wotCharacter;\n }",
"public void characters(Parameters parameters, final onSuccessCallback callback){\n getJSONArray(parameters.buildQuery(Endpoint.CHARACTERS), new onSuccessCallback() {\n @Override\n public void onSuccess(JSONArray result) {\n callback.onSuccess(result);\n }\n\n @Override\n public void onError(VolleyError error) {\n callback.onError(error);\n }\n });\n }",
"public Characters getCharacter(String characterName)\n {\n return characters.get(characterName);\n }",
"@Override\n\t\t\t\tpublic void characters(char[] ch, int start, int length)\n\t\t\t\t\t\tthrows SAXException {\n\t\t\t\t\tsuper.characters(ch, start, length);\n\t\t\t\t\tbuilder.append(ch, start, length);\n\t\t\t\t\tLog.d(TAG, \"ch=\" + builder.toString());\n\t\t\t\t}",
"@Override\n\tpublic void characters(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\tsuper.characters(ch, start, length);\n\t}",
"@Test\n public void testChars() {\n LOGGER.info(\"testChars\");\n final String expected = \"Hello\";\n final AtomString atomString1 = new AtomString(expected);\n final String actual = atomString1.chars()\n .mapToObj(i -> new String(new int[]{i}, 0, 1))\n .collect(joining());\n assertEquals(expected, actual);\n }",
"public void characters(char ch[], int start, int length) throws SAXException {\r\n\t\t\tString str = new String(ch, start, length);\r\n\t\t\t\r\n\t\t\tswitch (currTag){\r\n\t\t\tcase FUNCTIONS:\r\n\t\t\t\t// do nothing\r\n\t\t\t\tbreak;\r\n\t\t\tcase FUNCTION:\r\n\t\t\t\t// do nothing\r\n\t\t\t\tbreak;\r\n\t\t\tcase TERM:\r\n\t\t\t\t// do nothing\r\n\t\t\t\tbreak;\r\n\t\t\tcase ALPHA:\r\n\t\t\t\t// do nothing\r\n\t\t\t\tbreak;\r\n\t\t\tcase COORD:\r\n\t\t\t\ttry{\r\n\t\t\t\t\tLong value = Long.parseLong(str);\r\n\t\t\t\t\tcoord = value;\r\n\t\t\t\t\tLog.log(\"\\t\\t\\t\\t\\t\"+str);\r\n\t\t\t\t\tif (coord < 0 || coord >= G[coordIndex])\r\n\t\t\t\t\t\tthrow new SAXException(\"coordinate in index \"+coordIndex+\" not in range [0,1,...,G[\"+coordIndex+\"]-1]: \"+coord);\r\n\t\t\t\t} catch (NumberFormatException nfe){\r\n\t\t\t\t\tthrow new SAXException(\"coordinate must be a number in range [0,1,...,G[\"+coordIndex+\"]-1]: \"+coord);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase RECOEFF:\r\n\t\t\t\ttry{\r\n\t\t\t\t\trecoeff = Double.parseDouble(str);\r\n\t\t\t\t\tLog.log(\"\\t\\t\\t\\t\"+str);\r\n\t\t\t\t} catch (NumberFormatException nfe){\r\n\t\t\t\t\tthrow new SAXException(\"reCoeff not a double\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase IMCOEFF:\r\n\t\t\t\ttry{\r\n\t\t\t\t\timcoeff = Double.parseDouble(str);\r\n\t\t\t\t\tLog.log(\"\\t\\t\\t\\t\"+str);\r\n\t\t\t\t} catch (NumberFormatException nfe){\r\n\t\t\t\t\tthrow new SAXException(\"imCoeff not a double\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase END:\r\n\t\t\t\tthrow new SAXException(\"XML parsing error\");\r\n\t\t\tdefault:\r\n\t\t\t\t// do nothing\r\n\t\t\t}\r\n\t\t}",
"public void setBasicChar(BasicChar wotCharacter) {\n this.wotCharacter = wotCharacter;\n }",
"void writeChars(String s) throws IOException;",
"public boolean hasHasCharacter() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@Override\n\tpublic void characters(char[] arg0, int arg1, int arg2) throws SAXException {\n\t\tString contents = new String(arg0,arg1,arg2).trim();\n\t\tif(contents.length()>0) {\n\t\t\tSystem.out.println(\"内容为:\"+contents);\t\n\t\t}\n\t\t\n\t}",
"public SingleChar(char c) {\n super(SOME, NONE);\n this.c = c;\n }",
"public int getCharPos(){\n return charPos;\n }",
"@Override\n public void characters(\n char[] chars, int start, int length\n ) throws SAXException {\n \n String s = new String(chars, start, length).trim();\n \n if (s.length() > 0) { \n buffer.append(s); \n }\n }",
"protected Characters(final Image image)\r\n {\r\n //assign the animation image\r\n this.image = image;\r\n \r\n //create a new list for our characters\r\n this.characters = new ArrayList<>();\r\n }",
"EnsembleLettre(Collection<? extends Character> c) {\n\t\tsuper(c);\n\t}",
"@Override\r\n\tpublic void characters(char[] ch, int start, int length) throws SAXException {\n\t\tsuper.characters(ch, start, length);\r\n\t\tif(bID) {\r\n\t\t\t\r\n\t\t\tid = new String(ch,start,length);\r\n\t\t\tbID = false;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void characters(char[] arg0, int arg1, int arg2) throws SAXException {\n\t\t\n\t}",
"@Override\n \tpublic void characters(final char inbuf[], final int offset, final int len)\n \t\t\tthrows SAXException {\n \t\tif (curAtom != null || !isParsing(eIsParsing.NONE)) {\n \t\t\tfinal String tmpString = new String(inbuf, offset, len);\n \t\t\tbuf += tmpString;\n \t\t}\n \t}",
"public abstract void drawChars(char data[], int offset, int length, int x, int y);",
"public int getNumberOfCharacters() {\n return numberOfCharacters;\n }",
"public char getChar(int index)\r\n/* 191: */ {\r\n/* 192:208 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 193:209 */ return super.getChar(index);\r\n/* 194: */ }",
"@Test\n\tpublic void test1(){\n\t\t\n\t\tString str = \"abc\";\n\t\tbyte[] vs = str.getBytes();\n\t\tchar[] ca = str.toCharArray();\n\t\tfor (byte b : vs) {\n\t\t\tSystem.out.println(b);\n\t\t}\n\t\tfor (char c : ca) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\tSystem.out.println(Arrays.toString(ca));\n\t\t\n\t}",
"public static int getAtChar(){\r\n\t\treturn atChar;\r\n\t}",
"int size() {\n return _chars.length;\n }",
"public Character charRep() {\n return this.typeChar;\n }",
"public String getCharacterName() {\n return mCharacterName;\n }",
"public SpecialChar insertSpecialChar() {\n SpecialChar specialChar = new SpecialChar();\n specialChar.setId(4491);\n specialChar.setSpecialCharA(\"! ' , . / : ; ? ^ _ ` | \"\n + \" ̄ 、 。 · ‥ … ¨ 〃 ― ∥ \ ∼ ´ ~ ˇ \" + \"˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː\");\n specialChar.setSpecialCharB(\"" ( ) [ ] { } ‘ ’ “ ” \"\n + \" 〔 〕 〈 〉 《 》 「 」 『 』\" + \" 【 】\");\n specialChar.setSpecialCharC(\"+ - < = > ± × ÷ ≠ ≤ ≥ ∞ ∴\"\n + \" ♂ ♀ ∠ ⊥ ⌒ ∂ ∇ ≡ ≒ ≪ ≫ √ ∽ ∝ \"\n + \"∵ ∫ ∬ ∈ ∋ ⊆ ⊇ ⊂ ⊃ ∪ ∩ ∧ ∨ ¬ ⇒ \" + \"⇔ ∀ ∃ ∮ ∑ ∏\");\n specialChar\n .setSpecialCharD(\"$ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ \"\n + \"€ ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ \"\n + \"㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ \"\n + \"㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿ ㎐ ㎑ ㎒ ㎓ ㎔ Ω ㏀ ㏁ ㎊ ㎋ ㎌ ㏖ ㏅ ㎭ ㎮ ㎯ ㏛ ㎩ ㎪ ㎫ ㎬ ㏝ ㏐ ㏓ ㏃ ㏉ ㏜ ㏆\");\n specialChar.setSpecialCharE(\"# & * @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲\"\n + \" ▽ ▼ → ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐\"\n + \" ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † \"\n + \"‡ ↕ ↗ ↙ ↖ ↘♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º\");\n\n session.save(specialChar);\n\n return specialChar;\n }"
] | [
"0.72486955",
"0.7010198",
"0.7000339",
"0.6928611",
"0.69250464",
"0.69208056",
"0.67597145",
"0.66777843",
"0.6663815",
"0.66487414",
"0.65761167",
"0.64902675",
"0.643141",
"0.64264816",
"0.6398474",
"0.636881",
"0.63557845",
"0.6353756",
"0.6337313",
"0.6307095",
"0.62959844",
"0.6292003",
"0.6287196",
"0.62854457",
"0.6284832",
"0.62828916",
"0.622776",
"0.6182744",
"0.6159365",
"0.6158013",
"0.61555886",
"0.6152218",
"0.60551256",
"0.6053706",
"0.6046366",
"0.6035698",
"0.6029273",
"0.6020184",
"0.6016059",
"0.5996765",
"0.5993103",
"0.59921986",
"0.5991308",
"0.59654355",
"0.596085",
"0.5952864",
"0.5947074",
"0.5924216",
"0.59139353",
"0.59084785",
"0.59078884",
"0.58896655",
"0.5885045",
"0.5880016",
"0.58790916",
"0.58712316",
"0.5859284",
"0.58535445",
"0.584671",
"0.58453447",
"0.5836476",
"0.58199984",
"0.58193296",
"0.5814633",
"0.5813774",
"0.5805697",
"0.578782",
"0.5782411",
"0.5774237",
"0.57661915",
"0.5762753",
"0.5761061",
"0.575474",
"0.5748257",
"0.5740467",
"0.57306194",
"0.5724253",
"0.5722914",
"0.57059526",
"0.56978244",
"0.5684813",
"0.56712973",
"0.5661433",
"0.5660594",
"0.56576186",
"0.5651664",
"0.5649136",
"0.56448686",
"0.56372654",
"0.5634575",
"0.56337506",
"0.5633409",
"0.56295496",
"0.5624509",
"0.56196326",
"0.56191593",
"0.5618764",
"0.5606781",
"0.5605696",
"0.56031615"
] | 0.6593163 | 10 |
Set whether this file is required by the local peer | public void setRequired(boolean r)
{
requiring = r;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRequire(boolean require) {\n this.require = require;\n }",
"final void setProtection(boolean required)\r\n {\r\n requires_PRO = required;\r\n }",
"public boolean isRequire() {\n return require;\n }",
"protected void setIsRequiredFiles(boolean iRequiredFilesResult) {\r\n\t\tmIsRequiredFiles = iRequiredFilesResult;\r\n\t}",
"void setRequired(boolean required);",
"public void setRequired (boolean required) {\n this.required = required;\n }",
"public void setRequired(boolean value) {\r\n this.required = value;\r\n }",
"public final native void setRequired(boolean required) /*-{\n\t\tthis.required = required;\n\t}-*/;",
"public boolean isSetMFilePath() {\n return this.mFilePath != null;\n }",
"public void setRequired(boolean required) {\r\n this.required = required;\r\n }",
"public void setRequired(boolean required) {\r\n\t\tthis.required = required;\r\n\t}",
"public void setExternallyManaged(java.lang.Boolean value);",
"public void setRequired(boolean required);",
"final void setEncryption(boolean required)\r\n {\r\n requires_ENC = required;\r\n }",
"public boolean getIsRequiredFiles() {\r\n\t\treturn mIsRequiredFiles;\r\n\t}",
"public void setRequired(boolean required)\n {\n this.isRequired = required;\n }",
"void xsetRequired(org.apache.xmlbeans.XmlBoolean required);",
"public void setUseFiles(boolean yesno);",
"private boolean checkLocalFile() throws IOException {\n\t\tPath localfile = Paths.get(userdir, filename);\n\t\tif (Files.exists(localfile, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\tthis.downloadStatus = DownloadEnum.ERROR;\n\t\t\tthis.message = \"same name file on download directory, download has stopped\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlocalfiletmp = Paths.get(localfile.toAbsolutePath().toString() + \".tmp\");\n\t\t\tif (Files.exists(localfiletmp, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tlocalFileSize = localfiletmp.toFile().length();\n\t\t\t} else {\n\t\t\t\tFiles.createFile(localfiletmp);\n\t\t\t}\n\t\t\tcfgpath = Paths.get(localfile.toAbsolutePath().toString() + \".pcd.dl.cfg\");// local cache of download file\n\t\t\tif (!Files.exists(cfgpath, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tFiles.createFile(cfgpath);\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(cfgpath.toFile());\n\t\t\tfw.write(url);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\treturn true;\n\t\t}\n\t}",
"public void setRequired(boolean required) {\n this.required = required;\n }",
"public void setLocal(boolean isLocal);",
"final public boolean requiresProtection()\r\n {\r\n return requires_PRO;\r\n }",
"void setBinaryFileAttribute(boolean flag);",
"public void setMandatory(boolean mandatory)\n {\n this.mandatory = mandatory;\n performFlags();\n }",
"public boolean needSetup() {\n\t\treturn needsSetup;\n\t}",
"final void setCHV(boolean required)\r\n {\r\n requires_CHV = required;\r\n }",
"public void setCheckFileExists(final boolean b) {\n \tfCheckFileExists = b;\n }",
"public boolean isSetFile() {\n return this.File != null;\n }",
"public boolean isSetFilePath() {\n return this.filePath != null;\n }",
"public boolean isSetFilePath() {\n return this.filePath != null;\n }",
"public boolean isSetFilePath() {\n return this.filePath != null;\n }",
"public boolean isSetFilePath() {\n return this.filePath != null;\n }",
"@Override\n\tpublic boolean isInit() {\n\t\tFile path = new File(initService.defaultAddr);\n\t\tif(!path.exists()) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tFile set = new File(initService.defaultAddr+initFile);\n\t\tif(!set.exists()) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean checkSetup(){\n return checkSetup(folderName);\n }",
"public boolean isSetDependency_path() {\n return this.dependency_path != null;\n }",
"public static void setRequired(boolean required)\n\t{\n\t\tAngularPageConfigurator.required = required;\n\t\tif (required)\n\t\t{\n\t\t\t\n\t\t}\n\t}",
"void addConfigFile(final String filename, final boolean required);",
"public void setMediaEncryptionMandatory(boolean m);",
"public boolean needsExternalStorage() {\n return FileUtil.isExternalStorageUri(this.form, this.resolvedPath);\n }",
"public boolean isExternal()\n {\n return false;\n }",
"protected void setHMetisInFile(final String str) {\n\t\tthis.hMetisInFile = str;\n\t}",
"public final void setIsRequired(java.lang.Boolean isrequired)\r\n\t{\r\n\t\tsetIsRequired(getContext(), isrequired);\r\n\t}",
"public boolean isSetFilePlac()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILEPLAC$12) != 0;\n }\n }",
"public boolean isSetUfsPath() {\n return this.ufsPath != null;\n }",
"public boolean isSetUfsPath() {\n return this.ufsPath != null;\n }",
"public boolean isSetUfsPath() {\n return this.ufsPath != null;\n }",
"public void setCriticalPath(){\n this.criticalPath = true;\n }",
"public boolean hasSourceFile() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public void setSetuped(boolean isSetupped){\r\n\t\tinitialSetuped = isSetupped;\r\n\t}",
"private void allowWalletFileAccess() {\n if (Constants.TEST) {\n Io.chmod(walletFile, 0777);\n }\n\n }",
"public void setDistributable(boolean distributable);",
"public boolean isSetFileByteBuffer() {\n return this.fileByteBuffer != null;\n }",
"public void setLocalPath(@NotNull FilePath localPath) { this.myLocalPath = localPath; }",
"private void setFile() {\n\t}",
"public void setActive(boolean b)\r\n\t //@ requires File(?fid, _, ?info);\r\n\t //@ ensures File(fid, b, info);\r\n\t{\r\n\t\t////@ open File(fid, _, info); // auto\r\n\t\t////@ open MasterFile(fid, ?d0, _, ?d1, ?info2); // auto\r\n\t\t////@ open this.DedicatedFile(DedicatedFile.class)(fid, null, _, d1, ?info3); // auto\r\n\t\t////@ open this.File(File.class)(fid, _, ?info4); // auto\r\n\t\tactive = b;\r\n\t\t////@ close this.File(File.class)(fid, b, info4); // auto\r\n\t\t////@ close this.DedicatedFile(DedicatedFile.class)(fid, null, b, d1, info3); // auto\r\n\t\t////@ close MasterFile(fid, null, b, d1, info2); // auto\r\n\t\t////@ close File(fid, b, info); // auto\r\n\t}",
"@Accessor(qualifier = \"singleFile\", type = Accessor.Type.SETTER)\n\tpublic void setSingleFile(final Boolean value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(SINGLEFILE, value);\n\t}",
"void setIncludeExecutable(boolean executable);",
"public boolean hasSourceFile() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean isSetRequires()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(REQUIRES$28) != null;\r\n }\r\n }",
"public final boolean needsPermission() {\n return FileUtil.needsPermission(this.form, this.resolvedPath);\n }",
"boolean hasDownloadRequest();",
"public void setRequires(java.lang.String requires)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REQUIRES$28);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REQUIRES$28);\r\n }\r\n target.setStringValue(requires);\r\n }\r\n }",
"public final void setIsRequired(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean isrequired)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.IsRequired.toString(), isrequired);\r\n\t}",
"public void setRelative(boolean r) {\n isRel = r;\n }",
"public void saveRequired() {\n\t\tplugin.getFileManager().saveGroupsIsRequired();\n\t}",
"public void setInstallTracked() {\n }",
"public void setMandatory(boolean value) {\n this.mandatory = value;\n }",
"public boolean isLocalFile(String path) {\n System.out.println(path);\n if (path.contains(\"http://\") || path.contains(\"https://\")) {\n System.out.println(\"no es local\");\n return false;\n }\n System.out.println(\"es local\");\n return true;\n }",
"void set(File local,String name,UserFileType ft)\n{\n user_file = local;\n if (user_file != null && (name == null || name.length() == 0)) \n name = user_file.getName();\n if (name.startsWith(\"/s6/\")) {\n name = name.substring(4);\n }\n else if (name.startsWith(\"s:\")) {\n name = name.substring(2);\n }\n access_name = name;\n file_mode = ft;\n}",
"protected void setLoadedForThisRequest() {\r\n\t\tContextUtils.setRequestAttribute(getRequestLoadedMarker(), Boolean.TRUE);\r\n\t}",
"public void setRequiredParam(boolean requiredParam) {\n this.isRequiredParam = requiredParam;\n }",
"public void setPackage()\n {\n ensureLoaded();\n m_flags.setPackage();\n setModified(true);\n }",
"public boolean isRemoteFile() {\n\t\tif (this.serverFileInfo == null)\n\t\t\tthis.fetchInfo();\n\t\treturn this.serverFileInfo != null && this.serverFileInfo.exists();\n\t}",
"public void setProtection(boolean value);",
"public boolean isSetFileName() {\n return this.fileName != null;\n }",
"public boolean isSetFileName() {\n return this.fileName != null;\n }",
"public boolean isSetFileName() {\n return this.fileName != null;\n }",
"public PropertySpecBuilder<T> required(boolean required)\n {\n Preconditions.checkArgument(this.required == null, \"required flag already set\");\n this.required = required;\n\n return this;\n }",
"public boolean hasFileAttached()\n throws OculusException;",
"public boolean isLocalFile() {\n\t\ttry {\n\t\t\tFile localFile = getLocalFile();\n\t\t\treturn localFile != null && localFile.exists();\n\t\t} catch (CoreException e) {\n\t\t\tlogger.debug(\"Unable to determine if file is local\", e);\n\t\t}\n\t\treturn false;\n\t}",
"boolean isSetValueAttachment();",
"public boolean getUseFiles();",
"final void setAuthentication(boolean required)\r\n {\r\n requires_AUT = required;\r\n }",
"boolean hasReinitializeFile();",
"public void setExportLock(java.lang.Boolean value);",
"@Override\n public void setFileTransferEnable(int reason) throws RemoteException {\n Logger.v(TAG, \"setFileTransferEnable() reason = \" + reason);\n }",
"public void setFirstInstall(){\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putBoolean(SharedPrefContract.PREF_INSTALLED, true);\n editor.apply();\n }",
"protected void setIsFileNotSupport(boolean isFileNotSupport) {\n\t\tmIsTextFileNotSupport = isFileNotSupport;\n\t}",
"public boolean needsOption(Fw fw) {\n\t\treturn false;\n\t}",
"public void testSetLocalRessources() {\n\t\ttry {\n\t\t\tthis.part.setLocalRessources(null);\n\t\t\tfail(\"NullPointerException must be thrown\");\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t/* all clear */\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"wrong Exception\");\n\t\t}\n\n\t\ttry {\n\t\t\tDotplotFile file = new DotplotFile(\"./testfiles/fmatrix/test.txt\");\n\t\t\tCollection<DotplotFile> coll = new Vector<DotplotFile>();\n\t\t\tcoll.add(file);\n\t\t\tassertNotNull(this.part.getSourceList());\n\t\t\tassertEquals(0, this.part.getSourceList().size());\n\t\t\tthis.part.setLocalRessources(coll);\n\t\t\tISourceList list = this.part.getSourceList();\n\t\t\tassertEquals(1, list.size());\n\t\t\tassertTrue(list.contains(file));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tfail(\"no exception:\" + e.getClass().getName() + \":\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}",
"public boolean isSetup(){\n return isSetup;\n }",
"public void setIsFileLocked(boolean isFileLocked) {\n this.isFileLocked = isFileLocked;\n }",
"private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}",
"public boolean isSetDkFileConf() {\n return this.dkFileConf != null;\n }",
"public boolean isSetDkFileConf() {\n return this.dkFileConf != null;\n }",
"public boolean isSetDkFileConf() {\n return this.dkFileConf != null;\n }",
"public void setIsRequired(boolean value) {\n this.isRequired = value;\n }",
"public void assignAddingResource(final boolean val) {\n addingResource = val;\n }",
"private boolean isLocalRepository() {\n\r\n File file = new File(m_Path.toString() + \"/.magit/Remote\");\r\n return file.exists();\r\n }",
"public void setLocalFlag(String value) {\n setAttributeInternal(LOCALFLAG, value);\n }"
] | [
"0.6326432",
"0.59991574",
"0.5855923",
"0.5647252",
"0.5535395",
"0.54704535",
"0.54648054",
"0.5425391",
"0.5406279",
"0.538719",
"0.53706735",
"0.5352946",
"0.5313315",
"0.52862203",
"0.52808845",
"0.52767885",
"0.5262799",
"0.5261168",
"0.5249531",
"0.5245561",
"0.52189595",
"0.51612985",
"0.513811",
"0.5127179",
"0.5123843",
"0.51134473",
"0.51111877",
"0.5104587",
"0.5102982",
"0.5102982",
"0.5102982",
"0.5102982",
"0.50331247",
"0.5005022",
"0.4996664",
"0.49823114",
"0.4970847",
"0.49698186",
"0.49620765",
"0.49570197",
"0.4946837",
"0.49452046",
"0.49425006",
"0.49276638",
"0.49276638",
"0.49276638",
"0.49267435",
"0.49246082",
"0.4904617",
"0.49032524",
"0.4901927",
"0.48896146",
"0.48872268",
"0.4885385",
"0.48773944",
"0.48724762",
"0.48676607",
"0.48648095",
"0.4863488",
"0.48608512",
"0.4844257",
"0.48399353",
"0.48390386",
"0.48365197",
"0.4835413",
"0.48333186",
"0.48236609",
"0.48225713",
"0.48218986",
"0.48134747",
"0.4811377",
"0.48074782",
"0.4806079",
"0.48060706",
"0.48031884",
"0.48031884",
"0.48031884",
"0.47979718",
"0.4796976",
"0.47928813",
"0.47918355",
"0.47849613",
"0.47816017",
"0.4778931",
"0.47772887",
"0.47681263",
"0.4752148",
"0.47508043",
"0.47496724",
"0.4749514",
"0.47446474",
"0.47437683",
"0.47337812",
"0.47328207",
"0.47328207",
"0.47328207",
"0.47320408",
"0.47259697",
"0.47250438",
"0.4723478"
] | 0.59261185 | 2 |
Set this file as completely downloaded | public void setComplete()
{
existing.set(0, pieces.length);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }",
"@Override\r\n\tpublic void download() {\n\t\t\r\n\t}",
"public void downloadStarted();",
"public void download() {\n }",
"public void downloadCompleted(File f);",
"protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}",
"public void download() {\n \n try {\n \n downloading = true;\n \n input = link.openStream(); \n output = new FileOutputStream(localFile);\n \n while ((bytes = input.read()) != -1) { // as long as there are bytes they will be copied to the local machine // enquanto houver bytes eles serao copiados para maquina local\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}",
"void fileDownloaded(String path);",
"public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}",
"@Override\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype,\n long contentLength) {\n }",
"@Override\n public boolean isDownloadable() {\n return true;\n }",
"void downloadingFile(String path);",
"private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }",
"@Override\n protected void onPostExecute(String file_url) {\n Log.i(TAG,\"onPostExecute()\");\n download = null;\n // dismiss the dialog after the file was downloaded\n runOnUiThread(()->dismissDialog());\n }",
"public void onFileDownloadComplete(String filePath);",
"private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadSuccess(String localFilPath) {\n\t\t\t\t\t\t\t\t\t\tupdate.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\tprogressBar_downLoad.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\t\t\t\tFailOpera.Instace(mContext).openFile(localFilPath);\n\t\t\t\t\t\t\t\t\t}",
"public void onFileDownloadComplete(String filePath, Object object);",
"@Override\n public void whenDone() {\n getDocumentController().setFile(fileToSaveTo);\n getDocumentController().setHasChanged(false);\n getDocumentController().notifyChange();\n }",
"@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }",
"private void onDownloadComplete(String file_name, String downloadPath) {\n\n file_name_nv=file_name;\n getstartshow(file_name_nv);\n }",
"private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }",
"void onDownloadComplete(EzDownloadRequest downloadRequest);",
"@Test\n\tpublic void incompleteDownloadTest() {\n\t\tSystem.out.println(\"TestSFTPDownloader \"+ \"incompleteDownloadTest\");\n\n\t\tDMCache.updateCacheMap(\"sftp.buffer.size\", \"4096\");\n\t\tSFTPDownloader sftpDownloader = new SFTPDownloader();\n\t\tString downloadUrl = \"sftp://demo-user:demo-user@demo.wftpserver.com:2222/download/manual_en.pdf\";\n\t\tString location = TEST_SAVE_PATH + \"incompleteFile.pdf\";\n\n\t\ttry {\n\t\t\tsftpDownloader.initiateDownload(downloadUrl, location, 10, 10, 22);\n\t\t} catch (IOException e) {\n\t\t\tValidationServiceImpl validationServiceImpl = new ValidationServiceImpl();\n\t\t\tAssert.assertFalse(validationServiceImpl.validateUrl(location));\n\t\t}\n\t}",
"void sendFile() {\r\n\t\t// 특정 클라이언트에게 파일을 보냄\r\n\t}",
"public void download(URL link, File localFile) {\n\n try {\n downloading = true;\n \n input = link.openStream();\n output = new FileOutputStream(localFile);\n\n while ((bytes = input.read()) != -1) {\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public Builder clearDownloadResponse() {\n if (downloadResponseBuilder_ == null) {\n downloadResponse_ = null;\n onChanged();\n } else {\n downloadResponse_ = null;\n downloadResponseBuilder_ = null;\n }\n\n return this;\n }",
"public void setFinished(boolean fin) {\n finished = fin;\n }",
"@Override\n\t\tpublic void downloadCanceled() {\n\n\t\t}",
"public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimeType,\n long contentLength) {\n\n DownloadManager.Request request = new DownloadManager.Request(\n Uri.parse(url));\n request.setMimeType(mimeType);\n String cookies = CookieManager.getInstance().getCookie(url);\n request.addRequestHeader(\"cookie\", cookies);\n request.addRequestHeader(\"User-Agent\", userAgent);\n request.setDescription(\"Downloading File...\");\n request.setTitle(URLUtil.guessFileName(url, contentDisposition, mimeType));\n request.allowScanningByMediaScanner();\n request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\n request.setDestinationInExternalPublicDir(\n \"/MyUniversity\", URLUtil.guessFileName(\n url, contentDisposition, mimeType));\n DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);\n dm.enqueue(request);\n Toast.makeText(getApplicationContext(), \"Downloading File\", Toast.LENGTH_LONG).show();\n\n\n }",
"public void download(HttpServletResponse response) throws IOException {\n\t\tString f;\n\t\tif (this.filename != null) {\n\t\t\tFile file = new File(this.filepath);\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new IOException(\"file does not exit:\" + filename);\n\t\t\t} else {\n\t\t\t\tf = toUtf8String(filename);\n\t\t\t\tresponse.setContentType(\"application/x-msdownload\");\n\t\t\t\tresponse.setContentLength((int) file.length());\n\t\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;\"\n\t\t\t\t\t\t+ \" filename=\" + f);\n\t\t\t\twrite(response.getOutputStream());\n\t\t\t}\n\t\t}\n\t}",
"private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }",
"@Override\n\tpublic void downCompleted(String uri, long count, long rcount,\n\t\t\tboolean isdown, File file) {\n\t\tif (file != null&&file.length()>0) {\n\t\t\tMessage msg = handler.obtainMessage();\n\t\t\tmsg.what = appdownloadsuc;\n\t\t\tmsg.obj = file;\n\t\t\thandler.sendMessage(msg);\n\n\t\t}else{\n\t\t\thandler.sendEmptyMessage(appdownloadfail);\n\t\t}\n\t}",
"public synchronized void setComplete() {\n status = Status.COMPLETE;\n }",
"@Override\n\t\t\t\t\tpublic void isDownload(String fileString, int DOWN_OVER) {\n\t\t\t\t\t\tmHandler.sendEmptyMessage(DOWN_OVER);\n\t\t\t\t\t\tfileName = fileString;\n\t\t\t\t\t}",
"private void DownloadCompleted(ByteBuffer packet) throws RuntimeException, IOException{\n\t\t// (for download completion ack c->s) [header | file_id (4)]\n\t\t// no HEADER\n\t\t\n\t\t// parse the req\n\t\tif (packet.capacity() < 4)\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"file not correctly specified\");\n\t\tint file_id = packet.getInt(0);\n\t\tfor (ServerFile f : totalFiles().keySet()){\n\t\t\tif (f.id() == file_id){\n\t\t\t\tclient.addUpload(f);\n\t\t\t\t// construct response\n\t\t\t\tString send_name = f.name() + '\\0';\n\t\t\t\tbuf = Utility.addHeader(Constants.DOWNLOAD_ACK, send_name.length(), client.getId());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < send_name.length(); i++){\n\t\t\t\t\tbuf.put(Constants.HEADER_LEN + i, send_name.getBytes()[i]);\n\t\t\t\t}\n\t\t\t\tout.write(buf.array());\n\t\t\t\tout.flush();\n\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\": Correctly processed download ack for \" + file_id);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"file id does not exist\");\n\t}",
"@Override\r\n\tpublic void downloadHomework() {\n\t\t\r\n\t}",
"public void setCompleted() {\n this.completed = true;\n }",
"public void downloadFile(String fileURL, String saveDir)\n throws IOException {\n URL url = new URL(fileURL);\n HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n int responseCode = httpConn.getResponseCode();\n\n // always check HTTP response code first\n if (responseCode == HttpURLConnection.HTTP_OK) {\n String fileName = \"\";\n String disposition = httpConn.getHeaderField(\"Content-Disposition\");\n String contentType = httpConn.getContentType();\n int contentLength = httpConn.getContentLength();\n\n if (disposition != null) {\n // extracts file name from header field\n int index = disposition.indexOf(\"filename=\");\n if (index > 0) {\n fileName = disposition.substring(index + 10,\n disposition.length() - 1);\n }\n } else {\n // extracts file name from URL\n fileName = fileURL.substring(fileURL.lastIndexOf(\"/\") + 1,\n fileURL.length());\n }\n\n System.out.println(\"Content-Type = \" + contentType);\n System.out.println(\"Content-Disposition = \" + disposition);\n System.out.println(\"Content-Length = \" + contentLength);\n System.out.println(\"fileName = \" + fileName);\n\n // opens input stream from the HTTP connection\n InputStream inputStream = httpConn.getInputStream();\n String saveFilePath = saveDir + File.separator + fileName;\n\n // opens an output stream to save into file\n FileOutputStream outputStream = new FileOutputStream(saveFilePath);\n\n\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n int progress = 0;\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n progress += bytesRead;\n setChanged();\n notifyObservers((int) ((progress * 100) / contentLength));\n }\n\n outputStream.close();\n inputStream.close();\n\n System.out.println(\"File downloaded\");\n } else {\n System.out.println(\"No file to download. Server replied HTTP code: \" + responseCode);\n }\n httpConn.disconnect();\n }",
"@Override\n\tpublic void fileDownLoad(HttpServletResponse response, String file_name) {\n\t\t\n\t}",
"private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }",
"@Override\n public void clearLastResponse() {\n super.clearLastResponse();\n mFileLinesHaveStarted = false;\n }",
"@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}",
"public void setCompleted(){\r\n\t\tisCompleted = true;\r\n\t}",
"@Override\n public void fileDownLoad(HttpServletResponse response, String path) {\n }",
"private void setCurrentDownload(RqDownload dl)\n {\n download = dl;\n File f = attachRqChannel.responder.fetchFileById(dl.getId());\n try {\n fileSplitter = new FileSplitter(f, download);\n data = fileSplitter.getData();\n bbw.put(data.buildDatas());\n } catch (IOException e) {\n e.printStackTrace(System.err);\n }\n }",
"public void complete()\n {\n isComplete = true;\n }",
"private void onFinish() {\r\n\t\t//used for create end html tags\r\n\t\tendHtmlPage(fout);\r\n\r\n\t\t//used for write every thing in html file\r\n\t\tfout.flush();\r\n\t\tfout.close();\r\n\t\t\r\n\t}",
"public void setFinished(boolean fin) {\n\t\tfinished = fin;\n\t}",
"public void saveLink() {\n\t\t\t// check to see if the file exists locally\n\t\t\tString localFile = localUrl + \"/\" + filePath;\n\n\t\t\tboolean finished = false;\n\t\t\twhile (!finished) {\n\t\t\t\ttry {\n\n\t\t\t\t\tFile file = new File(localFile);\n\t\t\t\t\t// build remote path\n\t\t\t\t\tString finalRemoteUrl = remoteUrl;\n\t\t\t\t\tif (filePath.startsWith(\"/\")) {\n\t\t\t\t\t\tURL url = new URL(finalRemoteUrl);\n\t\t\t\t\t\tfinalRemoteUrl = url.getProtocol() + \"://\" + url.getHost();\n\t\t\t\t\t}\n\n\t\t\t\t\tString remoteFile = finalRemoteUrl + filePath;\n\t\t\t\t\tif (file.canRead() && !file.isDirectory()) {\n\t\t\t\t\t\tLong fileLength = file.length();\n\t\t\t\t\t\t// if it does, check to see if it is complete based on\n\t\t\t\t\t\t// length of file\n\t\t\t\t\t\tlogger.trace(\"file/dir already exists: {}\", localFile);\n\t\t\t\t\t\tURLConnection connection = buildConnection(remoteFile);\n\t\t\t\t\t\tMap<String, List<String>> map = connection.getHeaderFields();\n\t\t\t\t\t\tif (map.get(\"Content-Length\") == null) {\n\t\t\t\t\t\t\tlogger.debug(\"no header fields were returned when attempting to access: {}\", remoteFile);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLong remoteLength = Long.parseLong(map.get(\"Content-Length\").iterator().next());\n\n\t\t\t\t\t\t// if it is not complete, resume downloading\n\t\t\t\t\t\tif (remoteLength > fileLength || fileLength == 0) {\n\t\t\t\t\t\t\ttransferFromRemoteToLocal(remoteFile, localFile, fileLength, remoteLength);\n\t\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlogger.trace(\"file is already complete, moving on\");\n\t\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if it is does not exist, create the directory or file\n\t\t\t\t\t\tlogger.trace(\"file does not exist: {}\", localFile);\n\n\t\t\t\t\t\t// take care of the directory structure\n\t\t\t\t\t\tFiles.createParentDirs(new File(localFile));\n\n\t\t\t\t\t\t// save the file\n\t\t\t\t\t\tlogger.trace(\"preparing to write remote file {} to local file {}\", new Object[] { remoteFile,\n\t\t\t\t\t\t\t\tlocalFile });\n\n\t\t\t\t\t\ttransferFromRemoteToLocal(remoteFile, localFile);\n\t\t\t\t\t\tlogger.trace(\"file created: {}\", localFile);\n\t\t\t\t\t\tfinished = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// timeout took place. pause, then let the loop execute\n\t\t\t\t\t// again\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tlogger.error(\"exception while processing a link\", e);\n\t\t\t\t\tfinished = true;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlogger.error(\"exception while processing a link\", e);\n\t\t\t\t\tlogger.debug(\"will try again in {} milliseconds\", TIMEOUT_TIME);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(TIMEOUT_TIME);\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\tlogger.error(\"failed while trying to wait {} milliseconds\", TIMEOUT_TIME);\n\t\t\t\t\t}\n\t\t\t\t\tlogger.debug(\"just woke up, trying again\");\n\t\t\t\t\tfinished = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcounter.incrementAndGet();\n\t\t\tlogger.debug(\"successfully downloaded the file {} from {} to {} - {}\", new Object[] { filePath, remoteUrl,\n\t\t\t\t\tlocalUrl, completionMessage() });\n\n\t\t\tLinesToFileWriter lineWriter = new LinesToFileWriter(localUrl, COMPLETED_PATH_LIST, true);\n\t\t\t// write line to completed file list\n\t\t\tlineWriter.writeLine(filePath);\n\t\t\tlineWriter.close();\n\t\t}",
"private void btnDownloadActionPerformed(java.awt.event.ActionEvent evt) {\n path = JOptionPane.showInputDialog(\"Digite o local de destino do arquivo:\");\n System.out.println(\"Path\" + path);\n if (rbBpa.isSelected()) {\n site = \"ftp://arpoador.datasus.gov.br/siasus/BPA/\";\n } else {\n site = \"ftp://arpoador.datasus.gov.br/siasus/sia/\";\n }\n resposta = Download.terminou;\n System.out.println(\"Resposta \" + resposta);\n\n new Thread() {\n public void run() {\n progress.setValue(0);\n progress.setStringPainted(true);\n// Download.downloadArquivo(site, path);\n for (int i = 0; i < 101; i++) {\n progress.setValue(i);\n progress.setString(i + \"%\");\n try {\n Thread.sleep(100);\n } catch (InterruptedException err) {\n\n }\n if (i == 5) {\n lbMsg.setText(\"Baixando arquivo.\");\n }\n if (i > 5) {\n while (resposta != true) {\n Download.downloadArquivo(site, path);\n lbMsg.setText(\"Baixando arquivo....\");\n resposta = Download.terminou;\n }\n }\n if (i == 100) {\n lbMsg.setText(\"Arquivo baixado\");\n }\n }\n }\n }.start();\n\n }",
"public void download(String url,File targetFile)throws Exception{\n\t\tdownload(url, targetFile,60*10);\n\t}",
"@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }",
"public void setDone() {\n this.isDone = true;\n }",
"public void setDone() {\n this.isDone = true;\n }",
"public void setDone() {\n this.isDone = true;\n }",
"public void setAttachmentHeader(String filename)\n\t{\n\t\tsetHeader(\"Content-Disposition\", \"attachment\"\n\t\t\t\t+ ((!Strings.isEmpty(filename)) ? (\"; filename=\\\"\" + filename + \"\\\"\") : \"\"));\n\t}",
"private void setFile() {\n\t}",
"public synchronized void setFinished(boolean f){\n finished = f;\n }",
"public final synchronized void bfj() {\n C4990ab.m7416i(\"MicroMsg.MsgFileWorker_Base\", \"onDownloadStop\");\n if (this.ktU != null) {\n this.ktU.bff();\n this.ktU = null;\n }\n }",
"@Override \r\n public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, \r\n\t long contentLength) {\n \tString filename = SDHelper.getAppDataPath() + File.separator \r\n\t\t\t\t\t+ getFilename(url);\r\n \tFile file =new File(filename);\r\n \tif (file.exists()) {\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\tString ext = getExt(file);\r\n\t\t\t\tString mark = null;\r\n\t\t\t if (ext.equalsIgnoreCase(\"doc\")||ext.equalsIgnoreCase(\"docx\"))\r\n\t\t\t\t\tmark = \"application/msword\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"xls\")||ext.equalsIgnoreCase(\"xlsx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-excel\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"ppt\")||ext.equalsIgnoreCase(\"pptx\"))\r\n\t\t\t\t\tmark = \"application/vnd.ms-powerpoint\";\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"pdf\"))\r\n\t\t\t\t\tmark = \"application/pdf\";\r\n\t\t\t\t\r\n\t\t\t\telse if (ext.equalsIgnoreCase(\"apk\"))\r\n\t\t\t\t\tmark = \t\"application/vnd.android.package-archive\"; \r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), mark);\r\n\t\t\t\tmContext.startActivity(intent);\r\n\r\n \t}\r\n \telse \r\n \t new getFileAsync().execute(url);\r\n \t\r\n \t}",
"void downloadCompleted(String blobId);",
"private void setFinalNotification() {\n //finished downloading all files\n // update notification\n String note = getResources().getString(R.string.update_complete);\n mBuilder.setContentTitle(note)\n .setContentText(\"\")\n .setSmallIcon(R.drawable.ic_launcher_mp)\n .setTicker(note)\n .setProgress(0, 0, false);\n nm.notify(0, mBuilder.build());\n }",
"protected void downloadTo(VFSTransfer transfer,VFile targetLocalFile)\n throws VlException\n {\n // copy contents into local file:\n vrsContext.getTransferManager().doStreamCopy(transfer,this,targetLocalFile); \n }",
"@Override\n public void run() {\n downloadFile(Const.MONITOR_SERVER_ADDRESS, downFilePath);\n }",
"@Override\n public void run() {\n downloadInfo.state = STATE_DOWNLOADING;\n notifyStateChange(downloadInfo);\n\n //6.specific download, two kinds of education\n // re-download and resume downloads\n Request request;\n File file = new File(downloadInfo.path);\n if (!file.exists() || file.length() != downloadInfo.currentLength) {\n //file is not exists, or file size in downloadInfo saved inconsistent\n //the file is invalid\n file.delete();\n downloadInfo.currentLength = 0;\n\n //need to re-download\n String url = String.format(Url.APP_DOWNLOAD, downloadInfo.downloadUrl);\n request = new Request.Builder().url(url).build();\n } else {\n //need to resume download\n String url = String.format(Url.APP_BREAK_DOWNLOAD, downloadInfo.downloadUrl, downloadInfo.currentLength);\n request = new Request.Builder().url(url).build();\n }\n\n Response response = null;\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n response = okHttpClient.newCall(request).execute();\n is = response.body().byteStream();\n\n if (response != null && is != null) {\n fos = new FileOutputStream(file, true);\n\n byte[] buffer = new byte[1024 * 8];\n int len = -1;\n while ((len = is.read(buffer)) != -1 && downloadInfo.state == STATE_DOWNLOADING) {\n fos.write(buffer, 0, len);\n fos.flush();\n\n downloadInfo.currentLength = downloadInfo.currentLength + len;\n notifyProgressChange(downloadInfo);\n }\n } else {\n //the server return an error\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n } finally {\n try {\n fos.close();\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //handle the case did not come here,there are has three situation\n //1.download finish 2.download error 3.download pause\n if (file.length() == downloadInfo.currentLength && downloadInfo.state == STATE_DOWNLOADING) {\n //说明下载完成\n downloadInfo.state = STATE_FINISH;\n notifyStateChange(downloadInfo);\n } else if (downloadInfo.state == STATE_PAUSE) {\n notifyStateChange(downloadInfo);\n } else {\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n }\n\n //requires runnable is removed from the current from downloadTaskMap at the end of the task\n downloadTaskMap.remove(downloadInfo.id);\n }",
"public void setDownloadedEnabled(boolean downloadedEnabled) {\n\t\tthis.downloadedEnabled = downloadedEnabled;\n\t}",
"public void notifyCompletion( URL resource )\r\n {\r\n if( getAdapter().isDebugEnabled() )\r\n {\r\n getAdapter().debug( \"downloaded: \" + resource );\r\n }\r\n }",
"@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n progressBar.setVisibility(View.GONE);\n Toast.makeText(getContext(), \"Your file is saved in \" + localFile.toString(), Toast.LENGTH_LONG).show();\n }",
"public void onDownloadSuccess(String fileInfo);",
"public Builder clearCompleteFile() {\n if (completeFileBuilder_ == null) {\n completeFile_ = alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance();\n onChanged();\n } else {\n completeFileBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000020);\n return this;\n }",
"public void setComplete(Boolean complete){\n this.complete = complete;\n }",
"public void onDownloadComplete(boolean result){\n if(result) {\n barProgressDialog.setProgress(0);\n barProgressDialog.setTitle(\"Importazione\");\n barProgressDialog.setMessage(\"Sto Importando...\");\n\n AsyncImporter importer = new AsyncImporter(this);\n importer.execute();\n }\n else{\n barProgressDialog.dismiss();\n TextView finito = (TextView)findViewById(R.id.downloadend);\n finito.setText(\"Errore, controllare la connessione\");\n finito.setTextColor(Color.RED);\n finito.setVisibility(View.VISIBLE);\n findViewById(R.id.finito).setBackgroundResource(R.drawable.no);\n }\n\n }",
"@Override\n protected void onPostExecute(String file_url) {\n // dismiss the dialog after the file was downloaded\n //dismissDialog(progress_bar_type);\n dismissProgress();\n showToast(String.valueOf(\"Download File Success to \") + filename);\n if (filePath != null) {\n File file = new File( filePath );\n Intent intent = new Intent(Intent.ACTION_VIEW);\n Uri fileUri = FileProvider.getUriForFile(getContext(),\n \"com.insurance.easycover\",\n file);\n intent.setData(fileUri);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivity(intent);\n }\n }",
"public void download(HttpResponse hr, File file, HttpDownloadListener dl)\n\tthrows CanceledDownloadException, IOException {\n\t// Tell delegate about loading\n\tint length = hr.getContentLength();\n\tif (dl != null) dl.downloadProgress(0, length);\n\t\n\tif (Globals.TraceDownload) Debug.println(\"Doing download\");\n\t\n\t\n\tInputStream in = null;\n\tOutputStream out = null;\n\ttry {\n\t in = hr.getInputStream();\n\t out = new FileOutputStream(file);\n\t int read = 0;\n\t int totalRead = 0;\n\t byte[] buf = new byte[BUF_SIZE];\n\t while ((read = in.read(buf)) != -1) {\n\t\tout.write(buf, 0, read);\n\t\t// Notify delegate\n\t\ttotalRead += read;\n\t\tif (totalRead > length && length != 0) totalRead = length;\n\t\tif (dl != null) dl.downloadProgress(totalRead, length);\n\t }\n\t if (Globals.TraceDownload) {\n\t\tDebug.println(\"Wrote URL \" + hr.getRequest() + \" to file \" + file);\n\t }\n\t in.close(); in = null;\n\t out.close(); out = null;\n\t} catch(IOException ioe) {\n\t if (Globals.TraceDownload) {\n\t\tDebug.println(\"Got exception while downloading resource: \" + ioe);\n\t }\n\t // Close before calling delete - otherwise it fails\n\t if (in != null) { in.close(); in = null; }\n\t if (out != null) { out.close(); out = null; }\n\t if (file != null) file.delete();\n\t // Rethrow exception\n\t throw ioe;\n\t}\n\t\n\t// Inform delegate about loading has completed\n\tif (dl != null) dl.downloadProgress(length, length);\n }",
"@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n listener.onDownlaoded(finalFile);\n }",
"public static boolean downloadFile(String url, String destination) throws Exception {\n BufferedInputStream bi = null;\n BufferedOutputStream bo = null;\n File destfile;\n byte BUFFER[] = new byte[100];\n java.net.URL fileurl;\n URLConnection conn;\n fileurl = new java.net.URL(url);\n conn = fileurl.openConnection();\n long fullsize = conn.getContentLength();\n long onepercent = fullsize / 100;\n MessageFrame.setTotalDownloadSize(fullsize);\n bi = new BufferedInputStream(conn.getInputStream());\n destfile = new File(destination);\n if (!destfile.createNewFile()) {\n destfile.delete();\n destfile.createNewFile();\n }\n bo = new BufferedOutputStream(new FileOutputStream(destfile));\n int read = 0;\n int sum = 0;\n long i = 0;\n while ((read = bi.read(BUFFER)) != -1) {\n bo.write(BUFFER, 0, read);\n sum += read;\n i += read;\n if (i > onepercent) {\n i = 0;\n MessageFrame.setDownloadProgress(sum);\n }\n }\n bi.close();\n bo.close();\n MessageFrame.setDownloadProgress(fullsize);\n return true;\n }",
"public void setComplete(boolean complete) {\n }",
"@Override\r\n protected void onPreExecute() {\r\n super.onPreExecute();\r\n System.out.println(\"Starting download\");\r\n }",
"public ProgressBarsPage jqueryDownload() {\n\t\tstartDownload.click();\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[text()='Complete!']\")));\n\t\tcloseDownload.click();\n\t\treturn new ProgressBarsPage(driver);\n\t}",
"protected void setFinished(boolean finished) {\n this.finished = finished;\n }",
"private void download(String downloadKey, HttpServletResponse response, boolean compressed){\n File file = creatorService.getDownloadFile(downloadKey, compressed);\n if(file == null){\n throw new UnipooleException(ErrorCodes.FILE_MANIPULATION, \"File not found.\");\n }\n response.setContentType(mimeTypeMap.getContentType(file.getName().toLowerCase()));\n OutputStream os = null;\n try {\n response.setHeader(\"Content-Disposition\",\n \"attachment;filename=\\\"\" + file.getName() + \"\\\"\");\n os = response.getOutputStream();\n os.write(FileCopyUtils.copyToByteArray(file));\n os.flush();\n } catch (IOException e) {\n Logger.getLogger(CreatorController.class).error(\"Failed to write file for download.\", e);\n throw new UnipooleException(ErrorCodes.FILE_MANIPULATION, \"Failed to write file for download.\", e);\n } finally {\n try {\n if(os != null){\n os.close();\n }\n } catch (Exception e) {\n }\n }\n }",
"private void downloadFile(final FileMessage fm) {\n if (Platform.isFxApplicationThread()) {\n saveFile(fm);\n } else {\n Platform.runLater(() -> saveFile(fm));\n }\n }",
"public void setComplete(boolean complete) {\n\t\t\n\t}",
"@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }",
"public static File getDownloadingFile() {\n\t\treturn downloadingFile;\n\t}",
"public void onClick() {\n getRequestCycle().setRequestTarget(new IRequestTarget() {\n \n public void detach(RequestCycle requestCycle) {\n }\n \n public void respond(RequestCycle requestCycle) {\n WebResponse r = (WebResponse) requestCycle.getResponse();\n r.setAttachmentHeader(fileName);\n try {\n File file = AttachmentUtils.getFile(attachment, getJtrac().getJtracHome());\n InputStream is = new FileInputStream(file);\n try {\n Streams.copy(is, r.getOutputStream());\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }\n });\n }",
"public void setFinished(Boolean finished) {\n this.finished = finished;\n }",
"public void setCompleted(boolean flag) {\r\n completed = flag;\r\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n if (mDownloadedFileID == -1)\n return;\n Toast.makeText(getApplicationContext(), getString(R.string.atom_ui_tip_download_success), //To notify the Client that the file is being downloaded\n Toast.LENGTH_LONG).show();\n QunarWebActvity.this.finish();\n }",
"private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }",
"private void startMovieDownload() {\n String sortOrder = AppPrefs.getInstance(this).getLastSortOrder();\n if (null == sortOrder) {\n sortOrder = SortBy.getDefaultSortOrder();\n }\n downloadData(sortOrder);\n }",
"public boolean isDownloadedEnabled() {\n\t\treturn downloadedEnabled;\n\t}",
"@Override\n\tpublic void complete()\n\t{\n\t}",
"@Override\n\t\t\tpublic void download(URL url, Path destination,\n\t\t\t\tOptional<Proxy> proxy, String userAgent, TimeoutConfig timeoutConfig,\n\t\t\t\tDownloadCopyListener copyListener) throws IOException {\n\t\t\t}",
"@Override\n public void onVersionFileDownloadTimeout() {\n\n }",
"public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }",
"@Override\n\t\t\tpublic void onSuccess(ResponseInfo<File> arg0) {\n\t\t\t\tdialog2.dismiss();\n\t\t\t\tToast.makeText(context, \"文件下载成功!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\n\t\t\t\tintent.setDataAndType(\n\t\t\t\t\t\tUri.fromFile(new File(file_path+filename)),\n\t\t\t\t\t\t\"application/vnd.android.package-archive\");\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t((Activity) context).startActivityForResult(intent, 1);\n\t\t\t}",
"public void complete() {\n\t}",
"public String getDownloadUrl() {\n return downloadUrl;\n }"
] | [
"0.663982",
"0.66063714",
"0.6514478",
"0.64813244",
"0.64136887",
"0.63657814",
"0.6157229",
"0.61455005",
"0.6137592",
"0.6117474",
"0.60874236",
"0.6046855",
"0.60390383",
"0.6000477",
"0.5982596",
"0.59575653",
"0.5942508",
"0.58287257",
"0.57892627",
"0.5722222",
"0.5705343",
"0.5698645",
"0.56799984",
"0.56455344",
"0.5628137",
"0.56094015",
"0.5603768",
"0.5570893",
"0.5550571",
"0.5537159",
"0.5536223",
"0.5534089",
"0.55276436",
"0.5504813",
"0.54992163",
"0.5498071",
"0.5454674",
"0.5448866",
"0.54416084",
"0.54408944",
"0.5438126",
"0.54312754",
"0.54249376",
"0.5424729",
"0.54194707",
"0.54169154",
"0.5413165",
"0.5404842",
"0.53892124",
"0.5370129",
"0.53673995",
"0.53649",
"0.5351522",
"0.5349104",
"0.5339677",
"0.5339677",
"0.5339677",
"0.53353333",
"0.5331371",
"0.5323914",
"0.53177387",
"0.5310014",
"0.53039205",
"0.5301928",
"0.52982986",
"0.52882504",
"0.5271295",
"0.527036",
"0.52615285",
"0.5247693",
"0.52460456",
"0.52442795",
"0.5241789",
"0.5238202",
"0.52374595",
"0.52162784",
"0.52041686",
"0.52005166",
"0.5198209",
"0.5197011",
"0.5185056",
"0.51826537",
"0.51786214",
"0.51734054",
"0.5155646",
"0.51518553",
"0.5150223",
"0.5144002",
"0.51426524",
"0.5140422",
"0.51267684",
"0.51250035",
"0.5124536",
"0.51226705",
"0.5122491",
"0.5109482",
"0.5092486",
"0.50885046",
"0.5083943",
"0.507949",
"0.50746167"
] | 0.0 | -1 |
Check if the file is completely downloaded | public boolean isCompleted()
{
return pieces.length == existing.cardinality();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasDownloadResponse();",
"boolean hasDownloadRequest();",
"@java.lang.Override\n public boolean hasDownloadResponse() {\n return downloadResponse_ != null;\n }",
"public boolean isDownloading()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_DOWNLOADING;\r\n }",
"public synchronized boolean checkFileCompletion()\n/* */ {\n/* 49 */ int totalsize = 0;\n/* */ \n/* 51 */ for (FileSubContent subContent : this.downloadManager.getSUB_CONTENTS())\n/* */ {\n/* 53 */ if ((subContent != null) && (subContent.isIsDownloaded()) && (subContent.getContent().length == this.downloadManager.getSUB_SIZE()))\n/* */ {\n/* 55 */ totalsize++;\n/* */ }\n/* */ }\n/* */ \n/* 59 */ if (totalsize == this.downloadManager.getSUB_CONTENTS().size())\n/* */ {\n/* 61 */ System.out.println(\"FileDownloadChecker: got all of the subParts.\");\n/* 62 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 66 */ return false;\n/* */ }",
"public boolean hasDownloadResponse() {\n return downloadResponseBuilder_ != null || downloadResponse_ != null;\n }",
"boolean isInDownloadedArea();",
"boolean checkShouldDownloadFile(String target, String name) {\n return Boolean.TRUE.equals(DOWNLOAD_FILES.retrieve(target, name));\n }",
"boolean hasCompleteFile();",
"@java.lang.Override\n public boolean hasDownloadRequest() {\n return downloadRequest_ != null;\n }",
"@Override\n\tpublic boolean isInitialDownloadFinished(String company) {\n\t\tlog.debug(\"isInitialDownloadFinished; company: \" + company);\n\t\treturn ! initialDownloadsMap.containsKey(company);\n\t}",
"private boolean checkLocalFile() throws IOException {\n\t\tPath localfile = Paths.get(userdir, filename);\n\t\tif (Files.exists(localfile, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\tthis.downloadStatus = DownloadEnum.ERROR;\n\t\t\tthis.message = \"same name file on download directory, download has stopped\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlocalfiletmp = Paths.get(localfile.toAbsolutePath().toString() + \".tmp\");\n\t\t\tif (Files.exists(localfiletmp, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tlocalFileSize = localfiletmp.toFile().length();\n\t\t\t} else {\n\t\t\t\tFiles.createFile(localfiletmp);\n\t\t\t}\n\t\t\tcfgpath = Paths.get(localfile.toAbsolutePath().toString() + \".pcd.dl.cfg\");// local cache of download file\n\t\t\tif (!Files.exists(cfgpath, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tFiles.createFile(cfgpath);\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(cfgpath.toFile());\n\t\t\tfw.write(url);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\treturn true;\n\t\t}\n\t}",
"public static boolean downloadFile(String url, String destination) throws Exception {\n BufferedInputStream bi = null;\n BufferedOutputStream bo = null;\n File destfile;\n byte BUFFER[] = new byte[100];\n java.net.URL fileurl;\n URLConnection conn;\n fileurl = new java.net.URL(url);\n conn = fileurl.openConnection();\n long fullsize = conn.getContentLength();\n long onepercent = fullsize / 100;\n MessageFrame.setTotalDownloadSize(fullsize);\n bi = new BufferedInputStream(conn.getInputStream());\n destfile = new File(destination);\n if (!destfile.createNewFile()) {\n destfile.delete();\n destfile.createNewFile();\n }\n bo = new BufferedOutputStream(new FileOutputStream(destfile));\n int read = 0;\n int sum = 0;\n long i = 0;\n while ((read = bi.read(BUFFER)) != -1) {\n bo.write(BUFFER, 0, read);\n sum += read;\n i += read;\n if (i > onepercent) {\n i = 0;\n MessageFrame.setDownloadProgress(sum);\n }\n }\n bi.close();\n bo.close();\n MessageFrame.setDownloadProgress(fullsize);\n return true;\n }",
"boolean isAllInDownloadedArea();",
"public boolean fileIsReady()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(notFound)\n\t\t\t{\n\t\t\t\tisReady = false;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tisReady = reader.ready();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn isReady;\n\t}",
"public boolean hasDownloadRequest() {\n return downloadRequestBuilder_ != null || downloadRequest_ != null;\n }",
"private void downloadFinished() {\n downloadFinished = true;\n editor.getProgressBar().setVisible(false);\n editor.getProgressBarLabel().setVisible(false);\n editor.setOkEnabled(true);\n editor.getProgressBar().setValue(editor.getProgressBar().getMaximum());\n }",
"boolean hasRetrieveFileResponse();",
"public void downloadCompleted(File f);",
"public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }",
"public void downloadStarted();",
"public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }",
"public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"@Test\n\tpublic void incompleteDownloadTest() {\n\t\tSystem.out.println(\"TestSFTPDownloader \"+ \"incompleteDownloadTest\");\n\n\t\tDMCache.updateCacheMap(\"sftp.buffer.size\", \"4096\");\n\t\tSFTPDownloader sftpDownloader = new SFTPDownloader();\n\t\tString downloadUrl = \"sftp://demo-user:demo-user@demo.wftpserver.com:2222/download/manual_en.pdf\";\n\t\tString location = TEST_SAVE_PATH + \"incompleteFile.pdf\";\n\n\t\ttry {\n\t\t\tsftpDownloader.initiateDownload(downloadUrl, location, 10, 10, 22);\n\t\t} catch (IOException e) {\n\t\t\tValidationServiceImpl validationServiceImpl = new ValidationServiceImpl();\n\t\t\tAssert.assertFalse(validationServiceImpl.validateUrl(location));\n\t\t}\n\t}",
"public boolean hasCompleteFile() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean isDownloadedEnabled() {\n\t\treturn downloadedEnabled;\n\t}",
"private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }",
"public void download() {\n \n try {\n \n downloading = true;\n \n input = link.openStream(); \n output = new FileOutputStream(localFile);\n \n while ((bytes = input.read()) != -1) { // as long as there are bytes they will be copied to the local machine // enquanto houver bytes eles serao copiados para maquina local\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"boolean hasRetrieveFile();",
"@Override\n\t\t\t\t\tpublic void isDownload(String fileString, int DOWN_OVER) {\n\t\t\t\t\t\tmHandler.sendEmptyMessage(DOWN_OVER);\n\t\t\t\t\t\tfileName = fileString;\n\t\t\t\t\t}",
"public boolean downloadSingleFile(File fileToDownload) {\n\t\tboolean success = false;\n\t\tthis.showNamedMessage(\"WARNING: overwriting existing files!\"); \n\t\ttry {\n\t\t\t// create downloadHandler\n\t\t\tFile fileToWrite = new File(this.fileStorage.toString() +\n\t\t\t\t\tFile.separator + fileToDownload.getName());\n\t\t\tDatagramSocket downloadSocket = TransportLayer.openNewDatagramSocket();\n\t\t\t\n\t\t\tDownloadHelper downloadHelper = new DownloadHelper(this,\n\t\t\t\t\tdownloadSocket, this.serverAddress, -2, -1, fileToWrite, -1); \n\t\t\t// note: uploaderPort, fileSize and startID still to set\n\t\t\tthis.downloads.add(downloadHelper);\n\n\t\t\t// request file, provide downloaderHelper port\n\t\t\tString singleFileRequest = FileTransferProtocol.DOWNLOAD + \n\t\t\t\t\tFileTransferProtocol.DELIMITER + \n\t\t\t\t\tdownloadSocket.getLocalPort();\n\t\t\t\n\t\t\tbyte[] fileToDownloadBytes = util.Bytes.serialiseObjectToByteArray(fileToDownload); \n\t\t\t\n\t\t\tPacket responsePacket = this.requestServer(singleFileRequest, fileToDownloadBytes);\n\t\t\tString[] responseSplit = this.getArguments(responsePacket.getPayloadString());\n\t\t\t\n\t\t\tif (responseSplit[0].contentEquals(FileTransferProtocol.UPLOAD)) {\n\t\t\t\tdownloadHelper.setUploaderPort(Integer.parseInt(responseSplit[1])); \n\t\t\t\tthis.showNamedMessage(\"Uploader is on server port = \" \n\t\t\t\t\t\t+ Integer.parseInt(responseSplit[1])); \n\n\t\t\t\tlong totalFileSize = Long.parseLong(responseSplit[2]);\n\t\t\t\tthis.showNamedMessage(\"Uploader reports total file size = \" \n\t\t\t\t\t\t+ totalFileSize + \" bytes\");\n\t\t\t\t\n\t\t\t\tif (!this.checkFreeSpace(totalFileSize)) {\n\t\t\t\t\tthis.downloads.remove(downloadHelper);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tdownloadHelper.setTotalFileSize(totalFileSize);\n\t\t\t\t\n\t\t\t\tint startID = Integer.parseInt(responseSplit[3]);\n\t\t\t\tthis.showNamedMessage(\"Uploader starts at ID = \" + startID);\n\t\t\t\tdownloadHelper.setStartID(startID);\n\t\t\t\t\n\t\t\t\t// now everything is known: start download helper\n\t\t\t\tnew Thread(downloadHelper).start();\n\t\t\t\tsuccess = true;\n\t\t\t} else {\n\t\t\t\tthis.showNamedError(\"Invalid response to download request\");\n\t\t\t\tsuccess = false;\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tthis.showNamedError(\"Something went wrong: \" + e.getLocalizedMessage());\n\t\t} catch (EmptyResponseException e) {\n\t\t\tthis.showNamedError(\"Response from server was empty: \" + e.getLocalizedMessage());\n\t\t} catch (ServerFailureException e) {\n\t\t\tthis.showNamedError(\"SERVER FAILURE> \" + e.getLocalizedMessage());\n\t\t} catch (NotEnoughFreeSpaceException e) {\n\t\t\tthis.showNamedError(\"Not enough free space to store download:\"\n\t\t\t\t\t+ e.getLocalizedMessage()); \n\t\t}\n\n\t\treturn success;\n\t}",
"@Override()\n @SuppressWarnings(\"unused\")\n public boolean checkDownloaded(Link link, boolean downloaded) {\n if(userPaths != null) {\n if(link.isData()) return false; \n }\n \n try {\n return PageDownloadedTracker.searchUrl(link, true);\n } catch (Throwable e1) {\n LogService.getInstance().setThrowable(link.getSourceFullName(), e1);\n// worker.getExecutor().abortSession();\n return true;\n }\n }",
"@Override\n public boolean isDownloadable() {\n return true;\n }",
"private boolean isBusyNow() {\n if (tip.visibleProperty().getValue()){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"FTP Client\");\n alert.setHeaderText(\"Please wait current download finish!\");\n alert.initOwner(main.getWindow());\n alert.showAndWait();\n return true;\n }\n return false;\n }",
"public boolean isFinishedLoading(){ return FINISHED_LOADING; }",
"public boolean hasProgress();",
"public void onFileDownloadComplete(String filePath);",
"public boolean hasLoadedFile() {\n return isSuccessfulFileLoad;\n }",
"protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }",
"boolean hasProgress();",
"boolean hasProgress();",
"boolean isFileEnded();",
"public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }",
"public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }",
"private boolean DownloadFile(String s, String name) {\n boolean success;\n try {\n new File(data_path).mkdirs();\n URL url = new URL(s);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setConnectTimeout(5000);\n InputStream is = con.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n FileWriter fw = new FileWriter(data_path + name);\n PrintWriter pw = new PrintWriter(fw);\n String line;\n while ((line = br.readLine()) != null) {\n pw.println(line);\n }\n fw.close();\n br.close();\n success = true;\n } catch (MalformedURLException e) {\n return false;\n } catch (SocketTimeoutException e) {\n return false;\n } catch (IOException e) {\n return false;\n }\n return success;\n }",
"public abstract boolean isLoadCompleted();",
"protected boolean isFinished()\n {\n return timer.get() > driveDuration;\n }",
"@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }",
"private boolean responseAvailable() {\n return (responseBody != null) || (responseStream != null);\n }",
"boolean hasFinished();",
"public boolean isReady() throws java.io.IOException {\n\n return br.ready();\n }",
"public boolean complete() {\n return previousLink().isPresent();\n }",
"void fileDownloaded(String path);",
"boolean isComplete();",
"boolean isComplete();",
"boolean hasUploadResponse();",
"@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}",
"protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }",
"public boolean pathCompleted() {\n\t\treturn path == null || path.isEmpty();\n\t}",
"boolean isCompleted();",
"public boolean isComplete();",
"public boolean isFinished() {\n\t\tif (getRemaining() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isFinished() {\n\t\treturn (this.timeRemaining == 0);\n\t}",
"protected boolean isFinished() {\n\t\treturn isTimedOut();\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isFinished() {\n return complete;\n }",
"@java.lang.Override\n public boolean hasProgress() {\n return progress_ != null;\n }",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadSuccess(String localFilPath) {\n\t\t\t\t\t\t\t\t\t\tupdate.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\tprogressBar_downLoad.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\t\t\t\t\tFailOpera.Instace(mContext).openFile(localFilPath);\n\t\t\t\t\t\t\t\t\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean isReady() {\n\t\treturn !finish;\r\n\t}",
"boolean hasIsComplete();",
"boolean hasIsComplete();",
"protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"@Override\n\tpublic boolean isCompleted()\n\t{\n\t\treturn false;\n\t}",
"public boolean isFinished() {\n\t\t\n\t\treturn drivetrain.angleReachedTarget();\n\n\t}",
"@Override\r\n\tpublic boolean downloadFile() throws FileSystemUtilException {\r\n\t\tlogger.debug(\"Begin: \" + getClass().getName() + \":download()\");\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tgetFileData(0, \"\");\r\n\t\t\tdisconnect();\r\n\t\t\tif (stop) {\r\n\t\t\t\tthrow new FileSystemUtilException(\"999\");\r\n\t\t\t}\r\n\t\t\tFileSystemUtilsPlugin zu = new FileSystemUtilPluginFactory().getFileUtils(FileSystemTypeConstants.ZIP);\r\n\t\t\tif (zu.isZip(localFilePath)) {\r\n\r\n\t\t\t\t// unzip the localfilepath (a common method at import util level\r\n\t\t\t\t// can be used)\r\n\t\t\t\t// rename the extracted file to localfilepath+\".txt\r\n\t\t\t\t// delete the localfilepath\r\n\t\t\t}\r\n\t\t\tzu = null;\r\n\t\t\tlogger.debug(\"End: \" + getClass().getName() + \":download()\");\r\n\t\t\treturn true;\r\n\t\t} catch (FileSystemUtilException e) {\r\n\t\t\tdisconnect();\r\n\t\t\tlogger.info(new Date() + \":: Unable to download with parameters \" + \", username= \" + username\r\n\t\t\t\t\t+ \" , password = \" + password + \" , remotefilePath = \" + remoteFilePath + \", \" + \"localFilePath = \"\r\n\t\t\t\t\t+ localFilePath + \" , host= \" + hostname + \" and port =\" + port);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}",
"protected boolean isFinished() {\n return false;\n \n }",
"protected boolean isFinished() {\n\t\treturn Robot.oi.ds.isAutonomous();\n\t}",
"public boolean finished() throws IOException {\n // Default implementation returns true.\n return true;\n }",
"protected boolean isFinished() {\n return this.isTimedOut();\n }",
"protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n return finished;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }"
] | [
"0.78010386",
"0.74728966",
"0.72970265",
"0.725614",
"0.7145446",
"0.6988944",
"0.69379556",
"0.68511033",
"0.68446106",
"0.68372905",
"0.66914845",
"0.6689132",
"0.6633321",
"0.66144264",
"0.6603668",
"0.6571681",
"0.6557688",
"0.65161306",
"0.6490594",
"0.6446341",
"0.64404523",
"0.64395744",
"0.64340484",
"0.63763225",
"0.6373378",
"0.63312334",
"0.6263632",
"0.62603223",
"0.6247256",
"0.6196846",
"0.6140901",
"0.61269057",
"0.61215866",
"0.61144674",
"0.61142194",
"0.61123425",
"0.61077577",
"0.6090572",
"0.60840046",
"0.60606325",
"0.60606325",
"0.60419405",
"0.60251886",
"0.60236025",
"0.60170203",
"0.5995384",
"0.5977308",
"0.5977085",
"0.59619945",
"0.5952534",
"0.5949887",
"0.5948308",
"0.5941837",
"0.5928117",
"0.5928117",
"0.59102964",
"0.58758324",
"0.58755904",
"0.5864388",
"0.5864209",
"0.58532333",
"0.5852091",
"0.5841808",
"0.58407825",
"0.5834311",
"0.58296776",
"0.58296776",
"0.58296776",
"0.58296776",
"0.58296776",
"0.58296776",
"0.5828759",
"0.5828406",
"0.58247006",
"0.58183557",
"0.58183557",
"0.58183557",
"0.58074534",
"0.5804838",
"0.5804838",
"0.580265",
"0.58012754",
"0.58012754",
"0.58012754",
"0.58012754",
"0.58012754",
"0.58012754",
"0.57978755",
"0.57908416",
"0.5784513",
"0.5769313",
"0.57686764",
"0.57671624",
"0.5764297",
"0.5757589",
"0.57570523",
"0.5748118",
"0.5748118",
"0.5748118",
"0.5748118",
"0.5748118"
] | 0.0 | -1 |
Number of inexistent pieces | public int getRemainingPcs()
{
return pieces.length - existing.cardinality();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int numOfEmptyToReproduce();",
"public int getNSteps() {\n //if (mCovered == null) {\n //return 0;\n //}\n return mCovered.length;\n }",
"int countComponents() throws Exception;",
"int getMissingCount();",
"int getPartsCount();",
"int getPartsCount();",
"int getNumOfChunks();",
"private int totalCount(Piece side) {\n int sum = 0;\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < M; j++) {\n if (boardArr[i][j].abbrev().equals(sideAbbrev)) {\n sum++;\n }\n }\n }\n return sum;\n }",
"int getChunksLocationCount();",
"int getNumberOfStonesLeftToPlace();",
"int getChunksCount();",
"int getChunksCount();",
"public int countNotEmpty() {\n\t\tint count = 0;\n\t\tfor (HexagonPos hexagonPos : hexagonsPos) {\n\t\t\tif (!(hexagonPos.getHexagon() instanceof Empty))\n\t\t\t\t++count;\n\t\t}\n\t\treturn count;\n\t}",
"int getNoOfParties();",
"private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }",
"private static int countNonEmptyBoxes(short[][] puzzle) {\r\n\t\tint count = 0;\r\n\t\tfor(int y = 0; y < puzzle.length; y++){\r\n\t\t\tfor(int x = 0; x < puzzle[0].length;x++){\r\n\t\t\t\t\r\n\t\t\t\tif(puzzle[y][x]!=0)\r\n\t\t\t\t\tcount++;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"@Override\n\tpublic int numElements() {\n\t\treturn stencil.holes.length;\n\t}",
"void raiseNumberOfStonesOnBoard();",
"public int getPieceCount () {\n return m_PieceCount;\n\t}",
"int getNumberOfStonesOnBoard();",
"public int getNumOfExcessOccupiedRooms() {\n return (int) IntStream.rangeClosed(numOfRooms, internalList.size() - 1)\n .mapToObj(x -> internalList.get(x)).filter(Room::isOccupied).count();\n }",
"public int countEmptyCells() {\n int result = 0;\n for (int[] row : field)\n for (int cell : row)\n if (cell == EMPTY_MARK)\n result++;\n return result;\n }",
"int getBlockNumsCount();",
"int getBlockNumsCount();",
"int getBlockNumbersCount();",
"public int sizeOfWatershedsArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(WATERSHEDS$4);\r\n }\r\n }",
"public abstract int numOfFoodCellToReproduce();",
"public int GetNMissing();",
"int getFaintedPokemonCount();",
"public int getEmptySeats() {\n int num = 0;\n int rownum = seatPlan.length;\n int colnum = seatPlan[0].length;\n for (int row = 0; row < rownum; row++) {\n for (int col = 0; col < colnum; col++) {\n if (!checkSeatTaken(row, col)) {\n num++;\n }\n }\n }\n return num;\n }",
"int getBlockLocationsCount();",
"int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }",
"private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"boolean hasChunksCount();",
"private int getNumberOfFreeChairs() {\n return this.numberOfChairs - waitingStudents.size();\n }",
"public int incNummerOfMissing() {\n\t\t\treturn numberOfMissings++;\n\t\t}",
"int numberofhc()\n{\n\treturn hc.size();}",
"int getUnreachableCount();",
"int sizeOfRoadsideArray();",
"int getNumberOfInfantry();",
"public int getNumberOfOccupiedFields() {\n this.numberOfOccupiedFields = numberOfFieldsOccupiedByStoneColor(Color.WHITE) + numberOfFieldsOccupiedByStoneColor(Color.BLACK);\n return numberOfOccupiedFields;\n }",
"public void incPieceCount () {\n m_PieceCount++;\n\t}",
"private int countLakeTileOnBoard(LakeTile[][] board) {\n\t\tint count = 0;\n\t\tfor (int y = 0; y < board.length; y++) {\n\t\t\tfor (int x = 0; x < board[y].length; x++) {\n\t\t\t\tif (board[x][y] != null)\n\t\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"public int size() {\n return this.wellsets.size();\n }",
"public int getNumberOfComponents();",
"private int pieceCountAlong(Move move) {\n int dCol = move.getCol1() - move.getCol0();\n int dRow = move.getRow1() - move.getRow0();\n int c = move.getCol0();\n int r = move.getRow0();\n int i;\n for (Direction d : Direction.values()) {\n for (i = 1; i <= 7; i++) {\n if (dCol == d.dc * i && dRow == d.dr * i) {\n return pieceCountAlong(c, r, d);\n }\n }\n }\n throw new IllegalArgumentException(\"not a valid direction\");\n }",
"private int numberOfIllegals(final HashMap<String, Integer> association) {\n int count = 0;\n for (int i = 0; i < getInventory().getNumberOfCards(); ++i) {\n if (getInventory().getAssets()[i] >= association.get(\"Silk\")) {\n count++;\n }\n }\n return count;\n }",
"public int getNumExits() {\n return mySize.getNumExits();\n }",
"public int getNbPawns(Player player) {\n Pawn aPawn;\n int Size, nbPawn;\n Size = getSize();\n nbPawn = 0;\n\n for (int numLine = 0; numLine < Size; numLine++) {\n for (int numCol = 0; numCol < Size; numCol++) {\n\n aPawn = field[numLine][numCol];\n if (aPawn != null) {\n if (aPawn.getPlayer() == player) nbPawn++; //if the pawn belong to player\n }\n\n }\n }\n\n return nbPawn;\n }",
"public int count(){\n\tboolean val = false;\n\tint cont = 0;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\t\tcont++;\n\t\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t}\n\treturn cont;\n}",
"public int numberOfBoxesInPile()\n {\n if (aboveBox != null)\n {\n return 1 + aboveBox.numberOfBoxesInPile();\n }\n else\n {\n return 1;\n }\n }",
"public int size() {\r\n\t\treturn geheim.length;\r\n\t}",
"public int sizeOfReasonNotGivenArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(REASONNOTGIVEN$6);\n }\n }",
"@Override\n\tpublic int numCubies () {\n\t\treturn state_.length;\n\t}",
"private int numberOfFieldsOccupiedByStoneColor(Color colorOfStonesToCount) {\n int counterOccupiedByStoneColor = 0;\n for (int i = 0; i < fields.length; i++) {\n for (int j = 0; j < fields.length; j++) {\n if (this.fields[i][j].isOccupiedByStone()) {\n if (this.fields[i][j].getStone().getColor() == colorOfStonesToCount)\n counterOccupiedByStoneColor++;\n }\n }\n }\n return counterOccupiedByStoneColor;\n }",
"static int size_of_cpe(String passed){\n\t\treturn 3;\n\t}",
"public int getWhiteCountInVector() {\r\n\t\tint count = 0;\r\n\t\tObject tmp[] = piece.values().toArray();\r\n\t\tfor (int i = 0; i < tmp.length; i++) {\r\n\t\t\tChessPiece p = (ChessPiece)tmp[i];\r\n\t\t\tif (p.chessPlayer.equals(\"white\")) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"int sizeOfNoPassingZoneArray();",
"public int sizeOfCornerArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(CORNER$12);\r\n }\r\n }",
"public int tilesRemain() {\n return tiles.size();\n }",
"private boolean tryCounterExample(BDD reachableStates){\n\t\tBDD counterExample = reachableStates.andWith(buildEndGame());\n\t\t\n\t\treturn counterExample.satCount(this.dimension * this.dimension - 1) == 0 ? true : false;\n\t}",
"public static int sizeOf()\n {\n return 4;\n }",
"public int numOfEmptyRooms() {\n return (int) IntStream.rangeClosed(0, numOfRooms - 1)\n .mapToObj(x -> internalList.get(x)).filter(room -> !room.isOccupied()).count();\n }",
"private int calculateImagesNotFound() {\n int imagesNotFound = 0;\n for (int count : countImagesNotFound) {\n imagesNotFound += count;\n }\n\n return imagesNotFound;\n }",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int getSnInfoCount();",
"public void CountWhiteDisks(){\n int counter =0;\n for (int i=0; i<8; i++){\n for (int j=0; j<8; j++){\n if (gameboard[i][j]==W){\n counter++;\n }\n }\n }\n whitedisks = counter;\n }",
"public void getRemainingStones() {\n int CountP1 = 0;\n int CountP2 = 0;\n for (int i = 0; i < P1_STORE_PIT; i++) {\n CountP1 += board.getPit(i).getNumberOfStones();\n board.getPit(P1_STORE_PIT).addStones(CountP1);\n }\n for (int i = P1_STORE_PIT + 1; i < P2_STORE_PIT; i++) {\n CountP2 += board.getPit(i).getNumberOfStones();\n board.getPit(P2_STORE_PIT).addStones(CountP2);\n }\n }",
"int getNumSegments();",
"public int isFull(){\n\t\tfor(i = 0; i < blocksPerSet; i++){\n\t\t\tif(blocks[i].getValid() == false)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}",
"int getCellsCount();",
"public int howManyPieces() {\n int totalPieces = 0;\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n // add the quantity of the item to the sum\n totalPieces += this._stock[i].getQuantity();\n }\n // and return the total of quantities\n return totalPieces;\n }",
"public int countEmptyCellInOriginalSudoku()\n\t{\n\t\treturn ((BoardIndividual)getBest()).countEmptyCellInOriginalSudoku();\n\t}",
"private static int getNumLiveUnits(ArrayList<Unit> party){\n\t\tint count=0;\n\t\tfor(Unit u:party){\n\t\t\tif(!u.getPokemon().isFainted())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}",
"public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}",
"public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }",
"static int size_of_cpi(String passed){\n\t\treturn 2;\n\t}",
"public int size() {\r\n\t\treturn seedCards.size();\r\n\t}",
"public int getNumOfPlayerPieces() {\n return playerPiecePositions.length;\n }",
"public void countCollisions() {\n int col2 = 0;\n int col3 = 0;\n int col4 = 0;\n int col5OrMore = 0;\n \n for (int x = 0; x < buckets.length; x++) {\n SList chain = (SList) buckets[x];\n if (chain.length() == 2) {\n col2++;\n }\n if (chain.length() == 3) {\n col3++;\n }\n if (chain.length() == 4) {\n col4++;\n }\n if (chain.length() >= 5) {\n col5OrMore++;\n }\n }\n System.out.println(\"=========HASHTABLE================\");\n System.out.println(\"# of entries: \" + size);\n System.out.println(\"Number of single collisions: \"+col2);\n System.out.println(\"Number of double collisions: \"+col3);\n System.out.println(\"Number of triple collisions: \"+col4);\n System.out.println(\"Number of 5 or more collisions: \"+col5OrMore);\n }",
"public void countAdjacentMines()\n {\n adjacentMines = 0;\n for (GameSquare square : getAdjacentSquares())\n {\n if (square.mine)\n {\n adjacentMines++;\n }\n }\n }",
"public static int size() {\n\t\treturn anisLookup.size();\n\t}",
"private static int numLines() {\n\t\tif(subway != null)\n\t\t\treturn subway[0].length;\n\t\treturn 0;\n\t}",
"public int numberOfOccorrence();",
"public static int size_count() {\n return (16 / 8);\n }",
"static int size_of_cm(String passed){\n\t\treturn 3;\n\t}",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"public int getElfCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int size() {\n\treturn slices*rows*columns;\n}",
"public int size() {\n return basePileup.size();\n }",
"@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }",
"public abstract int numOfSameTypeNeighbourToReproduce();",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }",
"public int getNumNotHit()\n {\n return shipCoordinates.size() - hitCoordinates.size();\n }",
"@Override\n public int getRemainingMines() {\n int numPlacedFlags = cells.stream()\n .mapToInt(b -> (int) b.stream().filter(c -> c.getFlagState() == 1).count()).sum();\n return numMines - numPlacedFlags;\n }",
"int getNumberOfFold();",
"@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}",
"private int size() {\n return n;\n }"
] | [
"0.7216369",
"0.7187086",
"0.7087787",
"0.6941261",
"0.6930753",
"0.6930753",
"0.672327",
"0.66560614",
"0.66439795",
"0.6615299",
"0.66070384",
"0.66070384",
"0.65964335",
"0.6571029",
"0.65578926",
"0.651858",
"0.6497223",
"0.64858013",
"0.6452079",
"0.6440166",
"0.6416663",
"0.64100707",
"0.64096016",
"0.64096016",
"0.6401027",
"0.6381708",
"0.6354459",
"0.63519573",
"0.6351567",
"0.6311922",
"0.6301932",
"0.62964416",
"0.6285328",
"0.6274955",
"0.6256196",
"0.62504995",
"0.62487507",
"0.6245659",
"0.62376475",
"0.6232752",
"0.62315965",
"0.6231575",
"0.6218191",
"0.62144446",
"0.6212138",
"0.6210889",
"0.6208605",
"0.6206698",
"0.62062407",
"0.6203058",
"0.62030137",
"0.61938673",
"0.6183023",
"0.61781126",
"0.61734736",
"0.6165374",
"0.6162451",
"0.6161717",
"0.6150017",
"0.61349595",
"0.61175",
"0.61149985",
"0.61080325",
"0.6107321",
"0.6097707",
"0.60954046",
"0.60954046",
"0.60954046",
"0.60938925",
"0.60938513",
"0.60882944",
"0.60857296",
"0.6082458",
"0.6080401",
"0.6077863",
"0.6074107",
"0.60735404",
"0.606923",
"0.60685873",
"0.60685545",
"0.6060465",
"0.60564536",
"0.6050009",
"0.60290635",
"0.60194975",
"0.60121536",
"0.6011562",
"0.6011385",
"0.6010968",
"0.60084367",
"0.60053205",
"0.60026115",
"0.6000483",
"0.60000414",
"0.5988333",
"0.5984025",
"0.5983901",
"0.5981395",
"0.5978049",
"0.59689784"
] | 0.6788682 | 6 |
Number of existing pieces | public int getDownloadedPcs()
{
return existing.cardinality();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPartsCount();",
"int getPartsCount();",
"int getChunksCount();",
"int getChunksCount();",
"int getNumOfChunks();",
"public void incPieceCount () {\n m_PieceCount++;\n\t}",
"int getChunksLocationCount();",
"public int getPieceCount () {\n return m_PieceCount;\n\t}",
"public int getRemainingPcs()\n\t{\n\t\treturn pieces.length - existing.cardinality();\n\t}",
"public abstract int numOfEmptyToReproduce();",
"int countComponents() throws Exception;",
"public int getNumberOfComponents();",
"public int size(){\n\t\treturn howMany; \n\t}",
"public abstract int numOfFoodCellToReproduce();",
"public int getNSteps() {\n //if (mCovered == null) {\n //return 0;\n //}\n return mCovered.length;\n }",
"public static int sizeOf()\n {\n return 4;\n }",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"public int size() {\r\n\t\treturn seedCards.size();\r\n\t}",
"private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }",
"private int totalCount(Piece side) {\n int sum = 0;\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < M; j++) {\n if (boardArr[i][j].abbrev().equals(sideAbbrev)) {\n sum++;\n }\n }\n }\n return sum;\n }",
"int getNumberOfStonesOnBoard();",
"int getBlockNumbersCount();",
"int getNoOfParties();",
"private int size() {\n return n;\n }",
"private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }",
"@java.lang.Override\n public int getPartsCount() {\n return parts_.size();\n }",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int getSnInfoCount();",
"public int size (){\n return N;\n }",
"public int howManyPieces() {\n int totalPieces = 0;\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n // add the quantity of the item to the sum\n totalPieces += this._stock[i].getQuantity();\n }\n // and return the total of quantities\n return totalPieces;\n }",
"public int size(){\n\t\t\r\n\t\treturn N;\r\n\t}",
"public int size() {\n return basePileup.size();\n }",
"int getNumberOfStonesLeftToPlace();",
"int count() {\n return index.capacity() / 24;\n }",
"@Override\n\tpublic int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}",
"int getBlockNumsCount();",
"int getBlockNumsCount();",
"public int size(){\r\n\t\treturn N;\r\n\t}",
"void raiseNumberOfStonesOnBoard();",
"public int size()\n\t\t{\n\t\treturn N;\n\t\t}",
"int getContentsCount();",
"public int size() {\r\n\t\treturn n;\r\n\t\t\r\n\t}",
"public int size() { \r\n \treturn n; \r\n }",
"public int size() {\n\treturn slices*rows*columns;\n}",
"public int size() {\r\n return N;\r\n }",
"public int size()\r\n { return N; }",
"public int getPartsCount() {\n if (partsBuilder_ == null) {\n return parts_.size();\n } else {\n return partsBuilder_.getCount();\n }\n }",
"public int numberOfBoxesInPile()\n {\n if (aboveBox != null)\n {\n return 1 + aboveBox.numberOfBoxesInPile();\n }\n else\n {\n return 1;\n }\n }",
"public static int size_count() {\n return (16 / 8);\n }",
"public int size()\n {\n return N;\n }",
"public int count() {\n\t\treturn sizeC;\n\t}",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return _N;\n\n }",
"int getBlockLocationsCount();",
"public int getNumOfPlayerPieces() {\n return playerPiecePositions.length;\n }",
"public int size() { return count; }",
"public int numberOfEntries();",
"public int size() {\n return N;\n\n }",
"public int getSize() {\n return pokerList.size();\n }",
"public int sizeOfWatershedsArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(WATERSHEDS$4);\r\n }\r\n }",
"int getNumberOfFold();",
"int getPickupsCount();",
"public int size(){\n\t\treturn n;\n\t}",
"public int size(){\n\t\treturn n;\n\t}",
"@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}",
"public void getRemainingStones() {\n int CountP1 = 0;\n int CountP2 = 0;\n for (int i = 0; i < P1_STORE_PIT; i++) {\n CountP1 += board.getPit(i).getNumberOfStones();\n board.getPit(P1_STORE_PIT).addStones(CountP1);\n }\n for (int i = P1_STORE_PIT + 1; i < P2_STORE_PIT; i++) {\n CountP2 += board.getPit(i).getNumberOfStones();\n board.getPit(P2_STORE_PIT).addStones(CountP2);\n }\n }",
"public int sizeOf();",
"public abstract int getComponentCount();",
"@Override\n\tpublic int numElements() {\n\t\treturn stencil.holes.length;\n\t}",
"@Override\r\n\tpublic int getPegCount() {\r\n\t\tint shipSize = 3;\r\n\t\treturn shipSize;\r\n\t}",
"int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }",
"public int size() {\n return this.wellsets.size();\n }",
"static int size_of_cpe(String passed){\n\t\treturn 3;\n\t}",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public int getNumberOfOccupiedFields() {\n this.numberOfOccupiedFields = numberOfFieldsOccupiedByStoneColor(Color.WHITE) + numberOfFieldsOccupiedByStoneColor(Color.BLACK);\n return numberOfOccupiedFields;\n }",
"@Override\n\tpublic Integer part1() {\n\t\tinit(getLines());\n\t\tdistribute(stars, constellations);\n\t\treturn constellations.size();\n\t}",
"public int getNumberOfEntries();",
"public int size() {\n\t return N;\n\t }",
"public int size()\r\n {\r\n return n;\r\n }",
"static int size_of_cm(String passed){\n\t\treturn 3;\n\t}",
"int numberofhc()\n{\n\treturn hc.size();}",
"public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}",
"public int size(){return n;}",
"public int getNbPawns(Player player) {\n Pawn aPawn;\n int Size, nbPawn;\n Size = getSize();\n nbPawn = 0;\n\n for (int numLine = 0; numLine < Size; numLine++) {\n for (int numCol = 0; numCol < Size; numCol++) {\n\n aPawn = field[numLine][numCol];\n if (aPawn != null) {\n if (aPawn.getPlayer() == player) nbPawn++; //if the pawn belong to player\n }\n\n }\n }\n\n return nbPawn;\n }",
"public int size() {\n return n;\n }",
"public int size() {\n return n;\n }",
"public int size() {\n return n;\n }",
"public int size() {\n return n;\n }"
] | [
"0.7640152",
"0.7640152",
"0.71034896",
"0.71034896",
"0.70871335",
"0.706906",
"0.70201707",
"0.69779164",
"0.69398576",
"0.6898711",
"0.68494236",
"0.6775187",
"0.67206484",
"0.6684695",
"0.6680088",
"0.66208243",
"0.6606418",
"0.6604623",
"0.65671986",
"0.6564547",
"0.65431124",
"0.6541199",
"0.65337175",
"0.6517441",
"0.65169895",
"0.6497555",
"0.64963615",
"0.64963615",
"0.64963615",
"0.6494456",
"0.64820683",
"0.64728",
"0.647086",
"0.6468533",
"0.6454457",
"0.64505535",
"0.6450492",
"0.6450492",
"0.6450492",
"0.6450492",
"0.6450492",
"0.643478",
"0.6434283",
"0.6434283",
"0.64301175",
"0.64292496",
"0.64247566",
"0.6424472",
"0.6419735",
"0.6417332",
"0.6415905",
"0.64003056",
"0.6399836",
"0.63939244",
"0.63813865",
"0.63768977",
"0.63748026",
"0.63700676",
"0.63666546",
"0.63666546",
"0.63666546",
"0.63666546",
"0.63666546",
"0.63666546",
"0.63666546",
"0.6365151",
"0.63633657",
"0.6358836",
"0.6349936",
"0.6349026",
"0.63478136",
"0.6346978",
"0.63461196",
"0.6329793",
"0.63173085",
"0.63093144",
"0.63093144",
"0.6301542",
"0.6300967",
"0.6299707",
"0.6295448",
"0.6292532",
"0.62907606",
"0.62870747",
"0.62827444",
"0.62805384",
"0.6278768",
"0.6275788",
"0.6274308",
"0.62727845",
"0.62722325",
"0.6272088",
"0.6267187",
"0.62616205",
"0.62599236",
"0.6251912",
"0.62502676",
"0.6246981",
"0.6246981",
"0.6246981",
"0.6246981"
] | 0.0 | -1 |
Record retrieved piece into the file system | public void write(int pieceIndex, byte[] content, int length)
{
// if(isCompleted())
// {
// return;
// }
ByteBuffer contentBuffer = ByteBuffer.wrap(content);
try
{
final Piece p = pieces[pieceIndex];
synchronized(p)
{
if(!existing.get(pieceIndex))
{
long offset = p.index*PIECE_LEN;
channel.position(offset);
if(channel.write(contentBuffer, offset) != length)
{
throw new IOException("Cannot write all bytes");
}
existing.set(pieceIndex);
}
}
}
catch (IOException ex)
{
Logger.getLogger(DIFMFile.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRecordFile();",
"void record(int actualReadBytes);",
"public void writePiece(Piece piece) \n\t{\n\t\t\n\t}",
"int insert(AvwFileprocess record);",
"int insert(DiaryFile record);",
"int insert(EhrPersonFile record);",
"int insert(TParklotstatusFile record);",
"public void WriteToDisk(final ServiceRecord newRecord)\r\n {\r\n this.records.add(newRecord); //Add to the main record\r\n ServiceRecordList member = this.GetServiceList(this.recordsByMemberNum, newRecord.GetMemberNumber()); //Get the service records associated with the member listed in the record\r\n ServiceRecordList provider = this.GetServiceList(this.recordsByProviderNum, newRecord.GetProviderNumber()); //Same as above, but for the provider\r\n \r\n //Update the corresponding records\r\n member.AddServiceRecord(newRecord);\r\n provider.AddServiceRecord(newRecord);\r\n }",
"private void recordLocationData() \r\n\t{\r\n\t\tif(loadedImage!=null)\r\n\t\t{\r\n\t\t\tString image = BitMapToString(loadedImage);\r\n\t\t\tStringBuffer stringBuffer = new StringBuffer();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < image.length(); i++) \r\n\t\t\t{\r\n\t\t\t\tif (image.charAt(i) != '\\n' && image.charAt(i) != '\\r') \r\n\t\t\t\t{\r\n\t\t\t\t\tstringBuffer.append(image.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalimage = stringBuffer.toString();\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfinalimage = \"dummystring\";\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\t\r\n\t\tLog.v(\"ADD finaloutput: \", finaloutput);\r\n\t}",
"int insert(FileRecordAdmin record);",
"public void storePartCapturedContent() {\n // storePart only works for the classic external index format.\n // for internal, we just ignore it (will be fully stored eventually by final call to store())\n\n getDocWriter().storeInContentStore(null, new TextContent(content), captureContentFieldName, \"contents\");\n }",
"int insert(FileSet record);",
"public void record(){\n\t}",
"public void recFile(Packet packet) {\r\n\t\tjava.util.Date recDate = new java.util.Date();\r\n\t\tSystem.out.println(recDate + \": Received file \" + packet.fileName + \" from Peer Node \" + packet.packetSenderID);\r\n\t\t// rec file\r\n\t\tbyte[] buf = new byte[packet.totalFileSize];\r\n\t\t\r\n\t\t// unpack buf byte array into file buf arr\r\n\t\tfor(int i = 0; i < buf.length; i++)\r\n\t\t\tbuf[i] = packet.buf[i];\r\n\t\t\r\n\t\t// write to file\r\n\t\tFile file = new File(\"./\"+peerNode.fileDir,packet.fileName);\r\n\t\ttry {\r\n\t\t\tfileOutStream = new FileOutputStream(file);\r\n\t\t\tbufOutStream = new BufferedOutputStream(fileOutStream);\r\n\t\t\tbufOutStream.write(buf, 0, buf.length);\r\n\t\t\t\r\n\t\t\tfileOutStream.close();\r\n\t\t\tbufOutStream.close();\r\n\t\t\tcloseConnection();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tupdateDHT(packet);\r\n\t}",
"public void recordOrder(){\n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){//throws exception\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Coffee);//prints in file contents of Coffee\n output.close();//closes file\n }",
"public void saveResult() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(resultFile));\n\t\t\tout.println(record.resultToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void recordOrder(){ \n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Tea);//writes into the file contents of String Tea\n output.close();//closes file\n }",
"public void record(RecordElement2 r) throws OdenException;",
"protected void storeDataPath(FSDataOutputStream output, DataEntry storageEntry) throws IOException {\n OBJECT_MAPPER.writeValue(output, storageEntry);\n }",
"abstract public void store( String content, String path )\r\n throws Exception;",
"int insert(NewsFile record);",
"public void insertFile(Packet packet) {\r\n\t\t\r\n\t\t// Use hashCode function to get a hash of the file name in the range 0 - 2^n - 1\r\n\t\tint fileHash = (int) (packet.fileName.hashCode() % (Math.pow(2, 4) - 1));\r\n\t\t\r\n\t\t// If hash is a negative number, multiply by -1 to get a positive hash value\r\n\t\tif(fileHash < 0) {\r\n\t\t\tfileHash = fileHash * -1;\r\n\t\t}\r\n\t\t\r\n\t\t// Create InetSocketAddress ArrayList, add InetSocketAddress\r\n\t\tArrayList<InetSocketAddress> fileLocationList = new ArrayList<InetSocketAddress>();\r\n\t\tInetSocketAddress fileLocation = new InetSocketAddress(packet.peerClientIP, packet.peerClientListenPort);\r\n\t\t\r\n\t\t// Check if fileHash is equal to Peer Node ID, check if file is in the DHT - if so, just add inet address else add file name and location to the DHT\r\n\t\tif(fileHash == peerNode.peerClientID) {\r\n\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash < Peer Node ID and Peer Node ID < Peer Node Predecessor Peer ID - if so, add file\r\n\t\telse if(fileHash < peerNode.peerClientID && peerNode.peerClientID < peerNode.predPeerID) {\r\n\t\t\tjava.util.Date date2 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date2 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date2 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash < Peer Node ID and fileHash > Peer Node Predecessor Peer ID - if so, add file\r\n\t\telse if(fileHash < peerNode.peerClientID && fileHash > peerNode.predPeerID) {\r\n\t\t\tjava.util.Date date3 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date3 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date3 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Check if fileHash > Peer Node ID and Peer Node Successor Peer ID < Peer Node ID - if so, add file\r\n\t\telse if(fileHash > peerNode.peerClientID && peerNode.succPeerID < peerNode.peerClientID) {\r\n\t\t\tjava.util.Date date4 = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date4 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date4 + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Otherwise, forward packet on\r\n\t\telse {\r\n\t\t\tPacket p = packet;\r\n\t\t\ttry {\r\n\t\t\t\tpeerNode.peer2Peer = new Socket(peerNode.succPeerIP, peerNode.succPeerPort);\r\n\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(p);\r\n\t\t\t\t\r\n\t\t\t\t// Close connection/socket\r\n\t\t\t\tcloseConnection();\r\n\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void record() {\n\t\tif (isRecord) {\n\t\t\tisRecord = false;\n\n\t\t\t// Generates a unique filename.\n\t\t\tString currenttime = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t\tfilename = recordingsPath + currenttime + \".ogg\";\n\n\t\t\t// The pipe.\n\t\t\tString[] rec = new String[] { \"alsasrc\", \"!\", \"audioconvert\", \"!\", \"audioresample\", \"!\", \"vorbisenc\", \"!\", \"oggmux\", \"!\",\n\t\t\t\t\t\"filesink location = \" + filename };\n\n\t\t\trec = Gst.init(\"AudioRecorder\", rec);\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\tfor (String s : rec) {\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(s);\n\t\t\t}\n\n\t\t\t// Start recording\n\t\t\taudiopipe = Pipeline.launch(sb.substring(1));\n\t\t\taudiopipe.play();\n\n\t\t} else {\n\t\t\t// Stop recording and add file to the list.\n\t\t\taudiopipe.stop();\n\t\t\tgui.addNewFiletoList(filename);\n\t\t\tisRecord = true;\n\t\t}\n\n\t}",
"public String getRecordFile() {\n return recordFile;\n }",
"public void fileInfo(String info);",
"public void file ( Receipt receipt){\r\n\t\t\treciptlist.add(receipt);\r\n\t\t}",
"public String getRecord(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\treturn dataBase.readLine();\n\t}",
"public void setRecordFile(String file);",
"private void insertToFile (PQNode node) throws Exception{\n int fileId = (node.getPqIndex()-1)/ENTRY_BLOCK_SIZE;\n File file = new File(DIRECTORY + getMapFileName(NAME_PATTERN, fileId));\n\n List<PQNode> nodes = retrieveWholeFile(node.getPqIndex());\n nodes.add(node);\n\n storeToFile(file,nodes, false);\n }",
"public abstract String getFileLocation();",
"int insertSelective(EhrPersonFile record);",
"public synchronized void saveFileIDInfo(String projectName, String viewName, int fileID, String appendedPath, String shortFilename, int directoryID) {\n store.saveFileIDInfo(projectName, viewName, fileID, appendedPath, shortFilename, directoryID);\n scheduleSaveOfFileIdStore();\n }",
"public void saveOffers() {\n System.out.println(this.currentChild);\n // TODO [assignment_final] ulozeni aktualnich nabidek do souboru (vyberte si nazev souboru a format jaky uznate za vhodny - CSV nebo JSON)\n }",
"int insert(PathologyInfo record);",
"public void saveWorkingDataFile(String rftNo, String fileName, int fileRecordNumber, Connection conn) \n\t\tthrows ReadWriteException, NotFoundException, InvalidDefineException, IllegalAccessException, IOException\n\t{\t\t\n\t\tString id = \"\";\n\t\tMatcher m = Pattern.compile(\"ID(\\\\d\\\\d\\\\d\\\\d).txt\").matcher(fileName);\n\t\tif (m.find())\n\t\t{\n\t\t\tid = m.group(1);\n\t\t}\n\t\t//#CM702621\n\t\t// Generation of instance of work file\n\t\tWorkDataFile workDataFile =\n\t\t (WorkDataFile) PackageManager.getObject(\"Id\"+ id + \"DataFile\");\n\t\tworkDataFile.setFileName(fileName);\n\t\t\n\t\t//#CM702622\n\t\t// Remove the passing part of File Name. \n\t\tFile file = new File(fileName);\n\t\tString registFileName = file.getName();\n\t\ttry\n\t\t{\t\t\t\n\t\t\tWorkingDataHandler wHandler = new WorkingDataHandler(conn);\n\t\t\t//#CM702623\n\t\t\t// Open the made work file. \n\t\t\tworkDataFile.openReadOnly();\n\t\t\tint i = 0;\n\t\t\tfor(workDataFile.next(); i < fileRecordNumber; workDataFile.next())\n\t\t\t{\t\n\t\t\t\tWorkingDataAlterKey akey = new WorkingDataAlterKey();\n\t\t\t\takey.setRftNo(rftNo);\n\t\t\t\takey.setLineNo(i);\n\t\t\t\takey.updateFileName(registFileName);\n\t\t\t\takey.updateContents(workDataFile.getContents());\n\n\t\t\t\tWorkingDataSearchKey skey = new WorkingDataSearchKey();\n\t\t\t\tskey.setRftNo(rftNo);\n\t\t\t\tskey.setFileName(registFileName);\n\t\t\t\tskey.setLineNo(i);\n\t\t\t\tWorkingData[] workingArr= (WorkingData[])wHandler.find(skey);\n\t\t\t\tif (workingArr.length > 0)\n\t\t\t\t{\n\t\t\t\t\twHandler.modify(akey);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tWorkingData workdata = new WorkingData();\n\t\t\t\t\t\tworkdata.setRftNo(rftNo);\n\t\t\t\t\t\tworkdata.setFileName(registFileName);\n\t\t\t\t\t\tworkdata.setLineNo(i);\n\t\t\t\t\t\tworkdata.setContents(workDataFile.getContents());\n\t\t\t\t\t\twHandler.create(workdata);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (DataExistsException e)\n\t\t\t\t\t{\n\t\t\t\t\t\twHandler.modify(akey);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tworkDataFile.closeReadOnly();\n\t\t}\n\t\t\n\t}",
"private void guardaRecord() {\n // Guardamos el record\n SharedPreferences datos = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor miEditor = datos.edit();\n miEditor.putInt(\"RECORD\", record);\n miEditor.apply();\n }",
"int retrieve(FileInputSplit fileInputSplit);",
"File getFile() { return user_file; }",
"public int getFile() {\n validify();\n return Client.INSTANCE.pieceGetFile(ptr);\n }",
"@Test\n public void testWrite() {\n System.out.println(\"write\");\n RecordFile instance = new RecordFile();\n \n String first = \"hello\";\n String second = \"hello 2\";\n String third = \"hello 3\";\n \n instance.write(first.getBytes(), 0);\n instance.write(second.getBytes(), 1);\n instance.write(third.getBytes(), 2);\n \n Assert.assertEquals(first, new String(instance.read(0)));\n Assert.assertEquals(second, new String(instance.read(1)));\n Assert.assertEquals(third, new String(instance.read(2)));\n \n instance.write(third.getBytes(), 1);\n \n Assert.assertEquals(first, new String(instance.read(0)));\n Assert.assertEquals(third, new String(instance.read(1)));\n Assert.assertEquals(third, new String(instance.read(2)));\n }",
"public String getFile() {\n \n // return it\n return theFile;\n }",
"public void saveData() {\n\t\t//place to save notes e.g to file\n\t}",
"int insertSelective(DiaryFile record);",
"int insertSelective(AvwFileprocess record);",
"private String getAFileFromSegment(Value segment, Repository repository)\n {\n \n RepositoryConnection con = null;\n try\n {\n con = getRepositoryConnection(repository);\n \n String adaptorQuery = \"SELECT ?fileName WHERE { <\" + segment + \"> <http://toif/contains> ?file . \"\n + \"?file <http://toif/type> \\\"toif:File\\\" .\" + \"?file <http://toif/name> ?fileName . }\";\n \n TupleQuery adaptorTupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, adaptorQuery);\n \n TupleQueryResult queryResult = adaptorTupleQuery.evaluate();\n \n while (queryResult.hasNext())\n {\n BindingSet adaptorSet = queryResult.next();\n Value name = adaptorSet.getValue(\"fileName\");\n \n return name.stringValue();\n }\n \n queryResult.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n catch (MalformedQueryException e)\n {\n e.printStackTrace();\n }\n catch (QueryEvaluationException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n con.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n }\n return null;\n }",
"static void recordProcess() {\n try {\n PrintWriter output = new PrintWriter(new FileWriter(file, true));\n output.print(huLuWaList.size() + \" \");\n lock.lock();\n for (Creature creature : huLuWaList) {\n output.print(creature.getCreatureName() + \" \" + creature.getX() + \" \" + creature.getY()+\" \");\n }\n output.print(enemyList.size() + \" \");\n for (Creature creature : enemyList) {\n output.print(creature.getCreatureName() + \" \" + creature.getX() + \" \" + creature.getY()+\" \");\n }\n output.println();\n output.close();\n lock.unlock();\n }catch (Exception ex){\n System.out.println(ex);\n }\n }",
"private void serialize() {\r\n if (newFile) {\r\n this.newFile = this.serializeAs();\r\n } else if (!newFile && !path.equals(\"\")) {\r\n sr.save(this.path);\r\n }\r\n }",
"FileStore getFile(String fileRefId);",
"public void collectPiece(int index, int offset, byte[] data) {\n\t\taddToHaltingOperations(1);\n\t\tint blockIndex = offset / files.getBlockSize();\n\t\taddDiskJob(new DiskJobStoreBlock(index, blockIndex, data));\n\t}",
"private final void onDisk(TransactionInternal txn, LogEntry entry) throws BabuDBException {\n \n // append the entry to the DiskLogger if available, wait otherwise\n try {\n \n synchronized (diskLogger) {\n \n while (diskLogger.get() == null) {\n diskLogger.wait();\n }\n \n diskLogger.get().append(entry);\n }\n } catch (InterruptedException ie) {\n \n if (entry != null) entry.free();\n throw new BabuDBException(ErrorCode.INTERRUPTED, \"Operation \" +\n \"could not have been stored persistent to disk and \" +\n \"will therefore be discarded.\", ie.getCause());\n } \n }",
"public File getFile() { return file; }",
"public static void store() {\r\n//\t\tSystem.out.println(\"mar\"+readMAR().getStr());\r\n\t\tString mar = new String(readMAR().getStr());\r\n\t\tTraceINF.write(\"Write memory \"+mar);\r\n\t\tFormatstr content = new Formatstr();\r\n\t\t\r\n\t\tcontent = readMBR();\r\n\t\tgetBank(mar)[Integer.parseInt(mar.substring(0, mar.length() - 2), 2)] = content.getStr();\r\n\t\tTraceINF.write(\"Write finished.\");\r\n\t}",
"@Test\n public void testRecordSize() {\n System.out.println(\"recordSize\");\n RecordFile instance = new RecordFile();\n \n Assert.assertEquals(0, instance.recordSize(0));\n \n byte[] bytes = new byte[10];\n instance.insert(bytes, 0);\n Assert.assertEquals(10, instance.recordSize(0));\n \n bytes = new byte[12];\n instance.write(bytes, 0);\n Assert.assertEquals(12, instance.recordSize(0));\n \n bytes = new byte[100];\n instance.insert(bytes, 0);\n Assert.assertEquals(100, instance.recordSize(0));\n Assert.assertEquals(12, instance.recordSize(1));\n }",
"void addRecord(HistoryRecord record) throws IOException;",
"abstract String getFileRoute() throws IOException;",
"public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"FileObject getFile();",
"FileObject getFile();",
"public void saveCurrentRecord() {\n ThreadUtil.executeOnNewThread(new Runnable() {\n @Override\n public void run() {\n SharedPreferences recordPreferences = mContext.getSharedPreferences(RECORD_PREFERENCES, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = recordPreferences.edit();\n if (mCurrentRecord == null) {\n editor.putString(CURRENT_RECORD_KEY, null);\n } else {\n String recordJson = mGson.toJson(mCurrentRecord);\n editor.putString(CURRENT_RECORD_KEY, recordJson);\n }\n editor.apply();\n\n if (mCurrentRecord != null) {\n saveRecord(mCurrentRecord);\n }\n }\n });\n }",
"public void saveData(){\r\n file.executeAction(modelStore);\r\n }",
"public File getFile()\n {\n return file;\n }",
"public void streamData(String pathToFile) throws IOException;",
"protected abstract void writeFile();",
"public void add(byte b) {\n\t\tif (pointer == size)\n\t\t\twriteToFile();\n\t\tstream.set(pointer++, b);\n\t\twrittenBytes++;\n\t}",
"public abstract void writeToFile( );",
"public String getRecordPath() {\n return recordPath;\n }",
"int insertSelective(FileRecordAdmin record);",
"@Override\r\n protected String getDiskLocation()\r\n {\r\n return dataFile.getFilePath();\r\n }",
"String savedFile();",
"public void write_file(String filename)\n {\n out.println(\"WRITE\");\n out.println(filename);\n int timestamp = 0;\n synchronized(cnode.r_list)\n {\n timestamp = cnode.r_list.get(filename).cword.our_sn;\n }\n // content = client <ID>, <ts>\n out.println(\"Client \"+my_c_id+\", \"+timestamp);\n // check if write operation finished on server and then exit method\n try\n {\n String em = null;\n em = in.readLine();\n Matcher m_eom = eom.matcher(em);\n if (m_eom.find())\n {\n System.out.println(\"WRITE operation finished on server : \"+remote_c_id);\n }\n else\n {\n System.out.println(\"WRITE operation ERROR on server : \"+remote_c_id);\n }\n }\n catch (IOException e) \n {\n \tSystem.out.println(\"Read failed\");\n \tSystem.exit(-1);\n }\n }",
"String saveFile(FileStoreDto dto);",
"private void serializeBeforeOpen() {\r\n sr.save(this.path);\r\n }",
"public void writeChannel() {\n try {\n java.io.FileWriter chWriter = new java.io.FileWriter(chFile);\n chWriter.write(chStored);\n chWriter.close();\n JTVProg.logPrint(this, 3, \"файл канала [\" + this.chName + \"] успешно сохранен\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"ошибка записи файла канала [\" + this.chName + \"]\");\n } finally {\n JTVProg.configer.markWrited(this.chFillOrder - 1);\n }\n }",
"public FSReturnVals AppendRecord(FileHandle ofh, byte[] payload, RID RecordID)\n {\n FSReturnVals outcome = FSReturnVals.Fail;\n // should set ip address, port number\n Vector<IP> servers = ofh.getServersForChunk(RecordID.getChunkHandle());\n int numServers = servers.size();\n if (ofh == null)\n {\n return FSReturnVals.BadHandle;\n }\n if (RecordID != null)\n {\n return FSReturnVals.BadRecID;\n }\n if (payload.length > ChunkSize)\n {\n return FSReturnVals.RecordTooLong;\n }\n for(int i = 0; i < numServers; i++)\n {\n IP ip = new IP();\n ip.setPort(servers.elementAt(i).getPort());\n ip.setAddress(servers.elementAt(i).getAddress());\n try\n {\n Socket sock = new Socket(ip.getAddress(), ip.getPort());\n ObjectOutputStream serverOutput = new ObjectOutputStream(sock.getOutputStream());\n serverOutput.flush();\n ObjectInputStream serverInput = new ObjectInputStream(sock.getInputStream());\n serverOutput.writeInt(Constants.IsClient);\n \n serverOutput.writeInt(Constants.APPEND_RECORD);\n serverOutput.writeInt(RecordID.getChunkHandle().length());\n serverOutput.writeBytes(RecordID.getChunkHandle());\n serverOutput.flush();\n serverOutput.writeInt(RecordID.index);\n serverOutput.writeInt(numServers);\n \n int response = serverInput.readInt();\n if (response == Constants.FALSE)\n {\n i--;\n continue;\n }\n else\n {\n for(int j = 0; j < numServers; j++)\n {\n byte[] ipadd = ip.getAddress().getBytes();\n serverOutput.writeInt(ipadd.length);\n serverOutput.flush();\n serverOutput.write(ipadd);\n serverOutput.writeInt(ip.getPort());\n serverOutput.flush();\n }\n \n serverOutput.writeInt(payload.length);\n serverOutput.write(payload);\n }\n \n //int type = serverOutput.readInt();\n //int command = serverOutput.readInt();\n //if(type == Constants.IsServer && command = Constants.APPEND_RECORD)\n //{\n int ch = serverInput.readInt();\n int ind = serverInput.readInt();\n int ipaddlen = serverInput.readInt();\n byte[] ipadd = new byte[ipaddlen];\n serverInput.read(ipadd, 0, ipaddlen);\n String ipstr = new String(ipadd, \"UTF-8\");\n //}\n \n int j = serverInput.readInt();\n outcome = intToFSReturnVal(j);\n\n }\n catch (Exception e)\n {\n outcome = FSReturnVals.Fail;\n System.out.println(\"Unable to append records (ClientREC:65)\");\n }\n }\n\n return outcome;\n }",
"public FSReturnVals ReadNextRecord(FileHandle ofh, RID pivot, TinyRec rec)\n {\n FSReturnVals outcome = FSReturnVals.Fail;\n // should set ip address, port number\n Vector<IP> servers = ofh.getServersForChunk(pivot.getChunkHandle());\n int numServers = servers.size();\n if (ofh == null)\n {\n return FSReturnVals.BadHandle;\n }\n if (rec == null)\n {\n return FSReturnVals.RecDoesNotExist;\n }\n for(int i = 0; i < numServers; i++)\n {\n IP ip = new IP();\n ip.setPort(servers.elementAt(i).getPort());\n ip.setAddress(servers.elementAt(i).getAddress());\n try\n {\n Socket sock = new Socket(ip.getAddress(), ip.getPort());\n ObjectOutputStream serverOutput = new ObjectOutputStream(sock.getOutputStream());\n serverOutput.flush();\n ObjectInputStream serverInput = new ObjectInputStream(sock.getInputStream());\n serverOutput.writeInt(Constants.IsClient);\n \n serverOutput.writeInt(Constants.READ_NEXT_RECORD);\n serverOutput.writeInt(pivot.getChunkHandle().length());\n serverOutput.writeBytes(pivot.getChunkHandle());\n serverOutput.flush();\n serverOutput.writeInt(pivot.index);\n \n int response = serverInput.readInt();\n if (response == Constants.FALSE)\n {\n i--;\n continue;\n }\n else if (response == Constants.NOT_IN_CHUNK)\n {\n i--;\n continue;\n }\n \n //int type = serverOutput.readInt();\n //int command = serverOutput.readInt();\n //if(type == Constants.IsServer && command = Constants.READ_NEXT_RECORD)\n //{\n int sz = serverInput.readInt();\n byte[] data = new byte[sz];\n serverInput.read(data, 0, sz);\n String datastr = new String(data, \"UTF-8\");\n if(data.length > 0)\n {\n int j = serverInput.readInt();\n outcome = intToFSReturnVal(j);\n rec.setPayload(data);\n break;\n }\n else\n {\n i--;\n continue;\n }\n //}\n //else\n //{\n // int j = serverInput.readInt();\n // outcome = intToFSReturnVal(j)\n //}\n \n }\n catch (Exception e)\n {\n outcome = FSReturnVals.Fail;\n System.out.println(\"Unable to append records (ClientREC:65)\");\n }\n }\n \n return outcome;\n }",
"void visitFile(StorageUnit unit, long off, long lim);",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"public RandomAccessFile getFile()\n {\n \treturn f;\n }",
"@Override\n public void saveFileToHDD(String path, Object filePointer) {\n try {\n GridFSFile file = (GridFSFile) filePointer;\n ObjectId oid = file.getObjectId();\n path += File.separator + file.getFilename();\n checkFilePath(path);\n FileOutputStream fos = new FileOutputStream(path);\n gridFSBucket.downloadToStream(oid, fos);\n fos.close();\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n System.out.println(\"MONGODB ERROR \" + ((GridFSFile) filePointer).getFilename());\n } catch (IOException e){\n System.err.println(e.getMessage());\n System.out.println(\"OUTPUT STREAM ERROR \" + ((GridFSFile) filePointer).getFilename());\n }\n }",
"public void writeLineToSdcard(String filename, String line) {\n final String outputFile = Environment.getExternalStorageDirectory().toString() + \"/\"\n + filename;\n try {\n FileWriter fstream = null;\n fstream = new FileWriter(outputFile, true);\n BufferedWriter out = new BufferedWriter(fstream);\n out.write(line + \"\\n\");\n out.close();\n fstream.close();\n Log.print(\"write log: \" + outputFile);\n } catch (Exception e) {\n Log.print(\"exception for write log\");\n }\n }",
"@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}",
"private void updateToFile(PQNode node) throws Exception{\n List<PQNode> nodes = retrieveWholeFile(node.getPqIndex());\n int replaceIndex = node.getPqIndex()-bufStart;\n\n nodes.set(replaceIndex,node);\n int fileId = (node.getPqIndex()-1)/ENTRY_BLOCK_SIZE;\n File file = new File(DIRECTORY + getMapFileName(NAME_PATTERN, fileId));\n storeToFile(file,nodes, false);\n }",
"abstract protected T getRecordFromLine(String line) throws DataImportException ;",
"private void writeEntry(FileHandle fh, long address, LogData entry)\n throws IOException {\n ByteBuf metadataBuffer = Unpooled.buffer();\n ICorfuPayload.serialize(metadataBuffer, entry.getMetadataMap());\n int entrySize = entry.getData().writerIndex() + metadataBuffer.writerIndex() + 24;\n long pos = fh.getFilePointer().getAndAdd(entrySize);\n ByteBuffer o = fh.getMapForRegion((int) pos, entrySize);\n o.putInt(0x4C450000); // Flags\n o.putLong(address); // the log unit address\n o.putInt(entrySize); // Size\n o.putInt(metadataBuffer.writerIndex()); // the metadata size\n o.put(metadataBuffer.nioBuffer());\n o.put(entry.getData().nioBuffer());\n metadataBuffer.release();\n o.putShort(2, (short) 1); // written flag\n o.flip();\n }",
"@Override\n\tprotected String getFileArress() {\n\t\treturn fileAddress;\n\t}",
"public void storeID(String id) {\n try {\n FileWriter myWriter = new FileWriter(\"history_dao.txt\");\n myWriter.write(id);\n myWriter.close();\n System.out.println(\"Successfully wrote to the file.\");\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }",
"@Test\n public void testFileSize() {\n System.out.println(\"fileSize\");\n RecordFile instance = new RecordFile();\n \n Assert.assertEquals(76, instance.fileSize());\n \n byte[] bytes = new byte[10];\n instance.insert(bytes, 0);\n Assert.assertEquals(86, instance.fileSize());\n \n bytes = new byte[12];\n instance.write(bytes, 0);\n Assert.assertEquals(88, instance.fileSize());\n \n bytes = new byte[100];\n instance.insert(bytes, 0);\n Assert.assertEquals(188, instance.fileSize());\n \n bytes = new byte[100];\n instance.remove(0);\n Assert.assertEquals(88, instance.fileSize());\n \n bytes = new byte[100];\n instance.remove(0);\n Assert.assertEquals(76, instance.fileSize());\n }",
"@Override\n public String toFileEntry() {\n return \"T\" + \"/next\" + super.isDone + \"/next\" + super.description;\n }",
"public void write_line(String string)\n {\n String[] current = read();\n\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n PrintWriter writer = new PrintWriter(dir);\n\n for (int i = 0; i < current.length; i++)\n {\n String line = current[i];\n if (line != null)\n {\n writer.println(line);\n }\n }\n writer.println(string);\n writer.close();\n }catch (Exception ex)\n {\n debug = \"test write failure\";\n }\n }",
"void pieceAdded(Piece piece);",
"private void keepRecordSaving(RecordRequest recordRequest) {\n \tLog.d(C.LOG_TAG, \"start of keepRecordSaving thread \" + recordRequest.recordIdx);\n \tLog.d(C.LOG_TAG, \"record = \" + recordRequest.dump());\n \t\n \t//Boolean writeResult = Highgui.imwrite(shotRequest.filePath, shotRequest.imageToSave);\n \ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(recordRequest.filePath);\n\t\t\trecordRequest.byteStreamToSave.writeTo(fos);\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: can't open file when saving record\");\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tLog.e(C.LOG_TAG, \"IOERROR: can't open file when saving record\");\n\t\t\te.printStackTrace();\n\t\t}\n }",
"int insert(PicInfo record);",
"entities.Torrent.FileInfo getFileInfo();",
"entities.Torrent.FileInfo getFileInfo();",
"public void record() {\n stats.record();\n }",
"int insert(NjOrderAttachment record);",
"edu.usfca.cs.dfs.StorageMessages.FileLocation getFileLocation();",
"stockFilePT102.StockFileDocument.StockFile addNewStockFile();",
"private static void addInfo(String info){\n\tif (started) {\n\t try{\n\t\tif (verbose) {\n\t\t System.out.println(info);\n\t\t System.out.println(newLine);\n\t\t}\n\t\tfStream.writeBytes(info);\n\t\tfStream.writeBytes(newLine);\n\t }catch(IOException e){\n\t }\n\t}\n }",
"public void insertOtherNode(String key,String value) {\n Log.v(\"insert\", value);\n String filename = key;\n String string = value;\n String hashedKey=\"\";\n Log.v(\"Created \" + hashedKey, \"with value \" + string + \"Before hash \" + filename);\n FileOutputStream outputStream;\n try {//Context.MODE_PRIVATE\n System.out.println(filename);\n System.out.println(context);\n outputStream = context.openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(string.getBytes());\n outputStream.flush();\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, \"File write failed\");\n }\n\n\n }"
] | [
"0.6042946",
"0.5937741",
"0.57342356",
"0.5725281",
"0.57177025",
"0.5654551",
"0.5559731",
"0.55269593",
"0.5511456",
"0.5500022",
"0.54852796",
"0.548216",
"0.5481442",
"0.5400717",
"0.538423",
"0.5372322",
"0.53481597",
"0.5332409",
"0.53123355",
"0.5257129",
"0.52531207",
"0.52521706",
"0.5227384",
"0.521549",
"0.5212385",
"0.5205822",
"0.5195476",
"0.51954436",
"0.51933545",
"0.5176961",
"0.5174183",
"0.51582503",
"0.5156292",
"0.51256526",
"0.51121265",
"0.508522",
"0.507225",
"0.50719935",
"0.50718033",
"0.50486517",
"0.5046553",
"0.5033146",
"0.5026339",
"0.5007627",
"0.4996228",
"0.49951127",
"0.49936068",
"0.49875307",
"0.49830738",
"0.49761164",
"0.49721998",
"0.49623528",
"0.49386975",
"0.49385643",
"0.49368766",
"0.49338004",
"0.49319857",
"0.49319857",
"0.49312973",
"0.49311566",
"0.49297103",
"0.49131718",
"0.4910874",
"0.49073675",
"0.48999408",
"0.48963472",
"0.4882133",
"0.48730657",
"0.48685452",
"0.4866925",
"0.4866421",
"0.48643664",
"0.48613733",
"0.48530978",
"0.48509604",
"0.48506135",
"0.4844099",
"0.48426288",
"0.48406667",
"0.484011",
"0.48375577",
"0.4835404",
"0.48332652",
"0.48265323",
"0.4825355",
"0.4823855",
"0.48181468",
"0.4816126",
"0.48155037",
"0.48126468",
"0.48115095",
"0.48104656",
"0.48036444",
"0.48036444",
"0.47922924",
"0.47916424",
"0.47915632",
"0.47910023",
"0.4780127",
"0.47794282"
] | 0.48816493 | 67 |
TODO Autogenerated method stub | @Override
public Interest convert(InterestEntity entity) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void update(Interest model, InterestEntity entity) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
Two Pass Two Pointers Step 1: Find the node with the smallest val in the cyclic linked list; Step 2: Start from the smallest node and find the position for insert node. Pay attention to the case where the insertVal is smaller than min! / Runtime: 0ms O(2n) Memory: 38MB O(1) | public Node insert(Node head, int insertVal) {
Node insert = new Node(insertVal);
// 原cyclic linked list长度等于0的情况:
if (head == null) {
insert.next = insert;
return insert;
}
// 原cyclic linked list长度大于等于1的情况:
Node p1 = head;
int min = head.val;
Node p2 = head;
int len = 1;
while (p2.next != head) {
if (p2.next.val < min) {
p1 = p2.next;
min = p1.val;
}
p2 = p2.next;
len++;
}
// p1即为list中val最小的node
for (int i = 0; i < len-1; i++) {
if (min <= insertVal && p1.next.val >= insertVal) break; //如果insertVal小于min,则应让p1指向p1.prev
p1 = p1.next;
}
insert.next = p1.next;
p1.next = insert;
return head;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ListNode sortedInsert(ListNode head, int value){\t\t\n\t\tListNode dummy = new ListNode(-1);\n\t\tdummy.next = head;\n\t\tListNode current = head;\n\t\t\n\t\twhile(current.next != null && current.next.value < value){\n\t\t\tcurrent = current.next;\n\t\t}\n\t\t\n\t\tListNode target = new ListNode(value);\n\t\ttarget.next = current.next;\n\t\tcurrent.next = node;\n\t\t\n\t\treturn dummy.next;\n\t}",
"public ListNode insert(ListNode head, int value) {\n\t\t ListNode node = new ListNode(value);\n\t\t if(head == null || value <= head.value){\n\t\t node.next = head;\n\t\t return node;\n\t\t }\n\t\t ListNode cur = head;\n\t\t while(cur.next != null && cur.next.value < value){\n\t\t cur = cur.next;\n\t\t }\n\t\t ListNode next = cur.next;\n\t\t cur.next = node;\n\t\t node.next = next;\n\t\t return head;\n\t\t }",
"public void insertSmallest(Point p) {\n if (size() == 0) {\n first.next = first;\n first.p = p;\n return;\n }\n double leastDist;\n double minimumDistance = Double.POSITIVE_INFINITY;\n Node nearestN = null;\n Node n = first;\n do {\n leastDist = n.p.distanceTo(p) + n.next.p.distanceTo(p);\n leastDist = leastDist - n.p.distanceTo(n.next.p);\n if (leastDist < minimumDistance) {\n nearestN = n;\n minimumDistance = leastDist;\n }\n n = n.next;\n } while (!n.equals(first));\n Node newNode = new Node();\n newNode.p = p;\n newNode.next = nearestN.next;\n nearestN.next = newNode;\n }",
"public Node deleteMin() {\n\t\t// if the heap is empty\n\t\t// return MAXINT as output\n\t\tNode min = new Node(Integer.MAX_VALUE);\n\t\tif(this.head == null)\n\t\t\treturn min;\n\t\t\n\t\t\n\t\tNode prevMin = null;\n\t\tNode curr = this.head;\n\t\tNode prev = null;\n\t\t\n\t\t// find the smallest node\n\t\t// keep track of node who points to this minimum node\n\t\twhile(curr!=null) {\n\t\t\tif(curr.key<min.key) {\n\t\t\t\tmin = curr;\n\t\t\t\tprevMin = prev;\n\t\t\t}\n\t\t\tprev = curr;\n\t\t\tcurr = curr.rightSibling;\n\t\t}\n\t\t\n\t\t// if its the head then move one pointer ahead\n\t\tif(prevMin == null)\n\t\t\tthis.head = min.rightSibling;\n\t\telse {\n\t\t\t// else attach the previous node to the rightSibling of min\n\t\t\tprevMin.rightSibling = min.rightSibling;\n\t\t}\n\t\tmin.rightSibling = null;\n\t\t\n\t\t//return min node\n\t\treturn min;\n\t}",
"public Node<T> insert(T x) {\n Node<T> node = new Node<>(x);\n\n if (min == null) {\n min = node;\n } else {\n if (min.leftSibling != null) {\n node.leftSibling = min;\n node.rightSibling = min.rightSibling;\n min.rightSibling = node;\n node.rightSibling.leftSibling = node;\n } else {\n min.leftSibling = node;\n }\n if (node.key.compareTo(min.key) < 0) {\n min = node;\n }\n }\n size++;\n return node;\n }",
"public Node insertStart(int val) {\n // create a new node with the help of Node class\n Node newNode = new Node(val);\n // condition 1: Head==null(no node) or atleast 1 node\n newNode.next = head;\n head = newNode;\n\n return head;\n\n }",
"private Node getMinimumOld() {\n Node tmp = null;\n\n // TODO: optimize by putting in 1 list and\n // provide 'starting offset' for remaining nodes to find mimimum\n // note: see new getMinimum method above\n\n if (null != nodeA) {\n tmp = nodeA;\n if (null != nodeB && tmp.data > nodeB.data) {\n tmp = nodeB;\n }\n if (null != nodeC && tmp.data > nodeC.data) {\n tmp = nodeC;\n }\n } else if (null != nodeB) {\n tmp = nodeB;\n if (null != nodeC && tmp.data > nodeC.data) {\n tmp = nodeC;\n }\n } else if (null != nodeC) {\n tmp = nodeC;\n }\n\n // System.out.println(tmp);\n\n if (null == tmp ) {\n // terminating condition\n return null;\n }\n\n if (tmp.equals(nodeA)) {\n nodeA = nodeA.next;\n }\n if (tmp.equals(nodeB)) {\n nodeB = nodeB.next;\n }\n if (tmp.equals(nodeC)) {\n nodeC = nodeC.next;\n }\n\n System.out.println(tmp.data);\n\n return tmp;\n }",
"private Node findSmallest(Node curr) {\n Node prev = null;\n while(curr != null && !curr.isNull) {\n prev = curr;\n curr = curr.left;\n }\n return prev != null ? prev : curr;\n }",
"public ListNode insertionSortList(ListNode head) {\n\n ListNode helper = new ListNode(0);\n ListNode pre = helper;\n ListNode cur = head;\n while(cur!=null) {\n\n while(pre.next.val < cur.val){ //keep looking until find right place\n ;\n }\n }\n return null;\n }",
"public static TreeNode insertIntoBST(TreeNode root, int val)\n{\n TreeNode droot = root;\n TreeNode par = find(droot, val, null);\n if(par==null)\n return par;\n if(par.val < val)\n par.right = new TreeNode(val);\n else\n par.left = new TreeNode(val);\n return root;\n}",
"public void insertBefore(int value, int newVal) {\n try {\n ListNode nodeValue = new ListNode(value);\n ListNode newValue = new ListNode(newVal);\n ListNode current = this.root;\n\n while (current.data != value) {\n current = current.next;\n }\n newValue.next = current.next;\n current.next = newValue;\n } catch (NullPointerException e) {\n System.out.println(\"You have reached the end of the list.\");\n }\n }",
"void fhInsert(Nodefh in)\n\t{\n\t\tin.ChildCut = false;\n\t\tif(isEmpty()){\n\t\t\tmin=in;\n\t\t\tmin.Left = min;\n\t\t\tmin.Right = min;\n\t\t\tminindex = min.index;\n\t\t\tcurrent = min;\n\t\t\tlast = min;\n\t\t}\t\n\t\telse\n\t\t\tif(in.dist < min.dist){\n\t\t\t\tin.Right = min;\n\t\t\t\tin.Left = min.Left;\n\t\t\t\tmin.Left.Right = in;\n\t\t\t\tmin.Left = in;\n\t\t\t\tmin = in;\n\t\t\t\tminindex = in.index;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tin.Right = min;\n\t\t\t\tin.Left = min.Left;\n\t\t\t\tmin.Left.Right = in;\n\t\t\t\tmin.Left = in;\n\t\t\t}\n\t\tlast = min.Left;\n\t}",
"private Node dfsPreAdd(Node cur, int val) {\n if ( cur == null) {\n cur = new Node(val);\n return cur;\n }\n //cur is not null: decide left or right\n if (val <= cur.data) {\n cur.left = dfsPreAdd(cur.left, val); \n } else {\n cur.right = dfsPreAdd(cur.right, val);\n }\n return cur;\n }",
"public void insertNearest(Point p) {\n if (size() == 0) {\n first.next = first;\n first.p = p;\n return;\n }\n double distanceBetweenNode;\n double minimumDistance = Double.POSITIVE_INFINITY;\n Node nearestN = null;\n Node n = first;\n do {\n distanceBetweenNode = n.p.distanceTo(p);\n if (distanceBetweenNode < minimumDistance) {\n nearestN = n;\n minimumDistance = distanceBetweenNode;\n }\n n = n.next;\n } while (!n.equals(first));\n Node newNode = new Node();\n newNode.p = p;\n newNode.next = nearestN.next;\n nearestN.next = newNode;\n }",
"public void testFindMin() {\r\n assertNull(tree.findMin());\r\n tree.insert(\"apple\");\r\n tree.insert(\"act\");\r\n assertEquals(\"act\", tree.findMin());\r\n tree.remove(\"act\");\r\n assertEquals(\"apple\", tree.findMin());\r\n }",
"void MinInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] > arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }",
"public void insertAtStart(int val)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if(start == null)\n\n {\n\n start = nptr;\n\n end = start;\n\n }\n\n else\n\n {\n\n start.setLinkPrev(nptr);\n\n nptr.setLinkNext(start);\n\n start = nptr;\n\n }\n\n size++;\n\n }",
"public int findSmallest(){\n\tint smallest = 0;\n\tint smallestVal = 0;\n\tint place = 0;\n\tif (size > 0){\n\t place = head+1;\n\t if (place == nums.length){\n\t\tplace = 0;\n\t }\n\t smallest = place;\n\t smallestVal = nums[place];\n\t if (place <= tail){\n\t\twhile (place <= tail){\n\t\t if (place == nums.length){\n\t\t\tplace = 0;\n\t\t }\n\t\t if (nums[place] < smallestVal){\n\t\t\tsmallest = place;\n\t\t\tsmallestVal = nums[place];\n\t\t }\n\t\t place++;\n\t\t}\n\t }else{\n\t\twhile(place >= tail){\n\t\t if (place == nums.length){\n\t\t\tplace = 0;\n\t\t\tbreak;\n\t\t }\n\t\t if (nums[place] < smallestVal){\n\t\t\tsmallest = place;\n\t\t\tsmallestVal = nums[place];\n\t\t }\n\t\t place++;\n\t\t}\n\t\twhile (place <= tail){\n\t\t if (place == nums.length){\n\t\t\tplace = 0;\n\t\t }\n\t\t if (nums[place] < smallestVal){\n\t\t\tsmallest = place;\n\t\t\tsmallestVal = nums[place];\n\t\t }\n\t\t place++;\n\t\t}\n\t }\n\t}\n return smallest;\n }",
"public Node<T> extractMin() {\n Node<T> z = min;\n if (z != null) {\n if (z.child != null) {\n Node<T> leftChild = z.child.leftSibling;\n Node<T> rightChild = z.child;\n z.child.parent = null;\n while (leftChild != rightChild) {\n leftChild.parent = null;\n leftChild = leftChild.leftSibling;\n }\n leftChild = leftChild.rightSibling;\n\n // add child to the root list\n Node<T> tmp = z.rightSibling;\n z.rightSibling = leftChild;\n leftChild.leftSibling = z;\n tmp.leftSibling = rightChild;\n rightChild.rightSibling = tmp;\n }\n\n // remove z from the root list\n z.rightSibling.leftSibling = z.leftSibling;\n z.leftSibling.rightSibling = z.rightSibling;\n\n if (z == z.rightSibling) {\n min = null;\n } else {\n min = z.rightSibling;\n consolidate();\n }\n\n size--;\n }\n return z;\n }",
"private void heapify() {\n\t\tint currIndex = 0;\n\t\twhile (currIndex < heapSize) {\n\t\t\tT val = lstEle.get(currIndex);\n\t\t\tint leftSubtreeIndex = getLeftSubtree(currIndex);\n\t\t\tint rightSubtreeIndex = getRightSubtree(currIndex);\n\t\t\tT leftChildVal = leftSubtreeIndex < heapSize ? lstEle.get(leftSubtreeIndex) : null;\n\t\t\tT rightChildVal = rightSubtreeIndex < heapSize ? lstEle.get(rightSubtreeIndex) : null;\n\t\t\t\n\t\t\tT minVal = null;\n\t\t\tint minValIndex = -1;\n\t\t\tif(leftChildVal != null && rightChildVal != null){\n\t\t\t\tint compVal = leftChildVal.compareTo(rightChildVal); \n\t\t\t\tif(compVal < 0){\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t}else {\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(leftChildVal != null && leftChildVal.compareTo(val) < 0){\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t}else if (rightChildVal != null && rightChildVal.compareTo(val) < 0 ){\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\tMin Val : \" +minVal +\" --> \" +minValIndex);\n\t\t\t\n\t\t\tlstEle.set(currIndex, minVal);\n\t\t\tcurrIndex = minValIndex;\n\t\t\tlstEle.set(minValIndex, val);\n\t\t\t\n\t\t}\n\n\t}",
"public double cheapestInsert(Integer[] notSeen){\n List<Integer> list = new ArrayList<>();\n list.add(lastSeen);\n list.add(0);\n \n List<Integer> notSeenTemp = new ArrayList<>();\n for(Integer node: notSeen){\n notSeenTemp.add(node);\n }\n \n int i = 0;\n int chosenIndex=0;\n Integer chosenNode = null;\n \n //While all the inserts have not been done\n while (notSeenTemp.size() >0){\n double cheapestInsertCost = Double.MAX_VALUE;\n //For each position in the list\n for(i =0; i< list.size()-1; i++){\n //For each \"not seen\" node not yet inserted\n for(Integer nodeTemp: notSeenTemp){\n //find the cheapest insert\n if(cheapestInsertCost>(cost[list.get(i)][nodeTemp] + cost[nodeTemp][list.get(i+1)] - cost[list.get(i)][list.get(i+1)])){\n cheapestInsertCost=cost[list.get(i)][nodeTemp] + cost[nodeTemp][list.get(i+1)] - cost[list.get(i)][list.get(i+1)];\n chosenIndex = i+1;\n chosenNode = nodeTemp; \n }\n \n }\n \n }\n list.add(chosenIndex, chosenNode);\n notSeenTemp.remove(chosenNode);\n }\n \n double res =0;\n for(i = 0; i< list.size()-1; i++){\n res+= cost[list.get(i)][list.get(i+1)];\n }\n return res;\n }",
"static\nNode sortedInsert(Node head, Node newNode) \n\n{ \n\nNode current; \n\n\n// if list is empty \n\nif\n(head == \nnull\n) \n\nhead = newNode; \n\n\n// if the node is to be inserted at the beginning \n\n// of the doubly linked list \n\nelse\nif\n(head.data >= newNode.data) \n\n{ \n\nnewNode.next = head; \n\nnewNode.next.prev = newNode; \n\nhead = newNode; \n\n} \n\n\nelse\n\n{ \n\ncurrent = head; \n\n\n// locate the node after which the new node \n\n// is to be inserted \n\nwhile\n(current.next != \nnull\n&& \n\ncurrent.next.data < newNode.data) \n\ncurrent = current.next; \n\n\n/* Make the appropriate links */\n\nnewNode.next = current.next; \n\n\n// if the new node is not inserted \n\n// at the end of the list \n\nif\n(current.next != \nnull\n) \n\nnewNode.next.prev = newNode; \n\n\ncurrent.next = newNode; \n\nnewNode.prev = current; \n\n\n} \n\nreturn\nhead; \n\n}",
"public ListNode insertionSortList(ListNode head) {\n ListNode dummy = new ListNode(0);\n ListNode prev = dummy;\n ListNode node = head;\n\n while (node != null) {\n ListNode temp = node.next;\n\n /* Before insert, the prev is at the last node of the sorted list.\n Only the last node's value is larger than the current inserting node\n should we move the temp back to the head*/\n if (prev.val >= node.val)\n prev = dummy;\n\n while (prev.next != null && prev.next.val < node.val) {\n prev = prev.next;\n }\n\n // insert between prev and prev.next\n node.next = prev.next;\n prev.next = node;\n\n // prev = dummy; // Don't set prev to the head of the list after insert\n node = temp;\n }\n return dummy.next;\n }",
"public Node binomialHeapMinimum() {\n\t\tNode y = null;\n\t\tNode x = this.head;\n\t\tint min = Integer.MAX_VALUE;\n\t\twhile(x!=null) {\n\t\t\tif (x.key < min) {\n\t\t\t\tmin = x.key;\n\t\t\t\ty = x;\n\t\t\t}\n\t\t\tx = x.rightSibling;\n\t\t}\n\t\treturn y;\n\t}",
"private Node smallest(Node p){\n if(p == null){\n return null;\n }\n Node smallest = p;\n while(smallest.left!=null){\n smallest = smallest.left;\n }\n return smallest;\n }",
"public void insert(int value) {\n\t\t\n\t\tNode temp =new Node(value); // created object name temp (creating NODE) that have 2 contain data and next\n\t\t\n\t\t// no node available therefore this is 1st node\n\t\tif(this.head==null) { \n\t\t\thead = temp; // head pointed to temp\n\t\t}\n\t\telse {\n\t\t\t// this is not the first node to be inserted\n\t\t\ttemp.next = head; // head ke contain temp ke next me copy kiye\n\t\t\thead = temp; // temp pointed(next) copy into head\n\n\t\t}\n\t}",
"private Node<Value> min(Node<Value> x)\r\n {\r\n while (x.left != null) x = x.left;\r\n return x;\r\n }",
"Node minValueNode(Node node) \n { \n Node current = node; \n \n /* loop down to find the leftmost leaf */\n while (current.left != null) \n current = current.left; \n \n return current; \n }",
"public ListNode insertionSortList(ListNode head) {\n if ( head == null || head.next == null) {\n return head;\n }\n ListNode dummy = new ListNode(0);\n\n ListNode cur = head;\n\n while ( cur != null ) {\n ListNode next = cur.next;\n ListNode newCur = dummy;\n while ( newCur.next != null && newCur.next.val <= cur.val ) {\n newCur = newCur.next;\n }\n cur.next = newCur.next;\n newCur.next = cur;\n\n cur = next;\n }\n\n return dummy.next;\n }",
"private void insertAux2(K key, V val) {\n if(root == null) { //empty tree\n X = new Node(key, val);\n root = X;\n return;\n }\n Node temp = root;\n while(true) {\n int cmp = key.compareTo(temp.key);\n if (cmp < 0 && temp.left != null) { //go left\n comparisons += 1;\n temp = temp.left;\n } else if (cmp < 0 && temp.left == null) { //it goes in the next left\n comparisons += 1;\n X = new Node(key, val);\n temp.left = X;\n X.parent = temp;\n break;\n }\n if (cmp > 0 && temp.right != null) { //go right\n comparisons += 1;\n temp = temp.right;\n } else if (cmp > 0 && temp.right == null) { //it goes in the next right\n comparisons += 1;\n X = new Node(key, val);\n temp.right = X;\n X.parent = temp;\n break;\n }\n if(cmp == 0) { //no doubles, overlap pre-existing node\n comparisons += 1;\n temp.key = key;\n temp.val = val;\n X = temp;\n break;\n }\n }\n }",
"static int findpredecessor(Node tmp)\n {\n int max=tmp.val;\n while(tmp.right!=null)\n {\n max=tmp.right.val;\n tmp=tmp.right;\n }\n return max;\n }",
"public boolean insertFront(int value) {\n if(size == k) return false;\n DoublyLinkedList temp = new DoublyLinkedList(value);\n DoublyLinkedList curr = head.next;\n head.next = temp;\n temp.prev = head;\n temp.next = curr;\n curr.prev = temp;\n size += 1;\n return true;\n}",
"private Node getSuccessorBasedOnMin(Node node) {\n Node successor = localMinAndItsParent(node)[0];\n Node successorParent = localMinAndItsParent(node)[1];\n if (successor != node.rightChild) {\n successorParent.leftChild = successor.rightChild;\n successor.rightChild = node.rightChild;\n }\n return successor;\n }",
"private static <K extends Comparable<? super K>, V> Node<K, V> findSmallestNode(Node<K, V> root) {\n @Var Node<K, V> current = root;\n while (current.left != null) {\n current = current.left;\n }\n return current;\n }",
"public int findSmallest() {\n\t/*\n\t Cases:\n\t If last or only node, return datum\n\n\t Otherwise:\n\t Return whatever is smaller: \n\t The datum of the current node,\n\t or the datum of the next node \n\t*/ \n\tif (next == null) return datum; \n\telse {\n\t int nextDatum = next.findSmallest();\n\t if (nextDatum < datum) return nextDatum;\n\t else return datum;\n\t}\n }",
"public Node<E> remove_min_node(){\r\n if (theData.size() <= 0) return null;\r\n\r\n int index = 0 ;\r\n E min = theData.get(0).getData();\r\n //searching min element\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (min.compareTo(theData.get(i).getData()) > 0 ){\r\n min = theData.get(i).getData();\r\n index = i;\r\n }\r\n }\r\n\r\n //copying element for return\r\n Node<E> item = new Node<E>(theData.get(index).getData());\r\n item.data = theData.get(index).getData();\r\n item.count = theData.get(index).getCount();\r\n\r\n //removing all occurances\r\n while (theData.get(index).count > 1)\r\n theData.get(index).count-=1;\r\n\r\n if (theData.get(index).count == 1 ){\r\n\r\n if(index != theData.size()-1){\r\n theData.set(index, theData.remove(theData.size() - 1));\r\n fixHeap(index);\r\n }else\r\n theData.remove(theData.size() - 1);\r\n }\r\n return item;\r\n }",
"private int min(int index1, int index2) {\n \t\tNode node1 = getNode(index1);\n \t\tNode node2 = getNode(index2);\n \t\tif (node1 == null) {\n \t\t\treturn index2;\n \t\t} else if (node2 == null) {\n \t\t\treturn index1;\n \t\t} else if (node1.myPriority < node2.myPriority) {\n \t\t\treturn index1;\n \t\t} else {\n \t\t\treturn index2;\n \t\t}\n \t}",
"private void setMinNode(BinaryNode current, int min) {\n if (getMinNodeFromSeq() == null) {\n if ((int) current.getWert() >= min) {\n setMinNodeFromSeq(current);\n }\n\n } else {\n if ((int) current.getWert() < (int) getMinNodeFromSeq().getWert()) {\n setMinNodeFromSeq(current);\n }\n }\n }",
"public void insertFirst(int val) {\r\n\t\tif(isFull()) return;\r\n\t\t// If we are inserting at front end for the first time, then make it point to front of the array, that is maxSize. i treated maxsize-1 index as front end\r\n\t\telse if(front==-1 || front ==0) front = maxSize-1;\r\n\t\t// else decrement the front pointer, maxSize is for dealing with negative values\r\n\t\telse front = (front+maxSize-1)%maxSize;\r\n\t\tarr[front] = val;\r\n\t}",
"void insert(int value){\r\n\t\tNode node = new Node(value);\r\n\t\t \r\n\t\tif( this.root == null ) {\r\n\t\t\tthis.root = node ;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t \r\n\t\tNode tempNode = this.root , parent = this.root;\r\n\t\t\r\n\t\twhile( tempNode != null ) {\r\n\t\t\tparent = tempNode;\r\n\t\t\tif( node.value >= tempNode.value ) {\r\n\t\t\t\ttempNode = tempNode.right;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttempNode = tempNode.left ;\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t\tif( node.value < parent.value ) {\r\n\t\t\tparent.left = node ;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tparent.right = node ;\r\n\t\t}\r\n\t}",
"public void deleteNodeAboveValue2(int val) {\n\t\tNode helper = new Node(0);\n\t helper.next = head;\n\t Node p = helper;\n\t \n\t while(p.next != null){\n\t if(p.next.value > val){\n\t \tNode next = p.next;\n\t p.next = next.next; \n\t }else{\n\t p = p.next;\n\t }\n\t }\n\t \n\t head = helper.next;\n\t \n\t}",
"public void insert(int value) {\r\n\t\tif (this.empty) {\r\n\t\t\tthis.empty = false;\r\n\t\t\tthis.size++;\r\n\t\t\tHeapTreesArray[0] = new HeapNode(value);\r\n\t\t\tthis.min = HeapTreesArray[0];\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tHeapNode hN = new HeapNode(value);\r\n\t\tBinomialHeap bH = new BinomialHeap();\r\n\t\tbH.insert(value);\r\n\t\tthis.meld(bH);\r\n\t\tif (this.min.value > value) {\r\n\t\t\tthis.min = hN;\r\n\t\t}\r\n\t}",
"public void insertAtStart(int val)\n {\n List nptr = new List(val, null, null); \n if(start == null)\n {\n start = nptr;\n end = start;\n }\n else\n {\n start.setListPrev(nptr);\n nptr.setListNext(start);\n start = nptr;\n }\n size++;\n }",
"private Node removeMin(Node node){\n if(node == null)\n return null;\n else if(node.left == null) {//use right child to replace this node (min value node)\n if(node.count!=0){ //multiple value in same node\n node.count--;\n return node;\n }\n else{\n decDepth(node.right); //maintain depth when chain in right tree\n return node.right;\n }\n }\n\n //walk through left branch\n node.left = removeMin(node.left);\n if(node!=null) node.size--; // the min value must be removed\n return node;\n }",
"public void deleteMin() {\r\n\t\tif (empty())\r\n\t\t\treturn;\r\n\t\telse {\r\n\t\t\tif (this.size > 0) {\r\n\t\t\t\tthis.size--;\r\n\t\t\t}\r\n\t\t\tif (this.size == 0) {\r\n\t\t\t\tthis.empty = true;\r\n\t\t\t}\r\n\r\n\t\t\tHeapNode hN = this.min;\r\n\t\t\tint rnkCount = 0;\r\n\t\t\tHeapNode hNIterator = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\trnkCount++;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t}\r\n\t\t\tthis.HeapTreesArray[rnkCount] = null;\r\n\t\t\tif (hN != null) {\r\n\t\t\t\thNIterator = hN.theMostLeftChild;\r\n\t\t\t}\r\n\t\t\trnkCount--;\r\n\t\t\tBinomialHeap bH = new BinomialHeap();\r\n\t\t\tif (hNIterator != null) {\r\n\t\t\t\tbH.empty = false;\r\n\t\t\t}\r\n\t\t\twhile (hNIterator != null) {\r\n\t\t\t\tbH.HeapTreesArray[rnkCount] = hNIterator;\r\n\t\t\t\thNIterator = hNIterator.rightBrother;\r\n\t\t\t\tbH.HeapTreesArray[rnkCount].rightBrother = null;\r\n\t\t\t\tif (hNIterator != null) {\r\n\t\t\t\t\thNIterator.leftBrother = null;\r\n\t\t\t\t}\r\n\t\t\t\trnkCount = rnkCount - 1;\r\n\t\t\t}\r\n\t\t\tthis.min = null;\r\n\t\t\tfor (int i = 0; i < this.HeapTreesArray.length; i++) {\r\n\t\t\t\tif (this.min == null) {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tthis.min = this.HeapTreesArray[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (this.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\tif (this.HeapTreesArray[i].value < this.min.value) {\r\n\t\t\t\t\t\t\tthis.min = this.HeapTreesArray[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\r\n\t\t\tif (!bH.empty()) {\r\n\t\t\t\tfor (int i = 0; i < bH.HeapTreesArray.length; i++) {\r\n\t\t\t\t\tif (bH.min == null) {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (bH.HeapTreesArray[i] != null) {\r\n\t\t\t\t\t\t\tif (bH.HeapTreesArray[i].value < bH.min.value) {\r\n\t\t\t\t\t\t\t\tbH.min = bH.HeapTreesArray[i];\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\tthis.meld(bH);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"void insertHelper(Node root, int val) {\n\t\tif (root == null) {\n\t\t\troot = new Node(val);\n\t\t} else if (root.item < val) {\n\t\t\troot.right = insertHelper(root.right, val);\n\t\t} else {\n\t\t\troot.left = insertHelper(root.left, val);\n\t\t}\n\t\treturn root;\n\t}",
"private int min(int index1, int index2) {\n // TODO: YOUR CODE HERE\n E first = getElement(index1);\n E second = getElement(index2);\n if (first == null) { //if null then just return the other one?\n return index2;\n }\n if (second == null) {\n return index1;\n }\n if (first.compareTo(second) > 0) {\n return index2;\n } else {\n return index1;\n }\n }",
"public BinaryNode getMinNode(BinaryNode current, int min) throws Exception {\n getMinNodeHelper(current, min);\n if (getMinNodeFromSeq() == null) {\n throw new Exception(\"Alle Knoten sind kleiner als der angegebene Wert!\");\n }\n return getMinNodeFromSeq();\n }",
"public T poll( ) {\n Node<T> current = head;\n Node<T> lowest = head;\n\n while(current != null) {\n if (current.getData().compareTo(lowest.getData()) < 0){\n lowest = current;\n }\n current = current.getNext();\n }\n\n //remove it from the linked list of nodes\n if (lowest != null){\n Node<T> prev = lowest.getPrevious();\n if(prev != null){\n prev.setNext(lowest.getNext());\n }\n Node<T> next = lowest.getNext();\n if (next != null){\n next.setPrevious(lowest.getPrevious());\n }\n if (lowest == head){\n head = next;\n }\n return lowest.getData();\n }\n return null;\n\n // return\n }",
"public void pushFront(DoubleLinkedList other) {\n\n\t\tDoubleLinkedList l = other.clone();\n\t\tDLNode n = l.tail;\n\n\t\tfor (int i = 0; i < l.nodeCounter(); i++) {\n\n\t\t\tif (n.val != Integer.MIN_VALUE) {\n\t\t\t\tthis.pushFront(n.val);\n\t\t\t} else {\n\t\t\t\tthis.pushFrontRecursive(n.list);\n\t\t\t}\n\t\t\tn = n.prev;\n\t\t}\n\t}",
"public void removeSmaller(double value){\r\n\t DoubleNode cursor2; \r\n\tfor(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\tif(cursor.getData() < value){\r\n\t\t\tif(cursor == head){\r\n\t\t\t\thead = head.getLink(); \r\n\t\t\t\tmanyNodes--; \r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcursor2 = cursor; \r\n\t\t\t\tthis.removeCurrent();\r\n\t\t\t\tcursor = cursor2;\r\n\t\t\t\tmanyNodes--; \r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n }",
"public static void insertMinToRear(Queue<SiteStats> list,\n int min_index)\n {\n int min_value = 0;\n SiteStats min_node = list.peek();\n int s = list.size();\n for (int i = 0; i < s; i++) {\n SiteStats currentSiteStats = list.peek();\n int currentVisits = currentSiteStats.getNumVisits();\n list.poll();\n if (i != min_index)\n list.add(currentSiteStats);\n else {\n min_node = currentSiteStats;\n min_value = currentVisits;\n }\n }\n list.add(min_node);\n }",
"private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }",
"static int downToZero(Node root) {\n /*\n * Write your code here.\n */\n Queue<Node> queue = new PriorityQueue<>();\n queue.add(root);\n int min = 100001;\n while (!queue.isEmpty()){\n Node current = queue.poll();\n if(current.value <= 4){\n if (current.value == 4){\n min = current.depth + 3;\n return min;\n }\n min = current.depth+current.value;\n return min;\n }\n Node toAdd1 = new Node(current.value-1, current.depth+1);\n queue.add(toAdd1);\n for(int i = 2; i<=Math.sqrt(current.value); i++){\n if(current.value%i==0){\n Node toAdd = new Node(current.value/i, current.depth+1);\n queue.add(toAdd);\n }\n }\n }\n return min;\n }",
"void updateMin(StockNode a){\n\t\tif(minNode==null){\r\n\t\t\tminNode=a;\r\n\t\t} else {\r\n\t\t\tif(a.stockValue<minNode.stockValue){\r\n\t\t\t\tminNode=a;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public ListNode partition(ListNode head, int x) {\n ListNode cur = new ListNode(0);\n cur.next = head;\n head = cur;\n \n ListNode small=cur, big=cur;\n while(small.next!=null && small.next.val<x)\n small = small.next;\n big = small.next;\n \n if(big!=null){\n while((cur=big.next)!=null){\n if(cur.val>=x){\n big = cur;\n }else{\n big.next = cur.next;\n cur.next = small.next;\n small.next = cur;\n small = small.next;\n }\n }\n }\n return head.next;\n}",
"public static Linkedlist insertAtFirst(Linkedlist list,int d)\r\n\t {\r\n\t\t Node newNode = new Node(d);\r\n\t\t newNode.data=d;\r\n\t\t if(head==null)\r\n\t\t {\r\n\t\t\t list.head=newNode;\r\n\t\t\t return list;\r\n\t\t }\r\n\t\t \r\n\t Node temp = list.head;\r\n\t head = newNode;\r\n\t head.next = temp;\r\n\t \t \r\n\t\t return list;\r\n\t }",
"public Website treeMinimum(Website site) {\r\n\t\tWebsite localSite = site; // Local pointer to given Site\r\n\t\twhile (localSite.getLeft() != null&&localSite.getLeft().getPageRank()!=0) { // Traversing Loop, stops at null node\r\n\t\t\tlocalSite = localSite.getLeft(); // incrementation Condition\r\n\t\t}\r\n\t\treturn localSite; // Returns minimum\r\n\t}",
"public BSTMapNode findMin() \n\t{\n\t\t\n\t\t\n\t\treturn null;\n\t}",
"public void recInsertNode(TriLinkNode curNode)\r\n {\r\n if(curNode.i1==true&&curNode.i2==true)\r\n {\r\n if(temp.v1<curNode.v1)\r\n {\r\n if(curNode.left!=null)\r\n {\r\n recInsertNode(curNode.left);\r\n }else\r\n {\r\n curNode.left=temp;\r\n curNode.left.up=curNode;\r\n }\r\n }else if(temp.v1>curNode.v2)\r\n {\r\n if(curNode.right!=null)\r\n {\r\n recInsertNode(curNode.right);\r\n }else\r\n {\r\n curNode.right=temp;\r\n curNode.right.up=curNode;\r\n }\r\n }else if(temp.v1>curNode.v1&&temp.v1<curNode.v2)\r\n {\r\n if(curNode.down!=null)\r\n {\r\n recInsertNode(curNode.down);\r\n }else\r\n {\r\n curNode.down=temp;\r\n curNode.down.up=curNode;\r\n }\r\n }\r\n }else if(temp.v1>curNode.v1)\r\n {\r\n curNode.v2=temp.v1;\r\n curNode.d2=false;\r\n curNode.i2=true;\r\n }else if(temp.v1<curNode.v1&&curNode.left!=null)\r\n {\r\n recInsertNode(curNode.left);\r\n }else if(temp.v1<curNode.v1&&curNode.left==null)\r\n {\r\n curNode.left=temp;\r\n }\r\n }",
"public void insert(int x) {\n\n Node temp = new Node(x); // Create a node with the value x.\n\n // Take care of the case where the LL object is empty.\n if (head == null)\n head = temp;\n\n // Deal with the standard case.\n else {\n \n // Insertion into the front of the LL object.\n if (head.data > x) {\n temp.next = head;\n head = temp;\n } \n\n else {\n\n // Set up helper reference to refer to the node that the inserted\n // node should be inserted after.\n Node helper = head; \n while ((helper.next != null) && (helper.next.data < x)) \n helper = helper.next;\n\n // Adjust necessary references.\n temp.next = helper.next;\n helper.next = temp;\n }\n }\n }",
"Node minValueNode(Node Node) {\n Node current = Node;\n\n /* loop down to find the leftmost leaf */\n while (current.left != null) {\n current = current.left;\n }\n\n return current;\n }",
"public AnyType deleteMin() throws NoSuchElementException {\n\t\t\n\t\t// if the heap is empty, throw a NoSuchElementException\n\t\tif(this.size() == 0){\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\n\t\t// store the minimum item so that it may be returned at the end\n\t\tAnyType minValue = this.findMin();\n\n\t\t// replace the item at minIndex with the last item in the tree\n\t\tAnyType lastValue = this.array[this.size()-1];\n\t\tthis.array[0] = lastValue;\n\t\tthis.array[this.size() - 1] = null;\n\t\t\n\t\t// update size\n\t\tthis.currentSize--;\n\n\t\t// percolate the item at minIndex down the tree until heap order is restored\n\t\t// It is STRONGLY recommended that you write a percolateDown helper method!\n\t\tthis.percolateDown(0);\n\t\t\n\t\t// return the minimum item that was stored\n\t\treturn minValue;\n\t}",
"int getMin() \n\t{ \n\t\tint x = min.pop(); \n\t\tmin.push(x); \n\t\treturn x; \n\t}",
"private static int getCheapestEdgeToExploredNodes(int nextMinValNode, \n\t\t\tHashMap<Integer,HashMap<Integer,Double>> sourceGTree, \n\t\t\tLinkedList<Integer> nodesInMstree) {\n int newNode=0;\n double cheapestWeight = Double.POSITIVE_INFINITY;\n\n\t/* looping over unexplored nodes from nextMinValNode */\n for (Map.Entry<Integer, Double> edge : sourceGTree.get(nextMinValNode).entrySet()) {\n\n /* not yet in mst */\n if (!nodesInMstree.contains(edge.getKey())) continue;\n\n /* this edge is not better */\n if ( edge.getValue() >= cheapestWeight ) continue;\n\n\t /* this is better , so save it */\n newNode = edge.getKey();\n cheapestWeight = edge.getValue();\n }\n\n return newNode;\n }",
"private Node min(Node node){\n if(node == null)\n return null;\n else if(node.left == null)\n return node;\n\n //walk left nodes\n return min(node.left);\n }",
"public void insert(int val, Node ptr) { // not sure\n\t\tif (full()) {\n\t\t\tNode nextNode = this.getNext();\n\t\t\tInternalNode newNode = new InternalNode(degree, null, val, ptr, nextNode, this);\n\t\t\tthis.next = newNode;\n\t\t\tif (nextNode != null) {\n\t\t\t\tnextNode.prev = newNode;\n\t\t\t}\n\t\t\tint newKey = this.redistribute();\n\n\t\t\tReference theParent = this.getParent();\n\t\t\tif (theParent == null) {\n\t\t\t\tnew InternalNode(degree, this, newKey, newNode, null, null);\n\t\t\t} else {\n\t\t\t\tNode parentNode = theParent.getNode();\n\t\t\t\tparentNode.insert(newKey, newNode);\n\t\t\t}\n\t\t} else {\n\t\t\tint index = findKeyIndex(val);\n\t\t\tif (val > keys[lastindex]) {\n\t\t\t\tindex = this.getLast() + 1;\n\t\t\t}\n\t\t\tthis.insertSimple(val, ptr, index);\n\t\t}\n\t}",
"public Node removeMin() {\n \t\t// TODO Complete this method!\n \t\tif (indexOfLeastPriority == 2) {\n \t\t\tNode toReturn = getNode(1);\n \t\t\tsetNode(1, null);\n \t\t\treturn toReturn;\n \t\t}\n \t\tint indexOfReplacement = indexOfLeastPriority - 1;\n \t\tNode nodeOfReplacement = getNode(indexOfReplacement);\n \t\tNode toRemove = getNode(1);\n \t\tsetNode(indexOfReplacement, null);\n \t\tsetNode(1, nodeOfReplacement);\n \t\tbubbleDown(1);\n \t\t//decrement IoLP\n \t\tindexOfLeastPriority--;\n \t\treturn toRemove;\n \t}",
"Node merge(Node first, Node second) {\n // If first linked list is empty\n if (first == null) {\n return second;\n }\n \n // If second linked list is empty\n if (second == null) {\n return first;\n }\n \n // Pick the smaller value\n if (first.data < second.data) {\n first.next = merge(first.next, second);\n first.next.prev = first;\n first.prev = null;\n return first;\n } else {\n second.next = merge(first, second.next);\n second.next.prev = second;\n second.prev = null;\n return second;\n }\n }",
"private Node min(Node x) {\n if (x.left == null)\n return x;\n else\n return min(x.left);\n }",
"private Node minNode(Node node) {\n Node updt = node;\n // Finding the leftmost leaf\n while (updt.left != null) {\n updt = updt.left;\n }\n return updt;\n }",
"public void insert(int value) {\n var node = new Node(value);\n\n if (root == null) {\n root = node;\n return;\n }\n\n var current = root;\n while (true) {\n if (value < current.value) {\n if (current.leftChild == null) {\n current.leftChild = node;\n break;\n }\n current = current.leftChild;\n } else {\n if (current.rightChild == null) {\n current.rightChild = node;\n break;\n }\n current = current.rightChild;\n }\n }\n }",
"public TreeNode insert(TreeNode root, int key) {\n if (root == null) {\n root = new TreeNode(key);\n return root;\n }\n TreeNode cur = root, par = root;\n while (cur != null) {\n par = cur;\n if (cur.key == key) {\n return root;\n }\n if (key < cur.key) {\n cur = cur.left;\n } else {\n cur = cur.right;\n }\n }\n // this is when cur is null (out of the while)\n if (key < par.key) {\n par.left = new TreeNode(key);\n } else {\n par.right = new TreeNode(key);\n }\n \n return root;\n }",
"public int findSecondMinimum(TreeNode node){\n if(node == null) return 0;\n findSecondMinimum(node.left);\n findSecondMinimum(node.right);\n int tempMin = Integer.MAX_VALUE;\n if(node.left != null && node.right!=null) {\n if (node.left.data == node.data) tempMin = node.right.data;\n else tempMin = node.left.data;\n }\n if(min > tempMin) {\n min = tempMin;\n }\n return min;\n }",
"public void deleteNodeAboveValue1(int value)\n\t{\n\t\tif(head == null){\n return;\n }\n\t\tIntLinkedList myList = new IntLinkedList();\n\t\t\n Node currNode = head;\n\n while (currNode != null) {\n \tif(currNode.value <= value)\n \t{\n \t\tmyList.append(currNode.value);\n \t}\n \tcurrNode = currNode.next;\n } \n head = myList.head;\n\t}",
"private static void disjkstraAlgorithm(Node sourceNode, GraphBuilder graph){\n PriorityQueue<Node> smallestDisQueue = new PriorityQueue<>(graph.nodeArr.size(), new Comparator<Node>() {\n @Override\n public int compare(Node first, Node sec) {\n if(first.distance == Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return 0;\n }\n else if(first.distance == Integer.MAX_VALUE && sec.distance != Integer.MAX_VALUE){\n return 1;\n } else if(first.distance != Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return -1;\n }\n else\n return (int) (first.distance - sec.distance);\n }\n });\n\n smallestDisQueue.add(sourceNode); //add the node to the queue\n\n // until all vertices are know get the vertex with smallest distance\n\n while(!smallestDisQueue.isEmpty()) {\n\n Node currNode = smallestDisQueue.poll();\n// System.out.println(\"Curr: \");\n// System.out.println(currNode);\n if(currNode.known)\n continue; //do nothing if the currNode is known\n\n currNode.known = true; // otherwise, set it to be known\n\n for(Edge connectedEdge : currNode.connectingEdges){\n Node nextNode = connectedEdge.head;\n if(!nextNode.known){ // Visit all neighbors that are unknown\n\n long weight = connectedEdge.weight;\n if(currNode.distance == Integer.MAX_VALUE){\n continue;\n }\n else if(nextNode.distance == Integer.MAX_VALUE && currNode.distance == Integer.MAX_VALUE) {\n continue;\n }\n\n else if(nextNode.distance> weight + currNode.distance){//Update their distance and path variable\n smallestDisQueue.remove(nextNode); //remove it from the queue\n nextNode.distance = weight + currNode.distance;\n\n smallestDisQueue.add(nextNode); //add it again to the queue\n nextNode.pathFromSouce = currNode;\n\n// System.out.println(\"Next: \");\n// System.out.println(nextNode);\n }\n }\n }\n// System.out.println(\"/////////////\");\n }\n }",
"private static int searchSmallest(List<Integer> input) {\n\t\tint left = 0;\n\t\tint right = input.size()-1;\n\t\t\n\t\twhile(left < right) {\n\t\t\tint mid = left + (right-left)/2 + 1; System.out.println(\"mid=\" + mid);\n\t\t\t\n\t\t\tif(input.get(left) > input.get(mid)) {//smallest in left half\n\t\t\t\tright = mid-1;\n\t\t\t}else {\n\t\t\t\tleft = mid+1;\n\t\t\t}\n\t\t}\n\t\treturn left;//left=right now\n\t}",
"public static void insert(List<Integer> values, int next) {\r\n\r\n int i = next;\r\n while (i > 0 && values.get(i) < values.get(i - 1)) {\r\n swap(values, i, i - 1);\r\n i = i - 1;\r\n } // while\r\n\r\n }",
"public final void min() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\tpush(topMostValue);\n\t\t\t} else {\n\t\t\t\tpush(secondTopMostValue);\n\t\t\t}\n\t\t}\n\t}",
"protected BinaryNode<AnyType> findMin(BinaryNode<AnyType> t) {\n\t\tif (t != null)\n\t\t\twhile (t.left != null)\n\t\t\t\tt = t.left;\n\n\t\treturn t;\n\t}",
"private BinaryNode<AnyType> findMin( BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t == null )\r\n\t\t\treturn null;\r\n\t\telse if( t.left == null )\r\n\t\t\treturn t;\r\n\t\treturn findMin( t.left );\r\n\t}",
"public Node binomialHeapExtractMin() {\n\t\tNode x = this.deleteMin();\n\t\t\n\t\t// make a new heap\n\t\t// reverse the child list of x and assign it to the head of new heap.\n\t\tBinomialHeap hPrime = new BinomialHeap();\n\t\thPrime.head = reverseLinkedList(x.leftChild);\n\t\t\n\t\t// perform union on the child tree list of x and the original heap\n\t\tBinomialHeap h = this.binomialHeapUnion(hPrime);\n\t\tthis.head = h.head;\n\t\t\n\t\t// return the minimum node\n\t\treturn x;\n\t}",
"public boolean insertFront(int value) {\n if (cnt == size)\n return false;\n Node node = new Node(value);\n if (head == null) {\n head = node;\n tail = node;\n node.pre = node;\n node.next = node;\n } else {\n node.next = head;\n node.pre = head.pre;\n head.pre.next = node;\n head.pre = node;\n head = node;\n }\n cnt++;\n return true;\n }",
"public void insertAtPos(int val , int pos)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if (pos == 1)\n\n {\n\n insertAtStart(val);\n\n return;\n\n } \n\n Node ptr = start;\n\n for (int i = 2; i <= size; i++)\n\n {\n\n if (i == pos)\n\n {\n\n Node tmp = ptr.getLinkNext();\n\n ptr.setLinkNext(nptr);\n\n nptr.setLinkPrev(ptr);\n\n nptr.setLinkNext(tmp);\n\n tmp.setLinkPrev(nptr);\n\n }\n\n ptr = ptr.getLinkNext(); \n\n }\n\n size++ ;\n\n }",
"private AvlNode<E> findMin(AvlNode<E> node){\n if(node.left == null){\n return node;\n } else {\n return findMin(node.left);\n }\n }",
"int Smallest()throws EmptyException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyException();\n\t\t}\n\t\tNode curr = head;\n\t\tint min = curr.data;\n\t\twhile (curr.next != null) {\n\t\t\tif (curr.next.data < min) {\n\t\t\t\tmin = curr.next.data;\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn min;\n\t}",
"void dijkstra(int strtval){\n PriorityQueue<Integer> pq = new PriorityQueue<>(new Comparator<Integer>(){\n @Override\n public int compare(Integer i1, Integer i2){\n Node n1 = dlist.get(i1);\n Node n2 = dlist.get(i2);\n return n1.getDist() > n2.getDist()?1 : n1.getDist() < n2.getDist()? -1:0;\n }\n });\n\n Node stnode = dlist.get(strtval);\n stnode.setval(strtval);\n stnode.setDist(0);\n seen.add(strtval);\n pq.add(strtval);\n while(!pq.isEmpty()){\n strtval = pq.poll();\n LinkedList<Node> alist = grp.getOrDefault(strtval, null);\n if(alist != null){\n for(Node node : alist){\n //see distance and then decide if needs to be added to qu is not seen.\n int nval = node.getval();\n int nweg = node.getDist();\n int ddist = dlist.get(nval).getDist();\n int odist = dlist.get(strtval).getDist();\n if(ddist > odist+nweg){\n dlist.get(nval).setval(strtval);\n dlist.get(nval).setDist(odist+nweg);\n }\n //if alerady seen do not cal the distance again.\n if(!seen.contains(nval)){\n seen.add(nval);\n pq.add(nval);\n }\n }\n }\n }\n //print here:\n for(int key: dlist.keySet()){\n System.out.println(key+\" dist:\"+dlist.get(key).getDist()+\" prev:\"+dlist.get(key).getval());\n }\n }",
"public Vertex getNextVertex(List<Vertex> unvisitedNodes){\n Vertex smallest = null;\n for(Vertex vertex: unvisitedNodes){\n if(smallest==null)\n smallest = vertex;\n else if(distance.get(vertex)< distance.get(smallest))\n smallest = vertex;\n }\n return smallest;\n }",
"protected final IntervalNode treeMin() {\n\tIntervalNode x = this;\n\twhile(x.left != IntervalNode.nullIntervalNode) {\n\t x = x.left;\n\t}\n\treturn(x);\n }",
"@Test\n\tpublic void testLLInsertOrderLowFirst(){\n\t\tPlayer testSubj1 = new Player();\n\t\ttestSubj1.setName(\"Bob\");\n\t\ttestSubj1.setWins(10);\n\t\tPlayer testSubj2 = new Player();\n\t\ttestSubj2.setName(\"Brett\");\n\t\ttestSubj2.setWins(5);\n\t\tLinkedList testList = new LinkedList();\n\t\ttestList.LLInsert(testSubj2);\n\t\ttestList.LLInsert(testSubj1);\n\t\tassertEquals(\"Bob\",testList.root.getName());\n\t}",
"public AnyType findMinimum(Comparator<AnyType> cmp) {\n LinkedListIterator<AnyType> itr = first();\n AnyType minimum = itr.current.element;\n while (itr.current.next != null) {\n //System.out.println(front.element);\n if (cmp.compare(itr.current.next.element, minimum) < 0) {\n minimum = itr.current.next.element;\n }\n itr.advance();\n }\n return minimum;\n }",
"private static int minTime(Map<Integer, Map<Integer, Integer>> graph, int s, int d) {\n //System.out.println(\"minTime: \" + s + \",\" + d);\n int min = Integer.MAX_VALUE;\n int[] minAr = new int[3];\n boolean found = false;\n LinkedList<Integer> queue = new LinkedList<>();\n HashSet<Integer> visited = new HashSet<>(graph.size());\n\n queue.add(s);\n visited.add(s);\n\n while (queue != null && queue.peek() != null) {\n int i = queue.poll();\n Map<Integer, Integer> map = graph.get(i);\n if(map!=null){\n for (Integer key : map.keySet()) {\n if (!visited.contains(key)) {\n queue.add(key);\n visited.add(key);\n\n if (min > map.get(key)) {\n min = map.get(key);\n minAr[0] = i;\n minAr[1] = key;\n minAr[2] = min;\n\n //System.out.println( \"minAr inside: \" + minAr[0] + \"-\"+ minAr[1] + \"-\" +minAr[2]);\n }\n\n if (key == d) {\n found = true;\n queue = null;\n break;\n\n }\n }\n }\n }\n }\n if (found) {\n //System.out.println(\"minAr: \" + minAr[0] + \"-\" + minAr[1] + \"-\" + minAr[2]);\n Map<Integer, Integer> map1 = graph.get(minAr[0]);\n map1.remove(minAr[1]);\n graph.put(minAr[0], map1);\n Map<Integer, Integer> map2 = graph.get(minAr[1]);\n map2.remove(minAr[0]);\n graph.put(minAr[1], map2);\n System.out.println(\"min : \" + min);\n\n min = (min == Integer.MAX_VALUE) ? 0 : min;\n } else {\n System.out.println(\"no connection\");\n min = 0;\n }\n return min;\n }",
"private Node<Value> delMin(Node<Value> x)\r\n {\r\n if (x.left == null) return x.right;\r\n x.left = delMin(x.left);\r\n return x;\r\n }",
"public void insertNode(int val)\r\n {\r\n temp=new TriLinkNode();\r\n temp.v1=val;\r\n temp.d1=false;\r\n temp.i1=true;\r\n if(root==null)\r\n {\r\n root=temp;\r\n }else\r\n {\r\n recInsertNode(root);\r\n }\r\n \r\n }",
"public static Node insert(Node root, int val) {\n if (root == null) {\n return new Node(val);\n } else {\n //IF THE VALUE ROOT IS GREATER THEN THE VAL\n //GO TO LEFT\n //AND CALL INSERT METHOD (IF NULL ADD A NEW NODE WITH THE VALUE VAL)\n if (val <= root.data) {\n root.left = insert(root.left, val);\n } else {\n //IF THE VALUE OF ROOT IS SMALLER THEN THE VAL\n //GO TO RIGHT\n //AND CALL INSERT METHOD (IF NULL ADD A NEW NODE WITH THE VALUE VAL)\n root.right = insert(root.right, val);\n }\n }\n return root;\n }",
"public static Node inorderSuccessor(Node x) {\n Node cursor = null;\n if (x == null) {\n return cursor;\n }\n\n if (x.right != null) {\n cursor = x.right;\n while (cursor != null) {\n cursor = cursor.left;\n }\n return cursor;\n } else {\n cursor = x.parent;\n while (cursor != null && cursor.val < x.val) {\n cursor = cursor.parent;\n }\n return cursor;\n }\n }",
"private IAVLNode minPointer(IAVLNode node) \r\n\t {\r\n\t\t\twhile (node.isRealNode())\r\n\t\t\t\tnode = node.getLeft();\r\n\t\t\treturn node.getParent();\t\r\n\t }",
"public TreeNode insert(int value) {\n TreeNode newNode = new TreeNode(value);\n\n // CASE when Root Is NULL\n if (root == null) {\n this.root = newNode;\n } else {\n // CASE when Root is Not NULL\n TreeNode currentlyPointedNode = root;\n boolean keepWalking = true;\n\n while (keepWalking) {\n // CASE : Inserted Value BIGGER THAN Current Node's Value\n if (value >= currentlyPointedNode.value) {\n // CASE : current node's Right Child is NULL\n if (currentlyPointedNode.rightChild == null) {\n\n // If its null, just assigning the new node to the right place\n currentlyPointedNode.rightChild = newNode;\n keepWalking = false;\n\n } else {\n // CASE WHEN current node's Right Child is not null , we need to keep walking right\n currentlyPointedNode = currentlyPointedNode.rightChild;\n }\n } else {\n // CASE : Inserted Value SMALLER THAN Current Node's Value\n\n // CASE WHEN current node's LEFT Child is null\n if (currentlyPointedNode.leftChild == null) {\n\n // If its null, just assigning the new node to the right place\n currentlyPointedNode.leftChild = newNode;\n keepWalking = false;\n } else {\n // CASE WHEN current node's Right Child is not null , we need to keep walking right\n currentlyPointedNode = currentlyPointedNode.leftChild;\n }\n\n }\n }\n }\n\n return root;\n }",
"public ListNode partition(ListNode head, int x) {\n if (head == null) return null;\n ListNode node = new ListNode(0);\n node.next = head;\n\n ListNode slow = node, fast = head, aFast = fast.next, bFast = node;//\n //慢指针slow是用来记录小于x的位置,出现一个小于x的数字就放在它的后面即可\n //快指针fast是用来找到小于x的节点,对于大于等于x的节点不用考虑\n //aFast是fast指针的后一个节点,bFast是fast指针前一个节点 -> [bFast][fast][aFast]\n while (fast != null) {\n if (fast.val >= x) {\n bFast = fast;\n fast = aFast;\n aFast = fast != null ? fast.next : null;\n } else {\n if (fast.val < x && slow.next == fast) {//这是种特殊情况\n slow = slow.next;\n bFast = fast;\n fast = aFast;\n aFast = fast != null ? fast.next : null;\n } else {\n //下面以遇到第一个2为例子\n bFast.next = aFast;//3->5\n fast.next = slow.next;//2->4\n slow.next = fast;//1->2\n fast = aFast;//fast->5\n slow = slow.next;//slow->2\n aFast = fast != null ? fast.next : null;//bFast不变,aFast变为fast的后面一个节点\n }\n }\n }\n return node.next;\n }",
"private BinaryNode<AnyType> findMin(BinaryNode<AnyType> t) {\r\n\t\tif (t == null)\r\n\t\t\treturn null;\r\n\t\telse if (t.left == null)\r\n\t\t\treturn t;\r\n\t\treturn findMin(t.left);\r\n\t}"
] | [
"0.69128275",
"0.6816189",
"0.6719842",
"0.6632663",
"0.65713084",
"0.65082604",
"0.63970095",
"0.63767254",
"0.63044447",
"0.62796515",
"0.6180368",
"0.6176464",
"0.6140593",
"0.6119384",
"0.60770154",
"0.6025924",
"0.602391",
"0.6010127",
"0.599109",
"0.59628874",
"0.59545654",
"0.5935254",
"0.59248567",
"0.5923023",
"0.5897371",
"0.589681",
"0.5895941",
"0.5887897",
"0.5885307",
"0.5882014",
"0.58784246",
"0.5867896",
"0.58644724",
"0.5864293",
"0.5849945",
"0.5838157",
"0.58340037",
"0.581066",
"0.5806754",
"0.58067083",
"0.58032",
"0.58012784",
"0.5795696",
"0.57890624",
"0.57850754",
"0.5782415",
"0.5767983",
"0.5737168",
"0.57371503",
"0.5731021",
"0.5730496",
"0.572996",
"0.57187384",
"0.5706472",
"0.5701382",
"0.57009584",
"0.56911963",
"0.5684348",
"0.56600267",
"0.5657743",
"0.56543297",
"0.5649647",
"0.5646643",
"0.5645124",
"0.5644902",
"0.56373256",
"0.5633986",
"0.5623587",
"0.56164265",
"0.5616075",
"0.56127137",
"0.56120133",
"0.5604296",
"0.5597874",
"0.55938596",
"0.5574663",
"0.55744123",
"0.5573147",
"0.5564778",
"0.5561418",
"0.5559531",
"0.5555699",
"0.55472994",
"0.5545221",
"0.55435175",
"0.5543467",
"0.55381566",
"0.5538009",
"0.5531233",
"0.55273116",
"0.5525907",
"0.55194116",
"0.55191517",
"0.551701",
"0.5515506",
"0.5508095",
"0.55054164",
"0.5502964",
"0.5492795",
"0.5491103"
] | 0.7285931 | 0 |
Main method for the client | public static void main(String[] args) {
Client client = Client.create();
WebResource resource = client.resource("http://localhost:8080/rest/query/strings");
MultivaluedMap<String, String> params = new MultivaluedMapImpl();
params.add("param", "Here is one parameter");
params.add("param", "Here is two parameters");
String helloWorldResponse = resource.queryParams(params).accept(
MediaType.TEXT_PLAIN).
get(String.class);
System.out.println(helloWorldResponse);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n new ClientMain();\n\n }",
"public static void main(String[] args){\r\n\t\tnew Client();\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tclientSample();\r\n\t}",
"public static void main(String[] args) {\n//\t\tnew CluelessClient();\n\t}",
"public static void main(String[] args)throws IOException{\n new Client(\"localhost\", 12000);\n }",
"public static void main(String[] args) {\n try {\n new Client().run(args);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void main (String[] args) {\r\n\t\tClient client = new Client(args);\r\n\t\tclient.run();\r\n\t}",
"public static void main(String[] argv) {\n try {\n Client c = new Client(argv);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args){\n\n GameClientImpl client = new GameClientImpl();\n client.startConnection(\"127.0.0.1\", ProtocolConfiguration.PORT);\n\n }",
"public static void main(String[] args) {\n System.out.println(\"xxxx\");\n Client.runFactory();\n }",
"public static void main(String[] args) {\n Client client = new Client();\n client.start();\n }",
"public static void main(String[] args) {\n SampleCRUDQuickstart p = new SampleCRUDQuickstart();\n\n try {\n logger.info(\"Starting SYNC main\");\n p.getStartedDemo();\n logger.info(\"Demo complete, please hold while resources are released\");\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(String.format(\"Cosmos getStarted failed with %s\", e));\n } finally {\n logger.info(\"Closing the client\");\n p.shutdown();\n }\n }",
"public static void main(String[] args) {\n\t\ttry {\t\t\t\t\t\n\t\t\tTerminal terminal= new Terminal(\"Client\");\t\t\n\t\t\t(new Client(terminal, DEFAULT_DST_NODE, DEFAULT_DST_PORT, DEFAULT_SRC_PORT)).start();\n\t\t\tterminal.println(\"Program completed\");\n\t\t} catch(java.lang.Exception e) {e.printStackTrace();}\n\t}",
"public static void main(String[] args) {\n (new AbaloneClient()).start();\n }",
"public static void main(String[] args)\n {\n Client client = new Client(args[0], args[1], args[2]);\n }",
"public static void main(String[] args) {\n new ClientExternal(args).start();\n }",
"public static void main(String[] args) {\n if(args.length != 2) {\n // Blabla throw smth\n }\n Optional<LoginTemplate> loginTemplateOpt = ClientOperations.loginTemplateFromFile(args[0]);\n if(!loginTemplateOpt.isPresent()) {\n Constants.logToStdOut(\"Startup interrupted.\");\n throw new IllegalStateException(\"LoginTemplate not present.\");\n }\n Optional<IDiscordClient> clientOpt = ClientOperations.clientFromLoginTemplate(loginTemplateOpt.get());\n if(!clientOpt.isPresent()) {\n Constants.logToStdOut((\"Startup interrupted.\"));\n throw new IllegalStateException(\"IDiscordClient not present.\");\n }\n Optional<ClientTemplate> mainTemplateOpt = ClientOperations.clientTemplateFromFile(args[1]);\n if(!mainTemplateOpt.isPresent()) {\n Constants.logToStdOut((\"Startup interrupted.\"));\n throw new IllegalStateException(\"ClientTemplate not present.\");\n }\n IDiscordClient mainClient = clientOpt.get();\n /*\n * Main BI\n */\n Optional<IDiscordClient> listeningClient = ClientOperations.withNewListener(mainClient, new MessageGuard());\n Constants.logToStdOut(\"Successful launch!\");\n\n }",
"public static void main(String[] args) throws IOException\n {\n list = new String[] {\"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\"};\n new ClientConnection(\"10.13.103.53\", list);\n }",
"public static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tRuntime runtime =Runtime.instance();\n\t\t\tProfileImpl profileImpl =new ProfileImpl(false);\n\t\t\t\n\t\t\tprofileImpl.setParameter(ProfileImpl.MAIN_HOST, \"localhost\");\n\t\t\tAgentContainer clientContainer =runtime.createAgentContainer(profileImpl);\n\t\t\t\n\t\t\tAgentController clientController =clientContainer.createNewAgent(\"client\", agents.Client.class.getName(), new Object [] {});\n\t\t\n\t\t\tclientController.start();\n\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private static void runClient() {\n long clientStartTime = System.currentTimeMillis();\n \n // Pick a random entry point\n int entryPointId = random.nextInt(entryPointAddresses.size());\n String[] ep = entryPointAddresses.get(entryPointId);\n String entryPointCode = ep[0];\n String entryPointAddress = ep[1];\n \n // User number and id\n int userCount = COUNT.incrementAndGet();\n String userToken = (clientLocation + userCount + \"-\" + Math.abs(random.nextInt(1000)));\n User u = USER_RESOLVER.resolve(userToken);\n \n // Point the client to the entry point\n WebTarget webTarget = entryPointTarget(entryPointAddress, userToken);\n EntryPointResponse response = new EntryPointResponse(null, null);\n try {\n String responseJson = webTarget.request(MediaType.APPLICATION_JSON).get(String.class);\n response = Jsons.fromJson(responseJson, EntryPointResponse.class);\n } catch (Exception e) {\n LOG.log(Level.SEVERE, String.format(\"Could not load responses from entry point %s: %s\", ep[0], ep[1]));\n LOG.log(Level.SEVERE, \"Attempted to connect with: \" + webTarget.getUri().toString());\n }\n \n // current time after the response\n long clientEndTime = System.currentTimeMillis(); \n \n Double latency = null;\n if (response.getRedirectAddress() != null) {\n latency = latencies.get(response.getRedirectAddress());\n }\n \n writer.writeCsv(LOG_LENS, \n sdf.format(new Date()),\n clientStartTime - Main.clientStartTime,\n userCount,\n Main.clientLocation,\n entryPointCode,\n response.getSelectedCloudSiteCode(),\n clientEndTime - clientStartTime,\n latency == null ? \"null\" : String.format(\"%.2f\", latency),\n userToken,\n Arrays.toString(u.getCitizenships().toArray()),\n Arrays.toString(u.getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getProviderCode(),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getLocationCode(),\n response.getDefinition() == null ? \"null\" : Arrays.toString(response.getDefinition().getTags().toArray()),\n response.getDefinition() == null ? \"null\" : response.getDefinition().getCost()\n );\n //writer.flush();\n }",
"public static void main(String[] args) throws Exception\n\t{\n\t\tSocket theServer = new Socket(\"localhost\",1234);\n\t\t//messages.add(\"Begin\");\n\t\tClientCommunicationProtocol ccp = new ClientCommunicationProtocol(theServer);\n\t\tccp.startCommunication();\n\t}",
"public static void main (String[] args) throws Exception{\n try {\n parse_args(args);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return;\n }\n\n if( is_server ){\n run_server();\n } else {\n run_client();\n }\n\n }",
"public static void main(String... args) {\n HttpServer httpServer = httpServerBuilder()\n .setPort(8080).build();\n\n /* Setting up a request Consumer with Java 8 Lambda expression. */\n httpServer.setHttpRequestConsumer(httpRequest -> {\n\n Map<String, Object> results = new HashMap<>();\n results.put(\"method\", httpRequest.getMethod());\n results.put(\"uri\", httpRequest.getUri());\n results.put(\"body\", httpRequest.getBodyAsString());\n results.put(\"headers\", httpRequest.getHeaders());\n results.put(\"params\", httpRequest.getParams());\n httpRequest.getReceiver().response(200, \"application/json\", toJson(results));\n });\n\n /* Start the server. */\n httpServer.start();\n\n\n /* Setup an httpClient. */\n HttpClient httpClient = httpClientBuilder().setHost(\"localhost\").setPort(8080).build();\n httpClient.startClient();\n\n sendGets(httpClient);\n sendPosts(httpClient);\n sendPuts(httpClient);\n\n\n Sys.sleep(1000);\n\n httpServer.stop();\n httpClient.stop();\n }",
"public static void main(String[] args){\n try {\n GameClient.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String [] args) {\r\n \r\n new CardsClient();\r\n \r\n }",
"public static void main(String[] args) {\n\t\tEndpoint.publish(\"http://127.0.0.1:1111/cs\", new Calculator());\r\n\t\tSystem.out.println(\"Server has started\");\r\n\r\n\t}",
"public static void main(String[] args) {//Èë¿Ú\n\t\tinitLog4j();\n\t\tlogger.info(\"Client launched successfully\");\n\t\t\n\n\t\t// Application logic\n\t\tApplicationLogic applicationLogic = new ApplicationLogic();\n\n\t\tsysReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = null;\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"EchoClient> \");\n\t\t\t// Read from system input\n\t\t\ttry {\n\t\t\t\tstr = sysReader.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Failed to read from system input\");\n\t\t\t\tlogger.error(\"Failed to read from system input\");\n\t\t\t}\n\t\t\tif (!str.trim().equals(\"\")) {\n\t\t\t\t// Get command\n\t\t\t\tString[] token = str.split(\" \");\n\t\t\t\tString cmd = token[0];\n\t\t\t\t// Send\n\t\t\t\tif (cmd.equals(\"send\")) {\n\t\t\t\t\tString msg = str.substring(4, str.length()).trim();\n\t\t\t\t\tif (!msg.equals(\"\")) {\n\t\t\t\t\t\tapplicationLogic.send(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// connect\n\t\t\t\telse if (cmd.equals(\"connect\")) {\n\t\t\t\t\tint length = token.length;\n\t\t\t\t\tif (length == 3) {\n\t\t\t\t\t\t// Get remote server address and port\n\t\t\t\t\t\tString add = token[1];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tint port = Integer.parseInt(token[2]);\n\t\t\t\t\t\t\tString REMOTE_IP = add;\n\t\t\t\t\t\t\tint REMOTE_PORT = port;\n\t\t\t\t\t\t\tapplicationLogic.connect(REMOTE_IP, REMOTE_PORT);\n\t\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t\tSystem.out.println(\"Illigal port format\");\n\t\t\t\t\t\t\tlogger.warn(\"Illigal port format\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Wrong format\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Connect command should be as follow:\\nconnect <address> <port>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// disconnect\n\t\t\t\telse if (cmd.equals(\"disconnect\")) {\n\t\t\t\t\tapplicationLogic.disconnect();\n\t\t\t\t}\n\t\t\t\t// logLevel\n\t\t\t\telse if (cmd.equals(\"logLevel\")) {\n\t\t\t\t\tint length = token.length;\n\t\t\t\t\tif (length == 2) {\n\t\t\t\t\t\t// Get logLevel\n\t\t\t\t\t\tString logLevel = token[1];\n\t\t\t\t\t\tapplicationLogic.logLevel(logLevel);\n\t\t\t\t\t}\n\t\t\t\t\t// Wrong format\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"logLevel command should be as follow:\\nlogLevel <Level> \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// help\n\t\t\t\telse if (cmd.equals(\"help\")) {\n\t\t\t\t\tapplicationLogic.help();\n\t\t\t\t}\n\t\t\t\t// quit\n\t\t\t\telse if (cmd.equals(\"quit\")) {\n\t\t\t\t\tapplicationLogic.quit();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// other inputs\n\t\t\t\telse {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Incorrect command, please try again or input 'help'\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args)\n {\n \t\n String host;\n String menuSelection; \n \tInputStreamReader input = new InputStreamReader(System.in) ;\n \tBufferedReader inputBuff = new BufferedReader(input) ; \t\n \t\n //check for host and throw error if not provided\n if(args.length!=1) {\n \tSystem.out.println(\"Application error: command line arguement missing\\n Usage: \\n \" +\n \t\t\t\"java client <IPAddress> or \\n java client <hostname>\");\n \treturn;\n }\n \n //System.out.println(\"arg[0] \"+args[0]);\n host = args[0]; \n System.out.println(\"client starting\");\n ctp = new CTP(host);\n \t\n \twhile(true) {\n \t\tDisplayMainMenu();\n \t\ttry {\n\t \t\tmenuSelection = inputBuff.readLine();\n\t \t\tif(menuSelection.equals(\"1\"))\n\t \t\t\tSendMessage();\n\t \t\telse if(menuSelection.equals(\"2\"))\n\t \t\t\tReadMessage();\n\t \t\telse if(menuSelection.equals(\"3\"))\n\t \t\t\tRegressionTest();\n\t \t\tSystem.out.println(\"Press return key to continue\");\n\t \t\tmenuSelection = inputBuff.readLine();\n\t \t\t//roll screen\n\t \t\tfor(int i=0;i<6;i++)\n\t \t\t\tSystem.out.print(\"\\n\"); \t\n\t \t\t\n\t \t}\n \t\tcatch (IOException err) {\n \t\t\tSystem.out.println(\"Error reading line\");\t\n \t\t}\n \t\t\n \t}//end while loop\n }",
"public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }",
"public static void main(String[] strings)\r\n {\r\n new Client().start();\r\n }",
"public static void main(String arg[]){\n SocketClient client = new SocketClient (\"localhost\",6543);\n try {\n //tenta estabelecer conexão com o server\n client.connect();\n //se obtiver sucesso, le a resposta \n client.readResponse();\n } catch (UnknownHostException e) {\n System.err.println(\"Host desconhecido. Não foi possível estabelecer conexão.\");\n } catch (IOException e) {\n System.err.println(\"Não foi possível estabelecer conexão. Server pode estar indisponível.\"+e.getMessage());\n }\n }",
"public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws InterruptedException {\n Constants.updateConstants(args, Constants.NodeType.ChatClient);\n\n GeneralUtils.promptUserOptions(args, Constants.NodeType.ChatClient, \"-cca\", \"-ccp\", \"-user\", \"-name\");\n\n ClientNetwork client = ClientUtils.initNetwork();\n Data db = new Data();\n\n MainChatWindowController clientInterface = ClientUtils.setupClientGUI(args);\n clientInterface.setOnClose(event -> {\n if(!client.isNetworkClosed() && !client.isConnectionLost()) {\n client.logOff();\n }\n client.setNetworkClosed(true);\n });\n ClientUtils.initInterface(clientInterface, client, db);\n\n }",
"public static void main(String[] args) throws Exception {\n TelepathyAPI.initialize(\"127.0.0.1\", 6387);\n System.out.println(\"Waiting for message\");\n\n /*BufferedInputStream inputStream = new BufferedInputStream(socket.getInputStream());\n while (true) {\n if (inputStream.available() > 0) {\n int i = inputStream.read();\n System.out.print(i);\n if ((i >= 32 && i <= 126) || (i >= 9 && i <= 13)) {\n System.out.println(\"\\t\" + (char) i);\n } else {\n System.out.println();\n }\n }\n }*/\n\n TelepathyAPI.addNewMessageListener(message -> {\n System.out.println(\"Message received\");\n System.out.println(message.key);\n System.out.println(message.type);\n System.out.println(message.message);\n TelepathyAPI.shutdown();\n });\n }",
"public static void main(String[] args) throws SQLException {\n\t\tConnectionDB.Connect();\n\t\t\n\t\tClientImplement ci = new ClientImplement();\n\t\t//Client c = new Client();\n\t\t\n\t\tSystem.out.println(ci.consulterClient(3));\n\t\t//System.out.println(ci.consulterClient(3).get)\n\t}",
"public static void main(String[] args) {\n\t\tMessageGreeting msgGreetingObj = new MessageGreeting();\n\t\tnew Client().greetMsg(msgGreetingObj);\n\n\t}",
"public static void main(String[] args) {\n\t\tString host = \"127.0.0.1\";\n\t\tint port = 5000;\n\n\t\ttry {\n\t\t\tMonitorClient mc = new MonitorClient(host, port);\n\t\t\tMonitorClientApp ma = new MonitorClientApp(mc);\n\n\t\t\t// do stuff w/ the connection\n\t\t\tSystem.out.println(\"Creating message\");\n\t\t\tClusterMonitor msg = ma.sendDummyMessage();\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Sending generated message\");\n\t\t\tmc.write(msg);\n\t\t\t\n\t\t\tSystem.out.println(\"\\n** exiting in 10 seconds. **\");\n\t\t\tSystem.out.flush();\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n new AnaTestClient().invoke();\n }",
"public static void main(String[] args) {\n\t\tJClient test = new JClient();\n\t\ttest.initialize();\n\t}",
"public static void main(String[] args) {\n\t\tClient client = Client.create();\n\t\tWebResource webResource = client.resource(\"http://10.14.129.6:8080/api/json\");\n\t\tSystem.out.println(\"changes made\");\n\t\tSystem.out.println(\"blah!\");\n\t\tSystem.out.println(\"blah! blah!\");\n\t}",
"@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}",
"public static void main(String[] args) {\n\t\tnew RemoteInvocationClient().go(); \n\t}",
"public static void main (String[] args)\n {\n com.samskivert.util.Log.setLogProvider(new LoggingLogProvider());\n OneLineLogFormatter.configureDefaultHandler();\n\n // create our editor server which we're going to run in the same\n // JVM with the client\n EditorServer server = new EditorServer();\n try {\n server.init();\n } catch (Exception e) {\n log.log(Level.WARNING, \"Unable to initialize server.\", e);\n }\n\n // let the BugsClientController know we're in editor mode\n System.setProperty(\"editor\", \"true\");\n\n // now we create the client: we aren't actually logging in so we\n // don't need or want a server or username or whatnot\n final EditorApp app = new EditorApp();\n start(app, \"localhost\", -1, null, null);\n\n // post a runnable that will get executed after everything is\n // initialized and happy\n EditorServer.omgr.postRunnable(new Runnable() {\n public void run () {\n app.logon();\n }\n });\n }",
"public static void main(String[] argv) {\n try {\n PoolInfoClient test = create();\n System.out.println(test.toString());\n } catch (Exception e) {\n System.out.println(\"Got exception: \");\n e.printStackTrace();\n System.exit(1);\n }\n }",
"public static void main(String[] args) {\n\t\tClient1 win = new Client1();\n\t\twin.performCallback(3);\n\n\t}",
"public static void main(String[] args) {\n\t\ttry{\n\t\t\tConnection co = new Connection(\"localhost\",100);\n\t\t}catch(TransportException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"public static void main(String [] args) throws IOException {\n DateClient client = new DateClient (\"localhost\", 9090);\n client.communicate();\n\n }",
"public static void main(String[] args) {\n\t\tBigTwoClient client = new BigTwoClient();\n\t}",
"public static void main(String args[]){\n\n createConnection();\n\n if (conn == null) {\n System.err.println(\"Failed to establish connection!\");\n }\n\n new App();\n\n }",
"public static void main(String[] args) {\n\n Client client = ClientBuilder.newClient();\n WebTarget target = client.target(\"http\");\n\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome to the FileTransfer Client! \\n Starting...\");\n\t\t\n\t\tint port; \n\t\t\n\t\tif (args.length < 0 || args.length > 1) {\n\t\t\tSystem.out.println(\"Syntax: FileTranferClient <port>\");\n\t\t\treturn;\n\t\t} else if (args.length == 1) {\n\t\t\tport = Integer.parseInt(args[0]);\n\t\t\tSystem.out.println(\"Using specified client port \" + port + \"...\");\n\t\t} else {\n\t\t\tport = FileTransferProtocol.DEFAULT_CLIENT_PORT;\n\t\t\tSystem.out.println(\"Using default client port \" + port + \"...\");\n\t\t}\n\t\t\t\n\t\tFileTransferClient client = new FileTransferClient(port);\n\t\tSystem.out.println(\"Starting client...\");\n\t}",
"public static void main(String[] args) {\r\n\r\n\t\tboolean server = false;\r\n\r\n\t\tif (server) {\r\n\t\t\t// This is the server setup.\r\n\t\t\tSystem.out.println(\"STARTING SERVER.\");\r\n\t\t\tServer s = new Server(8222);\r\n\t\t\ts.addPacketHandler(new PacketHandler() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleServerPacket(int id, String[] data, ServerConnection connection) {\r\n\t\t\t\t\tSystem.out.println(\"SERVER HANDLE PACKET\");\r\n\t\t\t\t\tSystem.out.println(\"PACKET TYPE: \" + id);\r\n\t\t\t\t\tSystem.out.println(\"PACKET DATA:\");\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor (String s : data) {\r\n\t\t\t\t\t\tSystem.out.println(\"INDEX \" + num + \" - \" + s);\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleClientPacket(int id, String[] data, Client client) {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\t\t\ts.addClientDisconnectHandler(new DisconnectHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\r\n\t\t\t\t\t// this is ran when on the server side when a clients connection is terminated.\r\n\t\t\t\t\tSystem.out.println(\"CLIENT DISCONNECTED FROM SERVER.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\r\n\t\t\t\t\t// this is never ran if added to the Server.\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\t// This is the client setup.\r\n\t\t\tSystem.out.println(\"STARTING CLIENT\");\r\n\t\t\tClient c = new Client(\"localhost\", 8222);\r\n\t\t\tSystem.out.println(\"CLIENT ID: \" + c.getID().toString());\r\n\t\t\tc.addPacketHandler(new PacketHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleClientPacket(int id, String[] data, Client client) {\r\n\t\t\t\t\tSystem.out.println(\"CLIENT HANDLE PACKET\");\r\n\t\t\t\t\tSystem.out.println(\"PACKET TYPE: \" + id);\r\n\t\t\t\t\tSystem.out.println(\"PACKET DATA:\");\r\n\t\t\t\t\tint num = 0;\r\n\t\t\t\t\tfor (String s : data) {\r\n\t\t\t\t\t\tSystem.out.println(\"INDEX \" + num + \" - \" + s);\r\n\t\t\t\t\t\tnum++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void handleServerPacket(int id, String[] data, ServerConnection connection) {\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tc.addClientDisconnectHandler(new DisconnectHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\r\n\t\t\t\t\t// this is never ran if added to the Client.\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\r\n\t\t\t\t\t// this is ran when the connection to the server is terminated.\r\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n}",
"public static void main(String[] args) {\n String payam;\n Client client= new Client();\n payam = \"\";\n client.run();\n\n\n }",
"public static void main(String[] args) {\n\n String host = \"\";\n int port = DEFAULT_PORT; // The port number\n\n try {\n host = args[1];\n port = Integer.parseInt(args[2]);\n } catch (Exception ex) {\n }\n\n // Getting the login id\n\n // BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n // String identification = new String();\n\n try {\n String clientID = args[0];\n ClientConsole chat = new ClientConsole(clientID, host, port);\n chat.accept();\n } catch (Exception Ex) {\n System.out.println(\"ERROR - No login ID specified. Connection aborted.\");\n }\n\n /*\n * System.out.\n * println(\"Please specify port number (If blank, default port 5555 will be used)\"\n * ); try { String input = reader.readLine(); port = Integer.parseInt(input); }\n * \n * catch (Exception ex) {\n * System.out.println(\"Invalid port number. Default port of 5555 will be used\");\n * }\n * \n * if (port > 65535 || port < 0) { System.out.println(\"Invalid Port Number\"); }\n * else { System.out.println(\"Connection to server at port \" + port); try { host\n * = args[0]; } catch (ArrayIndexOutOfBoundsException e) { host = \"localhost\"; }\n * \n * ClientConsole chat = new ClientConsole(identification, host, port);\n * chat.accept(); // Wait for console data\n */\n }",
"public static void main(String[] args){\n String data = JOptionPane.showInputDialog(null,\"What is the IP Address of the server?\", \"Connect to Server\", JOptionPane.PLAIN_MESSAGE);\n if(data != null){\n CoronosClient c = new CoronosClient(data);\n }\n else{\n System.exit(0);\n }\n }",
"public static void main(String[] args) {\n\t\tServer.Serv();\n\t}",
"public static void main(String[] args){\n \n Chat m = new Chat();\n m.connectChat(new String[]{\"100.1.215.220\",\"8889\"});\n //m.runServer(new String[]{\"192.168.1.164\",\"8889\"});\n }",
"public static void main(String[] args) {\n\t\tClient client = new Client();\n\t\tClientMenu cm = new ClientMenu(\"localhost\", 7966, client);\n\t\tclient.addObserver(cm);\n\t}",
"public static void main (String[] args){\r\n\t\tnew Server().startRunning();\r\n\t}",
"public static void main(String[] args){\n\t\t/**************************************************\n\t\t * \t\t\tProcess command line arguments\n\t\t * ************************************************/\n\t\tboolean server = false;\n\t\tint nclients = 1;\n\t\tString url = null; \n\t\tint broadcastClock = DEFAULT_BROADCAST_CLK_PERIOD;\n\t\tint port = DEFAULT_PORT;\n\t\t\n\t\tfor (int i = 0; i != args.length; ++i) {\n\t\t\tif (args[i].startsWith(\"-\")) {\n\t\t\t\tString arg = args[i];\n\t\t\t\tif(arg.equals(\"-server\")) {\n\t\t\t\t\tserver = true;\n\t\t\t\t\tnclients = Integer.parseInt(args[++i]);\n\t\t\t\t} else if(arg.equals(\"-connect\")) {\n\t\t\t\t\turl = args[++i];\n\t\t\t\t}else if(arg.equals(\"-port\")) {\n\t\t\t\t\tport = Integer.parseInt(args[++i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tInetAddress address;\n\t\ttry {\n\t\t\taddress = InetAddress.getByName(DEFAULT_HOST);\n\t\t\tGame game = new Game();\n\t\t\tParser p = new Parser(game);\n\t\t\tgame = p.createGameFromFiles(1);\n\t\t\trunServer(address, DEFAULT_PORT, 1, DEFAULT_BROADCAST_CLK_PERIOD, PLAYER_UID++, game, 1);\n\t\t} catch (UnknownHostException e) {\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void main(String[] args){\n System.out.println(\"Logs from your program will appear here!\");\n\n // Uncomment this block to pass the first stage\n // ServerSocket serverSocket = null;\n // Socket clientSocket = null;\n // int port = 6379;\n // try {\n // serverSocket = new ServerSocket(port);\n // serverSocket.setReuseAddress(true);\n // // Wait for connection from client.\n // clientSocket = serverSocket.accept();\n // } catch (IOException e) {\n // System.out.println(\"IOException: \" + e.getMessage());\n // } finally {\n // try {\n // if (clientSocket != null) {\n // clientSocket.close();\n // }\n // } catch (IOException e) {\n // System.out.println(\"IOException: \" + e.getMessage());\n // }\n // }\n }",
"public static void main(String[] args) {\n ClientDemo clientDemo = new ClientDemo();\r\n clientDemo.setTitle(\"平安银行银企直连客户端DEMO V0.1\");\r\n clientDemo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //netool.pack();\r\n clientDemo.setSize(600, 580);\r\n clientDemo.setLocationRelativeTo(null); //居中显示\r\n clientDemo.setVisible(true);\r\n }",
"public Client() {\n initComponents();\n \n Server server = new Server();\n server.start();\n \n }",
"public static void main(String[] args) {\n\t\tChatClientCommandLine arguments = CommandLine.populateCommand(new ChatClientCommandLine(), args);\n\t\n\t\tif(arguments.usageHelpRequested)\t{\n\t\t\tCommandLine.usage(arguments, System.out);\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tChatClient chatClient = new ChatClient();\n\t\tif(arguments.clientId != null)\t{\n\t\t\tchatClient.assignClientId(arguments.clientId);\n\t\t}\n\n\t\tPacket packet = new Packet(\"eded\", Packet.PacketType.DEV);\n\t\tchatClient.sendPacket(packet);\n\t\t//chatClient.closeConnection();\n\t}",
"public static void main(String[] args) throws UnknownHostException, IOException {\n\t\tMainClient mainClient = new MainClient();\n\t\tmainClient.startClient();\n\t\tlog.info(\"Client started on port: \" + JMCConstants.JMC_PORT_A);\n\n\t\ttry {\n\t\t\tmainClient.listen();\n\t\t} catch (Exception e) {\n\t\t\tlog.info(e.getMessage() + \" :: \" + Level.SEVERE);\n\t\t\tmainClient.serverWriter.close();\n\t\t\tmainClient.serverReader.close();\n\t\t}\n\t}",
"public static void main(String[] args)\n\t{\n\t\tnew ClientGUI();\n\t}",
"public void run(ClientOptions options);",
"public static void main(String[] args) throws TException {\n\t\tSSDClient ssdClient = new SSDClient();\n\t\tServiceDiscoverer.AsyncClient asyncClient = null;\n\t\tif ((asyncClient = ssdClient.initAsyncClient()) == null) {\n\t\t\tlogger.error(\"failed to init client\");\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tRequestInfo requestinfo = new RequestInfo();\n\t\n\t}",
"public static void main(String... args) throws Exception {\n final Component component = new Component();\n component.getServers().add(Protocol.HTTP, 8585);\n component.getClients().add(Protocol.FILE);\n component.getClients().add(Protocol.CLAP);\n component.getClients().add(Protocol.HTTP);\n // Attach the application to the default host and start it\n component.getDefaultHost().attach(\"/rmep\", new Application());\n component.start();\n }",
"public static void main(String [] args) throws IOException {\n Main main = new Main();\n Map stockList = main.createStockList();\n\n Server server = new Server(2000); \n server.setMap(main.stockList);\n server.server_loop(); // run server\n\n }",
"@SuppressWarnings(\"empty-statement\")\n public void runClient() {\n // setup MQTT Client\n String clientID = \"apto01\";\n String pass = \"1234\";\n connOpt = new MqttConnectOptions();\n\n connOpt.setCleanSession(true);\n connOpt.setKeepAliveInterval(30);\n connOpt.setUserName(\"isis2503\");\n connOpt.setPassword(pass.toCharArray());\n\n alertaLogic = new AlertLogic();\n\n // Connect to Broker\n try {\n myClient = new MqttClient(BROKER_URL, clientID);\n myClient.setCallback(this);\n myClient.connect(connOpt);\n } catch (MqttException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.out.println(\"Connected to \" + BROKER_URL);\n\n // setup topic\n // topics on m2m.io are in the form <domain>/<stuff>/<thing>\n // subscribe to topic if subscriber\n if (subscriber) {\n try {\n int subQoS = 0;\n myClient.subscribe(infoInoTopic, subQoS);\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }\n // disconnect\n try {\n // wait to ensure subscribed messages are delivered\n while (subscriber);\n myClient.disconnect();\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws Exception {\n EventLoopGroup group = new NioEventLoopGroup();\n\n try {\n\n // client use Bootstrap instead of ServerBootstrap\n Bootstrap bootstrap = new Bootstrap();\n\n bootstrap.group(group)\n .channel(NioSocketChannel.class)\n .handler(new ChannelInitializer<SocketChannel>() {\n @Override\n protected void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline()\n .addLast(new ProtobufEncoder())\n .addLast(new NettyClientHandler());\n }\n });\n\n System.out.println(\"...client server ok\");\n\n // netty async model\n // connect to server\n ChannelFuture channelFuture = bootstrap.connect(\"127.0.0.1\", 6668).sync();\n\n channelFuture.channel().closeFuture().sync();\n\n } finally {\n group.shutdownGracefully();\n }\n\n }",
"public static void main(String[] args) {\n\t\tJBoss5Client client = new JBoss5Client();\n\n\t}",
"public static void main(String[] args) {\n loadServer();\n\n }",
"public static void main(String[] args) {\n //create three types of clients\n //the last two will inherit from the first\n //\n //create a type of client by assigning the class to a variable and running the constructor\n TrialClient trial = new TrialClient();\n Client client = new Client();\n PremiumClient premium = new PremiumClient();\n //\n //Create a visual text output of dependencies:\n System.out.println(\"Who bought what with dependencies:\");\n System.out.println(\"**********************************\");\n System.out.println();\n //run the bought method of trial client, this outputs its ownership\n System.out.println(\"The trial client tried:\");\n trial.bought();\n //\n System.out.println();\n System.out.println(\"The standard client bought:\");\n client.bought();\n //\n System.out.println();\n System.out.println(\"The premium client received:\");\n premium.bought();\n\n }",
"public static void main(String[] args) throws IOException {\n\n //Checking the clients arguments. If not given any, then use default values.\n //File path that the shared files exist: \n if (args.length > 1) {\n shared_file_path = args[0];\n //IP Address of the server:\n server_address = args[1];\n //Port on which the server listens:\n server_port = Integer.parseInt(args[2]);\n } else {\n // Use the default value:.\n shared_file_path = \"/home/gokce/NetBeansProjects/Fish/SharedFolder/\";\n //Use the default value: \"localhost\".\n server_address = \"localhost\";\n //Use the default port: 4444.\n server_port = 4444;\n }\n //Asking the user to optionally provide a username.\n String clientName = \"\";\n boolean flag = false;\n while (clientName.length() < 6 && !clientName.equals(\"0\")) {\n if (flag) {\n System.out.println(\"Invalid username entered. Please try again.\");\n }\n flag = true;\n BufferedReader consoleIn = new BufferedReader(new InputStreamReader(System.in));\n System.out.println(\"Give a username to connect to server. (You can connect anonymously by entering 0)\");\n System.out.print(\"Username must have at least 6 letters:\");\n clientName = consoleIn.readLine();\n }\n new Client(shared_file_path, server_address, server_port, clientName);\n }",
"static public void main ( String args[] ) throws UnknownHostException, ClassNotFoundException, IOException\n {\n if (args.length < 2) {\n System.err.println( \"Usage: java MessageClient <host> <port>\" ); \n return;\n } \n // parse the hostname and the port number from the passed parameters\n String hostname = args[0]; \n int port = Integer.parseInt( args[1] ); \n\n // create a new MessageClient and pass parsed hostname and port as parameters\n new MessageClient ( hostname, port ) ; \n }",
"public static void main(String[] args) {\n\t\tif (args[1] != null)\n\t\t{\n\t\t\thost = args[1];\n\t\t} else {\n\t\t\thost = \"127.0.0.1\";\n\t\t}\n\t\ttry {\n\t\t\tcreateUI();\n\t\t\tclientSocket = new Socket(host, port);\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tclientSocket.getInputStream()));\n\t\t\tmessageHandler(out, in);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t}",
"public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\tServerSocket serverSocket = null;\r\n\t\tSocket clientSocket = null;\r\n\t\tBufferedReader read = null;\r\n\t\tDataOutputStream write = null;\r\n\t\t\r\n\t\t// Attempt to open a server socket for inbound connections\r\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(SERVERPORT);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Failed to open server socket\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t\t// Wait for a client to connect \r\n\t\tSystem.out.println(\"Waiting ...\");\r\n\t\ttry {\r\n\t\t\t// This will block until someone trys to connect\r\n\t\t\tclientSocket = serverSocket.accept();\r\n\t\t\t\r\n\t\t\t// Get our input and output classes\r\n\t\t\tread = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t\twrite = new DataOutputStream(clientSocket.getOutputStream());\r\n\t\t\tSystem.out.println(\"Client connection from \" + clientSocket.getInetAddress());\r\n\t\t\t\r\n\t\t\t// This will continue until the clients types \"/quit\" or otherwise drops the connection\r\n\r\n Scanner writer = new Scanner(System.in);\r\n\r\n\t\t\twhile (true) {\r\n//\t\t\t\tString line = read.readLine();\r\n//\t\t\t\tSystem.out.println(line);\r\n//\t\t\t\tif (\"/quit\".equalsIgnoreCase(line)) {\r\n//\t\t\t\t\tSystem.out.println(\"Closing connection with \" + clientSocket.getInetAddress());\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\t}\r\n\t\t\t\tThread t = new ClientTaker(clientSocket, read, write);\r\n//\t\t\t\tSystem.out.printf(\"-> \");\r\n//\t\t\t\tline = writer.nextLine();\r\n//\t\t\t\tline += \"\\r\\n\";\r\n//\t\t\t\twrite.writeBytes(line);\r\n\t\t\t\tt.start();\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t\tSystem.out.println(\"Client connection was disconnected\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tread.close();\r\n\t\t\twrite.close();\r\n\t\t\tserverSocket.close();\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n if (args.length != 3) {\n System.out.println(\"Usage java Client <membership> <id> <maxNoOfRequests>\");\n return;\n }\n maxNoOfRequests = Integer.parseInt(args[2]);\n RequestPlayerUtils.initProperties(null);\n\n System.out.println(\"The server is \" + RequestPlayerUtils.serverAddr\n + \":\" + RequestPlayerUtils.serverPort);\n System.out.println(\"Starting request player with \"\n + RequestPlayerUtils.nbClients + \" clients and file \"\n + RequestPlayerUtils.requestsFile);\n\n new Client(args[0], Integer.parseInt(args[1]));\n }",
"public static void main(String[] args) \n\t{\n\t\t// Create a new log server (client) and attempt to connect to the server\n\t\tLogServer ls = new LogServer();\n\t\ttry \n\t\t{\n\t\t\tls.open(HOST_SERVER, PORT_NUMBER);\t\n\t\t} \n\t\tcatch (UnknownHostException 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\t\n\t\t// Attempt to retrieve a new ticket from the server.\n\t\tString ticket = \"\";\n\t\ttry \n\t\t{\n\t\t\tticket = ls.newTicket();\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Add some entries to the log for this new ticket\n\t\tif (ticket.length() > 0)\n\t\t{\n\t\t\tls.addEntry(ticket, \"Message 1-caw\");\n\t\t\tls.addEntry(ticket, \"Message 2-caw\");\n\t\t\tls.addEntry(ticket, \"Message 3-caw\");\n\t\t\tls.addEntry(ticket, \"Message 4-caw\");\n\t\t\tls.addEntry(ticket, \"Message 5-caw\");\n\t\t\tls.addEntry(ticket, \"Message 6-caw\");\n\t\t\tls.addEntry(ticket, \"Message 7-caw\");\n\t\t\t\n\t\t\t// Now, retrieve the messages back and display them to stdout\n\t\t\tList<String> entries = new ArrayList<String>();\n\t\t\ttry \n\t\t\t{\n\t\t\t\tentries = ls.getEntries(ticket);\n\t\t\t} \n\t\t\tcatch (IOException e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfor (int i = 0; i < entries.size(); i++) \n\t\t\t{\n\t\t\t\tSystem.out.println(entries.get(i));\n\t\t\t}\n\t\t\t\n\t\t\t// Finally, release the ticket to void it from use\n\t\t\tls.releaseTicket(ticket);\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n String hostname;\n\n // if no arguments then use 'localhost' as server\n if (args.length < 1) {\n hostname = \"localhost\";\n }\n else{\n hostname = args[0];\n }\n\n System.out.println(\"Welcome to the JokeServer Admin Client\");\n System.out.println(\"Administering server: \" + hostname + \":5050\");\n JokeClientAdmin.Logger(\"Welcome to the JokeServer Admin Client\");\n JokeClientAdmin.Logger(\"Administering server: \" + hostname + \":5050\");\n\n // accepting user input from command line\n BufferedReader inputSocket = new BufferedReader((new InputStreamReader(System.in)));\n\n try {\n String serverMode;\n do {\n // take in user input\n System.out.print(\"\\nSelect server mode: \\n - Joke\\n - Proverb \\n - On\\n - Off\\n - Get Status\\nadmin@~ $ \");\n System.out.flush();\n\n // input from user\n serverMode = inputSocket.readLine();\n\n // if input is 'quit' - leave loop - else call ChangeServerMode function\n if (!serverMode.contains(\"quit\")){\n ChangeServerMode(serverMode, hostname);\n }\n } // if input is 'quit' - leave loop\n while (!serverMode.contains(\"quit\")); {\n System.out.println(\"Client admin service stopped by user request.\");\n }\n }\n catch (IOException exception) {\n System.out.println(\"Admin client error - BufferedReader couldn't be opened.\");\n exception.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n UtilClient client = new UtilClient(args);\n client.run();\n\n // exit the program with the number of errors as the exit status\n System.exit(client.getErrorCount());\n }",
"public static void main(String[] args){\n\t\tClientGui gui = new ClientGui();\n\t\tString address = args[0];\n\t\tgui.address=address;\n\t\tint port = Integer.parseInt(args[1]);\n\t\tgui.port = port;\n\t\t//unable to connect?\n\t\treturn ; \n\n\t}",
"static public void main(String[] args) throws IOException {\n port = (int) (Math.random() * ((65535 - 49152) + 1) + 49152);\n server = new ServerSocket(port);\n System.out.println(InetAddress.getLocalHost());\n System.out.println(\"Port: \" + port);\n while (true) {\n try {\n Socket socket = server.accept();\n MqttClient client = new MqttClient(socket);\n clients.add(client);\n client.start();\n } catch (IOException e) {\n System.out.println(\"Something failed.\");\n server.close();\n System.exit(0);\n }\n }\n }",
"public static void main(String[] args)\n {\n MessageHandler runner = new MessageHandler();\n runner.processArgs(args);\n \n String command = runner.getConfiguration(\"command\");\n String host = runner.getConfiguration(\"host\");\n int port = runner.getConfiguration().getInt(\"port\");\n \n boolean isStart = false;\n boolean isRestart = false;\n boolean isStatus = false;\n \n if ( true ) {\n if (command.equalsIgnoreCase(\"shutdown\")){\n command = SHUTDOWN;\n }\n else if(command.equalsIgnoreCase(\"status\")) {\n command = STATUS;\n isStatus = true;\n } else if(command.equalsIgnoreCase(\"restart\")) {\n command = RESTART;\n }\n else if( command.equalsIgnoreCase(\"start\") ){\n command = START;\n isStart = true;\n }\n }\n \n if( port > -1 ) {\n if( !isStart ){\n boolean needsStarted = false;\n \n try {\n runner.client(host, port,command);\n } catch(IOException ex) {\n String showCommand = command;\n if ( showCommand != null)\n showCommand = command;\n Helper.writeLog(1,\"unable to send command: '\" + showCommand + \"' stack: \" + ex.toString());\n if( isStatus ){\n needsStarted = true;\n }\n }\n \n if( isRestart ){\n try {\n command = START + \"@\" + SECRETCODE;\n \n runner.client(host, port,command);\n } catch(IOException ex) {\n String showCommand = command;\n if ( showCommand != null)\n showCommand = command;\n Helper.writeLog(1,\"unable to send command: '\" + showCommand + \"' stack: \" + ex.toString());\n }\n }\n\n if( needsStarted ){\n runner.startServer(port);\n }\n else {\n System.exit(0);\n }\n }\n else {\n runner.startServer(port);\n }\n }\n }",
"public static void main(String[] args) throws Exception {\n Thread broker = new Broker();\n broker.start();\n\n // Start the catalog server\n ServerSocket serverSocket = new ServerSocket(9999);\n HashMap<SimpleEntry<String, String>, POSTNegotiation> negotiations = new HashMap<>();\n HashSet<String> importers = new HashSet<>();\n HashSet<String> producers = new HashSet<>();\n while (true) {\n Socket connectionSocket = serverSocket.accept();\n\n Thread h = new CHandler(connectionSocket, negotiations, importers, producers);\n h.start();\n }\n }",
"public static void main(String[] args) {\n\t\tnew Servidor();\n\t}",
"public static void main(String[] args){\n System.err.println(\"Error!!\");\n System.err.println(\"To run the server use:\");\n System.err.println(\"java -cp Task2.jar Server.Server\\n\");\n System.err.println(\"To run the client use:\");\n System.err.println(\"java -cp Task2.jar Client.Client <host of the server>\\n\");\n System.err.println(\"To run the admin application use:\");\n System.err.println(\"java -cp Task2.jar Admin.Editor <host of the server>\");\n System.exit(0);\n }",
"public static void main(String[] args) {\n\t\tClientService cs = new ClientService();\n\t\t\n\t\t//Utilisation de la classe\n\t\tcs.direBonjour();\n\t\tcs.direAurevoir();\n\t\tcs.jeSuisVip();\n\n\t\t\n\t\t//Declaration de l'interface\n\t\tIClientService s = new ClientService();\n\t\tIVipService vs = new ClientService();\n\t\tIVipService2 vs2 = new ClientService();\n\t\t\n\t\t//Utilisation de l'interface\n\t\tSystem.out.println(\"-----Client normal-----\");\n\t\ts.direBonjour();\n\t\ts.direAurevoir();\n\t\t//s.jeSuisVip();\n\t\tSystem.out.println(\"-----Client VIP-----\");\n\t\tvs.direBonjour();\n\t\tvs.direAurevoir();\n\t\tvs.jeSuisVip();\n\t\tvs2.direBonjour();\n\t\tvs2.direAurevoir();\n\t\tvs2.jeSuisVip();\n\n\t}",
"public static void main(String[] args){\n ChatServer_SSL server = new ChatServer_SSL(portNumber);\n server.startServer();\n }",
"public static void main(String[] args) {\n\t\tSocket socket = null;\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(\"localhost\", 18094);\r\n\t\t\tSystem.out.println(\"------客户端连接上了-------\");\r\n\t\t\t// socket.connect(new InetSocketAddress(), 1000);\r\n\t\t\tOutputStream out = socket.getOutputStream();\r\n\r\n\t\t\tScanner sc = new Scanner(System.in);\r\n\r\n\t\t\tString data = sc.next() + \"\\n\";\r\n\t\t\tSystem.out.println(data);\r\n\t\t\tout.write(data.getBytes(\"UTF-8\"));\r\n\t\t\tout.flush();\r\n\t\t\tsocket.shutdownOutput();\r\n\r\n\t\t\tInputStream is = socket.getInputStream();\r\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\r\n\t\t\tString str = \"\";\r\n\t\t\twhile ((str = reader.readLine()) != null) {\r\n\t\t\t\tSystem.out.println(\"客户端接收服务端的数据:\" + str);\r\n\t\t\t}\r\n\r\n\t\t\treader.close();\r\n\t\t\t// is.close();\r\n\t\t\tif(!socket.isClosed()){\r\n\t\t\t\t//socket.shutdownInput();\r\n\t\t\t\tsocket.close();\r\n\t\t\t\t// out.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) throws Exception{\n\n\t\tLogo.printLogo();\n\t\tSystem.out.print(\"GUMBOCOIN version: 0-0-0 made by Carson\");\n//\t\tfor(int i = 0;i<5;i++){\n//\t\t\tThread.sleep(100);\n//\t\t\tSystem.out.print(\".\");\n//\t\t}\n\t\tSystem.out.println(\"\\nstarting!\\n\\n\");\n\t\t\n//\t\t\n//\t\tnew ClientConsole(\"public key\").prifatHelp();\n//\t\t\n//\t\tSystem.exit(0);\n\t\t\n\t\tboolean server = false;\n\t\t\n\t\t\n\t\tString publicKey1 = \"key--publicKey1\";\n\t\tString privateKey1 = \"key--privateKey1\";\n\t\tString publicKey2 = \"key--publicKey2\";\n\t\tString privateKey2 = \"key--privateKey2\";\n\t\t\n\t\t\n\t\t\n\t\tif(server) {\n\t\t\tBlockChainManager manager = new BlockChainManager();\n\t\t\tnew Server(manager).start(1111);\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tConversation.summitUser(new UserPayload(publicKey1,privateKey1));\n\t\t\n\t\t\n//\t\tUserPayload user1 = new UserPayload(publicKey1, privateKey1);\n//\t\tUserPayload user2 = new UserPayload(publicKey2, privateKey2);\n//\t\t\n//\t\tConversation.summitUser(user1);\n\t\t\n//\t\t\n//\t\tTransaction t = new Transaction(BlockClient.hashKeys(publicKey1, privateKey1),publicKey1,publicKey2);\n//\t\tt.sign(privateKey1);\n//\t\tt.setAmount(10);\n\t\t\n//\t\tmanager.addTransaction(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\tfor(int i = 0;i<5;i++) {\n//\t\t\tThread.sleep(1000);\n//\t\t\tSystem.out.println(\"\\n\\n\\nstarting loop\");\n//\t\t\tDataPayload data = Conversation.getDataPayload();\n//\t\t\tSystem.out.println(\"=========\\\\/data from server:\" + ObjectToJson.dataPayloadToString(data));\n//\t\t\tdata.blockchain.printChainHashes();\n//\t\t\tSystem.out.println(\"received data\");\n//\t\t\tBlockChain chain;\n//\t\t\tchain = data.blockchain.copy();\n//\t\t\tSystem.out.println(\"========hashing data\");\n//\t\t\tchain.hashAllBlocks();\n//\t\t\tSystem.out.println(\"========mining\");\n//\t\t\tchain.mine(data);\n//\t\t\tSystem.out.println(\"=========\\\\/total chain:\" + ObjectToJson.dataPayloadToString(new DataPayload(chain,new BlockChainDataContainer())));//just to print the chain\n//\t\t\tchain.printChainHashes();\n//\t\t\tSystem.out.println(Conversation.requestSync(new SyncPayload(chain, (i%2 == 0 ? publicKey1 : publicKey2))));\n//\t\t}\n//\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\tfor(int i = 0;i<5;i++) {\n\t\t\tThread.sleep(1000);\n\t\t\tSystem.out.println(\"\\n\\n\\nstarting loop\");\n\t\t\tDataPayload data = Conversation.getDataPayload();\n\t\t\tSystem.out.println(\"=========\\\\/data from server:\" + ObjectToJson.dataPayloadToString(data));\n\t\t\tdata.blockchain.printChainHashes();\n\t\t\tSystem.out.println(\"received data\");\n\t\t\tBlockChain chain;\n\t\t\tchain = data.blockchain.copy();\n\t\t\tSystem.out.println(\"========hashing data\");\n\t\t\tchain.hashAllBlocks();\n\t\t\tSystem.out.println(\"========mining\");\n\t\t\tchain.mine(data);\n\t\t\tSystem.out.println(\"=========\\\\/total chain:\" + ObjectToJson.dataPayloadToString(new DataPayload(chain,new BlockChainDataContainer())));//just to print the chain\n\t\t\tchain.printChainHashes();\n\t\t\tSystem.out.println(Conversation.requestSync(new SyncPayload(chain, (i%2 == 0 ? publicKey1 : publicKey2))));\n\t\t}\n}",
"public static void main(String[] args) {\n\n // 1. Load server config file\n if(args.length<1){\n System.out.println(\"Please indicate your server config file\");\n return;\n }\n List<ClientWorker> connection;\n try {\n connection = LoadServer(args[0]);\n } catch (FileNotFoundException e2) {\n System.out.println(\"Server config file cannot be found. Please run it again.\");\n return;\n } catch (IOException e2) {\n System.out.println(\"Error occurs when reading files. Please run it again.\");\n return;\n }\n String input = \"\";\n if(args.length==2){\n input=args[1];\n startClient(input,connection);\n return;\n }\n \n // 2. welcome message\n System.out.println(\"***************Welcome to Xgrep****************\");\n System.out.println(\"Xgrep is a command-line utility for searching \");\n System.out.println(\"log files for lines matching a regular expres-\");\n System.out.println(\"sion. It supports all the arguments in grep. \");\n System.out.println(\"Example:\");\n System.out.println(\"Xgrep -key timestamp -value details [argument] \");\n System.out.println(\"***********************************************\");\n\n // 3. Read user's input and create threads\n while (true) {\n BufferedReader br = new BufferedReader(new InputStreamReader(\n System.in));\n \n try {\n input = br.readLine();\n\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n startClient(input,connection);\n \n }\n }",
"public void run() {\n clientLogger.info(\"Client \" + name + \" started working\");\n EventLoopGroup group = new NioEventLoopGroup();\n try {\n Bootstrap bootstrap = new Bootstrap()\n .group(group)\n .channel(NioSocketChannel.class)\n .handler(new ClientInitializer());\n Channel channel = bootstrap.connect(host, port).sync().channel();\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n while (true) {\n channel.write(in.readLine() + \"\\r\\n\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n group.shutdownGracefully();\n }\n clientLogger.info(\"Client \" + name + \" finished working\");\n }",
"public static void main(String[] args) throws Exception {\n CustomHeaderClient client = new CustomHeaderClient(\"localhost\", 50051);\n try {\n /* Access a service running on the local machine on port 50051 */\n String user = \"world\";\n if (args.length > 0) {\n user = args[0]; /* Use the arg as the name to greet if provided */\n }\n client.greet(user);\n } finally {\n client.shutdown();\n }\n }",
"public static void main(String[] args) {\n Bank bank = new Bank();\n\n bank.addAccount(new Account(\"Acc_01\", 100));\n bank.addAccount(new Account(\"Acc_02\", 120));\n bank.addAccount(new Account(\"Acc_03\", 50));\n\n Client client1 = new Client(bank, \"Acc_01\", new ArrayList<>(Arrays.asList(\"-50\", \"+20\", \"-90\", \"-50\")));\n Client client2 = new Client(bank, \"Acc_01\", new ArrayList<>(Arrays.asList(\"+10\", \"-30\", \"-45\", \"+20\")));\n\n new Thread(client1).start();\n new Thread(client2).start();\n\n }",
"public static void main(String[] args) {\n\n HttpConnector connector = new HttpConnector();\n Wrapper wrapper = new SimpleWrapper();\n wrapper.setServletClass(\"ModernServlet\");\n Loader loader = new SimpleLoader();\n Valve valve1 = new HeaderLoggerValve();\n Valve valve2 = new ClientIPLoggerValve();// 在这里显示IP\n\n wrapper.setLoader(loader);\n ((Pipeline) wrapper).addValve(valve1);\n ((Pipeline) wrapper).addValve(valve2);\n\n connector.setContainer(wrapper);\n\n try {\n connector.initialize();\n connector.start();\n\n // make the application wait until we press a key.\n System.in.read();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public ClientMain() throws RemoteException, MalformedURLException, NotBoundException\r\n\t{\r\n\t\t//server = (IServer) Naming.lookup(\"rmi://10.152.206.74:1099/bankingServer\");\r\n\t\tserver = (IServer) Naming.lookup(\"rmi://localhost:1099/bankingServer\");\r\n\r\n\t\tmodel = new BankModel();\r\n\r\n\t\tSystem.out.println(\"Client running\");\r\n\t}",
"public static void main(String[] args) throws IOException, InterruptedException\n\t{\n\t\tClient ClientDevice = new Client();\n\t\tClientDevice.RollWindow();\n\t}",
"public static void main(String[] args)\r\n\t{\r\n\t\ttry {\r\n\t\t\t// read the command line options and run the client\r\n\t\t\tfinal Map options = new HashMap();\r\n\t\t\tif (parseOptions(args, options))\r\n\t\t\t\tnew PropClient().run(options);\r\n\t\t}\r\n\t\tcatch (final Throwable t) {\r\n\t\t\tif (t.getMessage() != null)\r\n\t\t\t\tSystem.out.println(t.getMessage());\r\n\t\t}\r\n\t}"
] | [
"0.7957523",
"0.79351246",
"0.79210716",
"0.7709127",
"0.7691967",
"0.76484823",
"0.76022536",
"0.7470851",
"0.74663275",
"0.74064296",
"0.7381772",
"0.7368303",
"0.7366498",
"0.7357607",
"0.72454596",
"0.72335225",
"0.7190688",
"0.7185178",
"0.7150583",
"0.71266514",
"0.71087515",
"0.7073129",
"0.707029",
"0.7069105",
"0.70675486",
"0.7032409",
"0.70307994",
"0.6999118",
"0.69879305",
"0.6976199",
"0.6973194",
"0.69699115",
"0.6941467",
"0.6937454",
"0.6906713",
"0.6895963",
"0.6890768",
"0.6882129",
"0.68735385",
"0.6863573",
"0.68607265",
"0.6860031",
"0.68507564",
"0.68400013",
"0.6838762",
"0.68253964",
"0.68230593",
"0.68054104",
"0.6802388",
"0.6796499",
"0.6771995",
"0.6760711",
"0.6744674",
"0.6743203",
"0.67338866",
"0.67310774",
"0.6722276",
"0.6718871",
"0.67161095",
"0.67152476",
"0.6710418",
"0.67102057",
"0.6704771",
"0.670127",
"0.6699911",
"0.6692786",
"0.66920525",
"0.667374",
"0.6672477",
"0.6664312",
"0.6658891",
"0.66558576",
"0.6655743",
"0.66556984",
"0.6651411",
"0.6642495",
"0.6632275",
"0.66282284",
"0.6626521",
"0.6625292",
"0.66245836",
"0.6620749",
"0.66148055",
"0.6614413",
"0.6611757",
"0.66064376",
"0.66062367",
"0.6606161",
"0.6603648",
"0.6598447",
"0.6597748",
"0.65974057",
"0.65966177",
"0.6596358",
"0.6593333",
"0.6592847",
"0.6592403",
"0.6584897",
"0.6576421",
"0.6575225",
"0.657494"
] | 0.0 | -1 |
infalte the item Layout | @Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.departmentnames, parent, false);
context = parent.getContext();
// set the view's size, margins, paddings and layout parameters
MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder
return vh;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }",
"public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }",
"protected abstract void iniciarLayout();",
"@Override\n public void onGlobalLayout() {\n\n if (!isFirstLayout) {\n isFirstLayout = true;\n ListAdapter adapter=new MeAdapter(getActivity(),gv.getHeight()/2,resIds,names);\n gv.setAdapter(adapter);\n\n }\n }",
"@Override\n public void layout() {\n // TODO: not implemented\n }",
"public void setupLayout() {\n // left empty for subclass to override\n }",
"private void initLayout() {\n ListView<PropertyWrapper> attributes = new ListView<PropertyWrapper>(\"attributes\", createAttributesModel()) {\n\n @Override\n protected void populateItem(ListItem<PropertyWrapper> listItem) {\n populateListItem(listItem);\n\n if (!showEmptyProperties && isEmpty(listItem)) {\n listItem.setVisible(false);\n }\n }\n };\n add(attributes);\n\n //todo remove !!!\n final MultiLineLabel label = new MultiLineLabel(\"debug\", new AbstractReadOnlyModel<String>() {\n\n @Override\n public String getObject() {\n return showStatus();\n }\n });\n label.add(new AjaxEventBehavior(\"onClick\") {\n\n @Override\n protected void onEvent(AjaxRequestTarget target) {\n target.add(label);\n }\n });\n add(label);\n }",
"protected abstract int getItemLayoutId();",
"public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}",
"@Override\n protected int getNormalLayoutResId() {\n return itemCommonBinder.layout;\n }",
"public void finishLayout() {\n\t\tsetTypeState(ir_type_state.layout_fixed);\n\t}",
"public void onFinishInflate() {\n super.onFinishInflate();\n bringChildToFront(this.menuButton);\n this.buttonsCount = getChildCount();\n createLabels();\n }",
"@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tl = 0;\n\t\tt = 0;\n\t\tr = getWidth();\n\t\tb = getHeight();\n\n\t\tif (header != null) {\n\t\t\theader.layout(l, t, r, header.getMeasuredHeight());\n\t\t\titem.layout(l, header.getMeasuredHeight(), r, b);\n\t\t} else if (divider != null) {\n\t\t\tdivider.setBounds(l, t, r, dividerHeight);\n\t\t\titem.layout(l, dividerHeight, r, b);\n\t\t} else {\n\t\t\titem.layout(l, t, r, b);\n\t\t}\n\t}",
"public abstract void doLayout();",
"private void initializeLayout(){\n String title = mStrInfo;\n String subtitle = mClientItem.clientName;\n mHomeToolbar.setGymRatToolbarTitle(title, subtitle);\n\n //initialize maids\n initializeMaid();\n\n //initialize bottom navigation\n initializeBottomNavigation();\n }",
"private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }",
"public ItemsControl() {\t\t\t\t\n\t\tlistListener = new SourceListChangeListener();\n\n\t\tBoxLayout boxLayout = new BoxLayout(this, BoxLayout.Y_AXIS);\n\t\tsetLayout(boxLayout);\t\t\t\t\n\t\tif (Beans.isDesignTime()) {\t\t\t\n\t\t\tJLabel designTimeCaptionLbl = new JLabel(\"<ItemsControl>\");\t\t\t\t\t\t\n\t\t\tthis.add(designTimeCaptionLbl);\n\t\t}\n\t}",
"public void a() {\n this.f25458d.a(this.f25457c);\n this.f25457c.a(this);\n Context context = getContext();\n LinearLayout linearLayout = new LinearLayout(context);\n linearLayout.setOrientation(1);\n addView(linearLayout, new ViewGroup.LayoutParams(-1, -2));\n d a2 = ShopAssistantItemView_.a(context);\n a2.a(R.drawable.ic_myproducts, R.string.sp_my_products, 0);\n a2.setTag(\"PRODUCT\");\n a2.setMinimumHeight(this.f25455a);\n linearLayout.addView(a2, new FrameLayout.LayoutParams(-1, -2));\n d a3 = ShopAssistantItemView_.a(context);\n a3.a(R.drawable.ic_mycustomers, R.string.sp_my_customers, 2);\n linearLayout.addView(a3, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a4 = ShopAssistantItemView_.a(context);\n a4.a(R.drawable.ic_shopprofile, R.string.sp_label_shop_profile, 6);\n linearLayout.addView(a4, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a5 = ShopAssistantItemView_.a(context);\n a5.a(R.drawable.img_shopsettings, R.string.sp_shop_settings, 4);\n linearLayout.addView(a5, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a6 = ShopAssistantItemView_.a(context);\n a6.a(R.drawable.ic_categories, R.string.sp_my_shop_categories, 8);\n a6.setSubtitle(this.f25461g.getCategoriesPath());\n linearLayout.addView(a6, new FrameLayout.LayoutParams(-1, this.f25455a));\n View view = new View(context);\n view.setBackgroundColor(b.a(R.color.background));\n linearLayout.addView(view, new FrameLayout.LayoutParams(-1, b.a.k));\n View view2 = new View(context);\n view2.setBackgroundColor(com.garena.android.appkit.tools.b.a(R.color.black06));\n linearLayout.addView(view2, new FrameLayout.LayoutParams(-1, b.a.f7690a));\n View inflate = ((LayoutInflater) context.getSystemService(\"layout_inflater\")).inflate(R.layout.seller_center, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.url)).setText(\"http://seller\" + i.f7042e);\n int b2 = com.garena.android.appkit.tools.b.b() - b.a.m;\n w.a(getContext()).a((int) R.drawable.sellercentre_banner).b(b2, (int) (((float) b2) / 1.886f)).e().f().a((ImageView) inflate.findViewById(R.id.banner));\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);\n inflate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.this.f25459e.V();\n }\n });\n linearLayout.addView(inflate, layoutParams);\n this.f25457c.e();\n this.f25457c.f();\n }",
"@Override\n\tpublic void onFinishLayout(View lay) {\n\t}",
"private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }",
"private void emptyLayout() {\n mTvEmpty.setText(R.string.text_receive_list_empty);\n mIvEmpty.setImageResource(R.drawable.ic_money_payment);\n mIvEmpty.setContentDescription(getString(R.string.descr_hand_money_empty));\n mListView.setEmptyView(mEmptyView);\n }",
"private void init() {\r\n\t\tthis.panel.setLayout(new BoxLayout(this.panel, BoxLayout.PAGE_AXIS));\r\n\t\tthis.labelTitle = new JLabel(\"Edit your weapons\");\r\n\t\tthis.labelTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.initFilter();\r\n\t\tthis.initList();\r\n\t\tthis.list.setSelectedIndex(0);\r\n\t\tthis.initInfo();\r\n\t\tthis.initButton();\r\n\r\n\t\tJPanel panelWest = new JPanel();\r\n\t\tpanelWest.setLayout(new BoxLayout(panelWest, BoxLayout.PAGE_AXIS));\r\n\t\tJPanel panelCenter = new JPanel();\r\n\t\tpanelCenter.setLayout(new BoxLayout(panelCenter, BoxLayout.LINE_AXIS));\r\n\r\n\t\tpanelWest.add(this.panelFilter);\r\n\t\tpanelWest.add(Box.createRigidArea(new Dimension(0, 5)));\r\n\t\tpanelWest.add(this.panelInfo);\r\n\t\tpanelCenter.add(panelWest);\r\n\t\tpanelCenter.add(Box.createRigidArea(new Dimension(10, 0)));\r\n\t\tthis.panelList.setPreferredSize(new Dimension(300, 150));\r\n\t\tpanelCenter.add(this.panelList);\r\n\r\n\t\tthis.panel.add(this.labelTitle);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(panelCenter);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(this.panelButton);\r\n\r\n\t}",
"private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }",
"public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t225,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\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\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1188,\n\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.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t603,\n\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t549,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t48,\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.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_view,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t955,\n\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_revert))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t893,\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.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tta_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t44,\n\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.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_tree,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t211,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\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.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}",
"@Override\n\tpublic void showItems(JZMatchBean bean, LinearLayout parent_layout) {\n\t\t\n\t}",
"public OrganizeItemsPanel() {\n initComponents();\n// lastIndeks = catalogProducts.size();\n }",
"private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }",
"public void onFinishInflate() {\n AppMethodBeat.i(103009);\n if (getChildCount() > 0) {\n View childAt = getChildAt(0);\n if (!(childAt instanceof RadarSpecialTableLayout)) {\n childAt = null;\n }\n this.pCL = (RadarSpecialTableLayout) childAt;\n }\n AppMethodBeat.o(103009);\n }",
"private void layoutControls()\n {\n getChildren().addAll(\n new Label(\"Abfahrt\"),\n departureTimeField,\n new Label(\"Bahnhof\"),\n destinationField\n );\n }",
"private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }",
"@Override\r\n\tpublic void layoutContainer(Container arg0) {\n\t\t\r\n\t}",
"private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}",
"@Override\n public int itemLayoutRes()\n {\n return R.layout.recommendlist_item;\n }",
"@AutoGenerated\n\tprivate HorizontalLayout buildInfo_container() {\n\t\tinfo_container = new HorizontalLayout();\n\t\tinfo_container.setImmediate(false);\n\t\tinfo_container.setWidth(\"100.0%\");\n\t\tinfo_container.setHeight(\"-1px\");\n\t\tinfo_container.setMargin(false);\n\t\t\n\t\t// nativeButton_upVote\n\t\tnativeButton_upVote = new NativeButton();\n\t\tnativeButton_upVote.setCaption(\"Up Vote\");\n\t\tnativeButton_upVote.setImmediate(false);\n\t\tnativeButton_upVote.setWidth(\"-1px\");\n\t\tnativeButton_upVote.setHeight(\"-1px\");\n nativeButton_upVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_upVote);\n\t\t\n\t\t// nativeButton_downVote\n\t\tnativeButton_downVote = new NativeButton();\n\t\tnativeButton_downVote.setCaption(\"Down Vote\");\n\t\tnativeButton_downVote.setImmediate(false);\n\t\tnativeButton_downVote.setWidth(\"-1px\");\n\t\tnativeButton_downVote.setHeight(\"-1px\");\n nativeButton_downVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_downVote);\n\n //nativeButton_accept\n nativeButton_accept = new NativeButton();\n nativeButton_accept.setCaption(\"Accept\");\n nativeButton_accept.setVisible(false);\n nativeButton_accept.setStyleName(\"accept-button\");\n info_container.addComponent(nativeButton_accept);\n\n //label_date\n label_date = new Label();\n label_date.setStyleName(\"date-label\");\n label_date.setWidth(\"-1px\");\n label_date.setHeight(\"-1px\");\n info_container.addComponent(label_date);\n info_container.setExpandRatio(label_date, 1.0f);\n info_container.setComponentAlignment(label_date, Alignment.MIDDLE_RIGHT);\n\t\t\n\t\t// label_user\n\t\tlabel_user = new Label();\n\t\tlabel_user.setImmediate(false);\n\t\tlabel_user.setWidth(\"-1px\");\n\t\tlabel_user.setHeight(\"-1px\");\n\t\tlabel_user.setValue(\"By \");\n label_user.setStyleName(\"user-label\");\n\t\tinfo_container.addComponent(label_user);\n//\t\tinfo_container.setExpandRatio(label_user, 1.0f);\n\t\tinfo_container.setComponentAlignment(label_user, new Alignment(34));\n\t\t\n\t\treturn info_container;\n\t}",
"int getItemViewLayoutId();",
"private void initUI(){\n\t\tfooterView = getLayoutInflater().inflate(R.layout.ent_refresh_footer,null);\n\t\tlistView = (ListView) findViewById(R.id.check_list);\n\t\tlistView.addFooterView(footerView);\n\t\tfooterView.setVisibility(View.GONE);\n\t\tlistView.setOnScrollListener(new ScrollListener());\n\t\tlistView.setOnItemClickListener(this);\n\t\tbtn_cricle_edit = (ImageButton) findViewById(R.id.btn_cricle_edit);\n\t\tbtn_cricle_option = (ImageButton) findViewById(R.id.btn_cricle_option);\n\t\tbtn_cricle_edit.setVisibility(View.INVISIBLE);\n\t\tbtn_cricle_option.setVisibility(View.GONE);\n\t\tactivity_bar_title = (TextView) findViewById(R.id.activity_bar_title);\n\t\tactivity_bar_title.setText(\"我的申请记录\");\n\t\tpbHelper = new ProgressBarHelper(this, findViewById(R.id.ll_data_loading));\n\t}",
"private void setLayout(){\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar1);\n setSupportActionBar(toolbar);\n\n drawerLayoutgesamt = (DrawerLayout) findViewById(R.id.drawerlayoutgesamt);\n drawerToggle = new ActionBarDrawerToggle(MenueDrawer.this,drawerLayoutgesamt,R.string.auf, R.string.zu);\n drawerLayoutgesamt.addDrawerListener(drawerToggle);\n }",
"protected void onLoadLayout(View view) {\n }",
"private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}",
"private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}",
"void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}",
"private void layout() {\n \n // Disable redrawing\n toolbar.setRedraw(false);\n\n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n labelAttribute.setText(labelAttribute.getText());\n labelTransformations.setText(labelTransformations.getText());\n labelApplied.setText(labelApplied.getText());\n labelSelected.setText(labelSelected.getText());\n labelAttribute.pack();\n labelTransformations.pack();\n labelApplied.pack();\n labelSelected.pack();\n \n // Adjust size of items and composite\n Rectangle bounds = toolbar.getBounds();\n int remaining = toolbar.getBounds().width;\n for (final ToolItem item : toolitems) {\n remaining -= item.getBounds().width;\n }\n remaining -= OFFSET;\n infoComposite.setSize(remaining, bounds.height);\n infoItem.setWidth(remaining);\n int locationY = (infoComposite.getBounds().height - labelSelected.getBounds().height)/2;\n\n // Layout label\n int locationX = remaining - labelApplied.getSize().x;\n labelApplied.setLocation(locationX, locationY);\n if (locationX < 0) labelApplied.setVisible(false);\n else labelApplied.setVisible(true);\n \n // Layout label\n locationX -= labelSelected.getSize().x + OFFSET;\n labelSelected.setLocation(locationX, locationY);\n if (locationX < 0) labelSelected.setVisible(false);\n else labelSelected.setVisible(true);\n\n // Layout label\n locationX -= labelTransformations.getSize().x + OFFSET;\n labelTransformations.setLocation(locationX, locationY);\n if (locationX < 0) labelTransformations.setVisible(false);\n else labelTransformations.setVisible(true);\n \n\n // Layout label\n locationX -= labelAttribute.getSize().x + OFFSET;\n labelAttribute.setLocation(locationX, locationY);\n if (locationX < 0) labelAttribute.setVisible(false);\n else labelAttribute.setVisible(true);\n \n // Redraw\n toolbar.setRedraw(true);\n toolbar.redraw();\n \n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n infoComposite.pack(true);\n }",
"public void forgetLayout()\r\n\t{\n\t}",
"public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }",
"private void buildMainLayout(IAuthorizationContext pContext)\r\n throws UnauthorizedAccessAttemptException, IOException {\r\n\r\n createObjectEntry();\r\n\r\n if (parent.getParentUI().siteName.equals(parent.getParentUI().siteNameCVMA)) {\r\n defineInfoLayoutCVMA();\r\n } else {\r\n defineInfoLayoutStandard();\r\n }\r\n\r\n thumbLayout = new VerticalLayout();\r\n thumbLayout.setSizeFull();\r\n thumbLayout.setSpacing(false);\r\n thumbLayout.setMargin(false);\r\n thumbLayout.setStyleName(\"white\");\r\n thumbLayout.setHeight(\"150px\");\r\n thumbLayout.setWidth(\"161px\");\r\n\r\n // initialize thumbnail field and button\r\n setThumbButton();\r\n\r\n // build content layout\r\n buttonLayout = new VerticalLayout();\r\n buttonLayout.setSizeFull();\r\n buttonLayout.setSpacing(false);\r\n buttonLayout.setMargin(false);\r\n buttonLayout.setStyleName(\"white\");\r\n buttonLayout.setHeight(\"150px\");\r\n buttonLayout.setWidth(\"161px\");\r\n\r\n // set download button\r\n setDownloadButton();\r\n\r\n // set metadata viewer button\r\n setMetadataViewerButton();\r\n\r\n // download button\r\n setImageDownloadButton();\r\n\r\n // map button\r\n setMapButton();\r\n\r\n // build content layout\r\n contentLayout = new HorizontalLayout();\r\n contentLayout.setSizeFull();\r\n contentLayout.setMargin(false);\r\n contentLayout.setMargin(new MarginInfo(false, false, true, false));\r\n contentLayout.setStyleName(\"white\");\r\n contentLayout.addComponent(thumbLayout);\r\n contentLayout.addComponent(infoLayout);\r\n contentLayout.addComponent(buttonLayout);\r\n contentLayout.setComponentAlignment(thumbLayout, Alignment.TOP_LEFT);\r\n contentLayout.setComponentAlignment(infoLayout, Alignment.TOP_CENTER);\r\n contentLayout.setComponentAlignment(buttonLayout, Alignment.TOP_RIGHT);\r\n contentLayout.setExpandRatio(infoLayout, 11f);\r\n }",
"public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}",
"@JsOverlay\n public final void layout() {\n Dagre.get().layout(this);\n }",
"public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}",
"private void setLayout() {\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));\n }\n }",
"@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n mTitleContent = (TextView) findViewById(R.id.title_content);\n mLeftTv = (TextView) findViewById(R.id.title_left_tv);\n mRightTv = (TextView) findViewById(R.id.title_right_tv);\n mRightImg = (ImageView) findViewById(R.id.title_right_img);\n mMessageView = (RelativeLayout) findViewById(R.id.toolbar_message_view);\n mUnReadImg = (ImageView) findViewById(R.id.toolbar_message_unread_img);\n }",
"public void onFinishInflate() {\n super.onFinishInflate();\n this.mIconView = (ImageView) findViewById(R.id.icon);\n this.mTitleView = (TextView) findViewById(R.id.title);\n this.mSummaryView = (TextView) findViewById(R.id.summary);\n this.mSlidingButton = findViewById(R.id.sliding_button);\n }",
"@PostConstruct\n void init() {\n\n\t\tfieldGroup = m_maduraSessionManager.createMaduraFieldGroup();\n\t\tfieldGroup.setReadOnly(true);\n\n\t\tfinal VerticalLayout verticalLayout = new VerticalLayout();\n verticalLayout.setMargin(true);\n verticalLayout.setSpacing(true);\n addComponent(verticalLayout);\n \n orderForm = new VerticalLayout();\n \n final HorizontalLayout horizontalLayout = new HorizontalLayout();\n horizontalLayout.setSpacing(true);\n horizontalLayout.setMargin(true);\n\n\t\torderStatusLabel = new Label();\n\t\thorizontalLayout.addComponent(orderStatusLabel);\n\t\tfieldGroup.bind(orderStatusLabel,\"orderStatus\");\n\t\t\n\t\torderAmountLabel = new Label();\n\t\thorizontalLayout.addComponent(orderAmountLabel);\n\t\tfieldGroup.bind(orderAmountLabel,\"amount\");\n\t\t\n\t\tverticalLayout.addComponent(orderForm);\n\t\torderForm.addComponent(horizontalLayout);\n\t\n\t\tHorizontalLayout actions = new HorizontalLayout();\n\t\tButton addItem = fieldGroup.createButton(\"button.addItem\", new ClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tPizza pizza = new Pizza();\n\t\t\t\tpizza.setId(System.currentTimeMillis());\n\t\t\t\tm_pizzaWindow.load(pizza);\n\t\t\t\t\n\t\t\t}});\n\t\tactions.addComponent(addItem);\n\t\tverticalLayout.addComponent(actions);\n\t\tgetEventRouter().addListener(AddItemEvent.class, this, \"addItem\");\n\t\tm_itemsTable = new FormattingTable();\n\t\tm_itemsTable.setImmediate(false);\n\t\tm_itemsTable.setWidth(\"500px\");\n\t\tm_itemsTable.setHeight(\"240px\");\n\t\tContainer indexed = new BeanItemContainer<Pizza>(Pizza.class, new ArrayList<Pizza>());\n\t\tm_itemsTable.setContainerDataSource(indexed,NATURAL_COL_ORDER,ENGLISH_COL_ORDER,m_maduraSessionManager.getMessageSource());\n\t\tverticalLayout.addComponent(m_itemsTable);\n\t\tm_itemsTable.addItemClickListener(new ItemClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemClick(ItemClickEvent event) {\n\t\t\t\tm_pizzaWindow.load((Pizza)event.getItemId());\n\t\t\t}});\n }",
"private void InitData() {\n\t\tmOptList = new HashMap<Integer, PlaylistEntry>();\n\t\tplaylist = new Playlist();\n\t\tmAdapter = new MusicAdapter(getContext());\n\n\t\tmListView = new ListView(getContext());\n\t\tmListView.setDividerHeight(0);\n\t\tmListView.setCacheColorHint(0x00000000);\n\t\tmListView.setFadingEdgeLength(0);\n\t\tmListView.setFastScrollEnabled(true);\n\t\tmListView.setFooterDividersEnabled(true);\n\t\tmListView.setSelector(R.drawable.press_list_sum);\n\t\tmListView.setOnItemClickListener(mOnItemClickListener);\n\t\tmListView.setPadding(1, 1, 1, 1);\n\n\t\t// 设置最后一个View\n\t\tView mFooterView = new View(getContext());\n\t\tmFooterView.setLayoutParams(new ListView.LayoutParams(\n\t\t\t\tLayoutParams.FILL_PARENT, Util.dipTopx(getContext(), 1)));// 以前是66\n\t\tmListView.addFooterView(mFooterView);\n\t\tmListView.setAdapter(mAdapter);\n\t\tmLinearLayout.addView(mListView);\n\n\t\tLinearLayout mLayout = new LinearLayout(getContext());\n\t\t// mLayout.setPadding(2, 0, 2, Util.dipTopx(getContext(), 13));\n\t\tmLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLayout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tLayoutParams.FILL_PARENT));\n\n\t\tView mView = new View(mLayout.getContext());\n\t\tmView.setLayoutParams(new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1));\n\n\t\tmLayout.addView(mView);\n\t\tmLayout.addView(mControlBar);\n\n\t\tthis.addView(mLinearLayout);\n\t\tthis.addView(mLayout);\n\t}",
"private void setLayout() {\n if (!mImageFragment.isAdded()) {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(\n MATCH_PARENT, MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n } else {\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE){\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n\n else {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT,\n MATCH_PARENT));\n }\n }\n }",
"private void inizia() throws Exception {\n this.setLayoutRef(new GridBagLayout());\n }",
"public void onGlobalLayout() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n llItems.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n } else {\n llItems.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n }\n int centerPosition = 0;\n\n // measure your views here\n int totalChildren = llItems.getChildCount();\n\n for (int i = 0; i < totalChildren - 1; i++) {\n ItemView firstItem = (ItemView) llItems.getChildAt(i);\n ItemView secondItem = (ItemView) llItems.getChildAt(i + 1);\n\n if (i == 0) {\n int paddingLeft = firstItem.getPaddingLeft();\n\n View radioButton = firstItem.findViewById(R.id.rb__choice);\n centerPosition = paddingLeft + radioButton.getWidth() / 2;\n }\n\n View lineView = inflater.inflate(R.layout.item_vertical_line, null);\n llLines.addView(lineView);\n lineView.setTag(\"LINE_\" + i);\n\n View line = lineView.findViewById(R.id.v__line);\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) line.getLayoutParams();\n\n int topSpace = 0;\n if (i == 0) {\n topSpace = firstItem.getHeight() / 2 + firstItem.rbChoice.getHeight() / 2;\n } else {\n topSpace = firstItem.rbChoice.getHeight();\n }\n\n params.setMargins(centerPosition - 1, topSpace, 0, 0);\n\n int height = firstItem.getHeight() + secondItem.getTopRadio() - firstItem.getBottomRadio();\n Log.i(\"TRUNGNTH\", \"Height: \" + height + \" secondItem.getTopRadio(): \" + secondItem.getTopRadio() + \" | firstItem.getBottomRadio(): \" + firstItem.getBottomRadio());\n params.height = height;\n line.setLayoutParams(params);\n }\n }",
"private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }",
"void LienaDivisoria(){\r\n \t\r\n VerticalLayout LayoutLineaDivisoria = new VerticalLayout();\r\n LayoutLineaDivisoria.setWidth(\"1024px\");\r\n LayoutLineaDivisoria.setHeight(\"5px\");\r\n LayoutLineaDivisoria.setStyleName(EstiloCSS + \"LayoutLineaDicisoria\");\r\n layout.addComponent(LayoutLineaDivisoria, \"left: 0px; top: 450px;\"); \r\n\r\n }",
"public void setSoundBoardLayout() {\n\n soundBoardList = new SoundBoardListType();\n soundBoardList = db.getAllSoundboards();\n soundBoardNames = new ArrayList();\n\n for (int i = 0; i < soundBoardList.getSoundBoardList().size(); i++) {\n soundBoardNames.add(soundBoardList.getSoundBoardList().get(i).getSoundBoardName());\n }\n\n soundBoardNames.add(\"+\");\n setContentView(R.layout.main_grid);\n GridView gridView = (GridView) findViewById(R.id.soundboardgrid);\n\n soundBoardListAdapter = new ArrayAdapter<String>(this, R.layout.main_sbrowtext, soundBoardNames);\n gridView.setAdapter(soundBoardListAdapter);\n gridView.setOnItemClickListener(openSoundBoardListener);\n gridView.setOnItemLongClickListener(editSoundBoardListener);\n gridView.setBackgroundColor(Color.BLACK);\n gridView.setStretchMode(GridView.STRETCH_COLUMN_WIDTH);\n gridView.getSelector().setAlpha(100);\n\n }",
"private void init() {\n mainll = new LinearLayout(getContext());\n mainll.setId(View.generateViewId());\n mainll.setLayoutParams(new ActionBar.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT, ActionBar.LayoutParams.WRAP_CONTENT));\n mainll.setOrientation(LinearLayout.VERTICAL);\n\n map = new HashMap<>();\n\n RelativeLayout mainrl = new RelativeLayout(getContext());\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT,\n ActionBar.LayoutParams.WRAP_CONTENT);\n\n params.addRule(RelativeLayout.BELOW, mainll.getId());\n\n save = new Button(getContext());\n\n save.setLayoutParams(params);\n save.setText(\"save\");\n\n mainrl.addView(mainll);\n mainrl.addView(save);\n addView(mainrl);\n }",
"private void positionItems()\n\t{\n\t\t// Log.v(TAG, \".positionItems\");\n\n\t\tint left = 0;\n\n\t\t// Find what should be the \"left\" value of the first child displayed.\n\t\t// This is needed in order to know how much to offset the first item\n\t\t// to the left when it started before the grid's starting time.\n\t\t// So, we find the time difference from the start in minutes,\n\t\t// and convert it to pixels.\n\t\tTimeBasedRelativeLayout firstChild = (TimeBasedRelativeLayout) getChildAt(0);\n\t\tif (firstChild != null)\n\t\t{\n\t\t\tProgram firstProgram = (Program) _adapter.getItem(_firstItemPosition);\n\n\t\t\tint firstChildWidth = firstChild.getMeasuredWidth();\n\t\t\tint thisWidth = getWidth();\n\n\t\t\tif (firstChildWidth > thisWidth)\n\t\t\t{\n\t\t\t\t// This is needed so that programs that are too long to fit the\n\t\t\t\t// visible area of the grid are resized to the grid's width.\n\t\t\t\t// Thus, the program title remains visible to the user at all\n\t\t\t\t// times even during horizontal pagination.\n\n\t\t\t\tfirstChild.setDesiredWidth(thisWidth);\n\t\t\t\tfirstChild.measure(MeasureSpec.AT_MOST, MeasureSpec.EXACTLY);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlong deltaMillis = _gridStartTimeMillis - firstProgram.getStartTime().getTimeInMillis();\n\t\t\t\tdouble roundingOffset = deltaMillis > 0 ? 0.5 : -0.5;\n\t\t\t\tlong deltaMin = (long) (deltaMillis / 60000.0 + roundingOffset);\n\t\t\t\tleft = -(int) (deltaMin * firstChild.getPixelsPerOneMinute());\n\t\t\t}\n\t\t}\n\n\t\tint top = 0;\n\n\t\tint childCount = getChildCount();\n\t\tfor (int index = 0; index < childCount; index++)\n\t\t{\n\t\t\tView child = getChildAt(index);\n\n\t\t\tint width = child.getMeasuredWidth();\n\t\t\tint height = child.getMeasuredHeight();\n\n\t\t\tchild.layout(left, top, left + width, top + height);\n\t\t\tleft += width;\n\t\t}\n\t}",
"@Override\n\tprotected int getLayoutRes() {\n\t\treturn R.layout.holiday_meals_item_layout;\n\t}",
"private void manageItemButtonHandler() {\n\t\tTitledBorder border = new TitledBorder(\" MANAGE ITEM\");\n\t\tborder.setTitleFont(new Font(\"TimesNewRoman\", Font.BOLD, 12));\n\t\tdisplayPanel.setBorder(border);\n\t\t\n\t\tdisplayPanel.removeAll();\n\t\tdisplayPanel.add(new ManageItemPanel(rmos, itemManager));\n\t\tdisplayPanel.revalidate();\n\t\tdisplayPanel.repaint();\n\t}",
"@Override\n\t\t\tpublic int getLayoutResource() {\n\t\t\t\treturn R.layout.mylogist_itemes; //mylogistical_item\n\t\t\t}",
"private void initMainComponentsLayout() {\r\n VerticalPanel selectDatasetLayout = new VerticalPanel();\r\n selectDatasetLayout.setWidth(\"300px\");\r\n selectDatasetLayout.setHeight(\"40px\");\r\n selectDatasetList = new ListBox();\r\n selectDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 300px;border-radius: 5px;\");\r\n selectDatasetList.setWidth(\"300px\");\r\n selectDatasetList.addItem(\"Select Dataset\");\r\n selectDatasetLayout.add(selectDatasetList);\r\n selectDatasetList.setVisible(false);\r\n\r\n selectSubDatasetList = new ListBox();\r\n selectSubDatasetList.getElement().setAttribute(\"style\", \"border: 1px solid gray;height: 24px;font-weight: bold;width: 300px;border-radius: 5px;\");\r\n selectSubDatasetList.setWidth(\"300px\");\r\n selectSubDatasetList.addItem(\"Select Sub-Dataset\");\r\n selectSubDatasetList.setVisible(false);\r\n selectDatasetLayout.add(selectSubDatasetList);\r\n\r\n tempSelectDatasetList = new ListBox();\r\n tempSelectDatasetList.addItem(\"Select Dataset\");\r\n\r\n tempSelectDatasetList.setWidth(\"300px\");\r\n tempSelectDatasetList.setHeight(\"24px\");\r\n\r\n getDatasetsList(\"\");//get available dataset names\r\n RootPanel.get(\"dropdown_select\").add(selectDatasetLayout);\r\n selectDatasetList.addChangeHandler(this);\r\n selectSubDatasetList.addChangeHandler(this);\r\n\r\n tempSelectDatasetList.addChangeHandler(this);\r\n tempSelectDatasetList.addChangeHandler(this);\r\n Window.addResizeHandler(new ResizeHandler() {\r\n\r\n @Override\r\n public void onResize(ResizeEvent event) {\r\n if (masterWidth != Page.getScreenWidth() || masterHeight != Page.getScreenHeight()) {\r\n BooleanCallback ok = new BooleanCallback() {\r\n\r\n @Override\r\n public void execute(Boolean value) {\r\n if (value) {\r\n Window.Location.reload();\r\n }\r\n }\r\n };\r\n SC.confirm(\"You have changed the screen size the application need to reload the page press OK to proceed or close and back to the old screen\", ok);\r\n }\r\n }\r\n });\r\n\r\n initHomePage();\r\n welcomePage.setStyleName(\"welcomepagelayout\");\r\n RootPanel.get(\"welcomediva\").add(welcomePage);\r\n if (!oldIE) {\r\n initMiddleBodyLayout();\r\n }\r\n }",
"private void setUpFooter(){\n JButton newItem = new JButton();\n JTextField name = new JTextField();\n DatePicker date = new DatePicker();\n ColorPicker priority = ColorPicker.createColorPicker(4,Color.RED);\n newItem.setText(\"+\");\n newItem.addActionListener(e -> {\n Tasks tasks = new Tasks();\n JPanel list = this.getPanelForList();\n boolean allFiled = true;\n if(!name.getText().isEmpty()) {\n tasks.setName(name.getText());\n name.setText(null);\n }else {\n this.emptyTextFieldPopUp(\"name\");\n allFiled = false;\n }\n if(!date.getDate().isEmpty()) {\n tasks.setDeadline(DateHandler.getDateFromString(date.getDate()));\n date.resetDate();\n }else {\n this.emptyTextFieldPopUp(\"deadline\");\n allFiled = false;\n }\n tasks.setPriority(ColorPriorityHandler.getPriority(priority.getColor()));\n tasks.setItems_id(currentList);\n tasks.setStatus(0);\n JPanel taskList = (JPanel)((JViewport)((JScrollPane)list.getComponent(1)).getComponent(0)).getComponent(0);\n if(allFiled) {\n this.addTask(taskList,tasks);\n priority.setColor(currentList.getColor());\n }\n });\n footer.setLayout(new GridLayout(2,4));\n footer.add(new JLabel(\"Add new\"));\n footer.add(new JLabel(\"Name:\"));\n footer.add(new JLabel(\"Date:\"));\n footer.add(new JLabel(\"Priority:\"));\n footer.add(newItem);\n footer.add(name);\n footer.add(date);\n footer.add(priority);\n }",
"@Override\r\n\tint setLayout() {\n\t\treturn R.layout.product_bigimg;\r\n\t}",
"private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }",
"private void initial() {\n\t\tsetTitleTxt(getString(R.string.choose_game));\n\t\tLinearLayout contentView = (LinearLayout) findViewById(R.id.contentView);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\tview = View.inflate(this, R.layout.user_choose_game, null);\n\t\tcontentView.addView(view, params);\n\t\tgameGrid = (GridView) view.findViewById(R.id.game_list);\n\t\tgameContent = (LinearLayout) view.findViewById(R.id.game_list_info);\n\t\tview.setVisibility(View.GONE);\n\t}",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}",
"protected abstract void createItemsForAddedObjects(Layout layout,\r\n boolean doLayout);",
"private void initViews() {\n removeAllViews();\n this.setOrientation(HORIZONTAL);\n this.setOnTouchListener(this);\n\n TextView textView;\n ImageView imageView;\n for (PickerItem pickerItem : items) {\n if (pickerItem.hasDrawable()) {\n imageView = new ImageView(getContext());\n imageView.setImageResource(pickerItem.getDrawable());\n imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);\n initStyle(imageView);\n this.addView(imageView);\n } else {\n if (pickerItem.getText() != null) {\n textView = new TextView(getContext());\n textView.setGravity(Gravity.CENTER);\n textView.setText(pickerItem.getText());\n initStyle(textView);\n this.addView(textView);\n }\n }\n }\n }",
"private void milestonesLayoutHandler() {\n layoutMilestones = (LinearLayout) findViewById(R.id.layoutMilestones);\n txtViewMilestonesCountToday = (AutoResizeTextView) findViewById(R.id.txtViewMilestonesCountToday);\n txtMilestonesYesterdayValue = (TextView) findViewById(R.id.txtMilestonesYesterdayValue);\n\n layoutMilestones.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"Coming soon\", Toast.LENGTH_SHORT).show();\n }\n });\n\n txtViewMilestonesCountToday.setText(String.valueOf(userSharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0)));\n txtMilestonesYesterdayValue.setText(\"-\");\n }",
"@Override\n public int getLayout(int position) {\n return R.layout.school_contact_item;\n }",
"protected void setupView(Context context, final ViewGroup parent) {\n\n LayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View v = inflater.inflate(R.layout.balloon_overlay, parent);\n title = (TextView) v.findViewById(R.id.balloon_item_title);\n snippet = (TextView) v.findViewById(R.id.balloon_item_snippet);\n image = (ImageView) v.findViewById(R.id.balloon_item_image);\n\n ImageView close = (ImageView) v.findViewById(R.id.balloon_close);\n close.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n parent.setVisibility(GONE);\n // parent.removeAllViews();\n }\n });\n }",
"@Override\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\n try{\n super.onLayoutChildren(recycler, state);\n }catch (IndexOutOfBoundsException e){\n }\n\n }",
"protected void directUpdateLayout() {\n updateLayout();\n }",
"private void updateUI() {\n swipeRefreshLayout.setRefreshing(false);\n adapter.clearItems();\n itemList.addAll(DatabaseController.getInstance(getApplicationContext()).getItems());\n if (itemList.size() > 0){\n emptyTextView.setVisibility(View.GONE);\n adapter.notifyDataSetChanged();\n } else {\n emptyTextView.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n public void onGlobalLayout() {\n if (right == 0) {\n imgStepsLast.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n right = imgStepsLast.getRight();\n }\n showHelpView(layoutInflater);\n\n }",
"void fillInnerParts() {\n // TODO: change the method to get each category panel\n adminPanel = new CategoryPanel(logic.getUiTaskList().getAdminList(), \"Admin\");\n categoryPanelPlaceholder.getChildren().add(adminPanel.getRoot());\n topicPanel = new CategoryPanel(logic.getUiTaskList().getTopicList(), \"Topic\");\n categoryPanelPlaceholder.getChildren().add(topicPanel.getRoot());\n ipPanel = new CategoryPanel(logic.getUiTaskList().getIpList(), \"Ip\");\n categoryPanelPlaceholder.getChildren().add(ipPanel.getRoot());\n tpPanel = new CategoryPanel(logic.getUiTaskList().getTpList(), \"Tp\");\n categoryPanelPlaceholder.getChildren().add(tpPanel.getRoot());\n refreshTitle();\n\n int currentWeekNumber = AppUtil.getCurrentWeekNumber().getWeekValueInt();\n Double num = (double) currentWeekNumber / (double) 13;\n progressBar.setProgress(num);\n\n weekDisplay = new WeekDisplay(currentWeekNumber);\n\n weekDisplayPlaceholder.getChildren().add(weekDisplay.getRoot());\n\n feedbackBox = new FeedbackBox();\n feedbackBoxPlaceholder.getChildren().add(feedbackBox.getRoot());\n CommandBox commandBox = new CommandBox(this::executeCommand); // bottom of Ace CS2103/T\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n }",
"private void setupChildFragmentLayout() {\n VerticalGridView containerList = mRowsFragment.getVerticalGridView();\n setVerticalGridViewLayout(containerList);\n }",
"private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}",
"@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void doLayout() {\n\t\tthis.transitionsPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t//this.timersButton.setBounds(this.getWidth()-2*50, 0, 50, 50);\n\t\t//this.countersButton.setBounds(this.getWidth()-50, 0, 50, 50);\n\t\t//this.salirButton.setBounds(this.getWidth()-40,0,40, 40);\n\t\tsuper.doLayout();\n\t}",
"private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tmLayout.requestLayout();\r\n\t\t\t}",
"@Override\r\n protected void onFinishInflate() {\r\n initComponents();\r\n }",
"public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }",
"@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }",
"@Override\r\n protected void layoutChildren () {\r\n /* Custom children positioning */\r\n super.layoutChildren();\r\n\r\n if (noDataIcon.isVisible()) {\r\n noDataIcon.relocate((getWidth() - noDataIcon.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - noDataIcon.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (innerContainer != null) {\r\n innerContainer.relocate((getWidth() - innerContainer.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - innerContainer.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (currentIcon != null) {\r\n currentIcon.relocate(\r\n suffixLabel.getBoundsInParent().getMinX() + innerContainer.getBoundsInParent().getMinX(),\r\n suffixLabel.getBoundsInParent().getMinY() + innerContainer.getBoundsInParent().getMinY()\r\n - currentIcon.getLayoutBounds().getHeight() + 2);\r\n }\r\n\r\n }",
"private void layoutBar() {\n this.setVisible(false);\n final SpringLayout layout = (SpringLayout) this.getLayout();\n final int numComponents = this.getComponentCount() - 1;\n \n SpringLayout.Constraints constraints;\n \n layout.putConstraint(SpringLayout.WEST, getComponent(0),\n Spring.constant(0), SpringLayout.WEST, this);\n layout.putConstraint(SpringLayout.EAST, getComponent(0),\n Spring.constant(-SMALL_BORDER), SpringLayout.WEST, getComponent(1));\n constraints = layout.getConstraints(getComponent(0));\n constraints.setHeight(Spring.constant(20));\n \n for (int i = 1; i < numComponents; i++) {\n layout.putConstraint(SpringLayout.EAST, getComponent(i),\n Spring.constant(-SMALL_BORDER), SpringLayout.WEST,\n getComponent(i + 1));\n constraints = layout.getConstraints(getComponent(i));\n constraints.setHeight(Spring.constant(20));\n constraints.setWidth(constraints.getWidth());\n }\n \n layout.putConstraint(SpringLayout.EAST, getComponent(numComponents),\n Spring.constant(0), SpringLayout.EAST, this);\n constraints = layout.getConstraints(getComponent(numComponents));\n constraints.setHeight(Spring.constant(20));\n constraints.setWidth(constraints.getWidth());\n this.setVisible(true);\n }",
"@Override\r\n\tprotected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2,\r\n\t\t\tint paramInt3, int paramInt4) {\n\t\tint j = paramInt3 - paramInt1;\r\n\t\tint k = paramInt4 - paramInt2;\r\n\t\tif (this.navBar != null) {\r\n\t\t\tint i = this.navBar.getMeasuredHeight();\r\n\t\t\tthis.navBar.layout(0, 0, j, i);\r\n\t\t\tthis.mainContent.layout(0, i, j, k);\r\n\t\t}\r\n\t\tif (this.spinnerView != null)\r\n\t\t\tthis.spinnerView.layout(0, 0, j, k);\r\n\t}",
"private void initInfo() {\r\n\t\tthis.panelInfo = new JPanel();\r\n\t\tthis.panelInfo.setLayout(new BoxLayout(this.panelInfo,\r\n\t\t\t\tBoxLayout.PAGE_AXIS));\r\n\t\tJPanel filterInfoPanel = new JPanel();\r\n\t\tfilterInfoPanel.setLayout(new GridLayout(4, 2, 10, 10));\r\n\t\tJLabel labelInformation = new JLabel(\"Information\");\r\n\t\tif (dlm.getSize() > 0) {\r\n\t\t\tWeapon weapon = this.tableWeapon.getWeapon((String) this.list\r\n\t\t\t\t\t.getSelectedValue());\r\n\r\n\t\t\tlabelInformation.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\t\tJLabel labelName = new JLabel(\"Name\");\r\n\t\t\tJLabel labelNameInfo = new JLabel(weapon.getName());\r\n\t\t\tJLabel labelDamage = new JLabel(\"Damages\");\r\n\t\t\tJLabel labelDamageInfo = new JLabel(String.valueOf(weapon\r\n\t\t\t\t\t.getDamagesMinimum())\r\n\t\t\t\t\t+ \" - \"\r\n\t\t\t\t\t+ String.valueOf(weapon.getDamagesMaximum()));\r\n\t\t\tJLabel labelPrice = new JLabel(\"Price\");\r\n\t\t\tJLabel labelPriceInfo = new JLabel(\r\n\t\t\t\t\tString.valueOf(weapon.getPrice()));\r\n\t\t\tJLabel labelType = new JLabel(\"Types\");\r\n\t\t\tJLabel labelTypeInfo = new JLabel(\r\n\t\t\t\t\t(String) this.comboBoxType.getSelectedItem());\r\n\t\t\tfilterInfoPanel.add(labelName);\r\n\t\t\tfilterInfoPanel.add(labelNameInfo);\r\n\t\t\tfilterInfoPanel.add(labelDamage);\r\n\t\t\tfilterInfoPanel.add(labelDamageInfo);\r\n\t\t\tfilterInfoPanel.add(labelPrice);\r\n\t\t\tfilterInfoPanel.add(labelPriceInfo);\r\n\t\t\tfilterInfoPanel.add(labelType);\r\n\t\t\tfilterInfoPanel.add(labelTypeInfo);\r\n\r\n\t\t} else {\r\n\r\n\t\t\tlabelInformation.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\t\tJLabel labelName = new JLabel(\"Name\");\r\n\t\t\tJLabel labelNameInfo = new JLabel();\r\n\t\t\tJLabel labelDamage = new JLabel(\"Damages\");\r\n\t\t\tJLabel labelDamageInfo = new JLabel();\r\n\t\t\tJLabel labelPrice = new JLabel(\"Price\");\r\n\t\t\tJLabel labelPriceInfo = new JLabel();\r\n\t\t\tJLabel labelType = new JLabel(\"Types\");\r\n\t\t\tJLabel labelTypeInfo = new JLabel();\r\n\t\t\tfilterInfoPanel.add(labelName);\r\n\t\t\tfilterInfoPanel.add(labelNameInfo);\r\n\t\t\tfilterInfoPanel.add(labelDamage);\r\n\t\t\tfilterInfoPanel.add(labelDamageInfo);\r\n\t\t\tfilterInfoPanel.add(labelPrice);\r\n\t\t\tfilterInfoPanel.add(labelPriceInfo);\r\n\t\t\tfilterInfoPanel.add(labelType);\r\n\t\t\tfilterInfoPanel.add(labelTypeInfo);\r\n\t\t}\r\n\r\n\t\tthis.panelInfo.add(labelInformation);\r\n\t\tthis.panelInfo.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panelInfo.add(filterInfoPanel);\r\n\t\tthis.panelInfo.add(Box.createRigidArea(new Dimension(0, 3)));\r\n\t\tthis.panelInfo.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t}",
"private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public void generarLinearLayoutV() {\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n\n rvMascotas.setLayoutManager(llm);//le entrego el layout a mi lista\n\n }",
"@Override\n protected int[] getChildViewIds() {\n return new int[] {\n R.id.feed_item_root,\n R.id.feed_item_avatar_layout,\n R.id.feed_item_avatar,\n R.id.feed_item_nickname,\n R.id.feed_item_createtime,\n R.id.feed_expand_text_view,\n R.id.feed_item_desc_image_layout,\n R.id.feed_item_desc_image,\n R.id.feed_support_count,\n R.id.feed_post_layout,\n R.id.feed_post_container_layout,\n R.id.feed_support_layout,\n R.id.feed_item_image_grid,\n R.id.feed_item_share,\n R.id.feed_item_support,\n R.id.feed_item_post,\n R.id.feed_item_support_text,\n R.id.feed_item_default_delete_button,\n R.id.feed_item_delete_layout,\n R.id.feed_prize_layout,\n R.id.feed_prize_text,\n R.id.feed_badge_layout,\n R.id.feed_prize_and_support_and_post_layout,\n\n R.id.item_divider,\n\n //empty\n R.id.list_empty_layout,\n R.id.list_empty_text\n };\n }",
"@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n child.layout(lp.x, lp.y, lp.x + child.getMeasuredWidth(), lp.y + child.getMeasuredHeight());\n }\n\n }",
"private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }"
] | [
"0.7255202",
"0.7166232",
"0.6757847",
"0.6723138",
"0.67204124",
"0.6638912",
"0.65264904",
"0.65208465",
"0.64987856",
"0.64455706",
"0.63868976",
"0.63819724",
"0.63784546",
"0.6330461",
"0.6296194",
"0.62819713",
"0.6274178",
"0.6236497",
"0.6223347",
"0.6182675",
"0.6159537",
"0.6154279",
"0.6152088",
"0.6136827",
"0.6112018",
"0.61059105",
"0.6081143",
"0.60705525",
"0.6053126",
"0.60523665",
"0.60310143",
"0.6029538",
"0.599847",
"0.598017",
"0.5979189",
"0.59740037",
"0.59732324",
"0.5966374",
"0.5957404",
"0.59555554",
"0.5914888",
"0.58991975",
"0.5897561",
"0.588987",
"0.5883548",
"0.58816487",
"0.5871146",
"0.5839818",
"0.5830517",
"0.58217907",
"0.5818986",
"0.58153296",
"0.5811769",
"0.58080155",
"0.5807611",
"0.58051133",
"0.57976717",
"0.5790981",
"0.5786447",
"0.5783627",
"0.577151",
"0.5770841",
"0.5768475",
"0.5766731",
"0.576555",
"0.5765454",
"0.5765095",
"0.5764515",
"0.57622",
"0.5761475",
"0.57613707",
"0.57583565",
"0.5756234",
"0.57476944",
"0.574423",
"0.57411253",
"0.5739065",
"0.57389057",
"0.5738024",
"0.5737139",
"0.5734825",
"0.57337594",
"0.57305294",
"0.57162994",
"0.5711106",
"0.5710285",
"0.570877",
"0.57078224",
"0.57055825",
"0.5704848",
"0.5702456",
"0.5696628",
"0.56952256",
"0.5694121",
"0.5678421",
"0.5677804",
"0.56733555",
"0.5660719",
"0.56598586",
"0.56597275",
"0.5649395"
] | 0.0 | -1 |
set the data in items | @Override
public void onBindViewHolder(CustomAdapterForDepartment.MyViewHolder holder, final int position) {
holder.name.setText(departmentNames.get(position).toString());
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
s = departmentNames.get(position).toString();
Fragment fragment = new DoctorList();
FragmentManager fragmentManager = ((DashboardActivity) context).getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
Bundle bundle = new Bundle();
bundle.putString("departmentName", s); //key and value
//set Fragmentclass Arguments
fragment.setArguments(bundle);
// this is basically context of the class
fragmentTransaction.replace(R.id.fragment_department_id, fragment);
// fragmentTransaction.remove();
// fragmentTransaction.replace(R.id.fragment_department_id, fragment);
//fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
fragmentTransaction.commit();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setData(Item i)\r\n\t{\r\n\t\ttheItem = i;\r\n\t}",
"private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }",
"public void setItems(){\n }",
"public void setData(GenericItemType data) {\n this.data = data;\n }",
"public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }",
"private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }",
"public void setItems(Item items) {\n this.items = items;\n }",
"private void setItem(){\n item = new String[4];\n item[0] = title;\n item[1] = DueDate;\n item[2] = Description;\n item[3] = \"incomplete\";\n }",
"public void setItem(Item item) {\n this.item = item;\n }",
"public void setItems(ItemList items) {\r\n this.items = items;\r\n }",
"private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}",
"public void set(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n\n //first collapse all items\n getFastAdapter().collapse();\n\n //get sizes\n int newItemsCount = items.size();\n int previousItemsCount = mItems.size();\n int itemsBeforeThisAdapter = getFastAdapter().getItemCount(getOrder());\n\n //make sure the new items list is not a reference of the already mItems list\n if (items != mItems) {\n //remove all previous items\n if (!mItems.isEmpty()) {\n mItems.clear();\n }\n\n //add all new items to the list\n mItems.addAll(items);\n }\n\n //map the types\n mapPossibleTypes(items);\n\n //now properly notify the adapter about the changes\n if (newItemsCount > previousItemsCount) {\n if (previousItemsCount > 0) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, previousItemsCount);\n }\n getFastAdapter().notifyAdapterItemRangeInserted(itemsBeforeThisAdapter + previousItemsCount, newItemsCount - previousItemsCount);\n } else if (newItemsCount > 0 && newItemsCount < previousItemsCount) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, newItemsCount);\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter + newItemsCount, previousItemsCount - newItemsCount);\n } else if (newItemsCount == 0) {\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter, previousItemsCount);\n } else {\n getFastAdapter().notifyAdapterDataSetChanged();\n }\n }",
"public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }",
"public void setItems(String items)\n {\n _items = items;\n }",
"public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}",
"public void setItem(T item) {\n this.item = item;\n }",
"protected abstract void fillData(View itemView, T data);",
"public void setItem(Item[] param) {\r\n validateItem(param);\r\n\r\n localItemTracker = true;\r\n\r\n this.localItem = param;\r\n }",
"public void setDataAndRefresh(List<T> data) {\n this.data = data;\n// views = new ArrayList<>(data.size());\n// // builder data set of all item view\n// for (int i = 0; i < data.size(); i++) {\n// int itemLayoutId = getItemLayoutId();\n// LayoutInflater inflater = LayoutInflater.from(getContext());\n// View itemView = inflater.inflate(itemLayoutId, null);\n// fillData(itemView, data.get(i));\n// // add item titleView\n// views.add(itemView);\n// }\n notifyDataSetChanged();\n }",
"public void setData(Post item) {\n a.setText(points + \" points\");\n this.dataItem = item;\n title.setText(item.getTitle());\n desc.setText(item.getDesc());\n upvoted.setEnabled(!item.isUpvoted());\n downvoted.setEnabled(!item.isDownvoted());\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n // Picasso.with(itemView.getContext()).load(item.getImg()).into(img);\n\n\n\n }",
"public void setDataItem(Object value) {\n this.dataItem = value;\n }",
"public void setNewList(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems = new ArrayList<>(items);\n mapPossibleTypes(mItems);\n getFastAdapter().notifyAdapterDataSetChanged();\n }",
"public void setItem(Item item) {\n\t\tthis.item = item;\n\t}",
"public void setItem(Item item) {\n\t\tthis.item = item;\n\t}",
"@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}",
"private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }",
"public void setData(java.util.List data) {\r\n this.data = data;\r\n }",
"public void setItem(Object item, int i)\n {\n items.setElementAt(item, i);\n }",
"private void setItems(Set<T> items) {\n Assertion.isNotNull(items, \"items is required\");\n this.items = items;\n }",
"public void setData(Item item) {\n layout.setVisibility(VISIBLE);\n setBalloonData(item, layout);\n }",
"void setData(Object data);",
"public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}",
"public void setData() {\n tVShortTitle.setText(mCurrencyShortForm);\n tVCount.setText(mCountTitle.concat(String.valueOf(mMainListForActions.size())));\n tVFirstCurrency.setText(mFirstCurrencyTitle);\n tVChosenOrganizationPurchase.setText(getInfoString(mPurchaseTitle + \": \", mPurchaseValue));\n tVChosenOrganizationSale.setText(getInfoString(mSaleTitle + \": \", mSaleValue));\n tVChosenOrganizationDate.setText(mDate.substring(0, 10));\n if (mAction.equals(ConstantsManager.CONVERTER_ACTION_SALE)) {\n tVChosenAction.setText(mSaleTitle.toUpperCase());\n } else {\n tVChosenAction.setText(mPurchaseTitle.toUpperCase());\n }\n mTextWatcherAdapter.setActionForFirst(false);\n mTextWatcherAdapter.setActionForSecond(false);\n convertValue();\n }",
"public void setItem(ItemType item) {\n\t this.item = item;\n\t}",
"public void setItem(ItemType item) {\n\t this.item = item;\n\t}",
"public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}",
"void setData (Object data);",
"private void setData() {\n\n }",
"public void setData(Object data) {\r\n this.data = data;\r\n }",
"public void setData(E data) {\r\n\t\tthis.data = data;\r\n\t}",
"public void setItems() {\n if (partSelected instanceof OutSourced) { // determines if part is OutSourced\n outSourcedRbtn.setSelected(true);\n companyNameLbl.setText(\"Company Name\");\n OutSourced item = (OutSourced) partSelected;\n idTxt.setText(Integer.toString(item.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(item.getPartName());\n invTxt.setText(Integer.toString(item.getPartInStock()));\n costTxt.setText(Double.toString(item.getPartPrice()));\n maxTxt.setText(Integer.toString(item.getMax()));\n minTxt.setText(Integer.toString(item.getMin()));\n idTxt.setText(Integer.toString(item.getPartID()));\n companyNameTxt.setText(item.getCompanyName());\n }\n if (partSelected instanceof InHouse) { // determines if part Is InHouse\n inHouseRbtn.setSelected(true);\n companyNameLbl.setText(\"Machine ID\");\n InHouse itemA = (InHouse) partSelected;\n idTxt.setText(Integer.toString(itemA.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(itemA.getPartName());\n invTxt.setText(Integer.toString(itemA.getPartInStock()));\n costTxt.setText(Double.toString(itemA.getPartPrice()));\n maxTxt.setText(Integer.toString(itemA.getMax()));\n minTxt.setText(Integer.toString(itemA.getMin()));\n idTxt.setText(Integer.toString(itemA.getPartID()));\n companyNameTxt.setText(Integer.toString(itemA.getMachineID()));\n\n }\n }",
"private void setData() {\n populateInterfaceElements();\n }",
"public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLock){\n filteredList = new ArrayList<T>(items);\n originalList = null;\n updateFilteringAndSorting();\n }\n }",
"public abstract void setCustomData(Object data);",
"private static void setValues( String name, Integer number, Item item ) {\n\t\titem.getItemProperty( \"name\" ).setValue( name );\n\t\titem.getItemProperty( \"number\" ).setValue( number );\n\t\titem.getItemProperty( \"id\" ).setValue( itemId );\n\t\titem.getItemProperty( \"id\" ).setReadOnly( true );\n\t\titemId++;\n\t}",
"public void setData(E data)\n {\n this.data = data;\n }",
"@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\tint numOfItems = loader.getNumOfItems();\r\n\t\tsetStoreSize(numOfItems);\r\n\r\n\t\tfor (int i = 0; i < numOfItems; i++) {\r\n DrinksStoreItem item = (DrinksStoreItem) loader.getItem(i);\r\n\t\t\tStoreObject brand = item.getContent();\r\n\t\t\tStoreObject existingBrand = findObject(brand.getName());\r\n\t\t\tif (existingBrand != null) {\r\n\t\t\t item.setContent(existingBrand);\r\n\t\t\t}\r\n\t\t\taddItem(i, item);\t\r\n\t\t}\r\n\t}",
"public void setData(Object data) {\n this.data = data;\n }",
"@Override\n\tpublic void setData() {\n\n\t}",
"public abstract void setList(List<T> items);",
"@Override\n public void setChanged() {\n set(getItem());\n }",
"public void initAttributes(ObservableList<Item> items) {\n this.items = items;\n }",
"public void setItem(ArrayOfItem param) {\r\n localItemTracker = param != null;\r\n\r\n this.localItem = param;\r\n }",
"@Override\n public void setItemsResponse(Context context) {\n // Load string from the given all.json file.\n String jsonString = JSONUtils.loadJSONFromAsset(context, DATA_FILE_NAME);\n\n try {\n // Create JSONObject of the response.\n JSONObject jsonObject = new JSONObject(jsonString);\n\n // Retrieve \"result\" and \"data\" from the response.\n String result = jsonObject.getString(\"result\");\n\n JSONArray dataArray = jsonObject.getJSONArray(\"data\");\n List<Item> dataList = new ArrayList<>();\n\n for (int i = 0; i < dataArray.length(); ++i) {\n JSONObject object = dataArray.getJSONObject(i);\n Item item = new Item(\n object.getString(\"id\"),\n object.getString(\"name\"),\n object.getLong(\"num_likes\"),\n object.getLong(\"num_comments\"),\n object.getLong(\"price\"),\n object.getString(\"photo\"),\n object.getString(\"status\")\n );\n dataList.add(item);\n }\n\n // Instantiate the response object with the \"result\" and \"data\".\n mItemsResponse = new Response(result, dataList);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"void setData(T data) {\n\t\tthis.data = data;\n\t}",
"public void setItems(List<PickerItem> items) {\n this.items = items;\n initViews();\n selectChild(-1);\n }",
"public void setAdditionalData(ObservableList<MapItemData> data) {\n\n\t\tthis.additionalData = data;\n\n\t}",
"public void setData(Data data) {\n this.data = data;\n }",
"private void setRecyclerViewData() {\n }",
"@Override\n public void setItems(List<ExplanationOrReadingItem> items) {\n progressDialog.dismiss();\n mlist.setAdapter(new ExplanationOrReadingAdapter(items));\n mlist.setOnItemClickListener(this);\n }",
"public void setItem(BudgetItemModel item) { model= item;}",
"public void setData(List<Emergency> data) {\n this.data = data;\n notifyDataSetChanged();\n }",
"public void setITEM(int value) {\r\n this.item = value;\r\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_volvo_cysjysz, R.string.can_volvo_zdsm, R.string.can_door_unlock, R.string.can_volvo_zdhsj, R.string.can_volvo_qxzchsj, R.string.can_volvo_qxychsj, R.string.can_volvo_fxplsz, R.string.can_volvo_dstc, R.string.can_volvo_csaq, R.string.can_volvo_hfqcsz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.TITLE};\n this.mPopValueIds[2] = new int[]{R.string.can_door_unlock_key2, R.string.can_door_unlock_key1};\n this.mPopValueIds[6] = new int[]{R.string.can_ac_low, R.string.can_ac_mid, R.string.can_ac_high};\n this.mSetData = new CanDataInfo.VolvoXc60_CarSet();\n }",
"public void setData(Object data) {\n\t\tthis.data = data;\n\t}",
"public void setData(Object[] data) {\n itsWidget.setReady(true);\n Slot slot = itsWidget.getKB().getSlot((String) data[0]);\n itsModel.initialize(listToStringArray(new ArrayList(slot.getAllowedValues())));\n return;\n }",
"public void setData( E data ) {\n\t\tthis.data = data;\n\t}",
"public void setData(IData data) {\n this.data = data;\n }",
"public void setData(T data){\n this.data = data;\n }",
"private void initializeData() {\n lblItem.setText(product.getName());\n txtReference.setText(product.getTransaction().getReferenceNumber());\n txtItem.setText(product.getName());\n txtDescription.setText(product.getDescription());\n txtBrand.setText(product.getBrand());\n txtModel.setText(product.getModel());\n txtQuantity.setText(String.valueOf(product.getQuantity()));\n txtUnit.setText(product.getUnit());\n txtProductDate.setDate(product.getProduct_date());\n txtOrigPrice.setText(String.valueOf(product.getOriginalPrice()));\n txtAgent.setText(product.getAgent());\n txtContactPerson.setText(product.getContactPerson());\n try { \n txtSupplier.setText(((Supplier)product.getSuppliers().toArray()[0]).getName());\n } catch(ArrayIndexOutOfBoundsException ex) {\n System.out.println(ex.toString());\n }\n }",
"public void setItems(Object[] newItems)\n {\n items = new Vector(newItems.length);\n for (int i=0; i < newItems.length; i++)\n {\n items.addElement(newItems[i]);\n }\n }",
"private void initData() {\n contents.clear();\n images.clear();\n contents.add(\"荣誉殿堂\");\n contents.add(getResources().getString(R.string.mine_item1));\n contents.add(getResources().getString(R.string.mine_item2));\n contents.add(getResources().getString(R.string.mine_item4));\n contents.add(getResources().getString(R.string.mine_item3));\n\n String sex = SPHelper.getDetailMsg(getActivity(), Cons.USER_INFO, getString(R.string.appsex_man));\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n images.add(BGHelper.setButtonNotify(getActivity(), sex));\n images.add(BGHelper.setButtonReport(getActivity(), sex));\n images.add(sex.equals(\"M\") ? R.drawable.ioc_mine_que_blue : R.drawable.ioc_mine_que_red);\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n\n\n adapter = new MineAdapter(getActivity(), contents, images, this);\n lv_mine.setAdapter(adapter);\n }",
"@Override\n public void setListData() {}",
"public void setAdapterData(List<CommentUploadListInfo.LstFileBean> data) {\n this.itemData = data;\n\n if (itemData.size() == 0) {\n rl_no_data.setVisibility(View.VISIBLE);\n return;\n } else {\n rl_no_data.setVisibility(View.GONE);\n }\n if (sfAdapter == null){\n sfAdapter = new SwitchFileAdapter(context, itemData);\n sfAdapter.setAdpterClick(new IAdapterClickListener() {\n @Override\n public void adapterClick(int id, int position) {\n EventBus.getDefault().post(new ChangeFileEvent(itemData.get(position)));\n dismiss();\n }\n });\n rv_switchfile_list.setAdapter(sfAdapter);\n }else{\n sfAdapter.setItemData(itemData);\n }\n }",
"@DebugLog\n public void setItems(ArrayList<Update> items) {\n if (items != null) {\n for (Update item : items) {\n mItems.add(new OverviewItem(item));\n }\n }\n notifyDataSetChanged();\n //Remove the isloading\n if (getBasicItemCount() <= 0) return;\n try {\n OverviewItem overviewItem = mItems.get(getBasicItemCount() - items.size() - 1);\n if (overviewItem.isLoadingItem) {\n mItems.remove(getBasicItemCount() - items.size() - 1);\n notifyDataSetChanged();\n }\n }catch(ArrayIndexOutOfBoundsException e)\n {\n //theres no loading overview\n return;\n }\n\n }",
"public void setItem(Item item) {\n\t\tthis.item = item;\n\n\t\tif (item.getDate() == null)\n\t\t\tdateField.setText(DateUtil.format(LocalDate.now()));\n\t\telse\n\t\t\tdateField.setText(DateUtil.format(item.getDate()));\n\n\t\tdateField.setPromptText(\"dd.mm.yyyy\");\n\t\tif (item.getCategory() == null)\n\t\t\tcategoryField.getSelectionModel().select(\"Lebensmittel\");\n\t\telse \n\t\t\tcategoryField.getSelectionModel().select(item.getCategory());\n\t\tuseField.setText(item.getUse());\n\t\tamountField.setText(Double.toString(item.getAmount()).replace(\".\", \",\"));\n\t\tif (item.getDistributionKind() == null)\n\t\t\tdistributionKindField.setText(\"Giro\");\n\t\telse\n\t\t\tdistributionKindField.setText(item.getDistributionKind());\n\n\t\tif (useField.getText() == null) {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tuseField.requestFocus();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}",
"public void changeDataSet(List<Movie> items){\n //deleting old movies\n mValues.clear();\n lastClicked = INITIAL_POSITION;\n mValues.addAll(items);\n notifyDataSetChanged();\n }",
"void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}",
"public void addAll(List<ImageContent> items) {\n _data = items;\n }",
"public void InitData() {\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE};\n this.mItemTitleIds = new int[]{R.string.can_dlxdcgz, R.string.can_gybjd, R.string.can_dczjysxgz, R.string.can_zcbjd, R.string.can_djgzzsd, R.string.can_djxtgr, R.string.can_igbt_wdzt, R.string.can_zkbgz, R.string.can_zbzt, R.string.can_cdszzt, R.string.can_dcdc, R.string.can_dlxdcqd, R.string.can_fzdcdl};\n this.mWarn = new CanDataInfo.DT_V80_BMS_WARN();\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_rvs_camera, R.string.can_ccaqyxfz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.string.can_hjyxfzxt, R.string.can_dccsyxfzxt};\n this.mCarData = new CanDataInfo.LuxgenOd_SetData();\n }",
"private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}",
"public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }",
"public void setItemList(String item)\n {\n this.itemLinkedList.add(new Item(item));\n }",
"public void setData(List<Event> data) {\n this.data = data;\n }",
"public void setData(WeatherItem item) {\n\t\tlayout.setVisibility(VISIBLE);\n\t\tsetBalloonData(item, layout);\n\t}",
"public void addDataSet(List<Movie> items){\n mValues.addAll(items);\n notifyDataSetChanged();\n }",
"public void setRandomItems(ArrayList<RandomItem> items);",
"public void setEditedItem(Object item) {editedItem = item;}",
"public void refershData(ArrayList<SquareLiveModel> contents) {\n\t\tlistData = contents;\n\t\tnotifyDataSetChanged();\n\t}",
"public void populate() {\n populate(this.mCurItem);\n }",
"public void setData(V data){\n\t\tthis.data = data;\n\t}",
"protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}",
"public void setItem(Item item) throws Exception {\n\t\tfor(int i = 0; i < last; ++i)\n\t\t\tif(list[i].getCode() == item.getCode()) {\n\t\t\t\tlist[i].increment(item.getCount());\n\t\t\t\treturn;\n\t\t\t}\n\t\tif(last < size)\n\t\t\tlist[last++] = item;\n\t\telse\n\t\t\tthrow new Exception(\"list full\");\n\t}",
"public void setItemCollection(HashMap<String, Item> copy ){\n \titemCollection.putAll(copy);\r\n }",
"@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }",
"private void setValues() {\n for (int i = 0; i < name.length; i++) {\n TagViewDetailsModel listModel = new TagViewDetailsModel();\n listModel.setItemImage(image[i]);\n listModel.setItemName(name[i]);\n listModel.setDistance(distance[i]);\n listModel.setTags(tags[i]);\n listModel.setRating(rating[i]);\n savedListModels.add(listModel);\n }\n savedListAdapter = new TagViewDetailsAdapter(TagViewDetailsActivity.this, savedListModels);\n rvTagViewDetails.setAdapter(savedListAdapter);\n }",
"@Override\n public void updateItem(P_CK t) {\n \n }",
"private void setItems(DataRelationModelDto dto, List<DataRelationModelItemDto> itemDtos) {\n\t\tList<String> dpdNameList = new ArrayList<>();\n\t\tList<String> targetDpdNameList = new ArrayList<>();\n\t\tfor (DataRelationModelItemDto itemDto : itemDtos) {\n\t\t\tdpdNameList.add(itemDto.getDpd().getDpdName());\n\t\t\ttargetDpdNameList.add(itemDto.getTargetDpd().getDpdName());\n\t\t}\n\t\tdto.setDpdNameList(dpdNameList);\n\t\tdto.setTargetDpdNameList(targetDpdNameList);\n\t}"
] | [
"0.78740144",
"0.7720645",
"0.7329612",
"0.7304706",
"0.7225539",
"0.7155425",
"0.71149504",
"0.70138943",
"0.6968174",
"0.6891728",
"0.68739337",
"0.6849631",
"0.6844574",
"0.6837697",
"0.6821487",
"0.68165916",
"0.6747048",
"0.67453855",
"0.67262304",
"0.6640031",
"0.6637875",
"0.6627987",
"0.65980893",
"0.65980893",
"0.65418476",
"0.65338326",
"0.6512698",
"0.6495863",
"0.64830184",
"0.64743257",
"0.646747",
"0.64454013",
"0.6442001",
"0.6438364",
"0.6438364",
"0.6406369",
"0.6385554",
"0.63740224",
"0.63711107",
"0.6348213",
"0.6342684",
"0.6341324",
"0.63413",
"0.6333436",
"0.63188314",
"0.63168645",
"0.63138074",
"0.6293885",
"0.6285599",
"0.6282207",
"0.6269235",
"0.6261383",
"0.62498623",
"0.62485313",
"0.62445664",
"0.6241406",
"0.62407106",
"0.62190807",
"0.6215274",
"0.62092555",
"0.62061733",
"0.6200472",
"0.6187614",
"0.61813",
"0.61724895",
"0.6163337",
"0.6162956",
"0.61560297",
"0.615144",
"0.61500674",
"0.6130535",
"0.6124801",
"0.61171925",
"0.6109219",
"0.610415",
"0.6097444",
"0.60960555",
"0.6081582",
"0.6071675",
"0.6060176",
"0.6059048",
"0.60541683",
"0.6054164",
"0.6043257",
"0.6033717",
"0.603296",
"0.60289294",
"0.6028317",
"0.60184336",
"0.60095376",
"0.6008061",
"0.6007623",
"0.60054606",
"0.59956896",
"0.5980036",
"0.59728885",
"0.59693503",
"0.59670657",
"0.59588",
"0.5956679",
"0.5956203"
] | 0.0 | -1 |
print data as String | public void stringPresentation () {
System.out.println ( "****** String Data Module ******" );
ArrayList<Book> bookArrayList = new ArrayList<Book>();
bookArrayList = new Request().postRequestBook();
for (Book book: bookArrayList) {
System.out.println(book.toString());
}
ClientEntry.showMenu ( );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n return \"\" + data;\n }",
"public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}",
"public void printToConsole(Object data){\r\n\t\tSystem.out.println(data);\r\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"public String toString() {\n\t\treturn data.toString();\n }",
"public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}",
"public String toString() {\r\n\treturn data;\r\n }",
"public String toString() {\n\t\treturn data.toString();\n\t}",
"public String toString() {\n\t\treturn data.toString();\n\t}",
"public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }",
"@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}",
"@Override\n public String toString() {\n return \" \" + this.data;\n }",
"public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}",
"public String toString()\n {\n\t return \"[\" + data + \"]\";\n }",
"public String toString()\n\t{\n\t\t// For empty array\n\t\tif(length() < 1)\n\t\t\tSystem.out.print(\"\");\n\t\tString output = \"\";\n\n\t\tfor(int index = 0; index < length(); index++)\n\t\t{\n\t\t\toutput = output + data[index];\n\t\t\tif(index+1 < length())\n\t\t\t{\n\t\t\t\toutput = output + \" \";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}",
"private void printData() {\n\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tlog(\" *** data index \" + i + \" = \" + data.elementAt(i));\n\t\t}\n\t}",
"public String printNodeData(Node<T> node){\n return String.valueOf(node.data);\n }",
"private static void print(Collection<String> data) {\r\n\r\n\t\tdata.stream().forEach(s -> out.println(s));\r\n\t}",
"public String getDataString() {\r\n return formatoData.format(data);\r\n }",
"public String toString(){\n return data+\" \"; \n }",
"@Override\n public String toString() {\n return this.data.toString();\n }",
"@Override\r\n\tpublic StringBuffer showMe(String data) {\n\t\tlogger.trace(data);\r\n\t\t//int i = 1/0;\r\n\t\treturn new StringBuffer(data);\r\n\t}",
"public String toString() {\n\t\tString str = \"\";\n\t\tfor(int i = 0;i < data.length;i++) {\n\t\t\tstr = str + data[i];\n\t\t}\n\t\tif(overflow) {\n\t\t\treturn \"Overflow\";\n\t\t}else {\n\t\t\treturn str;\n\t\t}\n\t}",
"public String print() {\n\t\tString offID = getID();\n\t\tString offName = getName();\n\t\tint offAge = getAge();\n\t\tString offState = getState();\n\t\tString data = String.format(\"ID: %-15s \\t Name: %-35s \\t Age: %-15s \\t State: %s\", offID, offName, offAge, offState);\n\t\treturn data;\n\t}",
"public void printData () {\n System.out.println (products.toString ());\n }",
"public void display()\n\t{\n\t\tSystem.out.println(data+\" \");\n\t}",
"public String toString() {\n\t\treturn Arrays.toString(data);\n\t}",
"public void printData()\n {\n reader.printData();\n }",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString();\n }",
"public String toString()\n {\n\tif (data() == null) {\n\t return \"null\";\n\t} else {\n\t return data().toString();\n\t}\n }",
"public String getPrintData() {\r\n return PrintData;\r\n }",
"private void visualizeData(String s) {\n System.out.println(\"Data received: \" + s);\n }",
"@Override\r\n public String toString() {\n String processString = \"\";\r\n if (isEmpty()) {\r\n return \" \";\r\n }\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] == null) {\r\n return processString;\r\n }\r\n processString += data[i].toString() + \" \";\r\n\r\n }\r\n return processString;\r\n\r\n }",
"public String toString(){\n\t\treturn \"<== at \" + time + \": \" + name + \", \" + type + \", \" + data + \"==>\"; \n\t}",
"public void print() {\r\n System.out.print(\"[id: <\" + this.id + \"> \");\r\n if (this.dimension > 0) {\r\n System.out.print(this.data[0]);\r\n }\r\n for (int i = 1; i < this.dimension * 2; i++) {\r\n System.out.print(\" \" + this.data[i]);\r\n }\r\n System.out.println(\"]\");\r\n }",
"void putdata()\n {\n System.out.printf(\"\\nCD Title \\\"%s\\\", is of %d minutes length and of %d rupees.\",title,length,price);\n }",
"public String toString() {\n\treturn \"Key: \" + key.toString() + \"\\tData: \" + data;\n }",
"public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}",
"public static void printBytes(byte[] data) {\n\t\tint rowCount = 0;\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tString res = \"\";\n\t\t\tres += Integer.toHexString((data[i] < 0 ? 256 + data[i]\t: data[i]));\n\t\t\tif (res.length() < 2) {\n\t\t\t\tres = res + \" \";\n\t\t\t\t//res = \"0\" + res;\n\t\t\t}\n\t\t\tSystem.out.print(res);\n\t\t\tSystem.out.print(\" (\");\n\t\t\tSystem.out.print((char) data[i]);\n\t\t\tSystem.out.print(\") \");\n\t\t\tSystem.out.print(\" \");\n\t\t\tif (rowCount++ >= 3) {\n\t\t\t\tSystem.out.println();\n\t\t\t\trowCount = 0;\n\t\t\t}\n\t\t}\n\t}",
"public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}",
"public String plainDataToString()\n {\n String plainDataOut = \"\";\n String vetVisitData = super.plainDataToString();\n String vetVisitUrgData = \"\";\n \n vetVisitUrgData = this.getDiagnosis() + \"\\n\" +\n this.getTreatment();\n \n plainDataOut = vetVisitData + \"\\n\" + vetVisitUrgData;\n \n return plainDataOut;\n \n }",
"public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}",
"void printData()\n {\n System.out.println(\"Studentname=\" +name);\n System.out.println(\"Student city =\"+city);\n System.out.println(\"Student age = \"+age);\n }",
"void putdata()\n {\n System.out.printf(\"Book Title \\\"%s\\\", written by \\\"%s\\\" has %d pages and of %d rupees.\",title,writer,pages,price);\n }",
"public String toString() {\n StringBuffer buf = new StringBuffer();\n\n //for(int k=0; k<numPages; k++) {\n //buf.append(\"Page: \" + k + \"\\n\");\n for (int i = 0; i < numRows; i++) {\n buf.append(\"[ \");\n for (int j = 0; j < numCols; j++) {\n buf.append(data[i][j] + \", \");\n }\n buf.append(\" ]\\n\");\n }\n //}\n return buf.toString();\n }",
"T print(String data) throws PrintingException;",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"public String toString(Data data){\n String str=\"\";\n int n = 1;\n for(Cluster i : C){\n if (i!=null){\n str+=(n++)+\": \"+i.toString(data)+\"\\n\";\n }\n }\n return str;\n }",
"public String toString() {\n int[] d = new int[size];\n for (int k=0; k<size; k++)\n d[k] = data[k];\n return Arrays.toString(d);\n }",
"public String print(){\n String printBuffer = trainingAmount + \"\\n\";\n for(int i = 0; i < trainingAmount; i++) {\n \tprintBuffer += \"('\" + myDOD_EDI_PI + \"',\";\n printBuffer += \"'\" + CIN[i] + \"',\";\n printBuffer += \"'\" + CDP[i] + \"',\";\n printBuffer += \"'\" + CLS_NUM[i] + \"',\";\n printBuffer += \"'\" + LOC_NM[i] + \"',\";\n printBuffer += \"'\" + CSE_LONG_TITLE[i] + \"',\";\n printBuffer += \"'\" + TRNG_DELIV_METH_CD[i] + \"',\";\n printBuffer += \"'\" + RCRD_SRC[i] + \"',\";\n printBuffer += \"'\" + COMPL_DT[i] + \"',\";\n printBuffer += \"'\" + SCORE[i] + \"',\";\n printBuffer += \"'\" + RCRD_IND[i] + \"',\";\n printBuffer += \"'\" + RETIRE_POINT[i] + \"',\";\n printBuffer += \"'\" + CSE_LEN[i] + \"',\";\n printBuffer += \"'\" + APPROX_TRNG_EQUIV_IND[i] + \"',\";\n printBuffer += \"'\" + NA_IND[i] + \"',\";\n printBuffer += \"'\" + SYS_LOAD_DT[i] + \"')\";\n printBuffer += \"\\n\";\n }\n return printBuffer;\n }",
"public void print() {\n for (int i = 0; i < headers.length; i++) {\n System.out.printf(headers[i] + \", \"); // Print column headers.\n }\n System.out.printf(\"\\n\");\n for (int i = 0; i < (data.length - 1); i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.printf(data[i][j] + \" \"); // Print value at i,j.\n }\n System.out.printf(\"\\n\");\n }\n }",
"public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}",
"public String toString(Object data) {\n try {\n return objectMapper.writeValueAsString(data);\n } catch (JsonProcessingException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }",
"@Override\n public String toString() {\n String result = \"\";\n byte[] data = buffer.data;\n for (int i = 0; i < (buffer.end - buffer.start) / bytes; i++) {\n if (i > 0) result += \", \";\n result += get(i).toString();\n }\n return type + \"[\" + result + \"]\";\n }",
"@Override\r\n public String toString(){ // toString methodu\r\n return head.data.toString();\r\n }",
"T print(char[] data) throws PrintingException;",
"public final String toString()\n\t{\n\t\tif (dataValue == null)\n\t\t{\n\t\t\tif ((stream == null) && (_blobValue == null) )\n\t\t\t{\n\t\t\t\treturn \"NULL\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (SanityManager.DEBUG)\n\t\t\t\t\tSanityManager.THROWASSERT(\n\t\t\t\t\t\t\"value is null, stream or blob is not null\");\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn org.apache.derby.iapi.util.StringUtil.toHexString(dataValue, 0, dataValue.length);\n\t\t}\n\t}",
"T print(Object data) throws PrintingException;",
"public void printData(){\n for(int i=0; i<list.size(); i++){\n System.out.print(list.get(i) + \" \");\n }\n System.out.println();\n }",
"@Override\n public Object getData() {\n return new String(outputData);\n }",
"public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }",
"public String print() {\n return print(new StringBuffer()).toString();\n }",
"public String toDebugString() {\n\t\tString text = \"[ \";\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\ttext += data[i] + (i < data.length - 1 ? \", \" : \" ]\");\n\t\treturn text;\n\t}",
"T println(char[] data) throws PrintingException;",
"public void printString()\r\n\t\t{\r\n\t\t\tTreeNode previousTreeNode = null; //holds the previous node\r\n\t\t\tTreeNode currentTreeNode = null; //holds current node\r\n\r\n\t\t\tData currentData = head; //start at the head of our data which is a linked list\r\n\t\t\twhile (currentData != null) //while the currentData is not null\r\n\t\t\t{\r\n\t\t\t\tcurrentTreeNode = currentData.getLT(); //get the Less Than tree\r\n\t\t\t\tif (currentTreeNode != previousTreeNode)\r\n\t\t\t\t\tcurrentTreeNode.printString(); //print the Less Than tree\r\n\t\t\t\tpreviousTreeNode = currentTreeNode;\r\n\r\n\t\t\t\tcurrentData.getWord(); //get the current word\r\n\t\t\t\tSystem.out.printf(\"%-20s\", currentData.getWord()); //print the current word\r\n\t\t\t\tArrayList locations = currentData.getLocations(); //get the word's locations in the file\r\n\t\t\t\tfor (int i = 0; i < locations.size(); i++) //print all of those\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.printf(\" (%s,%s)\", ((Point) locations.get(i)).x, ((Point) locations.get(i)).y);\r\n\t\t\t\t\tif ((((i + 1) % 8) == 0) && ((i + 1) != locations.size())) //only print 8 items per line\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.printf(\"\\n%-20s\", \"\\\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(); //print a newline\r\n\r\n\t\t\t\tcurrentTreeNode = currentData.getGT(); //get the Greater Than tree\r\n\t\t\t\tif (currentTreeNode != previousTreeNode)\r\n\t\t\t\t\tcurrentTreeNode.printString(); //print the Greater Than tree\r\n\t\t\t\tpreviousTreeNode = currentTreeNode;\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t}",
"public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}",
"public String printImage() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString().replace('0', ' ');\n }",
"private String printData() {\n reportStar += \"Total insert Stars: \" + insertStarStatus + \".\\n\";\n reportStar += \"Duplicates Stars found: \" + duplicatesStar + \". \\n\";\n return reportStar;\n }",
"public String toString() {\n if (this.data.isEmpty()) {\n return super.toString();\n }\n return BytesUtil.bytes2HexString(toBinary());\n }",
"public void outputToConsole() {\r\n for (String line : data) {\r\n System.out.println(line);\r\n }\r\n }",
"@SuppressWarnings(\"unused\")\n\tprivate void printData(HashMap<String,TransactionData> data){\n\t\n\t\tfor(String s :data.keySet()){\n\t\t\tTransactionData trans = data.get(s);\n\t\t\ttrans.printData();\n\t\t}\n\t}",
"public String print() {\n Collections.sort(ordini, Comparator.comparing(o -> o.dataAcquisto));\n return ordini.stream()\n .map(o->o.toString()+\"\\n\")\n .reduce(String::concat).orElse(\"\");\n }",
"public void printString() {\n\t\tSystem.out.println(name);\n\t\t\n\t\t\n\t}",
"public void print(){\n\t\t\n\t\tfor(int i=0;i<maxindex;i++)\n\t\t{\n\t\t\tif(data[i] != 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(data[i]+\"x\"+i+\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void printData() {\n\t\tSystem.out.println(\"Account Number: \" + this.getAccountNumber());\n\t\tSystem.out.println(\"Account Balance: \" + this.getAccountBalance());\n\t}",
"public void print(){\r\n System.out.println(toString());\r\n }",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();"
] | [
"0.7711015",
"0.75234544",
"0.746128",
"0.7419532",
"0.73982",
"0.73542833",
"0.72941667",
"0.72491944",
"0.72491944",
"0.722625",
"0.71568406",
"0.71351457",
"0.71215534",
"0.7113322",
"0.707682",
"0.7042713",
"0.70376307",
"0.7006586",
"0.6994952",
"0.6990104",
"0.69860286",
"0.69757324",
"0.6968317",
"0.6951891",
"0.68999493",
"0.6873715",
"0.68678194",
"0.6861703",
"0.68492997",
"0.68358064",
"0.6656317",
"0.6653432",
"0.66500086",
"0.6649442",
"0.66488934",
"0.6638973",
"0.66337216",
"0.66185534",
"0.66182685",
"0.6590694",
"0.6578253",
"0.6578005",
"0.6564343",
"0.6563897",
"0.65619177",
"0.65615696",
"0.6560842",
"0.6540767",
"0.6524142",
"0.6516539",
"0.64978284",
"0.64945614",
"0.6483318",
"0.6481373",
"0.64790714",
"0.6476366",
"0.64604014",
"0.6459903",
"0.64471436",
"0.6446683",
"0.6441475",
"0.64299804",
"0.64184546",
"0.64184546",
"0.64184546",
"0.64184546",
"0.64184546",
"0.64184546",
"0.64184546",
"0.64184546",
"0.64184546",
"0.64102423",
"0.64080644",
"0.63995004",
"0.63893986",
"0.6387272",
"0.6373587",
"0.63689953",
"0.6355585",
"0.63554573",
"0.635168",
"0.6337236",
"0.6337098",
"0.6332959",
"0.63123775",
"0.63067913",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317",
"0.6302317"
] | 0.0 | -1 |
print data as Jason (really a String in Json format) | public void jsonPresentation () {
System.out.println ( "****** Json Data Module ******" );
ArrayList<Book> bookArrayList = new ArrayList<Book>();
String jsonData = "";
ObjectMapper mapper = new ObjectMapper();
bookArrayList = new Request().postRequestBook();
try {
jsonData = mapper.writeValueAsString(bookArrayList);
} catch (JsonProcessingException e) {
System.out.println("Error: "+ e);
}
System.out.println(jsonData);
ClientEntry.showMenu ( );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String toJSONString(Object data);",
"public static String dataToJson(Object data) {\n try {\n ObjectMapper mapper = new ObjectMapper();\n //for pretty printing JSON\n mapper.enable(SerializationFeature.INDENT_OUTPUT);\n ObjectWriter writer = mapper.writer(new DefaultPrettyPrinter());\n return mapper.writeValueAsString(data);\n } catch (IOException e){\n \tSystem.out.println(\"Error\");\n return createError(\"404\",\"Jackson: Error converting object into json format\");\n }\n }",
"public static String toJSON(Object data) {\n\t\ttry {\n\t\t\treturn fullMapper.writeValueAsString(data);\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"String toJSON();",
"public String toString(Object data) {\n try {\n return objectMapper.writeValueAsString(data);\n } catch (JsonProcessingException e) {\n logger.error(e.getMessage(), e);\n }\n return null;\n }",
"void toJson(JsonStaxPrinter printer) throws PrintingException, IOException;",
"public void gsonData() {\n Gson gson = new Gson();\n gson.toJson(list);\n System.out.println(\"gson string is :----->\" + list);\n }",
"public void printToConsole(Object data){\r\n\t\tSystem.out.println(data);\r\n\t}",
"@Override\n public String toString() {\n return jsonString;\n }",
"public String getJson();",
"String getJson();",
"String getJson();",
"String getJson();",
"public String convert2json(DataSetInfo ds){\n String out = \"{\\n\";\n out += \"\\\"lags\\\" : \\\"\" + ds.getLags() + \"\\\",\\n\";\n out += \"\\\"derivative\\\" : \\\"\" + ds.getDerivative() + \"\\\",\\n\";\n out += \"\\\"classSize\\\" : \\\"\" + ds.getClassSize() + \"\\\"\\n\";\n out += \"}\\n\";\n return out;\n }",
"private static void printJsonObject(Object object) throws IOException {\n Logger logger = Logger.getLogger(PortfolioManagerApplication.class.getCanonicalName());\n ObjectMapper mapper = new ObjectMapper();\n logger.info(mapper.writeValueAsString(object));\n }",
"public abstract String toJsonString();",
"JSONObject toJson();",
"JSONObject toJson();",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"public abstract String toJson();",
"public String toJSON() throws JSONException;",
"String getJSON();",
"public static void print_data() {\n \tflag = 0;\n \tgetConnection();\n \ttry {\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is, \"iso-8859-1\"), 8);\n sb = new StringBuilder();\n sb.append(reader.readLine() + \"\\n\");\n\n String line = \"0\";\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n is.close();\n result = sb.toString();\n System.out.println(result);\n } catch (Exception e) {\n Log.e(\"log_tag\", \"Error converting result \" + e.toString());\n }\n \tJSONArray jArray;\n\t\ttry {\n\t\t\tjArray = new JSONArray(result);\n\t\t\tfor(int i=0;i<jArray.length();i++){ \n\t \t\tJSONObject json_data = jArray.getJSONObject(i); \n\t \t\thighscore[i]=json_data.getInt(\"HighestScore\");\n\t \t\tusername[i]=json_data.getString(\"Username\");\n\t \t\tSystem.out.println(\"User:\"+username[i]+\" Highest Score:\"+highscore[i]);\n\t \t}\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tflag = 1;\n }",
"@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }",
"public String toString() {\r\n\treturn data;\r\n }",
"public String getJsondata() {\n return jsondata;\n }",
"String toJson() throws IOException;",
"public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}",
"public String toString() {\n\t\treturn data.toString();\n }",
"public String getJsonAsString() {\n\t\treturn this.flodJsonObject.toString();\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}",
"public String toJsonData() {\n\t\treturn new Gson().toJson(this);\n\t}",
"public String toString() {\n return \"\" + data;\n }",
"private void printPjson(MessageBroker msgBroker, PrintWriter writer, final SearchResultRecord record, Format format) {\r\n SearchResultRecords records = new SearchResultRecords();\r\n records.add(record);\r\n JsonFeedWriter jsonWriter = new JsonFeedWriter(writer, null, format == Format.pjson );\r\n jsonWriter.setMessageBroker(msgBroker); \r\n jsonWriter.write(records);\r\n}",
"public static String jsonPrint(final Object object, final Class clazz) {\n\t\tfinal ObjectMapper objectMapper = new ObjectMapper();\n\t\tString jsonStr = \"\";\n\t\ttry {\n\t\t\tfinal Object jsonObj = objectMapper.readValue(objectMapper.writeValueAsString(object), clazz);\n\t\t\tjsonStr = objectMapper.writeValueAsString(jsonObj);\n\t\t} catch (final Exception exception) {\n\t\t}\n\t\treturn jsonStr;\n\t}",
"public String toString(){\n return data+\" \"; \n }",
"@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}",
"public String toString() {\n\t\treturn data.toString();\n\t}",
"public String toString() {\n\t\treturn data.toString();\n\t}",
"public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }",
"private String toJson(Prediction prediction) {\n\tString json = \"If you see this, there's a problem.\";\n\ttry {\n\t json = new ObjectMapper().writeValueAsString(prediction);\n\t}\n\tcatch(Exception e) { }\n\treturn json;\n }",
"void sendJson(Object data);",
"@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}",
"public String toString()\n {\n\t return \"[\" + data + \"]\";\n }",
"public String toJson() {\n\n final StringBuilder jsonRepresentation = new StringBuilder();\n\n jsonRepresentation.append(\"[\");\n\n final Iterator<TrackingDataEntry> entriesIter = getEntries().iterator();\n while (entriesIter.hasNext()) {\n\n final TrackingDataEntry entry = entriesIter.next();\n\n serializeTrackingDataVariables(jsonRepresentation, entry.getVars());\n\n if (null != entry.getName()) {\n jsonRepresentation.append(\",\\\"name\\\":\\\"\").append(entry.getName()).append(\"\\\"\");\n }\n if (null != entry.getId()) {\n jsonRepresentation.append(\",\\\"id\\\":\\\"\").append(entry.getId()).append(\"\\\"\");\n }\n if (null != entry.getType()) {\n jsonRepresentation.append(\",\\\"type\\\":\\\"\").append(entry.getType()).append(\"\\\"\");\n }\n if (null != entry.getUrl()) {\n jsonRepresentation.append(\",\\\"url\\\":\\\"\").append(entry.getUrl()).append(\"\\\"\");\n }\n jsonRepresentation.append(\"}\");\n if (entriesIter.hasNext()) {\n jsonRepresentation.append(\",\");\n }\n }\n\n jsonRepresentation.append(\"]\");\n\n return jsonRepresentation.toString();\n }",
"public String toJsonString() {\n JSONObject jsonObject = new JSONObject();\n try {\n jsonObject.put(\"from\", from);\n jsonObject.put(\"domain\", domain);\n jsonObject.put(\"provider\", provider);\n jsonObject.put(\"action\", action);\n\n try {\n JSONObject jsonData = new JSONObject();\n for (Map.Entry<String, String> entry : data.entrySet()) {\n jsonData.put(entry.getKey(), entry.getValue());\n }\n jsonObject.put(\"data\", jsonData);\n } catch (Exception e) {\n e.printStackTrace();\n jsonObject.put(\"data\", \"{}\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }",
"public String toString() {\n\t String resultJson=\"\";\t \n\t ObjectToJson jsonObj = new ObjectToJson(this.paperAuthorsList);\n\t try {\n\t\t resultJson = jsonObj.convertToJson(); \n\t }\n\t catch(Exception ex) {\n\t\t System.out.println(\"problem in conversion \"+ex.getMessage());\t\t \n\t }\n\t return resultJson;\n }",
"@Override\n\tpublic String toString() {\n\t\t\n\t\treturn \"{\\\"a\\\":\"+a+\", \\\"B\\\":\\\"\"+B+\"\\\"}\";\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"@Override\n public String toJSONString()\n {\n return \"{\\\"packet\\\":{\\\"agentsName\\\":\\\"\\\",\\\"placesName\\\":\\\"\\\",\\\"placesX\\\":0,\\\"placesY\\\":0,\\\"numberOfPlaces\\\":0,\\\"numberOfAgents\\\":0,\\\"placeOverloadsSetDebugData\\\":false,\\\"placeOverloadsGetDebugData\\\":false,\\\"agentOverloadsSetDebugData\\\":false,\\\"agentOverloadsGetDebugData\\\":false,\\\"placeDataType\\\":\\\"\\\",\\\"agentDataType\\\":\\\"\\\"},\\\"request\\\":0}\";\n }",
"T print(Object data) throws PrintingException;",
"public abstract Object toJson();",
"@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}",
"@Override\n\tpublic String onData() {\n\t\tMap<String, Object> mapObj = new HashMap<String, Object>();\n\t\tfor (BasicNameValuePair pair : pairs) {\n\t\t\tmapObj.put(pair.getName(), pair.getValue());\n\t\t}\n\t\tGson gson = new Gson();\n\t\tString json = gson.toJson(mapObj);\n\t\treturn json;\n\t}",
"public String toJSON() {\n\t JSONObject outer = new JSONObject();\r\n\t JSONObject inner = new JSONObject();\r\n\t // Now generate the JSON output\r\n\t try {\r\n\t outer.put(\"articleMobile\", inner); // the outer object name\r\n\t inner.put(\"codeArticle\", codeArticle); // a name/value pair\r\n\t inner.put(\"designation\", designation); // a name/value pair\r\n\t inner.put(\"prixVente\", prixVente); // a name/value pair\r\n\t inner.put(\"stockTh\", stockTh);\r\n\t inner.put(\"error\", error); // a name/value pair\r\n\t inner.put(\"gisement\", gisement); // a name/value pair\r\n\t } catch (JSONException ex) {\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return outer.toString(); // return the JSON text\r\n\t}",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"public String getDataString() {\r\n return formatoData.format(data);\r\n }",
"public String toLogData() { \n\t return gson.toJson(this);\n\t}",
"public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }",
"public static void main(String[] args) {\n Employee employee = new Employee();\n employee.setName(\"utkarsh tyagi\");\n employee.setEmpNo(1001);\n employee.setSalary(20000);\n String jsonEmployee = JsonUtil.convertJavaToJson(employee);\n System.out.println(jsonEmployee);\n\n Employee emp1 =JsonUtil.convertJsonToJava(jsonEmployee,Employee.class);\n System.out.println(emp1.getName()+ \" \"+ emp1.getEmpNo()+\" \"+emp1.getSalary());\n }",
"public String toJson() throws Exception {\r\n\t\treturn SimpleJson.HashMapToText(getJsonToken());\r\n\t}",
"private String getExpectedJSONOutput() {\r\n\t\tStringBuffer json = new StringBuffer();\r\n\t\tjson.append(\"{\\\"unitOfMeasure\\\":\\\"Meter\\\",\\\"datum\\\":\\\"AGL\\\",\\\"minimum\\\":0.1,\\\"maximum\\\":100.1}\");\r\n\t\treturn (json.toString());\r\n\t}",
"public void printData () {\n System.out.println (products.toString ());\n }",
"@Override\n public String toString() {\n return this.data.toString();\n }",
"public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"private String prettyMessage() {\n Map<String, Object> map = new LinkedHashMap<>(4);\n map.put(\"type\", getType());\n map.put(\"message\", this.message);\n map.put(\"code\", getCode());\n // TODO(\"need to optimize\")\n map.put(\"data\", getData().toString());\n return JsonUtils.getGson().toJson(map);\n }",
"public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\\"code\\\": \\\"\").append(this.code).append(\"\\\", \");\n sb.append(\"\\\"color\\\": \\\"\").append(this.color).append(\"\\\", \");\n\n /* Append a size only if the product has a Size */\n if (this.size.getClass() != NoSize.class) {\n sb.append(\"\\\"size\\\": \\\"\").append(this.size).append(\"\\\", \");\n }\n\n sb.append(\"\\\"price\\\": \").append(this.price).append(\", \");\n sb.append(\"\\\"currency\\\": \\\"\").append(this.currency).append(\"\\\"}, \");\n\n return sb.toString();\n }",
"public static String getJsonFromPacket(Packet packet) {\n String jsonString=\"\";\n Object data=packet.getData();\n String context=packet.getContext();\n ObjectNode jsonPacket=mapper.createObjectNode();\n jsonPacket.put(METHOD_FIELD, context);\n try {\n ObjectNode node;\n node=mapper.createObjectNode();\n /** Wrap primitive types into value field*/\n if(data!=null) {\n /** Lists */\n if(data instanceof List<?>) {\n List<?> list=(List<?>) data;\n ArrayNode array=mapper.valueToTree(list);\n if(!list.isEmpty()) {\n String typeName=list.get(0).getClass().getTypeName();\n node.put(CLASS_FIELD, LIST_CLASS + SEPERATOR + typeName);\n for(JsonNode item : array)\n ((ObjectNode) item).put(CLASS_FIELD, typeName);\n }\n else {\n node.put(CLASS_FIELD, LIST_CLASS + SEPERATOR);\n }\n node.set(DATA_FIELD, array);\n }\n else {\n /** Primitive or Common objects*/\n if(isPrimitiveOrWrapper(data.getClass())) {\n node=mapper.createObjectNode().put(PRIMITIVE_FIELD, data.toString());\n }\n else {\n node=mapper.convertValue(data, ObjectNode.class);\n }\n node.put(CLASS_FIELD, data.getClass().getTypeName());\n }\n }\n jsonPacket.set(DATA_FIELD, node);\n jsonString=mapper.writeValueAsString(jsonPacket);\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n return jsonString;\n }",
"private JSON() {\n\t}",
"private String converttoJson(Object medicine) throws JsonProcessingException {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n return objectMapper.writeValueAsString(medicine);\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}",
"public static String generateJsonDataForReport(HashMap<String, Integer> data) {\n String jsonData = \"\";\n try {\n //First we need create the json and sort the values\n ObjectMapper mapper = new ObjectMapper();\n ArrayList<JsonNode> jsonList = new ArrayList<>();\n for (HashMap.Entry<String, Integer> entry : data.entrySet()) {\n String wordData = \"{\\\"name\\\":\\\"\" + entry.getKey() + \"\\\",\\\"weight\\\":\\\"\" + entry.getValue() + \"\\\"}\";\n jsonList.add(mapper.readTree(wordData));\n }\n\n jsonData = mapper.writeValueAsString(sortData(jsonList));\n } catch (IOException e) {\n System.out.println(\"Could not write the map to json. Show error message : \" + e.getMessage());\n }\n\n return jsonData;\n }",
"public String toJson() {\n try{\n return new JsonSerializer().getObjectMapper().writeValueAsString(this);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }",
"public static String getJson() {\n\t\treturn jsonString;\n\t}",
"@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"void testFormatter(String s){\n\t\tInputStream istream = new java.io.ByteArrayInputStream(s.getBytes());\n\t\tMessageContext mc = new MessageContext();\n\t\tJSONOMBuilder ob = new JSONOMBuilder();\n\t\tOMSourcedElement omse;\n\t\ttry {\n\t\t\tomse = (OMSourcedElement) ob.processDocument(istream, \"application/json\", mc);\n\t\t} catch (AxisFault e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n // go for the formatte\n\t\tJSONMessageFormatter of = new JSONMessageFormatter();\n\t\tmc.setDoingREST(true);\n\t\tOMDataSource datasource = omse.getDataSource();\n\t\tString str = of.getStringToWrite(datasource);\n\t\tSystem.out.println(str);\n\t}",
"public JsonObject toJson();",
"private static void writeJSONString(Iterable<?> list, Appendable out) throws IOException {\n @Var boolean first = true;\n\n out.append('[');\n for (Object value : list) {\n if (first) {\n first = false;\n } else {\n out.append(',');\n }\n\n JSON.writeJSONString(value, out);\n }\n out.append(']');\n }",
"private String toJson(PredictionsList plist) {\n\tString json = \"If you see this, there's a problem.\";\n\ttry {\n\t json = new ObjectMapper().writeValueAsString(plist);\n\t}\n\tcatch(Exception e) { }\n\treturn json;\n }",
"@Override\n public String toString() {\n return \" \" + this.data;\n }",
"public String readJson() {\n\t\t\tif (lastReadChar == ']') {\n\t\t\t\tSystem.out.println(\"Nunca deberia llegar a aca si usa hasNext()\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t// Si fue una coma, busco el siguiente '{'\n\t\t\twhile (read()!= '{');\n\t\t\t\n\t\t\tStringBuilder jsonText = new StringBuilder();\n\t\t\tjsonText.append((char) '{');\n\t\t\tlastReadChar = read();\n\t\t\t\n\t\t\twhile (lastReadChar != '}') { \n\t\t\t\tjsonText.append((char) lastReadChar);\n\t\t\t\tlastReadChar = read();\n\t\t\t} jsonText.append('}');\n\t\t\t\n\t\t\t// To satisfy Invariant: find the next ']' or ','\n\t\t\twhile (lastReadChar != ']' && lastReadChar != ',') lastReadChar = read(); \n\t\t\t\n\t\t\t//System.out.println(\"Analizando : \" + jsonText.toString());\n\t\t\treturn jsonText.toString();\n\t\t}",
"public String toJSONResult() {\n StringBuilder pageJSON = new StringBuilder();\n pageJSON.append(\"{\\\"id\\\": \");\n pageJSON.append(\"\\\"\");\n pageJSON.append(getID());\n pageJSON.append(\"\\\"\");\n pageJSON.append(\", \\\"title\\\": \");\n try {\n pageJSON.append(\"\\\"\").append(URLEncoder.encode(getTitle(), \"UTF-8\")).append(\"\\\"\");\n } catch (UnsupportedEncodingException e) {\n pageJSON.append(\"null\");\n }\n pageJSON.append(\", \\\"url\\\": \\\"\").append(getUrl())\n .append(\"\\\", \\\"preview\\\": \");\n try {\n pageJSON.append(\"\\\"\").append(URLEncoder.encode(getPreview(), \"UTF-8\"))\n .append(\"\\\"\");\n } catch (UnsupportedEncodingException e) {\n pageJSON.append(\"null\");\n }\n pageJSON.append(\"}\");\n\n return pageJSON.toString();\n }",
"JSONObject getJsonDataDump() {\n JSONObject dump = new JSONObject();\n for (String uuid : mConceptsToDump) {\n try {\n JSONArray pointGroups = new JSONArray();\n for (Column column : mColumnsByStartMillis.values()) {\n JSONArray pointArray = new JSONArray();\n SortedSet<ObsPoint> points = column.pointSetByConceptUuid.get(uuid);\n if (points != null && points.size() > 0) {\n for (ObsPoint point : points) {\n pointArray.put(point.toJson());\n }\n JSONObject pointGroup = new JSONObject();\n pointGroup.put(\"start\", column.start.getMillis());\n pointGroup.put(\"stop\", column.stop.getMillis());\n pointGroup.put(\"points\", pointArray);\n pointGroups.put(pointGroup);\n }\n }\n dump.put(\"\" + Utils.compressUuid(uuid), pointGroups);\n } catch (JSONException e) {\n LOG.e(e, \"JSON error while dumping chart data\");\n }\n }\n return dump;\n }",
"private static String jsonToString(final Object obj) throws JsonProcessingException {\n String result;\n try {\n final ObjectMapper mapper = new ObjectMapper();\n final String jsonContent = mapper.writeValueAsString(obj);\n result = jsonContent;\n } catch (JsonProcessingException e) {\n result = \"Json processing error\";\n }\n return result;\n }",
"@Override\r\n\tpublic StringBuffer showMe(String data) {\n\t\tlogger.trace(data);\r\n\t\t//int i = 1/0;\r\n\t\treturn new StringBuffer(data);\r\n\t}",
"@Override\n\tpublic String getJSONString() {\n\t\treturn ipd.selectAll();\n\t}",
"public String convertToString() {\n return mJSONObject.toString();\n }",
"public static String getJsonString(Object o) {\n\n\t\ttry {\n\t\t\tObjectMapper om = new ObjectMapper();\n\t\t\treturn om.writeValueAsString(o);\n\t\t} catch (JsonProcessingException e) {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public String convert2json(String dpid, DataSetInfo ds){\n String out = \"{\\n\";\n out += \"\\\"dpid\\\" : \\\"\" + dpid + \"\\\",\\n\";\n out += \"\\\"lags\\\" : \\\"\" + ds.getLags() + \"\\\",\\n\";\n out += \"\\\"derivative\\\" : \\\"\" + ds.getDerivative() + \"\\\",\\n\";\n out += \"\\\"classSize\\\" : \\\"\" + ds.getClassSize() + \"\\\"\\n\";\n out += \"}\\n\";\n return out;\n }",
"@Override\n public Object getData() {\n return new String(outputData);\n }",
"public String printNodeData(Node<T> node){\n return String.valueOf(node.data);\n }",
"@Override\n public String toString() {\n //https://github.com/google/gson/issues/388\n\n String src = super.toString();\n StringBuilder builder = new StringBuilder(src.length() * 4);\n for (char c : src.toCharArray()) {\n if (c >= 0x80) {\n // 为所有非ASCII字符生成转义的unicode字符\n writeUnicodeEscape(builder, c);\n } else {\n // 为ASCII字符中前128个字符使用转义的unicode字符\n int code = (c < ESCAPE_CODES.length ? ESCAPE_CODES[c] : 0);\n if (code == 0) {\n // 此处不用转义\n builder.append(c);\n } else if (code < 0) {\n // 通用转义字符\n writeUnicodeEscape(builder, (char) (-code - 1));\n } else {\n // 短转义字符 (\\n \\t ...)\n builder.append(\"\\\\\").append((char) code);\n }\n }\n }\n return builder.toString();\n }",
"public static String jsonFormat(JsonNode data, Map<String, String> labels)\n throws JsonProcessingException {\n Map<String, Object> result = new LinkedHashMap<>(labels);\n Iterator<Entry<String, JsonNode>> iterator = data.fields();\n while (iterator.hasNext()) {\n Entry<String, JsonNode> kv = iterator.next();\n result.put(kv.getKey(), kv.getValue());\n }\n return MAPPER.writeValueAsString(result);\n }",
"protected String toJSONFragment() {\n StringBuffer json = new StringBuffer();\n boolean first = true;\n if (isSetStepConfig()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"StepConfig\\\" : {\");\n StepConfig stepConfig = getStepConfig();\n\n\n json.append(stepConfig.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n if (isSetExecutionStatusDetail()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"ExecutionStatusDetail\\\" : {\");\n StepExecutionStatusDetail executionStatusDetail = getExecutionStatusDetail();\n\n\n json.append(executionStatusDetail.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n return json.toString();\n }",
"public static String JsonToString(JsonObject jso, String param, String defaulx) {\n try {\n JsonElement res = securGetJSON(jso, param);\n if (res != null) {\n String result = res.getAsString();\n result = result.trim().replace(\"\\n\", \"\\\\n\").replace(\"\\t\", \"\\\\t\").replace(\"'\", \"''\");\n return result;\n } else {\n return defaulx;\n }\n } catch (Exception e) {\n// System.out.println(\"erro json a string\");\n return defaulx;\n }\n }",
"public void printData()\n {\n reader.printData();\n }",
"public String toJsonString() {\n return JsonUtils.getGson().toJson(toJson());\n }",
"@Get(\"json\")\n public Representation toJSON() {\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = null;\n\n \tString msg = \"no metadata matching query found\";\n\n \ttry {\n \t\tmetadata = getMetadata(status, access,\n \t\t\t\tgetRequestQueryValues());\n \t} catch(ResourceException r){\n \t\tmetadata = new ArrayList<Map<String, String>>();\n \tif(r.getCause() != null){\n \t\tmsg = \"ERROR: \" + r.getCause().getMessage();\n \t}\n \t}\n\n\t\tString iTotalDisplayRecords = \"0\";\n\t\tString iTotalRecords = \"0\";\n\t\tif (metadata.size() > 0) {\n\t\t\tMap<String, String> recordCounts = (Map<String, String>) metadata\n\t\t\t\t\t.remove(0);\n\t\t\tiTotalDisplayRecords = recordCounts.get(\"iTotalDisplayRecords\");\n\t\t\tiTotalRecords = recordCounts.get(\"iTotalRecords\");\n\t\t}\n\n\t\tMap<String, Object> json = buildJsonHeader(iTotalRecords,\n\t\t\t\tiTotalDisplayRecords, msg);\n\t\tList<ArrayList<String>> jsonResults = buildJsonResults(metadata);\n\n\t\tjson.put(\"aaData\", jsonResults);\n\n\t\t// Returns the XML representation of this document.\n\t\treturn new StringRepresentation(JSONValue.toJSONString(json),\n\t\t\t\tMediaType.APPLICATION_JSON);\n }",
"public void jsonParseMeth(JSONArray am3) {\n for (int i = 0; i <= am3.size() - 1; i++) {\n JSONObject obj1 = (JSONObject) am3.get(i);\n System.out.println(((JSONObject) am3.get(i)).toJSONString());\n System.out.println((String) obj1.get(\"ibx\"));\n System.out.println((String) obj1.get(\"switchName\"));\n System.out.println((String) obj1.get(\"cspName\"));\n System.out.println(obj1.get(\"vlanCount\"));\n System.out.println(obj1.get(\"usedBandwidth\"));\n System.out.println((String) obj1.get(\"portName\"));\n System.out.println((String) obj1.get(\"portPriority\"));\n System.out.println(obj1.get(\"percentageAvailableBandwidth\"));\n System.out.println(obj1.get(\"totalBandwidth\"));\n System.out.println(obj1.get(\"availableBandwidth\"));\n JSONArray physical = (JSONArray) obj1.get(\"physicalPortNames\");\n for (Object phy : physical) {\n System.out.println(phy.toString());\n }\n }\n\n }",
"@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }"
] | [
"0.7385675",
"0.7156577",
"0.6855219",
"0.6679482",
"0.64543176",
"0.64271384",
"0.63517654",
"0.6344103",
"0.63396275",
"0.6228201",
"0.6134563",
"0.6134563",
"0.6134563",
"0.60859954",
"0.6080162",
"0.6070586",
"0.60139483",
"0.60139483",
"0.60074073",
"0.5975441",
"0.5951624",
"0.5935514",
"0.59122485",
"0.59005976",
"0.58929425",
"0.5892332",
"0.5868316",
"0.5855353",
"0.58544177",
"0.5819219",
"0.57837707",
"0.5770381",
"0.57695216",
"0.5757112",
"0.574292",
"0.5731781",
"0.57203996",
"0.5713627",
"0.5713627",
"0.5689407",
"0.56848466",
"0.567886",
"0.567496",
"0.56710255",
"0.5657883",
"0.56538904",
"0.5652026",
"0.5650476",
"0.56455904",
"0.5644589",
"0.56288683",
"0.5608259",
"0.56057185",
"0.5589915",
"0.55790955",
"0.55680287",
"0.55616623",
"0.55454594",
"0.5539392",
"0.55299157",
"0.5529494",
"0.55260706",
"0.5495208",
"0.5484698",
"0.5475641",
"0.5474697",
"0.54677576",
"0.54553896",
"0.54442614",
"0.5437707",
"0.5431331",
"0.5428633",
"0.5426539",
"0.5422999",
"0.5420593",
"0.54190016",
"0.5408587",
"0.5402209",
"0.54011303",
"0.5399194",
"0.53953236",
"0.53888625",
"0.53879493",
"0.53592414",
"0.535519",
"0.53450406",
"0.53432614",
"0.5340433",
"0.532235",
"0.5321067",
"0.5316588",
"0.53150636",
"0.5307208",
"0.5303655",
"0.5293955",
"0.5286028",
"0.5283606",
"0.528228",
"0.5264346",
"0.52629447"
] | 0.61984545 | 10 |
print data as XML (really a String in xml format) | public void xmlPresentation () {
System.out.println ( "****** XML Data Module ******" );
ArrayList<Book> bookArrayList = new ArrayList<Book>();
Books books = new Books();
books.setBooks(new ArrayList<Book>());
bookArrayList = new Request().postRequestBook();
for (Book aux: bookArrayList) {
books.getBooks().add(aux);
}
try {
javax.xml.bind.JAXBContext jaxbContext = JAXBContext.newInstance(Books.class);
Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
jaxbMarshaller.marshal(books, System.out);
} catch (JAXBException e) {
System.out.println("Error: "+ e);
}
ClientEntry.showMenu ( );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"public String printToXml()\n {\n XMLOutputter outputter = new XMLOutputter();\n outputter.setFormat(org.jdom.output.Format.getPrettyFormat());\n return outputter.outputString(this.toXml());\n }",
"public abstract StringBuffer toXML();",
"public abstract StringBuffer toXML ();",
"protected abstract void toXml(PrintWriter result);",
"public java.lang.String getXml();",
"private String printXML(Node target){\n\t\treturn \"\";\n\t}",
"public final String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<?xml version=\\\"1.0\\\"?>\").append(br());\n toXML(sb, 0);\n return sb.toString();\n }",
"String toXmlString() throws IOException;",
"private String toXML(){\n\tString buffer = \"<xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\">\\n\";\n\tfor(Room[] r : rooms)\n\t for(Room s : r)\n\t\tif(s != null)\n\t\t buffer += s.toXML();\n\tbuffer += \"</xml>\";\n\treturn buffer;\n }",
"public String toXml() {\n\t\treturn(toString());\n\t}",
"public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}",
"protected String getXML() {\n\n StringBuffer b = new StringBuffer(\"title =\\\"\");\n b.append(title);\n b.append(\"\\\" xAxisTitle=\\\"\");\n b.append(xAxisTitle);\n b.append(\"\\\" yAxisTitle=\\\"\");\n b.append(yAxisTitle);\n b.append(\"\\\" xRangeMin=\\\"\");\n b.append(xRangeMin);\n b.append(\"\\\" xRangeMax=\\\"\");\n b.append(xRangeMax);\n b.append(\"\\\" xRangeIncr=\\\"\");\n b.append(xRangeIncr);\n b.append(\"\\\" yRangeMin=\\\"\");\n b.append(yRangeMin);\n b.append(\"\\\" yRangeMax=\\\"\");\n b.append(yRangeMax);\n b.append(\"\\\" yRangeIncr=\\\"\");\n b.append(yRangeIncr);\n b.append(\"\\\" >\\n\");\n\n for (int i = 0, n = dataSources.size(); i < n; i++) {\n GuiChartDataSource ds = (GuiChartDataSource)dataSources.get(i);\n b.append(ds.toXML());\n b.append(\"\\n\");\n }\n\n return b.toString();\n }",
"protected void printOpeningTagContentAsXml(final PrintWriter printWriter) {\n printWriter.print(getTagName());\n for (final Map.Entry <String, DomAttr> entry : attributes_.entrySet()) {\n printWriter.print(\" \");\n printWriter.print(entry.getKey());\n printWriter.print(\"=\\\"\");\n printWriter.print(StringUtils.escapeXmlAttributeValue(entry.getValue().getNodeValue()));\n printWriter.print(\"\\\"\");\n }\n }",
"public static void encodeXML(PrintWriter out, String str) {\n int n = str.length();\n for (int i = 0; i < n; i++) {\n char c = str.charAt(i);\n if (c == '<') {\n out.write(\"<\");\n continue;\n }\n if (c == '>') {\n out.write(\">\");\n continue;\n }\n if (c == '&') {\n out.write(\"&\");\n continue;\n }\n if (c == '\\'') {\n out.write(\"'\");\n continue;\n }\n if (c == '\\\"') {\n out.write(\""\");\n continue;\n }\n if (c >= 32 && c <= 126) {\n out.write(c);\n continue;\n }\n out.write(\"&#x\");\n String v = Integer.toString(c, 16);\n for (int j = v.length(); j < 4; j++)\n out.write('0');\n out.write(v);\n out.write(';');\n }\n }",
"public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}",
"Element toXML();",
"@Override\n\tpublic String getFormat() {\n\t\treturn \"xml\";\n\t}",
"String toXML() throws RemoteException;",
"public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }",
"public String toXMLString() {\n\t\treturn toXMLString(XML_TAB, XML_NEW_LINE);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public void debugPrint(StringBuffer buffer) {\n\t\tbuffer.append(\"<?xml version='1.0' encoding='Shift_JIS' ?>\\n\");\n\n\t\tstartTag(buffer);\n\t\tappendModules(buffer);\n\t\tendTag(buffer);\n\t}",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"abstract void toXML(StringBuilder xml, int level);",
"@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}",
"@Override\n public String toString() {\n\n // Add schema location attribute\n this.addSchemaLocation(\"http://www.w3.org/2001/XMLSchema-instance\", \"schemaLocation\", \"xsi\",\n \"http://xsd.sepamail.eu/1206/ xsd/sepamail_missive.xsd \");\n\n // XML options instance\n XmlOptions options = new XmlOptions();\n\n // Set the properties of the XML options\n options.setSavePrettyPrint();\n options.setSaveSuggestedPrefixes(this.suggestedPrefixes);\n options.setUseCDataBookmarks();\n\n try {\n\n // Build XML document using the constructed XML object\n SAXBuilder sxb = new SAXBuilder();\n Document xmlDocument =\n sxb.build(new InputStreamReader(new ByteArrayInputStream(missiveDocument.xmlText(options).getBytes()),\n \"UTF-8\"));\n\n // Pretty print the XML document\n XMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n xmlOutputter.output(xmlDocument, output);\n\n // String with XML content\n return new String(output.toByteArray());\n\n } catch ( JDOMException | IOException ex) {\n\n // TODO: error logging\n System.out.println(ex.getMessage());\n }\n\n return null;\n }",
"public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}",
"private void printFullTree()\r\n {\r\n System.out.println(fullXmlTree.toString());\r\n }",
"static String prettyXml(String xml) {\n\t\tDocument doc = null;\n\t\tOutputFormat format = new OutputFormat(\" \", true);\n\t\tformat.setTrimText(true);\n\t\tStringWriter sw = new StringWriter();\n\t\ttry {\n\t\t\txml = SchemEditUtils.expandAmpersands(xml);\n\t\t\tdoc = Dom4jUtils.getXmlDocument(xml);\n\t\t\tXMLWriter prettyWriter = new XMLWriter(sw, format);\n\t\t\tprettyWriter.write(doc);\n\t\t} catch (Throwable e) {\n\t\t\tprtln(\"prettyXml error: \" + e.getMessage());\n\t\t\treturn \"\";\n\t\t}\n\t\treturn sw.toString();\n\t}",
"public static String format(String xml) {\r\n try {\r\n final InputSource src = new InputSource(new StringReader(xml));\r\n final Node document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(src).getDocumentElement();\r\n final Boolean keepDeclaration = Boolean.valueOf(xml.startsWith(\"<?xml\"));\r\n \r\n //May need this: System.setProperty(DOMImplementationRegistry.PROPERTY,\"com.sun.org.apache.xerces.internal.dom.DOMImplementationSourceImpl\");\r\n\r\n final DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance();\r\n final DOMImplementationLS impl = (DOMImplementationLS) registry.getDOMImplementation(\"LS\");\r\n final LSSerializer writer = impl.createLSSerializer();\r\n \r\n writer.getDomConfig().setParameter(\"format-pretty-print\", Boolean.TRUE); // Set this to true if the output needs to be beautified.\r\n writer.getDomConfig().setParameter(\"xml-declaration\", keepDeclaration); // Set this to true if the declaration is needed to be outputted.\r\n \r\n return writer.writeToString(document);\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}",
"public String toString(){\n return XMLParser.parseObject(this);\n }",
"public static void encodeXMLs(PrintWriter out, String... strs) {\n for (int i = 0; i < strs.length; i++) {\n if ((i % 2) == 0)\n out.print(strs[i]);\n else\n encodeXML(out, strs[i]);\n }\n }",
"public java.lang.String toString() {\n // call toString() with includeNS true by default and declareNS false\n String xml = this.toString(true, false);\n return xml;\n }",
"public String generateXML() \n { \n \n String xml = new String();\n \n String nodetype = new String();\n if (type.equals(\"internal\")){\n nodetype = \"INTERNAL\"; //change this for change in XML node name\n }\n else {\n nodetype = \"LEAF\"; //change this for change in XML node name\n }\n \n xml = \"<\" + nodetype;\n if (!name.equals(\"\")){\n xml = xml + \" name = \\\"\" + name + \"\\\"\";\n }\n if (length >0){\n xml = xml + \" length = \\\"\" + length + \"\\\"\";\n }\n //Section below tests tree size and depths\n // if (level > 0){\n // xml = xml + \" level = \\\"\" + level + \"\\\"\";\n // }\n //if (depth > 0){\n // xml = xml + \" depth = \\\"\" + depth + \"\\\"\";\n //}\n //if (newicklength > 0){\n // xml = xml + \" newicklength = \\\"\" + newicklength + \"\\\"\";\n //}\n // if (treesize > 0){\n // xml = xml + \" treesize = \\\"\" + treesize + \"\\\"\";\n //}\n //if (startxcoord >= 0){\n // xml = xml + \" startx = \\\"\" + startxcoord + \"\\\"\";\n //}\n //if (endxcoord >= 0){\n // xml = xml + \" endx = \\\"\" + endxcoord + \"\\\"\";\n //}\n //Test section done\n xml = xml + \">\";\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n xml = xml + child.generateXML(); //The recursive coolness happens here!\n }\n }\n xml = xml + \"</\" + nodetype + \">\";\n \n return xml;\n }",
"public String toXML() {\n return null;\n }",
"public String getXML() {\n\t\treturn getXML(false);\n\t}",
"private String printElementString(Element ele ) throws SmartServiceException {\n\t\t\n\t\ttry{\n\t\t\tTransformerFactory transFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transFactory.newTransformer();\n\t\t\tStringWriter buffer = new StringWriter();\n\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n\t\t\ttransformer.transform(new DOMSource(ele), new StreamResult(buffer));\n\t\t\tString str = buffer.toString();\n\t\t\treturn str;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new SmartServiceException.Builder(TestCDTAnyDB.class, e).build();\n\t\t} \n\t\t\n\t}",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public void printToXML() {\n String fileString = \"outputDisposal.xml\";\n //Creating the path object of the file\n Path filePath = Paths.get(fileString);\n if (Files.notExists(filePath)) {\n try {\n Files.createFile(filePath);\n } catch (IOException e1) {\n\n e1.printStackTrace();\n }\n }\n //Converting the path object to file to use in the FileWriter constructor \n File newFile = filePath.toFile();\n\n /*\n Typical try-with-resources block that features three streams: FileWriter,BufferedWriter and PrintWriter.\n The FileWriter object connects the file tho the stream.\n The BufferedWriter object \n */\n try ( PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(newFile)))) {\n for (PickUp pck : pickups) {\n out.print(pck);\n }\n\n } catch (IOException e) {\n System.err.println(e);\n }\n\n }",
"public String toXML() {\n return null;\n }",
"public void dump( Result out ) throws JAXBException;",
"private void printFile(Products print, String ufilename) {\n\t\tFile file = new File(\"output\"+File.separator+ufilename+fileId+\".xml\"); \n\t\tSystem.out.println(\"Exporting : \"+ file);\n\t\tJAXBContext jaxbContext;\n\t\ttry {\n\t\t\tjaxbContext = JAXBContext.newInstance(Products.class); \n\t\t\tMarshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);\n\t\t\tjaxbMarshaller.setProperty(\"com.sun.xml.internal.bind.xmlHeaders\", \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n\t\t\tjaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);\n\t\t\tjaxbMarshaller.marshal(print, file); // prints the file\n\t\t\t// \t\t jaxbMarshaller.marshal(products, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String printNodeData(Node<T> node){\n return String.valueOf(node.data);\n }",
"public String toString() {\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\t\t\r\n\t\tbuffer.append(\"<\" + xmltag + \" subgraph=\\\"\" + subgraph + \"\\\">\" + newline);\r\n\t\t\r\n\t\tfor (Variable currentVariable : variables) {\r\n\t\t\tbuffer.append(\"\\t\\t\\t\\t\\t\" + currentVariable);\r\n\t\t}\r\n\t\t\r\n\t\tbuffer.append(\"\\t\\t\\t\\t</\" + xmltag + \">\" + newline);\r\n\t\t\r\n\t\treturn buffer.toString();\r\n\t}",
"private void print(FromHostResult < CustomerData > result) {\n try {\n System.out.println(\"Host bytes converted : \"\n + result.getBytesProcessed());\n System.out.println(\"Result JAXB instance as XML :\");\n JAXBContext jaxbContext = JAXBContext.newInstance(CustomerData.class);\n Marshaller marshaller = jaxbContext.createMarshaller();\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);\n marshaller.marshal(\n new ObjectFactory().createCustomerData(result.getValue()),\n System.out);\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }",
"public static String showXML(Element root) {\r\n StringBuffer strbuf = new StringBuffer();\r\n try {\r\n strbuf.append(\"<\");\r\n strbuf.append(root.getName());\r\n if (!\"\".equals(root.getNamespaceURI())) {\r\n strbuf.append(\" xmlns=\\\"\");\r\n strbuf.append(root.getNamespaceURI());\r\n strbuf.append(\"\\\"\");\r\n }\r\n accessAdditionalNamespaces(root, strbuf);\r\n accessAttribute(root, strbuf);\r\n strbuf.append(\">\");\r\n accessElement(root, strbuf);\r\n strbuf.append(\"</\");\r\n strbuf.append(root.getName());\r\n strbuf.append(\">\");\r\n return strbuf.toString();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"public static void outputXMLdoc() throws Exception {\n // transform the Document into a String\n DOMSource domSource = new DOMSource(doc);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(OutputKeys.ENCODING,\"UTF-8\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n java.io.StringWriter sw = new java.io.StringWriter();\n StreamResult sr = new StreamResult(sw);\n transformer.transform(domSource, sr);\n String xml = sw.toString();\n\n\tSystem.out.println(xml);\n\n }",
"protected void print(Node node, int level, PrintWriter out)\n{\n int endtagLevel = level;\n // is there anything to do?\n if (node == null)\n {\n return;\n }\n\n for (int i=0; i<level; i++)\n {\n out.print(\" \");\n }\n int type = node.getNodeType();\n switch (type)\n {\n case Node.DOCUMENT_NODE:\n {\n out.println(docHeader);\n this.print(((Document)node).getDoctype(), 0, out);\n this.print(((Document)node).getDocumentElement(), 0, out);\n break;\n }\n\n // print document type\n case Node.DOCUMENT_TYPE_NODE:\n {\n out.println(docType);\n break;\n }\n // print element with attributes\n case Node.ELEMENT_NODE:\n {\n out.print('<');\n out.print(node.getNodeName());\n Attr attrs[] = sortAttributes(node.getAttributes());\n for (int i = 0; i < attrs.length; i++)\n {\n Attr attr = attrs[i];\n out.print(' ');\n out.print(attr.getNodeName());\n out.print(\"=\\\"\");\n out.print(attr.getNodeValue());\n out.print('\"');\n }\n\n NodeList children = node.getChildNodes();\n int len = (children != null) ? children.getLength() : 0;\n if (len == 1 \n && \n (children.item(0).getNodeType() == Node.CDATA_SECTION_NODE\n ||\n children.item(0).getNodeType() == Node.TEXT_NODE))\n {\n out.print('>');\n this.print(children.item(0), 0, out);\n endtagLevel = 0;\n }\n else\n {\n out.println('>');\n for (int i = 0; i < len; i++)\n {\n this.print(children.item(i), (level+1), out);\n }\n }\n break;\n }\n\n // handle entity nodes\n case Node.ENTITY_NODE:\n {\n out.print(\"ENTITY \");\n out.print(node.getNodeName());\n Entity ent = (Entity)node;\n String sId = ent.getSystemId();\n if (sId != null)\n {\n out.print(\" SYSTEM \\\"\" + sId + \"\\\"\");\n }\n break;\n }\n\n // handle entity reference nodes\n case Node.ENTITY_REFERENCE_NODE:\n {\n if (canonical)\n {\n NodeList children = node.getChildNodes();\n if (children != null)\n {\n int len = children.getLength();\n for (int i = 0; i < len; i++)\n {\n this.print(children.item(i), level, out);\n }\n }\n } \n else\n {\n out.print('&');\n out.print(node.getNodeName());\n out.print(';');\n }\n break;\n }\n\n // print cdata sections\n case Node.CDATA_SECTION_NODE:\n {\n // have to normalize it.\n out.print(normalize(node.getNodeValue()));\n break;\n }\n\n // print text\n case Node.TEXT_NODE:\n {\n out.print(node.getNodeValue());\n break;\n }\n\n // print processing instruction\n case Node.PROCESSING_INSTRUCTION_NODE:\n {\n out.print(\"<?\");\n out.print(node.getNodeName());\n String data = node.getNodeValue();\n if (data != null && data.length() > 0)\n {\n out.print(' ');\n out.print(data);\n }\n out.print(\"?>\");\n break;\n }\n default:\n {\n out.print(\"Unknown type \" + type);\n }\n }\n\n if (type == Node.ELEMENT_NODE)\n {\n for (int i=0; i<endtagLevel; i++)\n {\n out.print(\" \");\n }\n out.print(\"</\");\n out.print(node.getNodeName());\n out.println('>');\n }\n\n}",
"public String toXML() {\n\t StringBuilder builder = new StringBuilder(\"<info \");\n\t builder.append(\"id=\\\"\" + mId + \"\\\"\");\n\t builder.append(\" type=\\\"\" + mType + \"\\\"\");\n\t builder.append(\" bytes=\\\"\" + mBytes + \"\\\"\");\n\n\t if (mHeight > 0)\n\t\tbuilder.append(\" height=\\\"\" + mHeight + \"\\\"\");\n\t if (mWidth > 0)\n\t\tbuilder.append(\" width=\\\"\" + mWidth + \"\\\"\");\n\t if (mUrl != null)\n\t\tbuilder.append(\" url=\\\"\" + mUrl + \"\\\"\");\n\t builder.append(\" />\");\n\t return builder.toString();\n\t}",
"public static String toXMLString(Object obj) {\r\n if (obj == null) {\r\n return null;\r\n }\r\n\r\n String pkgName = obj.getClass().getPackage().getName();\r\n try {\r\n if (!entityMarshallers.containsKey(pkgName)) {\r\n JAXBContext jc = JAXBContext.newInstance(pkgName);\r\n entityMarshallers.put(pkgName, jc.createMarshaller());\r\n entityMarshallerLock.put(pkgName, new Object());\r\n }\r\n\r\n StringWriter sw = new StringWriter();\r\n Marshaller marshaller = entityMarshallers.get(pkgName);\r\n Object locker = entityMarshallerLock.get(pkgName);\r\n\r\n synchronized (locker) {\r\n marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Configuration.getBoolean(Constant.CONFIG_KEY.PCM_XML_PRETTY_PRINT));\r\n marshaller.marshal(obj, sw);\r\n }\r\n\r\n return sw.toString();\r\n\r\n } catch (Exception e) {\r\n Logger.defaultLogger.error(e.getMessage(), e);\r\n }\r\n return \"\";\r\n }",
"public String formatXml(String str) throws UnsupportedEncodingException, IOException, DocumentException {\n\t\tSAXReader reader = new SAXReader();\r\n\t\t// System.out.println(reader);\r\n\t\t// 注释:创建一个串的字符输入流\r\n\t\tStringReader in = new StringReader(str);\r\n\t\tDocument doc = reader.read(in);\r\n\t\t// System.out.println(doc.getRootElement());\r\n\t\t// 注释:创建输出格式\r\n\t\tOutputFormat formater = OutputFormat.createPrettyPrint();\r\n\t\t// 注释:设置xml的输出编码\r\n\t\tformater.setEncoding(\"utf-8\");\r\n\t\t// 注释:创建输出(目标)\r\n\t\tStringWriter out = new StringWriter();\r\n\t\t// 注释:创建输出流\r\n\t\tXMLWriter writer = new XMLWriter(out, formater);\r\n\t\t// 注释:输出格式化的串到目标中,执行后。格式化后的串保存在out中。\r\n\t\twriter.write(doc);\r\n\r\n\t\tString destXML = out.toString();\r\n\t\twriter.close();\r\n\t\tout.close();\r\n\t\tin.close();\r\n\t\t// 注释:返回我们格式化后的结果\r\n\t\treturn destXML;\r\n\t}",
"@Override\n public String toXML() {\n if (_xml == null)\n _xml = String.format(XML, getStanzaId(), to);\n return _xml;\n }",
"public String getXML(boolean pretty) {\n\t\treturn XMLFormatter.format(element, pretty);\n\t}",
"public void dumpAsXmlFile(String pFileName);",
"@Override\n\tpublic CharSequence toXML() {\n\t\treturn null;\n\t}",
"@Override\n protected void printXml(final String indent, final PrintWriter printWriter) {\n final boolean hasChildren = (getFirstChild() != null);\n printWriter.print(indent + \"<\");\n printOpeningTagContentAsXml(printWriter);\n\n if (!hasChildren && !isEmptyXmlTagExpanded()) {\n printWriter.println(\"/>\");\n }\n else {\n printWriter.println(\">\");\n printChildrenAsXml(indent, printWriter);\n printWriter.println(indent + \"</\" + getTagName() + \">\");\n }\n }",
"public String toXml( String inEncoding )\n\t{\n\t\tDocument doc = DocumentHelper.createDocument();\n\t\tElement root = doc.addElement(getName());\n\t\tappendXml(this,root);\n\t\tStringWriter text = new StringWriter();\n\t\tOutputFormat format = OutputFormat.createPrettyPrint();\n\t\tformat.setEncoding(inEncoding);\n\t\tXMLWriter out = new XMLWriter(text, format);\n\t\ttry\n\t\t{\n\t\t\tout.write(doc);\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tthrow new OpenEditRuntimeException(ex);\n\t\t}\n\t\treturn text.toString();\n\t}",
"public String toXml()\n\t{\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tStringWriter buffer = new StringWriter();\n\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n\t\t\ttransformer.transform(new DOMSource(conferenceInfo), new StreamResult(buffer));\n\t\t\treturn buffer.toString();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public void toXml(XmlContext xc) {\n\n }",
"public static String toXml(Object root) {\n Class clazz = Reflections.getUserClass(root);\n return toXml(root, clazz, null, true);\n }",
"static <T> T printLogAndReturn(Object obj) throws JAXBException {\n StringWriter writer = new StringWriter();\n // create JAXBContext which will be used to update writer\n JAXBContext context = JAXBContext.newInstance(obj.getClass());\n // marshall or convert jaxbElement containing student to xml format\n context.createMarshaller().marshal(obj, writer);\n // print XML string representation of Student object\n System.out.println(writer.toString());\n return (T) obj;\n }",
"@GET\n @Produces(MediaType.TEXT_XML)\n public String sayXMLHello() {\n return \"<?xml version=\\\"1.0\\\"?>\" + \"<hello> Hello Jersey\" + \"</hello>\";\n }",
"public String toXML(int indent) {\n StringBuffer xmlBuf = new StringBuffer();\n //String xml = \"\";\n \n synchronized(xmlBuf) {\n\t\tfor (int i=0;i<indent;i++)\n xmlBuf.append(\"\\t\");\n //xml += \"\\t\";\n\n\t\tString synopsisLengthAsString;\n\n\t\tswitch(length)\n\t\t{\n\t\t\tcase UNDEFINED:\n\t\t\t\tsynopsisLengthAsString = \"undefined\";\n\t\t\t\tbreak;\n\t\t\tcase SHORT:\n\t\t\t\tsynopsisLengthAsString = \"short\";\n\t\t\t\tbreak;\n\t\t\tcase MEDIUM:\n\t\t\t\tsynopsisLengthAsString = \"medium\";\n\t\t\t\tbreak;\n\t\t\tcase LONG:\n\t\t\t\tsynopsisLengthAsString = \"long\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsynopsisLengthAsString = \"undefined\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\txmlBuf.append(\"<Synopsis\");\n //xml += \"<Synopsis\";\n if (length!=UNDEFINED) {\n xmlBuf.append(\" length=\\\"\");\n xmlBuf.append(synopsisLengthAsString);\n xmlBuf.append(\"\\\"\");\n //xml = xml + \" length=\\\"\"+ synopsisLengthAsString + \"\\\"\";\n }\n if (language!=null) {\n xmlBuf.append(\" xml:lang=\\\"\");\n xmlBuf.append(language);\n xmlBuf.append(\"\\\"\");\n //xml = xml + \" xml:lang=\\\"\" + language + \"\\\"\";\n }\n xmlBuf.append(\">\");\n //xml += \">\";\n\t\txmlBuf.append(\"<![CDATA[\");\n xmlBuf.append(text);\n xmlBuf.append(\"]]>\");\n //xml = xml + \"<![CDATA[\" + text + \"]]>\";\n xmlBuf.append(\"</Synopsis>\");\n //xml += \"</Synopsis>\";\n\n\t\treturn xmlBuf.toString();\n }\n\t}",
"protected String toXMLFragment() {\n StringBuffer xml = new StringBuffer();\n if (isSetStepConfig()) {\n StepConfig stepConfig = getStepConfig();\n xml.append(\"<StepConfig>\");\n xml.append(stepConfig.toXMLFragment());\n xml.append(\"</StepConfig>\");\n } \n if (isSetExecutionStatusDetail()) {\n StepExecutionStatusDetail executionStatusDetail = getExecutionStatusDetail();\n xml.append(\"<ExecutionStatusDetail>\");\n xml.append(executionStatusDetail.toXMLFragment());\n xml.append(\"</ExecutionStatusDetail>\");\n } \n return xml.toString();\n }",
"@SuppressWarnings(\"PMD.SystemPrintln\")\n\tprivate Object dump(SimpleNode node, Object data)\n\t{\n\t\tSystem.err.print(data);\n\t\tSystem.err.print(FormulaParserTreeConstants.jjtNodeName[node.getId()]);\n\t\tOperator operator = node.getOperator();\n\t\tif (operator != null)\n\t\t{\n\t\t\tSystem.err.print(\" \");\n\t\t\tSystem.err.print(operator);\n\t\t}\n\n\t\tif (node.getText() != null)\n\t\t{\n\t\t\tSystem.err.print(\" \");\n\t\t\tSystem.err.print(node.getText());\n\t\t}\n\t\tSystem.err.println();\n\t\tint numChildren = node.jjtGetNumChildren();\n\t\tfor (int i = 0; i < numChildren; i++)\n\t\t{\n\t\t\tNode child = node.jjtGetChild(i);\n\t\t\tchild.jjtAccept(this, data + \" \");\n\t\t}\n\t\treturn null;\n\t}",
"public String generarMuestraDatosXML() {\r\n\r\n\t\tDocument doc = new Document();\r\n\t\tElement datosClearQuest = new Element(\"datosClearQuest\");\r\n\t\tdoc.setRootElement(datosClearQuest);\r\n\t\t\r\n\t\tgenerarConexion(datosClearQuest);\r\n\t\tgenerarLote(datosClearQuest);\r\n\r\n\t\treturn convertXMLToString(doc);\r\n\t}",
"private static void print(Collection<String> data) {\r\n\r\n\t\tdata.stream().forEach(s -> out.println(s));\r\n\t}",
"void toXml(OutputStream out, boolean format) throws IOException;",
"@GET\n @Produces(MediaType.APPLICATION_XML)\n \n public String getXml() {\n \n return \"<gps_data>\"\n + \"<gps_id>1</gps_id>\"\n + \"<gps_coord>107,-40</gps_coord>\"\n + \"<gps_time>12:00</gps_time>\"\n + \"</gps_data>\";\n }",
"public String print()\n\t{\n\t\tString s = \"\";\n\t\t\n\t\ts = \"<explanation text=\\\"\" + text + \"\\\">\";\n\t\ts = s + commentContainer.printComments();\n\t\tif (expression != null)\n\t\t{\n\t\t\ts = s + expression.print(); \n\t\t}\n\t\ts = s + \"</explanation>\";\n\t\t\n\t\treturn s;\n\t}",
"private void echo(Node n) {\n\t outputIndentation();\n\t int type = n.getNodeType();\n\n\t switch (type) {\n\t case Node.ATTRIBUTE_NODE:\n\t out.print(\"ATTR:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.CDATA_SECTION_NODE:\n\t out.print(\"CDATA:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.COMMENT_NODE:\n\t out.print(\"COMM:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.DOCUMENT_FRAGMENT_NODE:\n\t out.print(\"DOC_FRAG:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.DOCUMENT_NODE:\n\t out.print(\"DOC:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.DOCUMENT_TYPE_NODE:\n\t out.print(\"DOC_TYPE:\");\n\t printlnCommon(n);\n\t NamedNodeMap nodeMap = ((DocumentType)n).getEntities();\n\t indent += 2;\n\t for (int i = 0; i < nodeMap.getLength(); i++) {\n\t Entity entity = (Entity)nodeMap.item(i);\n\t echo(entity);\n\t }\n\t indent -= 2;\n\t break;\n\n\t case Node.ELEMENT_NODE:\n\t out.print(\"ELEM:\");\n\t printlnCommon(n);\n\n\t NamedNodeMap atts = n.getAttributes();\n\t indent += 2;\n\t for (int i = 0; i < atts.getLength(); i++) {\n\t Node att = atts.item(i);\n\t echo(att);\n\t }\n\t indent -= 2;\n\t break;\n\n\t case Node.ENTITY_NODE:\n\t out.print(\"ENT:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.ENTITY_REFERENCE_NODE:\n\t out.print(\"ENT_REF:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.NOTATION_NODE:\n\t out.print(\"NOTATION:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.PROCESSING_INSTRUCTION_NODE:\n\t out.print(\"PROC_INST:\");\n\t printlnCommon(n);\n\t break;\n\n\t case Node.TEXT_NODE:\n\t out.print(\"TEXT:\");\n\t printlnCommon(n);\n\t break;\n\n\t default:\n\t out.print(\"UNSUPPORTED NODE: \" + type);\n\t printlnCommon(n);\n\t break;\n\t }\n\n\t indent++;\n\t for (Node child = n.getFirstChild(); child != null;\n\t child = child.getNextSibling()) {\n\t echo(child);\n\t }\n\t indent--;\n\t}",
"public void printToConsole(Object data){\r\n\t\tSystem.out.println(data);\r\n\t}",
"@SuppressWarnings(\"unused\")\n private void printData()\n {\n\tLog.d(Constants.TAG, \"XMLReader::printData() Called!\");\n\n\tIterator<Room> it = myRooms.iterator();\n\tint count = 0;\n\twhile (it.hasNext())\n\t{\n\t count++;\n\t System.out.println(\"Room \" + count + \"\\n\" + it.next().toString());\n\n\t}\n\n\tLog.d(Constants.TAG, \"XMLReader::printData() Exiting!\");\n }",
"private void printXml(PrintWriter writer, String sMetadata)\r\n throws SearchException, SchemaException {\r\n MetadataDocument document = new MetadataDocument();\r\n String sXml = document.prepareForFullViewing(sMetadata);\r\n writer.write(sXml);\r\n}",
"public String toString() {\n\treturn createString(data);\n }",
"public void openXml() throws ParserConfigurationException, TransformerConfigurationException, SAXException {\n\n SAXTransformerFactory saxTransformerFactory = (SAXTransformerFactory) SAXTransformerFactory.newInstance();\n transformer = saxTransformerFactory.newTransformerHandler();\n\n // pretty XML output\n Transformer serializer = transformer.getTransformer();\n serializer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n serializer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setResult(result);\n transformer.startDocument();\n transformer.startElement(null, null, \"inserts\", null);\n }",
"private static void writeAsXml(Object o, Writer writer) throws Exception\n {\n JAXBContext jaxb = JAXBContext.newInstance(o.getClass());\n \n Marshaller xmlConverter = jaxb.createMarshaller();\n xmlConverter.setProperty(\"jaxb.formatted.output\", true);\n xmlConverter.marshal(o, writer);\n }",
"private String generateXml(List list)\n {\n StringBuffer buf = new StringBuffer( );\n for ( Iterator it = list.iterator( ); it.hasNext( ); )\n {\n DRLJavaEmitter emitter = (DRLJavaEmitter) it.next( );\n buf.append( emitter.toXML( ) );\n }\n return buf.toString( );\n }",
"public void printString()\r\n\t\t{\r\n\t\t\tTreeNode previousTreeNode = null; //holds the previous node\r\n\t\t\tTreeNode currentTreeNode = null; //holds current node\r\n\r\n\t\t\tData currentData = head; //start at the head of our data which is a linked list\r\n\t\t\twhile (currentData != null) //while the currentData is not null\r\n\t\t\t{\r\n\t\t\t\tcurrentTreeNode = currentData.getLT(); //get the Less Than tree\r\n\t\t\t\tif (currentTreeNode != previousTreeNode)\r\n\t\t\t\t\tcurrentTreeNode.printString(); //print the Less Than tree\r\n\t\t\t\tpreviousTreeNode = currentTreeNode;\r\n\r\n\t\t\t\tcurrentData.getWord(); //get the current word\r\n\t\t\t\tSystem.out.printf(\"%-20s\", currentData.getWord()); //print the current word\r\n\t\t\t\tArrayList locations = currentData.getLocations(); //get the word's locations in the file\r\n\t\t\t\tfor (int i = 0; i < locations.size(); i++) //print all of those\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.printf(\" (%s,%s)\", ((Point) locations.get(i)).x, ((Point) locations.get(i)).y);\r\n\t\t\t\t\tif ((((i + 1) % 8) == 0) && ((i + 1) != locations.size())) //only print 8 items per line\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.printf(\"\\n%-20s\", \"\\\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(); //print a newline\r\n\r\n\t\t\t\tcurrentTreeNode = currentData.getGT(); //get the Greater Than tree\r\n\t\t\t\tif (currentTreeNode != previousTreeNode)\r\n\t\t\t\t\tcurrentTreeNode.printString(); //print the Greater Than tree\r\n\t\t\t\tpreviousTreeNode = currentTreeNode;\r\n\t\t\t\tcurrentData = currentData.nextData();\r\n\t\t\t}\r\n\t\t}",
"public String toXML(int indent) {\n\t\tStringBuffer xmlBuf = new StringBuffer();\n\t\t//String xml = \"\";\n\n\t\tsynchronized (xmlBuf) {\n\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t//xml += \"\\t\";\n\t\t\t}\n\t\t\txmlBuf.append(\"<ScheduleEvent>\\n\");\n\t\t\t//xml += \"<ScheduleEvent>\\n\";\n\n\t\t\tindent++;\n\n\t\t\tif (crid != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<Program crid=\\\"\");\n\t\t\t\txmlBuf.append(crid.getCRID());\n\t\t\t\txmlBuf.append(\"\\\"/>\\n\");\n\t\t\t\t//xml = xml + \"<Program crid=\\\"\"+crid.getCRID()+\"\\\"/>\\n\";\n\t\t\t}\n\n\t\t\tif (programURL != null) {\n\t\t\t\txmlBuf.append(programURL.toXML(indent));\n\t\t\t\txmlBuf.append(\"\\n\");\n\t\t\t\t//xml = xml + programURL.toXML(indent) + \"\\n\";\n\t\t\t}\n\n\t\t\tif (imi != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<InstanceMetadataId>\");\n\t\t\t\txmlBuf.append(imi.getInstanceMetadataId());\n\t\t\t\txmlBuf.append(\"</InstanceMetadataId>\\n\");\n\t\t\t\t//xml = xml +\n\t\t\t\t// \"<InstanceMetadataId>\"+imi.getInstanceMetadataId()+\"</InstanceMetadataId>\\n\";\n\t\t\t}\n\n\t\t\tif (publishedStartTime != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<PublishedStartTime>\");\n\t\t\t\txmlBuf\n\t\t\t\t\t\t.append(TimeToolbox\n\t\t\t\t\t\t\t\t.makeTVATimeString(publishedStartTime));\n\t\t\t\txmlBuf.append(\"</PublishedStartTime>\\n\");\n\t\t\t\t//xml = xml + \"<PublishedStartTime>\" +\n\t\t\t\t// TimeToolbox.makeTVATimeString(publishedStartTime) +\n\t\t\t\t// \"</PublishedStartTime>\\n\";\n\t\t\t}\n\n\t\t\tif (publishedEndTime != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<PublishedEndTime>\");\n\t\t\t\txmlBuf.append(TimeToolbox.makeTVATimeString(publishedEndTime));\n\t\t\t\txmlBuf.append(\"</PublishedEndTime>\\n\");\n\t\t\t\t//xml = xml + \"<PublishedEndTime>\" +\n\t\t\t\t// TimeToolbox.makeTVATimeString(publishedEndTime) +\n\t\t\t\t// \"</PublishedEndTime>\\n\";\n\t\t\t}\n\n\t\t\tif (publishedDuration != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<PublishedDuration>\");\n\t\t\t\txmlBuf.append(publishedDuration.getDurationAsString());\n\t\t\t\txmlBuf.append(\"</PublishedDuration>\\n\");\n\t\t\t\t//xml += \"<PublishedDuration>\"+\n\t\t\t\t// publishedDuration.getDurationAsString() +\n\t\t\t\t// \"</PublishedDuration>\\n\";\n\t\t\t}\n\n\t\t\tif (live != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<Live value=\\\"\");\n\t\t\t\txmlBuf.append(live);\n\t\t\t\txmlBuf.append(\"\\\"/>\\n\");\n\t\t\t\t//xml += \"<Live value=\\\"\" + live + \"\\\"/>\\n\";\n\t\t\t}\n\n\t\t\tif (repeat != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<Repeat value=\\\"\");\n\t\t\t\txmlBuf.append(repeat);\n\t\t\t\txmlBuf.append(\"\\\"/>\\n\");\n\t\t\t\t//xml += \"<Repeat value=\\\"\" + repeat + \"\\\"/>\\n\";\n\t\t\t}\n\n\t\t\tif (firstShowing != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<FirstShowing value=\\\"\");\n\t\t\t\txmlBuf.append(firstShowing);\n\t\t\t\txmlBuf.append(\"\\\"/>\\n\");\n\t\t\t\t//xml += \"<FirstShowing value=\\\"\" + firstShowing + \"\\\"/>\\n\";\n\t\t\t}\n\n\t\t\tif (lastShowing != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<LastShowing value=\\\"\");\n\t\t\t\txmlBuf.append(lastShowing);\n\t\t\t\txmlBuf.append(\"\\\"/>\\n\");\n\t\t\t\t//xml += \"<LastShowing value=\\\"\" + lastShowing + \"\\\"/>\\n\";\n\t\t\t}\n\n\t\t\tif (free != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<Free value=\\\"\");\n\t\t\t\txmlBuf.append(free);\n\t\t\t\txmlBuf.append(\"\\\"/>\\n\");\n\t\t\t\t//xml += \"<Free value=\\\"\" + free + \"\\\"/>\\n\";\n\t\t\t}\n\n\t\t\tif (ppv != null) {\n\t\t\t\tfor (int i = 0; i < indent; i++) {\n\t\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t\t//xml += \"\\t\";\n\t\t\t\t}\n\t\t\t\txmlBuf.append(\"<PayPerView value=\\\"\");\n\t\t\t\txmlBuf.append(ppv);\n\t\t\t\txmlBuf.append(\"\\\"/>\\n\");\n\t\t\t\t//xml += \"<PayPerView value=\\\"\" + ppv + \"\\\"/>\\n\";\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < indent - 1; i++) {\n\t\t\t\txmlBuf.append(\"\\t\");\n\t\t\t\t//xml += \"\\t\";\n\t\t\t}\n\t\t\txmlBuf.append(\"</ScheduleEvent>\");\n\t\t\t//xml += \"</ScheduleEvent>\";\n\n\t\t\treturn xmlBuf.toString();\n\t\t}\n\t}",
"public void toXML(PrintWriter pw) {\n pw.println(\"<crontabentry>\");\n pw.println(\"<id>\" + id + \"</id> \");\n pw.println(\"<classname>\" + className + \"</classname> \");\n pw.println(\"<methodname>\" + methodName + \"</methodname> \");\n if (bextraInfo) {\n for (int i = 0; i < extraInfo.length; i++) {\n pw.println(\"<extrainfo parameter = \\\"\" + i + \"\\\" >\");\n pw.println(extraInfo[i] + \" </extrainfo>\");\n }\n }\n pw.println(\"<calendar>\" + cal + \" </calendar>\");\n pw.println(\"<timemillis>\" + timeMillis + \"</timemillis> \");\n pw.println(\"</crontabentry>\");\n }",
"public static String getXMLInteger(Integer integer) {\n\t\t return DatatypeConverter.printInt(integer);\n\t }",
"void write(String s)\n\t\t{\n\t\t\tfor(int i = 0; i < sp; i++)\n\t\t\t\tXMLStream.print(\" \");\n\t\t\tXMLStream.println(\"<\" + s + \"/>\");\n\t\t}",
"public String getXml() {\n return xml;\n }",
"public void printData () {\n System.out.println (products.toString ());\n }",
"public void checkOutputXML (IInternalContest contest) {\n \n try {\n DefaultScoringAlgorithm defaultScoringAlgorithm = new DefaultScoringAlgorithm();\n String xmlString = defaultScoringAlgorithm.getStandings(contest, new Properties(), log);\n \n // getStandings should always return a well-formed xml\n assertFalse(\"getStandings returned null \", xmlString == null);\n assertFalse(\"getStandings returned empty string \", xmlString.trim().length() == 0);\n \n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n documentBuilder.parse(new InputSource(new StringReader(xmlString)));\n } catch (Exception e) {\n assertTrue(\"Error in XML output \" + e.getMessage(), true);\n e.printStackTrace();\n }\n }",
"@Get(\"xml\")\n public Representation toXml() {\n\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = getMetadata(status, access,\n \t\t\tgetRequestQueryValues());\n \tmetadata.remove(0);\n\n List<String> pathsToMetadata = buildPathsToMetadata(metadata);\n\n String xmlOutput = buildXmlOutput(pathsToMetadata);\n\n // Returns the XML representation of this document.\n StringRepresentation representation = new StringRepresentation(xmlOutput,\n MediaType.APPLICATION_XML);\n\n return representation;\n }",
"public static void encodeXML(StringBuilder out, String str) {\n int n = str.length();\n for (int i = 0; i < n; i++) {\n char c = str.charAt(i);\n if (c == '<') {\n out.append(\"<\");\n continue;\n }\n if (c == '>') {\n out.append(\">\");\n continue;\n }\n if (c == '&') {\n out.append(\"&\");\n continue;\n }\n if (c == '\\'') {\n out.append(\"'\");\n continue;\n }\n if (c == '\\\"') {\n out.append(\""\");\n continue;\n }\n if (c >= 32 && c <= 126) {\n out.append(c);\n continue;\n }\n out.append(\"&#x\");\n String v = Integer.toString(c, 16);\n for (int j = v.length(); j < 4; j++)\n out.append('0');\n out.append(v).append(';');\n }\n }",
"public void writeXML(OutputStream stream) throws IOException {\n\t\tPrintWriter out = new PrintWriter(stream);\n\t\tout.println(\"<?xml version=\\\"1.0\\\"?>\");\n\t\tout.println(\"<VLDocking version=\\\"2.1\\\">\");\n\t\tfor(int i = 0; i < desktops.size(); i++) {\n\t\t\tWSDesktop desktop = (WSDesktop) desktops.get(i);\n\t\t\tdesktop.writeDesktopNode(out);\n\t\t}\n\t\tout.println(\"</VLDocking>\");\n\n\t\tout.flush();\n\t}",
"public static void main(String[] args) {\n\t\tXStream xstream = new XStreamEx(new DomDriver());\r\n\t\txstream.alias(\"AIPG\", AIPG.class);\r\n\t\txstream.alias(\"INFO\", InfoReq.class);\r\n\t\r\n\t\t\r\n\t\t\r\n\t\txstream.alias(\"RET_DETAIL\", Ret_Detail.class);\r\n \t\txstream.aliasField(\"RET_DETAILS\", Body.class, \"details\");\r\n\t\r\n\r\n\t\t\r\n//\t\txstream.aliasField(\"TRX->CODE1\", Info.class, \"TRX_CODE\");\r\n\t\t\r\n\t\tAIPG g = new AIPG( );\r\n\t\tInfoRsp info = new InfoRsp( );\r\n\t\tinfo.setTRX_CODE(\"-----\");\r\n\t\tinfo.setVERSION(\"03\");\r\n\t\tg.setINFO(info);\r\n\t\t\r\n\t\tBody body = new Body( );\r\n//\t\tTrans_Sum transsum = new Trans_Sum( );\r\n\t\tRet_Detail detail=new Ret_Detail();\r\n\t\tdetail.setSN(\"woshi\");\r\n\t body.addDetail(detail);\r\n\t \r\n\t\t\r\n\t\tg.setBODY(body);\r\n\t\tSystem.out.println(xstream.toXML(g).replaceAll(\"__\", \"_\"));\r\n\t\t\r\n\t\t\r\n\t}",
"public static String prettyXML(String xml) {\n try {\n Source xmlInput = new StreamSource(new StringReader(xml));\n StringWriter stringWriter = new StringWriter();\n StreamResult xmlOutput = new StreamResult(stringWriter);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n transformerFactory.setAttribute(\"indent-number\", 2);\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.transform(xmlInput, xmlOutput);\n return xmlOutput.getWriter().toString();\n } catch (Exception e) {\n Log.error(\"Error generating prettyXML:\");\n e.printStackTrace();\n }\n return \"\";\n }",
"public String getXml() {\n\t\treturn _xml;\n\t}",
"static String prettyXml(File in) {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\txml = Files.readFile(in).toString();\n\t\t\treturn prettyXml(xml);\n\t\t} catch (Exception e) {\n\t\t\tprtln(\"prettyXml error: \" + e.getMessage());\n\t\t\treturn xml;\n\t\t}\n\t}",
"private String getDemoXML(Pid pid) {\n\t\tStringWriter sw = new StringWriter();\n\n\t\ttry {\n\t\t\tJAXBContext.newInstance(Pid.class).createMarshaller().marshal(pid, sw);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tString pidXML = sw.toString();\n\n\t\ttry {\n\t\t\tint start = pidXML.indexOf(\"<Demo>\");\n\t\t\tint end = pidXML.indexOf(\"</Demo>\") + (\"<Demo>\".length() + 1);\n\n\t\t\treturn pidXML.substring(start, end);\n\t\t} catch (Exception e) {\n\t\t\t//In case of exception return blank string\n\t\t\te.printStackTrace();\n\t\t\treturn \"\";\n\t\t}\n\n\t}"
] | [
"0.71082443",
"0.68310964",
"0.68310964",
"0.68310964",
"0.67934746",
"0.6648029",
"0.65571225",
"0.6540186",
"0.6380271",
"0.63783",
"0.6289289",
"0.6244965",
"0.62047124",
"0.6168325",
"0.6110843",
"0.610961",
"0.604005",
"0.60270506",
"0.6002814",
"0.595487",
"0.595139",
"0.5916595",
"0.59094375",
"0.590248",
"0.5890079",
"0.5890079",
"0.587116",
"0.58356375",
"0.58310586",
"0.579637",
"0.5768965",
"0.57679033",
"0.5746439",
"0.57282686",
"0.57226396",
"0.57147",
"0.5712996",
"0.57101077",
"0.5701312",
"0.56956947",
"0.5682751",
"0.5671649",
"0.5667674",
"0.56604755",
"0.5658313",
"0.56517535",
"0.5631421",
"0.56286526",
"0.56197935",
"0.56062865",
"0.5596272",
"0.55716914",
"0.55647284",
"0.5557067",
"0.55568653",
"0.5554768",
"0.55530494",
"0.55449414",
"0.5537207",
"0.55370444",
"0.55249494",
"0.5524552",
"0.55151194",
"0.55111283",
"0.551007",
"0.5485264",
"0.54837954",
"0.54811203",
"0.5443581",
"0.5429468",
"0.54282594",
"0.54258126",
"0.54177856",
"0.5413676",
"0.5402254",
"0.5401727",
"0.5401636",
"0.5389639",
"0.5388427",
"0.5382672",
"0.5381589",
"0.5378735",
"0.5372266",
"0.5366098",
"0.53586614",
"0.5350794",
"0.5349602",
"0.5345043",
"0.5333647",
"0.53305036",
"0.53214335",
"0.5317482",
"0.531598",
"0.53157675",
"0.5314783",
"0.5314775",
"0.5312829",
"0.5301636",
"0.52990586",
"0.5293345"
] | 0.5617053 | 49 |
if(launch_owner == owner || owner == 'e') System.out.println(msg); | public void println(char owner, String msg) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void print() {\n\t\tSystem.out.print(\"MsgOwner\");\n\t}",
"public String getOwnerString() {\n return String.valueOf(enteredBy);\n }",
"public static void altAccountOwner(Command command, String owner) {\n\t\tcommand.getChannel().sendMessage(\"This account is the alt account of `\"+owner+\"`\").complete();\n\t}",
"public static void main(String[] args) {\n\t\tString p = \"Sim\";\n\t\tdo {\n\t\t\tp = JOptionPane.showInputDialog(\"Você gostaria de receber uma mensagem?\");\n\t\t\t\n\t\t\tif(p.equals(\"Não\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Vai, diz que sim :(\");\n\t\t\t}else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Feliz Natal,\\n que o Menino Jesus possa nascer \\n na manjedoura do coração de cada um ^^ \\n By: Valdeci Junior @_junior_dev\");\n//\t\t\t\tJOptionPane.showMessageDialog(null, \"By: Valdeci Junior @_junior_dev\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}while(p.equals(\"Não\"));\n\t\t\n\t\t\n\n\t}",
"private static void displayOwner() {\n // Clear the screen\n clearScreen();\n\n // Display UI\n System.out.println(\"Welcome, Owner.\\n\\n\"\n + \"Choose an option:\\n\"\n + \"- (O)ccupancy - View occupancy of rooms\\n\"\n + \"- (D)ata [(c)ounts|(d)ays|(r)evenue] - View data on \"\n + \"counts, days, or revenue of each room\\n\"\n + \"- (S)tays - Browse list of reservations\\n\"\n + \"- (R)ooms - View list of rooms\\n\"\n + \"- (B)ack - Goes back to main menu\\n\");\n }",
"static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }",
"private static void ownerLoop() \n {\n boolean exit = false;\n Scanner input = new Scanner(System.in);\n\n while (!exit) {\n displayOwner();\n\n String[] tokens = input.nextLine().toLowerCase().split(\"\\\\s\");\n char option = tokens[0].charAt(0);\n char dataOpt = 0;\n\n if (tokens.length == 2)\n dataOpt = tokens[1].charAt(0);\n\n switch(option) {\n case 'o': occupancyMenu();\n break;\n case 'd': revenueData();\n break;\n case 's': browseRes();\n break;\n case 'r': viewRooms();\n break;\n case 'b': exit = true;\n break;\n }\n }\n }",
"public boolean isOwner(EntityPlayer player) {\n\t\treturn player.getDisplayName().equals(owner) /*|| Platform.worldType() != Platform.WorldMode.MP*/;\r\n\t}",
"public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }",
"static String getNameFromUser( Frame owner )\n\t{\n\t\treturn JOptionPane.showInputDialog( owner,\n\t\t\t\t \"You are a high scorer! Please enter your name.\",\n\t\t\t\t \"Congratulations!\",\n\t\t\t\t JOptionPane.QUESTION_MESSAGE );\n\t}",
"public static void main(String[] args) {\n\t\tScanner entrada=new Scanner(System.in);\r\n\t\t//Inicio del code\r\n\t\t\r\n\t\tBoolean ornah;\r\n\t\t\r\n\t\tString controller=JOptionPane.showInputDialog(\"Sos puto: \");\r\n\t\t\r\n\t\tif(controller.equals(\"yes\")) {\r\n\t\t\tornah=true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tornah=false;\r\n\t\t}\r\n\t\t\r\n\t\t//Boolean ornah=Boolean.parseBoolean(JOptionPane.showInputDialog(\"Ingresa True or False :\"));\r\n\t\t\t\t\r\n\t\tByte edad=Byte.parseByte(JOptionPane.showInputDialog(\"ingresar edad: \"));\r\n\t\t\t\t\r\n\t\tString name=JOptionPane.showInputDialog(\"Ingrese nombre: \");\r\n\t\t\r\n\t\tSystem.out.println(\"Su name is \"+name+\" La edad \"+edad+\" this is \"+ornah);\r\n\t\t\r\n\t\tif (edad>=20) {\r\n\t\t\tSystem.out.print(\"Tay viejo \"+name+\" ctmree, ya tenes: \"+edad);\r\n\t\t}\r\n\t\telse if(edad>25) {\r\n\t\t\tSystem.out.println(\"segunda opcion\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Todavia estai bien zii\");\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tString email = JOptionPane.showInputDialog(\"Email\");\n\t\tSystem.out.println(\"Original: \" + email);\n\t\tSystem.out.println(\"Minuscula: \" + email.toLowerCase());\n\t\tSystem.out.println(\"Maiuscula: \" + email.toUpperCase());\n\t\tSystem.out.println(\"Posição do @: \" + email.indexOf(\"@\"));\n\t\tSystem.out.println(\"Existe @: \" + email.contains(\"@\"));\n\t\tSystem.out.println(\"Qtde caracteres : \" + email.length());\n\t\tSystem.out.println(\"Parte da string 3 ao 6 iniciando no 0: \" + email.substring(3,6));\n\t\tSystem.out.println(\"Exclui o primeiro caracter : \" + email.substring(1));\n\t\tSystem.out.println(\"Usuario: \" + email.substring(0,email.indexOf(\"@\")));\n\t\tSystem.out.println(\"Servidor + o @: \" + email.substring(email.indexOf(\"@\")+1));\n\t\t\n\t\tSystem.out.println(\"Servidor sem o @: \" + email.substring(email.indexOf(\"@\")+1,email.indexOf(\".com\")));\n\t\t\n\t\tSystem.out.println(\"Primeira metade: \" + email.substring(0,email.length()/2)); // nesse caso só funciona se for par a quantidade de caracter\n\t\t\n\t\tSystem.out.println(\"Comparação case sensitive: \" + email.equals(\"vncrdo@gmail.com\"));\n\t\t\n\t\tSystem.out.println(\"Comparação case sensitive: \" + email.equalsIgnoreCase(\"vncrdo@gmail.com\"));\n\t\t\n\t}",
"public void showWinMessage() {\n\n\t}",
"public boolean send(String command, Component owner, boolean askContinue)\n {\n assert(SwingUtilities.isEventDispatchThread());\n String c = command.trim();\n if (c.equals(\"\"))\n return true;\n if (c.startsWith(\"#\"))\n {\n m_gtpShellText.appendComment(command + \"\\n\");\n }\n else\n {\n if (c.startsWith(\"boardsize \")\n || c.startsWith(\"black \")\n || c.equals(\"clear_board\")\n || c.startsWith(\"genmove \")\n || c.startsWith(\"genmove_black \")\n || c.startsWith(\"genmove_cleanup \")\n || c.startsWith(\"genmove_white \")\n || c.startsWith(\"kgs-genmove_cleanup \")\n || c.startsWith(\"loadsgf \")\n || c.startsWith(\"play \")\n || c.startsWith(\"play_sequence \")\n || c.startsWith(\"white \")\n || c.startsWith(\"quit\"))\n {\n if (m_modifyWarning == null)\n m_modifyWarning = new OptionalMessage(this);\n String message = \n \"The command '\" + command + \"' \" +\n \"will modify the board state \" +\n \"and cause the graphical board to be out of sync. \" +\n \"You should start a new game before using \" +\n \"the graphical board again.\";\n if (! m_modifyWarning.showWarning(message))\n return true;\n }\n try\n {\n m_callback.sendGtpCommand(command, owner != null);\n }\n catch (GtpError e)\n {\n Util.showError(owner, m_programName, e);\n if (askContinue)\n return ! SimpleDialogs.showQuestion(owner, \"Abort?\");\n }\n }\n return true;\n }",
"public abstract void printPromptMessage();",
"public static void main(String[] args) {\n\r\n\t\tString senha;\r\n\t\t\r\n\t\tScanner leitor = new Scanner (System.in);\r\n\t\t\r\n\t\t System.out.println( \"Senha: \" );\r\n\t\t senha = leitor.next();\r\n\t\t \r\n\t\t if(senha.equals (\"AEDB\"))\r\n\t\t System.out.println( \"Acesso permitido\" );\r\n\t\t \r\n\t\t else\r\n\t System.out.print ( \"Você não tem acesso ao sistema\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public boolean displayPrompt(String msg);",
"@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();",
"public boolean sendCommand(String command, Component owner,\n boolean askContinue)\n {\n String c = command.trim();\n if (c.equals(\"\"))\n return true;\n if (c.startsWith(\"#\"))\n {\n m_gtpShellText.appendComment(command + \"\\n\");\n }\n else\n {\n c.toLowerCase();\n if (m_showModifyWarning\n && (c.startsWith(\"boardsize \")\n || c.startsWith(\"black \")\n || c.startsWith(\"clear_board \")\n || c.startsWith(\"genmove \")\n || c.startsWith(\"genmove_black \")\n || c.startsWith(\"genmove_white \")\n || c.startsWith(\"loadsgf \")\n || c.startsWith(\"play \")\n || c.startsWith(\"white \")\n || c.startsWith(\"quit\")))\n {\n String message = \n \"This command will modify the board state\\n\" +\n \"and will cause the graphical board to be out of sync.\\n\" +\n \"You must start a new game before using\\n\" +\n \"the graphical board again.\";\n int messageType = JOptionPane.WARNING_MESSAGE;\n int optionType = JOptionPane.OK_CANCEL_OPTION;\n JOptionPane optionPane =\n new JOptionPane(message, messageType, optionType);\n JDialog dialog =\n optionPane.createDialog(this, \"GoGui: Warning\");\n dialog.setLocationRelativeTo(this);\n dialog.setVisible(true);\n \n Object value = optionPane.getValue();\n if (value == null)\n return true;\n int intValue = ((Integer)value).intValue();\n if (intValue != JOptionPane.OK_OPTION)\n return true;\n message = \n \"Would you like to disable the warnings about\\n\" +\n \"commands modifying the board state?\";\n m_showModifyWarning =\n ! SimpleDialogs.showQuestion(this, message);\n }\n try\n {\n m_callback.sendGtpCommand(command, owner != null);\n }\n catch (Gtp.Error e)\n {\n SimpleDialogs.showError(owner, e.getMessage());\n if (askContinue)\n return ! SimpleDialogs.showQuestion(owner, \"Abort?\");\n }\n }\n return true;\n }",
"public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}",
"private void viewPlayer(Command command)\n { if(!command.hasSecondWord()) { \n // if there is no second word, we don't know where to go... \n Logger.Log(\"What do you want to view?\"); \n return; \n } \n \n String thingToView = command.getSecondWord();\n String inventory = \"inventory\";\n String companions = \"companions\";\n \n if (!thingToView.equals(inventory)&&!thingToView.equals(companions)){\n Logger.Log(\"You can only view your inventory or your current companions\");\n }\n else if (thingToView.equals(inventory)&&!player.inventory.isEmpty()) {\n Logger.Log(\"~*\" + player.playerName + \"'s Backpack *~\");\n player.viewInventory();\n Logger.Log(\"~*~*~*~*~*~\");\n }\n else if (thingToView.equals(inventory)&&player.inventory.isEmpty()){\n Logger.Log(\"There is nothing in your backpack...\");\n }\n else if (thingToView.equals(companions)&&!player.friends.isEmpty()) {\n Logger.Log(\"~*\" + player.playerName + \"'s Companions *~\");\n player.viewCompanions();\n Logger.Log(\"~*~*~*~*~*~\");\n }\n else if (thingToView.equals(companions)&&player.friends.isEmpty()) {\n Logger.Log(\"You don't have any companions at the moment :(\");\n }\n \n \n }",
"public static void ownerLoop() {\n boolean exit = false;\n Scanner input = new Scanner(System.in);\n\n while (!exit) {\n displayOwner();\n\n String[] tokens = input.nextLine().toLowerCase().split(\"\\\\s\");\n char option = tokens[0].charAt(0);\n char dataOpt = 0;\n\n if (tokens.length == 2)\n dataOpt = tokens[1].charAt(0);\n\n switch(option) {\n case 'o': InnReservations.clearScreen();\n occupancy();\n break;\n case 'd': InnReservations.clearScreen();\n revenue(tokens);\n break;\n case 's': InnReservations.clearScreen();\n reservations();\n break;\n case 'r': InnReservations.clearScreen();\n rooms();\n break;\n case 'b': InnReservations.clearScreen();\n exit = true;\n break;\n }\n }\n }",
"public static void checkFromUser() {\n\t\tif (askUser(\"Please type y to execute program and any other key to stop\").contentEquals(\"y\")) {\n\t\t\tSystem.out.println(\"Continuing\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Terminating program\");\n\t\t\tSystem.exit(0); \n\t\t}\n\t\tSystem.out.println(\"Calculating the greatest house income, the greatest income after expenditure and greatest savings from the given 3 families\");\n\t}",
"private void instruct() {\n\t\tif (vsComputer) {\n\t\t\tSystem.out.println(\"\"\"\n 1. Stone\n 2. Paper\n 3. Scissors\n You have to enter your choice\n \"\"\");\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(Action.COMPANY + \"ÔÚÔËÓª...\");\n\t}",
"public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}",
"if(false==adhocTicket.hasExited()){\n System.out.println(\"hasExit() is passed\");\n }",
"private String waitPrint(){return \"waiting for other players...\";}",
"public boolean isSignOwner(Sign sign, Player p)\n\t{\t\n\t\treturn getBoutiqueSign(sign.getBlock()).getOwnerString().compareToIgnoreCase(p.getName()) == 0;\n\t}",
"String getHandOwner();",
"private boolean promptCommand() {}",
"static void promptUser() {\n System.out.print(\"Insert the remote owners name: \");\n Scanner input = new Scanner(System.in);\n String remoteOwner = input.next();\n //Calls for findOwner method in Owners class and declares return to Object \"owner\"\n Remotes owner = Function.findOwner(remoteOwner);\n\n //sout results\n System.out.println(\"Owner of remote: \" + owner.name);\n System.out.println(\"Distance to your remote: \" + owner.distance);\n System.out.println(\"Battery left: \" + owner.battery + \"%\");\n }",
"static String enter(Player player, Room room) {\n if (player.moveTo(room)) {\n return \"-Charlie Bot: You have entered \" + player.getLocation();\n } else {\n return \"That way appears to be blocked.\";\n }\n }",
"public static boolean isSpecificCommandENum(String s, CommandEnum e){\n s = s.trim().toLowerCase();\n\n String name = e.name();\n name = name.trim().toLowerCase();\n\n return s.equals(name);\n }",
"@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();",
"public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"please print\");\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void messagePrompt(String message) {\n JOptionPane.showMessageDialog(lobbyWindowFrame,message+\" is choosing the gods\");\n }",
"@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tuserName = (String) JOptionPane.showInputDialog(frame,\"Digite o nome:\");\n\t\t\t\t\t}",
"public void display(String message){\n\t\tString temp = message+\"\";\n\t\tString[] parts = temp.split(\"---\");\t\t\n\t\tif (parts[0].equals(\"#quit\")){\n\t\t\ttry{\n\t\t\t\tclient.closeConnection();\n\t\t\t\tSystem.out.println(\"> \" + \"Server: Server has shut down!\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Enexpected error while reading from console!\");\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (!(parts[2].equals(client.getUID()) || parts[2].equals(\"*\"))){ // if this message was not meant for me\n\t\t\treturn;\n\t\t}\n\t\telse{ // message was meant for me or everybody\n\t\t\tfor (int i =0; i < blockedList.size(); i++){\n\t\t\t\tif (parts[1].equals(blockedList.get(i))){\n\t\t\t\t\treturn; // the message is from somebody i've blocked\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tswitch (parts[0]){\n\t\t\t\tcase \"#block\":\n\t\t\t\t\tif (parts[3].equals(\"blockInvalid\")){\n\t\t\t\t\t\tSystem.out.println(\"The user you wish to block does not exist\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (parts[3].equals(\"blockSameUser\")){\n\t\t\t\t\t\tSystem.out.println(\"You cannot block yourself!!\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tboolean exists = false;\n\t\t\t\t\t\tfor(int i=0; i<blockedList.size();i++){\n\t\t\t\t\t\t\tif(parts[3].equals(blockedList.get(i))){\n\t\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have already blocked the user: \"+parts[3]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!exists){\n\t\t\t\t\t\t\tblockedList.add(parts[3]);\n\t\t\t\t\t\t\tSystem.out.println(\"You have blocked user: \"+parts[3]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"#unblock\":\n\t\t\t\t\tif (parts[3].equals(\"unblockInvalid\")){\n\t\t\t\t\t\tSystem.out.println(\"The user you wish to unblock does not exist\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (parts[3].equals(\"unblockSameUser\")){\n\t\t\t\t\t\tSystem.out.println(\"You cannot unblock yourself!!\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tboolean exists = false;\n\t\t\t\t\t\tfor(int i=0; i<blockedList.size();i++){\n\t\t\t\t\t\t\tif(parts[3].equals(blockedList.get(i))){\n\t\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t\t\t\tblockedList.remove(i);\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have unblocked user: \"+ parts[3]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!exists){\n\t\t\t\t\t\t\tSystem.out.println(\"The user: \"+parts[3]+\" was not previously blocked!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"#blocked\":\n\t\t\t\t\tboolean exists = false;\n\t\t\t\t\tfor(int i=0; i<whoBlocksMe.size();i++){\n\t\t\t\t\t\tif(parts[3].equals(whoBlocksMe.get(i)))\n\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!exists) whoBlocksMe.add(parts[3]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"#unblocked\":\n\t\t\t\t\tfor(int i=0;i<whoBlocksMe.size();i++){\n\t\t\t\t\t\tif(parts[3].equals(whoBlocksMe.get(i))){\n\t\t\t\t\t\t\twhoBlocksMe.remove(i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"> \" + parts[1] + \": \" + parts[3]);\n\t\t\t\t}\n\t\t}\n\t\treturn;\n\t}",
"public void displayPrompt()\n\t{\n\t\tif (ch.usingJog.length() > 0)\n\t\t\treturn;\n\t\t\t\n\t\tif (showPrompt)\n\t\t{\n\t\t\t// Show the pageMode prompt if necessary.\n\t\t\tif (pageMode)\n\t\t\t{\n\t\t\t\tpageMode = false;\n\t\t\t\tsendln(\"\");\n\t\t\t\tsendln(\"{Y[== {CPAGE MODE: {wPush enter to continue. See {W'{chelp pagemode{W' {wfor details. {Y==]{x\");\n\t\t\t\tshowPrompt = false;\n\t\t\t\tpageMode = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// Show the editor prompt if necessary.\n\t\t\tif (cs == ConnState.EDITING)\n\t\t\t{\n\t\t\t\tsend(\"{G > {x\");\n\t\t\t\tshowPrompt = false;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsend(\"{x\");\n\t\t\tif (!prefs.get(\"compact\"))\n\t\t\t\tsendln(\"\");\n\t\t\tif (tempPrompt.length() > 0)\n\t\t\t\tsendln(tempPrompt);\n\t\t\telse\n\t\t\t{\n\t\t\t\tString pr = prompt;\n\t\t\t\tif (ch.fighting != null)\n\t\t\t\t\tpr = bprompt;\n\t\t\t\tif (!prefs.get(\"prompt\"))\n\t\t\t\t\tpr = \"\";\n\t\t\t\t\n\t\t\t\tString exitLine = \"\";\n\t\t\t\tfor (Exit e : ch.currentRoom.exits)\n\t\t\t\t\tif (e.flags.get(\"hidden\") && !(e.flags.get(\"door\") && !e.flags.get(\"closed\")))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (e.flags.get(\"door\") && e.flags.get(\"closed\"))\n\t\t\t\t\t\texitLine = exitLine+e.direction.substring(0, 1).toLowerCase();\n\t\t\t\t\telse\n\t\t\t\t\t\texitLine = exitLine+e.direction.substring(0, 1).toUpperCase();\n\t\t\t\t\n\t\t\t\tString lightString = \"\";\n\t\t\t\tint hour = Fmt.getHour();\n\t\t\t\tint season = Fmt.getSeason();\n\t\t\t\tint sunrise = Fmt.getSunrise(season);\n\t\t\t\tint sunset = Fmt.getSunset(season);\n\t\t\t\tif (hour < sunrise || hour > sunset)\n\t\t\t\t\tlightString = \"{D(){x\";\n\t\t\t\telse if (hour >= sunrise && hour < sunrise+2)\n\t\t\t\t\tlightString = \"{D({Y){x\";\n\t\t\t\telse if (hour <= sunset && hour > sunset-2)\n\t\t\t\t\tlightString = \"{Y({D){x\";\n\t\t\t\telse\n\t\t\t\t\tlightString = \"{Y(){x\";\n\n\t\t\t\tpr = pr.replace(\"%%\", \"SPEC_PERCENT\");\n\n\t\t\t\tpr = pr.replace(\"%h\", \"\"+ch.hp);\n\t\t\t\tpr = pr.replace(\"%H\", \"\"+ch.maxHp());\n\t\t\t\tpr = pr.replace(\"%p\", \"\"+((ch.hp*100)/ch.maxHp()));\n\t\t\t\tpr = pr.replace(\"%m\", \"\"+ch.mana);\n\t\t\t\tpr = pr.replace(\"%M\", \"\"+ch.maxMana());\n\t\t\t\tpr = pr.replace(\"%n\", \"\"+((ch.mana*100)/ch.maxMana()));\n\t\t\t\tpr = pr.replace(\"%s\", \"\"+ch.energy);\n\t\t\t\tpr = pr.replace(\"%S\", \"\"+ch.maxEnergy());\n\t\t\t\tpr = pr.replace(\"%i\", \"\"+((ch.energy*100)/ch.maxEnergy()));\n\t\t\t\t\n\t\t\t\tpr = pr.replace(\"%x\", \"\"+ch.tnl);\n\t\t\t\tpr = pr.replace(\"%g\", \"\"+ch.gold);\n\t\t\t\tpr = pr.replace(\"%G\", \"\"+ch.bank);\n\t\t\t\tpr = pr.replace(\"%c\", \"\"+ch.combatQueue.size()/2);\n\n\t\t\t\tpr = pr.replace(\"%a\", ch.currentArea().name);\n\t\t\t\tpr = pr.replace(\"%r\", ch.currentRoom.name);\n\t\t\t\tpr = pr.replace(\"%e\", \"\"+exitLine);\n\t\t\t\tpr = pr.replace(\"%t\", \"\"+savedTells.size());\n\t\t\t\tpr = pr.replace(\"%T\", \"\"+timeFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%d\", \"\"+dateFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%D\", \"\"+longDateFrmt.format(System.currentTimeMillis()));\n\t\t\t\tpr = pr.replace(\"%l\", lightString);\n\t\t\t\t\n\t\t\t\tpr = pr.replace(\"%A\", \"\"+ch.currentArea().id);\n\t\t\t\tpr = pr.replace(\"%R\", \"\"+ch.currentRoom.id);\n\t\t\t\tpr = pr.replace(\"%o\", olcMode);\n\n\t\t\t\tif (ch.fighting != null)\n\t\t\t\t{\n\t\t\t\t\tpr = pr.replace(\"%O\", Fmt.seeName(ch, ch.fighting));\n\t\t\t\t\tpr = pr.replace(\"%P\", \"\"+((ch.fighting.hp*100)/ch.fighting.maxHp()));\n\t\t\t\t\tpr = pr.replace(\"%N\", \"\"+((ch.fighting.mana*100)/ch.fighting.maxMana()));\n\t\t\t\t\tpr = pr.replace(\"%I\", \"\"+((ch.fighting.energy*100)/ch.fighting.maxEnergy()));\n\t\t\t\t}\n\n\t\t\t\tpr = pr.replace(\"SPEC_PERCENT\", \"%\");\n\t\t\t\t\n\t\t\t\tsend(pr+\"{x\");\n\t\t\t}\n\t\t\tshowPrompt = false;\n\t\t}\n\t}",
"public static void main(String[] args) {\nString answer= JOptionPane.showInputDialog(\"do you like dogs\");\n\tJOptionPane.showMessageDialog(null,(answer));\n\t}",
"public void printVictoryMessage() { //main playing method\r\n System.out.println(\"Congrats \" + name + \" you won!!!\");\r\n }",
"public void run() {\n String line = finalArg.toString();\n\n String separate = line, text=\"\";\n boolean isEmoji = false;\n String[] words = separate.split(\" \");\n for (int i = 0; i < words.length; i++) {\n if (words[i].equals(\"Ω:v\") || words[i].equals(\":3\") || words[i].equals(\":)\") || words[i].equals(\":(\") || words[i].equals(\"o.O\") || words[i].equals(\":poop:\")\n || words[i].equals(\"(^^^)\") || words[i].equals(\"-_-\") || words[i].equals(\"<(')\") || words[i].equals(\"><\") || words[i].equals(\":kiss:\") || words[i].equals(\"(y)\")\n || words[i].equals(\":love:\") || words[i].equals(\"<3\") || words[i].equals(\":crysmiley:\") || words[i].equals(\":nervous:\")\n ) {\n isEmoji = true;\n text = words[i];\n words[i] = \"\";\n }\n }\n String ans = \"\";\n for (String i : words) {\n ans += (i + \" \");\n }\n// textPane.setFont(new java.awt.Font(\"Arial\", Font.PLAIN, 15));\n if (line.startsWith(\"Tôi:\")) {\n addColoredText(textPane, ans, Color.BLACK);\n } else if (ans.startsWith(\"***\") || ans.startsWith(\"Welcome\") || ans.startsWith(\"To\")) {\n addColoredText(textPane, ans, Color.red);\n } else {\n addColoredText(textPane, ans, Color.BLUE);\n new Notifications();\n }\n\n if (isEmoji) {\n try {\n addIcon(textPane, text);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n addColoredText(textPane, \"\\n\", Color.red);\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"lutfen hangi harfin anlamini istediginizi giriniz\");\n\t\tchar harf=scan.next().charAt(0);//girilen kelimenin ilk harfini alir sikayet etmez\n\t\t\n\t\tswitch (harf) {\n\t\tcase 'V':\n\t\tcase 'v':\n\t\t\tSystem.out.println(\"very\");\n\t\t\tbreak;\n\t\tcase 'I':\n\t\tcase 'i':\n\t\t\tSystem.out.println(\"important\");\n\t\t\tbreak;\n\t\tcase 'P':\n\t\tcase 'p':\n\t\t\tSystem.out.println(\"person\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tSystem.out.println(\"gecerli harf giriniz\");\n\t\t}\n\t\t\n\t\t//kullanicinin birden fazla harf girmesini sorun olarak kabul ediyorsaniz\n\t\t//ve bunu hata olarak kullaniciya geri bildirmek istiyorsaniz\n\t\t\n\t\t\n\t\tSystem.out.println(\"lutfen hangi harfin anlamini istediginizi giriniz\");\n\t\tString str=scan.next();\n\t\t\n\t\tswitch (str) {\n\t\tcase \"V\":\n\t\tcase \"v\":\n\t\t\tSystem.out.println(\"very\");\n\t\t\tbreak;\n\t\tcase \"I\":\n\t\tcase \"i\":\n\t\t\tSystem.out.println(\"important\");\n\t\t\tbreak;\n\t\tcase \"P\":\n\t\tcase \"p\":\n\t\t\tSystem.out.println(\"person\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\tSystem.out.println(\"gecerli harf giriniz\");\n\t\t}\n\t\t\nscan.close();\n\t}",
"private void handleUserEntry(String command) {\r\n //---------------------------------\r\n if(command.startsWith(\"RETURN\") || command.startsWith(\"return\") || command.startsWith(\"Return\")){\r\n clearCommandPromptScreen();\r\n WELCOMESCREEN_INSTANCE.newSession();\r\n }\r\n //---------------------------------\r\n if(command.startsWith(\"EXIT\") || command.startsWith(\"exit\") || command.startsWith(\"Exit\")){\r\n EXITCONFIRM_INSTANCE.newSession();\r\n\r\n }else {\r\n\r\n try {\r\n\r\n if (command.length() > 0) {\r\n\r\n //------------------------------------------\r\n //> VALIDATE USER ENTRY\r\n //------------------------------------------\r\n File foundFile = searchForFile(command);\r\n\r\n if(foundFile != null) {\r\n\r\n\r\n clearCommandPromptScreen();\r\n\r\n //---------------- FUN COLORED COMMAND PROMPT -----------------\r\n if(APP_INSTANCE.isWindows) {\r\n try {\r\n ProcessBuilder builder = new ProcessBuilder(\"cmd.exe\", \"/c\", \"@echo off & color A\");\r\n Process process = builder.inheritIO().start();\r\n } catch (IOException e) {\r\n //> If this fails, its no biggie...\r\n }\r\n }\r\n\r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\"////////////// (SEARCH RESULT - 'SUCCESS- FILE FOUND IN LOCKED_ME DIRECTORY') ///////////////////\");\r\n System.out.println(\"/// FILE FOUND: (\" + foundFile.getAbsolutePath() + \")\");\r\n System.out.println(\"\\nPRESS <ENTER> TO CONTINUE\");\r\n //---------------------------------\r\n BufferedReader reader = new BufferedReader( new InputStreamReader(System.in));\r\n try {\r\n reader.readLine();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally {\r\n clearCommandPromptScreen();\r\n newSession();\r\n }\r\n\r\n }else{\r\n\r\n clearCommandPromptScreen();\r\n\r\n //---------------- FUN COLORED COMMAND PROMPT -----------------\r\n if(APP_INSTANCE.isWindows) {\r\n try {\r\n ProcessBuilder builder = new ProcessBuilder(\"cmd.exe\", \"/c\", \"@echo off & color C\");\r\n Process process = builder.inheritIO().start();\r\n } catch (IOException e) {\r\n //> If this fails, its no biggie...\r\n }\r\n }\r\n\r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\"//////////// (SEARCH RESULT - 'FILE WAS NOT FOUND' IN LOCKED_ME DIRECTORY') //////////////////\");\r\n System.out.println(\"\\nPRESS <ENTER> TO CONTINUE\");\r\n //---------------------------------\r\n BufferedReader reader = new BufferedReader( new InputStreamReader(System.in));\r\n try {\r\n reader.readLine();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally {\r\n clearCommandPromptScreen();\r\n newSession();\r\n }\r\n }\r\n\r\n }else{\r\n //------------------------------------------\r\n //> USERS ENTRY WAS EMPTY\r\n //------------------------------------------\r\n newSession();\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n newSession();\r\n }\r\n }\r\n }",
"static void look(Player player) {\n String stuff = player.getLocation().whatStuff();\n if (!stuff.equals(\"\")) {\n System.out.println(\"You see:\\n\" + stuff);\n }\n else {\n System.out.println(\"You see an empty room.\");\n }\n }",
"private void cs0() {\n\t\t\tif(!Method.isChatiing()){\n\t\t\t\tMethod.npcInteract(RUNESCAPEGUIDE, \"Talk-to\");\n\t\t\t}\n\t\t\t\n\t\t}",
"public static void main(String[] args) {\nString names = JOptionPane.showInputDialog(\"Enter a student name (Case sensitive)\");\r\n\t\t// 2. Ask the user to enter a name. Store their answer in a variable.\r\nif (names.equals(\"Gaby\")) {\r\n\tJOptionPane.showMessageDialog(null, \"Is good at playing piano\");\r\n}\r\nelse if (names.equals(\"Daniel\")) {\r\n\tJOptionPane.showMessageDialog(null, \"Is a coding teacher!\");\r\n}\r\nelse if (names.equals(\"Alex\")) {\r\n\tJOptionPane.showMessageDialog(null, \"Likes to read\");\r\n}\r\nelse if (names.equals(\"Nathan\")) {\r\n\tJOptionPane.showMessageDialog(null, \"Is good at coding\");\r\n}\r\n\t\t// 3. In a pop-up, tell the user what is remarkable about that person. \r\n\r\n\t}",
"public static void main(String args[]) {\n\n if (args.length < 1) {\n System.err.println(USAGE_MSG);\n System.exit(1);\n }\n\n String command;\n Scanner commandLine = new Scanner(System.in);\n\n try {\n state = GameState.instance();\n if (args[0].endsWith(\".zork\")||args[0].endsWith(\".bork\")) {\n state.initialize(new Dungeon(args[0]));\n System.out.println(\"\\n\\n\\n\\n\\nWelcome to \" + \n state.getDungeon().getName() + \"!\");\n } else if (args[0].endsWith(\".sav\")) {\n state.restore(args[0]);\n System.out.println(\"\\nWelcome back to \" + \n state.getDungeon().getName() + \"!\");\n } else {\n System.err.println(USAGE_MSG);\n System.exit(2);\n }\n\n System.out.print(\"\\n\" + \n state.getAdventurersCurrentRoom().describe() + \"\\n\");\n\n command = promptUser(commandLine);\n\n while (!command.equals(\"q\")) {\n\t\tif(command.equals(\"EVENT\")){\n\t\t System.out.println(\"Welcome, hacker. These hacks may be gameBreaking and or dangerous to your health if typed wrong, be warned. Enter the Event name CAPS matters.\");\n\t\t command = promptUser(commandLine);\n\t\t System.out.print(EventFactory.instance().parse(command).execute());\n\t\t \n\t\t} else {\n\t\t//System.out.print(\"\\n\\n\\n\"); \t\t//Spacer that makes it look cleaner\n\t\tSystem.out.print(\n CommandFactory.instance().parse(command).execute());\n\n command = promptUser(commandLine);\n\t\t}\n\t }\n\n System.out.println(\"Bye!\");\n\n } catch(Exception e) { \n e.printStackTrace(); \n }\n }",
"public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}",
"@EventHandler\n void onPlayerInteract(PlayerInteractEvent e){\n Player player = e.getPlayer();\n Block rawblock = e.getClickedBlock();\n Material block = null;\n if(rawblock != null){ block = rawblock.getType();}\n if(block != null && block == Material.DARK_OAK_WALL_SIGN){\n Sign sign = (Sign) e.getClickedBlock().getState();\n if(sign.getLine(0).equalsIgnoreCase(ChatColor.WHITE + \"[\" + ChatColor.GOLD + \"RAID\" + ChatColor.WHITE + \"]\"))\n {\n player.sendMessage(\"gg\");\n }\n }\n }",
"@Override\n public void printMessage(String msg) {\n if (msg.contains(\"Turno di :\")) {\n inTurno = false;\n for (boolean b : pawnEnabled) {\n b = true;\n }\n }\n final String msgapp = editString(msg);\n Platform.runLater(() -> {\n if (textArea != null) {\n textArea.appendText(msgapp + \"\\n\");\n }\n });\n\n }",
"@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame,\"Nome Atual: \" + userName);\n\t\t\t\t\t}",
"@Override\n public boolean shouldExecute(Guild guild, User author, MessageChannel channel, String message) {\n if (guild == null && author.getId().equals(Owner.USER)) {\n if (message.split(\" \").length != 2) {\n return false;\n }\n\n return (message.toLowerCase().startsWith(\"leave\"));\n }\n\n return false;\n }",
"public static <Soplo_Humano> void main(String args[])throws Exception{\r\n\t\tScanner entry = new Scanner (System.in);\r\n\t\tString Instrumentos = null;\r\n\t\tSystem.out.print(\"Flauta\"+ \"\\n\" + \"Trompeta\"+ \"\\n\" +\"Marimba\");\r\n\t\tSystem.out.print(\"Ingrese instrumento: \");\r\n\t\t Instrumentos = entry.next();\r\n\t\tif(Instrumentos.equals(\"Flauta\"))\r\n\t \tSystem.out.println(\"Tiene un orificio donde pasa el aire\");\r\n\t\tif(Instrumentos.equals(\"Trompeta\"))\r\n\t\t\tSystem.out.println(\"Tiene un orificio donde pasa el aire\");\r\n\t\tthrow new Exception(\"No tiene orificio por lo tanto no es del tipo Aerofono\");\r\n}",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public static void main(String[] args) {\n String role=\"admin\";\n if(role==\"admin\"){\n System.out.println(\"you are admin\");\n }\n else if(role==\"moderator\"){\n System.out.println(\"You are moderator\");\n }\n else{\n System.out.println(\"You are something else\");\n }\n\n switch (role){\n case \"admin\":\n System.out.println(\"You are an admin\");\n break;\n\n case \"moderator\":\n System.out.println(\"You are a moderator\");\n break;\n\n default:\n System.out.println(\"You are something else\");\n }\n }",
"public void actionPerformed (ActionEvent e) {\n\t \t\tJOptionPane.showMessageDialog(frame3,\n\t \t\t\t \"Player 1 is blue \\n\"\n\t \t\t\t \t\t+ \"Player 2 is red \\n\"\n\t \t\t\t \t\t+ \"Player 3 is green \\n\"\n\t \t\t\t \t\t+ \"Player 4 is yellow \\n\"\n\t \t\t\t \t\t+ \"A Warrior's token is a circle. Range:1, Move:3\\n\"\n\t \t\t\t \t\t+ \"A Ranger's token is a square. Range:4, Move:5\\n\"\n\t \t\t\t \t\t+ \"A Rogue's token is a triangle. Range:1, Move:6\\n\"\n\t \t\t\t \t\t+ \"A healer's token is a star. Range:3, Move:4\\n\"\n\t \t\t\t \t\t+ \"A Damage Mage's token is a pentagon. Range:3, Move:4\\n\", \n\t \t\t\t \"Key\",\n\t \t\t\t JOptionPane.PLAIN_MESSAGE);\n\t \t}",
"public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // looking for the command object\n Command command = software.getCommand( event.getActionCommand() );\n if ( command == null )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"command.notfound\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n if ( command.isBlocker() )\n {\n command.setBlocker( false );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Set not blocker for software \" + name + \" command \" + command.getName() );\n }\n else\n {\n command.setBlocker( true );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Set blocker for software \" + name + \" command \" + command.getName() );\n }\n // change the update flag\n parent.getEnvironmentWindow().setUpdated( true );\n // update the journal pane\n parent.getEnvironmentWindow().updateJournalPane();\n // update the pane\n update();\n }",
"public void actionPerformed(ActionEvent e) {\n try {\r\n if (roomOrUser == 1) {\r\n // send message to a room\r\n sock.executeCommand(new RoomMessageCommand(new LongInteger(name), textArea_1.getText()\r\n .getBytes()));\r\n textArea_2.setText(textArea_2.getText() + textField.getText() + \": \" + textArea_1.getText()\r\n + \"\\n\");\r\n } else if (roomOrUser == 2) {\r\n // send message to a user\r\n sock.executeCommand(new UserMessageCommand(new LongInteger(name), textArea_1.getText()\r\n .getBytes(), true));\r\n textArea_2.setText(textArea_2.getText() + textField.getText() + \": \" + textArea_1.getText()\r\n + \"\\n\");\r\n }\r\n } catch (InvalidCommandException ex) {\r\n JOptionPane.showMessageDialog(null, \"Unable to join or leave room.\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n }",
"public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }",
"public void interact(Human user)\n {\n System.out.println(\"You will have to talk to the Starbucks(c) cashier to get a cup of COFFEE\"); \n }",
"java.lang.String getOwner();",
"java.lang.String getOwner();",
"public static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tString ime;\n\t\tString poruka1 = \" happy \";\n\t\tSystem.out.println(\"Unesite reci 'choose' ili 'be', a rec 'end' za prestanak petlje\");\n\t\tdo {\t\t\t\n\t\t\time = s.nextLine();\n\t\t\tswitch (ime.toLowerCase()) {\n\t\t\tcase \"choose\":\n\t\t\t\tSystem.out.println(ime + poruka1);\n\t\t\t\tbreak;\n\n\t\t\tcase \"be\":\n\t\t\t\tSystem.out.println(ime + \" kind \");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Niste uneli trazeno ime\");\n\t\t\t}\n\t\t} while (!ime.equals(\"end\"));\n\n\t}",
"private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }",
"abstract void mainPrompt();",
"public void actionPerformed (ActionEvent e) {\n \t\tJOptionPane.showMessageDialog(frame3,\n \t\t\t \"Player 1 is blue \\n\"\n \t\t\t \t\t+ \"Player 2 is red \\n\"\n \t\t\t \t\t+ \"Player 3 is green \\n\"\n \t\t\t \t\t+ \"Player 4 is yellow \\n\"\n \t\t\t \t\t+ \"A Warrior's token is a circle. Range:1, Move:3\\n\"\n \t\t\t \t\t+ \"A Ranger's token is a square. Range:4, Move:5\\n\"\n \t\t\t \t\t+ \"A Rogue's token is a triangle. Range:1, Move:6\\n\"\n \t\t\t \t\t+ \"A healer's token is a star. Range:3, Move:4\\n\"\n \t\t\t \t\t+ \"A Damage Mage's token is a pentagon. Range:3, Move:4\\n\", \n \t\t\t \"Key\",\n \t\t\t JOptionPane.PLAIN_MESSAGE);\n \t}",
"public void askForSpeaker(){\n System.out.println(\"Enter the speaker username\");\n }",
"private String getExitString()\n {\n String returnString = \"Exits:\";\n Set<String> keys = exits.keySet();\n for(String exit : keys) {\n returnString += \" \" + exit;\n }\n return returnString;\n }",
"private String getExitString()\n {\n String returnString = \"Exits:\";\n Set<String> keys = exits.keySet();\n for(String exit : keys) {\n returnString += \" \" + exit;\n }\n return returnString;\n }",
"public boolean specialCommand(String userinput){\n return (userinput.equals(\"get\")) || (userinput.equals(\"dir\"));\n }",
"boolean processChatCmd( String s )\n\t{\n\t\t\n\t\tman.getOpponent(this).out.println(s);\n\t\tman.getOpponent(this).out.flush();\n\t\tout.println(\"Message sent.\");\n\t\tout.flush();\n\t\treturn true;\n\t}",
"public abstract void displayMsgBeforeRun();",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tString actionCmd = e.getActionCommand();\n\t\t\tif(actionCmd.equals(\"Yes\")) { //재게임 하겠다\n\t\t\t\t\n\t\t\t\tif(GameType.equalsIgnoreCase(\"Theory\")) { //이론 게임 선택 \n\t\t\t\t\tTheoryJavaGame theoryjava = new TheoryJavaGame(user.getId());\n\t\t\t\t\ttheoryjava.setVisible(true);\n\t\t\t\t}else if(GameType.equalsIgnoreCase(\"Lab\")) { //실습 게임 선택 \n\t\t\t\t\tLabJavaGame labjava = new LabJavaGame(user.getId());\n\t\t\t\t\tlabjava.setVisible(true);\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(new TheoryJavaGame(user.getId()), \n\t\t\t\t\t\t\t\"Please enter it correctly.\", \n\t\t\t\t\t\t\t\"Submission Error\", \n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\tdispose();\n\n\t\t\t}else if(actionCmd.equals(\"No\")) { //재게임 하지 않겠다\n\t\t\t\tLogin log = new Login(); //로그인 페이지로 돌아가기\n\t\t\t\tlog.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}else\n\t\t\t\tSystem.out.println(\"Unexpected Error\"\n\t\t\t\t\t\t+ \" in Confirm Window\");\n\t\t}",
"public void MessageInvitCommand(String msg)\n {\n System.out.println(\"> \"+msg);\n }",
"public void setOwnerString(String s) {\n ownerString = s;\r\n }",
"public static void main(String[] args) {\n\n\t\tScanner ent = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Qual turno vocÍ estuda? M-Matutino, V-Vespertino ou N-Noturno: \");\n\t\tchar turno = ent.next().charAt(0);\n\t\t\n\t\t\n\t\tswitch(turno) {\n\t\tcase 'M':\n\t\t\tSystem.out.println(\"Bom Dia!\");\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'V':\n\t\t\tSystem.out.println(\"Boa Tarde!\");\n\t\t\tbreak;\n\t\tcase 'N':\n\t\t\tSystem.out.println(\"Boa Noite!\");\n\t\t\tbreak;\n\t\tdefault: \n\t\t\tSystem.out.println(\"Invalido\");\n\t\tbreak;\n\t\t}\n\t\t ent.close();\n\t\t\t\n\t}",
"private String getCmdPromptString()\n {\n String prompt = currentUser.getName() + '@' + HOST_NAME + ':';\n prompt += currentUser.getHomeDir().getName().equals(currentUser.getCurrentDirectory().getName())\n ? '~'\n : currentUser.getCurrentDirectory().getName();\n\n prompt += currentUser.isRootUser() ? \"# \" : \"$ \";\n return prompt;\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"you father's bad egg\");\r\n\t}",
"private void cs5() {\n\t\t\tif(ctx.widgets.widget(519).component(1).text().contains(\"You get some\")){\n\t\t\t\tctx.widgets.widget(519).component(2).click();\n\t\t\t}\n\t\t\tif(ctx.inventory.selectedItem().valid()){\n\t\t\t\tMethod.interactInventory(2511, \"Use\", \"Logs\");\n\t\t\t}else Method.interactInventory(590, \"Use\", \"Tinder box\");\n\t\t\t\n\t\t}",
"private void printExitMenu() {\n System.out.println(\"Goodbye! Thanks for using the app!\");\n }",
"public static void main (String []args){\n\t\t\n\t\tString hola =\"RV SIGUIENTE MENSAJE\";\n\t\tint num = hola.indexOf(\"RV\");\n\t\tif (hola.indexOf(\"RV\")!=-1){\n\t\t\tSystem.out.println(\"CONTIENE RV\");\n\n\t\t}else{\n\t\t\tSystem.out.println(\"NO CONTIENE RV\");\n\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"public static void victoryIsMine() {\n\t\tSystem.out.println(\"|| Victory is mine! ||\");\r\n\t}",
"public static void main(String[] args) {\n\t\r\nString Bob = \"You make great jokes!\";\r\nString Amie = \"Your art is beautiful!\";\r\nString Grace = \"You're clever!\";\r\n\r\n\t\t// 2. Ask the user to enter a name. Store their answer in a variable.\r\n\r\nString name = JOptionPane.showInputDialog(\"Enter a name.\");\r\n\r\n\t\t// 3. In a pop-up, tell the user what is remarkable about that person. \r\n\r\nif (name.equalsIgnoreCase(\"Bob\")) {\r\n\t\r\nJOptionPane.showMessageDialog(null, Bob); }\r\n\r\n\r\nelse if (name.equalsIgnoreCase(\"Amie\")) {\r\n\r\nJOptionPane.showMessageDialog(null, Amie);\r\n}\r\n\r\nelse if (name.equalsIgnoreCase(\"Grace\")) {\r\n\r\nJOptionPane.showMessageDialog(null, Grace); \r\n}\r\n}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(mainscreen, \"Created by Saadia Aman and Ammar Israr\");\n\t\t\t}",
"public static void main(String[] args) {\n Scanner myObj = new Scanner(System.in);\n Scanner aGame = new Scanner(System.in);\n String userName;\n String spiel;\n\n System.out.println(\"Wie heißt du?\");\n userName = myObj.nextLine();\n\n System.out.println(\"Guten Tag \" + userName + \". Möchtest du ein Spiel spielen (Y/N)\");\n spiel = aGame.nextLine();\n\n if (spiel.equals(\"Y\") || spiel.equals(\"y\")) {\n System.out.println(\"Super! Auf gehts!\");\n } else if (spiel.equals(\"N\") || spiel.equals(\"n\")) {\n System.out.println(\"Schade.\");\n } else {\n System.out.println(\"Bitte antworte mit Y oder N\");\n }\n\n\n }",
"public static void main(String[] args) {\n\t\tchar ch;\n\t\tScanner vow = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter the value of x:\");\n\t\tch = vow.nextLine().charAt(0);\n\t\tif(ch=='a'|| ch=='e' ||ch=='i' ||ch=='o' ||ch=='u')\n\t\t{\n\t\t\tSystem.out.println(\"ch is vowel\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"ch is consonant\");\n\t\t}\n\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t if (e.getActionCommand().startsWith(\"show\")) {\r\n\t System.out.println(e.getActionCommand());\r\n\t String mystring = e.getActionCommand().substring(9);\r\n\t System.out.println(mystring);\r\n\t \r\n\t }\r\n\r\n\t}",
"public SpawnReason getSpawnReason() {\n/* 51 */ return this.spawnReason;\n/* */ }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif(cmd.getDevices().indexOf(\"E\") > -1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, cmd.getDevices().substring(2), \"提示\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\tif(cmd.getDevices().indexOf(\"T\") > -1) {\n\t\t\t\t\tif (!deviceId.equals(cmd.getDevices().substring(2))) {\n\t\t\t\t\t\tdeviceId = cmd.getDevices().substring(2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tcmd.killProcess(deviceId, \"monkey\");\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tcmd.killProcess(deviceId, \"logcat\");\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\t\t\t}",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\t\n\t\t\tString senha, senhaP = \"a2d3r4r4\";\n\t\t\t\n\t\t\tdo{\n\t\t\t\tsenha = JOptionPane.showInputDialog(\"Informe sua Senha\");\n\t\t\t\tif(!senha.equals(senhaP)){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Senha Invalida!\");\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Bem vindo!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(!senha.equals(senhaP));\n\t\t}",
"public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }",
"public boolean isOwner(String role) throws IOException {\n\t\treturn (rolePoster.sendPost(\"isOwner=\" + role).startsWith(\"true\"));\n\t}",
"public void dispHardNull()\r\n {\r\n //Null block of code was original display method; keeping just in case\r\n /*switch (Win)\r\n {\r\n case 1: \r\n case 2: \r\n case 3: JOptionPane.showMessageDialog(null, \r\n \"It's a tie!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n case 4: \r\n case 5: \r\n case 6: JOptionPane.showMessageDialog(null, \r\n userName + \" won!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n case 7: \r\n case 8: \r\n case 9: JOptionPane.showMessageDialog(null, \r\n \"Computer won!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n }*/\r\n }"
] | [
"0.56524163",
"0.5379748",
"0.5324535",
"0.5278855",
"0.5267495",
"0.5249681",
"0.5239721",
"0.5201805",
"0.51867455",
"0.5182249",
"0.517403",
"0.51545674",
"0.51493514",
"0.5121322",
"0.511793",
"0.51152825",
"0.51151675",
"0.5112358",
"0.5094699",
"0.50849813",
"0.507775",
"0.5070842",
"0.5068991",
"0.5065856",
"0.5056447",
"0.5054516",
"0.5052769",
"0.5036575",
"0.5036429",
"0.5035812",
"0.50280505",
"0.50175947",
"0.5013469",
"0.500968",
"0.5005998",
"0.49877858",
"0.4986948",
"0.49865866",
"0.49773222",
"0.49761054",
"0.49685535",
"0.49667907",
"0.49514228",
"0.49430564",
"0.49386328",
"0.4936853",
"0.49356532",
"0.4934239",
"0.49326858",
"0.49294868",
"0.4926043",
"0.49253747",
"0.490689",
"0.49050626",
"0.4904004",
"0.4895269",
"0.4895269",
"0.4895269",
"0.4895269",
"0.48936325",
"0.4892764",
"0.48862538",
"0.48847216",
"0.48846352",
"0.48820803",
"0.48800704",
"0.48800704",
"0.4876711",
"0.48724908",
"0.48723418",
"0.48706442",
"0.4868596",
"0.4861375",
"0.4861375",
"0.48591366",
"0.48485026",
"0.4848208",
"0.48479733",
"0.484341",
"0.48426938",
"0.4833942",
"0.483344",
"0.48296255",
"0.48264164",
"0.48246562",
"0.481703",
"0.48162562",
"0.48149252",
"0.48096088",
"0.48087332",
"0.4804917",
"0.47940946",
"0.47936177",
"0.4790459",
"0.47832966",
"0.47832966",
"0.47776532",
"0.4775113",
"0.47727707",
"0.47724366"
] | 0.6303296 | 0 |
The tokenToInt() static method is a utility to evaluate a token as an integer. | public static int tokenToInt(Token i) {
if (i == null) return -1;
return StringUtil.evaluateIntegerLiteral(i.image);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }",
"public int getInt() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Integer.parseInt(s);\n }",
"public int nextInt()\r\n\t{\r\n\t\tif(st == null || !st.hasMoreTokens())\r\n\t\t\tnewst();\r\n\t\treturn Integer.parseInt(st.nextToken());\r\n\t}",
"private int tokenVal()\n\t{\n\t\t//check that token is keyword or special\n\t\tif( core.containsKey(token))\t\t\t\n\t\t{ \n\t\t\t//return the value\n\t\t\treturn core.get(token); \n\t\t}\n\t\telse\n\t\t{\n\t\t\t try{ //see if token is integer\n\t\t\t\t Integer.parseInt(token);\n\t\t\t return INTEGER;\n\t\t\t }\n\t\t\t catch(NumberFormatException e){\n\t\t\t \t //token must be an identifier\n\t\t\t \t return IDENTIFIER;\t \n\t\t\t }\n\t\t}\t\n\t}",
"public static LiteralIntNode parse(Parser parser) {\r\n\t\tLocation location = parser.expect(token -> token instanceof LiteralIntToken, \"Int literal expected.\");\r\n\t\tLiteralIntToken current = (LiteralIntToken)parser.current();\r\n\t\treturn new LiteralIntNode(location, current.getValue(), current.getBase());\r\n\t}",
"public int intVal() {\r\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\r\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\r\n\t\t}",
"public int readInt() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return (int) fTokenizer.nval;\n\n String msg = \"Integer expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }",
"public int readInt(){\n\t\ttry{\n\t\t\treturn scanner.nextInt();\n\t\t}catch (InputMismatchException e){\n\t\t\tString token=scanner.next();\n\t\t\tthrow new InputMismatchException(\"the next token is\\\"\"+token+\"\\\"\");\n\t\t}\n\t\tcatch (NoSuchElementException e){\n\t\t\tthrow new NoSuchElementException(\"no more tokens are available\");\n\t\t}\n\t}",
"public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}",
"public static int readInt() {\n try {\n return scanner.nextInt();\n }\n catch (InputMismatchException e) {\n String token = scanner.next();\n throw new InputMismatchException(\"attempts to read an 'int' value from standard input, \"\n + \"but the next token is \\\"\" + token + \"\\\"\");\n }\n catch (NoSuchElementException e) {\n throw new NoSuchElementException(\"attemps to read an 'int' value from standard input, \"\n + \"but no more tokens are available\");\n }\n }",
"public Integer toInt(String lex) {\r\n\t\tInteger i=-1;\r\n\t\ttry{\r\n\t\t\ti=Integer.parseInt(lex);\r\n\t\t}catch(NumberFormatException e){\r\n\t\t\tSystem.err.println(\"error, numero demasiado largo\");\r\n\t\t}\r\n\t\treturn i;\r\n\t}",
"private String getIntToken(char[] characters) {\n\t\tString currentToken = \"\";\n\t\t//look at each character\n\t\tfor (char ch: characters)\n\t\t{\n\t\t\t//check if whitespace\n\t\t\tboolean ws = Character.isWhitespace(ch);\n\t\t\t//check type\n\t\t\tString type = getType(ch);\n\t\t\t\n\t\t\t//not whitespace and new ch is an integer.\n\t\t\tif (!ws && Objects.equals(type, \"int\"))\n\t\t\t{\n\t\t\t\tcurrentToken = currentToken.concat(String.valueOf(ch));\n\t\t\t}\n\t\t\t//not whitespace and special ch\n\t\t\telse if (!ws && Objects.equals(type, \"special\"))\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse if ( ws )\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse //ch type cannot follow integer \n\t\t\t{\n\t\t\t\tSystem.out.println(\"invalid type follows int\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\t//ran out of tokens to process\n\t\treturn currentToken;\n\t}",
"public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }",
"public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }",
"public static int getInt(String key, int i) {\n\t\tString token = getSystemString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Integer.parseInt(token);\n\t}",
"public Snippet visit(CoercionToIntExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t _ret = n.expression.accept(this, argu);\n\t \n\t\t\t_ret.returnTemp = \"(\" + \"int\" + \")\" + _ret.returnTemp;\n\t\t\t_ret.expType = new X10Integer();\n\t return _ret;\n\t }",
"private int extractInt() {\n\t\tint startIndex = index;\n\t\tfor (; index < exprLen; index++) {\n\t\t\tchar c = expr.charAt(index);\n\t\t\tif (!Character.isDigit(c)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tint endIndex = index;\n\t\tint value;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(expr.substring(startIndex, endIndex));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(e.getMessage());\n\t\t}\n\n\t\treturn value;\n\t}",
"public int parseInt()\r\n {\r\n String str = feed.findWithinHorizon( INTEGER_PATTERN, 0 );\r\n \r\n if( str == null )\r\n throw new NumberFormatException( \"[Line \" + lineNum + \"] Input did not match an integer\" );\r\n else if( str.length() == 0 )\r\n throw new NumberFormatException( \"Input did not match an integer\" );\r\n \r\n return Integer.parseInt( str );\r\n }",
"public static int toIntValue(Character ch) {\n/* 263 */ if (ch == null) {\n/* 264 */ throw new IllegalArgumentException(\"The character must not be null\");\n/* */ }\n/* 266 */ return toIntValue(ch.charValue());\n/* */ }",
"String getInt_lit();",
"private int[] getLHSIntFromString(String token) {\n\n if (token == null) {\n return null;\n }\n\n if (token.length() < 1) {\n return null;\n }\n\n Vector<String> lhsInt = new Vector<>();\n\n try (Scanner colonScanner = new Scanner(token)) {\n colonScanner.useDelimiter(\";\");\n\n while (colonScanner.hasNext()) {\n String next = colonScanner.next();\n if (next.equals(\"0\")) {\n return null;\n }\n\n lhsInt.add(next);\n }\n }\n\n //Convert to array of int\n int[] lhsIntArr = new int[lhsInt.size()];\n for(int i = 0; i < lhsIntArr.length; ++i) {\n lhsIntArr[i] = Integer.parseInt(lhsInt.get(i));\n }\n\n //If these rules are being reloaded, the LHS int values need to be adjusted\n if (this.ruleIdOffset > 0) {\n for(int i = 0; i < lhsIntArr.length; ++i) {\n lhsIntArr[i] += this.ruleIdOffset;\n }\n }\n\n return lhsIntArr;\n }",
"IntegerLiteralExp createIntegerLiteralExp();",
"protected static int calculateTwoTokens(String[] tokens) throws NumberFormatException, CalculatorException\n {\n int a = Integer.parseInt(tokens[1]); // Throws NumberFormatException if the second token is not an int value.\n \n \tif (tokens[0] == \"negate\") {\n \t\ta=-a;\n \t\treturn a;\n \t}\n \tif (tokens[0] == \"halve\") {\n \t\ta = Math.round(a/2);\n \t\treturn a;\n \t}\n \n \telse {\n \n throw new CalculatorException (\"Illegal Command\");\n }\n \n }",
"int intOf();",
"public final int intValue() {\n /*\n r2 = this;\n java.lang.String r0 = r2.f4032 // Catch:{ NumberFormatException -> 0x0007 }\n int r0 = java.lang.Integer.parseInt(r0) // Catch:{ NumberFormatException -> 0x0007 }\n return r0\n L_0x0007:\n java.lang.String r0 = r2.f4032 // Catch:{ NumberFormatException -> 0x000f }\n long r0 = java.lang.Long.parseLong(r0) // Catch:{ NumberFormatException -> 0x000f }\n int r1 = (int) r0\n return r1\n L_0x000f:\n java.math.BigDecimal r0 = new java.math.BigDecimal\n java.lang.String r1 = r2.f4032\n r0.<init>(r1)\n int r0 = r0.intValue()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: o.C0442.intValue():int\");\n }",
"public LlvmValue visit(IntegerLiteral n) {\n return new LlvmIntegerLiteral(n.value);\n }",
"private int getInt(String next) {\n\t\ttry {\n\t\t\tint a = Integer.parseInt(next);\n\t\t\tif (a > 10) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn a;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn 0;\n\t\t}\n\t}",
"protected String getINT_TYPEToken(EObject semanticObject, RuleCall ruleCall, INode node) {\n\t\tif (node != null)\n\t\t\treturn getTokenText(node);\n\t\treturn \"i\";\n\t}",
"private Token number() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t}\n\t\t//处理小数\n\t\tif(this.currentChar == '.') {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t\t\n\t\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\t\tsb.append(this.currentChar);\n\t\t\t\tnext_char();\n\t\t\t}\n\t\t\treturn new Token(Type.REAL_CONST, sb.toString());\n\t\t}else {\n\t\t\treturn new Token(Type.INTEGER_CONST, sb.toString());\n\t\t}\n\t}",
"<C> IntegerLiteralExp<C> createIntegerLiteralExp();",
"public int getInteger(String prompt) {\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tString item = getToken(prompt);\r\n\t\t\t\tInteger number = Integer.valueOf(item);\r\n\t\t\t\treturn number.intValue();\r\n\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\tSystem.out.println(\"Please input a number.\");\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}",
"public final EObject ruleIntLiteral() throws RecognitionException {\n EObject current = null;\n int ruleIntLiteral_StartIndex = input.index();\n Token lv_intValue_0_0=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 110) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4675:28: ( ( (lv_intValue_0_0= RULE_INT ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4676:1: ( (lv_intValue_0_0= RULE_INT ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4676:1: ( (lv_intValue_0_0= RULE_INT ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4677:1: (lv_intValue_0_0= RULE_INT )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4677:1: (lv_intValue_0_0= RULE_INT )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4678:3: lv_intValue_0_0= RULE_INT\n {\n lv_intValue_0_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleIntLiteral9517); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_intValue_0_0, grammarAccess.getIntLiteralAccess().getIntValueINTTerminalRuleCall_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getIntLiteralRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"intValue\",\n \t\tlv_intValue_0_0, \n \t\t\"INT\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 110, ruleIntLiteral_StartIndex); }\n }\n return current;\n }",
"String getInt();",
"public final void mINT() throws RecognitionException {\r\n try {\r\n final int _type = SparqlMarcoLexer.INT;\r\n final int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:54:7: ( '0' .. '9' )+\r\n int cnt4 = 0;\r\n loop4: do {\r\n int alt4 = 2;\r\n final int LA4_0 = this.input.LA(1);\r\n\r\n if (LA4_0 >= '0' && LA4_0 <= '9') {\r\n alt4 = 1;\r\n }\r\n\r\n switch (alt4) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:54:7: '0' ..\r\n // '9'\r\n {\r\n this.matchRange('0', '9');\r\n\r\n }\r\n break;\r\n\r\n default:\r\n if (cnt4 >= 1) {\r\n break loop4;\r\n }\r\n final EarlyExitException eee = new EarlyExitException(4, this.input);\r\n throw eee;\r\n }\r\n cnt4++;\r\n } while (true);\r\n this.state.type = _type;\r\n this.state.channel = _channel;\r\n } finally {\r\n }\r\n }",
"public final Integer _parseInteger(JsonParser jVar, DeserializationContext gVar) throws IOException {\n int m = jVar.mo29329m();\n if (m == 3) {\n return (Integer) _deserializeFromArray(jVar, gVar);\n }\n if (m == 11) {\n return (Integer) _coerceNullToken(gVar, this._primitive);\n }\n switch (m) {\n case 6:\n String trim = jVar.mo29334t().trim();\n int length = trim.length();\n if (length == 0) {\n return (Integer) _coerceEmptyString(gVar, this._primitive);\n }\n if (_hasTextualNull(trim)) {\n return (Integer) _coerceTextualNull(gVar, this._primitive);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n if (length <= 9) {\n return Integer.valueOf(NumberInput.m23779a(trim));\n }\n try {\n long parseLong = Long.parseLong(trim);\n if (!_intOverflow(parseLong)) {\n return Integer.valueOf((int) parseLong);\n }\n return (Integer) gVar.mo31517b(this._valueClass, trim, String.format(\"Overflow: numeric value (%s) out of range of Integer (%d - %d)\", trim, Integer.MIN_VALUE, Integer.MAX_VALUE), new Object[0]);\n } catch (IllegalArgumentException unused) {\n return (Integer) gVar.mo31517b(this._valueClass, trim, \"not a valid Integer value\", new Object[0]);\n }\n case 7:\n return Integer.valueOf(jVar.mo29247C());\n case 8:\n if (!gVar.mo31509a(DeserializationFeature.ACCEPT_FLOAT_AS_INT)) {\n _failDoubleToIntCoercion(jVar, gVar, \"Integer\");\n }\n return Integer.valueOf(jVar.mo29296K());\n default:\n return (Integer) gVar.mo31493a(this._valueClass, jVar);\n }\n }",
"@Override\r\n\tpublic Object visitIntLitExpression(IntLitExpression intLitExpression,\r\n\t\t\tObject arg) throws Exception {\r\n\t\tintLitExpression.setType(intType);\r\n\t\treturn intType;\r\n\t}",
"public final void mINT() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.INT;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:765:5: ( 'int' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:765:7: 'int'\n\t\t\t{\n\t\t\t\tthis.match(\"int\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}",
"public final int getInt(final String tagToGet) {\n try {\n return Integer.parseInt(getStr(tagToGet));\n } catch (final Exception t) {\n return 0;\n }\n }",
"public int toInt(String entity) { return ent_2_i.get(entity); }",
"public Object visitIntegerConstant(GNode n) {\n xtc.type.Type result;\n \n result = cops.typeInteger(n.getString(0));\n \n return result.getConstant().bigIntValue().longValue();\n }",
"default int asInt() {\n\t\tthrow new EvaluatorException(\"Expecting an integer value\");\n\t}",
"public final void mINT() throws RecognitionException {\n try {\n int _type = INT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // metamorph.runtime/src/antlr/Ast.g:29:5: ( ( '0' .. '9' )+ )\n // metamorph.runtime/src/antlr/Ast.g:29:7: ( '0' .. '9' )+\n {\n // metamorph.runtime/src/antlr/Ast.g:29:7: ( '0' .. '9' )+\n int cnt2=0;\n loop2:\n do {\n int alt2=2;\n int LA2_0 = input.LA(1);\n\n if ( ((LA2_0 >= '0' && LA2_0 <= '9')) ) {\n alt2=1;\n }\n\n\n switch (alt2) {\n \tcase 1 :\n \t // metamorph.runtime/src/antlr/Ast.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt2 >= 1 ) break loop2;\n EarlyExitException eee =\n new EarlyExitException(2, input);\n throw eee;\n }\n cnt2++;\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }",
"public int parseYear(String token) throws NumberFormatException {\n return Integer.parseInt(token);\n }",
"public final AntlrDatatypeRuleToken ruleINTVALUE() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token this_INTEGER_LIT_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:11629:2: (this_INTEGER_LIT_0= RULE_INTEGER_LIT )\n // InternalSafetyParser.g:11630:2: this_INTEGER_LIT_0= RULE_INTEGER_LIT\n {\n this_INTEGER_LIT_0=(Token)match(input,RULE_INTEGER_LIT,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tcurrent.merge(this_INTEGER_LIT_0);\n \t\n }\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(this_INTEGER_LIT_0, grammarAccess.getINTVALUEAccess().getINTEGER_LITTerminalRuleCall());\n \t\n }\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public GdbIntValue parseInteger() throws GdbParseError {\n\t\ttry {\n\t\t\tString match = match(INT_HEX, true, \"hex\");\n\t\t\treturn GdbIntValue.valueOf(new BigInteger(match, 16));\n\t\t}\n\t\tcatch (GdbParseError e) {\n\t\t\t// Just try next match\n\t\t}\n\t\ttry {\n\t\t\tString match = match(INT_OCT, true, \"oct\");\n\t\t\treturn GdbIntValue.valueOf(new BigInteger(match, 8));\n\t\t}\n\t\tcatch (GdbParseError e) {\n\t\t\t// Just try next match\n\t\t}\n\t\ttry {\n\t\t\tString match = match(INT_DEC, true, \"dec\");\n\t\t\treturn GdbIntValue.valueOf(new BigInteger(match, 10));\n\t\t}\n\t\tcatch (GdbParseError e) {\n\t\t\t// Fall through to error report\n\t\t}\n\n\t\tthrow new GdbParseError(\"0x[hex], 0[oct], or [dec]\", buf);\n\t}",
"private Token scanRealOrIntegerLiteral() {\n Token tok;\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n while (Character.isDigit(c) && c != '.' && c != -1) {\n buffer.add(c);\n c = in.read();\n }\n\n if (c == '.') {\n int nextChar = in.read();\n if (nextChar == '.') { // which means '..' operator was encountered\n tok = new Token(buffer.toString(),\n TokenType.INTEGER, pos);\n enqueuedToken = new Token(\"..\", TokenType.RANGE, pos);\n buffer.flush();\n c = in.read(); // reading in the next unprocessed character\n } else if (Character.isDigit(nextChar)) { // which means a real literal was encountered\n buffer.add(c);\n while (Character.isDigit(nextChar)) {\n buffer.add(nextChar);\n nextChar = in.read();\n }\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n } else { // which means a real literal without digits after dot (like 1. <=> 1.0)\n\n buffer.add(c);\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n }\n } else {\n tok = new Token(buffer.toString(), TokenType.INTEGER_LITERAL, pos);\n buffer.flush();\n }\n return tok;\n }",
"public int evaluateAsInt();",
"private int scanInt() {\n String word = scan();\n if (word.length() == 0) {\n return Integer.MAX_VALUE;\n }\n\n try {\n return Integer.parseInt(word);\n } catch (NumberFormatException e) {\n return Integer.MAX_VALUE;\n }\n }",
"public static int getTaggedInt(String tag, Element el)\n\t{\n\t\tString s = getTaggedString(tag, el);\n\t\t//if(s==\"\") {flag=1; errtag += tag; return 0;}\n\t\t//try {\n\t\treturn Integer.parseInt(s.trim());\n\t\t/*} catch (NumberFormatException e) {\n\t\t\tflag = 1;\n\t\t\terrtag += tag;\n\t\t\t\n\t\t\treturn 0;\n\t\t}*/\n\t}",
"public static int getInt() throws IOException {\n\t\nString s = getString();\nreturn Integer.parseInt(s);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the integer in the string as an Int.\n\t\n}",
"@Override\r\n\tpublic Object visitIntegerLiteralExpression(\r\n\t\t\tIntegerLiteralExpression integerLiteralExpression, Object arg)\r\n\t\t\tthrows Exception {\n\t\tmv.visitLdcInsn(integerLiteralExpression.integerLiteral.getIntVal());\r\n\t\tif(arg != null)\r\n\t\t{\r\n//\t\t mv.visitMethodInsn(INVOKESTATIC, \"java/lang/Integer\", \"valueOf\", \"(I)Ljava/lang/Integer;\");\r\n\t\t}\r\n\t\treturn \"I\";\r\n\t}",
"public static int getInt() throws IOException {\n String s = getString();\n return Integer.parseInt(s);\n }",
"public static int getInt() {\n while (!consoleScanner.hasNextInt()) {\n consoleScanner.next();\n }\n return consoleScanner.nextInt();\n }",
"public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }",
"private void valueOfInt(Instruction o, Type value){\n\t\tif (! value.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'value' is not of type int but of type \"+value+\".\");\n\t}",
"int getInt();",
"int getInt();",
"private Token scanNumber(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(firstChar.getCharacter());\n\t\tappendSubsequentDigits(buffer);\n\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\tLocatedChar c = input.next();\n\t\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\t\tinput.pushback(c);\n\t\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\tbuffer.append(c.getCharacter());\n\t\t\tif(input.peek().isDigit()) {\n\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\tif(input.peek().getCharacter() == CAPITAL_E) {\n\t\t\t\t\tLocatedChar expChar = input.next();\n\t\t\t\t\tbuffer.append(expChar.getCharacter());\n\t\t\t\t\tif(input.peek().getCharacter() == '+' || input.peek().getCharacter() == '-') {\n\t\t\t\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\t\t\t}\n\t\t\t\t\tif(input.peek().isDigit()) {\n\t\t\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlexicalError(expChar, \"malformed floating exponent literal\");\n\t\t\t\t\t\treturn findNextToken();\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\treturn FloatToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"malformed floating literal\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t}\n\t}",
"public int parseInt() {\n\t\tboolean validInt = false;\n\t\tint num = -1;\n\t\twhile(!validInt) {\n\t\t\ttry {\n\t\t\t\tnum = scanner.nextInt();\n\t\t\t\tvalidInt = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(ConsoleColors.RED +\"Invalid input. Please enter a number\" + ConsoleColors.RESET);\n\t\t\t\tscanner.next();\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}",
"public int getInt()\n\t{\n\t\tfinal String text = getText();\n\t\tif (text == null || text.length() == 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn Integer.parseInt(text);\n\t}",
"int intValue();",
"private int toInt(String binary){\n if (bitToInt(binary.charAt(0)) == 0){\n return positiveBinToInt(binary);\n }\n else{\n return negativeBinaryToInt(binary);\n }\n }",
"public static int parseT1(String in){\n Scanner s = new Scanner(in);\n return s.nextInt();\n }",
"public static int getInt() throws IOException {\r\n String s = getString();\r\n return Integer.parseInt(s);\r\n }",
"public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}",
"private Token basicNextNumberToken() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c >= '1' && c <= '9') {\n\t\t\t\tsb.append(c);\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\t\n\t\t\t} else break;\t\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.NUMBER, Long.parseLong(sb.toString()));\n\t }",
"public static int parseT2(String in){\n Scanner s = new Scanner(in);\n int out = -1;\n if(s.hasNext()){\n out = s.nextInt();\n }\n return out;\n }",
"public int getToken() {\n\t\t//previous token remembered?\n\t\tif (token != null)\n\t\t{\t\n\t\t\treturn tokenVal(); \n\t\t}\n\t\telse //need a new token.\n\t\t{\n\t\t\t//get position of next token\n\t\t\tint tokenStart = findTokenStart();\n\t\t\t//remove leading whitespace\n\t\t\tline = line.substring(tokenStart);\n\t\t\t//create char[] representation of line\n\t\t\tchar[] characters = line.toCharArray();\n\t\t\t//get type of token\n\t\t\ttType = getType(characters[0]);\n\t\t\tif (Objects.equals(tType, \"lowercase\"))\n\t\t\t{\n\t\t\t\ttoken = getLowerToken(characters);\n\t\t\t}\n\t\t\telse if (Objects.equals(tType, \"uppercase\"))\n\t\t\t{\n\t\t\t\ttoken = getIdentifierToken(characters);\n\t\t\t}\n\t\t\telse if (Objects.equals(tType, \"int\"))\n\t\t\t{\n\t\t\t\ttoken = getIntToken(characters);\n\t\t\t}\n\t\t\telse if (Objects.equals(tType, \"special\"))\n\t\t\t{\n\t\t\t\ttoken = getSpecialToken(characters);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error this should not be seen\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t//token was found ok.\n\t\t\treturn tokenVal();\n\t\t}\n\t}",
"public static int readInt() {\n return Integer.parseInt(readString());\n }",
"int getIntArgument() throws Exception {\n return Integer.parseInt(this.readLine().split(\"\\\\s+\", 2)[1]);\n }",
"public static int toIntValue(Character ch, int defaultValue) {\n/* 286 */ if (ch == null) {\n/* 287 */ return defaultValue;\n/* */ }\n/* 289 */ return toIntValue(ch.charValue(), defaultValue);\n/* */ }",
"public static int getInt() throws Exception {\n return getInt(null);\n }",
"public static int readInt(){\n\t\tSystem.out.println();\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}",
"public final void mInt() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = Int;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:165:6: ( ( '0' .. '9' )+ )\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:165:9: ( '0' .. '9' )+\r\n\t\t\t{\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:165:9: ( '0' .. '9' )+\r\n\t\t\tint cnt7=0;\r\n\t\t\tloop7:\r\n\t\t\twhile (true) {\r\n\t\t\t\tint alt7=2;\r\n\t\t\t\tint LA7_0 = input.LA(1);\r\n\t\t\t\tif ( ((LA7_0 >= '0' && LA7_0 <= '9')) ) {\r\n\t\t\t\t\talt7=1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tswitch (alt7) {\r\n\t\t\t\tcase 1 :\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\r\n\t\t\t\t\t\tinput.consume();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\r\n\t\t\t\t\t\trecover(mse);\r\n\t\t\t\t\t\tthrow mse;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault :\r\n\t\t\t\t\tif ( cnt7 >= 1 ) break loop7;\r\n\t\t\t\t\tEarlyExitException eee = new EarlyExitException(7, input);\r\n\t\t\t\t\tthrow eee;\r\n\t\t\t\t}\r\n\t\t\t\tcnt7++;\r\n\t\t\t}\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}",
"public static boolean isINT(final String token) {\n\t\t// Check for empty or 1-size strings.\n\t\tif (token.length() < 2)\n\t\t\treturn false;\n\n\t\t// verify all chars are 0-9.\n\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\tif (!digits.contains(Character.toString(token.charAt(i)))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Passes all tests!\n\t\treturn true;\n\t}",
"int getIntValue();",
"public static int leerInt() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public static int parseInt(char[] chars, int offset, int len) throws NumberFormatException {\n\t\treturn parseInt(chars, offset, len, 10);\n\t}",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default int asInt() {\n \n return notSupportedCast(BasicTypeID.INT);\n }",
"public Token tokenAt(int i) {\n\treturn tokens[i];\n}",
"public int getToken_num() {\n return this.token_num;\n }",
"private void int_to_int_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get the operand value\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n Assert.check( op_code == IABS ) ;\r\n long value = x < 0 ? -x : x ;\r\n \r\n putIntResult(nd, vms, value ) ;\r\n }",
"public final void mINT() throws RecognitionException {\n try {\n int _type = INT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/dannluciano/Sources/MyLanguage/expr.g:173:5: ( ( DIGIT )+ )\n // /Users/dannluciano/Sources/MyLanguage/expr.g:173:7: ( DIGIT )+\n {\n // /Users/dannluciano/Sources/MyLanguage/expr.g:173:7: ( DIGIT )+\n int cnt3=0;\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( ((LA3_0>='0' && LA3_0<='9')) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // /Users/dannluciano/Sources/MyLanguage/expr.g:173:7: DIGIT\n \t {\n \t mDIGIT(); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt3 >= 1 ) break loop3;\n EarlyExitException eee =\n new EarlyExitException(3, input);\n throw eee;\n }\n cnt3++;\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"int compareToInt(integers i);",
"public static int parseInt(final CharSequence s)\n {\n // no string\n if (s == null)\n {\n throw new NumberFormatException(\"null\");\n }\n\n // determine length\n final int length = s.length();\n\n if (length == 0)\n {\n throw new NumberFormatException(\"length = 0\");\n }\n\n // that is safe, we already know that we are > 0\n final int digit = s.charAt(0);\n\n // turn the compare around to allow the compiler and cpu\n // to run the next code most of the time\n if (digit < '0' || digit > '9')\n {\n return Integer.parseInt(s.toString());\n }\n\n int value = digit - DIGITOFFSET;\n\n for (int i = 1; i < length; i++)\n {\n final int d = s.charAt(i);\n if (d < '0' || d > '9')\n {\n throw new NumberFormatException(\"Not an int \" + s.toString());\n }\n\n value = ((value << 3) + (value << 1));\n value += (d - DIGITOFFSET);\n }\n\n return value;\n }",
"public int getIntValue2(String b) {\n int c = Integer.parseInt(b);\n return c;\n }",
"public final void mINTEGER() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.INTEGER;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:771:9: ( ( '-' )? (\n\t\t\t// '0' .. '9' )+ )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:771:11: ( '-' )? (\n\t\t\t// '0' .. '9' )+\n\t\t\t{\n\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:771:11: ( '-' )?\n\t\t\t\tint alt1 = 2;\n\t\t\t\tfinal int LA1_0 = this.input.LA(1);\n\n\t\t\t\tif ((LA1_0 == '-'))\n\t\t\t\t{\n\t\t\t\t\talt1 = 1;\n\t\t\t\t}\n\t\t\t\tswitch (alt1)\n\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:771:12: '-'\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.match('-');\n\n\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:771:18: ( '0' ..\n\t\t\t\t// '9' )+\n\t\t\t\tint cnt2 = 0;\n\t\t\t\tloop2:\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tint alt2 = 2;\n\t\t\t\t\tfinal int LA2_0 = this.input.LA(1);\n\n\t\t\t\t\tif (((LA2_0 >= '0' && LA2_0 <= '9')))\n\t\t\t\t\t{\n\t\t\t\t\t\talt2 = 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch (alt2)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:771:19:\n\t\t\t\t\t\t// '0' .. '9'\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.matchRange('0', '9');\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tif (cnt2 >= 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbreak loop2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfinal EarlyExitException eee = new EarlyExitException(2, this.input);\n\t\t\t\t\t\t\tthrow eee;\n\t\t\t\t\t}\n\t\t\t\t\tcnt2++;\n\t\t\t\t}\n\t\t\t\twhile (true);\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}",
"public static int parseInt(String S1){\n return Integer.parseInt(S1);\n }",
"public static int toIntValue(char ch) {\n/* 218 */ if (!isAsciiNumeric(ch)) {\n/* 219 */ throw new IllegalArgumentException(\"The character \" + ch + \" is not in the range '0' - '9'\");\n/* */ }\n/* 221 */ return ch - 48;\n/* */ }",
"Rule IntConstant() {\n // Push 1 IntConstNode onto the value stack\n return Sequence(\n Sequence(\n Optional(NumericSign()),\n OneOrMore(Digit())),\n actions.pushIntConstNode());\n }",
"public int getMatchingScalar(String token) {\r\n if (getCurrentItem() == null) {\r\n return 0;\r\n }\r\n if (getCurrentItem().getText().equalsIgnoreCase(token)) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }",
"@FieldDeclaration(name = \"intValue\")\n public static int toNumber(String fact) {\n return Integer.parseInt(fact);\n }",
"public int getInt();",
"public int nextInt() {\n int result = 0;\n this.inputStr = this.s.nextLine();\n String help = \"\";\n boolean positivSign = true;\n\n for (int i = 0; i < this.inputStr.length(); i++) {\n // only by digits the help string get the char\n // --> 12w3 == 123\n if (inputStr.charAt(i) >= '0' && inputStr.charAt(i) <= '9') {\n help += inputStr.charAt(i);\n }// the sign will also read but only when it is befor the number\n // --> -12w3 == -123 | 12-3 == 123\n // positivSign is a flag for the sign\n else if (inputStr.charAt(i) == '-' && help.isEmpty()) {\n positivSign = false;\n }\n }\n\n // convert the String into an int\n // 123 == 1*10^2 + 2*10^1 + 3*10^0\n for (int i = 0, j = help.length() - 1; i < help.length(); i++, j--) {\n if (help.charAt(i) >= '0' && help.charAt(i) <= '9') {\n result += Math.pow(10, j) * (help.charAt(i) - '0');\n }\n }\n if (positivSign) {\n return result;\n }\n return result * -1;\n }",
"public static int romanToInt(String roman) throws NumberFormatException {\r\n int value = 0;\r\n if (roman != null) {\r\n for (int p = 0; p < roman.length(); p++) {\r\n char c = roman.charAt(p);\r\n if (c == 'X') {\r\n value += 10;\r\n } else if (c == 'V') {\r\n value += 5;\r\n } else if (c == 'I') {\r\n if (p + 1 < roman.length()) {\r\n char p1 = roman.charAt(p + 1);\r\n if (p1 == 'V') {\r\n value += 4;\r\n p++;\r\n } else if (p1 == 'X') {\r\n value += 9;\r\n p++;\r\n } else {\r\n value += 1;\r\n }\r\n } else {\r\n value += 1;\r\n }\r\n } else\r\n throw new NumberFormatException(\"Not a roman character: \" + p);\r\n }\r\n }\r\n return value;\r\n }",
"public static int getInt(String value)\r\n\t{\r\n\t\treturn getInt(value, 0);\r\n\t}",
"public static int parseInt(char[] chars, int offset, int len, int radix) throws NumberFormatException {\n\t\tif( chars == null || radix < Character.MIN_RADIX || radix > Character.MAX_RADIX ) { throw new NumberFormatException(); }\n\t\tint i = 0;\n\t\tif( len == 0 ) { throw new NumberFormatException(\"chars length is 0\"); }\n\t\tboolean negative = chars[offset + i] == '-';\n\t\tif( negative && ++i == len ) { throw new NumberFormatException(\"can't convert to an int\"); }\n\t\tif( negative == true ) {\n\t\t\toffset++;\n\t\t\tlen--;\n\t\t}\n\t\treturn parse(chars, offset, len, radix, negative);\n\t}",
"public final EObject ruleIntegerTerm() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n AntlrDatatypeRuleToken lv_value_0_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:11222:2: ( ( ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )? ) )\n // InternalSafetyParser.g:11223:2: ( ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )? )\n {\n // InternalSafetyParser.g:11223:2: ( ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )? )\n // InternalSafetyParser.g:11224:3: ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )?\n {\n // InternalSafetyParser.g:11224:3: ( (lv_value_0_0= ruleSignedInt ) )\n // InternalSafetyParser.g:11225:4: (lv_value_0_0= ruleSignedInt )\n {\n // InternalSafetyParser.g:11225:4: (lv_value_0_0= ruleSignedInt )\n // InternalSafetyParser.g:11226:5: lv_value_0_0= ruleSignedInt\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getIntegerTermAccess().getValueSignedIntParserRuleCall_0_0());\n \t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_114);\n lv_value_0_0=ruleSignedInt();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getIntegerTermRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"value\",\n \t\t\t\t\t\tlv_value_0_0,\n \t\t\t\t\t\t\"org.osate.xtext.aadl2.properties.Properties.SignedInt\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalSafetyParser.g:11243:3: ( (otherlv_1= RULE_ID ) )?\n int alt142=2;\n int LA142_0 = input.LA(1);\n\n if ( (LA142_0==RULE_ID) ) {\n alt142=1;\n }\n switch (alt142) {\n case 1 :\n // InternalSafetyParser.g:11244:4: (otherlv_1= RULE_ID )\n {\n // InternalSafetyParser.g:11244:4: (otherlv_1= RULE_ID )\n // InternalSafetyParser.g:11245:5: otherlv_1= RULE_ID\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getIntegerTermRule());\n \t\t\t\t\t}\n \t\t\t\t\n }\n otherlv_1=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_1, grammarAccess.getIntegerTermAccess().getUnitUnitLiteralCrossReference_1_0());\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public int intValue();",
"static int readInt() throws Exception {\n\t\treturn Integer.parseInt(readString());\n\t}"
] | [
"0.7478138",
"0.6734172",
"0.66577303",
"0.64685136",
"0.63785934",
"0.62181807",
"0.6205301",
"0.6145339",
"0.5964807",
"0.5929646",
"0.5828703",
"0.5805729",
"0.5794694",
"0.5794694",
"0.57783544",
"0.5772702",
"0.5747153",
"0.5735756",
"0.56779236",
"0.56694466",
"0.56307507",
"0.56039363",
"0.5572257",
"0.55517995",
"0.55077314",
"0.54940706",
"0.54402137",
"0.5440202",
"0.54253495",
"0.54013896",
"0.53673",
"0.5359251",
"0.5337331",
"0.53362066",
"0.5306772",
"0.52894354",
"0.52835643",
"0.5278414",
"0.52711654",
"0.5264299",
"0.5252847",
"0.5250716",
"0.5244043",
"0.5231823",
"0.5227118",
"0.52216077",
"0.5215162",
"0.520897",
"0.51986206",
"0.51921725",
"0.5182324",
"0.5168993",
"0.51653844",
"0.5154678",
"0.51534593",
"0.515239",
"0.515239",
"0.5141724",
"0.51386106",
"0.51338273",
"0.51283497",
"0.51064295",
"0.51050866",
"0.5104176",
"0.5101713",
"0.51004964",
"0.50997657",
"0.5097468",
"0.50866127",
"0.5074361",
"0.50662076",
"0.5065672",
"0.50653726",
"0.50579",
"0.5055802",
"0.5050633",
"0.5045279",
"0.5039484",
"0.5039227",
"0.5035249",
"0.50349385",
"0.50338435",
"0.49933434",
"0.4985619",
"0.4981191",
"0.4978382",
"0.49546844",
"0.49502292",
"0.49464968",
"0.49456567",
"0.4945146",
"0.4938309",
"0.49315122",
"0.4926718",
"0.49264047",
"0.4917281",
"0.49150336",
"0.4913672",
"0.48933837",
"0.48894984"
] | 0.7628554 | 0 |
The tokenToBool() static method is a utility to evaluate a token as a boolean literal. | public static boolean tokenToBool(Token i) {
return Boolean.valueOf(i.image);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isBool(String token) {\n return ( BooleanValues.contains( \" \" + token + \" \" ) );\n }",
"BooleanLiteralExp createBooleanLiteralExp();",
"public Boolean toBool(){\n\t\tString s = txt().trim();\n\t\tBoolean i;\n\t\ttry{\n\t\t\ti = Boolean.parseBoolean(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn i;\t\n\t}",
"public static boolean readBoolean() {\n try {\n String token = readString();\n if (\"true\".equalsIgnoreCase(token)) return true;\n if (\"false\".equalsIgnoreCase(token)) return false;\n if (\"1\".equals(token)) return true;\n if (\"0\".equals(token)) return false;\n throw new InputMismatchException(\"attempts to read a 'boolean' value from standard input, \"\n + \"but the next token is \\\"\" + token + \"\\\"\");\n }\n catch (NoSuchElementException e) {\n throw new NoSuchElementException(\"attempts to read a 'boolean' value from standard input, \"\n + \"but no more tokens are available\");\n }\n }",
"public Boolean asBoolean();",
"<C> BooleanLiteralExp<C> createBooleanLiteralExp();",
"public Literal getLiteralBoolean(Boolean literalData);",
"boolean getBoolValue();",
"boolean getBoolValue();",
"private boolean processTrueOrFalse() throws HsqlException {\n\n String sToken = tokenizer.getSimpleToken();\n\n if (sToken.equals(Token.T_TRUE)) {\n return true;\n } else if (sToken.equals(Token.T_FALSE)) {\n return false;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, sToken);\n }\n }",
"private void IntToBool()throws TokenException{\n\t\tif (getTkn()==TipeToken.Bilangan)\n\t\t\tif (getTipeBilangan()==Tipe._int)\n\t\t\t\tif (getBilanganInt()==0){\n\t\t\t\t\tSetBilangan(false);\n\t\t\t\t\treturn;\n\t\t\t\t}else if (getBilanganInt()==1){\n\t\t\t\t\tSetBilangan(true);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\tthrow new TokenException(\"THIS TOKEN CANNOT BE CONVERTED TO BOOL\");\n\t\t}",
"public static boolean parse_boolean(String value) {\n\t return value.equalsIgnoreCase(\"true\") || value.equalsIgnoreCase(\"T\");\n }",
"public final boolean bool_literal() throws RecognitionException {\n boolean value = false;\n\n\n CommonTree BOOL_LITERAL199 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1212:3: ( BOOL_LITERAL )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1212:5: BOOL_LITERAL\n {\n BOOL_LITERAL199 = (CommonTree) match(input, BOOL_LITERAL, FOLLOW_BOOL_LITERAL_in_bool_literal3371);\n value = Boolean.parseBoolean((BOOL_LITERAL199 != null ? BOOL_LITERAL199.getText() : null));\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return value;\n }",
"abstract public boolean getAsBoolean();",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }",
"BooleanExpression createBooleanExpression();",
"BooleanExpression createBooleanExpression();",
"public final EObject ruleBoolLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token lv_value_1_0=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3752:28: ( ( () ( (lv_value_1_0= RULE_BOOL ) ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3753:1: ( () ( (lv_value_1_0= RULE_BOOL ) ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3753:1: ( () ( (lv_value_1_0= RULE_BOOL ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3753:2: () ( (lv_value_1_0= RULE_BOOL ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3753:2: ()\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3754:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getBoolLiteralAccess().getBoolLiteralAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3759:2: ( (lv_value_1_0= RULE_BOOL ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3760:1: (lv_value_1_0= RULE_BOOL )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3760:1: (lv_value_1_0= RULE_BOOL )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3761:3: lv_value_1_0= RULE_BOOL\r\n {\r\n lv_value_1_0=(Token)match(input,RULE_BOOL,FOLLOW_RULE_BOOL_in_ruleBoolLiteral8655); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tnewLeafNode(lv_value_1_0, grammarAccess.getBoolLiteralAccess().getValueBOOLTerminalRuleCall_1_0()); \r\n \t\t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElement(grammarAccess.getBoolLiteralRule());\r\n \t }\r\n \t\tsetWithLastConsumed(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_1_0, \r\n \t\t\"BOOL\");\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"@Override\n\tpublic String visitBoolExpr(BoolExprContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tif (childrenNo == 3 )\n\t\t{\n\t\t\tParseTree n=ctx.getChild(1);\t\t\t\n\t\t\tif (!(n instanceof TerminalNode)) return visit(n); //( boolExpr ) \n\t\t\telse if(n.equals(ctx.COMP())) {\n\t\t\t\tString firstOpType=visit(ctx.getChild(0)); //|arExpr COMP arExpr\n\t\t\t\tString secondOpType=visit(ctx.getChild(2)); \n\t\t\t\tif(!((firstOpType.equals(\"int\"))&&(secondOpType.equals(\"int\")))) throw new RuntimeException(\"you can only compare integer types\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}else if(n==ctx.EQ()){\t\t\t\t\t\t\t\t\t\t\t//|arExpr EQ arExpr\n\t\t\t\tString firstOpType=visit(ctx.getChild(0)); \n\t\t\t\tString secondOpType=visit(ctx.getChild(2)); \t\t\t\t\n\t\t\t\tif(!(((firstOpType.equals(\"int\"))&&(secondOpType.equals(\"int\")))||((firstOpType.equals(\"char\"))&&(secondOpType.equals(\"char\"))))) throw new RuntimeException(\"you can only use\"\n\t\t\t\t\t\t+ \"\\\"==\\\" operator on integer or character types\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}else if(n==ctx.AND()||n==ctx.OR()){ //|boolExpr (AND|OR)boolExpr\n\t\t\t\tString firstOpType=visit(ctx.getChild(0));\n\t\t\t\tString secondOpType=visit(ctx.getChild(2));\n\t\t\t\tif(!(firstOpType.equals(\"boolean\"))&&(secondOpType.equals(\"boolean\"))) throw new RuntimeException(\"you can only use boolean operators on boolean expressions\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}\n\t\t} else if (childrenNo == 2 ) { //|NOT boolExpr\n\t\t\tString exprType=visit(ctx.getChild(1));\n\t\t\tif (!exprType.equals(\"boolean\")) throw new RuntimeException(\"NOT operator works only with boolean expresssions\");\n\t\t\t\treturn \"boolean\";\n\t\t}else {\t\t\t\t\t\t\t\t//|(ID|property|BOOLEANLIT|arrIdExpr|methodCall)\n\t\t\tParseTree n=ctx.getChild(0);\n\t\t\tif (n instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (n==ctx.BOOLEANLIT()) return \"boolean\";\n\t\t\t\telse if(n==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)n);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\n\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null; //for debug\n\t}",
"public static final boolean getBoolean(String key) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (token.equalsIgnoreCase(\"true\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public final Boolean _parseBoolean(JsonParser jVar, DeserializationContext gVar) throws IOException {\n JsonToken l = jVar.mo29328l();\n if (l == JsonToken.VALUE_NULL) {\n return (Boolean) _coerceNullToken(gVar, this._primitive);\n }\n if (l == JsonToken.START_ARRAY) {\n return (Boolean) _deserializeFromArray(jVar, gVar);\n }\n if (l == JsonToken.VALUE_NUMBER_INT) {\n return Boolean.valueOf(_parseBooleanFromInt(jVar, gVar));\n }\n if (l == JsonToken.VALUE_STRING) {\n String trim = jVar.mo29334t().trim();\n if (Constants.SERVICE_SCOPE_FLAG_VALUE.equals(trim) || \"True\".equals(trim)) {\n _verifyStringForScalarCoercion(gVar, trim);\n return Boolean.TRUE;\n } else if (BUGLY.SDK_IS_DEV.equals(trim) || \"False\".equals(trim)) {\n _verifyStringForScalarCoercion(gVar, trim);\n return Boolean.FALSE;\n } else if (trim.length() == 0) {\n return (Boolean) _coerceEmptyString(gVar, this._primitive);\n } else {\n if (_hasTextualNull(trim)) {\n return (Boolean) _coerceTextualNull(gVar, this._primitive);\n }\n return (Boolean) gVar.mo31517b(this._valueClass, trim, \"only \\\"true\\\" or \\\"false\\\" recognized\", new Object[0]);\n }\n } else if (l == JsonToken.VALUE_TRUE) {\n return Boolean.TRUE;\n } else {\n if (l == JsonToken.VALUE_FALSE) {\n return Boolean.FALSE;\n }\n return (Boolean) gVar.mo31493a(this._valueClass, jVar);\n }\n }",
"@Override\n\t\tpublic Boolean convert(String s) {\n\t\t\tString value = s.toLowerCase();\n\t\t\tif (\"true\".equals(value) || \"1\".equals(value) /* || \"yes\".equals(value) || \"on\".equals(value) */) {\n\t\t\t\treturn Boolean.TRUE;\n\t\t\t}\n\t\t\telse if (\"false\".equals(value) || \"0\".equals(value) /* || \"no\".equals(value) || \"off\".equals(value) */) {\n\t\t\t\treturn Boolean.FALSE;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Can not parse to boolean type of value: \" + s);\n\t\t\t}\n\t\t}",
"public static Boolean toBoolean(final String s) throws StringValueConversionException\n\t{\n\t\treturn Boolean.valueOf(isTrue(s));\n\t}",
"public Boolean booleanValue() {\n\t\tif (this.getLiteralValue() instanceof Boolean) {\n\t\t\treturn (Boolean) this.getLiteralValue();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"boolean booleanOf();",
"public static boolean boolean_from_string(String value)\n throws XFormsException {\n if (\"true\".equalsIgnoreCase(value) || \"1\".equals(value)) {\n return true;\n }\n\n if (\"false\".equalsIgnoreCase(value) || \"0\".equals(value)) {\n return false;\n }\n\n throw new XFormsException(\"invalid value expression when evaluating boolean_from_string('\" + value +\n \"')\");\n }",
"public boolean nextBoolean() {\n this.inputStr = this.s.nextLine();\n\n if (inputStr.toLowerCase().contains(\"true\")) {\n return true;\n } else if (inputStr.toLowerCase().contains(\"false\")) {\n return false;\n } else if (inputStr.toLowerCase().contains(\"t\") || inputStr.toLowerCase().contains(\"1\")) {\n return true;\n } else if (inputStr.toLowerCase().contains(\"f\") || inputStr.toLowerCase().contains(\"0\")) {\n return false;\n }\n return false;\n }",
"public final void mBOOLEAN_LITERAL() throws RecognitionException {\n try {\n int _type = BOOLEAN_LITERAL;\n // /Users/benjamincoe/HackWars/C.g:239:2: ( 'true' | 'false' )\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0=='t') ) {\n alt6=1;\n }\n else if ( (LA6_0=='f') ) {\n alt6=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"238:1: BOOLEAN_LITERAL : ( 'true' | 'false' );\", 6, 0, input);\n\n throw nvae;\n }\n switch (alt6) {\n case 1 :\n // /Users/benjamincoe/HackWars/C.g:239:4: 'true'\n {\n match(\"true\"); \n\n\n }\n break;\n case 2 :\n // /Users/benjamincoe/HackWars/C.g:239:11: 'false'\n {\n match(\"false\"); \n\n\n }\n break;\n\n }\n this.type = _type;\n }\n finally {\n }\n }",
"public static <T> boolean toBoolean(T obj) {\n\t\treturn toBoolean( obj, false );\n\t}",
"@Test\n\tpublic void testStringToBoolean() {\n\n\t\t// forwards for yes and no\n\t\tAssert.assertEquals(converter.convertForward(\"Yes\"), new Boolean(true));\n\t\tAssert.assertEquals(converter.convertForward(\"No\"), new Boolean(false));\n\n\t}",
"private boolean convertToBoolean (String s) {\n return (\"1\".equalsIgnoreCase(s)\n || \"yes\".equalsIgnoreCase(s)\n || \"true\".equalsIgnoreCase(s)\n || \"on\".equalsIgnoreCase(s)\n || \"y\".equalsIgnoreCase(s)\n || \"t\".equalsIgnoreCase(s));\n }",
"BoolConstant createBoolConstant();",
"private String parseBoolean () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n char chr=next();//get next character\r\n assert \"ft\".indexOf(chr)>=0;//assert valid boolean start character\r\n switch (chr) {//switch on first character\r\n case 'f': skip(4);//skip to last character\r\n return \"false\";\r\n case 't': skip(3);//skip to last character\r\n return \"true\";\r\n default: assert false;//assert that we do not reach this statement\r\n return null;\r\n }//switch on first character\r\n \r\n }",
"public boolean containsLiteralBoolean(Boolean literalData);",
"public static Boolean booleanValue(String value) {\n\t\tfinal Boolean ret;\n\t\t\n\t\tif (value.equals(\"true\")) {\n\t\t\tret = true;\n\t\t}\n\t\telse if (value.equals(\"false\")) {\n\t\t\tret = false;\n\t\t}\n\t\telse {\n\t\t\tret = null;\n\t\t}\n\n\t\treturn ret;\n\t}",
"BoolOperation createBoolOperation();",
"public boolean isBoolean();",
"public final EObject ruleGoalBooleanLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token lv_value_0_0=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1829:28: ( ( (lv_value_0_0= RULE_EBOOLEAN ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1830:1: ( (lv_value_0_0= RULE_EBOOLEAN ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1830:1: ( (lv_value_0_0= RULE_EBOOLEAN ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1831:1: (lv_value_0_0= RULE_EBOOLEAN )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1831:1: (lv_value_0_0= RULE_EBOOLEAN )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1832:3: lv_value_0_0= RULE_EBOOLEAN\r\n {\r\n lv_value_0_0=(Token)match(input,RULE_EBOOLEAN,FOLLOW_RULE_EBOOLEAN_in_ruleGoalBooleanLiteral3822); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tnewLeafNode(lv_value_0_0, grammarAccess.getGoalBooleanLiteralAccess().getValueEBOOLEANTerminalRuleCall_0()); \r\n \t\t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElement(grammarAccess.getGoalBooleanLiteralRule());\r\n \t }\r\n \t\tsetWithLastConsumed(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_0_0, \r\n \t\t\"EBOOLEAN\");\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"@Override\r\n\tpublic Object visitBooleanLiteralExpression(\r\n\t\t\tBooleanLiteralExpression booleanLiteralExpression, Object arg)\r\n\t\t\tthrows Exception {\n\t if(booleanLiteralExpression.booleanLiteral.getText().equals(\"false\"))\r\n\t {\r\n\t mv.visitLdcInsn(new Boolean(false));\r\n\t }\r\n\t else\r\n\t {\r\n\t mv.visitLdcInsn(new Boolean(true));\r\n\t }\r\n if(arg != null)\r\n {\r\n// mv.visitMethodInsn(INVOKESTATIC, \"java/lang/Boolean\", \"valueOf\", \"(Z)Ljava/lang/Boolean;\");\r\n }\r\n\t return \"Z\";\r\n\t}",
"public final void rule__BoolOperation__Group__12__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:1476:1: ( ( 'bool(' ) )\n // InternalBSQL2Java.g:1477:1: ( 'bool(' )\n {\n // InternalBSQL2Java.g:1477:1: ( 'bool(' )\n // InternalBSQL2Java.g:1478:2: 'bool('\n {\n before(grammarAccess.getBoolOperationAccess().getBoolKeyword_12()); \n match(input,31,FOLLOW_2); \n after(grammarAccess.getBoolOperationAccess().getBoolKeyword_12()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void mBOOL() throws RecognitionException {\n try {\n int _type = BOOL;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:6: ( 'true' | 'false' )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='t') ) {\n alt5=1;\n }\n else if ( (LA5_0=='f') ) {\n alt5=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:8: 'true'\n {\n match(\"true\"); if (state.failed) return ;\n\n\n }\n break;\n case 2 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:17: 'false'\n {\n match(\"false\"); if (state.failed) return ;\n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public static Value makeBool(boolean b) {\n if (b)\n return theBoolTrue;\n else\n return theBoolFalse;\n }",
"public Object VisitBooleanLiteral(ASTBooleanLiteral boolliteral) {\n if (boolliteral.value()) {\n return new TypeClass(BooleanType.instance(), bt.constantExpression(1));\n } else {\n return new TypeClass(BooleanType.instance(), bt.constantExpression(0));\n }\n }",
"boolean readBoolean();",
"public final EObject ruleBooleanLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token lv_value_0_0=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4204:28: ( ( (lv_value_0_0= RULE_EBOOLEAN ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4205:1: ( (lv_value_0_0= RULE_EBOOLEAN ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4205:1: ( (lv_value_0_0= RULE_EBOOLEAN ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4206:1: (lv_value_0_0= RULE_EBOOLEAN )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4206:1: (lv_value_0_0= RULE_EBOOLEAN )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4207:3: lv_value_0_0= RULE_EBOOLEAN\r\n {\r\n lv_value_0_0=(Token)match(input,RULE_EBOOLEAN,FOLLOW_RULE_EBOOLEAN_in_ruleBooleanLiteral9057); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tnewLeafNode(lv_value_0_0, grammarAccess.getBooleanLiteralAccess().getValueEBOOLEANTerminalRuleCall_0()); \r\n \t\t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElement(grammarAccess.getBooleanLiteralRule());\r\n \t }\r\n \t\tsetWithLastConsumed(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_0_0, \r\n \t\t\"EBOOLEAN\");\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"default boolean asBool() {\n\t\tthrow new EvaluatorException(\"Expecting a bool value\");\n\t}",
"public static boolean toBoolean(final String strTransparent) {\n if (strTransparent == null) {\n return false;\n }\n return Boolean.parseBoolean(strTransparent.trim());\n }",
"public Literal getDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);",
"public static boolean parseValue(String value) {\n\t\t/*// Whenever constants refer to a variable \n\t\tif(Environment.globalSymTab.containsSymbol(value))\n\t\t\treturn ((BooleanType)Environment.globalSymTab.getSymbol(value)).value();\n\t\telse*/\n\t\t\treturn Boolean.parseBoolean(value);\n\t}",
"String getBooleanTrueExpression();",
"boolean hasBoolValue();",
"public final EObject ruleBooleanLiteral() throws RecognitionException {\n EObject current = null;\n int ruleBooleanLiteral_StartIndex = input.index();\n Token lv_booleanValue_1_0=null;\n Token otherlv_2=null;\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 114) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4753:28: ( ( () ( ( (lv_booleanValue_1_0= KEYWORD_55 ) ) | otherlv_2= KEYWORD_61 ) ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4754:1: ( () ( ( (lv_booleanValue_1_0= KEYWORD_55 ) ) | otherlv_2= KEYWORD_61 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4754:1: ( () ( ( (lv_booleanValue_1_0= KEYWORD_55 ) ) | otherlv_2= KEYWORD_61 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4754:2: () ( ( (lv_booleanValue_1_0= KEYWORD_55 ) ) | otherlv_2= KEYWORD_61 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4754:2: ()\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4755:2: \n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(),\n current);\n \n }\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4763:2: ( ( (lv_booleanValue_1_0= KEYWORD_55 ) ) | otherlv_2= KEYWORD_61 )\n int alt77=2;\n int LA77_0 = input.LA(1);\n\n if ( (LA77_0==KEYWORD_55) ) {\n alt77=1;\n }\n else if ( (LA77_0==KEYWORD_61) ) {\n alt77=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 77, 0, input);\n\n throw nvae;\n }\n switch (alt77) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4763:3: ( (lv_booleanValue_1_0= KEYWORD_55 ) )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4763:3: ( (lv_booleanValue_1_0= KEYWORD_55 ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4764:1: (lv_booleanValue_1_0= KEYWORD_55 )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4764:1: (lv_booleanValue_1_0= KEYWORD_55 )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4765:3: lv_booleanValue_1_0= KEYWORD_55\n {\n lv_booleanValue_1_0=(Token)match(input,KEYWORD_55,FOLLOW_KEYWORD_55_in_ruleBooleanLiteral9713); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n newLeafNode(lv_booleanValue_1_0, grammarAccess.getBooleanLiteralAccess().getBooleanValueTrueKeyword_1_0_0());\n \n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getBooleanLiteralRule());\n \t }\n \t\tsetWithLastConsumed(current, \"booleanValue\", true, \"true\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4781:2: otherlv_2= KEYWORD_61\n {\n otherlv_2=(Token)match(input,KEYWORD_61,FOLLOW_KEYWORD_61_in_ruleBooleanLiteral9743); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_1());\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 114, ruleBooleanLiteral_StartIndex); }\n }\n return current;\n }",
"static public boolean boolForString(String s) {\n return ERXValueUtilities.booleanValue(s);\n }",
"static Value<Boolean> parseBoolean(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Boolean.parseBoolean(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }",
"public Literal setLiteralBoolean(Boolean literalData);",
"public final EObject ruleBooleanLiteral() throws RecognitionException {\n EObject current = null;\n\n Enumerator lv_value_0_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4659:6: ( ( (lv_value_0_0= ruleBooleanKind ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4660:1: ( (lv_value_0_0= ruleBooleanKind ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4660:1: ( (lv_value_0_0= ruleBooleanKind ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4661:1: (lv_value_0_0= ruleBooleanKind )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4661:1: (lv_value_0_0= ruleBooleanKind )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4662:3: lv_value_0_0= ruleBooleanKind\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getBooleanLiteralAccess().getValueBooleanKindEnumRuleCall_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleBooleanKind_in_ruleBooleanLiteral8141);\n lv_value_0_0=ruleBooleanKind();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getBooleanLiteralRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"value\",\n \t \t\tlv_value_0_0, \n \t \t\t\"BooleanKind\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final Enumerator ruleBooleanKind() throws RecognitionException {\n Enumerator current = null;\n\n setCurrentLookahead(); resetLookahead(); \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6910:6: ( ( ( 'false' ) | ( 'true' ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:1: ( ( 'false' ) | ( 'true' ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:1: ( ( 'false' ) | ( 'true' ) )\n int alt104=2;\n int LA104_0 = input.LA(1);\n\n if ( (LA104_0==76) ) {\n alt104=1;\n }\n else if ( (LA104_0==77) ) {\n alt104=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"6911:1: ( ( 'false' ) | ( 'true' ) )\", 104, 0, input);\n\n throw nvae;\n }\n switch (alt104) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:2: ( 'false' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:2: ( 'false' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:4: 'false'\n {\n match(input,76,FOLLOW_76_in_ruleBooleanKind12221); \n\n current = grammarAccess.getBooleanKindAccess().getFalseEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getBooleanKindAccess().getFalseEnumLiteralDeclaration_0(), null); \n \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6917:6: ( 'true' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6917:6: ( 'true' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6917:8: 'true'\n {\n match(input,77,FOLLOW_77_in_ruleBooleanKind12236); \n\n current = grammarAccess.getBooleanKindAccess().getTrueEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getBooleanKindAccess().getTrueEnumLiteralDeclaration_1(), null); \n \n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final void rule__XBooleanLiteral__IsTrueAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18790:1: ( ( ( 'true' ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18791:1: ( ( 'true' ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18791:1: ( ( 'true' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18792:1: ( 'true' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18793:1: ( 'true' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18794:1: 'true'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); \r\n }\r\n match(input,132,FOLLOW_132_in_rule__XBooleanLiteral__IsTrueAssignment_1_137977); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static boolean parseBoolean(String val) {\n\n\t\tif (val == null) {\n\t\t\tval = \"false\";\n\t\t}\n\n\t\tboolean ret = false;\n\t\tret = Boolean.parseBoolean(val);\n\n\t\treturn ret;\n\t}",
"public static boolean isTrue(final String s) throws StringValueConversionException\n\t{\n\t\tif (s != null)\n\t\t{\n\t\t\tif (s.equalsIgnoreCase(\"true\"))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (s.equalsIgnoreCase(\"false\"))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (s.equalsIgnoreCase(\"on\") || s.equalsIgnoreCase(\"yes\") || s.equalsIgnoreCase(\"y\")\n\t\t\t\t\t|| s.equalsIgnoreCase(\"1\"))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (s.equalsIgnoreCase(\"off\") || s.equalsIgnoreCase(\"no\") || s.equalsIgnoreCase(\"n\")\n\t\t\t\t\t|| s.equalsIgnoreCase(\"0\"))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (isEmpty(s))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthrow new StringValueConversionException(\"Boolean value \\\"\" + s + \"\\\" not recognized\");\n\t\t}\n\n\t\treturn false;\n\t}",
"public static boolean toBoolean(Boolean value)\r\n {\r\n return toBoolean(value, false);\r\n }",
"public final void ruleBoolean() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:266:2: ( ( 'Boolean' ) )\n // InternalMyDsl.g:267:2: ( 'Boolean' )\n {\n // InternalMyDsl.g:267:2: ( 'Boolean' )\n // InternalMyDsl.g:268:3: 'Boolean'\n {\n before(grammarAccess.getBooleanAccess().getBooleanKeyword()); \n match(input,14,FOLLOW_2); \n after(grammarAccess.getBooleanAccess().getBooleanKeyword()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static boolean inputBoolean()\n\t{\n\t\treturn(sc.nextBoolean());\n\t}",
"public boolean readBoolean() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return ((int) fTokenizer.nval) == 1;\n\n String msg = \"Integer expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }",
"public final void mT__26() throws RecognitionException {\n try {\n int _type = T__26;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:24:7: ( 'bool' )\n // InternalDSL.g:24:9: 'bool'\n {\n match(\"bool\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void booleanLiteral() throws RecognitionException {\n int booleanLiteral_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"booleanLiteral\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(520, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 69) ) { return ; }\n // Java.g:521:5: ( 'true' | 'false' )\n dbg.enterAlt(1);\n\n // Java.g:\n {\n dbg.location(521,5);\n if ( (input.LA(1)>=71 && input.LA(1)<=72) ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n dbg.recognitionException(mse);\n throw mse;\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 69, booleanLiteral_StartIndex); }\n }\n dbg.location(523, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"booleanLiteral\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"boolean getBoolean();",
"boolean getBoolean();",
"private static boolean stringToBoolean(String value) {\n if (value.equals(\"1\")) {\n return true;\n }\n else {\n return false;\n }\n }",
"public final void mRULE_BOOL_VAL() throws RecognitionException {\r\n try {\r\n int _type = RULE_BOOL_VAL;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19802:15: ( ( 'true' | 'false' ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19802:17: ( 'true' | 'false' )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19802:17: ( 'true' | 'false' )\r\n int alt10=2;\r\n int LA10_0 = input.LA(1);\r\n\r\n if ( (LA10_0=='t') ) {\r\n alt10=1;\r\n }\r\n else if ( (LA10_0=='f') ) {\r\n alt10=2;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 10, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt10) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19802:18: 'true'\r\n {\r\n match(\"true\"); \r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19802:25: 'false'\r\n {\r\n match(\"false\"); \r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"boolean hasToken();",
"boolean hasToken();",
"boolean hasToken();",
"boolean hasToken();",
"boolean hasToken();",
"boolean hasToken();",
"public final void mRULE_BOOLEAN() throws RecognitionException {\n try {\n int _type = RULE_BOOLEAN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:14: ( ( 'true' | 'false' ) )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:16: ( 'true' | 'false' )\n {\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:16: ( 'true' | 'false' )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='t') ) {\n alt5=1;\n }\n else if ( (LA5_0=='f') ) {\n alt5=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:17: 'true'\n {\n match(\"true\"); \n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:24: 'false'\n {\n match(\"false\"); \n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public static <T> boolean toBoolean(T obj, boolean defaultValue) {\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tif ( obj != null && (obj instanceof String) )\n\t\t\t\tresult = Boolean.valueOf( (String) obj );\n\t\t\telse if ( obj != null && obj instanceof Boolean )\n\t\t\t\tresult = Boolean.valueOf( (Boolean) obj );\n\t\t\telse\n\t\t\t\tthrow new IllegalArgumentException( \"L'oggetto (non nullo) passato non e' istanza di String.\" );\n\t\t} catch ( Exception e ) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn result;\n\t}",
"public Boolean getBoolean(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.BOOLEAN)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Boolean.class);\n\t\treturn (Boolean)value.value;\n\t}",
"public static boolean is_boolean(String s) {\n\t return (s.equalsIgnoreCase(\"true\") || s.equalsIgnoreCase(\"T\") || s.equalsIgnoreCase(\"false\") || s.equalsIgnoreCase(\"F\"));\n }",
"private boolean parseBoolean(final byte[] buffer, final int offset) {\n return buffer[offset] == 1;\n }",
"public final AliaChecker.boolean_expr_return boolean_expr() throws RecognitionException {\n\t\tAliaChecker.boolean_expr_return retval = new AliaChecker.boolean_expr_return();\n\t\tretval.start = input.LT(1);\n\n\t\tCommonTree root_0 = null;\n\n\t\tCommonTree _first_0 = null;\n\t\tCommonTree _last = null;\n\n\n\t\tCommonTree set26=null;\n\n\t\tCommonTree set26_tree=null;\n\n\t\ttry {\n\t\t\t// src\\\\alia\\\\AliaChecker.g:295:14: ( TRUE | FALSE )\n\t\t\t// src\\\\alia\\\\AliaChecker.g:\n\t\t\t{\n\t\t\troot_0 = (CommonTree)adaptor.nil();\n\n\n\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\tset26=(CommonTree)input.LT(1);\n\t\t\tif ( input.LA(1)==FALSE||input.LA(1)==TRUE ) {\n\t\t\t\tinput.consume();\n\t\t\t\tset26_tree = (CommonTree)adaptor.dupNode(set26);\n\n\n\t\t\t\tadaptor.addChild(root_0, set26_tree);\n\n\t\t\t\tstate.errorRecovery=false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\tthrow mse;\n\t\t\t}\n\n\t\t\t \n\n\t\t\t}\n\n\t\t\tretval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\n\t\t}\n\t\t \n\t\t catch (RecognitionException e) { \n\t\t \tif(!e.getMessage().equals(\"\")) {\n\t\t\t\t\tSystem.err.println(\"Exception!:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t\tthrow (new AliaException(\"\"));\n\t\t } \n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}",
"public static boolean toPrimitiveBoolean(Boolean value) {\n if (value == null) {\n return false;\n }\n return value;\n }",
"@Override // kotlin.p2243e.p2244a.AbstractC32522b\n public /* synthetic */ Boolean invoke(Boolean bool) {\n return Boolean.valueOf(mo78020a(bool));\n }",
"public static boolean datoBoolean(){\n try {\n return(Boolean.parseBoolean(dato()));\n } catch (NumberFormatException error) {\n return(false);\n }\n }",
"public final void mT38() throws RecognitionException {\n try {\n int _type = T38;\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:36:5: ( 'bool' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:36:7: 'bool'\n {\n match(\"bool\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"@Test\n public void testBooleanLiteralTrue2() throws Exception {\n Boolean expected = Boolean.TRUE;\n String sql = \"SELECT TRUE\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, expected);\n verifyProperty(constantNode, Expression.TYPE_CLASS_PROP_NAME, DataTypeName.BOOLEAN.name());\n \n verifySql(\"SELECT TRUE\", fileNode);\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public final void rule__XBooleanLiteral__IsTrueAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13281:1: ( ( ( 'true' ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13282:1: ( ( 'true' ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13282:1: ( ( 'true' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13283:1: ( 'true' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13284:1: ( 'true' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13285:1: 'true'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); \n }\n match(input,69,FOLLOW_69_in_rule__XBooleanLiteral__IsTrueAssignment_1_126690); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public T caseBooleanLiteral(BooleanLiteral object)\n {\n return null;\n }",
"public T caseBooleanLiteral(BooleanLiteral object)\n {\n return null;\n }",
"public final EObject ruleBooleanLiteral() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token lv_isTrue_2_0=null;\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1918:28: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1919:1: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1919:1: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1919:2: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1919:2: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1920:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(),\n current);\n \n }\n\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1925:2: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) )\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==48) ) {\n alt25=1;\n }\n else if ( (LA25_0==49) ) {\n alt25=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 25, 0, input);\n\n throw nvae;\n }\n switch (alt25) {\n case 1 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1925:4: otherlv_1= 'false'\n {\n otherlv_1=(Token)match(input,48,FOLLOW_48_in_ruleBooleanLiteral4564); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_0());\n \n }\n\n }\n break;\n case 2 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1930:6: ( (lv_isTrue_2_0= 'true' ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1930:6: ( (lv_isTrue_2_0= 'true' ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1931:1: (lv_isTrue_2_0= 'true' )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1931:1: (lv_isTrue_2_0= 'true' )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1932:3: lv_isTrue_2_0= 'true'\n {\n lv_isTrue_2_0=(Token)match(input,49,FOLLOW_49_in_ruleBooleanLiteral4588); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n newLeafNode(lv_isTrue_2_0, grammarAccess.getBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0());\n \n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getBooleanLiteralRule());\n \t }\n \t\tsetWithLastConsumed(current, \"isTrue\", true, \"true\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public static Boolean stringToBool(String stringToConvert) \n\t{\n\t\tstringToConvert = stringToConvert.toLowerCase();\n\n\t\tif (stringToConvert.equals(\"y\")) return true;\n\t\telse if (stringToConvert.equals(\"yes\")) return true;\n\t\telse if (stringToConvert.equals(\"true\")) return true;\n\t\telse if (stringToConvert.equals(\"n\")) return false;\n\t\telse if (stringToConvert.equals(\"no\")) return false;\n\t\telse if (stringToConvert.equals(\"false\")) return false;\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(\"Utils.stringToBool: Error '\" + stringToConvert + \"' not recognised\");\n\t\t\treturn false;\n\t\t}\t\n\t}",
"public boolean getBoolean(String name) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Boolean value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Boolean) {\n\t\t\treturn (Boolean) val;\n\t\t}\n\t\ttry {\n\t\t\treturn Boolean.parseBoolean((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Boolean value required, but found: \" + val);\n\t\t}\n\t}",
"@Override\r\n\tpublic Object visitBooleanLitExpression(\r\n\t\t\tBooleanLitExpression booleanLitExpression, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tbooleanLitExpression.setType(booleanType);\r\n\t\treturn booleanType;\r\n\t}",
"@Override\n\tpublic Object visitBooleanLiteral(BooleanLiteral literal) {\n\t\treturn null;\n\t}",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public BooleanLit createTrue(Position pos) {\n return (BooleanLit) xnf.BooleanLit(pos, true).type(xts.Boolean());\n }",
"@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}",
"@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}"
] | [
"0.72746223",
"0.70380974",
"0.6885876",
"0.66164595",
"0.66013163",
"0.65778065",
"0.63546205",
"0.63064855",
"0.63064855",
"0.6258889",
"0.6239538",
"0.6147526",
"0.61391866",
"0.61168295",
"0.6106343",
"0.6066903",
"0.6066903",
"0.60493916",
"0.59903705",
"0.5972037",
"0.5968265",
"0.59414005",
"0.59401846",
"0.5928644",
"0.5913791",
"0.58829814",
"0.5878248",
"0.58776194",
"0.58701354",
"0.5863251",
"0.58411777",
"0.58359605",
"0.58244604",
"0.58016735",
"0.58005077",
"0.57761467",
"0.5772485",
"0.57663435",
"0.57476926",
"0.5735003",
"0.57272756",
"0.5709635",
"0.57056123",
"0.56680655",
"0.56484383",
"0.56385344",
"0.5634688",
"0.5623889",
"0.5606671",
"0.55899477",
"0.5584",
"0.55715626",
"0.55679655",
"0.55651355",
"0.55639297",
"0.5560932",
"0.55605406",
"0.55517364",
"0.55503076",
"0.5549313",
"0.5541958",
"0.5528227",
"0.55219805",
"0.5521026",
"0.5514099",
"0.5512511",
"0.5511278",
"0.5511278",
"0.55106676",
"0.55015963",
"0.54866624",
"0.54866624",
"0.54866624",
"0.54866624",
"0.54866624",
"0.54866624",
"0.5485046",
"0.5482787",
"0.54729205",
"0.5471595",
"0.5458003",
"0.54558814",
"0.54522353",
"0.5445839",
"0.54410726",
"0.5432966",
"0.543233",
"0.5425263",
"0.54239565",
"0.54194003",
"0.54194003",
"0.54176587",
"0.54152757",
"0.5396443",
"0.5390521",
"0.5389948",
"0.5389197",
"0.538322",
"0.53784007",
"0.53784007"
] | 0.74371344 | 0 |
The getType() method returns the type of this expression as computed by the TypeChecker. | @Override
public Type getType() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Expression getType();",
"public Type getExpressionType();",
"public Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"public Class getEvaluationType() {\n return lho.getOperandType();\n }",
"@NotNull\n abstract public Type getType();",
"public Class<?> getType() {\n return this.value.getClass();\n }",
"public type getType() {\r\n\t\treturn this.Type;\r\n\t}",
"public Type getType () {\n\t\treturn type;\n\t}",
"public TypeMirror getType() {\n return type;\n }",
"public Type getType() {\n\t\treturn this.type;\n\t}",
"public Type getType() {\n\t\treturn type;\n\t}",
"public Type getType() {\n\t\treturn type;\n\t}",
"type getType();",
"@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}",
"public abstract Type getType();",
"abstract public Type getType();",
"public final Type getType(){\r\n return type;\r\n }",
"public Type getType() {\n return referentType;\n }",
"public Type getType() {\n return this.type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\r\n return this.type;\r\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return this.mType;\n }",
"public Object getType()\r\n {\r\n\treturn type;\r\n }",
"public Type getType(){\n\t\treturn this.type;\n\t}",
"public Type getType() {\n\t\treturn mType;\n\t}",
"public Class getType();",
"public Type getType() {\n return _type;\n }",
"public Type getType()\n {\n return type;\n }",
"public JavaType getType() { return _type; }",
"public Type getType() {\n return this.te.getType();\n }",
"public int getType() {\r\n\t\treturn (type);\r\n\t}",
"public SoyType getType() {\n return getTypeWrapper().getType();\n }",
"public TypeSignature getType() {\n return this.type;\n }",
"public Class getType();",
"public IType getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public Type type() {\n\t\treturn type;\n\t}",
"public Class<?> getType() {\n\t\treturn this.type;\n\t}",
"public Class<?> getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn _type;\n\t}",
"public String getType() {\r\n\t\treturn this.type;\r\n\t}",
"Type type();",
"Type type();",
"public Class<?> getType() {\n return this.type;\n }",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public Integer getType() {\n\t\treturn type;\n\t}",
"public Class<T> getType() {\n return this.type;\n }",
"public Integer getType() {\r\n\t\treturn type;\r\n\t}",
"public CIType getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n return this.getClass().getName();\r\n }",
"public IType getType() {\r\n return type;\r\n }",
"public final String getType() {\n return this.getClass().getName();\n }",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}"
] | [
"0.867676",
"0.8021063",
"0.74164927",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7348507",
"0.7262131",
"0.7185273",
"0.7169718",
"0.7139804",
"0.71280426",
"0.7121549",
"0.7114578",
"0.7113798",
"0.7113798",
"0.7084747",
"0.70795596",
"0.7074842",
"0.7074078",
"0.7070938",
"0.70372814",
"0.70339346",
"0.70287716",
"0.70287716",
"0.70287716",
"0.70287716",
"0.70287716",
"0.70287716",
"0.70287716",
"0.70287716",
"0.70287716",
"0.70287716",
"0.7021044",
"0.70128036",
"0.70094067",
"0.69931453",
"0.6991045",
"0.6987138",
"0.6970954",
"0.69702345",
"0.69666785",
"0.6956658",
"0.69473094",
"0.6915933",
"0.69151556",
"0.69109493",
"0.68780655",
"0.6872491",
"0.68548226",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67840636",
"0.67715025",
"0.6752978",
"0.6752978",
"0.6751456",
"0.6749557",
"0.67459685",
"0.67459685",
"0.67455655",
"0.6740815",
"0.6740815",
"0.6740815",
"0.6740815",
"0.6740815",
"0.6740815",
"0.6740815",
"0.6740815",
"0.67269176",
"0.67144305",
"0.6713538",
"0.6703119",
"0.66996276",
"0.66996276",
"0.66996276",
"0.6698499",
"0.66936105",
"0.6693295",
"0.6687556",
"0.66779876",
"0.66779876",
"0.66779876",
"0.66779876"
] | 0.0 | -1 |
The setType() method sets the type of this expression. This is meant to be called by the TypeChecker as it visits the program and computes the type of each expression. | public void setType(Type t) {
type = t;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public void setType(org.aspectj.compiler.base.ast.Type type) {\n this.type = type;\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"void setType(ASTTypeSpecNode typeSpecNode)\n {\n this.type = Type.parse(typeSpecNode);\n }",
"public void setType(int t) {\r\n\t\ttype = t;\r\n\t}",
"public void setType (String typ) {\n type = typ;\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(int t){\n this.type = t;\n }",
"public void setType(final int t) {\n\t\ttype = t;\n\t}",
"public void setType(final Type type) {\n this.type = type;\n }",
"public void setType(String t) {\n\ttype = t;\n }",
"public void setType(String t) {\n\t\tthis.type = t;\n\t}",
"public void setType(ParseTree node, Type type) {\n\t\tthis.types.put(node, type);\n\t}",
"public void setType(int pType) {\n mType = pType;\n }",
"@Override\n\tpublic void setType(Type t) {\n\t\theldObj.setType(t);\n\t}",
"public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;",
"void setType(String type) {\n this.type = type;\n }",
"void setType(java.lang.String type);",
"public void setType(Class type) {\n\t this.type = type;\n\t }",
"private void setType(String type) {\n mType = type;\n }",
"public void set_type(String t)\n {\n type =t;\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"public Builder setType(Type value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"public abstract void setType();",
"public void setType(String aType) {\n iType = aType;\n }",
"public void setType(int atype)\n {\n type = atype;\n }",
"public void setType(String type) {\n m_Type = type;\n }",
"public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"public void setType(String val) {\n type = val;\n }",
"public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"Rule SetType() {\n // Push 1 SetTypeNode onto the value stack\n return Sequence(\n \"set \",\n Optional(CppType()),\n \"<\",\n FieldType(),\n \"> \",\n actions.pushSetTypeNode());\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public void setType(int a_type) {\n\t\tthis.m_type = a_type;\n\t}",
"public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }",
"public void setType(Integer type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType( String type )\n {\n this.type = type;\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setType(int type) {\n\t\tthis.type = type;\n\t}",
"public FieldInstruction setFieldType(String type) {\n return setField(getFieldDeclarerName(), getFieldName(), type);\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"public void setType(String inType)\n {\n\ttype = inType;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\n this.type = type;\n }",
"public void setType(int type) {\n type_ = type;\n }",
"public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"public void setType(int type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void setType(String type){\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }",
"public void setType(Integer type) {\n\t\tthis.type = type;\n\t}",
"public final void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }"
] | [
"0.6974482",
"0.6798125",
"0.6557189",
"0.65547377",
"0.6542275",
"0.64901155",
"0.6478672",
"0.64429337",
"0.643046",
"0.64208674",
"0.6413477",
"0.6378181",
"0.6378181",
"0.6378181",
"0.63350147",
"0.63199836",
"0.6295417",
"0.62871736",
"0.62764686",
"0.626062",
"0.62588656",
"0.6253398",
"0.62503564",
"0.6245762",
"0.6245762",
"0.6245762",
"0.62316614",
"0.6173249",
"0.6157436",
"0.61367106",
"0.6135684",
"0.61315256",
"0.61149913",
"0.6114137",
"0.6111948",
"0.6095262",
"0.60921884",
"0.6088815",
"0.60881853",
"0.60644203",
"0.6051736",
"0.60453993",
"0.6033243",
"0.6028873",
"0.6015015",
"0.60133547",
"0.6010001",
"0.60060424",
"0.60060424",
"0.60008895",
"0.60008895",
"0.59985965",
"0.5997342",
"0.5994101",
"0.59917295",
"0.5990936",
"0.5990936",
"0.5990936",
"0.59886295",
"0.59819937",
"0.5981879",
"0.5981879",
"0.5981879",
"0.59760815",
"0.59752065",
"0.5972145",
"0.59691924",
"0.5968837",
"0.5967241",
"0.5964704",
"0.5964704",
"0.5964704",
"0.5964704",
"0.5958067",
"0.5957406",
"0.5955941",
"0.59540904",
"0.59452355",
"0.593791",
"0.5937331",
"0.5933048",
"0.5933048",
"0.5933029",
"0.59129715",
"0.5909331",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835",
"0.59024835"
] | 0.69852215 | 0 |
The isVariable() method tests whether this expression is a single variable use. | public boolean isVariable() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isVariable(Name name) {\n\t\t\n\t\tAstNode parent = name.getParent();\n\n\t\tif(parent instanceof InfixExpression) {\n\t\t\tInfixExpression ie = (InfixExpression) parent;\n\t\t\tif(ie.getOperator() == Token.GETPROP || ie.getOperator() == Token.GETPROPNOWARN) {\n /* If the parent is field access, make sure it is on the LHS. */\n\t\t\t\tif(ie.getRight() == name) return false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t/* It is some other boolean operator, so it should be a variable. */\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tif(parent instanceof UnaryExpression) {\n\t\t\t/* It is a variable that is being operated on by a unary expression. */\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"protected final boolean overheadIsVariable() {\n // The overhead is variable if it is set to VARIABLE_COST.\n return (overhead == Cost.VARIABLE);\n }",
"boolean isVariable(Formula f);",
"@Override\n\tpublic boolean isVar() {\n\t\treturn heldObj.isVar();\n\t}",
"abstract public boolean isVariableCommand();",
"private boolean isVariable(String refWord){\n\t\tif(refWord.charAt(0) == 'i' && Character.isDigit(refWord.charAt(1)))\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public static boolean isVariable(String var) {\r\n\t\tif(var.length() >= 1) {\r\n\t\t\tif(Character.isLowerCase(var.charAt(0))) return true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public String isVar(Exp e) {\n if (e instanceof EId) {\n return ((EId) e).id_;\n } else\n throw new TypeException(\"Expected variable but found: \" + e);\n }",
"abstract void checkWhetherVariable(SyntaxUnit use);",
"public boolean hasVariableOperands(AttributeDescriptor.Operator operator)\n {\n if (operator == null)\n return false;\n OperatorImpl operImpl = (OperatorImpl) operator;\n return operImpl.getOperatorDef().hasVariableOperands();\n }",
"public boolean var_type() {\n if (lexer.token != Symbol.FLOAT && lexer.token != Symbol.INT) {\n return false;\n }\n lexer.nextToken();\n return true;\n }",
"boolean hasVarValue();",
"boolean isFreeVariable(Formula f);",
"@Override\n public int contains(Variable<?> variable) {\n return value.contains(variable) + (binder.equals(variable) ? 0 : body.contains(variable));\n }",
"public final boolean knowsVariable(AbstractVariable decl) {\r\n return variablesCache.containsKey(decl);\r\n }",
"private void assertIsVar(SymObject object) {\n assertIsOfKind(object, SymObject.KIND_VAR,\n object.name + \" can't be resolved to a variable\");\n }",
"public static boolean containsVar(Regexp container) {\n\t\tif(container instanceof Alternation) {\n\t\t\tList<Regexp> exps = ((Alternation) container).getExp();\n\t\t\tfor(Regexp exp: exps) {\n\t\t\t\tif (exp instanceof Variable) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else if(exp instanceof Concatenation) {\n\t\t\t\t\t//verify the last one\n\t\t\t\t\tRegexp last = ((Concatenation) exp).getExp().get(((Concatenation) exp).getExp().size()-1);\n\t\t\t\t\tif(last instanceof Variable) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t} else if(exp instanceof KleeneStar) {\n\t\t\t\t\tRegexp cexp = ((KleeneStar) exp).getExp();\n\n\t\t\t\t\tif(cexp instanceof Variable) {\n\t\t\t\t\t\tSystem.out.println(\"==IMPOSSIBLE: a Variable was found in Star!!!!!!!!!!== :RegexpUtil\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(container instanceof Concatenation) {\n\t\t\tList<Regexp> exps = ((Concatenation) container).getExp();\n\n\t\t\t//verify the last one\n\t\t\tRegexp last = exps.get(exps.size()-1);\n\t\t\tif(last instanceof Variable) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if(container instanceof KleeneStar) {\n\t\t\tRegexp exp = ((KleeneStar) container).getExp();\n\n\t\t\tif(exp instanceof Variable) {\n\t\t\t\tSystem.out.println(\"==IMPOSSIBLE: a Variable was found in Star!!!!!!!!!!== :RegexpUtil\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"private static boolean isUsedInExpression(String varName, CExpression exp) {\n return exp.accept(new VarCExpressionVisitor(varName));\n }",
"private boolean hasVariable(String name, TOSCAPlan buildPlan) {\n\t\treturn Utils.hasChildElementWithAttribute(buildPlan.getBpelProcessVariablesElement(), \"name\", name);\n\t}",
"boolean check (Env env) {\n if (Env.find (env, nameOfVar) != null) {\n return true;\n } else {\n System.err.println (\"Semantic error: The variable \\\"\" \n + nameOfVar + \"\\\" was used but was not declared!\");\n return false;\n }\n }",
"public boolean isIndexedVariable() {\n return indexed;\n }",
"@Override\n public Boolean visitVariableAttribution(FormScriptGrammarParser.VariableAttributionContext ctx) {\n if (!declaredVariables.containsKey(ctx.VARIABLE().getText())) {\n // this is validated in UI/controlled by flow in the UI so should never happen, but it remains here just in case\n throw new IllegalArgumentException(\"Semantic error at line: \" + ctx.getStart().getLine() + \": variable \" + ctx.VARIABLE().getText() + \" wasn't declared!\");\n// return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw\n }\n DataType dataType = declaredVariables.get(ctx.VARIABLE().getText());\n boolean correctType = dataType.lexerValue().equals(ctx.value().start.getType());\n /*will verify if the attribution is actually semantically valid, e.g if\n the variable was defined as an INTEGER, it can't be assigned a DATE*/\n if (!correctType) {\n throw new IllegalArgumentException(\"Semantic error at line: \" + ctx.getStart().getLine() + \":\" + ctx.getStart().getCharPositionInLine()\n + \": Invalid attribution type!\" + \" variable \" + ctx.VARIABLE().getText() + \" can't be assigned the value \" + ctx.value().getText());\n// return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw\n }\n //verify if operators are valid in the context of the datatype\n String operator = ctx.COMPARISON_OPERATORS().getText();\n if (operator.equals(\"<\") || operator.equals(\">\")) {\n if (dataType.equals(DataType.BOOLEAN) || dataType.equals(DataType.DATE) || dataType.equals(DataType.FILE)) {\n throw new IllegalArgumentException(\"Semantic error at line: \" + ctx.getStart().getLine() + \":\" + ctx.getStart().getCharPositionInLine()\n + \": Invalid comparison type!\" + \" variable \" + ctx.VARIABLE().getText() + \" can't be compared with operator '\" + operator + \"'\");\n }\n }\n return true;\n }",
"boolean isBoundVariable(Formula f);",
"boolean isDummy() {\n return var == null;\n }",
"public boolean isVariableInitialized(String variableName, TOSCAPlan buildPlan) {\n\t\tElement propertyAssignElement = buildPlan.getBpelMainSequencePropertyAssignElement();\n\t\t// get all copy elements\n\t\tfor (int i = 0; i < propertyAssignElement.getChildNodes().getLength(); i++) {\n\t\t\tif (propertyAssignElement.getChildNodes().item(i).getLocalName().equals(\"copy\")) {\n\t\t\t\tNode copyElement = propertyAssignElement.getChildNodes().item(i);\n\t\t\t\tfor (int j = 0; j < copyElement.getChildNodes().getLength(); j++) {\n\t\t\t\t\tif (copyElement.getChildNodes().item(j).getLocalName().equals(\"to\")) {\n\t\t\t\t\t\tNode toElement = copyElement.getChildNodes().item(j);\n\t\t\t\t\t\tif (toElement.getAttributes().getNamedItem(\"variable\").getNodeValue().equals(variableName)) {\n\t\t\t\t\t\t\treturn true;\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 false;\n\t}",
"public ElementVariable getVariable() {\n\t\treturn variable;\n\t}",
"public IExpressionValue getUserDefinedVariable(String key);",
"public Name getVariable() {\n return variable;\n }",
"public boolean hasVar1() {\n return fieldSetFlags()[2];\n }",
"public boolean lookup_var(Var3 variable) {\n Integer index = getVarIndex(variable);\n if(index == null)\n return false;\n if(memMap.get(index) || addrDescriptor.get(index).size() > 1)\n return true;\n else\n return false;\n }",
"public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}",
"private boolean contains(String searchedVariable){\r\n\t\treturn scopeVariables.containsKey(searchedVariable);\r\n\t}",
"boolean hasVarSrc();",
"@Override\n\tpublic boolean isVarSuper() {\n\t\treturn heldObj.isVarSuper();\n\t}",
"public boolean isAssigned() {\n boolean assigned;\n IDecisionVariable var = getVariable();\n if (null != var) {\n assigned = AssignmentState.UNDEFINED != var.getState();\n } else {\n assigned = false;\n }\n return assigned;\n }",
"public Variable getVariable() {\r\n\t\tObject ob = elementAt(0);\r\n\t\tif (size() == 1 && ob instanceof Variable) {\r\n\t\t\treturn (Variable) ob;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n public Boolean visitDeclaration(FormScriptGrammarParser.DeclarationContext ctx) {\n DataType dataType = DataType.valueOf(ctx.type.getText());\n if (declaredVariables.get(ctx.name.getText()) != null) { // if variable already declared\n throw new IllegalArgumentException(\"Error at line: \" + ctx.name.getLine() + \":\" + ctx.name.getCharPositionInLine()\n + \" variable \" + ctx.name.getText() + \" was already previously declared!\");\n// return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw\n }\n declaredVariables.put(ctx.name.getText(), dataType);\n return true;\n }",
"public java.lang.Short getVariableType() {\r\n return variableType;\r\n }",
"@Override\r\n\tpublic void visit(VariableExpression variableExpression) {\n\r\n\t}",
"protected IDecisionVariable getVariable() {\n return variable;\n }",
"public void setVariable(Variable variable) {\n this.variable = variable;\n }",
"private Boolean isRiskAdjustmentVariable(String subTreeUUID, String clauseName) {\n\t\tString xPath = \"/measure/riskAdjustmentVariables/subTreeRef[@displayName=\\\"\" + clauseName + \"\\\" and @id='\"\n\t\t\t\t+ subTreeUUID + \"']\";\n\t\tboolean isRiskAdjustmentVariable = false;\n\t\ttry {\n\t\t\tNode riskAdjVarNode = measureExport.getSimpleXMLProcessor()\n\t\t\t\t\t.findNode(measureExport.getSimpleXMLProcessor().getOriginalDoc(), xPath);\n\t\t\tif (riskAdjVarNode != null) {\n\t\t\t\tisRiskAdjustmentVariable = true;\n\t\t\t}\n\t\t} catch (XPathExpressionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn isRiskAdjustmentVariable;\n\t}",
"public boolean hasVarValue() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"public boolean containsVariable(int vid) {\n return variables.containsKey(vid);\n }",
"public String getVariable() {\n return variable;\n }",
"public String getVariable();",
"public boolean isNumberVariablesCoherent() {\n\n\t\tint m = getVariablesNumberInMap();\n\t\tint t = getVariablesNumberInTree();\n\t\treturn m == t;\n\t}",
"public static boolean variableDeclaration(FileInputStream f) {\n CToken t = new CToken();\n if(observer != null){\n observer.parser.setCurrentRule(\"variableDeclaration\",true);\n }\n \n if (!declarationType(f)) {\n return false;\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"mainDeclaration\",true);\n }\n \n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n \n if (t.token.equals(\"=\")) {\n t = CScanner.peekNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n if (!constant(f)) {\n System.err.format(\"Syntax Error: In rule VariableDeclaration unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"variableDeclaration\",true);\n }\n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n\n if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule VariableDeclaration unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n } //if not semi colon\n if(observer != null){\n observer.parser.setCurrentRule(\"variableDeclaration\",true);\n }\n } //must follow with constant\n else if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule VariableDeclaration unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n } //if not semicolon nor equals\n if(observer != null){\n observer.parser.setCurrentRule(\"variableDeclaration\", false);\n }\n return true;\n }",
"private void checkValue(Variable toBeVariable) throws MethodCallWithNonexistentParameter {\n if (!toBeVariable.hasValue()) {\n throw new MethodCallWithNonexistentParameter();\n }\n }",
"public boolean isInDataset() {\n\t\tfor (int i = 0; i < Dna.data.getStatements().size(); i++) {\n\t\t\tif (Dna.data.getStatements().get(i).getStatementTypeId() == this.getStatementTypeId() \n\t\t\t\t\t&& Dna.data.getStatements().get(i).getValues().get(this.variable).equals(this.value)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean assignVariable(Scanner scan){\n\t\tif (scan.hasNext(\"\\\\=\")){\n\t\t\tif (!Parser.gobble(\"\\\\=\", scan)){ Parser.fail(\"Should have = for variables.\", scan); }\n\t\t\texpr = new Expression();\n\t\t\texpr.parse(scan);\t\t\t\t\t\t//Assignment\n\t\t\tif (!Parser.gobble(\"\\\\;\", scan)){ Parser.fail(\"Should have ; for variables.\", scan); }\n\t\t\t//Add to map\n\t\t\tParser.variables.put(name, this);\n\t\t\treturn true;\n\t\t} else if (scan.hasNext(\"\\\\;\")){\t//DECLARED NOT ASSIGNMENT\n\t\t\tif (!Parser.gobble(\"\\\\;\", scan)){ Parser.fail(\"Should have ; for variables.\", scan); }\n\t\t\t/*\t\t\tNum number = new Num();\n\t\t\tnumber.numberNodeZero();\n\t\t\texpr = number;\t\t\t\t\t//sets expr to 0. \n\t\t\t */\t\t\treturn true; \t\t\t\t\t//Shouldnt set it to 0 if there is already variable in map\n\t\t}\n\t\treturn false;\n\t}",
"final public void varcall() throws ParseException {\n jj_consume_token(VARIABLE);\n if(userVals.get(token.image)==null) {\n {if (true) throw new ParseException(\"La variable no ha sido definida.\");}\n }\n }",
"public Variable getVariable(String name);",
"public static boolean simplyContains(Regexp container, Variable contained) {\n\t\tif ((container instanceof Variable) && contained.equals(container)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (container instanceof Alternation) {\n\t\t\t\tfor (Regexp exp : ((Alternation)container).getExp()) {\n\t\t\t\t\tif(exp instanceof Concatenation) {\n\t\t\t\t\t\t//last one\n\t\t\t\t\t\tList<Regexp> list = ((Concatenation)exp).getExp();\n\t\t\t\t\t\tRegexp last = list.get(list.size()-1);\n\t\t\t\t\t\tif (last instanceof Variable) {\n\t\t\t\t\t\t\tif (((Variable)last).equals(contained))\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(exp instanceof Alternation) {//TODO test\n\t\t\t\t\t\tSystem.out.println(\"Not possible: alt in alt :RegexpUtil\");\n\t\t\t\t\t} else if(exp instanceof Variable) {\n\t\t\t\t\t\tif(contained.equals(exp)) \n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t} else if(exp instanceof KleeneStar) {//TODO test\n\t\t\t\t\t\tif(((KleeneStar) exp).getExp() instanceof Variable)\n\t\t\t\t\t\t\tSystem.out.println(\"Not possible: var in star :RegexpUtil\");\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t} else if (container instanceof Concatenation) {\n\t\t\t\t//last one\n\t\t\t\tList<Regexp> list = ((Concatenation)container).getExp();\n\t\t\t\tRegexp last = list.get(list.size()-1);\n\t\t\t\tif (last instanceof Variable) {\n\t\t\t\t\tif (((Variable)last).equals(contained))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else if (container instanceof KleeneStar) {//impossible\n\t\t\t\tif(((KleeneStar) container).getExp() instanceof Variable) {\n\t\t\t\t\tSystem.out.println(\"BIG PB: KLEENESTAR CONTAINS VARIABLE when compare simplyContains :RegexpUtil\");//TODO\n\t\t\t\t\treturn contained.equals(((KleeneStar)container).getExp());\n\t\t\t\t}\n\n\t\t\t} \t\t\t\n\t\t}\t\t\n\t\t\n\t\treturn false;\n\t}",
"@Override\n public boolean equals(Object o)\n {\n boolean answer = false;\n if (o instanceof VariableNode)\n {\n VariableNode other = (VariableNode) o;\n if (this.name.equals(other.name)) answer = true;\n }\n return answer;\n }",
"public Boolean variableExistAll(String variable) {\n\t\tArrayList<DatabaseStore> exist = (ArrayList<DatabaseStore>) this\n\t\t\t\t.getAllVarValue(variable);\n\n\t\tif (exist != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean hasVarValue() {\n return ((bitField0_ & 0x00020000) == 0x00020000);\n }",
"public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }",
"public boolean sameVariable(lexeme a, lexeme b){\n\t\treturn a.stringToken.equals(b.stringToken);\n\t}",
"public boolean hasVar42() {\n return fieldSetFlags()[43];\n }",
"public boolean hasVar123() {\n return fieldSetFlags()[124];\n }",
"@Override\n public CodeFragment visitVarDecStat(AlangParser.VarDecStatContext ctx) {\n String name = ctx.ID().getText();\n if (this.variableExists(name)) {\n this.addError(ctx, name, \"Variable already declared\");\n return new CodeFragment(\"\");\n }\n\n String alangvartype = ctx.var_type().getText();\n String llvmvartype = Types.getLLVMDefineVartype(alangvartype);\n\n String reg = this.generateNewRegister(true);\n Variable v = new Variable(reg, alangvartype, llvmvartype);\n\n int arity = ctx.index_to_global_array().size();\n v.setArity(arity);\n if (arity > 0) {\n v.setGlobalArray();\n }\n\n for (int i = 0; i < arity; i++) {\n v.addLevel(Integer.valueOf(ctx.index_to_global_array(i).INT().getText()));\n }\n\n this.globals.put(name, v);\n\n return new CodeFragment(\"\");\n }",
"boolean check (Env env) {\n if (Env.find (env, varName) != null)\n return expr.check (env);\n else {\n System.err.println (\"Semantic error: Variable \\\"\" \n + varName + \"\\\" set but not declared\");\n expr.check (env);\n return false;\n }\n }",
"@Override\n public Void visitVariableConsequence(GraafvisParser.VariableConsequenceContext ctx) {\n TerminalNode variable = ctx.HID();\n if (!variables.contains(variable.getText())) {\n int line = variable.getSymbol().getLine();\n int column = variable.getSymbol().getCharPositionInLine();\n errors.add(new UndefinedVariableError(line, column, variable.getText()));\n }\n return null;\n }",
"private static <V extends Variable<A>, A extends Value> boolean INFER(SharedDomainVariableSet<V, A> variableSet, V variable) {\n\t\tList<Constraint<V>> constraints = variableSet.getConstraintsByVariable(variable);\n\t\t\n\t\tfor (Constraint<V> constraint : constraints) {\n\t\t\t// get all the variables that need to be set for this constraint\n\t\t\tQueue<V> variablesToSet = new LinkedList<>();\n\t\t\tfor (V v : constraint.getVariables()) {\n\t\t\t\tif (!v.isSet()) {\n\t\t\t\t\tvariablesToSet.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// try and find some combination of the unset variables to make the constraint valid\n\t\t\tif (!FIND_COMBINATION(variableSet, variablesToSet, constraint)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"Aliasing getVariable();",
"public String getVariableAttribute() {\n\t\treturn variableAttribute;\n\t}",
"private static int isVariable(ArrayList<Variable> vars, String name) {\n\t\tfor (int i = 0; i < vars.size(); i++) {\n\t\t\tif (vars.get(i).name.equals(name)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public String getVariable()\n {\n return this.strVariable;\n }",
"public VariableIF createVariable(VariableDecl decl);",
"public static boolean VariableDefinition(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"VariableDefinition\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, VARIABLE_DEFINITION, \"<variable definition>\");\n r = Type(b, l + 1);\n r = r && consumeToken(b, IDENTIFIER);\n r = r && VariableDefinition_2(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public boolean isClassVarDefined(String name) {\n RubyModule module = this;\n do {\n if (module.hasClassVariable(name)) return true;\n } while ((module = module.getSuperClass()) != null);\n \n return false;\n }",
"Node getVariable();",
"@Override\n public void enterVariableAssignmentStatement(MiniJavaParser.VariableAssignmentStatementContext ctx) {\n Symbol variable = currentScope.lookup(ctx.Identifier().getText());\n if (variable.isField()) {\n mg.loadThis();\n }\n }",
"private boolean assertIdAndVarName() {\r\n\t\tfinal boolean isValidId = assertNotEmpty(cmpCfg.getId(),\r\n\t\t\t\tYValidationAspekt.VIEW_ID_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValidVar = assertNotEmpty(cmpCfg.getVariableName(),\r\n\t\t\t\tYValidationAspekt.VIEW_VAR_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValid = isValidId && isValidVar;\r\n\t\treturn isValid;\r\n\r\n\t}",
"public void setVariableType(java.lang.Short variableType) {\r\n this.variableType = variableType;\r\n }",
"String getVariable();",
"public abstract IDecisionVariable getVariable();",
"public Double visitVariable(simpleCalcParser.VariableContext ctx){\n\t\tString varname = ctx.x.getText();\n\t\tDouble d = env.get(varname);\n\t\tif (d==null){\n\t\t\tSystem.err.println(\"Variable \" + varname + \" is not defined. \\n\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t \treturn d;\n \t}",
"public static boolean variablePattern(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"variablePattern\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, VARIABLE_PATTERN, \"<variable pattern>\");\n r = variablePattern_0(b, l + 1);\n if (!r) r = variablePattern_1(b, l + 1);\n if (!r) r = variablePattern_2(b, l + 1);\n if (!r) r = variablePattern_3(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"Variable getTargetVariable();",
"public final E getDecisionVariable() {\n return var;\n }",
"@Override\r\n\tpublic void visitVariable(ExpVariable exp) {\r\n\t\tif (replaceVariables.containsKey(exp.getVarname())) {\r\n\t\t\tobject = replaceVariables.get(exp.getVarname());\r\n\t\t\tgetAttributeClass(replaceVariables.get(exp.getVarname()).name());\r\n\r\n\t\t} else if (variables.containsKey(exp.getVarname())) {\r\n\t\t\tobject = variables.get(exp.getVarname());\r\n\t\t\tif (collectionVariables.contains(exp.getVarname())) {\r\n\t\t\t\tset = true;\r\n\t\t\t}\r\n\t\t\tgetAttributeClass(exp.getVarname());\r\n\t\t} else if (exp.type().isTypeOfClass()) {\r\n\t\t\tIClass clazz = model.getClass(exp.type().shortName());\r\n\t\t\tTypeLiterals type = clazz.objectType();\r\n\t\t\ttype.addTypeLiteral(exp.getVarname());\r\n\t\t\tobject = type.getTypeLiteral(exp.getVarname());\r\n\t\t\tattributeClass = clazz;\r\n\t\t} else {\r\n\t\t\tthrow new TransformationException(\"No variable \" + exp.getVarname() + \".\");\r\n\t\t}\r\n\t}",
"public static boolean validate(Scope scope, VariableDeclarationLine line) throws\n AlreadyDeclaredVariableExcpetion {\n if(!scope.canAddVar(line.getVariable())){\n throw new AlreadyDeclaredVariableExcpetion(line.getVariable().getName());\n }\n else{\n scope.addVariable(line.getVariable());\n return true;\n }\n }",
"public void declareVariable (String variableName,boolean isFinal,boolean isArgument,String type,\r\n\t\t\t\t\t\t\t\t\tString value)throws IllegalDeclarationException,\r\n\t\t\t\t\t\t\t\t\tTypeNotSupportedException,IncompatibleTypeException{\r\n\t\t//if there's already such var in this scope\\we're trying to make an uninitialised final declaration\r\n\t\tif((isFinal&&value==null)||this.contains(variableName)){\r\n\t\t\tthrow new IllegalDeclarationException();\r\n\t\t}else {\r\n\t\t\t\tVariable newVar = vFactory.createVariable(false, isFinal, isArgument,type,parent==null);\r\n\t\t\t\tif(value==null) {//if we're trying to declare an uninitialised variable legally:\r\n\t\t\t\t\tscopeVariables.put(variableName, newVar);//we'll declare a new uninitialised variable\r\n\t\t\t\t} else if (newVar.isArgument()||(newVar.compatibleWith(value))) {\r\n\t\t\t\t\t//if value's type's compatible with the var's type/we're declaring a method's argument as\r\n\t\t\t\t\t// an argument inside it's own scope(so we'll want to treat it as initialised):\r\n\t\t\t\t\tnewVar.initialize();\r\n\t\t\t\t\tscopeVariables.put(variableName, newVar);//we'll declare a new initialised variable\r\n\t\t\t\t\t} else {//if it's not compatible, we'll check if value is a reference to another variable:\r\n\t\t\t\t\t\tdeclareWithReference(newVar,variableName,isFinal,isArgument,value);\r\n\t\t\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean removeVariable(String varName) {\n\tif (values == null) return false;\n Iterator iter = values.iterator();\n Binding binding;\n int i=0;\n int found = -1;\n while( iter.hasNext() ) {\n binding = (Binding)iter.next();\n\t if (binding.getName().equals(varName)) {\n\t\tfound = i;\n\t\tbreak;\n\t }\n\t i++;\n\t}\n if (found != -1) {\n values.remove(found);\n return true;\n } else {\n return false;\n }\n }",
"public java.lang.String getVariableValue() {\r\n return variableValue;\r\n }",
"@Override\n\tprotected String getVariableClassName() {\n\t\treturn \"variable\";\n\t}",
"public String differentiate(Parser.Variable var){\n String expVar = var.toString();\n String output;\n if (expVar.equals(variable)){\n output = \"1\";\n return output;\n }\n else{\n output = \"0\";\n return output;\n }\n }",
"public String variable()\n\t{\n\t\treturn _var;\n\t}",
"Variable createVariable();",
"Variable createVariable();",
"public boolean isExpression (Object value);",
"private Boolean evaluateBooleanExpression(Expression expr, InMemoryExpressionEvaluator eval)\n {\n try\n {\n Object result = expr.evaluate(eval);\n return (result instanceof InMemoryFailure) ? Boolean.FALSE : (Boolean)result;\n }\n catch (VariableNotSetException vnse)\n {\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021024\", vnse.getVariableExpression().getId(), StringUtils.objectArrayToString(vnse.getValues())));\n }\n\n // TODO The iteration through possible variable values needs improving. We currently just drop out\n // to here with the possible values of a variable when first encountered (and not yet set), which\n // then starts the iteration process. This likely would fail if 2 or more variables (unchecked)\n if (vnse.getValues() == null || vnse.getValues().length == 0)\n {\n // No values available for this variable, so just put null and see the result\n eval.setVariableValue(vnse.getVariableExpression().getId(), null);\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021025\", vnse.getVariableExpression().getId(), \"(null)\"));\n }\n if (Boolean.TRUE.equals(evaluateBooleanExpression(expr, eval)))\n {\n return Boolean.TRUE;\n }\n }\n else\n {\n // Set this variable and start iteration over the possible variable values\n for (int i=0;i<vnse.getValues().length;i++)\n {\n eval.setVariableValue(vnse.getVariableExpression().getId(), vnse.getValues()[i]);\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021025\", vnse.getVariableExpression().getId(), vnse.getValues()[i]));\n }\n if (Boolean.TRUE.equals(evaluateBooleanExpression(expr, eval)))\n {\n return Boolean.TRUE;\n }\n }\n }\n\n // No variable value was successful so return FALSE\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021026\", vnse.getVariableExpression().getId()));\n }\n eval.removeVariableValue(vnse.getVariableExpression().getId());\n return Boolean.FALSE;\n }\n }",
"R visitFreeVariable(Formula f, String name);",
"public Code visitVariableNode(ExpNode.VariableNode node) {\n beginGen(\"Variable\");\n SymEntry.VarEntry var = node.getVariable();\n Code code = new Code();\n code.genMemRef(staticLevel - var.getLevel(), var.getOffset());\n endGen(\"Variable\");\n return code;\n }",
"public boolean findUnifier(Term t, Term[] binding)\n {\n return ((t instanceof TermVariable) || equals(t));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof InstitucionVariable)) {\n return false;\n }\n InstitucionVariable other = (InstitucionVariable) object;\n if ((this.institucionVariablePK == null && other.institucionVariablePK != null) || (this.institucionVariablePK != null && !this.institucionVariablePK.equals(other.institucionVariablePK))) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic boolean isExpression() {\n\t\treturn heldObj.isExpression();\n\t}",
"public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException {\n boolean hasPropertyAgnosticType = false;\n EventType[] types = validationContext.getStreamTypeService().getEventTypes();\n for (int i = 0; i < validationContext.getStreamTypeService().getEventTypes().length; i++) {\n if (types[i] instanceof EventTypeSPI) {\n hasPropertyAgnosticType |= ((EventTypeSPI) types[i]).getMetadata().isPropertyAgnostic();\n }\n }\n\n if (!hasPropertyAgnosticType) {\n // the variable name should not overlap with a property name\n try {\n validationContext.getStreamTypeService().resolveByPropertyName(variableName, false);\n throw new ExprValidationException(\"The variable by name '\" + variableName + \"' is ambigous to a property of the same name\");\n } catch (DuplicatePropertyException e) {\n throw new ExprValidationException(\"The variable by name '\" + variableName + \"' is ambigous to a property of the same name\");\n } catch (PropertyNotFoundException e) {\n // expected\n }\n }\n\n VariableMetaData variableMetadata = validationContext.getVariableService().getVariableMetaData(variableName);\n if (variableMetadata == null) {\n throw new ExprValidationException(\"Failed to find variable by name '\" + variableName + \"'\");\n }\n isPrimitive = variableMetadata.getEventType() == null;\n variableType = variableMetadata.getType();\n if (optSubPropName != null) {\n if (variableMetadata.getEventType() == null) {\n throw new ExprValidationException(\"Property '\" + optSubPropName + \"' is not valid for variable '\" + variableName + \"'\");\n }\n eventTypeGetter = ((EventTypeSPI) variableMetadata.getEventType()).getGetterSPI(optSubPropName);\n if (eventTypeGetter == null) {\n throw new ExprValidationException(\"Property '\" + optSubPropName + \"' is not valid for variable '\" + variableName + \"'\");\n }\n variableType = variableMetadata.getEventType().getPropertyType(optSubPropName);\n }\n\n readersPerCp = validationContext.getVariableService().getReadersPerCP(variableName);\n if (variableMetadata.getContextPartitionName() == null) {\n readerNonCP = readersPerCp.get(EPStatementStartMethod.DEFAULT_AGENT_INSTANCE_ID);\n }\n variableType = JavaClassHelper.getBoxedType(variableType);\n return null;\n }"
] | [
"0.72173524",
"0.71662706",
"0.71326536",
"0.6973647",
"0.6745306",
"0.66976756",
"0.66608626",
"0.66179943",
"0.6353488",
"0.6326424",
"0.631969",
"0.6237904",
"0.61181915",
"0.6104181",
"0.6077425",
"0.6065578",
"0.6057984",
"0.6036384",
"0.5925986",
"0.58780944",
"0.5844513",
"0.5744791",
"0.57432",
"0.56989104",
"0.567397",
"0.5667049",
"0.56451285",
"0.562963",
"0.55767953",
"0.55744386",
"0.5572262",
"0.5569697",
"0.5562795",
"0.5560029",
"0.55591047",
"0.5547836",
"0.5542348",
"0.55387884",
"0.55385387",
"0.54840297",
"0.54122114",
"0.54051614",
"0.54025066",
"0.5397376",
"0.53853744",
"0.5374573",
"0.5368093",
"0.5366092",
"0.5359725",
"0.5355898",
"0.5346899",
"0.5343206",
"0.5343176",
"0.53397083",
"0.53391814",
"0.5328736",
"0.5324158",
"0.53210515",
"0.5310939",
"0.52946264",
"0.5284177",
"0.52803594",
"0.5279502",
"0.5268246",
"0.5251323",
"0.5249885",
"0.5246883",
"0.5241855",
"0.5238801",
"0.5231705",
"0.5221342",
"0.5216701",
"0.5214718",
"0.5204104",
"0.5191606",
"0.51910615",
"0.51857686",
"0.51771367",
"0.51733124",
"0.5158009",
"0.5154256",
"0.5136637",
"0.513377",
"0.5125503",
"0.5118364",
"0.5114448",
"0.5108263",
"0.5098298",
"0.5096563",
"0.5096454",
"0.5085594",
"0.5085594",
"0.5083235",
"0.50761485",
"0.5043507",
"0.50430244",
"0.50422394",
"0.5036037",
"0.5034537",
"0.5029329"
] | 0.77387446 | 0 |
The isLiteral() method tests whether this expression is a known constant directly (i.e. a literal). | public boolean isLiteral() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean containsLiteral();",
"public boolean isLiteral()\n {\n return this.literal;\n }",
"public final boolean hasLiteralValue ()\r\n {\r\n return _value.isLiteral();\r\n }",
"public boolean ifPeekIsLitConstant() {\n\t\tif (ifPeek(\"INT_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"CHAR_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"STRING_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"NULL_\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"TRUE_\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"FALSE_\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean literalExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"literalExpression\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _COLLAPSE_, LITERAL_EXPRESSION, \"<literal expression>\");\n r = consumeToken(b, NULL);\n if (!r) r = consumeToken(b, TRUE);\n if (!r) r = consumeToken(b, FALSE);\n if (!r) r = consumeToken(b, NUMBER);\n if (!r) r = consumeToken(b, HEX_NUMBER);\n if (!r) r = stringLiteralExpression(b, l + 1);\n if (!r) r = symbolLiteralExpression(b, l + 1);\n if (!r) r = setOrMapLiteralExpressionWrapper(b, l + 1);\n if (!r) r = listLiteralExpressionWrapper(b, l + 1);\n if (!r) r = record(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public static boolean Literal(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Literal\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, LITERAL, \"<literal>\");\n r = NumericLiteral(b, l + 1);\n if (!r) r = StringLiteral(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public boolean containsLiteral(Object literalData);",
"public boolean isConstantExpr() {\n return false;\n }",
"@Override\n\tpublic boolean hasLiteral() {\n\t\treturn heldObj.hasLiteral();\n\t}",
"public static boolean isLiteral (char c) {\n if (c != '*' && c != '?' && c != '(' && c != '[' && c != '\\\\' && c!= '|' && c!='^' && c!='.' && c!=')' && c!=']') return true;\n else return false;\n }",
"private static boolean isValidLiteral(String literal)\r\n\t{\r\n\t\tboolean result = true;\r\n\t\t\r\n\t\tchar[] literalChars = new char[literal.length()];\r\n\t\tliteral.getChars(0, literalChars.length, literalChars, 0);\r\n\t\t\r\n\t\tfor (int i = 0; i < literalChars.length; i++)\r\n\t\t{\r\n\t\t\tif (i == 0 && !Character.isJavaIdentifierStart(literalChars[i]))\r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i != 0 && !Character.isJavaIdentifierPart(literalChars[i]))\r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public boolean containsLiteralString(String literalData);",
"public static boolean isLiteral(char openDelimiter, char endDelimiter, String token)\n {\n return ( token.charAt( 0 ) == openDelimiter\n && token.charAt( token.length() -1 ) == endDelimiter )\n ;\n }",
"String getLiteral();",
"String getLiteral();",
"public final Expr literal() throws RecognitionException {\n\t\tExpr e = null;\n\n\n\t\tToken b=null;\n\t\tStringLiteral s =null;\n\t\tIntLiteral i =null;\n\t\tFloatLiteral f =null;\n\t\tCharacterLiteral c =null;\n\n\t\ttry {\n\t\t\t// ul.g:258:25: (s= stringConstant |i= integerConstant |f= floatConstant |c= characterConstant |b= TRUE |b= FALSE )\n\t\t\tint alt17=6;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase STRCONST:\n\t\t\t\t{\n\t\t\t\talt17=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INTCONST:\n\t\t\t\t{\n\t\t\t\talt17=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FLOATCONST:\n\t\t\t\t{\n\t\t\t\talt17=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CHARCONST:\n\t\t\t\t{\n\t\t\t\talt17=4;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase TRUE:\n\t\t\t\t{\n\t\t\t\talt17=5;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FALSE:\n\t\t\t\t{\n\t\t\t\talt17=6;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (state.backtracking>0) {state.failed=true; return e;}\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 17, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt17) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// ul.g:259:2: s= stringConstant\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_stringConstant_in_literal1087);\n\t\t\t\t\ts=stringConstant();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = s;}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// ul.g:260:3: i= integerConstant\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_integerConstant_in_literal1096);\n\t\t\t\t\ti=integerConstant();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = i;}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// ul.g:261:3: f= floatConstant\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_floatConstant_in_literal1105);\n\t\t\t\t\tf=floatConstant();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = f;}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// ul.g:262:3: c= characterConstant\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_characterConstant_in_literal1114);\n\t\t\t\t\tc=characterConstant();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = c;}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// ul.g:263:3: b= TRUE\n\t\t\t\t\t{\n\t\t\t\t\tb=(Token)match(input,TRUE,FOLLOW_TRUE_in_literal1123); if (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = new BooleanLiteral(true, (b!=null?b.getLine():0), b.getCharPositionInLine());}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6 :\n\t\t\t\t\t// ul.g:264:3: b= FALSE\n\t\t\t\t\t{\n\t\t\t\t\tb=(Token)match(input,FALSE,FOLLOW_FALSE_in_literal1132); if (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = new BooleanLiteral(false, (b!=null?b.getLine():0), b.getCharPositionInLine());}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn e;\n\t}",
"@Override\n public boolean isConstantExpression() {\n return false;\n }",
"public static boolean symbolLiteralExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"symbolLiteralExpression\")) return false;\n if (!nextTokenIs(b, HASH)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, SYMBOL_LITERAL_EXPRESSION, null);\n r = consumeToken(b, HASH);\n p = r; // pin = 1\n r = r && symbolLiteralExpression_1(b, l + 1);\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"private boolean literals() {\r\n return OPT(GO() && literal() && literals());\r\n }",
"public boolean isConstant()\r\n/* 92: */ {\r\n/* 93:112 */ return this.constant != null;\r\n/* 94: */ }",
"public static boolean isStringLiteral(String token)\n {\n return isLiteral( '\"', '\"', token );\n }",
"static private boolean isFirstOfLiteral(Token.Code code) {\r\n \t\t\t\treturn code == Token.Code.NULL || code == Token.Code.FALSE || code == Token.Code.TRUE || code == Token.Code.STRING || code == Token.Code.NUMBER;\r\n \t\t\t}",
"public final EObject ruleLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_BoolLiteral_0 = null;\r\n\r\n EObject this_IntLiteral_1 = null;\r\n\r\n EObject this_HexLiteral_2 = null;\r\n\r\n EObject this_RealLiteral_3 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3692:28: ( (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3693:1: (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3693:1: (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral )\r\n int alt56=4;\r\n switch ( input.LA(1) ) {\r\n case RULE_BOOL:\r\n {\r\n alt56=1;\r\n }\r\n break;\r\n case RULE_INT:\r\n {\r\n alt56=2;\r\n }\r\n break;\r\n case RULE_HEX:\r\n {\r\n alt56=3;\r\n }\r\n break;\r\n case RULE_FLOAT:\r\n {\r\n alt56=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 56, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt56) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3694:5: this_BoolLiteral_0= ruleBoolLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getBoolLiteralParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBoolLiteral_in_ruleLiteral8478);\r\n this_BoolLiteral_0=ruleBoolLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BoolLiteral_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3704:5: this_IntLiteral_1= ruleIntLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getIntLiteralParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleIntLiteral_in_ruleLiteral8505);\r\n this_IntLiteral_1=ruleIntLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_IntLiteral_1; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3714:5: this_HexLiteral_2= ruleHexLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getHexLiteralParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleHexLiteral_in_ruleLiteral8532);\r\n this_HexLiteral_2=ruleHexLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_HexLiteral_2; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3724:5: this_RealLiteral_3= ruleRealLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getRealLiteralParserRuleCall_3()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleRealLiteral_in_ruleLiteral8559);\r\n this_RealLiteral_3=ruleRealLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_RealLiteral_3; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"private static boolean symbolLiteralExpression_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"symbolLiteralExpression_1\")) return false;\n boolean r;\n r = consumeToken(b, VOID);\n if (!r) r = userDefinableOperator(b, l + 1);\n if (!r) r = simpleQualifiedReferenceExpression(b, l + 1);\n return r;\n }",
"public void setLiteral(boolean isLiteral)\n {\n this.literal = isLiteral;\n }",
"Literal createLiteral();",
"Literal createLiteral();",
"private void checkIfConstant()\r\n/* 23: */ {\r\n/* 24: 49 */ boolean isConstant = true;\r\n/* 25: 50 */ int c = 0;\r\n/* 26: 50 */ for (int max = getChildCount(); c < max; c++)\r\n/* 27: */ {\r\n/* 28: 51 */ SpelNode child = getChild(c);\r\n/* 29: 52 */ if (!(child instanceof Literal)) {\r\n/* 30: 53 */ if ((child instanceof InlineList))\r\n/* 31: */ {\r\n/* 32: 54 */ InlineList inlineList = (InlineList)child;\r\n/* 33: 55 */ if (!inlineList.isConstant()) {\r\n/* 34: 56 */ isConstant = false;\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37: */ else\r\n/* 38: */ {\r\n/* 39: 59 */ isConstant = false;\r\n/* 40: */ }\r\n/* 41: */ }\r\n/* 42: */ }\r\n/* 43: 63 */ if (isConstant)\r\n/* 44: */ {\r\n/* 45: 64 */ List<Object> constantList = new ArrayList();\r\n/* 46: 65 */ int childcount = getChildCount();\r\n/* 47: 66 */ for (int c = 0; c < childcount; c++)\r\n/* 48: */ {\r\n/* 49: 67 */ SpelNode child = getChild(c);\r\n/* 50: 68 */ if ((child instanceof Literal)) {\r\n/* 51: 69 */ constantList.add(((Literal)child).getLiteralValue().getValue());\r\n/* 52: 70 */ } else if ((child instanceof InlineList)) {\r\n/* 53: 71 */ constantList.add(((InlineList)child).getConstantValue());\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 74 */ this.constant = new TypedValue(Collections.unmodifiableList(constantList));\r\n/* 57: */ }\r\n/* 58: */ }",
"static boolean isStringLiteral(final Expr expr)\n {\n return (expr.isLiteral() && expr.getLiteralValue() instanceof String)\n || (NullHandling.replaceWithDefault() && expr.isNullLiteral());\n }",
"public Literal getLiteral();",
"public Literal getLiteral();",
"public final void literal() throws RecognitionException {\n int literal_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"literal\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(505, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 67) ) { return ; }\n // Java.g:506:5: ( integerLiteral | FloatingPointLiteral | CharacterLiteral | StringLiteral | booleanLiteral | 'null' )\n int alt87=6;\n try { dbg.enterDecision(87);\n\n switch ( input.LA(1) ) {\n case HexLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n {\n alt87=1;\n }\n break;\n case FloatingPointLiteral:\n {\n alt87=2;\n }\n break;\n case CharacterLiteral:\n {\n alt87=3;\n }\n break;\n case StringLiteral:\n {\n alt87=4;\n }\n break;\n case 71:\n case 72:\n {\n alt87=5;\n }\n break;\n case 70:\n {\n alt87=6;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 87, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n } finally {dbg.exitDecision(87);}\n\n switch (alt87) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:506:9: integerLiteral\n {\n dbg.location(506,9);\n pushFollow(FOLLOW_integerLiteral_in_literal2565);\n integerLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:507:9: FloatingPointLiteral\n {\n dbg.location(507,9);\n match(input,FloatingPointLiteral,FOLLOW_FloatingPointLiteral_in_literal2575); if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:508:9: CharacterLiteral\n {\n dbg.location(508,9);\n match(input,CharacterLiteral,FOLLOW_CharacterLiteral_in_literal2585); if (state.failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // Java.g:509:9: StringLiteral\n {\n dbg.location(509,9);\n match(input,StringLiteral,FOLLOW_StringLiteral_in_literal2595); if (state.failed) return ;\n\n }\n break;\n case 5 :\n dbg.enterAlt(5);\n\n // Java.g:510:9: booleanLiteral\n {\n dbg.location(510,9);\n pushFollow(FOLLOW_booleanLiteral_in_literal2605);\n booleanLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 6 :\n dbg.enterAlt(6);\n\n // Java.g:511:9: 'null'\n {\n dbg.location(511,9);\n match(input,70,FOLLOW_70_in_literal2615); if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 67, literal_StartIndex); }\n }\n dbg.location(512, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"literal\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public static boolean isConstant(String expression, Map context)\n throws OgnlException {\n return isConstant(parseExpression(expression), context);\n }",
"public boolean isConstant();",
"Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }",
"public abstract boolean isConstant();",
"public final AstValidator.const_expr_return const_expr() throws RecognitionException {\n AstValidator.const_expr_return retval = new AstValidator.const_expr_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.literal_return literal416 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:649:12: ( literal )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:649:14: literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_literal_in_const_expr3423);\n literal416=literal();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, literal416.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public void visit(Literal literal) {}",
"@Override\n\tpublic boolean canSetLiteral() {\n\t\treturn heldObj.canSetLiteral();\n\t}",
"public final EObject ruleLiteral() throws RecognitionException {\n EObject current = null;\n int ruleLiteral_StartIndex = input.index();\n EObject this_IntLiteral_0 = null;\n\n EObject this_RealLiteral_1 = null;\n\n EObject this_BooleanLiteral_2 = null;\n\n EObject this_StringLiteral_3 = null;\n\n EObject this_NullLiteral_4 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 106) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4551:28: ( (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral | this_BooleanLiteral_2= ruleBooleanLiteral | this_StringLiteral_3= ruleStringLiteral | this_NullLiteral_4= ruleNullLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4552:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral | this_BooleanLiteral_2= ruleBooleanLiteral | this_StringLiteral_3= ruleStringLiteral | this_NullLiteral_4= ruleNullLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4552:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral | this_BooleanLiteral_2= ruleBooleanLiteral | this_StringLiteral_3= ruleStringLiteral | this_NullLiteral_4= ruleNullLiteral )\n int alt76=5;\n switch ( input.LA(1) ) {\n case RULE_INT:\n {\n alt76=1;\n }\n break;\n case RULE_FLOAT:\n {\n alt76=2;\n }\n break;\n case KEYWORD_61:\n case KEYWORD_55:\n {\n alt76=3;\n }\n break;\n case RULE_STRING:\n {\n alt76=4;\n }\n break;\n case KEYWORD_51:\n {\n alt76=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 76, 0, input);\n\n throw nvae;\n }\n\n switch (alt76) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4553:2: this_IntLiteral_0= ruleIntLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getIntLiteralParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleIntLiteral_in_ruleLiteral9222);\n this_IntLiteral_0=ruleIntLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_IntLiteral_0;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4566:2: this_RealLiteral_1= ruleRealLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getRealLiteralParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleRealLiteral_in_ruleLiteral9252);\n this_RealLiteral_1=ruleRealLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_RealLiteral_1;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 3 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4579:2: this_BooleanLiteral_2= ruleBooleanLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteral9282);\n this_BooleanLiteral_2=ruleBooleanLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_BooleanLiteral_2;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 4 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4592:2: this_StringLiteral_3= ruleStringLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteral9312);\n this_StringLiteral_3=ruleStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_StringLiteral_3;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 5 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4605:2: this_NullLiteral_4= ruleNullLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getNullLiteralParserRuleCall_4()); \n \n }\n pushFollow(FOLLOW_ruleNullLiteral_in_ruleLiteral9342);\n this_NullLiteral_4=ruleNullLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_NullLiteral_4;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 106, ruleLiteral_StartIndex); }\n }\n return current;\n }",
"public final EObject ruleLiteralValueExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_NumberLiteral_0 = null;\r\n\r\n EObject this_BooleanLiteral_1 = null;\r\n\r\n EObject this_NullLiteral_2 = null;\r\n\r\n EObject this_StringLiteral_3 = null;\r\n\r\n EObject this_UnlimitedLiteral_4 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4134:28: ( (this_NumberLiteral_0= ruleNumberLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_NullLiteral_2= ruleNullLiteral | this_StringLiteral_3= ruleStringLiteral | this_UnlimitedLiteral_4= ruleUnlimitedLiteral ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4135:1: (this_NumberLiteral_0= ruleNumberLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_NullLiteral_2= ruleNullLiteral | this_StringLiteral_3= ruleStringLiteral | this_UnlimitedLiteral_4= ruleUnlimitedLiteral )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4135:1: (this_NumberLiteral_0= ruleNumberLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_NullLiteral_2= ruleNullLiteral | this_StringLiteral_3= ruleStringLiteral | this_UnlimitedLiteral_4= ruleUnlimitedLiteral )\r\n int alt50=5;\r\n switch ( input.LA(1) ) {\r\n case RULE_INT:\r\n case RULE_POSITIVE_SMALL_DECIMAL:\r\n case RULE_SMALL_DECIMAL:\r\n case RULE_EBIGDECIMAL:\r\n {\r\n alt50=1;\r\n }\r\n break;\r\n case RULE_EBOOLEAN:\r\n {\r\n alt50=2;\r\n }\r\n break;\r\n case RULE_NULL:\r\n {\r\n alt50=3;\r\n }\r\n break;\r\n case RULE_STRING:\r\n {\r\n alt50=4;\r\n }\r\n break;\r\n case 46:\r\n {\r\n alt50=5;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 50, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt50) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4136:5: this_NumberLiteral_0= ruleNumberLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getNumberLiteralParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNumberLiteral_in_ruleLiteralValueExpression8863);\r\n this_NumberLiteral_0=ruleNumberLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NumberLiteral_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4146:5: this_BooleanLiteral_1= ruleBooleanLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getBooleanLiteralParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteralValueExpression8890);\r\n this_BooleanLiteral_1=ruleBooleanLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BooleanLiteral_1; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4156:5: this_NullLiteral_2= ruleNullLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getNullLiteralParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNullLiteral_in_ruleLiteralValueExpression8917);\r\n this_NullLiteral_2=ruleNullLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NullLiteral_2; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4166:5: this_StringLiteral_3= ruleStringLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getStringLiteralParserRuleCall_3()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteralValueExpression8944);\r\n this_StringLiteral_3=ruleStringLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_StringLiteral_3; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 5 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4176:5: this_UnlimitedLiteral_4= ruleUnlimitedLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getUnlimitedLiteralParserRuleCall_4()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleUnlimitedLiteral_in_ruleLiteralValueExpression8971);\r\n this_UnlimitedLiteral_4=ruleUnlimitedLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_UnlimitedLiteral_4; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"SimpleLiteral createSimpleLiteral();",
"public final EObject ruleLiteralExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_IntLiteral_0 = null;\n\n EObject this_LongLiteral_1 = null;\n\n EObject this_FloatLiteral_2 = null;\n\n EObject this_DoubleLiteral_3 = null;\n\n EObject this_CharLiteral_4 = null;\n\n EObject this_StringLiteral_5 = null;\n\n EObject this_BooleanLiteral_6 = null;\n\n EObject this_NullLiteral_7 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1548:28: ( (this_IntLiteral_0= ruleIntLiteral | this_LongLiteral_1= ruleLongLiteral | this_FloatLiteral_2= ruleFloatLiteral | this_DoubleLiteral_3= ruleDoubleLiteral | this_CharLiteral_4= ruleCharLiteral | this_StringLiteral_5= ruleStringLiteral | this_BooleanLiteral_6= ruleBooleanLiteral | this_NullLiteral_7= ruleNullLiteral ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1549:1: (this_IntLiteral_0= ruleIntLiteral | this_LongLiteral_1= ruleLongLiteral | this_FloatLiteral_2= ruleFloatLiteral | this_DoubleLiteral_3= ruleDoubleLiteral | this_CharLiteral_4= ruleCharLiteral | this_StringLiteral_5= ruleStringLiteral | this_BooleanLiteral_6= ruleBooleanLiteral | this_NullLiteral_7= ruleNullLiteral )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1549:1: (this_IntLiteral_0= ruleIntLiteral | this_LongLiteral_1= ruleLongLiteral | this_FloatLiteral_2= ruleFloatLiteral | this_DoubleLiteral_3= ruleDoubleLiteral | this_CharLiteral_4= ruleCharLiteral | this_StringLiteral_5= ruleStringLiteral | this_BooleanLiteral_6= ruleBooleanLiteral | this_NullLiteral_7= ruleNullLiteral )\n int alt24=8;\n switch ( input.LA(1) ) {\n case RULE_INT:\n {\n alt24=1;\n }\n break;\n case RULE_LONG:\n {\n alt24=2;\n }\n break;\n case RULE_FLOAT:\n {\n alt24=3;\n }\n break;\n case RULE_DOUBLE:\n {\n alt24=4;\n }\n break;\n case RULE_CHAR:\n {\n alt24=5;\n }\n break;\n case RULE_STRING:\n {\n alt24=6;\n }\n break;\n case 48:\n case 49:\n {\n alt24=7;\n }\n break;\n case 50:\n {\n alt24=8;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 24, 0, input);\n\n throw nvae;\n }\n\n switch (alt24) {\n case 1 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1550:5: this_IntLiteral_0= ruleIntLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getIntLiteralParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleIntLiteral_in_ruleLiteralExpression3671);\n this_IntLiteral_0=ruleIntLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_IntLiteral_0; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1560:5: this_LongLiteral_1= ruleLongLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLongLiteralParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleLongLiteral_in_ruleLiteralExpression3698);\n this_LongLiteral_1=ruleLongLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_LongLiteral_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 3 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1570:5: this_FloatLiteral_2= ruleFloatLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getFloatLiteralParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleFloatLiteral_in_ruleLiteralExpression3725);\n this_FloatLiteral_2=ruleFloatLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_FloatLiteral_2; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 4 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1580:5: this_DoubleLiteral_3= ruleDoubleLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getDoubleLiteralParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_ruleDoubleLiteral_in_ruleLiteralExpression3752);\n this_DoubleLiteral_3=ruleDoubleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_DoubleLiteral_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 5 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1590:5: this_CharLiteral_4= ruleCharLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getCharLiteralParserRuleCall_4()); \n \n }\n pushFollow(FOLLOW_ruleCharLiteral_in_ruleLiteralExpression3779);\n this_CharLiteral_4=ruleCharLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_CharLiteral_4; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 6 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1600:5: this_StringLiteral_5= ruleStringLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getStringLiteralParserRuleCall_5()); \n \n }\n pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteralExpression3806);\n this_StringLiteral_5=ruleStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_StringLiteral_5; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 7 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1610:5: this_BooleanLiteral_6= ruleBooleanLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getBooleanLiteralParserRuleCall_6()); \n \n }\n pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteralExpression3833);\n this_BooleanLiteral_6=ruleBooleanLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_BooleanLiteral_6; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 8 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1620:5: this_NullLiteral_7= ruleNullLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getNullLiteralParserRuleCall_7()); \n \n }\n pushFollow(FOLLOW_ruleNullLiteral_in_ruleLiteralExpression3860);\n this_NullLiteral_7=ruleNullLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_NullLiteral_7; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"@Override\n\tpublic boolean getIsConstant() {\n\t\treturn false;\n\t}",
"public static boolean StringLiteral(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"StringLiteral\")) return false;\n if (!nextTokenIs(b, \"<string literal>\", OPENINGAPOS, OPENINGQUOT)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL, \"<string literal>\");\n r = QuotStringLiteral(b, l + 1);\n if (!r) r = AposStringLiteral(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public Literal getLiteral(Object literalData);",
"public Literal getLiteralString(String literalData);",
"public boolean isConstant() {\n return false;\n }",
"public static boolean stringLiteralExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringLiteralExpression\")) return false;\n if (!nextTokenIs(b, \"<string literal expression>\", OPEN_QUOTE, RAW_SINGLE_QUOTED_STRING, RAW_TRIPLE_QUOTED_STRING)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL_EXPRESSION, \"<string literal expression>\");\n r = stringLiteralExpression_0(b, l + 1);\n while (r) {\n int c = current_position_(b);\n if (!stringLiteralExpression_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"stringLiteralExpression\", c)) break;\n }\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"@Test\n public void TestLiteralExpr() {\n testLiteralExprPositive(\"false\", Type.BOOLEAN);\n testLiteralExprPositive(\"1\", Type.TINYINT);\n testLiteralExprPositive(\"1\", Type.SMALLINT);\n testLiteralExprPositive(\"1\", Type.INT);\n testLiteralExprPositive(\"1\", Type.BIGINT);\n testLiteralExprPositive(\"1.0\", Type.FLOAT);\n testLiteralExprPositive(\"1.0\", Type.DOUBLE);\n testLiteralExprPositive(\"ABC\", Type.STRING);\n testLiteralExprPositive(\"ABC\", Type.BINARY);\n testLiteralExprPositive(\"1.1\", ScalarType.createDecimalType(2, 1));\n testLiteralExprPositive(\"2001-02-28\", Type.DATE);\n\n // INVALID_TYPE should always fail\n testLiteralExprNegative(\"ABC\", Type.INVALID);\n\n // Invalid casts\n testLiteralExprNegative(\"ABC\", Type.BOOLEAN);\n testLiteralExprNegative(\"ABC\", Type.TINYINT);\n testLiteralExprNegative(\"ABC\", Type.SMALLINT);\n testLiteralExprNegative(\"ABC\", Type.INT);\n testLiteralExprNegative(\"ABC\", Type.BIGINT);\n testLiteralExprNegative(\"ABC\", Type.FLOAT);\n testLiteralExprNegative(\"ABC\", Type.DOUBLE);\n testLiteralExprNegative(\"ABC\", Type.TIMESTAMP);\n testLiteralExprNegative(\"ABC\", ScalarType.createDecimalType());\n testLiteralExprNegative(\"ABC\", Type.DATE);\n // Invalid date test\n testLiteralExprNegative(\"2001-02-31\", Type.DATE);\n\n // DATETIME/TIMESTAMP types not implemented\n testLiteralExprNegative(\"2010-01-01\", Type.DATETIME);\n testLiteralExprNegative(\"2010-01-01\", Type.TIMESTAMP);\n }",
"public boolean isConstant() {\n\t\treturn this.isConstant;\n\t}",
"public boolean containsLiteralNumber(Double literalData);",
"public JExpression createConstant(Outline outline, XmlString literal) {\n/* 237 */ JClass type = toType(outline, Aspect.EXPOSED);\n/* 238 */ for (CEnumConstant mem : this.members) {\n/* 239 */ if (mem.getLexicalValue().equals(literal.value))\n/* 240 */ return (JExpression)type.staticRef(mem.getName()); \n/* */ } \n/* 242 */ return null;\n/* */ }",
"public static boolean StringLiteralOrWildcard(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"StringLiteralOrWildcard\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL_OR_WILDCARD, \"<string literal or wildcard>\");\n r = StringLiteral(b, l + 1);\n if (!r) r = consumeToken(b, STAR_SIGN);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public boolean isConstant() {\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tObject ob = elements.get(n);\r\n\t\t\tif (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tTType ttype = tob.getTType();\r\n\t\t\t\t// If this is a query plan, return false\r\n\t\t\t\tif (ttype instanceof TQueryPlanType) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t// If this is an array, check the array for constants\r\n\t\t\t\telse if (ttype instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int p = 0; p < exp_list.length; ++p) {\r\n\t\t\t\t\t\tif (!exp_list[p].isConstant()) {\r\n\t\t\t\t\t\t\treturn false;\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} else if (ob instanceof Variable) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int p = 0; p < params.length; ++p) {\r\n\t\t\t\t\tif (!params[p].isConstant()) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public Literal getLiteralBoolean(Boolean literalData);",
"public boolean isConstant() throws Exception {\n return false;\n }",
"@Override\n public boolean isConstant() {\n return false;\n }",
"public final EObject ruleLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject this_NumericLiteral_0 = null;\n\n EObject this_BooleanLiteral_1 = null;\n\n EObject this_StringLiteral_2 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4359:6: ( (this_NumericLiteral_0= ruleNumericLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_StringLiteral_2= ruleStringLiteral ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4360:1: (this_NumericLiteral_0= ruleNumericLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_StringLiteral_2= ruleStringLiteral )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4360:1: (this_NumericLiteral_0= ruleNumericLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_StringLiteral_2= ruleStringLiteral )\n int alt64=3;\n switch ( input.LA(1) ) {\n case RULE_REAL:\n case RULE_INTEGER:\n {\n alt64=1;\n }\n break;\n case 76:\n case 77:\n {\n alt64=2;\n }\n break;\n case RULE_STRING:\n {\n alt64=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"4360:1: (this_NumericLiteral_0= ruleNumericLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_StringLiteral_2= ruleStringLiteral )\", 64, 0, input);\n\n throw nvae;\n }\n\n switch (alt64) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4361:5: this_NumericLiteral_0= ruleNumericLiteral\n {\n \n currentNode=createCompositeNode(grammarAccess.getLiteralAccess().getNumericLiteralParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_ruleNumericLiteral_in_ruleLiteral7558);\n this_NumericLiteral_0=ruleNumericLiteral();\n _fsp--;\n\n \n current = this_NumericLiteral_0; \n currentNode = currentNode.getParent();\n \n\n }\n break;\n case 2 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4371:5: this_BooleanLiteral_1= ruleBooleanLiteral\n {\n \n currentNode=createCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_1(), currentNode); \n \n pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteral7585);\n this_BooleanLiteral_1=ruleBooleanLiteral();\n _fsp--;\n\n \n current = this_BooleanLiteral_1; \n currentNode = currentNode.getParent();\n \n\n }\n break;\n case 3 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4381:5: this_StringLiteral_2= ruleStringLiteral\n {\n \n currentNode=createCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_2(), currentNode); \n \n pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteral7612);\n this_StringLiteral_2=ruleStringLiteral();\n _fsp--;\n\n \n current = this_StringLiteral_2; \n currentNode = currentNode.getParent();\n \n\n }\n break;\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"private static boolean constantPattern_10(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"constantPattern_10\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeTokens(b, 0, CONST, LPAREN);\n r = r && expression(b, l + 1);\n r = r && consumeToken(b, RPAREN);\n exit_section_(b, m, null, r);\n return r;\n }",
"public default boolean isConstant() {\n\t\treturn getValue().isConstantAddress();\n\t}",
"@Override\n\tpublic boolean canUpdateLiteral(Frame frame, OPCode op) {\n\t\treturn heldObj.canUpdateLiteral(frame, op);\n\t}",
"public static boolean listLiteralExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"listLiteralExpression\")) return false;\n if (!nextTokenIs(b, \"<list literal expression>\", CONST, LBRACKET, LT)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, LIST_LITERAL_EXPRESSION, \"<list literal expression>\");\n r = listLiteralExpression_0(b, l + 1);\n r = r && listLiteralExpression_1(b, l + 1);\n r = r && consumeToken(b, LBRACKET);\n r = r && listLiteralExpression_3(b, l + 1);\n r = r && consumeToken(b, RBRACKET);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"private static boolean stringLiteralExpression_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringLiteralExpression_0\")) return false;\n boolean r;\n r = consumeToken(b, RAW_SINGLE_QUOTED_STRING);\n if (!r) r = consumeToken(b, RAW_TRIPLE_QUOTED_STRING);\n if (!r) r = stringTemplate(b, l + 1);\n return r;\n }",
"RealLiteralExp createRealLiteralExp();",
"public boolean isLiteralNodeSelected() {\n ASTNode[] nodes = getSelectedNodes();\n if (nodes.length != 1)\n return false;\n ASTNode node = nodes[0];\n switch(node.getNodeType()) {\n case ASTNode.BOOLEAN_LITERAL:\n case ASTNode.CHARACTER_LITERAL:\n case ASTNode.NULL_LITERAL:\n case ASTNode.NUMBER_LITERAL:\n return true;\n default:\n return false;\n }\n }",
"public Literal getDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);",
"public final EncodedValue literal() throws RecognitionException {\n EncodedValue encodedValue = null;\n\n\n int integer_literal24 = 0;\n long long_literal25 = 0;\n short short_literal26 = 0;\n byte byte_literal27 = 0;\n float float_literal28 = 0.0f;\n double double_literal29 = 0.0;\n char char_literal30 = 0;\n String string_literal31 = null;\n boolean bool_literal32 = false;\n String type_descriptor33 = null;\n List<EncodedValue> array_literal34 = null;\n TreeRuleReturnScope subannotation35 = null;\n FieldReference field_literal36 = null;\n MethodReference method_literal37 = null;\n FieldReference enum_literal38 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:272:3: ( integer_literal | long_literal | short_literal | byte_literal | float_literal | double_literal | char_literal | string_literal | bool_literal | NULL_LITERAL | type_descriptor | array_literal | subannotation | field_literal | method_literal | enum_literal )\n int alt9 = 16;\n switch (input.LA(1)) {\n case INTEGER_LITERAL: {\n alt9 = 1;\n }\n break;\n case LONG_LITERAL: {\n alt9 = 2;\n }\n break;\n case SHORT_LITERAL: {\n alt9 = 3;\n }\n break;\n case BYTE_LITERAL: {\n alt9 = 4;\n }\n break;\n case FLOAT_LITERAL: {\n alt9 = 5;\n }\n break;\n case DOUBLE_LITERAL: {\n alt9 = 6;\n }\n break;\n case CHAR_LITERAL: {\n alt9 = 7;\n }\n break;\n case STRING_LITERAL: {\n alt9 = 8;\n }\n break;\n case BOOL_LITERAL: {\n alt9 = 9;\n }\n break;\n case NULL_LITERAL: {\n alt9 = 10;\n }\n break;\n case ARRAY_DESCRIPTOR:\n case CLASS_DESCRIPTOR:\n case PRIMITIVE_TYPE:\n case VOID_TYPE: {\n alt9 = 11;\n }\n break;\n case I_ENCODED_ARRAY: {\n alt9 = 12;\n }\n break;\n case I_SUBANNOTATION: {\n alt9 = 13;\n }\n break;\n case I_ENCODED_FIELD: {\n alt9 = 14;\n }\n break;\n case I_ENCODED_METHOD: {\n alt9 = 15;\n }\n break;\n case I_ENCODED_ENUM: {\n alt9 = 16;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n throw nvae;\n }\n switch (alt9) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:272:5: integer_literal\n {\n pushFollow(FOLLOW_integer_literal_in_literal442);\n integer_literal24 = integer_literal();\n state._fsp--;\n\n encodedValue = new ImmutableIntEncodedValue(integer_literal24);\n }\n break;\n case 2:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:273:5: long_literal\n {\n pushFollow(FOLLOW_long_literal_in_literal450);\n long_literal25 = long_literal();\n state._fsp--;\n\n encodedValue = new ImmutableLongEncodedValue(long_literal25);\n }\n break;\n case 3:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:274:5: short_literal\n {\n pushFollow(FOLLOW_short_literal_in_literal458);\n short_literal26 = short_literal();\n state._fsp--;\n\n encodedValue = new ImmutableShortEncodedValue(short_literal26);\n }\n break;\n case 4:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:275:5: byte_literal\n {\n pushFollow(FOLLOW_byte_literal_in_literal466);\n byte_literal27 = byte_literal();\n state._fsp--;\n\n encodedValue = new ImmutableByteEncodedValue(byte_literal27);\n }\n break;\n case 5:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:276:5: float_literal\n {\n pushFollow(FOLLOW_float_literal_in_literal474);\n float_literal28 = float_literal();\n state._fsp--;\n\n encodedValue = new ImmutableFloatEncodedValue(float_literal28);\n }\n break;\n case 6:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:277:5: double_literal\n {\n pushFollow(FOLLOW_double_literal_in_literal482);\n double_literal29 = double_literal();\n state._fsp--;\n\n encodedValue = new ImmutableDoubleEncodedValue(double_literal29);\n }\n break;\n case 7:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:278:5: char_literal\n {\n pushFollow(FOLLOW_char_literal_in_literal490);\n char_literal30 = char_literal();\n state._fsp--;\n\n encodedValue = new ImmutableCharEncodedValue(char_literal30);\n }\n break;\n case 8:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:279:5: string_literal\n {\n pushFollow(FOLLOW_string_literal_in_literal498);\n string_literal31 = string_literal();\n state._fsp--;\n\n encodedValue = new ImmutableStringEncodedValue(string_literal31);\n }\n break;\n case 9:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:280:5: bool_literal\n {\n pushFollow(FOLLOW_bool_literal_in_literal506);\n bool_literal32 = bool_literal();\n state._fsp--;\n\n encodedValue = ImmutableBooleanEncodedValue.forBoolean(bool_literal32);\n }\n break;\n case 10:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:281:5: NULL_LITERAL\n {\n match(input, NULL_LITERAL, FOLLOW_NULL_LITERAL_in_literal514);\n encodedValue = ImmutableNullEncodedValue.INSTANCE;\n }\n break;\n case 11:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:282:5: type_descriptor\n {\n pushFollow(FOLLOW_type_descriptor_in_literal522);\n type_descriptor33 = type_descriptor();\n state._fsp--;\n\n encodedValue = new ImmutableTypeEncodedValue(type_descriptor33);\n }\n break;\n case 12:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:283:5: array_literal\n {\n pushFollow(FOLLOW_array_literal_in_literal530);\n array_literal34 = array_literal();\n state._fsp--;\n\n encodedValue = new ImmutableArrayEncodedValue(array_literal34);\n }\n break;\n case 13:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:284:5: subannotation\n {\n pushFollow(FOLLOW_subannotation_in_literal538);\n subannotation35 = subannotation();\n state._fsp--;\n\n encodedValue = new ImmutableAnnotationEncodedValue((subannotation35 != null ? ((smaliTreeWalker.subannotation_return) subannotation35).annotationType : null), (subannotation35 != null ? ((smaliTreeWalker.subannotation_return) subannotation35).elements : null));\n }\n break;\n case 14:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:285:5: field_literal\n {\n pushFollow(FOLLOW_field_literal_in_literal546);\n field_literal36 = field_literal();\n state._fsp--;\n\n encodedValue = new ImmutableFieldEncodedValue(field_literal36);\n }\n break;\n case 15:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:286:5: method_literal\n {\n pushFollow(FOLLOW_method_literal_in_literal554);\n method_literal37 = method_literal();\n state._fsp--;\n\n encodedValue = new ImmutableMethodEncodedValue(method_literal37);\n }\n break;\n case 16:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:287:5: enum_literal\n {\n pushFollow(FOLLOW_enum_literal_in_literal562);\n enum_literal38 = enum_literal();\n state._fsp--;\n\n encodedValue = new ImmutableEnumEncodedValue(enum_literal38);\n }\n break;\n\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return encodedValue;\n }",
"boolean hasConstantValue();",
"@Override\n\tpublic boolean canLiteralSurvive(Frame frame) {\n\t\treturn heldObj.canLiteralSurvive(frame);\n\t}",
"public Literal createLiteral(boolean b) throws ModelException {\n\n return createLiteral(String.valueOf(b));\n }",
"public boolean containsLiteralBoolean(Boolean literalData);",
"public final ValueNode literal() throws RecognitionException {\n ValueNode value = null;\n\n CommonTree NUMBER11=null;\n CommonTree FPNUMBER12=null;\n CommonTree STRING13=null;\n\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:3: ( NUMBER | FPNUMBER | STRING | TRUE | FALSE | NULL )\n int alt9=6;\n switch ( input.LA(1) ) {\n case NUMBER:\n {\n alt9=1;\n }\n break;\n case FPNUMBER:\n {\n alt9=2;\n }\n break;\n case STRING:\n {\n alt9=3;\n }\n break;\n case TRUE:\n {\n alt9=4;\n }\n break;\n case FALSE:\n {\n alt9=5;\n }\n break;\n case NULL:\n {\n alt9=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n }\n\n switch (alt9) {\n case 1 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:5: NUMBER\n {\n NUMBER11=(CommonTree)match(input,NUMBER,FOLLOW_NUMBER_in_literal248); \n value = new ValueNode((NUMBER11!=null?NUMBER11.getText():null), \"int\");\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:48:5: FPNUMBER\n {\n FPNUMBER12=(CommonTree)match(input,FPNUMBER,FOLLOW_FPNUMBER_in_literal256); \n value = new ValueNode((FPNUMBER12!=null?FPNUMBER12.getText():null), \"double\");\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:49:5: STRING\n {\n STRING13=(CommonTree)match(input,STRING,FOLLOW_STRING_in_literal264); \n value = new ValueNode((STRING13!=null?STRING13.getText():null), \"string\");\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:50:5: TRUE\n {\n match(input,TRUE,FOLLOW_TRUE_in_literal272); \n value = new ValueNode(\"true\", \"boolean\");\n\n }\n break;\n case 5 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:51:5: FALSE\n {\n match(input,FALSE,FOLLOW_FALSE_in_literal280); \n value = new ValueNode(\"false\", \"boolean\");\n\n }\n break;\n case 6 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:52:5: NULL\n {\n match(input,NULL,FOLLOW_NULL_in_literal288); \n value = new ValueNode(\"null\", \"null\");\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return value;\n }",
"public boolean hasConstant(String name) {\n assert IdUtil.isConstant(name);\n return constantTableContains(name);\n }",
"public final void entryRuleLiteral() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2680:1: ( ruleLiteral EOF )\r\n // InternalGo.g:2681:1: ruleLiteral EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getLiteralRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getLiteralRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"private LiteralToken nextRegularExpressionLiteralToken() {\n LiteralToken token = scanner.nextRegularExpressionLiteralToken();\n lastSourcePosition = token.location.end;\n return token;\n }",
"public Literal setLiteralString(String literalData);",
"public Literal createLiteral(int b) throws ModelException {\n\n return createLiteral(String.valueOf(b));\n }",
"public ParseTreeNode visit(LiteralNode literalNode) {\n return null;\n }",
"private static boolean AposStringLiteral_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral_1\")) return false;\n int c = current_position_(b);\n while (true) {\n if (!AposStringLiteral_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"AposStringLiteral_1\", c)) break;\n c = current_position_(b);\n }\n return true;\n }",
"public final void entryRuleLiteralType() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2755:1: ( ruleLiteralType EOF )\r\n // InternalGo.g:2756:1: ruleLiteralType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getLiteralTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleLiteralType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getLiteralTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public boolean previousExpressionConstant() {\r\n return isConstant;\r\n }",
"public LiteralExpression (String str){\n _value = str;\n }",
"public boolean isConstantDefined(String name) {\n assert IdUtil.isConstant(name);\n boolean isObject = this == getRuntime().getObject();\n \n RubyModule module = this;\n \n do {\n Object value;\n if ((value = module.constantTableFetch(name)) != null) {\n if (value != UNDEF) return true;\n return getRuntime().getLoadService().autoloadFor(\n module.getName() + \"::\" + name) != null;\n }\n \n } while (isObject && (module = module.getSuperClass()) != null );\n \n return false;\n }",
"public Literal createLiteral(char b) throws ModelException {\n\n return createLiteral(String.valueOf(b));\n }",
"public final AstValidator.literal_return literal() throws RecognitionException {\n AstValidator.literal_return retval = new AstValidator.literal_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.scalar_return scalar417 =null;\n\n AstValidator.map_return map418 =null;\n\n AstValidator.bag_return bag419 =null;\n\n AstValidator.tuple_return tuple420 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:9: ( scalar | map | bag | tuple )\n int alt116=4;\n switch ( input.LA(1) ) {\n case BIGDECIMALNUMBER:\n case BIGINTEGERNUMBER:\n case DOUBLENUMBER:\n case FALSE:\n case FLOATNUMBER:\n case INTEGER:\n case LONGINTEGER:\n case MINUS:\n case NULL:\n case QUOTEDSTRING:\n case TRUE:\n {\n alt116=1;\n }\n break;\n case MAP_VAL:\n {\n alt116=2;\n }\n break;\n case BAG_VAL:\n {\n alt116=3;\n }\n break;\n case TUPLE_VAL:\n {\n alt116=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 116, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt116) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:11: scalar\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_scalar_in_literal3432);\n scalar417=scalar();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, scalar417.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:20: map\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_map_in_literal3436);\n map418=map();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, map418.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:26: bag\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_bag_in_literal3440);\n bag419=bag();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, bag419.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 4 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:652:32: tuple\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_tuple_in_literal3444);\n tuple420=tuple();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, tuple420.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"StringLiteralExp createStringLiteralExp();",
"@JRubyMethod(name = \"const_defined?\", required = 1)\n public RubyBoolean const_defined_p(ThreadContext context, IRubyObject symbol) {\n // Note: includes part of fix for JRUBY-1339\n return context.getRuntime().newBoolean(fastIsConstantDefined(validateConstant(symbol.asJavaString()).intern()));\n }",
"<C> RealLiteralExp<C> createRealLiteralExp();",
"UndefinedLiteralExp createUndefinedLiteralExp();",
"private static boolean AposStringLiteral_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, PREDEFINEDENTITYREF);\n if (!r) r = consumeToken(b, CHARREF);\n if (!r) r = EscapeApos(b, l + 1);\n if (!r) r = consumeToken(b, STRINGCHAR);\n exit_section_(b, m, null, r);\n return r;\n }",
"InvalidLiteralExp createInvalidLiteralExp();",
"@Test\n\tpublic void testStringLiteral() throws ParseException {\n\n\t\t// non-empty string\n\t\tStringLiteral stringLiteral = langParser(\"'abc'\").stringLiteral();\n\t\tassertEquals(stringLiteral.getValue(), \"abc\");\n\n\t\t// empty string\n\t\tstringLiteral = langParser(\"''\").stringLiteral();\n\t\tassertEquals(stringLiteral.getValue(), \"\");\n\t}",
"boolean hasLanguageConstant();",
"public Literal setDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);",
"public final void rule__Operand__LiteralAssignment_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:18200:1: ( ( ruleLiteral ) )\r\n // InternalGo.g:18201:2: ( ruleLiteral )\r\n {\r\n // InternalGo.g:18201:2: ( ruleLiteral )\r\n // InternalGo.g:18202:3: ruleLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOperandAccess().getLiteralLiteralParserRuleCall_0_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOperandAccess().getLiteralLiteralParserRuleCall_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"protected boolean isConstant( String word )\r\n\t{\r\n\t\treturn m_listConstants.contains(word);\r\n\t}",
"public boolean isConstant()\n {\n return analysis.getRequiredBindings().isEmpty();\n }",
"static boolean AposStringLiteral(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral\")) return false;\n if (!nextTokenIs(b, OPENINGAPOS)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, OPENINGAPOS);\n r = r && AposStringLiteral_1(b, l + 1);\n r = r && consumeToken(b, CLOSINGAPOS);\n exit_section_(b, m, null, r);\n return r;\n }",
"interface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.AbstractConditionImpl <em>Abstract Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.AbstractConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getAbstractCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass ABSTRACT_CONDITION = eINSTANCE.getAbstractCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Query</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute ABSTRACT_CONDITION__OCL_QUERY = eINSTANCE.getAbstractCondition_OclQuery();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.PreConditionImpl <em>Pre Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.PreConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPreCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass PRE_CONDITION = eINSTANCE.getPreCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link rMSAS.constraintModel.impl.PostConditionImpl <em>Post Condition</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see rMSAS.constraintModel.impl.PostConditionImpl\n\t\t * @see rMSAS.constraintModel.impl.ConstraintModelPackageImpl#getPostCondition()\n\t\t * @generated\n\t\t */\n\t\tEClass POST_CONDITION = eINSTANCE.getPostCondition();\n\n\t}"
] | [
"0.7909331",
"0.7905604",
"0.7753486",
"0.72126895",
"0.7161958",
"0.71122956",
"0.707727",
"0.6991011",
"0.6938282",
"0.6934498",
"0.6915534",
"0.6885337",
"0.68475765",
"0.6705633",
"0.6705633",
"0.6696131",
"0.6689399",
"0.6681434",
"0.6647509",
"0.6634992",
"0.6634327",
"0.6605266",
"0.6594341",
"0.65650237",
"0.6564313",
"0.6553527",
"0.6553527",
"0.65358955",
"0.65297395",
"0.65147316",
"0.65147316",
"0.64733386",
"0.6441286",
"0.63382506",
"0.63139147",
"0.62644416",
"0.6233767",
"0.6163068",
"0.6129959",
"0.6099062",
"0.60900897",
"0.6072165",
"0.60622877",
"0.6059916",
"0.6044669",
"0.60414225",
"0.6030748",
"0.60276985",
"0.60267144",
"0.5964908",
"0.5938421",
"0.5917273",
"0.5916907",
"0.5905291",
"0.5897657",
"0.5877771",
"0.5866933",
"0.58539087",
"0.5852465",
"0.58487403",
"0.5845143",
"0.58443666",
"0.58233064",
"0.58199865",
"0.58013034",
"0.5739776",
"0.5716772",
"0.5704693",
"0.5691416",
"0.56855345",
"0.5662449",
"0.5659047",
"0.562842",
"0.5605227",
"0.55826336",
"0.5573485",
"0.5526185",
"0.551213",
"0.55109316",
"0.5508107",
"0.55073607",
"0.5490368",
"0.5483456",
"0.5464286",
"0.54516083",
"0.5448261",
"0.544056",
"0.54357815",
"0.5433666",
"0.5428604",
"0.54283637",
"0.5427483",
"0.54230195",
"0.54186904",
"0.54128426",
"0.54092914",
"0.5408485",
"0.5401855",
"0.53939146",
"0.53914607"
] | 0.7958427 | 0 |
The isConstantExpr() method tests whether this expression is a constant expression (i.e. it is reducable to a constant and has no references to variables, maps, etc). | public boolean isConstantExpr() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isConstantExpression() {\n return false;\n }",
"public boolean isConstant() {\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tObject ob = elements.get(n);\r\n\t\t\tif (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tTType ttype = tob.getTType();\r\n\t\t\t\t// If this is a query plan, return false\r\n\t\t\t\tif (ttype instanceof TQueryPlanType) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t// If this is an array, check the array for constants\r\n\t\t\t\telse if (ttype instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int p = 0; p < exp_list.length; ++p) {\r\n\t\t\t\t\t\tif (!exp_list[p].isConstant()) {\r\n\t\t\t\t\t\t\treturn false;\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} else if (ob instanceof Variable) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int p = 0; p < params.length; ++p) {\r\n\t\t\t\t\tif (!params[p].isConstant()) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isConstant()\r\n/* 92: */ {\r\n/* 93:112 */ return this.constant != null;\r\n/* 94: */ }",
"public static boolean isConstant(String expression, Map context)\n throws OgnlException {\n return isConstant(parseExpression(expression), context);\n }",
"public boolean isConstant();",
"public abstract boolean isConstant();",
"public boolean isConstant() {\n return false;\n }",
"public boolean isConstant() {\n\t\treturn this.isConstant;\n\t}",
"public boolean isConstant() throws Exception {\n return false;\n }",
"public boolean previousExpressionConstant() {\r\n return isConstant;\r\n }",
"public final void constantExpression() throws RecognitionException {\n int constantExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"constantExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(704, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 104) ) { return ; }\n // Java.g:705:5: ( expression )\n dbg.enterAlt(1);\n\n // Java.g:705:9: expression\n {\n dbg.location(705,9);\n pushFollow(FOLLOW_expression_in_constantExpression4056);\n expression();\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 if ( state.backtracking>0 ) { memoize(input, 104, constantExpression_StartIndex); }\n }\n dbg.location(706, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"constantExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }",
"public static ConstantExpression constant(Object value) { throw Extensions.todo(); }",
"public default boolean isConstant() {\n\t\treturn getValue().isConstantAddress();\n\t}",
"@Override\n public boolean isConstant() {\n return false;\n }",
"@Override\n\tpublic boolean getIsConstant() {\n\t\treturn false;\n\t}",
"public boolean isConstant()\n {\n if (getArray().isConstant() && getIndex().isConstant())\n {\n Object[] a = (Object[]) getArray().getValue();\n int i = ((Number) getIndex().getValue()).intValue();\n return a != null && i >= 0 && i < a.length;\n }\n\n return false;\n }",
"private void checkIfConstant()\r\n/* 23: */ {\r\n/* 24: 49 */ boolean isConstant = true;\r\n/* 25: 50 */ int c = 0;\r\n/* 26: 50 */ for (int max = getChildCount(); c < max; c++)\r\n/* 27: */ {\r\n/* 28: 51 */ SpelNode child = getChild(c);\r\n/* 29: 52 */ if (!(child instanceof Literal)) {\r\n/* 30: 53 */ if ((child instanceof InlineList))\r\n/* 31: */ {\r\n/* 32: 54 */ InlineList inlineList = (InlineList)child;\r\n/* 33: 55 */ if (!inlineList.isConstant()) {\r\n/* 34: 56 */ isConstant = false;\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37: */ else\r\n/* 38: */ {\r\n/* 39: 59 */ isConstant = false;\r\n/* 40: */ }\r\n/* 41: */ }\r\n/* 42: */ }\r\n/* 43: 63 */ if (isConstant)\r\n/* 44: */ {\r\n/* 45: 64 */ List<Object> constantList = new ArrayList();\r\n/* 46: 65 */ int childcount = getChildCount();\r\n/* 47: 66 */ for (int c = 0; c < childcount; c++)\r\n/* 48: */ {\r\n/* 49: 67 */ SpelNode child = getChild(c);\r\n/* 50: 68 */ if ((child instanceof Literal)) {\r\n/* 51: 69 */ constantList.add(((Literal)child).getLiteralValue().getValue());\r\n/* 52: 70 */ } else if ((child instanceof InlineList)) {\r\n/* 53: 71 */ constantList.add(((InlineList)child).getConstantValue());\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 74 */ this.constant = new TypedValue(Collections.unmodifiableList(constantList));\r\n/* 57: */ }\r\n/* 58: */ }",
"public boolean isConstant()\n {\n return analysis.getRequiredBindings().isEmpty();\n }",
"public final AstValidator.const_expr_return const_expr() throws RecognitionException {\n AstValidator.const_expr_return retval = new AstValidator.const_expr_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.literal_return literal416 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:649:12: ( literal )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:649:14: literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_literal_in_const_expr3423);\n literal416=literal();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, literal416.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"boolean hasConstantValue();",
"@Override\r\n\tpublic void visit(ConstantExpression constantExpression) {\n\r\n\t}",
"private static boolean constantPattern_10(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"constantPattern_10\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeTokens(b, 0, CONST, LPAREN);\n r = r && expression(b, l + 1);\n r = r && consumeToken(b, RPAREN);\n exit_section_(b, m, null, r);\n return r;\n }",
"public static boolean constant(FileInputStream f) {\n if(observer != null){\n observer.parser.setCurrentRule(\"constant\", true);\n }\n CToken t = new CToken();\n t = getUsePeek(f);\n\n if (t.type.equals(\"IntConstant\") || t.type.equals(\"FloatConstant\") || t.token.equals(\"nil\")) {\n CScanner.needToUsePeekedToken = false;\n if(observer != null){\n observer.parser.setCurrentRule(\"constant\", false);\n }\n return true;\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"constant\", false);\n }\n return false;\n }",
"public boolean isEnumConstant() {\n return asElement().getKind() == ElementKind.ENUM_CONSTANT;\n }",
"boolean hasConst();",
"public boolean ifPeekIsLitConstant() {\n\t\tif (ifPeek(\"INT_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"CHAR_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"STRING_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"NULL_\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"TRUE_\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"FALSE_\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasConstant(String name) {\n assert IdUtil.isConstant(name);\n return constantTableContains(name);\n }",
"public static boolean constObjectExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"constObjectExpression\")) return false;\n if (!nextTokenIs(b, CONST)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, CONST);\n r = r && constructorDesignation(b, l + 1);\n r = r && arguments(b, l + 1);\n exit_section_(b, m, CONST_OBJECT_EXPRESSION, r);\n return r;\n }",
"private boolean isConstantZeroArgFunction(FunctionCall functionCall) {\n\t\t\tFunction function = FunctionRegistry.getInstance().get(functionCall.getURI());\n\n\t\t\t// we treat constant functions as the 'regular case' and make\n\t\t\t// exceptions for specific SPARQL built-in functions that require\n\t\t\t// different treatment.\n\t\t\tif (function instanceof Rand || function instanceof UUID || function instanceof STRUUID) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}",
"public static ConstantExpression constant(Object value, Class clazz) { throw Extensions.todo(); }",
"public boolean isConstantDefined(String name) {\n assert IdUtil.isConstant(name);\n boolean isObject = this == getRuntime().getObject();\n \n RubyModule module = this;\n \n do {\n Object value;\n if ((value = module.constantTableFetch(name)) != null) {\n if (value != UNDEF) return true;\n return getRuntime().getLoadService().autoloadFor(\n module.getName() + \"::\" + name) != null;\n }\n \n } while (isObject && (module = module.getSuperClass()) != null );\n \n return false;\n }",
"@Nullable public abstract Object getConstantValue() throws CompileException;",
"public boolean hasConstantValue() {\n return ((bitField0_ & 0x00010000) == 0x00010000);\n }",
"public JExpression createConstant(Outline outline, XmlString literal) {\n/* 237 */ JClass type = toType(outline, Aspect.EXPOSED);\n/* 238 */ for (CEnumConstant mem : this.members) {\n/* 239 */ if (mem.getLexicalValue().equals(literal.value))\n/* 240 */ return (JExpression)type.staticRef(mem.getName()); \n/* */ } \n/* 242 */ return null;\n/* */ }",
"public boolean isConstant(int[][] board, int row, int col, int num) {\n\t\tif (board[row][col]==num) return true;\n\t\telse return false;\n\t}",
"protected abstract T evalNonNullConstant(Constant constant, ProgramPoint pp);",
"public Code visitConstNode(ExpNode.ConstNode node) {\n beginGen(\"Const\");\n Code code = new Code();\n if(node.getValue() == 0) {\n code.generateOp(Operation.ZERO);\n } else if(node.getValue() == 1) {\n code.generateOp(Operation.ONE);\n } else {\n code.genLoadConstant(node.getValue());\n }\n endGen(\"Const\");\n return code;\n }",
"@JRubyMethod(name = \"const_defined?\", required = 1)\n public RubyBoolean const_defined_p(ThreadContext context, IRubyObject symbol) {\n // Note: includes part of fix for JRUBY-1339\n return context.getRuntime().newBoolean(fastIsConstantDefined(validateConstant(symbol.asJavaString()).intern()));\n }",
"@Override\n public void visit(RealConstantNode intConstantNode) {\n }",
"public static boolean enumConstantDeclaration(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"enumConstantDeclaration\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ENUM_CONSTANT_DECLARATION, \"<enum constant declaration>\");\n r = enumConstantDeclaration_0(b, l + 1);\n if (!r) r = enumConstantDeclaration_1(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"private static boolean enumConstantDeclaration_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"enumConstantDeclaration_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = enumConstantDeclaration_0_0(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && enumConstantDeclaration_0_2(b, l + 1);\n r = r && consumeToken(b, DOT);\n r = r && componentName(b, l + 1);\n r = r && arguments(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"@Override\r\n\tprotected void checkConstantValue(Value constantValue)\r\n\t\t\tthrows R2RMLDataError {\n\t\tif (!RDFDataValidator.isValidURI(constantValue.stringValue()))\r\n\t\t\tthrow new R2RMLDataError(\r\n\t\t\t\t\t\"[StdPredicateMap:checkConstantValue] Not a valid URI : \"\r\n\t\t\t\t\t\t\t+ constantValue);\r\n\t}",
"public boolean hasConstantValue() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }",
"protected boolean isConstant( String word )\r\n\t{\r\n\t\treturn m_listConstants.contains(word);\r\n\t}",
"static boolean enum_constant_definition(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"enum_constant_definition\")) return false;\n if (!nextTokenIs(b, ENTITY_NAME)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = enum_constant(b, l + 1);\n p = r; // pin = 1\n r = r && enum_constant_definition_1(b, l + 1);\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"private static Object handleConstantsCoercion(ExprFilterSpecLookupable lookupable, Object constant)\n throws ExprValidationException {\n Class identNodeType = lookupable.getReturnType();\n if (!JavaClassHelper.isNumeric(identNodeType)) {\n return constant; // no coercion required, other type checking performed by expression this comes from\n }\n\n if (constant == null) {\n // null constant type\n return null;\n }\n\n if (!JavaClassHelper.canCoerce(constant.getClass(), identNodeType)) {\n throwConversionError(constant.getClass(), identNodeType, lookupable.getExpression());\n }\n\n Class identNodeTypeBoxed = JavaClassHelper.getBoxedType(identNodeType);\n return JavaClassHelper.coerceBoxed((Number) constant, identNodeTypeBoxed);\n }",
"private static boolean enumConstantDeclaration_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"enumConstantDeclaration_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = enumConstantDeclaration_1_0(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && enumConstantDeclaration_1_2(b, l + 1);\n r = r && enumConstantDeclaration_1_3(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"public void setConstant(){\n \tisConstant = true;\n }",
"public final void synpred116_AstValidator_fragment() throws RecognitionException {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: ( const_expr )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:417:8: const_expr\n {\n pushFollow(FOLLOW_const_expr_in_synpred116_AstValidator2032);\n const_expr();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }",
"public NumericConstantExpression(String numericConstant) {\r\n this.numconst = numericConstant;\r\n }",
"static boolean isStringLiteral(final Expr expr)\n {\n return (expr.isLiteral() && expr.getLiteralValue() instanceof String)\n || (NullHandling.replaceWithDefault() && expr.isNullLiteral());\n }",
"RealConstant createRealConstant();",
"Rule Const() {\n // Push 1 ConstNode onto the value stack\n StringVar constName = new StringVar(\"\");\n return Sequence(\n \"const \",\n FieldType(),\n Identifier(),\n actions.pop(),\n ACTION(constName.set(match())),\n \"= \",\n ConstValue(),\n Optional(ListSeparator()),\n WhiteSpace(),\n push(new IdentifierNode(constName.get())),\n actions.pushConstNode());\n }",
"com.google.type.Expr getCelExpression();",
"public Const evaluate();",
"public Object getPropertyConstantValue(Expr expr, Name name) {\n X10FieldInstance propertyFI = X10TypeMixin.getProperty(expr.type(), name);\n if (null == propertyFI) return null;\n Expr propertyExpr = createFieldRef(expr.position(), expr, propertyFI);\n if (null == propertyExpr) return null;\n return ConstantPropagator.constantValue(propertyExpr);\n }",
"private static boolean constantPattern_8(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"constantPattern_8\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, CONST);\n r = r && constantPattern_8_1(b, l + 1);\n r = r && consumeToken(b, LBRACKET);\n r = r && constantPattern_8_3(b, l + 1);\n r = r && consumeToken(b, RBRACKET);\n exit_section_(b, m, null, r);\n return r;\n }",
"public final Constant expression() throws RecognitionException {\r\n Constant expr = null;\r\n\r\n\r\n Constant simple_constant93 =null;\r\n\r\n Constant getelementptr_expr94 =null;\r\n\r\n Constant conversion_expr95 =null;\r\n\r\n Constant binary_expr96 =null;\r\n\r\n Constant cmp_expr97 =null;\r\n\r\n Constant variable98 =null;\r\n\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:573:5: ( simple_constant | getelementptr_expr | conversion_expr | binary_expr | cmp_expr | variable )\r\n int alt76=6;\r\n switch ( input.LA(1) ) {\r\n case BOOLEAN:\r\n case FLOATING_POINT:\r\n case HEX:\r\n case INTEGER:\r\n case NULL:\r\n {\r\n alt76=1;\r\n }\r\n break;\r\n case 66:\r\n {\r\n alt76=2;\r\n }\r\n break;\r\n case CONVERSION_OP:\r\n {\r\n alt76=3;\r\n }\r\n break;\r\n case BINARY_OP:\r\n {\r\n alt76=4;\r\n }\r\n break;\r\n case 65:\r\n case 68:\r\n {\r\n alt76=5;\r\n }\r\n break;\r\n case GLOBAL_VARIABLE:\r\n case LOCAL_VARIABLE:\r\n case UNDEF:\r\n {\r\n alt76=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt76) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:573:7: simple_constant\r\n {\r\n pushFollow(FOLLOW_simple_constant_in_expression3124);\r\n simple_constant93=simple_constant();\r\n\r\n state._fsp--;\r\n\r\n\r\n expr = simple_constant93;\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:574:7: getelementptr_expr\r\n {\r\n pushFollow(FOLLOW_getelementptr_expr_in_expression3134);\r\n getelementptr_expr94=getelementptr_expr();\r\n\r\n state._fsp--;\r\n\r\n\r\n expr = getelementptr_expr94;\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:575:7: conversion_expr\r\n {\r\n pushFollow(FOLLOW_conversion_expr_in_expression3144);\r\n conversion_expr95=conversion_expr();\r\n\r\n state._fsp--;\r\n\r\n\r\n expr = conversion_expr95;\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:576:7: binary_expr\r\n {\r\n pushFollow(FOLLOW_binary_expr_in_expression3154);\r\n binary_expr96=binary_expr();\r\n\r\n state._fsp--;\r\n\r\n\r\n expr = binary_expr96;\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:577:7: cmp_expr\r\n {\r\n pushFollow(FOLLOW_cmp_expr_in_expression3164);\r\n cmp_expr97=cmp_expr();\r\n\r\n state._fsp--;\r\n\r\n\r\n expr = cmp_expr97;\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:578:7: variable\r\n {\r\n pushFollow(FOLLOW_variable_in_expression3174);\r\n variable98=variable();\r\n\r\n state._fsp--;\r\n\r\n\r\n expr = variable98;\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return expr;\r\n }",
"@Override\r\n\tpublic void computeConstant() {\n\t\t\r\n\t}",
"Rule IntConstant() {\n // Push 1 IntConstNode onto the value stack\n return Sequence(\n Sequence(\n Optional(NumericSign()),\n OneOrMore(Digit())),\n actions.pushIntConstNode());\n }",
"public final LLVMParser.array_constant_return array_constant() throws RecognitionException {\r\n LLVMParser.array_constant_return retval = new LLVMParser.array_constant_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1067:16: ( '[' constant_list ']' )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1067:18: '[' constant_list ']'\r\n {\r\n match(input,49,FOLLOW_49_in_array_constant8059); \r\n\r\n pushFollow(FOLLOW_constant_list_in_array_constant8061);\r\n constant_list();\r\n\r\n state._fsp--;\r\n\r\n\r\n match(input,50,FOLLOW_50_in_array_constant8063); \r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }",
"ConstValue createConstValue();",
"public interface ConstantExpression extends AtomicExpression {\r\n}",
"Rule ConstValue() {\n // Push 1 ConstValue node onto the value stack\n return Sequence(\n FirstOf(\n IntConstant(),\n DoubleConstant(),\n Literal(),\n Identifier(),\n ConstList(),\n ConstMap()),\n actions.pushConstValueNode());\n }",
"public final EObject ruleConstant() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n AntlrDatatypeRuleToken lv_name_1_0 = null;\n\n AntlrDatatypeRuleToken lv_comment_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:411:28: ( ( () ( (lv_name_1_0= ruleEString ) ) (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )? ) )\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:412:1: ( () ( (lv_name_1_0= ruleEString ) ) (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )? )\n {\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:412:1: ( () ( (lv_name_1_0= ruleEString ) ) (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )? )\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:412:2: () ( (lv_name_1_0= ruleEString ) ) (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )?\n {\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:412:2: ()\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:413:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getConstantAccess().getConstantAction_0(),\n current);\n \n\n }\n\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:418:2: ( (lv_name_1_0= ruleEString ) )\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:419:1: (lv_name_1_0= ruleEString )\n {\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:419:1: (lv_name_1_0= ruleEString )\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:420:3: lv_name_1_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getConstantAccess().getNameEStringParserRuleCall_1_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleConstant797);\n lv_name_1_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getConstantRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_1_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:436:2: (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==12) ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:436:4: otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) )\n {\n otherlv_2=(Token)match(input,12,FollowSets000.FOLLOW_12_in_ruleConstant810); \n\n \tnewLeafNode(otherlv_2, grammarAccess.getConstantAccess().getGreaterThanSignKeyword_2_0());\n \n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:440:1: ( (lv_comment_3_0= ruleEString ) )\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:441:1: (lv_comment_3_0= ruleEString )\n {\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:441:1: (lv_comment_3_0= ruleEString )\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:442:3: lv_comment_3_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getConstantAccess().getCommentEStringParserRuleCall_2_1_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleConstant831);\n lv_comment_3_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getConstantRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"comment\",\n \t\tlv_comment_3_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public static boolean literalExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"literalExpression\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _COLLAPSE_, LITERAL_EXPRESSION, \"<literal expression>\");\n r = consumeToken(b, NULL);\n if (!r) r = consumeToken(b, TRUE);\n if (!r) r = consumeToken(b, FALSE);\n if (!r) r = consumeToken(b, NUMBER);\n if (!r) r = consumeToken(b, HEX_NUMBER);\n if (!r) r = stringLiteralExpression(b, l + 1);\n if (!r) r = symbolLiteralExpression(b, l + 1);\n if (!r) r = setOrMapLiteralExpressionWrapper(b, l + 1);\n if (!r) r = listLiteralExpressionWrapper(b, l + 1);\n if (!r) r = record(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"private static boolean isAtomWhere(ZExpression where) {\r\n boolean result = false;\r\n int size = where.getOperands().size();\r\n if (size > 2) {\r\n return false;\r\n } else {\r\n // size=2\r\n ZExp exp1 = (ZExp) where.getOperands().get(0);\r\n ZExp exp2 = (ZExp) where.getOperands().get(1);\r\n if ((exp1 instanceof ZConstant) && (exp2 instanceof ZConstant)) {\r\n result = true;\r\n }\r\n }\r\n\r\n return result;\r\n }",
"@Override\n public boolean wrapConstant(Object constant) {\n return false;\n }",
"public final Expr literal() throws RecognitionException {\n\t\tExpr e = null;\n\n\n\t\tToken b=null;\n\t\tStringLiteral s =null;\n\t\tIntLiteral i =null;\n\t\tFloatLiteral f =null;\n\t\tCharacterLiteral c =null;\n\n\t\ttry {\n\t\t\t// ul.g:258:25: (s= stringConstant |i= integerConstant |f= floatConstant |c= characterConstant |b= TRUE |b= FALSE )\n\t\t\tint alt17=6;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase STRCONST:\n\t\t\t\t{\n\t\t\t\talt17=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INTCONST:\n\t\t\t\t{\n\t\t\t\talt17=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FLOATCONST:\n\t\t\t\t{\n\t\t\t\talt17=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CHARCONST:\n\t\t\t\t{\n\t\t\t\talt17=4;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase TRUE:\n\t\t\t\t{\n\t\t\t\talt17=5;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FALSE:\n\t\t\t\t{\n\t\t\t\talt17=6;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (state.backtracking>0) {state.failed=true; return e;}\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 17, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt17) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// ul.g:259:2: s= stringConstant\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_stringConstant_in_literal1087);\n\t\t\t\t\ts=stringConstant();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = s;}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// ul.g:260:3: i= integerConstant\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_integerConstant_in_literal1096);\n\t\t\t\t\ti=integerConstant();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = i;}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// ul.g:261:3: f= floatConstant\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_floatConstant_in_literal1105);\n\t\t\t\t\tf=floatConstant();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = f;}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// ul.g:262:3: c= characterConstant\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_characterConstant_in_literal1114);\n\t\t\t\t\tc=characterConstant();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = c;}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// ul.g:263:3: b= TRUE\n\t\t\t\t\t{\n\t\t\t\t\tb=(Token)match(input,TRUE,FOLLOW_TRUE_in_literal1123); if (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = new BooleanLiteral(true, (b!=null?b.getLine():0), b.getCharPositionInLine());}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6 :\n\t\t\t\t\t// ul.g:264:3: b= FALSE\n\t\t\t\t\t{\n\t\t\t\t\tb=(Token)match(input,FALSE,FOLLOW_FALSE_in_literal1132); if (state.failed) return e;\n\t\t\t\t\tif ( state.backtracking==0 ) {e = new BooleanLiteral(false, (b!=null?b.getLine():0), b.getCharPositionInLine());}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn e;\n\t}",
"public static boolean isExpression(String expr) {\r\n return expr != null && expr.startsWith(\"%{\") && expr.endsWith(\"}\");\r\n }",
"@NotNull\n private SyntaxToken<?> maybeConstant() {\n final SyntaxToken<?> token = peek();\n final SyntaxToken<?> t;\n if (token.getValue().equals(Keyword.CONSTANT)) {\n tokens.add(next());\n t = parseDefinitionBody(SyntaxColor.CONSTANT);\n constants.add(t.getValue().toString());\n } else {\n t = parseDefinitionBody(SyntaxColor.REFERENCE);\n references.add(t.getValue().toString());\n }\n return t;\n }",
"@Override\n public void visit(BooleanConstantNode booleanConstantNode) {\n }",
"void visit(BooleanConstantNode node);",
"public boolean isExpression (Object value);",
"public interface ConstantExpression extends GenericExpression\n{\n}",
"private void parseConstDecl() {\n check(Token.FINAL);\n\n Struct type = parseType();\n\n check(Token.IDENT);\n\n String constName = token.string;\n\n check(Token.ASSIGN);\n\n if (nextToken.kind != Token.NUMBER\n && nextToken.kind != Token.CHAR_CONST) {\n error(\"Expected number or char constant\");\n }\n\n if ((nextToken.kind == Token.NUMBER\n && type != SymbolTable.STRUCT_INT)\n || (nextToken.kind == Token.CHAR_CONST\n && type != SymbolTable.STRUCT_CHAR)) {\n error(\"Incompatible types in constant declaration\");\n }\n\n scan();\n\n int value = token.value;\n\n insert(new SymObject(type, constName, value));\n\n check(Token.SEMICOLON);\n }",
"public final Constant simple_constant() throws RecognitionException {\r\n Constant constant = null;\r\n\r\n\r\n Token INTEGER187=null;\r\n Token HEX188=null;\r\n Token BOOLEAN189=null;\r\n Token FLOATING_POINT190=null;\r\n Token NULL191=null;\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1052:5: ( INTEGER | HEX | BOOLEAN | FLOATING_POINT | NULL )\r\n int alt265=5;\r\n switch ( input.LA(1) ) {\r\n case INTEGER:\r\n {\r\n alt265=1;\r\n }\r\n break;\r\n case HEX:\r\n {\r\n alt265=2;\r\n }\r\n break;\r\n case BOOLEAN:\r\n {\r\n alt265=3;\r\n }\r\n break;\r\n case FLOATING_POINT:\r\n {\r\n alt265=4;\r\n }\r\n break;\r\n case NULL:\r\n {\r\n alt265=5;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 265, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt265) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1052:7: INTEGER\r\n {\r\n INTEGER187=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_simple_constant7941); \r\n\r\n constant = valueFactory.createConstantValue(SimpleConstantValue.intConst, (INTEGER187!=null?INTEGER187.getText():null));\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1053:7: HEX\r\n {\r\n HEX188=(Token)match(input,HEX,FOLLOW_HEX_in_simple_constant7951); \r\n\r\n constant = valueFactory.createConstantValue(SimpleConstantValue.hexConst, (HEX188!=null?HEX188.getText():null));\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1054:7: BOOLEAN\r\n {\r\n BOOLEAN189=(Token)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_simple_constant7961); \r\n\r\n constant = valueFactory.createConstantValue(SimpleConstantValue.boolConst, (BOOLEAN189!=null?BOOLEAN189.getText():null));\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1055:7: FLOATING_POINT\r\n {\r\n FLOATING_POINT190=(Token)match(input,FLOATING_POINT,FOLLOW_FLOATING_POINT_in_simple_constant7971); \r\n\r\n constant = valueFactory.createConstantValue(SimpleConstantValue.floatConst, (FLOATING_POINT190!=null?FLOATING_POINT190.getText():null));\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1056:7: NULL\r\n {\r\n NULL191=(Token)match(input,NULL,FOLLOW_NULL_in_simple_constant7981); \r\n\r\n constant = valueFactory.createConstantValue(SimpleConstantValue.nullConst, (NULL191!=null?NULL191.getText():null));\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return constant;\r\n }",
"private void validateConstants(final Class c) throws IDLTypeException {\n/* 564 */ Field[] arrayOfField = null;\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 569 */ arrayOfField = AccessController.<Field[]>doPrivileged(new PrivilegedExceptionAction<Field>() {\n/* */ public Object run() throws Exception {\n/* 571 */ return c.getFields();\n/* */ }\n/* */ });\n/* 574 */ } catch (PrivilegedActionException privilegedActionException) {\n/* 575 */ IDLTypeException iDLTypeException = new IDLTypeException();\n/* 576 */ iDLTypeException.initCause(privilegedActionException);\n/* 577 */ throw iDLTypeException;\n/* */ } \n/* */ \n/* 580 */ for (byte b = 0; b < arrayOfField.length; b++) {\n/* 581 */ Field field = arrayOfField[b];\n/* 582 */ Class<?> clazz = field.getType();\n/* 583 */ if (clazz != String.class && \n/* 584 */ !isPrimitive(clazz)) {\n/* */ \n/* */ \n/* 587 */ String str = \"Constant field '\" + field.getName() + \"' in class '\" + field.getDeclaringClass().getName() + \"' has invalid type' \" + field.getType() + \"'. Constants in RMI/IIOP interfaces can only have primitive types and java.lang.String types.\";\n/* */ \n/* */ \n/* 590 */ throw new IDLTypeException(str);\n/* */ } \n/* */ } \n/* */ }",
"java.lang.String getConstantValue();",
"private static boolean enum_constant_definition_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"enum_constant_definition_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = enum_constant_definition_1_0_0(b, l + 1);\n if (!r) r = field_attribute(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"public static void constant(CommonTree ast, IRTree irt)\n {\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == REALNUM) {\n String tx = t.getText();\n irt.setOp(tx);\n }\n else {\n error(tt);\n }\n }",
"@Override\n public void visit(CondFactExpr CondFactExpr) {\n Code.loadConst(1);\n Code.putFalseJump(Code.eq, 0);\n andList.add(Code.pc - 2);\n\n }",
"public final EObject entryRuleConstant() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleConstant = null;\n\n\n try {\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:400:2: (iv_ruleConstant= ruleConstant EOF )\n // ../ac.soton.xtext.contextDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalContextDsl.g:401:2: iv_ruleConstant= ruleConstant EOF\n {\n newCompositeNode(grammarAccess.getConstantRule()); \n pushFollow(FollowSets000.FOLLOW_ruleConstant_in_entryRuleConstant732);\n iv_ruleConstant=ruleConstant();\n\n state._fsp--;\n\n current =iv_ruleConstant; \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleConstant742); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public final EObject ruleConstantValue() throws RecognitionException {\n EObject current = null;\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:10555:2: ( ( ( ruleQPREF ) ) )\n // InternalSafetyParser.g:10556:2: ( ( ruleQPREF ) )\n {\n // InternalSafetyParser.g:10556:2: ( ( ruleQPREF ) )\n // InternalSafetyParser.g:10557:3: ( ruleQPREF )\n {\n // InternalSafetyParser.g:10557:3: ( ruleQPREF )\n // InternalSafetyParser.g:10558:4: ruleQPREF\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\tif (current==null) {\n \t\t\t\t\tcurrent = createModelElement(grammarAccess.getConstantValueRule());\n \t\t\t\t}\n \t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewCompositeNode(grammarAccess.getConstantValueAccess().getNamedValuePropertyConstantCrossReference_0());\n \t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleQPREF();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"private String getConstantValue(IField field, IRegion hoverRegion) {\n\t\tif (!isStaticFinal(field))\n\t\t\treturn null;\n\n\t\tITypeRoot typeRoot= getEditorInputJavaElement();\n\t\tif (typeRoot == null)\n\t\t\treturn null;\n\n\t\tObject constantValue= null;\n\n\t\tCompilationUnit unit= SharedASTProvider.getAST(typeRoot, SharedASTProvider.WAIT_ACTIVE_ONLY, null);\n\t\tif (unit == null)\n\t\t\treturn null;\n\n\t\tASTNode node= NodeFinder.perform(unit, hoverRegion.getOffset(),\thoverRegion.getLength());\n\t\tif (node != null && node.getNodeType() == ASTNode.SIMPLE_NAME) {\n\t\t\tIBinding binding= ((SimpleName)node).resolveBinding();\n\t\t\tif (binding != null && binding.getKind() == IBinding.VARIABLE) {\n\t\t\t\tIVariableBinding variableBinding= (IVariableBinding)binding;\n\t\t\t\tif (field.equals(variableBinding.getJavaElement())) {\n\t\t\t\t\tconstantValue= variableBinding.getConstantValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (constantValue == null)\n\t\t\treturn null;\n\n\t\tif (constantValue instanceof String) {\n\t\t\tStringBuffer result= new StringBuffer();\n\t\t\tresult.append('\"');\n\t\t\tString stringConstant= (String)constantValue;\n\t\t\tif (stringConstant.length() > 80) {\n\t\t\t\tresult.append(stringConstant.substring(0, 80));\n\t\t\t\tresult.append(JavaElementLabels.ELLIPSIS_STRING);\n\t\t\t} else {\n\t\t\t\tresult.append(stringConstant);\n\t\t\t}\n\t\t\tresult.append('\"');\n\t\t\treturn result.toString();\n\n\t\t} else if (constantValue instanceof Character) {\n\t\t\tString constantResult= '\\'' + constantValue.toString() + '\\'';\n\n\t\t\tchar charValue= ((Character) constantValue).charValue();\n\t\t\tString hexString= Integer.toHexString(charValue);\n\t\t\tStringBuffer hexResult= new StringBuffer(\"\\\\u\"); //$NON-NLS-1$\n\t\t\tfor (int i= hexString.length(); i < 4; i++) {\n\t\t\t\thexResult.append('0');\n\t\t\t}\n\t\t\thexResult.append(hexString);\n\t\t\treturn formatWithHexValue(constantResult, hexResult.toString());\n\n\t\t} else if (constantValue instanceof Byte) {\n\t\t\tint byteValue= ((Byte) constantValue).intValue() & 0xFF;\n\t\t\treturn formatWithHexValue(constantValue, \"0x\" + Integer.toHexString(byteValue)); //$NON-NLS-1$\n\n\t\t} else if (constantValue instanceof Short) {\n\t\t\tint shortValue= ((Short) constantValue).shortValue() & 0xFFFF;\n\t\t\treturn formatWithHexValue(constantValue, \"0x\" + Integer.toHexString(shortValue)); //$NON-NLS-1$\n\n\t\t} else if (constantValue instanceof Integer) {\n\t\t\tint intValue= ((Integer) constantValue).intValue();\n\t\t\treturn formatWithHexValue(constantValue, \"0x\" + Integer.toHexString(intValue)); //$NON-NLS-1$\n\n\t\t} else if (constantValue instanceof Long) {\n\t\t\tlong longValue= ((Long) constantValue).longValue();\n\t\t\treturn formatWithHexValue(constantValue, \"0x\" + Long.toHexString(longValue)); //$NON-NLS-1$\n\n\t\t} else {\n\t\t\treturn constantValue.toString();\n\t\t}\n\t}",
"public static ConstantPredicate readOneIn() throws IsabelleException, FileException {\r\n accept(Token.BOOLEAN_CONSTANT);\r\n return new ConstantPredicate(BooleanConstant.readItIn());\r\n }",
"boolean hasCurrencyConstant();",
"public void setConst() {\r\n\t\tthis.isConst = true;\r\n\t}",
"public static boolean containsConstant(Enum<?>[] enumValues, String constant) {\r\n return containsConstant(enumValues, constant, false);\r\n }",
"@Override\n public void visit(IntConstantNode intConstantNode) {\n }",
"@Override\r\n\tpublic Object visitConstantExpression(ConstantExpression constantExpression, Object arg) {\n\t\tif (constantExpression.getFirstToken().kind.equals(Kind.KW_SCREENWIDTH)) {\r\n\t\t\tmv.visitMethodInsn(INVOKESTATIC, \"cop5556sp17/PLPRuntimeFrame\", \"getScreenWidth\", \"()I\", false);\r\n\t\t} else if (constantExpression.getFirstToken().kind.equals(Kind.KW_SCREENHEIGHT)) {\r\n\t\t\t// for screen height\r\n\t\t\tmv.visitMethodInsn(INVOKESTATIC, \"cop5556sp17/PLPRuntimeFrame\", \"getScreenHeight\", \"()I\", false);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"boolean hasCelExpression();",
"public static ConstantOperand getFieldValueAsConstant(RVMField field, Object obj) throws NoSuchFieldException {\n if (VM.VerifyAssertions) {\n boolean isFinalField = field.isFinal();\n boolean isInitializedField = field.getDeclaringClass().isInitialized() || field.getDeclaringClass().isInBootImage();\n if (!(isFinalField && isInitializedField)) {\n String msg = \"Error reading field \" + field;\n VM._assert(VM.NOT_REACHED, msg);\n }\n }\n\n TypeReference type = field.getType();\n if (VM.runningVM) {\n if (type.isReferenceType() && (!type.isMagicType() || type.isUnboxedArrayType())) {\n Object value = field.getObjectValueUnchecked(obj);\n if (value != null) {\n return new ObjectConstantOperand(value, Offset.zero());\n } else {\n return new NullConstantOperand();\n }\n } else if (type.isWordLikeType()) {\n return new AddressConstantOperand(field.getWordValueUnchecked(obj).toAddress());\n } else if (type.isIntType()) {\n return new IntConstantOperand(field.getIntValueUnchecked(obj));\n } else if (type.isBooleanType()) {\n return new IntConstantOperand(field.getBooleanValueUnchecked(obj) ? 1 : 0);\n } else if (type.isByteType()) {\n return new IntConstantOperand(field.getByteValueUnchecked(obj));\n } else if (type.isCharType()) {\n return new IntConstantOperand(field.getCharValueUnchecked(obj));\n } else if (type.isDoubleType()) {\n return new DoubleConstantOperand(field.getDoubleValueUnchecked(obj));\n } else if (type.isFloatType()) {\n return new FloatConstantOperand(field.getFloatValueUnchecked(obj));\n } else if (type.isLongType()) {\n return new LongConstantOperand(field.getLongValueUnchecked(obj));\n } else if (type.isShortType()) {\n return new IntConstantOperand(field.getShortValueUnchecked(obj));\n } else {\n OptimizingCompilerException.UNREACHABLE(\"Unknown type \" + type);\n return null;\n }\n } else {\n try {\n String cn = field.getDeclaringClass().toString();\n Field f = Class.forName(cn).getDeclaredField(field.getName().toString());\n f.setAccessible(true);\n if (type.isReferenceType() && (!type.isMagicType() || type.isUnboxedArrayType())) {\n Object value = f.get(obj);\n if (value != null) {\n return new ObjectConstantOperand(value, Offset.zero());\n } else {\n return new NullConstantOperand();\n }\n } else if (type.isWordLikeType()) {\n Object value = f.get(obj);\n if (type.equals(TypeReference.Word))\n return new AddressConstantOperand((Word)value);\n else if (type.equals(TypeReference.Address))\n return new AddressConstantOperand((Address)value);\n else if (type.equals(TypeReference.Offset))\n return new AddressConstantOperand((Offset)value);\n else if (type.equals(TypeReference.Extent))\n return new AddressConstantOperand((Extent)value);\n else {\n OptimizingCompilerException.UNREACHABLE(\"Unknown word type \" + type);\n return null;\n }\n } else if (type.isIntType()) {\n return new IntConstantOperand(f.getInt(obj));\n } else if (type.isBooleanType()) {\n return new IntConstantOperand(f.getBoolean(obj) ? 1 : 0);\n } else if (type.isByteType()) {\n return new IntConstantOperand(f.getByte(obj));\n } else if (type.isCharType()) {\n return new IntConstantOperand(f.getChar(obj));\n } else if (type.isDoubleType()) {\n return new DoubleConstantOperand(f.getDouble(obj));\n } else if (type.isFloatType()) {\n return new FloatConstantOperand(f.getFloat(obj));\n } else if (type.isLongType()) {\n return new LongConstantOperand(f.getLong(obj));\n } else if (type.isShortType()) {\n return new IntConstantOperand(f.getShort(obj));\n } else {\n OptimizingCompilerException.UNREACHABLE(cn + \".\" + f.getName() + \" has unknown type \" + type);\n return null;\n }\n } catch (IllegalArgumentException e) {\n throw new NoSuchFieldException(field.toString());\n } catch (IllegalAccessException e) {\n throw new NoSuchFieldException(field.toString());\n } catch (NoSuchFieldError e) {\n throw new NoSuchFieldException(field.toString());\n } catch (ClassNotFoundException e) {\n throw new NoSuchFieldException(field.toString());\n } catch (NoClassDefFoundError e) {\n throw new NoSuchFieldException(field.toString());\n } catch (IllegalAccessError e) {\n throw new NoSuchFieldException(field.toString());\n }\n }\n }",
"public final Constant constant() throws RecognitionException {\r\n Constant constant = null;\r\n\r\n\r\n Constant getelementptr_expr181 =null;\r\n\r\n Constant conversion_expr182 =null;\r\n\r\n Constant binary_expr183 =null;\r\n\r\n Constant cmp_expr184 =null;\r\n\r\n Constant complex_constant185 =null;\r\n\r\n Constant simple_constant186 =null;\r\n\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1044:5: ( getelementptr_expr | conversion_expr | binary_expr | cmp_expr | complex_constant | simple_constant )\r\n int alt264=6;\r\n switch ( input.LA(1) ) {\r\n case 66:\r\n {\r\n alt264=1;\r\n }\r\n break;\r\n case CONVERSION_OP:\r\n {\r\n alt264=2;\r\n }\r\n break;\r\n case BINARY_OP:\r\n {\r\n alt264=3;\r\n }\r\n break;\r\n case 65:\r\n case 68:\r\n {\r\n alt264=4;\r\n }\r\n break;\r\n case 46:\r\n case 49:\r\n case 93:\r\n {\r\n alt264=5;\r\n }\r\n break;\r\n case BOOLEAN:\r\n case FLOATING_POINT:\r\n case HEX:\r\n case INTEGER:\r\n case NULL:\r\n {\r\n alt264=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 264, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt264) {\r\n case 1 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1044:7: getelementptr_expr\r\n {\r\n pushFollow(FOLLOW_getelementptr_expr_in_constant7872);\r\n getelementptr_expr181=getelementptr_expr();\r\n\r\n state._fsp--;\r\n\r\n\r\n constant = getelementptr_expr181;\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1045:7: conversion_expr\r\n {\r\n pushFollow(FOLLOW_conversion_expr_in_constant7883);\r\n conversion_expr182=conversion_expr();\r\n\r\n state._fsp--;\r\n\r\n\r\n constant = conversion_expr182;\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1046:7: binary_expr\r\n {\r\n pushFollow(FOLLOW_binary_expr_in_constant7893);\r\n binary_expr183=binary_expr();\r\n\r\n state._fsp--;\r\n\r\n\r\n constant = binary_expr183;\r\n\r\n }\r\n break;\r\n case 4 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1047:7: cmp_expr\r\n {\r\n pushFollow(FOLLOW_cmp_expr_in_constant7903);\r\n cmp_expr184=cmp_expr();\r\n\r\n state._fsp--;\r\n\r\n\r\n constant = cmp_expr184;\r\n\r\n }\r\n break;\r\n case 5 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1048:7: complex_constant\r\n {\r\n pushFollow(FOLLOW_complex_constant_in_constant7913);\r\n complex_constant185=complex_constant();\r\n\r\n state._fsp--;\r\n\r\n\r\n constant = complex_constant185;\r\n\r\n }\r\n break;\r\n case 6 :\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:1049:7: simple_constant\r\n {\r\n pushFollow(FOLLOW_simple_constant_in_constant7923);\r\n simple_constant186=simple_constant();\r\n\r\n state._fsp--;\r\n\r\n\r\n constant = simple_constant186;\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return constant;\r\n }",
"public final void entryRuleConstantOrFunctionCallExp() throws RecognitionException {\n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1461:1: ( ruleConstantOrFunctionCallExp EOF )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1462:1: ruleConstantOrFunctionCallExp EOF\n {\n before(grammarAccess.getConstantOrFunctionCallExpRule()); \n pushFollow(FOLLOW_ruleConstantOrFunctionCallExp_in_entryRuleConstantOrFunctionCallExp3061);\n ruleConstantOrFunctionCallExp();\n\n state._fsp--;\n\n after(grammarAccess.getConstantOrFunctionCallExpRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleConstantOrFunctionCallExp3068); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"private static boolean constantPattern_3(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"constantPattern_3\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = constantPattern_3_0(b, l + 1);\n r = r && constantPattern_3_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"Const\ngetConstSym();",
"ConstRule createConstRule();",
"public void visitFCONST(FCONST o){\n\t\t// nothing to do here.\n\t}",
"public static boolean containsConstant(Enum<?>[] enumValues,\r\n String constant, boolean caseSensitive) {\r\n for (Enum<?> candidate : enumValues) {\r\n if (caseSensitive ? candidate.toString().equals(constant)\r\n : candidate.toString().equalsIgnoreCase(constant)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }"
] | [
"0.7777597",
"0.75525224",
"0.7453061",
"0.72548336",
"0.708288",
"0.7022484",
"0.6834804",
"0.68241906",
"0.67673796",
"0.6701149",
"0.6629645",
"0.6585901",
"0.6563222",
"0.65595853",
"0.6513324",
"0.6511819",
"0.64460963",
"0.64096516",
"0.63700724",
"0.6360846",
"0.6181448",
"0.60877275",
"0.6039675",
"0.6008568",
"0.6007699",
"0.5978011",
"0.59626997",
"0.59588635",
"0.5912743",
"0.5815603",
"0.570478",
"0.5704108",
"0.56822926",
"0.56738913",
"0.5672347",
"0.5609075",
"0.56073344",
"0.548799",
"0.5421129",
"0.5410019",
"0.5393278",
"0.5306703",
"0.5297047",
"0.5294593",
"0.52696973",
"0.5240494",
"0.5215183",
"0.518726",
"0.5165129",
"0.51624644",
"0.5160741",
"0.5144051",
"0.5124532",
"0.5119603",
"0.50827837",
"0.5077018",
"0.50768846",
"0.5059131",
"0.50489306",
"0.50278246",
"0.5026244",
"0.50236166",
"0.50195146",
"0.50179166",
"0.4988322",
"0.4987576",
"0.49847487",
"0.49820969",
"0.49644446",
"0.4957104",
"0.49522945",
"0.49471056",
"0.49367917",
"0.4934775",
"0.49322602",
"0.49303618",
"0.48993757",
"0.4898425",
"0.4896993",
"0.4895086",
"0.486256",
"0.48515412",
"0.48493633",
"0.48394352",
"0.48205313",
"0.4811643",
"0.48094824",
"0.47980985",
"0.47952715",
"0.4788497",
"0.47847202",
"0.4784098",
"0.47458747",
"0.47353223",
"0.47221395",
"0.4703837",
"0.4703741",
"0.4703424",
"0.46982494",
"0.46905333"
] | 0.85675657 | 0 |
The isBitRangeExpr() method tests whether the expression is an access of a range of bits. This is used in pattern matching in some parts of the code. | public boolean isBitRangeExpr() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isRangeValid() {\n\n\t\tboolean valid = true;\n\n\t\tif (getRange() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tLong.parseLong(getRange());\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tvalid = valid || getRange().compareToIgnoreCase(CCLConstants.INDIRECT_RANGE_ALL) == 0;\n\n\t\treturn valid;\n\t}",
"public boolean containsRange(Range range) {\n/* 317 */ if (range == null) {\n/* 318 */ return false;\n/* */ }\n/* 320 */ return (containsLong(range.getMinimumLong()) && containsLong(range.getMaximumLong()));\n/* */ }",
"private boolean checkRangeAddress(int address) {\r\n return (address >= startAddress && address < endAddress);\r\n }",
"public boolean isRange() {\r\n return range;\r\n }",
"public boolean isRangeValid()\n {\n return isRangeValid(((AnalogInput)m_echoChannel).getVoltage());\n }",
"private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}",
"boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}",
"public boolean inRange(int row, int col) {\n\t /*if the given row and col is less than 0 or greater than the maximum number, return false*/\n\t if(row < 0 || row >= this.row || col < 0 || col >= this.col) {\n\t\t return false;\n\t }\n\t /*return true if it's valid*/\n\t else {\n\t\t return true;\n\t }\n }",
"public final CQLParser.rangeFunction_return rangeFunction() throws RecognitionException {\n CQLParser.rangeFunction_return retval = new CQLParser.rangeFunction_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token openType=null;\n Token closeType=null;\n Token RANGE148=null;\n Token char_literal149=null;\n CQLParser.expression_return e = null;\n\n CQLParser.expression_return rangeStart = null;\n\n CQLParser.expression_return rangeEnd = null;\n\n\n Object openType_tree=null;\n Object closeType_tree=null;\n Object RANGE148_tree=null;\n Object char_literal149_tree=null;\n RewriteRuleTokenStream stream_116=new RewriteRuleTokenStream(adaptor,\"token 116\");\n RewriteRuleTokenStream stream_117=new RewriteRuleTokenStream(adaptor,\"token 117\");\n RewriteRuleTokenStream stream_114=new RewriteRuleTokenStream(adaptor,\"token 114\");\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\n RewriteRuleTokenStream stream_115=new RewriteRuleTokenStream(adaptor,\"token 115\");\n RewriteRuleTokenStream stream_118=new RewriteRuleTokenStream(adaptor,\"token 118\");\n RewriteRuleSubtreeStream stream_expression=new RewriteRuleSubtreeStream(adaptor,\"rule expression\");\n errorMessageStack.push(\"RANGE definition\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:2: ( RANGE e= expression ( (openType= '[' ) | (openType= '(' ) ) rangeStart= expression ',' rangeEnd= expression (closeType= ')' | closeType= ']' ) -> ^( RANGE $e $openType $closeType $rangeStart $rangeEnd) )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:4: RANGE e= expression ( (openType= '[' ) | (openType= '(' ) ) rangeStart= expression ',' rangeEnd= expression (closeType= ')' | closeType= ']' )\n {\n RANGE148=(Token)match(input,RANGE,FOLLOW_RANGE_in_rangeFunction2480); \n stream_RANGE.add(RANGE148);\n\n pushFollow(FOLLOW_expression_in_rangeFunction2484);\n e=expression();\n\n state._fsp--;\n\n stream_expression.add(e.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:23: ( (openType= '[' ) | (openType= '(' ) )\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==117) ) {\n alt41=1;\n }\n else if ( (LA41_0==114) ) {\n alt41=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 41, 0, input);\n\n throw nvae;\n }\n switch (alt41) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:24: (openType= '[' )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:24: (openType= '[' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:25: openType= '['\n {\n openType=(Token)match(input,117,FOLLOW_117_in_rangeFunction2490); \n stream_117.add(openType);\n\n\n }\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:41: (openType= '(' )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:41: (openType= '(' )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:42: openType= '('\n {\n openType=(Token)match(input,114,FOLLOW_114_in_rangeFunction2498); \n stream_114.add(openType);\n\n\n }\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_expression_in_rangeFunction2504);\n rangeStart=expression();\n\n state._fsp--;\n\n stream_expression.add(rangeStart.getTree());\n char_literal149=(Token)match(input,115,FOLLOW_115_in_rangeFunction2506); \n stream_115.add(char_literal149);\n\n pushFollow(FOLLOW_expression_in_rangeFunction2510);\n rangeEnd=expression();\n\n state._fsp--;\n\n stream_expression.add(rangeEnd.getTree());\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:103: (closeType= ')' | closeType= ']' )\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( (LA42_0==116) ) {\n alt42=1;\n }\n else if ( (LA42_0==118) ) {\n alt42=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 42, 0, input);\n\n throw nvae;\n }\n switch (alt42) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:104: closeType= ')'\n {\n closeType=(Token)match(input,116,FOLLOW_116_in_rangeFunction2515); \n stream_116.add(closeType);\n\n\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:504:119: closeType= ']'\n {\n closeType=(Token)match(input,118,FOLLOW_118_in_rangeFunction2520); \n stream_118.add(closeType);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: openType, e, rangeEnd, rangeStart, closeType, RANGE\n // token labels: closeType, openType\n // rule labels: retval, e, rangeStart, rangeEnd\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleTokenStream stream_closeType=new RewriteRuleTokenStream(adaptor,\"token closeType\",closeType);\n RewriteRuleTokenStream stream_openType=new RewriteRuleTokenStream(adaptor,\"token openType\",openType);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_e=new RewriteRuleSubtreeStream(adaptor,\"rule e\",e!=null?e.tree:null);\n RewriteRuleSubtreeStream stream_rangeStart=new RewriteRuleSubtreeStream(adaptor,\"rule rangeStart\",rangeStart!=null?rangeStart.tree:null);\n RewriteRuleSubtreeStream stream_rangeEnd=new RewriteRuleSubtreeStream(adaptor,\"rule rangeEnd\",rangeEnd!=null?rangeEnd.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 505:3: -> ^( RANGE $e $openType $closeType $rangeStart $rangeEnd)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:505:6: ^( RANGE $e $openType $closeType $rangeStart $rangeEnd)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_RANGE.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_e.nextTree());\n adaptor.addChild(root_1, stream_openType.nextNode());\n adaptor.addChild(root_1, stream_closeType.nextNode());\n adaptor.addChild(root_1, stream_rangeStart.nextTree());\n adaptor.addChild(root_1, stream_rangeEnd.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }",
"public boolean overlapsRange(Range range) {\n/* 334 */ if (range == null) {\n/* 335 */ return false;\n/* */ }\n/* 337 */ return (range.containsLong(this.min) || range.containsLong(this.max) || containsLong(range.getMinimumLong()));\n/* */ }",
"private boolean cell_in_bounds(int row, int col) {\n return row >= 0\n && row < rowsCount\n && col >= 0\n && col < colsCount;\n }",
"private boolean isInRange(int c) {\n switch (border) {\n case between:\n return min <= c && c <= max;\n case min:\n return min <= c;\n case max:\n return c <= max;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + border);\n }\n }",
"public boolean inRange(Number n) {\n return n.compareTo(min) >= 0 && n.compareTo(max) <= 0;\n }",
"private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }",
"private boolean inBitRange(int k) {\n try {\n if (k < 0 || k >= this.numberOfBits())\n throw new Exception(\"Data: bit index is out of range (0<=\" + k + \"<\" + this.numberOfBits() + \")\");\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n return true;\n }",
"public boolean isInRange(int number){\n return (number >= min && number <= max);\n }",
"private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }",
"public boolean hasRangeVariableDeclaration() {\r\n\t\treturn rangeVariableDeclaration != null &&\r\n\t\t !rangeVariableDeclaration.isNull();\r\n\t}",
"public boolean check_func(int [] land, int x, int y)\n\t{\n\t\tif ((land[0] < x && land[2] > x\n\t\t\t& (land[1] < y && land[3] > y)))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"public static boolean inRange (Position defPos, Position atkPos, int range) {\n\t\tint defX = defPos.getX();\n\t\tint defY = defPos.getY();\n\t\t\n\t\tint atkX = atkPos.getX();\n\t\tint atkY = atkPos.getY();\n\t\t\n\t\tif (defX -range <= atkX &&\n\t\t\t\tdefX + range >= atkX)\n\t\t{\n\t\t\tif (defY -range <= atkY &&\n\t\t\t\t\tdefY+range >= atkY)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean isEquals(Range other);",
"public boolean isInBounds( int row, int col ) {\n return row >= 0 && col >= 0 && row < mat.getNumRows() && col < mat.getNumCols();\n }",
"private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}",
"private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }",
"public boolean sequenceRangeAssignments() {\r\n SequenceRange self = this.getSelf();\r\n Expression rangeLower = self.getRangeLower();\r\n Expression rangeUpper = self.getRangeUpper();\r\n if (rangeLower != null && rangeUpper != null) {\r\n Collection<AssignedSource> assignmentsAfter1 = rangeLower.getImpl().getNewAssignments();\r\n Collection<AssignedSource> assignmentsAfter2 = rangeUpper.getImpl().getNewAssignments();\r\n for (AssignedSource assignment: assignmentsAfter1) {\r\n if (assignment.getImpl().isAssignedIn(assignmentsAfter2)) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"public boolean isRange(int low, int high, int threshold)\n\t{\n\t\tint num = 0;\n\n\t\tfor (int i = low; i < high + 1; i++)\n\t\t{\n\t\t\tif (isOnset(i))\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\n\t\treturn num >= threshold;\n\t}",
"boolean hasAgeRange();",
"private boolean isBoundStatement() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\tStringBuilder lowerBound = new StringBuilder();\n\t\tStringBuilder upperBound = new StringBuilder();\n\t\tupdateToken();\n\t\t\n\t\tif(theCurrentToken.TokenType == TokenType.MINUS)\n\t\t{\n\t\t\tlowerBound.append('-');\n\t\t\tupdateToken();\n\t\t}\n\t\t\n\t\tif(isExpression() && theNextToken.TokenType == TokenType.RIGHT_BRACKET)\n\t\t{\n\t\t\tupdateToken();\n\t\t\tisValid = true;\n\t\t}\n\t\telse if(theCurrentToken.TokenType == TokenType.FLOAT || theCurrentToken.TokenType == TokenType.INTEGER)\n\t\t{\n\t\t\tlowerBound.append(theCurrentToken.TokenValue);\n\t\t\ttheSymbolTable.CURR_SYMBOL.setBoundLower(lowerBound.toString().trim());\n\t\t\t\n\t\t\tupdateToken();\n\t\t\tif(theCurrentToken.TokenType == TokenType.COLON)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.MINUS)\n\t\t\t\t{\n\t\t\t\t\tupperBound.append('-');\n\t\t\t\t\tupdateToken();\n\t\t\t\t}\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.FLOAT || theCurrentToken.TokenType == TokenType.INTEGER)\n\t\t\t\t{\n\t\t\t\t\tupperBound.append(theCurrentToken.TokenValue);\n\t\t\t\t\ttheSymbolTable.CURR_SYMBOL.setBoundUpper(upperBound.toString().trim());\n\t\t\t\t\t\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_BRACKET)\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\tSystem.out.println(\"Bound!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }",
"@Test(timeout = 4000)\n public void test053() throws Throwable {\n Range range0 = Range.of((-2147483648L));\n Range range1 = Range.of(1845L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n assertFalse(boolean0);\n \n range0.getBegin();\n assertTrue(range0.isEmpty());\n }",
"public boolean inRange(){\n //System.out.println(\"inRange\");\n return Math.abs(GameView.instance.player.position.x - creationPoint.x) < GameView.instance.cameraSize * attackRange;\n }",
"public boolean isInRange(int fromRank, int toRank, int fromFile, int toFile) {\n return fromRank <= rank && rank <= toRank && fromFile <= file && file <= toFile;\n }",
"private static boolean checkOccurrenceRange(int min1, int max1, int min2, int max2) {\n/* 1159 */ if (min1 >= min2 && (max2 == -1 || (max1 != -1 && max1 <= max2)))\n/* */ {\n/* */ \n/* 1162 */ return true;\n/* */ }\n/* 1164 */ return false;\n/* */ }",
"protected final boolean rangeTestFailed(int value) {\n\tboolean test1 =\n\t (reqminSet && (reqminClosed? (value < reqmin): (value <= reqmin)))\n\t || (minSet && (minClosed? (value < min): (value <= min)));\n\tboolean test2 =\n\t (reqmaxSet && (reqmaxClosed? (value > reqmax): (value >= reqmax)))\n\t || (maxSet && (maxClosed? (value > max): (value >= max)));\n\treturn (test1 || test2);\n }",
"boolean containsPowertypeRange(Generalization powertypeRange);",
"@Test(timeout = 4000)\n public void test047() throws Throwable {\n Range range0 = Range.ofLength(0L);\n String string0 = range0.toString();\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Object object0 = new Object();\n boolean boolean0 = range0.isSubRangeOf(range0);\n assertTrue(boolean0);\n }",
"@Test(timeout = 4000)\n public void test078() throws Throwable {\n Range range0 = Range.of((-2147483648L));\n boolean boolean0 = range0.equals(range0);\n assertTrue(boolean0);\n assertFalse(range0.isEmpty());\n }",
"protected boolean isAddressInRange(String range, String address) \r\n\t\t\tthrows ServletException {\r\n\t\t\r\n\t\tString network;\r\n\t\tString mask;\r\n\t\t\r\n\t\tint slashPos = range.indexOf('/');\r\n\t\tif (slashPos == -1) {\r\n\t\t\tnetwork = range;\r\n\t\t\tmask = \"255.255.255.255\";\r\n\t\t} else {\r\n\t\t\tnetwork = range.substring(0, slashPos);\r\n\t\t\tmask = range.substring(slashPos + 1);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tbyte[] netBytes = InetAddress.getByName(network).getAddress();\r\n\t\t\tbyte[] maskBytes = InetAddress.getByName(mask).getAddress();\r\n\t\t\tbyte[] addrBytes = InetAddress.getByName(address).getAddress();\r\n\t\t\tfor (int i = 0; i < netBytes.length; i++) {\r\n\t\t\t\tif ((netBytes[i] & maskBytes[i]) != (addrBytes[i] & maskBytes[i]))\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// Should never happen, because we work with raw IP addresses, not\r\n\t\t\t// with host names.\r\n\t\t\tthrow new ServletException(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public boolean validateQuestionReferenceRangePattern_validateQuestionReferenceRangePatternObservationRange(\n\t\t\tQuestionReferenceRangePattern questionReferenceRangePattern, DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context) {\n\t\treturn questionReferenceRangePattern.validateQuestionReferenceRangePatternObservationRange(diagnostics, context);\n\t}",
"public int isInBounds(T a);",
"private boolean isAuthenticated(@Nonnull final InetAddress address,\n @Nonnull @NonnullElements final Collection<IPRange> ranges) {\n final byte[] resolvedAddress = address.getAddress();\n\n for (final IPRange range : ranges) {\n if (range.contains(resolvedAddress)) {\n return true;\n }\n }\n \n return false;\n }",
"private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }",
"public int rangeBitwiseAnd(int m, int n) {\n\t \tint ans = 0;\n\t for (int i = 0; i < 32; ++ i) {\n \t\tif (1 == ((m >> i) & 1)) {\n \t\t\tif (((m & ~0 << (i + 1)) | (~0 >>> (31 - i))) >= n) {\n \t\t\t\tans |= 1 << i;\n \t\t\t}\n \t\t}\n\t }\n\t System.out.println(ans);\n\t return ans;\n\t }",
"private boolean inRange(final int left, final int right, final int target) {\n if (left <= target && target <= right)\n return true;\n\n // 2. If this is a reverted array\n //\n // e.g. [6, 7, 8, 9, 1, 2, 3]\n if (left > right &&\n (target >= left || target <= right)) // NOTE the \"OR\" here.\n return true;\n\n return false;\n }",
"public boolean allInRange(int start, int end) {\n \t\tfor (int i=0; i<data.length; i++) {\n \t\t\tint a=data[i];\n \t\t\tif ((a<start)||(a>=end)) return false;\n \t\t}\n \t\treturn true;\n \t}",
"private boolean checkRange(int rowIndex, int columnIndex) {\n return rowIndex >= 0 && rowIndex < matrix.length\n && columnIndex >= 0 && columnIndex < matrix[rowIndex].length;\n\n }",
"public boolean validateAnalogSliderQuestionPatternObservation_validateAnalogSliderQuestionPatternObservationReferenceRangeObservationRangeValue(\n\t\t\tAnalogSliderQuestionPatternObservation analogSliderQuestionPatternObservation, DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context) {\n\t\treturn analogSliderQuestionPatternObservation.validateAnalogSliderQuestionPatternObservationReferenceRangeObservationRangeValue(diagnostics, context);\n\t}",
"public boolean inBounds(Rectangle bounds)\n\t{\n\t\treturn bounds.contains(mX, mY);\n\t}",
"public boolean isLongRange() {\n\t\treturn this.ordinal() >= 2 && this.ordinal() <= 4;\n\t}",
"@Override\r\n public boolean checkElements(SequenceConstructionExpression owner) {\r\n SequenceRange self = this.getSelf();\r\n Expression rangeLower = self.getRangeLower();\r\n Expression rangeUpper = self.getRangeUpper();\r\n ElementReference rangeLowerType = rangeLower == null? null: rangeLower.getType();\r\n ElementReference rangeUpperType = rangeUpper == null? null: rangeUpper.getType();\r\n return (rangeLowerType == null || rangeLowerType.getImpl().isInteger()) && \r\n (rangeUpperType == null || rangeUpperType.getImpl().isInteger());\r\n }",
"public boolean validateQuestionReferenceRangePattern_validateQuestionReferenceRangePatternObservationRangeValue(\n\t\t\tQuestionReferenceRangePattern questionReferenceRangePattern, DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context) {\n\t\treturn questionReferenceRangePattern.validateQuestionReferenceRangePatternObservationRangeValue(diagnostics, context);\n\t}",
"private void parseRange(Node node) {\r\n if (switchTest) return;\r\n int low = node.low();\r\n int high = node.high();\r\n ok = false;\r\n if (in < input.length()) {\r\n int ch = input.codePointAt(in);\r\n ok = (ch >= low) && (ch <= high);\r\n if (ok) {\r\n int n = Character.charCount(ch);\r\n in += n;\r\n if (tracing) traceInput();\r\n }\r\n }\r\n }",
"private boolean rangeHasChanged() {\n\t\tboolean tester = true;\n\t\t\n\t\ttester &= plotSheet.getxRange()[0] == this.xrange[0];\n\t\ttester &= plotSheet.getxRange()[1] == this.xrange[1];\n\t\ttester &= plotSheet.getyRange()[0] == this.yrange[0];\n\t\ttester &= plotSheet.getyRange()[1] == this.yrange[1];\n\t\t\n\t\tif(!tester) {\n\t\t\tthis.xrange = plotSheet.getxRange().clone();\n\t\t\tthis.yrange = plotSheet.getyRange().clone();\n\t\t}\n\t\t\n\t\treturn !tester || this.depthSearchAborted;\n\t}",
"public boolean sequenceRangeExpressionMultiplicity() {\r\n SequenceRange self = this.getSelf();\r\n Expression rangeLower = self.getRangeLower();\r\n Expression rangeUpper = self.getRangeUpper();\r\n return rangeLower != null && rangeLower.getUpper() == 1 &&\r\n rangeUpper != null && rangeUpper.getUpper() == 1;\r\n }",
"static boolean isValid(int row, int col)\n{\n\t// return true if row number and\n\t// column number is in range\n\treturn (row >= 0) && (row < ROW) &&\n\t\t(col >= 0) && (col < COL);\n}",
"boolean hasDestRange();",
"public boolean rangeCheck(int index) {\n\t\tif (index >= 0 && index <= 7) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isEveryDayRange() {\n int totalLength = MAX - MIN + 1;\n return isFullRange(totalLength);\n }",
"public final smaliTreeWalker.register_range_return register_range() throws RecognitionException {\n smaliTreeWalker.register_range_return retval = new smaliTreeWalker.register_range_return();\n retval.start = input.LT(1);\n\n CommonTree startReg = null;\n CommonTree endReg = null;\n CommonTree I_REGISTER_RANGE99 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:666:3: ( ^( I_REGISTER_RANGE (startReg= REGISTER (endReg= REGISTER )? )? ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:666:5: ^( I_REGISTER_RANGE (startReg= REGISTER (endReg= REGISTER )? )? )\n {\n I_REGISTER_RANGE99 = (CommonTree) match(input, I_REGISTER_RANGE, FOLLOW_I_REGISTER_RANGE_in_register_range1721);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:666:24: (startReg= REGISTER (endReg= REGISTER )? )?\n int alt32 = 2;\n int LA32_0 = input.LA(1);\n if ((LA32_0 == REGISTER)) {\n alt32 = 1;\n }\n switch (alt32) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:666:25: startReg= REGISTER (endReg= REGISTER )?\n {\n startReg = (CommonTree) match(input, REGISTER, FOLLOW_REGISTER_in_register_range1726);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:666:49: (endReg= REGISTER )?\n int alt31 = 2;\n int LA31_0 = input.LA(1);\n if ((LA31_0 == REGISTER)) {\n alt31 = 1;\n }\n switch (alt31) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:666:49: endReg= REGISTER\n {\n endReg = (CommonTree) match(input, REGISTER, FOLLOW_REGISTER_in_register_range1730);\n }\n break;\n\n }\n\n }\n break;\n\n }\n\n match(input, Token.UP, null);\n }\n\n\n if (startReg == null) {\n retval.startRegister = 0;\n retval.endRegister = -1;\n } else {\n retval.startRegister = parseRegister_short((startReg != null ? startReg.getText() : null));\n if (endReg == null) {\n retval.endRegister = retval.startRegister;\n } else {\n retval.endRegister = parseRegister_short((endReg != null ? endReg.getText() : null));\n }\n\n int registerCount = retval.endRegister - retval.startRegister + 1;\n if (registerCount < 1) {\n throw new SemanticException(input, I_REGISTER_RANGE99, \"A register range must have the lower register listed first\");\n }\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return retval;\n }",
"public boolean isInSubnet(Inet4Address address) {\n\t\tbyte[] sb = subnetAddress.getAddress();\n\t\tint subnet_int = ((sb[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((sb[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((sb[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((sb[3] & 0xFF) << 0);\n\t\t\n\t\tbyte[] b = address.getAddress();\n\t\tint address_int = ((b[0] & 0xFF) << 24) |\n\t\t\t\t\t\t((b[1] & 0xFF) << 16) |\n\t\t\t\t\t\t((b[2] & 0xFF) << 8) |\n\t\t\t\t\t\t((b[3] & 0xFF) << 0);\n\t\t\n\t\tint bitmask = -1 << (32 - mask);\n\t\t\n\t\tif ((subnet_int & bitmask) == (address_int & bitmask)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public boolean inBounds(int x, int y) {\n return x >= 0 && y >= 0 && x < this.bounds.width\n && y < this.bounds.height;\n }",
"protected final boolean rangeTestNeeded() {\n\treturn needRangeTest;\n }",
"private boolean inRange(double num, double low, double high) {\n if (num >= low && num <= high)\n return true;\n\n return false;\n }",
"@Test(timeout = 4000)\n public void test009() throws Throwable {\n Range range0 = Range.of(32767L);\n Object object0 = new Object();\n boolean boolean0 = range0.equals(object0);\n assertFalse(boolean0);\n }",
"private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}",
"@Override\n public boolean isRange() {\n return false;\n }",
"public boolean containsDomainRange(long from, long to) { return true; }",
"@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }",
"public boolean isInBounds(int x, int y) {\r\n boolean check = false;\r\n if (x>=0 && x<this.width && y>=0 && y<this.tiles.length/this.width) {\r\n check = true;\r\n }\r\n return check;\r\n }",
"public boolean canReach(BE be, Vec3 pos) {\n\t\tAABB testRange = new AABB(be.getBlockPos()).inflate(this.range.apply(be));\n\n\t\treturn testRange.minX <= pos.x && testRange.minY <= pos.y && testRange.minZ <= pos.z && testRange.maxX >= pos.x && testRange.maxY >= pos.y && testRange.maxZ >= pos.z;\n\t}",
"private boolean xidInRange(final long xid) {\n return xid < endXid && (xid >= baseXid || baseXid > endXid);\n }",
"public Boolean boundaryCheck(int addr) {\r\n\t\t// Make sure address is less than LIMIT and SP, and greater than base\r\n\t\tif (addr < getLIM() && addr < getSP() && addr >= getBASE()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tm_TH.interruptIllegalMemoryAccess(addr);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"boolean hasIncomeRange();",
"boolean hasAgeRangeView();",
"public static boolean isValueRange(int value, int min, int max) throws Exception {\r\n\t\t//Checks the Case:\r\n\t\tif (value >= min && value <= max) {\r\n\t\t\t//Returns Value:\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\t//Returns Value:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static boolean correctRange(int [] input) {\n\t\treturn (input[0] > 0) && (input[1] > 0) && (input[2] > 0);\n\t}",
"private boolean checkConnection(int x1, int x2) {\n\t\treturn (xStartValue <= x1 && xEndValue >= x1) || (xStartValue <= x2 && xEndValue >= x2) ||\n\t\t\t\t(x1 <= xStartValue && x2 >= xStartValue) || (x1 <= xEndValue && x2 >= xEndValue);\n\t\t\n\t}",
"public static boolean boundCheck(int xCoord, int yCoord) {\n // the x,y coordinates ranges between 0 and 7 in the board array and because of that they need to be adjusted\n return (xCoord + 1 <= Board.X_UPPER_BOUND && xCoord + 1 >= Board.X_LOWER_BOUND &&\n yCoord + 1 <= Board.Y_UPPER_BOUND && yCoord + 1 >= Board.Y_LOWER_BOUND);\n }",
"private boolean RANGE(char first, char last) {\r\n if (in >= input.length()) return false;\r\n int len = input.nextLength(in);\r\n int code = input.nextChar(in, len);\r\n if (code < first || code > last) return false;\r\n in += len;\r\n return true;\r\n }",
"public boolean isBitSet(int pos) { try {return (reprezentare & (setMask[pos])) != 0;}\n\tcatch (Exception e)\n\t{ return true;} }",
"@Override\r\n\tpublic Object visitRangeExpression(RangeExpression rangeExpression,\r\n\t\t\tObject arg) throws Exception {\r\n\t\tString lowerType = (String) rangeExpression.lower.visit(this, arg);\r\n\t\tString upperType = (String) rangeExpression.upper.visit(this, arg);\r\n\t\tcheck(lowerType.equals(intType) && upperType.equals(intType), \"uncompatible range expression\", rangeExpression);\r\n\t\treturn null;\r\n\t}",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"private boolean inBounds(int deltaRow, int deltaCol) {\n boolean row = false;\n boolean col = false;\n\n if (lastPlacedRow + deltaRow < NUM_ROWS && lastPlacedRow + deltaRow >= 0) {\n row = true;\n }\n if (lastPlacedCol + deltaCol < NUM_COLS && lastPlacedCol + deltaCol >= 0) {\n col = true;\n }\n\n return row && col;\n }",
"public boolean canWalk() {\n\t\treturn rangeBottomLeft != null && !rangeBottomLeft.equals(location)\n\t\t\t\t&& rangeTopRight != null && !rangeTopRight.equals(location);\n\t}",
"public boolean inBounds(Board board) {\n return row >= 0 && column >= 0\n && row < board.nQueens && column < board.nQueens;\n }",
"@Test(timeout = 4000)\n public void test031() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32767L, 9223372036854775554L);\n Object object0 = new Object();\n range0.toString();\n range0.equals(object0);\n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString();\n assertEquals(\"[ 32767 .. 9223372036854775553 ]/0B\", string0);\n \n Range range1 = Range.parseRange(\"[ 32767 .. 9223372036854775553 ]/0B\", range_CoordinateSystem1);\n boolean boolean0 = range1.equals(range0);\n assertTrue(boolean0);\n \n range0.getEnd();\n List<Range> list0 = range1.complement(range0);\n assertEquals(1, list0.size());\n assertFalse(list0.contains(range1));\n }",
"public static boolean inRange(int value, int min, int max){\n if ((value >= min) && (value <= max))\n return true;\n return false;\n }",
"public final void rule__RangeClause__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:11978:1: ( ( 'range' ) )\r\n // InternalGo.g:11979:1: ( 'range' )\r\n {\r\n // InternalGo.g:11979:1: ( 'range' )\r\n // InternalGo.g:11980:2: 'range'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRangeClauseAccess().getRangeKeyword_1()); \r\n }\r\n match(input,83,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRangeClauseAccess().getRangeKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }",
"public static boolean checkRange(int x) {\n\n \n if (x >= 1 && x <= 9) { //check if input is between 1 and 9, inclusive\n return (true);\n }\n else {\n System.out.print(\"You did not enter an int in [1,9]; try again: \");\n return (false);\n \n }\n\n \n\n }",
"public boolean isIndexInMyRange(String index) {\n\t\tif (this.getFromIndex().compareTo(this.getToIndex()) > 0) {\n\t\t\tif (index.compareTo(this.getFromIndex()) >= 0)\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\treturn (index.compareTo(this.getToIndex()) <= 0);\n\t\t\t}\n\t\t}\n\t\t// for the other nodes\n\t\telse\n\t\t\treturn (index.compareTo(this.getFromIndex()) >= 0 && index\n\t\t\t\t\t.compareTo(this.getToIndex()) <= 0);\n\n\t}",
"private boolean inROI(RandomIter roiIter, int y, int x) {\n return (roiBounds.contains(x, y) && roiIter.getSample(x, y, 0) > 0);\n }",
"private boolean inProcessRange(ProcessorDistributionKey key, ActiveTimeSpans active)\n {\n if (checkTime(active, key.getTimeSpan(), key.getConstraintKey()))\n {\n return true;\n }\n\n final AnimationPlan animationPlan = myAnimationPlan;\n final AnimationState currentAnimationState = myCurrentAnimationState;\n if (animationPlan == null || currentAnimationState == null)\n {\n return false;\n }\n\n final int loadAhead = myProcessorBuilder.getProcessorFactory().getLoadAhead(key.getGeometryType());\n\n final AnimationState state = animationPlan.findState(key.getTimeSpan(), currentAnimationState.getDirection());\n if (state == null)\n {\n return false;\n }\n animationPlan.getTimeSpanForState(state);\n boolean inRange = false;\n try\n {\n final int distance = animationPlan.calculateDistance(currentAnimationState, state);\n inRange = distance <= loadAhead;\n }\n catch (final RuntimeException e)\n {\n // If this test fails just fail the in range test as this always\n // happens during a plan\n // change where the distributor has yet to receive the updated\n // plan and ends up in\n // a race condition with the animation manager adjusting to the\n // new plan.\n inRange = false;\n }\n return inRange;\n }",
"@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }",
"public final ANTLRv3Parser.range_return range() throws RecognitionException {\r\n ANTLRv3Parser.range_return retval = new ANTLRv3Parser.range_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token c1=null;\r\n Token c2=null;\r\n Token RANGE133=null;\r\n ANTLRv3Parser.elementOptions_return elementOptions134 =null;\r\n\r\n\r\n CommonTree c1_tree=null;\r\n CommonTree c2_tree=null;\r\n CommonTree RANGE133_tree=null;\r\n RewriteRuleTokenStream stream_RANGE=new RewriteRuleTokenStream(adaptor,\"token RANGE\");\r\n RewriteRuleTokenStream stream_CHAR_LITERAL=new RewriteRuleTokenStream(adaptor,\"token CHAR_LITERAL\");\r\n RewriteRuleSubtreeStream stream_elementOptions=new RewriteRuleSubtreeStream(adaptor,\"rule elementOptions\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:2: (c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )? -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? ) )\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:4: c1= CHAR_LITERAL RANGE c2= CHAR_LITERAL ( elementOptions )?\r\n {\r\n c1=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2159); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c1);\r\n\r\n\r\n RANGE133=(Token)match(input,RANGE,FOLLOW_RANGE_in_range2161); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_RANGE.add(RANGE133);\r\n\r\n\r\n c2=(Token)match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range2165); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_CHAR_LITERAL.add(c2);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: ( elementOptions )?\r\n int alt61=2;\r\n int LA61_0 = input.LA(1);\r\n\r\n if ( (LA61_0==77) ) {\r\n alt61=1;\r\n }\r\n switch (alt61) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:297:42: elementOptions\r\n {\r\n pushFollow(FOLLOW_elementOptions_in_range2167);\r\n elementOptions134=elementOptions();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_elementOptions.add(elementOptions134.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: c2, c1, elementOptions\r\n // token labels: c1, c2\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_c1=new RewriteRuleTokenStream(adaptor,\"token c1\",c1);\r\n RewriteRuleTokenStream stream_c2=new RewriteRuleTokenStream(adaptor,\"token c2\",c2);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 298:3: -> ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:6: ^( CHAR_RANGE[$c1,\\\"..\\\"] $c1 $c2 ( elementOptions )? )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(CHAR_RANGE, c1, \"..\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_c1.nextNode());\r\n\r\n adaptor.addChild(root_1, stream_c2.nextNode());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:298:37: ( elementOptions )?\r\n if ( stream_elementOptions.hasNext() ) {\r\n adaptor.addChild(root_1, stream_elementOptions.nextTree());\r\n\r\n }\r\n stream_elementOptions.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }",
"private boolean hasValidBounds() {\n\n\n\n return false;\n }",
"boolean isInInterval(int baseIndex);",
"public static boolean isInRange(int i, int topBoundary) {\n return 0 <= i && i < topBoundary;\n }",
"private boolean isValid() {\n // If start is greater or equal to end then it's invalid\n return !(start.compareTo(end) >= 0);\n }",
"public boolean inBounds(int mx, int my) {\n return mx >= x && mx <= x+width && my >= y && my <= y+height;\n }"
] | [
"0.62183267",
"0.5859893",
"0.5731426",
"0.5652357",
"0.55406225",
"0.55375123",
"0.54991883",
"0.5480945",
"0.5428889",
"0.5309894",
"0.5307585",
"0.5305362",
"0.5299688",
"0.5290448",
"0.5276839",
"0.5262211",
"0.52471477",
"0.5239392",
"0.5204001",
"0.5184776",
"0.5175618",
"0.5157304",
"0.5122761",
"0.50883144",
"0.50674564",
"0.5066616",
"0.503438",
"0.5016273",
"0.5014912",
"0.5009077",
"0.50080365",
"0.4989592",
"0.49503535",
"0.4946594",
"0.49265847",
"0.4904678",
"0.49035555",
"0.49022332",
"0.48932394",
"0.48804876",
"0.4876103",
"0.48631987",
"0.48567942",
"0.4850287",
"0.4843904",
"0.48397592",
"0.48347855",
"0.4828274",
"0.48277485",
"0.4822769",
"0.48181936",
"0.48122814",
"0.4809188",
"0.48048952",
"0.48014072",
"0.47851798",
"0.477375",
"0.4765302",
"0.47587305",
"0.47561473",
"0.47540227",
"0.47436088",
"0.47263405",
"0.47256064",
"0.47236705",
"0.4718568",
"0.47117636",
"0.47107837",
"0.47069627",
"0.47064584",
"0.4705074",
"0.4696414",
"0.4678367",
"0.4673695",
"0.4671501",
"0.46703967",
"0.4665145",
"0.46606475",
"0.4647069",
"0.4645942",
"0.46352628",
"0.4634905",
"0.4633459",
"0.4630821",
"0.46278086",
"0.46240315",
"0.46236452",
"0.46182528",
"0.4618124",
"0.461517",
"0.46055347",
"0.4595433",
"0.4594218",
"0.45889193",
"0.4588618",
"0.4583002",
"0.45823067",
"0.45762542",
"0.45753288",
"0.45747197"
] | 0.76212686 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.