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 |
|---|---|---|---|---|---|---|
ThreadPoolExecutor using privilegedThreadFactory has specified group, priority, daemon status, name, access control context and context class loader | public void testPrivilegedThreadFactory() throws Exception {
final CountDownLatch done = new CountDownLatch(1);
Runnable r = new CheckedRunnable() {
public void realRun() throws Exception {
final ThreadGroup egroup = Thread.currentThread().getThreadGroup();
final ClassLoader thisccl = Thread.currentThread().getContextClassLoader();
// android-note: Removed unsupported access controller check.
// final AccessControlContext thisacc = AccessController.getContext();
Runnable r = new CheckedRunnable() {
public void realRun() {
Thread current = Thread.currentThread();
assertTrue(!current.isDaemon());
assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);
ThreadGroup g = current.getThreadGroup();
SecurityManager s = System.getSecurityManager();
if (s != null)
assertTrue(g == s.getThreadGroup());
else
assertTrue(g == egroup);
String name = current.getName();
assertTrue(name.endsWith("thread-1"));
assertSame(thisccl, current.getContextClassLoader());
//assertEquals(thisacc, AccessController.getContext());
done.countDown();
}};
ExecutorService e = Executors.newSingleThreadExecutor(Executors.privilegedThreadFactory());
try (PoolCleaner cleaner = cleaner(e)) {
e.execute(r);
await(done);
}
}};
runWithPermissions(r,
new RuntimePermission("getClassLoader"),
new RuntimePermission("setContextClassLoader"),
new RuntimePermission("modifyThread"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testDefaultThreadFactory() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n try {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n } catch (SecurityException ok) {\n // Also pass if not allowed to change setting\n }\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.defaultThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }",
"ActorThreadPool getThreadPool();",
"private GDMThreadFactory(){}",
"@Context\r\npublic interface ThreadContext\r\n{\r\n /**\r\n * Get the minimum thread level.\r\n *\r\n * @param min the default minimum value\r\n * @return the minimum thread level\r\n */\r\n int getMin( int min );\r\n \r\n /**\r\n * Return maximum thread level.\r\n *\r\n * @param max the default maximum value\r\n * @return the maximum thread level\r\n */\r\n int getMax( int max );\r\n \r\n /**\r\n * Return the deamon flag.\r\n *\r\n * @param flag true if a damon thread \r\n * @return the deamon thread policy\r\n */\r\n boolean getDaemon( boolean flag );\r\n \r\n /**\r\n * Get the thread pool name.\r\n *\r\n * @param name the pool name\r\n * @return the name\r\n */\r\n String getName( String name );\r\n \r\n /**\r\n * Get the thread pool priority.\r\n *\r\n * @param priority the thread pool priority\r\n * @return the priority\r\n */\r\n int getPriority( int priority );\r\n \r\n /**\r\n * Get the maximum idle time.\r\n *\r\n * @param idle the default maximum idle time\r\n * @return the maximum idle time in milliseconds\r\n */\r\n int getIdle( int idle );\r\n \r\n}",
"@ProviderType\npublic interface ThreadPoolMBean {\n\n /**\n * Retrieve the block policy of the thread pool.\n * \n * @return the block policy\n */\n String getBlockPolicy();\n\n /**\n * Retrieve the active count from the pool's Executor.\n * \n * @return the active count or -1 if the thread pool does not have an Executor\n */\n int getExecutorActiveCount();\n\n /**\n * Retrieve the completed task count from the pool's Executor.\n * \n * @return the completed task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorCompletedTaskCount();\n\n /**\n * Retrieve the core pool size from the pool's Executor.\n * \n * @return the core pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorCorePoolSize();\n\n /**\n * Retrieve the largest pool size from the pool's Executor.\n * \n * @return the largest pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorLargestPoolSize();\n\n /**\n * Retrieve the maximum pool size from the pool's Executor.\n * \n * @return the maximum pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorMaximumPoolSize();\n\n\n /**\n * Retrieve the pool size from the pool's Executor.\n * \n * @return the pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorPoolSize();\n\n\n /**\n * Retrieve the task count from the pool's Executor. This is the total number of tasks, which\n * have ever been scheduled to this threadpool. They might have been processed yet or not.\n * \n * @return the task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorTaskCount();\n \n \n /**\n * Retrieve the number of tasks in the work queue of the pool's Executor. These are the\n * tasks which have been already submitted to the threadpool, but which are not yet executed.\n * @return the number of tasks in the work queue -1 if the thread pool does not have an Executor\n */\n long getExcutorTasksInWorkQueueCount();\n\n /**\n * Return the configured max thread age.\n *\n * @return The configured max thread age.\n * @deprecated Since version 1.1.1 always returns -1 as threads are no longer retired\n * but instead the thread locals are cleaned up (<a href=\"https://issues.apache.org/jira/browse/SLING-6261\">SLING-6261</a>)\n */\n @Deprecated\n long getMaxThreadAge();\n\n /**\n * Return the configured keep alive time.\n * \n * @return The configured keep alive time.\n */\n long getKeepAliveTime();\n\n /**\n * Return the configured maximum pool size.\n * \n * @return The configured maximum pool size.\n */\n int getMaxPoolSize();\n\n /**\n * Return the minimum pool size.\n * \n * @return The minimum pool size.\n */\n int getMinPoolSize();\n\n /**\n * Return the name of the thread pool\n * \n * @return the name\n */\n String getName();\n\n /**\n * Return the configuration pid of the thread pool.\n * \n * @return the pid\n */\n String getPid();\n\n /**\n * Return the configured priority of the thread pool.\n * \n * @return the priority\n */\n String getPriority();\n\n /**\n * Return the configured queue size.\n * \n * @return The configured queue size.\n */\n int getQueueSize();\n\n /**\n * Return the configured shutdown wait time in milliseconds.\n * \n * @return The configured shutdown wait time.\n */\n int getShutdownWaitTimeMs();\n\n /**\n * Return whether or not the thread pool creates daemon threads.\n * \n * @return The daemon configuration.\n */\n boolean isDaemon();\n\n /**\n * Return whether or not the thread pool is configured to shutdown gracefully.\n * \n * @return The graceful shutdown configuration.\n */\n boolean isShutdownGraceful();\n\n /**\n * Return whether or not the thread pool is in use.\n * \n * @return The used state of the pool.\n */\n boolean isUsed();\n\n}",
"public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }",
"public NamedThreadFactory(String name)\n {\n this(name, null);\n }",
"@Override\n protected ExecutorService createDefaultExecutorService() {\n return null;\n }",
"public ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException;",
"@Bean\n @ConditionalOnMissingBean(Executor.class)\n @ConditionalOnProperty(name = \"async\", prefix = \"slack\", havingValue = \"true\")\n public Executor threadPool() {\n ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n executor.setCorePoolSize(5);\n executor.setMaxPoolSize(30);\n executor.setQueueCapacity(20);\n executor.setThreadNamePrefix(\"slack-thread\");\n return executor;\n }",
"ScheduledExecutorService getExecutorService();",
"@Singleton\n\t@Provides\n\tExecutorService provideExecutorService() {\n\t\tThreadFactory threadFactory = new ThreadFactory() {\n\t\t\tprivate final AtomicInteger threadNumber = new AtomicInteger(1);\n\n\t\t\t@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\t// Two-digit counter, used in load test.\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}\n\t\t};\n\t\treturn threadCount >= 0\n\t\t\t\t? Executors.newFixedThreadPool(threadCount, threadFactory)\n\t\t\t\t: Executors.newCachedThreadPool(threadFactory);\n\t}",
"protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }",
"protected synchronized ExecutorService getService() {\r\n if(service == null) {\r\n //System.out.println(\"creating an executor service with a threadpool of size \" + threadPoolSize);\r\n service = Executors.newFixedThreadPool(threadPoolSize, new ThreadFactory() {\r\n private int count = 0;\r\n \r\n public Thread newThread(Runnable r) {\r\n Thread t = new Thread(r, \"tile-pool-\" + count++);\r\n t.setPriority(Thread.MIN_PRIORITY);\r\n t.setDaemon(true);\r\n return t;\r\n }\r\n });\r\n }\r\n return service;\r\n }",
"@Test\n void test3() {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(1,1,10L, TimeUnit.SECONDS,new LinkedBlockingDeque<>(2),new ThreadPoolExecutor.DiscardPolicy());\n for (int i = 0; i < 10; i++) {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n System.out.println(Thread.currentThread().getName()+\"输出\");\n }\n });\n }\n }",
"public interface ThreadExecutor extends Executor {\n}",
"public ThreadPool getDefaultThreadPool();",
"public static Executor buildExecutor() {\n GrpcRegisterConfig config = Singleton.INST.get(GrpcRegisterConfig.class);\n if (null == config) {\n return null;\n }\n final String threadpool = Optional.ofNullable(config.getThreadpool()).orElse(Constants.CACHED);\n switch (threadpool) {\n case Constants.SHARED:\n try {\n return SpringBeanUtils.getInstance().getBean(ShenyuThreadPoolExecutor.class);\n } catch (NoSuchBeanDefinitionException t) {\n throw new ShenyuException(\"shared thread pool is not enable, config ${shenyu.sharedPool.enable} in your xml/yml !\", t);\n }\n case Constants.FIXED:\n case Constants.EAGER:\n case Constants.LIMITED:\n throw new UnsupportedOperationException();\n case Constants.CACHED:\n default:\n return null;\n }\n }",
"protected EventExecutor newChild(ThreadFactory threadFactory, Object... args) throws Exception {\n/* 57 */ return (EventExecutor)new LocalEventLoop(this, threadFactory);\n/* */ }",
"private ExecutorService getDroneThreads() {\n\t\treturn droneThreads;\n\t}",
"public void testUnconfigurableExecutorService() {\n final ExecutorService e = Executors.unconfigurableExecutorService(Executors.newFixedThreadPool(2));\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"public LocalEventLoopGroup(int nThreads, ThreadFactory threadFactory) {\n/* 51 */ super(nThreads, threadFactory, new Object[0]);\n/* */ }",
"public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}",
"public void testNewSingleThreadExecutor2() {\n final ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"@Override\n public ExecutorService newThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory) {\n if (profile.isDefaultProfile()) {\n return vertxExecutorService;\n } else {\n return super.newThreadPool(profile, threadFactory);\n }\n }",
"@Override\n public int getProcessorType() {\n return OperationExecutors.HIGH_PRIORITY_EXECUTOR;\n }",
"@Bean(name = \"process-response\")\n\tpublic Executor threadPoolTaskExecutor() {\n\t\tThreadPoolTaskExecutor x = new ThreadPoolTaskExecutor();\n\t\tx.setCorePoolSize(poolProcessResponseCorePoolSize);\n\t\tx.setMaxPoolSize(poolProcessResponseMaxPoolSize);\n\t\treturn x;\n\t}",
"public void testNewFixedThreadPool2() {\n final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tThreadPoolManager.addPool(\"1,UD,12,12,30000,200000\");\r\n//\t\tThreadPoolManager.addPool(\"2,UD,12,12,30000,200000\");\r\n\r\n// ThreadPoolManager.init(params);\r\n// ThreadPoolManager.getPool(\"1\");\r\n\t\t\r\n//\t\tThread t = new Thread(this.testCreaterun());\r\n//\t\tBaseTask\r\n\t\tBaseTask b = this.testCreaterun();\r\n\t\tThreadPoolManager.submit(\"1\", b);\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\tThreadPoolManager.shutdownNow(\"1\");\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystemUtil.sleepForever();\r\n\t}",
"private void initExecService() {\n try {\n executorService = Executors.newFixedThreadPool(NO_OF_THREADS);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }",
"@Override\n public ScheduledExecutorService getSchedExecService() {\n return channelExecutor;\n }",
"public ThreadPool getThreadPool(String threadpoolId) throws NoSuchThreadPoolException;",
"public static void main(String[] args) {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(7, 8, 5, TimeUnit.SECONDS,\r\n new LinkedBlockingQueue<Runnable>());\r\n System.out.println(executor.getCorePoolSize());\r\n System.out.println(executor.getMaximumPoolSize());\r\n System.out.println(\"***************************\");\r\n ThreadPoolExecutor executor2 = new ThreadPoolExecutor(7, 8, 5, TimeUnit.SECONDS,\r\n new SynchronousQueue<Runnable>());\r\n System.out.println(executor2.getCorePoolSize());\r\n System.out.println(executor2.getMaximumPoolSize());\r\n\r\n// 7\r\n// 8\r\n// ***************************\r\n// 7\r\n// 8\r\n\r\n // 熟悉下api,查询线程池中保存的core线程数量为7,最大为8\r\n }",
"public interface ThreadPool {\n /**\n * Returns the number of threads in the thread pool.\n */\n int getPoolSize();\n /**\n * Returns the maximum size of the thread pool.\n */\n int getMaximumPoolSize();\n /**\n * Returns the keep-alive time until the thread suicides after it became\n * idle (milliseconds unit).\n */\n int getKeepAliveTime();\n\n void setMaximumPoolSize(int maximumPoolSize);\n void setKeepAliveTime(int keepAliveTime);\n\n /**\n * Starts thread pool threads and starts forwarding events to them.\n */\n void start();\n /**\n * Stops all thread pool threads.\n */\n void stop();\n \n\n}",
"public ThreadLocal() {}",
"int getExecutorCorePoolSize();",
"@Bean(destroyMethod = \"shutdown\")\n public Executor threadPoolTaskExecutor(@Value(\"${thread.size}\") String argThreadSize) {\n this.threadSize = Integer.parseInt(argThreadSize);\n ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n executor.setCorePoolSize(this.threadSize);\n executor.setKeepAliveSeconds(15);\n executor.initialize();\n return executor;\n }",
"int getExecutorPoolSize();",
"@Override\n\tpublic ThreadPoolExecutor getThreadPool(final HystrixThreadPoolKey threadPoolKey,\n\t\t\tfinal HystrixProperty<Integer> corePoolSize, final HystrixProperty<Integer> maximumPoolSize,\n\t\t\tfinal HystrixProperty<Integer> keepAliveTime, final TimeUnit unit,\n\t\t\tfinal BlockingQueue<Runnable> workQueue) {\n\n\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - default [threadPoolKey=\" + threadPoolKey.name() + \", corePoolSize=\"\n\t\t\t\t+ corePoolSize.get() + \", maximumPoolSize=\" + maximumPoolSize.get() + \", keepAliveTime=\"\n\t\t\t\t+ keepAliveTime.get() + \", unit=\" + unit.name() + \"], override with [threadPoolKey=\"\n\t\t\t\t+ threadPoolKey.name() + \", corePoolSize=\" + CORE_POOL_SIZE + \", maximumPoolSize=\" + MAX_POOL_SIZE\n\t\t\t\t+ \", keepAliveTime=\" + KEEP_ALIVE_TIME + \", unit=\" + TimeUnit.SECONDS.name() + \"]\");\n\n\t\tif (threadFactory != null) {\n\t\t\t// All threads will run as part of this application component.\n\t\t\tfinal ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(CORE_POOL_SIZE, MAX_POOL_SIZE,\n\t\t\t\t\tKEEP_ALIVE_TIME, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(BLOCKING_QUEUE_SIZE),\n\t\t\t\t\tthis.threadFactory);\n\n\t\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - initialized threadpool executor [threadPoolKey=\"\n\t\t\t\t\t+ threadPoolKey.name() + \"]\");\n\n\t\t\treturn threadPoolExecutor;\n\t\t} else {\n\t\t\tLOGGER.warn(LOG_PREFIX + \"getThreadPool - fallback to Hystrix default thread pool executor.\");\n\n\t\t\treturn super.getThreadPool(threadPoolKey, corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\n\t\t}\n\t}",
"public void testNewCachedThreadPool2() {\n final ExecutorService e = Executors.newCachedThreadPool(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"void setExecutorService(ExecutorService executorService);",
"public abstract ScheduledExecutorService getWorkExecutor();",
"@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }",
"@Test\n public void launchesEventhandlerThreadpoolPriorityTest() {\n // TODO: test launchesEventhandlerThreadpoolPriority\n }",
"public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public interface RegistryExecutor extends Executor {\n ExecutionContext getExecutionContext();\n\n void setRunner(RegistryDelegate<? extends RegistryTask> delegate);\n\n void start();\n\n void stop();\n}",
"public static ExecutorService daemonTwoThreadService(){\n return Executors.newFixedThreadPool(2,new ThreadFactory(){\n\n @Override\n public Thread newThread(Runnable r) {\n Thread t= Executors.defaultThreadFactory().newThread(r);\n t.setDaemon(true);\n return t;\n }\n });\n }",
"private void ejecutorDeServicio(){\r\n dbExeccutor = Executors.newFixedThreadPool(\r\n 1, \r\n new databaseThreadFactory()\r\n ); \r\n }",
"public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThreadPool(2);\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"ScheduledExecutorService getScheduledExecutorService();",
"public LocalEventLoopGroup(int nThreads) {\n/* 41 */ this(nThreads, null);\n/* */ }",
"public void testCastNewSingleThreadExecutor() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n try {\n ThreadPoolExecutor tpe = (ThreadPoolExecutor)e;\n shouldThrow();\n } catch (ClassCastException success) {}\n }\n }",
"PooledThread()\n {\n setDaemon(true);\n\n start();\n }",
"public static ExecutorService getMainExecutorService() {\n return executorService;\n }",
"public static @NonNull Executor newPacketDispatcher(@NonNull DriverEnvironment driverEnvironment) {\n // a cached pool with a thread idle-lifetime of 30 seconds\n // rejected tasks will be executed on the calling thread (See ThreadPoolExecutor.CallerRunsPolicy)\n // at least one thread is always idling in this executor\n var maximumPoolSize = threadAmount(driverEnvironment);\n return ExecutorServiceUtil.newVirtualThreadExecutor(\"Packet-Dispatcher-\", threadFactory -> new ThreadPoolExecutor(\n maximumPoolSize,\n maximumPoolSize,\n 30L,\n TimeUnit.SECONDS,\n new LinkedBlockingQueue<>(),\n threadFactory,\n DEFAULT_REJECT_HANDLER));\n }",
"protected EventExecutor executor()\r\n/* 49: */ {\r\n/* 50: 87 */ return this.executor;\r\n/* 51: */ }",
"public static ListenableThreadPoolExecutor newOptimalSizedExecutorService(String name, int priority) {\r\n\t\tint processors = Runtime.getRuntime().availableProcessors();\r\n\t\tint threads = processors > 1 ? processors - 1 : 1;\r\n\t\treturn new ListenableThreadPoolExecutor(name, threads, priority);\r\n\t}",
"public void testNewSingleThreadExecutor1() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"public ProcessAccountThreadPoolVisitor(final Context ctx, final int threads, final int queueSize,\r\n final ContextAgent delegate, final LifecycleAgentSupport agent)\r\n\t{\r\n\t\tsetContext(ctx);\r\n threadPool_ = new ThreadPool(POOL_NAME, queueSize, threads, new PMContextAgent(POOL_NAME, ProcessAccountThreadPoolVisitor.class.getSimpleName(), delegate));\r\n agent_ = agent;\r\n\t}",
"@Test\n @DisplayName(\"SingleThread Executor + shutdown\")\n void firstExecutorService() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n executor.submit(this::printThreadName);\n\n shutdownExecutor(executor);\n assertThrows(RejectedExecutionException.class, () -> executor.submit(this::printThreadName));\n }",
"public ShutdownSuppressingExecutorServiceAdapter(TaskExecutor taskExecutor) {\n\t\tsuper(taskExecutor);\n\t}",
"public ThreadPoolExecutor create_blocking_thread_pool( String name, int threads, int queue_size )\n {\n NamedThreadPoolExecutor ret = new NamedThreadPoolExecutor( name, queue_size, threads, threads, 60, TimeUnit.MINUTES);\n \n pool_list.add( ret );\n\n return ret;\n }",
"public void testNewFixedThreadPool4() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(0);\n shouldThrow();\n } catch (IllegalArgumentException success) {}\n }",
"public static void main(String[] args) {\n ThreadPoolExecutor executorService = new ThreadPoolExecutor(3, 10, 1L, TimeUnit.SECONDS,\n new LinkedBlockingQueue<>(20),\n Executors.defaultThreadFactory(),\n new ThreadPoolExecutor.AbortPolicy());\n ABC abc = new ABC();\n try {\n for (int i = 1; i <= 10; i++) {\n executorService.execute(abc::print5);\n executorService.execute(abc::print10);\n executorService.execute(abc::print15);\n }\n\n }finally {\n executorService.shutdown();\n }\n }",
"Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}",
"public static Runnable decorate(ThreadPoolExecutor thiz, Runnable r) {\n /*\n * Here we handle the special case of this ThreadPoolExecutor (TPE) actually being an instance of\n * ScheduledThreadPoolExecutor (STPE). STPE subclasses TPE and doesn't override its remove() method.\n * When STPE.remove() is invoked, it actually invokes TPE.remove(). Thus despite ThreadPoolExecutorInterceptor\n * excluding STPE (and its subclasses) from interception, here we need to take this extra action to exclude\n * STPE.\n *\n * STPE uses a member class ScheduledFutureTask to manage delayed work. If the Runnable `r' is actually\n * a ScheduledFutureTask, then wrapping it here in a DecoratedRunnable will result in the check\n * `instanceof ScheduledFutureTask' failing in the implementation of `ScheduledThreadPoolExecutor$DelayedWorkQueue.indexOf',\n * which will result in a linear scan of the STPE's task queue instead of a constant-time lookup into\n * the array backing that queue. This performance regression may be dangerous in high-load scenarios.\n */\n if (thiz instanceof ScheduledThreadPoolExecutor) {\n return r;\n } else {\n return DecoratedRunnable.maybeCreate(r);\n }\n }",
"public void testCreateThreadPool_0args()\n {\n System.out.println( \"createThreadPool\" );\n ThreadPoolExecutor result = ParallelUtil.createThreadPool();\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool(\n ParallelUtil.OPTIMAL_THREADS );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n }",
"private ThreadUtil() {\n \n }",
"public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCreateThreadPool_int()\n {\n System.out.println( \"createThreadPool\" );\n int numRequestedThreads = 0;\n ThreadPoolExecutor result = ParallelUtil.createThreadPool( ParallelUtil.OPTIMAL_THREADS );\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool( -1 );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n \n result = ParallelUtil.createThreadPool( -1 );\n assertTrue( result.getMaximumPoolSize() > 0 );\n \n numRequestedThreads = 10;\n result = ParallelUtil.createThreadPool( numRequestedThreads );\n assertEquals( numRequestedThreads, result.getMaximumPoolSize() );\n }",
"public ThreadPoolExecutor getForLightWeightBackgroundTasks() {\n return mForLightWeightBackgroundTasks;\n }",
"public ExecutorService getExecutorService() {\n return executorService;\n }",
"public ExecutorService getExecutorService() {\n return executorService;\n }",
"public ExecutorService getExecutorService() {\n return executorService;\n }",
"public ExecutorService getExecutorService() {\n return executorService;\n }",
"public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }",
"public WildflyHystrixConcurrencyStrategy(final ManagedThreadFactory threadFactory) {\n\t\t//\n\t\t// Used by CDI provider.\n\t\t\n\t\tthis.threadFactory = threadFactory;\n\t}",
"public interface IHttpThreadExecutor {\n public void addTask(Runnable runnable);\n}",
"public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }",
"public static void main(String[] args) {\n\t\tExecutorService pool = Executors.newFixedThreadPool(3);\n\t\t//ExecutorService pool = Executors.newSingleThreadExecutor();\n\t\t\n\t\tExecutorService pool2 = Executors.newCachedThreadPool();\n\t\t//this pool2 will add more thread into pool(when no other thread running), the new thread do not need to wait.\n\t\t//pool2 will delete un runing thread(unrun for 60 secs)\n\t\tThread t1 = new MyThread();\n\t\tThread t2 = new MyThread();\n\t\tThread t3 = new MyThread();\n\n\t\tpool.execute(t1);\n\t\tpool.execute(t2);\n\t\tpool.execute(t3);\n\t\tpool.shutdown();\n\t\t\n\t}",
"private ThreadUtil() {\n }",
"private CollectTaskPool() {\n\t\tsuper();\n\t}",
"public static GlideExecutor m21519e() {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(0, Integer.MAX_VALUE, f23336b, TimeUnit.MILLISECONDS, new SynchronousQueue(), new C8962a(\"source-unlimited\", UncaughtThrowableStrategy.f23340b, false));\n return new GlideExecutor(threadPoolExecutor);\n }",
"public static void main(String[] args) {\n\t\tBlockingQueue queue = new LinkedBlockingQueue(4);\n\n\t\t// Thread factory below is used to create new threads\n\t\tThreadFactory thFactory = Executors.defaultThreadFactory();\n\n\t\t// Rejection handler in case the task get rejected\n\t\tRejectTaskHandler rth = new RejectTaskHandler();\n\t\t// ThreadPoolExecutor constructor to create its instance\n\t\t// public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long\n\t\t// keepAliveTime,\n\t\t// TimeUnit unit,BlockingQueue workQueue ,ThreadFactory\n\t\t// threadFactory,RejectedExecutionHandler handler) ;\n\t\tThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 2, 10L, TimeUnit.MILLISECONDS, queue,\n\t\t\t\tthFactory, rth);\n\n\t\tfor (int i = 1; i <= 10; i++) {\n\t\t\tDataFileReader df = new DataFileReader(\"File \" + i);\n\t\t\tSystem.out.println(\"A new file has been added to read : \" + df.getFileName());\n\t\t\t// Submitting task to executor\n\t\t\tthreadPoolExecutor.execute(df);\n\t\t}\n\t\tthreadPoolExecutor.shutdown();\n\t}",
"public TaskThread(ThreadPool threadPool) {\n super(threadPool.getThreadGroup(), \"Task: Idle\");\n this.threadPool = threadPool;\n threadId = ThreadPool.getUniqueThreadId();\n System.out.println(\"threadId Created:\" + threadId);\n }",
"int getExecutorLargestPoolSize();",
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testNewFixedThreadPool3() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(2, null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"private TestAcceptFactory() {\n this._pool = new DirectExecutor();\n }",
"public static ThreadPoolTaskScheduler createThreadPoolTaskScheduler(\r\n\t\t\tExecutorService executorService, \r\n\t\t\tFrequency frequency, String name, TimeZone timezone){\r\n\t\treturn new ThreadPoolTaskScheduler(executorService, frequency, name, timezone);\r\n\t}",
"public static ThreadPool getInstance()\r\n {\r\n if(instance == null)\r\n {\r\n instance = new ThreadPool();\r\n }\r\n return instance;\r\n }",
"protected ForkJoinWorkerThread(ForkJoinPool pool) {\n<<<<<<< HEAD\n super(pool.nextWorkerName());\n this.pool = pool;\n int k = pool.registerWorker(this);\n poolIndex = k;\n eventCount = ~k & SMASK; // clear wait count\n locallyFifo = pool.locallyFifo;\n Thread.UncaughtExceptionHandler ueh = pool.ueh;\n if (ueh != null)\n setUncaughtExceptionHandler(ueh);\n setDaemon(true);\n }",
"protected EventExecutor executor()\r\n/* 27: */ {\r\n/* 28: 58 */ EventExecutor e = super.executor();\r\n/* 29: 59 */ if (e == null) {\r\n/* 30: 60 */ return channel().eventLoop();\r\n/* 31: */ }\r\n/* 32: 62 */ return e;\r\n/* 33: */ }",
"public TestInvoker()\n {\n super(new TestClient(), new ThreadPoolExecutorImpl(3));\n }",
"static ScheduledExecutorService m52657a() {\n return (ScheduledExecutorService) C7258h.m22724a(C7265m.m22758a(ThreadPoolType.SCHEDULED).mo18993a(1).mo18996a());\n }",
"long getThreadId();",
"public SimulatorThreadGroup(String name) {\n\t\tsuper(name);\n\t}",
"static ExecutorService boundedNamedCachedExecutorService(int maxThreadBound, String poolName, long keepalive, int queueSize, RejectedExecutionHandler abortPolicy) {\n\n ThreadFactory threadFactory = new NamedThreadFactory(poolName);\n LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>(queueSize);\n\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(\n maxThreadBound,\n maxThreadBound,\n keepalive,\n TimeUnit.SECONDS,\n queue,\n threadFactory,\n abortPolicy\n );\n\n threadPoolExecutor.allowCoreThreadTimeOut(true);\n\n return threadPoolExecutor;\n }",
"void setThreadedAsyncMode(boolean useExecutor);",
"int getExecutorMaximumPoolSize();"
] | [
"0.693278",
"0.62724304",
"0.6259755",
"0.6217955",
"0.6155982",
"0.6069293",
"0.6068028",
"0.6042342",
"0.59515023",
"0.5885391",
"0.5873181",
"0.5863952",
"0.5854368",
"0.5854251",
"0.5850407",
"0.584976",
"0.5843923",
"0.58254516",
"0.58245057",
"0.5803213",
"0.5759844",
"0.5757381",
"0.5739431",
"0.5696402",
"0.56821024",
"0.56786406",
"0.56636584",
"0.56584966",
"0.56547105",
"0.56443256",
"0.5614481",
"0.5609272",
"0.56046027",
"0.5592052",
"0.5590876",
"0.5554222",
"0.5535574",
"0.5514709",
"0.54874784",
"0.5479157",
"0.5474828",
"0.5428664",
"0.54212385",
"0.5415349",
"0.5398514",
"0.5394117",
"0.5392142",
"0.53913546",
"0.5383047",
"0.53820294",
"0.5376183",
"0.537365",
"0.53678715",
"0.5367379",
"0.53633153",
"0.5351403",
"0.534706",
"0.53420365",
"0.53374684",
"0.53309804",
"0.5326241",
"0.53162026",
"0.5313691",
"0.5298085",
"0.52977055",
"0.52852285",
"0.52812386",
"0.52725637",
"0.5272429",
"0.5272225",
"0.52714914",
"0.5258384",
"0.5258384",
"0.5258384",
"0.5258384",
"0.5245326",
"0.52334595",
"0.5231777",
"0.5221219",
"0.5214516",
"0.52021784",
"0.52002007",
"0.5187897",
"0.5186572",
"0.51859725",
"0.51792693",
"0.5164404",
"0.51570755",
"0.5152894",
"0.5138077",
"0.5138045",
"0.51330525",
"0.5126612",
"0.5125739",
"0.5122776",
"0.5120161",
"0.51192486",
"0.51090765",
"0.51049435",
"0.50988275"
] | 0.77991825 | 0 |
Without class loader permissions, creating privilegedCallableUsingCurrentClassLoader throws ACE | public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {
Runnable r = new CheckedRunnable() {
public void realRun() throws Exception {
if (System.getSecurityManager() == null)
return;
try {
Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());
shouldThrow();
} catch (AccessControlException success) {}
}};
runWithoutPermissions(r);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testPrivilegedThreadFactory() throws Exception {\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final ClassLoader thisccl = Thread.currentThread().getContextClassLoader();\n // android-note: Removed unsupported access controller check.\n // final AccessControlContext thisacc = AccessController.getContext();\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n assertSame(thisccl, current.getContextClassLoader());\n //assertEquals(thisacc, AccessController.getContext());\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.privilegedThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"),\n new RuntimePermission(\"modifyThread\"));\n }",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public CallerBasedSecurityManagerTest() {\n manager = new CallerBasedSecurityManager();\n }",
"private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }",
"public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }",
"boolean isCallableAccess();",
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"AnonymousClass1(java.security.Signer r1, java.security.PublicKey r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void\");\n }",
"private static void setupCallerCheck() {\n try {\n final ClassLoader loader = Loader.getClassLoader();\n // Use wildcard to avoid compile-time reference.\n final Class<?> clazz = loader.loadClass(\"sun.reflect.Reflection\");\n final Method[] methods = clazz.getMethods();\n for (final Method method : methods) {\n final int modifier = method.getModifiers();\n if (method.getName().equals(\"getCallerClass\") && Modifier.isStatic(modifier)) {\n getCallerClass = method;\n return;\n }\n }\n } catch (final ClassNotFoundException cnfe) {\n LOGGER.debug(\"sun.reflect.Reflection is not installed\");\n }\n\n try {\n final PrivateSecurityManager mgr = new PrivateSecurityManager();\n if (mgr.getClasses() != null) {\n securityManager = mgr;\n } else {\n // This shouldn't happen.\n LOGGER.error(\"Unable to obtain call stack from security manager\");\n }\n } catch (final Exception ex) {\n LOGGER.debug(\"Unable to install security manager\", ex);\n }\n }",
"protected interface Resolver {\n\n /**\n * Adjusts a module graph if necessary.\n *\n * @param classLoader The class loader to adjust.\n * @param target The targeted class for which a proxy is created.\n */\n void accept(@MaybeNull ClassLoader classLoader, Class<?> target);\n\n /**\n * An action to create a resolver.\n */\n enum CreationAction implements PrivilegedAction<Resolver> {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should not be rethrown but trigger a fallback.\")\n public Resolver run() {\n try {\n Class<?> module = Class.forName(\"java.lang.Module\", false, null);\n return new ForModuleSystem(Class.class.getMethod(\"getModule\"),\n module.getMethod(\"isExported\", String.class),\n module.getMethod(\"addExports\", String.class, module),\n ClassLoader.class.getMethod(\"getUnnamedModule\"));\n } catch (Exception ignored) {\n return NoOp.INSTANCE;\n }\n }\n }\n\n /**\n * A non-operational resolver for VMs that do not support the module system.\n */\n enum NoOp implements Resolver {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n /* do nothing */\n }\n }\n\n /**\n * A resolver for VMs that do support the module system.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class ForModuleSystem implements Resolver {\n\n /**\n * The {@code java.lang.Class#getModule} method.\n */\n private final Method getModule;\n\n /**\n * The {@code java.lang.Module#isExported} method.\n */\n private final Method isExported;\n\n /**\n * The {@code java.lang.Module#addExports} method.\n */\n private final Method addExports;\n\n /**\n * The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n private final Method getUnnamedModule;\n\n /**\n * Creates a new resolver for a VM that supports the module system.\n *\n * @param getModule The {@code java.lang.Class#getModule} method.\n * @param isExported The {@code java.lang.Module#isExported} method.\n * @param addExports The {@code java.lang.Module#addExports} method.\n * @param getUnnamedModule The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n protected ForModuleSystem(Method getModule,\n Method isExported,\n Method addExports,\n Method getUnnamedModule) {\n this.getModule = getModule;\n this.isExported = isExported;\n this.addExports = addExports;\n this.getUnnamedModule = getUnnamedModule;\n }\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should always be wrapped for clarity.\")\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n Package location = target.getPackage();\n if (location != null) {\n try {\n Object module = getModule.invoke(target);\n if (!(Boolean) isExported.invoke(module, location.getName())) {\n addExports.invoke(module, location.getName(), getUnnamedModule.invoke(classLoader));\n }\n } catch (Exception exception) {\n throw new IllegalStateException(\"Failed to adjust module graph for dispatcher\", exception);\n }\n }\n }\n }\n }",
"AnonymousClass1(javax.crypto.JarVerifier r1, java.net.URL r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: javax.crypto.JarVerifier.1.<init>(javax.crypto.JarVerifier, java.net.URL):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: javax.crypto.JarVerifier.1.<init>(javax.crypto.JarVerifier, java.net.URL):void\");\n }",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tAccessModifier obj = new AccessModifier();\r\n\t\tobj.publicFunction();\r\n\t\tTestAccessModAtProjectLevel obj2= new \tTestAccessModAtProjectLevel();\r\n\t\tobj2.protectedfunction();\r\n\t}",
"LiveClassLoader()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.defineClassMethod = ClassLoader.class.getDeclaredMethod(\"defineClass\", String.class, byte[].class, int.class, int.class);\r\n\t\t\tthis.defineClassMethod.setAccessible(true);\r\n\t\t}\r\n\t\tcatch (NoSuchMethodException | SecurityException e)\r\n\t\t{\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASS LOADER >> Erro ao recuperar o metodo 'ClassLoader.defineClass()'!\");\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public HttpRemoteReflectionSecurityManager() {\r\n\t\tsuper();\r\n\t}",
"public java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: javax.crypto.JarVerifier.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: javax.crypto.JarVerifier.1.run():java.lang.Object\");\n }",
"public interface C12049l<T> extends Callable<T> {\n T call();\n}",
"private static Class<?> loadClass(String archiveImplClassName) throws Exception \n {\n return SecurityActions.getThreadContextClassLoader().loadClass(archiveImplClassName);\n }",
"SecurityManager getSecurityManager();",
"SecurityManager getSecurityManager();",
"public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\n }",
"public void mo9845a() {\n ArrayList arrayList = new ArrayList();\n arrayList.add(new CallableC1816b(this, (byte) 0));\n try {\n Executors.newSingleThreadExecutor().invokeAny(arrayList);\n } catch (InterruptedException e) {\n e.printStackTrace();\n this.f4523c.onFail();\n } catch (ExecutionException e2) {\n e2.printStackTrace();\n this.f4523c.onFail();\n }\n }",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }",
"public interface RuntimePermissionRequester {\n /**\n * Asks user for specific permissions needed to proceed\n *\n * @param requestCode Request permission using this code, allowing for\n * callback distinguishing\n */\n void requestNeededPermissions(int requestCode);\n}",
"<T> T runWithContext(String applicationName, Callable<T> callable) throws Exception;",
"public interface BuiltInsLoader {\n public static final Companion Companion = Companion.$$INSTANCE;\n\n PackageFragmentProvider createPackageFragmentProvider(StorageManager storageManager, ModuleDescriptor moduleDescriptor, Iterable<? extends ClassDescriptorFactory> iterable, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, AdditionalClassPartsProvider additionalClassPartsProvider, boolean z);\n\n /* compiled from: BuiltInsLoader.kt */\n public static final class Companion {\n static final /* synthetic */ Companion $$INSTANCE = new Companion();\n private static final Lazy<BuiltInsLoader> Instance$delegate = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, BuiltInsLoader$Companion$Instance$2.INSTANCE);\n\n private Companion() {\n }\n\n public final BuiltInsLoader getInstance() {\n return Instance$delegate.getValue();\n }\n }\n}",
"DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }",
"public ScriptCallableTest() {\n super(\"ScriptCallableTest\");\n }",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tClassC cb = new ClassC();\r\n\t\tcb.protectedMethod();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"protected abstract void runPrivate();",
"private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}",
"static void allowAccess(ClassMaker cm) {\n var thisModule = CoreUtils.class.getModule();\n var thatModule = cm.classLoader().getUnnamedModule();\n thisModule.addExports(\"org.cojen.dirmi.core\", thatModule);\n }",
"private static Object getInstance( final String className ) {\n if( className == null ) return null;\n return java.security.AccessController.doPrivileged(\n new java.security.PrivilegedAction<Object>() {\n public Object run() {\n try {\n ClassLoader cl =\n Thread.currentThread().getContextClassLoader();\n if (cl == null)\n cl = ClassLoader.getSystemClassLoader();\n return Class.forName( className, true,cl).newInstance();\n } catch( Exception e ) {\n new ErrorManager().error(\n \"Error In Instantiating Class \" + className, e,\n ErrorManager.GENERIC_FAILURE );\n }\n return null;\n }\n }\n );\n }",
"public interface PyRunnable {\n /**\n * Return the org.jpp.modules code object.\n */\n abstract public PyCode getMain();\n}",
"public interface Function extends Scriptable, Callable\n{\n /**\n * Call the function.\n *\n * Note that the array of arguments is not guaranteed to have\n * length greater than 0.\n *\n * @param cx the current Context for this thread\n * @param scope the scope to execute the function relative to. This is\n * set to the value returned by getParentScope() except\n * when the function is called from a closure.\n * @param thisObj the JavaScript <code>this</code> object\n * @param args the array of arguments\n * @return the result of the call\n */\n public Object call(Context cx, Scriptable scope, Scriptable thisObj,\n Object[] args);\n\n /**\n * Call the function as a constructor.\n *\n * This method is invoked by the runtime in order to satisfy a use\n * of the JavaScript <code>new</code> operator. This method is\n * expected to create a new object and return it.\n *\n * @param cx the current Context for this thread\n * @param scope an enclosing scope of the caller except\n * when the function is called from a closure.\n * @param args the array of arguments\n * @return the allocated object\n */\n public Scriptable construct(Context cx, Scriptable scope, Object[] args);\n}",
"public static Callable maybeCreate(Callable target) {\n if (target == null) {\n return null;\n }\n\n if (target instanceof DecoratedCallable) {\n return target;\n }\n\n return new DecoratedCallable(target);\n }",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}",
"public void enableCustomSecurityManager() {\n System.setSecurityManager(securityManager);\n }",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"@Override\n protected void before() throws Throwable {\n ClassLoader oldClassLoader = ClassLoaders.setContextClassLoader(STANDALONE.getClass().getClassLoader());\n try {\n Method before = STANDALONE.getClass().getDeclaredMethod(\"before\");\n before.setAccessible(true);\n before.invoke(STANDALONE);\n } finally {\n ClassLoaders.setContextClassLoader(oldClassLoader);\n }\n }",
"public static Access granted() {\n return new Access() {\n @Override\n void exec(BeforeEnterEvent enterEvent) {\n }\n };\n }",
"public HttpRemoteReflectionSecurityManager(HttpServletRequest req, String sReflectionAllowed) {\r\n\t\tsuper();\r\n\t\t_req = req;\r\n\t\t_sess = _req.getSession();\r\n\t\t_reflectionallowedattribute = sReflectionAllowed;\r\n\t}",
"ClassLoader getNewTempClassLoader() {\n return new ClassLoader(getClassLoader()) {\n };\n }",
"protected static <T> PrivilegedAction<T> of(Class<T> type, @MaybeNull ClassLoader classLoader) {\n return of(type, classLoader, GENERATE);\n }",
"private Security() { }",
"public abstract boolean addRunAs(ServiceSecurity serviceSecurity, SecurityContext securityContext);",
"<T> T runWithContext(String applicationName, Callable<T> callable, Locale locale) throws Exception;",
"private static void loadFunctions(List<String> cleanFunctionNames, String functionsPackageName) {\n for (String functionName : cleanFunctionNames) {\n String classPath = functionsPackageName + \".\" + functionName;\n\n try {\n Class[] params = {};\n\n Callable callable = (Callable) Class.forName(classPath).getDeclaredConstructor(params).newInstance();\n\n FunctionLoader.callable.put(functionName.toLowerCase(), callable);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }",
"public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}",
"private static Object invoke(CompileResult compileResult, BIRNode.BIRFunction function, String functionName,\n Object[] args, Class<?>[] paramTypes) {\n assert args.length == paramTypes.length;\n\n Object[] jvmArgs = populateJvmArgumentArrays(args);\n\n Object jvmResult;\n PackageManifest packageManifest = compileResult.packageManifest();\n String funcClassName = JarResolver.getQualifiedClassName(packageManifest.org().toString(),\n packageManifest.name().toString(),\n packageManifest.version().toString(),\n getClassName(function.pos.lineRange().fileName()));\n\n try {\n Class<?> funcClass = compileResult.getClassLoader().loadClass(funcClassName);\n Method method = getMethod(functionName, funcClass);\n Function<Object[], Object> func = a -> {\n try {\n return method.invoke(null, a);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Error while invoking function '\" + functionName + \"'\", e);\n } catch (InvocationTargetException e) {\n Throwable t = e.getTargetException();\n if (t instanceof BLangTestException) {\n throw ErrorCreator.createError(StringUtils.fromString(t.getMessage()));\n }\n if (t instanceof io.ballerina.runtime.api.values.BError) {\n throw ErrorCreator.createError(StringUtils.fromString(\n \"error: \" + ((io.ballerina.runtime.api.values.BError) t).getPrintableStackTrace()));\n }\n if (t instanceof StackOverflowError) {\n throw ErrorCreator.createError(StringUtils.fromString(\"error: \" +\n \"{ballerina}StackOverflow {\\\"message\\\":\\\"stack overflow\\\"}\"));\n }\n throw ErrorCreator.createError(StringUtils.fromString(\"Error while invoking function '\" +\n functionName + \"'\"), e);\n }\n };\n\n Scheduler scheduler = new Scheduler(false);\n FutureValue futureValue = scheduler.schedule(jvmArgs, func, null, null, new HashMap<>(),\n PredefinedTypes.TYPE_ANY, \"test\",\n new StrandMetadata(ANON_ORG, DOT, DEFAULT_MAJOR_VERSION.value, functionName));\n scheduler.start();\n if (futureValue.panic instanceof RuntimeException) {\n throw new BLangTestException(futureValue.panic.getMessage(),\n futureValue.panic);\n }\n jvmResult = futureValue.result;\n } catch (ClassNotFoundException | NoSuchMethodException e) {\n throw new RuntimeException(\"Error while invoking function '\" + functionName + \"'\", e);\n }\n\n return jvmResult;\n }",
"private ExecutableReader() {}",
"public static void main(String[] args) {\r\n\t\tString[] newArgs = new String[args.length + 1];\r\n\t\tSystem.arraycopy(args, 0, newArgs, 0, args.length);\r\n\t\tnewArgs[args.length] = \"code=\" + new SecurityManager(){\r\n\t\t\tpublic String className() {\r\n\t\t\t\treturn this.getClassContext()[1].getCanonicalName();\r\n\t\t\t}\r\n\t\t}.className();\r\n\t\tSuperKarel.main(newArgs);\r\n\t}",
"@Test( expected = IllegalStateException.class )\n\tpublic void constructorShouldNotBeInstantiable() {\n\t\tnew ReflectionUtil() {\n\t\t\t// constructor is protected\n\t\t};\n\t}",
"private Main() {}",
"void enableSecurity();",
"public InlineClassAwareCaller(kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor r8, kotlin.reflect.jvm.internal.calls.Caller<? extends M> r9, boolean r10) {\n /*\n r7 = this;\n r7.<init>()\n r7.caller = r9\n r7.isDefault = r10\n kotlin.reflect.jvm.internal.impl.types.KotlinType r9 = r8.getReturnType()\n r10 = 0\n if (r9 == 0) goto L_0x0180\n java.lang.String r0 = \"descriptor.returnType!!\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r9, r0)\n java.lang.Class r9 = kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt.toInlineClass(r9)\n if (r9 == 0) goto L_0x001e\n java.lang.reflect.Method r9 = kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt.getBoxMethod(r9, r8)\n goto L_0x001f\n L_0x001e:\n r9 = r10\n L_0x001f:\n boolean r0 = kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt.isGetterOfUnderlyingPropertyOfInlineClass(r8)\n r1 = 0\n if (r0 == 0) goto L_0x0036\n kotlin.h0.d$a r8 = kotlin.p586h0.C12757d.f29425Y\n kotlin.h0.d r8 = r8.mo31084a()\n java.lang.reflect.Method[] r10 = new java.lang.reflect.Method[r1]\n kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller$BoxUnboxData r0 = new kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller$BoxUnboxData\n r0.<init>(r8, r10, r9)\n r8 = r0\n goto L_0x012f\n L_0x0036:\n kotlin.reflect.jvm.internal.calls.Caller<M> r0 = r7.caller\n boolean r2 = r0 instanceof kotlin.reflect.jvm.internal.calls.CallerImpl.Method.BoundStatic\n java.lang.String r3 = \"descriptor.containingDeclaration\"\n r4 = -1\n if (r2 == 0) goto L_0x0040\n goto L_0x0067\n L_0x0040:\n boolean r2 = r8 instanceof kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor\n if (r2 == 0) goto L_0x0049\n boolean r0 = r0 instanceof kotlin.reflect.jvm.internal.calls.BoundCaller\n if (r0 == 0) goto L_0x0066\n goto L_0x0067\n L_0x0049:\n kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor r0 = r8.getDispatchReceiverParameter()\n if (r0 == 0) goto L_0x0066\n kotlin.reflect.jvm.internal.calls.Caller<M> r0 = r7.caller\n boolean r0 = r0 instanceof kotlin.reflect.jvm.internal.calls.BoundCaller\n if (r0 != 0) goto L_0x0066\n kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r0 = r8.getContainingDeclaration()\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r0, r3)\n boolean r0 = kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt.isInlineClass(r0)\n if (r0 == 0) goto L_0x0063\n goto L_0x0066\n L_0x0063:\n r0 = 1\n r4 = 1\n goto L_0x0067\n L_0x0066:\n r4 = 0\n L_0x0067:\n boolean r0 = r7.isDefault\n if (r0 == 0) goto L_0x006d\n r0 = 2\n goto L_0x006e\n L_0x006d:\n r0 = 0\n L_0x006e:\n java.util.ArrayList r2 = new java.util.ArrayList\n r2.<init>()\n kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor r5 = r8.getExtensionReceiverParameter()\n if (r5 == 0) goto L_0x007e\n kotlin.reflect.jvm.internal.impl.types.KotlinType r5 = r5.getType()\n goto L_0x007f\n L_0x007e:\n r5 = r10\n L_0x007f:\n if (r5 == 0) goto L_0x0085\n r2.add(r5)\n goto L_0x00cd\n L_0x0085:\n boolean r5 = r8 instanceof kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor\n if (r5 == 0) goto L_0x00b3\n r3 = r8\n kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor r3 = (kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor) r3\n kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r3 = r3.getConstructedClass()\n java.lang.String r5 = \"descriptor.constructedClass\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r3, r5)\n boolean r5 = r3.isInner()\n if (r5 == 0) goto L_0x00cd\n kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r3 = r3.getContainingDeclaration()\n if (r3 == 0) goto L_0x00ab\n kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r3 = (kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor) r3\n kotlin.reflect.jvm.internal.impl.types.SimpleType r3 = r3.getDefaultType()\n r2.add(r3)\n goto L_0x00cd\n L_0x00ab:\n kotlin.s r8 = new kotlin.s\n java.lang.String r9 = \"null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor\"\n r8.<init>(r9)\n throw r8\n L_0x00b3:\n kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r5 = r8.getContainingDeclaration()\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r5, r3)\n boolean r3 = r5 instanceof kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor\n if (r3 == 0) goto L_0x00cd\n kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r5 = (kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor) r5\n boolean r3 = r5.isInline()\n if (r3 == 0) goto L_0x00cd\n kotlin.reflect.jvm.internal.impl.types.SimpleType r3 = r5.getDefaultType()\n r2.add(r3)\n L_0x00cd:\n java.util.List r3 = r8.getValueParameters()\n java.lang.String r5 = \"descriptor.valueParameters\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r3, r5)\n java.util.Iterator r3 = r3.iterator()\n L_0x00da:\n boolean r5 = r3.hasNext()\n if (r5 == 0) goto L_0x00ee\n java.lang.Object r5 = r3.next()\n kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor r5 = (kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor) r5\n kotlin.reflect.jvm.internal.impl.types.KotlinType r5 = r5.getType()\n r2.add(r5)\n goto L_0x00da\n L_0x00ee:\n int r3 = r2.size()\n int r3 = r3 + r4\n int r3 = r3 + r0\n int r0 = kotlin.reflect.jvm.internal.calls.CallerKt.getArity(r7)\n if (r0 != r3) goto L_0x0132\n int r0 = java.lang.Math.max(r4, r1)\n int r5 = r2.size()\n int r5 = r5 + r4\n kotlin.h0.d r0 = kotlin.p586h0.C12762h.m39920d(r0, r5)\n java.lang.reflect.Method[] r5 = new java.lang.reflect.Method[r3]\n L_0x0109:\n if (r1 >= r3) goto L_0x012a\n boolean r6 = r0.mo31083f(r1)\n if (r6 == 0) goto L_0x0124\n int r6 = r1 - r4\n java.lang.Object r6 = r2.get(r6)\n kotlin.reflect.jvm.internal.impl.types.KotlinType r6 = (kotlin.reflect.jvm.internal.impl.types.KotlinType) r6\n java.lang.Class r6 = kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt.toInlineClass(r6)\n if (r6 == 0) goto L_0x0124\n java.lang.reflect.Method r6 = kotlin.reflect.jvm.internal.calls.InlineClassAwareCallerKt.getUnboxMethod(r6, r8)\n goto L_0x0125\n L_0x0124:\n r6 = r10\n L_0x0125:\n r5[r1] = r6\n int r1 = r1 + 1\n goto L_0x0109\n L_0x012a:\n kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller$BoxUnboxData r8 = new kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller$BoxUnboxData\n r8.<init>(r0, r5, r9)\n L_0x012f:\n r7.data = r8\n return\n L_0x0132:\n kotlin.reflect.jvm.internal.KotlinReflectionInternalError r9 = new kotlin.reflect.jvm.internal.KotlinReflectionInternalError\n java.lang.StringBuilder r10 = new java.lang.StringBuilder\n r10.<init>()\n java.lang.String r0 = \"Inconsistent number of parameters in the descriptor and Java reflection object: \"\n r10.append(r0)\n int r0 = kotlin.reflect.jvm.internal.calls.CallerKt.getArity(r7)\n r10.append(r0)\n java.lang.String r0 = \" != \"\n r10.append(r0)\n r10.append(r3)\n r0 = 10\n r10.append(r0)\n java.lang.String r1 = \"Calling: \"\n r10.append(r1)\n r10.append(r8)\n r10.append(r0)\n java.lang.String r8 = \"Parameter types: \"\n r10.append(r8)\n java.util.List r8 = r7.getParameterTypes()\n r10.append(r8)\n java.lang.String r8 = \")\\n\"\n r10.append(r8)\n java.lang.String r8 = \"Default: \"\n r10.append(r8)\n boolean r8 = r7.isDefault\n r10.append(r8)\n java.lang.String r8 = r10.toString()\n r9.<init>(r8)\n throw r9\n L_0x0180:\n kotlin.jvm.internal.Intrinsics.throwNpe()\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.calls.InlineClassAwareCaller.<init>(kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor, kotlin.reflect.jvm.internal.calls.Caller, boolean):void\");\n }",
"public void run() throws Exception {\n /*\n * Reset ...basePolicyClass security property\n * so that base policy class cannot be found\n * and try to create DynamicPolicyProvider.\n * We expect PolicyInitializationException\n * in this case.\n */\n setBasePolicyClassProp(\"Foo\");\n createDynamicPolicyProviderPIE(CALLName);\n\n /*\n * Reset ...basePolicyClass security property\n * so that base class can be found\n * but this class is not the instance\n * of Policy interface,\n * and try to create DynamicPolicyProvider.\n * We expect PolicyInitializationException\n * in this case.\n */\n String className = Util.listClasses[0].name;\n\n /*\n * Verify that class can be loaded.\n */\n Class.forName(className);\n setBasePolicyClassProp(className);\n createDynamicPolicyProviderPIE(CALLName);\n\n /*\n * Reset ...basePolicyClass security property\n * to QABadPolicy class that\n * does not declare a public no-arg constructor\n * and try to create DynamicPolicyProvider\n * We expect PolicyInitializationException\n * in these cases.\n */\n className = Util.listPolicy[0].name;\n\n /*\n * Verify that class can be loaded.\n */\n Class.forName(className);\n setBasePolicyClassProp(className);\n createDynamicPolicyProviderPIE(CALLName);\n }",
"int executeSafely();",
"boolean supportsCallableStatement();",
"protected Signer() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>():void\");\n }",
"private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}",
"private NativeSupport() {\n\t}",
"ResilientExecutionUtil() {\n // do nothing\n }",
"private PermissionHelper() {}",
"private ClinicFileLoader() {\n\t}",
"public interface AccessControlled {\r\n\r\n}",
"public interface ExecFunctionFakeThisSupported extends ExecCallable {\n\t//\n}",
"private LoadMethodMapper ()\n {}",
"protected Object buildNewInstanceUsingDefaultConstructor() throws DescriptorException {\n try {\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try {\n return AccessController.doPrivileged(new PrivilegedInvokeConstructor(this.getDefaultConstructor(), (Object[])null));\n } catch (PrivilegedActionException exception) {\n Exception throwableException = exception.getException();\n if (throwableException instanceof InvocationTargetException){\n throw DescriptorException.targetInvocationWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException);\n } else if (throwableException instanceof IllegalAccessException){\n throw DescriptorException.illegalAccessWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException); \n } else {\n throw DescriptorException.instantiationWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException); \n }\n }\n } else {\n return PrivilegedAccessHelper.invokeConstructor(this.getDefaultConstructor(), (Object[])null);\n }\n } catch (InvocationTargetException exception) {\n throw DescriptorException.targetInvocationWhileConstructorInstantiation(this.getDescriptor(), exception);\n } catch (IllegalAccessException exception) {\n throw DescriptorException.illegalAccessWhileConstructorInstantiation(this.getDescriptor(), exception);\n } catch (InstantiationException exception) {\n throw DescriptorException.instantiationWhileConstructorInstantiation(this.getDescriptor(), exception);\n } catch (NoSuchMethodError exception) {\n // This exception is not documented but gets thrown.\n throw DescriptorException.noSuchMethodWhileConstructorInstantiation(this.getDescriptor(), exception);\n } catch (NullPointerException exception) {\n // Some JVMs will throw a NULL pointer exception here\n throw DescriptorException.nullPointerWhileConstructorInstantiation(this.getDescriptor(), exception);\n }\n }",
"public void exec(PyObject code) {\n }",
"@Override\n\tpublic void invoke(String origin, boolean allow, boolean remember) {\n\t\t\n\t}",
"public <T> T runWithKeyChecksIgnored(Callable<T> call) throws Exception;",
"private Class<?> defineClass(String paramString, URL paramURL) throws IOException {\n/* 364 */ byte[] arrayOfByte = getBytes(paramURL);\n/* 365 */ CodeSource codeSource = new CodeSource(null, (Certificate[])null);\n/* 366 */ if (!paramString.equals(\"sun.reflect.misc.Trampoline\")) {\n/* 367 */ throw new IOException(\"MethodUtil: bad name \" + paramString);\n/* */ }\n/* 369 */ return defineClass(paramString, arrayOfByte, 0, arrayOfByte.length, codeSource);\n/* */ }",
"private void m76769g() {\n C1592h.m7855a((Callable<TResult>) new C23441a<TResult>(this), C1592h.f5958b);\n }",
"@Override\n public boolean isAccessible( Env<AttrContext> env, Symbol.TypeSymbol typeSymbol, boolean checkInner )\n {\n boolean accessible = super.isAccessible( env, typeSymbol, checkInner );\n if( accessible )\n {\n return true;\n }\n\n if( isJailbreakOnType() )\n {\n // handle the case where the class itself is inaccessible:\n //\n // // the *type* must be @Jailbreak as well as the constructor\n // com.foo.@Jailbreak PrivateClass privateThing = new com.foo.@Jailbreak PrivateClass();\n // privateThing.privateMethod();\n // ...\n return true;\n }\n\n if( JreUtil.isJava8() )\n {\n return false;\n }\n\n\n // Java 9 +\n\n JavaFileObject sourceFile = env.toplevel.getSourceFile();\n if( sourceFile instanceof GeneratedJavaStubFileObject )\n {\n // Allow augmented classes to access modules as if defined in both the extended class' module and\n // the extension class' module.\n accessible = true;\n }\n\n return accessible;\n }",
"public static void disableJava9IllegalAccessWarning( ClassLoader cl )\n {\n if( JreUtil.isJava8() )\n {\n return;\n }\n\n try\n {\n Class cls = Class.forName( \"jdk.internal.module.IllegalAccessLogger\", false, cl );\n Field logger = cls.getDeclaredField( \"logger\" );\n getUnsafe().putObjectVolatile( cls, getUnsafe().staticFieldOffset( logger ), null );\n }\n catch( Throwable ignore )\n {\n }\n }",
"protected Object buildNewInstanceUsingFactory() throws DescriptorException {\n try {\n // If the method is static, the first argument is ignored and can be null\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try {\n return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getMethod(), this.getFactory(), new Object[0]));\n } catch (PrivilegedActionException exception) {\n Exception throwableException = exception.getException();\n if (throwableException instanceof IllegalAccessException) {\n throw DescriptorException.illegalAccessWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), throwableException);\n } else {\n throw DescriptorException.targetInvocationWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), throwableException);\n }\n }\n } else {\n return PrivilegedAccessHelper.invokeMethod(this.getMethod(), this.getFactory(), new Object[0]);\n }\n } catch (IllegalAccessException exception) {\n throw DescriptorException.illegalAccessWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n } catch (InvocationTargetException exception) {\n throw DescriptorException.targetInvocationWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n } catch (NullPointerException exception) {\n // Some JVMs will throw a NULL pointer exception here\n throw DescriptorException.nullPointerWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n }\n }",
"static Scheduler m34966e(Callable<Scheduler> callable) {\n try {\n return (Scheduler) ObjectHelper.m35048a(callable.call(), \"Scheduler Callable result can't be null\");\n } catch (Throwable th) {\n throw C8162d.m35182a(th);\n }\n }",
"static Permission instantiatePermission(Class<?> targetType,\n String targetName, String targetActions)\n throws InstantiationException, IllegalAccessException, \n IllegalArgumentException, InvocationTargetException \n {\n\n // let's guess the best order for trying constructors\n Class[][] argTypes;\n Object[][] args;\n if (targetActions != null) {\n argTypes = new Class[][] { TWO_ARGS, ONE_ARGS, NO_ARGS };\n args = new Object[][] { { targetName, targetActions },\n { targetName }, {} };\n } else if (targetName != null) {\n argTypes = new Class[][] { ONE_ARGS, TWO_ARGS, NO_ARGS };\n args = new Object[][] { { targetName },\n { targetName, /*targetActions*/ null }, {} };\n } else {\n argTypes = new Class[][] { NO_ARGS, ONE_ARGS, TWO_ARGS };\n args = new Object[][] { {}, { /*targetName*/ null },\n { /*targetName*/ null, /*targetActions*/ null } };\n }\n\n // finally try to instantiate actual permission\n for (int i = 0; i < argTypes.length; i++) {\n try {\n Constructor<?> ctor = targetType.getConstructor(argTypes[i]);\n return (Permission)ctor.newInstance(args[i]);\n }\n catch (NoSuchMethodException ignore) {}\n }\n throw new IllegalArgumentException(\n Messages.getString(\"security.150\", targetType));//$NON-NLS-1$\n }",
"public void disableCustomSecurityManager() {\n System.setSecurityManager(securityManager);\n }",
"protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;",
"public ecDSAnone() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSAnone.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSAnone.<init>():void\");\n }",
"AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.location.GpsClock.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.<init>():void\");\n }",
"<T> T runWithContext(Callable<T> callable, Locale locale) throws Exception;",
"protected Constructor buildDefaultConstructorFor(Class javaClass) throws DescriptorException {\n try {\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try {\n return (Constructor)AccessController.doPrivileged(new PrivilegedGetDeclaredConstructorFor(javaClass, new Class[0], true));\n } catch (PrivilegedActionException exception) {\n throw DescriptorException.noSuchMethodWhileInitializingInstantiationPolicy(javaClass.getName() + \".<Default Constructor>\", getDescriptor(), exception.getException());\n }\n } else {\n return PrivilegedAccessHelper.getDeclaredConstructorFor(javaClass, new Class[0], true);\n }\n } catch (NoSuchMethodException exception) {\n throw DescriptorException.noSuchMethodWhileInitializingInstantiationPolicy(javaClass.getName() + \".<Default Constructor>\", getDescriptor(), exception);\n }\n }",
"public static Scheduler m34953a(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27418c;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"private NativeLibraryLoader() {\n }",
"private Main() {\r\n throw new IllegalStateException();\r\n }"
] | [
"0.79342973",
"0.77793187",
"0.7005257",
"0.61178464",
"0.60901076",
"0.60044575",
"0.57263654",
"0.5667994",
"0.5554286",
"0.5492982",
"0.54017437",
"0.5393937",
"0.5290991",
"0.5290196",
"0.516973",
"0.5114769",
"0.50677186",
"0.5067243",
"0.5063153",
"0.50485945",
"0.5036313",
"0.5033711",
"0.5019754",
"0.50178474",
"0.50178474",
"0.50157714",
"0.5009176",
"0.5003698",
"0.50004",
"0.4941831",
"0.49319085",
"0.4931798",
"0.49243578",
"0.49108806",
"0.49102393",
"0.49072325",
"0.49065998",
"0.49047107",
"0.48581764",
"0.4854697",
"0.48522788",
"0.4836618",
"0.48317927",
"0.47987345",
"0.47968954",
"0.47871616",
"0.47680572",
"0.47516882",
"0.4743949",
"0.4690623",
"0.46659023",
"0.46555996",
"0.4651929",
"0.46497107",
"0.4638889",
"0.46321586",
"0.46309847",
"0.46151674",
"0.46113706",
"0.46098718",
"0.46083516",
"0.46000558",
"0.45966497",
"0.45941997",
"0.45779514",
"0.45774618",
"0.4564475",
"0.455396",
"0.45485878",
"0.45485803",
"0.45425946",
"0.45359242",
"0.45342034",
"0.45338437",
"0.45319754",
"0.4527432",
"0.45271224",
"0.45176655",
"0.45133966",
"0.45121628",
"0.45100915",
"0.4509898",
"0.45015547",
"0.4498138",
"0.44921893",
"0.44898412",
"0.4488037",
"0.4479872",
"0.44756484",
"0.44606227",
"0.44519666",
"0.44490948",
"0.4448185",
"0.4448163",
"0.44447637",
"0.44419348",
"0.4429816",
"0.44241238",
"0.44135326",
"0.44131935"
] | 0.76470065 | 2 |
With class loader permissions, calling privilegedCallableUsingCurrentClassLoader does not throw ACE | public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {
Runnable r = new CheckedRunnable() {
public void realRun() throws Exception {
Executors.privilegedCallableUsingCurrentClassLoader
(new NoOpCallable())
.call();
}};
runWithPermissions(r,
new RuntimePermission("getClassLoader"),
new RuntimePermission("setContextClassLoader"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testPrivilegedThreadFactory() throws Exception {\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final ClassLoader thisccl = Thread.currentThread().getContextClassLoader();\n // android-note: Removed unsupported access controller check.\n // final AccessControlContext thisacc = AccessController.getContext();\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n assertSame(thisccl, current.getContextClassLoader());\n //assertEquals(thisacc, AccessController.getContext());\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.privilegedThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"),\n new RuntimePermission(\"modifyThread\"));\n }",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }",
"boolean isCallableAccess();",
"public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }",
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }",
"public CallerBasedSecurityManagerTest() {\n manager = new CallerBasedSecurityManager();\n }",
"SecurityManager getSecurityManager();",
"SecurityManager getSecurityManager();",
"protected interface Resolver {\n\n /**\n * Adjusts a module graph if necessary.\n *\n * @param classLoader The class loader to adjust.\n * @param target The targeted class for which a proxy is created.\n */\n void accept(@MaybeNull ClassLoader classLoader, Class<?> target);\n\n /**\n * An action to create a resolver.\n */\n enum CreationAction implements PrivilegedAction<Resolver> {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should not be rethrown but trigger a fallback.\")\n public Resolver run() {\n try {\n Class<?> module = Class.forName(\"java.lang.Module\", false, null);\n return new ForModuleSystem(Class.class.getMethod(\"getModule\"),\n module.getMethod(\"isExported\", String.class),\n module.getMethod(\"addExports\", String.class, module),\n ClassLoader.class.getMethod(\"getUnnamedModule\"));\n } catch (Exception ignored) {\n return NoOp.INSTANCE;\n }\n }\n }\n\n /**\n * A non-operational resolver for VMs that do not support the module system.\n */\n enum NoOp implements Resolver {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n /**\n * {@inheritDoc}\n */\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n /* do nothing */\n }\n }\n\n /**\n * A resolver for VMs that do support the module system.\n */\n @HashCodeAndEqualsPlugin.Enhance\n class ForModuleSystem implements Resolver {\n\n /**\n * The {@code java.lang.Class#getModule} method.\n */\n private final Method getModule;\n\n /**\n * The {@code java.lang.Module#isExported} method.\n */\n private final Method isExported;\n\n /**\n * The {@code java.lang.Module#addExports} method.\n */\n private final Method addExports;\n\n /**\n * The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n private final Method getUnnamedModule;\n\n /**\n * Creates a new resolver for a VM that supports the module system.\n *\n * @param getModule The {@code java.lang.Class#getModule} method.\n * @param isExported The {@code java.lang.Module#isExported} method.\n * @param addExports The {@code java.lang.Module#addExports} method.\n * @param getUnnamedModule The {@code java.lang.ClassLoader#getUnnamedModule} method.\n */\n protected ForModuleSystem(Method getModule,\n Method isExported,\n Method addExports,\n Method getUnnamedModule) {\n this.getModule = getModule;\n this.isExported = isExported;\n this.addExports = addExports;\n this.getUnnamedModule = getUnnamedModule;\n }\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"REC_CATCH_EXCEPTION\", justification = \"Exception should always be wrapped for clarity.\")\n public void accept(@MaybeNull ClassLoader classLoader, Class<?> target) {\n Package location = target.getPackage();\n if (location != null) {\n try {\n Object module = getModule.invoke(target);\n if (!(Boolean) isExported.invoke(module, location.getName())) {\n addExports.invoke(module, location.getName(), getUnnamedModule.invoke(classLoader));\n }\n } catch (Exception exception) {\n throw new IllegalStateException(\"Failed to adjust module graph for dispatcher\", exception);\n }\n }\n }\n }\n }",
"private static void setupCallerCheck() {\n try {\n final ClassLoader loader = Loader.getClassLoader();\n // Use wildcard to avoid compile-time reference.\n final Class<?> clazz = loader.loadClass(\"sun.reflect.Reflection\");\n final Method[] methods = clazz.getMethods();\n for (final Method method : methods) {\n final int modifier = method.getModifiers();\n if (method.getName().equals(\"getCallerClass\") && Modifier.isStatic(modifier)) {\n getCallerClass = method;\n return;\n }\n }\n } catch (final ClassNotFoundException cnfe) {\n LOGGER.debug(\"sun.reflect.Reflection is not installed\");\n }\n\n try {\n final PrivateSecurityManager mgr = new PrivateSecurityManager();\n if (mgr.getClasses() != null) {\n securityManager = mgr;\n } else {\n // This shouldn't happen.\n LOGGER.error(\"Unable to obtain call stack from security manager\");\n }\n } catch (final Exception ex) {\n LOGGER.debug(\"Unable to install security manager\", ex);\n }\n }",
"public java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: javax.crypto.JarVerifier.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: javax.crypto.JarVerifier.1.run():java.lang.Object\");\n }",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"private static Class<?> loadClass(String archiveImplClassName) throws Exception \n {\n return SecurityActions.getThreadContextClassLoader().loadClass(archiveImplClassName);\n }",
"static void allowAccess(ClassMaker cm) {\n var thisModule = CoreUtils.class.getModule();\n var thatModule = cm.classLoader().getUnnamedModule();\n thisModule.addExports(\"org.cojen.dirmi.core\", thatModule);\n }",
"int executeSafely();",
"public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\n }",
"public void enableCustomSecurityManager() {\n System.setSecurityManager(securityManager);\n }",
"protected abstract void runPrivate();",
"@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}",
"@Override\n protected void before() throws Throwable {\n ClassLoader oldClassLoader = ClassLoaders.setContextClassLoader(STANDALONE.getClass().getClassLoader());\n try {\n Method before = STANDALONE.getClass().getDeclaredMethod(\"before\");\n before.setAccessible(true);\n before.invoke(STANDALONE);\n } finally {\n ClassLoaders.setContextClassLoader(oldClassLoader);\n }\n }",
"AnonymousClass1(java.security.Signer r1, java.security.PublicKey r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void\");\n }",
"public interface RuntimePermissionRequester {\n /**\n * Asks user for specific permissions needed to proceed\n *\n * @param requestCode Request permission using this code, allowing for\n * callback distinguishing\n */\n void requestNeededPermissions(int requestCode);\n}",
"protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;",
"protected abstract boolean invokable(Resource r);",
"AnonymousClass1(javax.crypto.JarVerifier r1, java.net.URL r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: javax.crypto.JarVerifier.1.<init>(javax.crypto.JarVerifier, java.net.URL):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: javax.crypto.JarVerifier.1.<init>(javax.crypto.JarVerifier, java.net.URL):void\");\n }",
"private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tAccessModifier obj = new AccessModifier();\r\n\t\tobj.publicFunction();\r\n\t\tTestAccessModAtProjectLevel obj2= new \tTestAccessModAtProjectLevel();\r\n\t\tobj2.protectedfunction();\r\n\t}",
"public interface AccessControlled {\r\n\r\n}",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"<T> T runWithContext(String applicationName, Callable<T> callable) throws Exception;",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tClassC cb = new ClassC();\r\n\t\tcb.protectedMethod();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public HttpRemoteReflectionSecurityManager() {\r\n\t\tsuper();\r\n\t}",
"void enableSecurity();",
"public <T> T runWithKeyChecksIgnored(Callable<T> call) throws Exception;",
"private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}",
"public void mo9845a() {\n ArrayList arrayList = new ArrayList();\n arrayList.add(new CallableC1816b(this, (byte) 0));\n try {\n Executors.newSingleThreadExecutor().invokeAny(arrayList);\n } catch (InterruptedException e) {\n e.printStackTrace();\n this.f4523c.onFail();\n } catch (ExecutionException e2) {\n e2.printStackTrace();\n this.f4523c.onFail();\n }\n }",
"public interface C12049l<T> extends Callable<T> {\n T call();\n}",
"private static Object getInstance( final String className ) {\n if( className == null ) return null;\n return java.security.AccessController.doPrivileged(\n new java.security.PrivilegedAction<Object>() {\n public Object run() {\n try {\n ClassLoader cl =\n Thread.currentThread().getContextClassLoader();\n if (cl == null)\n cl = ClassLoader.getSystemClassLoader();\n return Class.forName( className, true,cl).newInstance();\n } catch( Exception e ) {\n new ErrorManager().error(\n \"Error In Instantiating Class \" + className, e,\n ErrorManager.GENERIC_FAILURE );\n }\n return null;\n }\n }\n );\n }",
"LiveClassLoader()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tthis.defineClassMethod = ClassLoader.class.getDeclaredMethod(\"defineClass\", String.class, byte[].class, int.class, int.class);\r\n\t\t\tthis.defineClassMethod.setAccessible(true);\r\n\t\t}\r\n\t\tcatch (NoSuchMethodException | SecurityException e)\r\n\t\t{\r\n\t\t\t// TODO: debug..\r\n\t\t\tSystem.out.println(\"CLASS LOADER >> Erro ao recuperar o metodo 'ClassLoader.defineClass()'!\");\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void trySafeMethod(){\n safeMethod();\n }",
"default boolean canLoadClassPath(String classPath) { return true; }",
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"public void disableCustomSecurityManager() {\n System.setSecurityManager(securityManager);\n }",
"public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"<T> T runWithContext(String applicationName, Callable<T> callable, Locale locale) throws Exception;",
"@Override\n\tpublic void invoke(String origin, boolean allow, boolean remember) {\n\t\t\n\t}",
"public void setAsSecurityManager() {\r\n\t\tRemoteReflector.setSecurityPolicy(_sess, this);\r\n\t}",
"<T> T runWithContext(Callable<T> callable, Locale locale) throws Exception;",
"@ThreadSafe\npublic interface AuthorizationProvider {\n\n public static String SENTRY_PROVIDER = \"sentry.provider\";\n\n /***\n * Returns validate subject privileges on given Authorizable object\n *\n * @param subject: UserID to validate privileges\n * @param authorizableHierarchy : List of object according to namespace hierarchy.\n * eg. Server->Db->Table or Server->Function\n * The privileges will be validated from the higher to lower scope\n * @param actions : Privileges to validate\n * @param roleSet : Roles which should be used when obtaining privileges\n * @return\n * True if the subject is authorized to perform requested action on the given object\n */\n public boolean hasAccess(Subject subject, List<? extends Authorizable> authorizableHierarchy,\n Set<? extends Action> actions, ActiveRoleSet roleSet);\n\n /***\n * Get the GroupMappingService used by the AuthorizationProvider\n *\n * @return GroupMappingService used by the AuthorizationProvider\n */\n public GroupMappingService getGroupMapping();\n\n /***\n * Validate the policy file format for syntax and semantic errors\n * @param strictValidation\n * @throws SentryConfigurationException\n */\n public void validateResource(boolean strictValidation) throws SentryConfigurationException;\n\n /***\n * Returns the list privileges for the given subject\n * @param subject\n * @return\n * @throws SentryConfigurationException\n */\n public Set<String> listPrivilegesForSubject(Subject subject) throws SentryConfigurationException;\n\n /**\n * Returns the list privileges for the given group\n * @param groupName\n * @return\n * @throws SentryConfigurationException\n */\n public Set<String> listPrivilegesForGroup(String groupName) throws SentryConfigurationException;\n\n /***\n * Returns the list of missing privileges of the last access request\n * @return\n */\n public List<String> getLastFailedPrivileges();\n\n /**\n * Frees any resources held by the the provider\n */\n public void close();\n}",
"public boolean canGetCurrent (CallContext context);",
"public interface BuiltInsLoader {\n public static final Companion Companion = Companion.$$INSTANCE;\n\n PackageFragmentProvider createPackageFragmentProvider(StorageManager storageManager, ModuleDescriptor moduleDescriptor, Iterable<? extends ClassDescriptorFactory> iterable, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, AdditionalClassPartsProvider additionalClassPartsProvider, boolean z);\n\n /* compiled from: BuiltInsLoader.kt */\n public static final class Companion {\n static final /* synthetic */ Companion $$INSTANCE = new Companion();\n private static final Lazy<BuiltInsLoader> Instance$delegate = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, BuiltInsLoader$Companion$Instance$2.INSTANCE);\n\n private Companion() {\n }\n\n public final BuiltInsLoader getInstance() {\n return Instance$delegate.getValue();\n }\n }\n}",
"public void run() throws Exception {\n /*\n * Reset ...basePolicyClass security property\n * so that base policy class cannot be found\n * and try to create DynamicPolicyProvider.\n * We expect PolicyInitializationException\n * in this case.\n */\n setBasePolicyClassProp(\"Foo\");\n createDynamicPolicyProviderPIE(CALLName);\n\n /*\n * Reset ...basePolicyClass security property\n * so that base class can be found\n * but this class is not the instance\n * of Policy interface,\n * and try to create DynamicPolicyProvider.\n * We expect PolicyInitializationException\n * in this case.\n */\n String className = Util.listClasses[0].name;\n\n /*\n * Verify that class can be loaded.\n */\n Class.forName(className);\n setBasePolicyClassProp(className);\n createDynamicPolicyProviderPIE(CALLName);\n\n /*\n * Reset ...basePolicyClass security property\n * to QABadPolicy class that\n * does not declare a public no-arg constructor\n * and try to create DynamicPolicyProvider\n * We expect PolicyInitializationException\n * in these cases.\n */\n className = Util.listPolicy[0].name;\n\n /*\n * Verify that class can be loaded.\n */\n Class.forName(className);\n setBasePolicyClassProp(className);\n createDynamicPolicyProviderPIE(CALLName);\n }",
"public static void main(String[] args) {\r\n\t\tString[] newArgs = new String[args.length + 1];\r\n\t\tSystem.arraycopy(args, 0, newArgs, 0, args.length);\r\n\t\tnewArgs[args.length] = \"code=\" + new SecurityManager(){\r\n\t\t\tpublic String className() {\r\n\t\t\t\treturn this.getClassContext()[1].getCanonicalName();\r\n\t\t\t}\r\n\t\t}.className();\r\n\t\tSuperKarel.main(newArgs);\r\n\t}",
"public abstract boolean addRunAs(ServiceSecurity serviceSecurity, SecurityContext securityContext);",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"public static Access granted() {\n return new Access() {\n @Override\n void exec(BeforeEnterEvent enterEvent) {\n }\n };\n }",
"protected static <T> PrivilegedAction<T> of(Class<T> type, @MaybeNull ClassLoader classLoader) {\n return of(type, classLoader, GENERATE);\n }",
"boolean isExecuteAccess();",
"public static void disableJava9IllegalAccessWarning( ClassLoader cl )\n {\n if( JreUtil.isJava8() )\n {\n return;\n }\n\n try\n {\n Class cls = Class.forName( \"jdk.internal.module.IllegalAccessLogger\", false, cl );\n Field logger = cls.getDeclaredField( \"logger\" );\n getUnsafe().putObjectVolatile( cls, getUnsafe().staticFieldOffset( logger ), null );\n }\n catch( Throwable ignore )\n {\n }\n }",
"private boolean isMonitorAccessibleFromClassLoader(ClassLoader loader) {\n if (loader == null) {\n return false;\n }\n boolean isMonitorAccessible = true;\n InputStream monitorInputStream = null;\n try {\n monitorInputStream = loader.getResourceAsStream(COVERAGE_MONITOR_RESOURCE);\n if (monitorInputStream == null) {\n isMonitorAccessible = false;\n }\n } catch (Exception ex1) {\n isMonitorAccessible = false;\n try {\n if (monitorInputStream != null) {\n monitorInputStream.close();\n }\n } catch (IOException ex2) {\n // do nothing\n }\n }\n return isMonitorAccessible;\n }",
"protected abstract void runReflectionCodeRaw() throws ReflectionCodeException;",
"@Test\n public void shouldInjectContext()\n throws Exception {\n final Callable<?> inner = new Callable<Void>() {\n @Inject\n private ReadOnlyContext object;\n\n public Void call()\n throws Exception {\n assertNotNull(object);\n return null;\n }\n };\n victim.inject(inner);\n inner.call();\n }",
"DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }",
"public Object intercept(final EasyBeansInvocationContext invocationContext) throws Exception {\n String oldContextId = PolicyContext.getContextID();\n boolean accessGranted = true;\n boolean runAsBean = invocationContext.getFactory().getBeanInfo().getSecurityInfo().getRunAsRole() != null;\n try {\n EZBPermissionManager permissionManager = invocationContext.getFactory().getContainer().getPermissionManager();\n if (permissionManager != null) {\n accessGranted = permissionManager.checkSecurity(invocationContext, runAsBean);\n }\n } finally {\n PolicyContext.setContextID(oldContextId);\n }\n if (!accessGranted) {\n StringBuffer errMsg = new StringBuffer(\"Access Denied on bean '\");\n errMsg.append(invocationContext.getFactory().getBeanInfo().getName());\n errMsg.append(\"' contained in the URL '\");\n errMsg.append(invocationContext.getFactory().getContainer().getArchive());\n errMsg.append(\"'. \");\n errMsg.append(\" Method = '\");\n errMsg.append(invocationContext.getMethod());\n errMsg.append(\"'. \");\n errMsg.append(\"Current caller's principal is '\");\n errMsg.append(SecurityCurrent.getCurrent().getSecurityContext().getCallerPrincipal(runAsBean));\n errMsg.append(\"' with roles '\");\n errMsg.append(Arrays.asList(SecurityCurrent.getCurrent().getSecurityContext().getCallerRoles(runAsBean)));\n errMsg.append(\"'.\");\n throw new EJBAccessException(errMsg.toString());\n }\n\n return invocationContext.proceed();\n }",
"private static Object invoke(CompileResult compileResult, BIRNode.BIRFunction function, String functionName,\n Object[] args, Class<?>[] paramTypes) {\n assert args.length == paramTypes.length;\n\n Object[] jvmArgs = populateJvmArgumentArrays(args);\n\n Object jvmResult;\n PackageManifest packageManifest = compileResult.packageManifest();\n String funcClassName = JarResolver.getQualifiedClassName(packageManifest.org().toString(),\n packageManifest.name().toString(),\n packageManifest.version().toString(),\n getClassName(function.pos.lineRange().fileName()));\n\n try {\n Class<?> funcClass = compileResult.getClassLoader().loadClass(funcClassName);\n Method method = getMethod(functionName, funcClass);\n Function<Object[], Object> func = a -> {\n try {\n return method.invoke(null, a);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Error while invoking function '\" + functionName + \"'\", e);\n } catch (InvocationTargetException e) {\n Throwable t = e.getTargetException();\n if (t instanceof BLangTestException) {\n throw ErrorCreator.createError(StringUtils.fromString(t.getMessage()));\n }\n if (t instanceof io.ballerina.runtime.api.values.BError) {\n throw ErrorCreator.createError(StringUtils.fromString(\n \"error: \" + ((io.ballerina.runtime.api.values.BError) t).getPrintableStackTrace()));\n }\n if (t instanceof StackOverflowError) {\n throw ErrorCreator.createError(StringUtils.fromString(\"error: \" +\n \"{ballerina}StackOverflow {\\\"message\\\":\\\"stack overflow\\\"}\"));\n }\n throw ErrorCreator.createError(StringUtils.fromString(\"Error while invoking function '\" +\n functionName + \"'\"), e);\n }\n };\n\n Scheduler scheduler = new Scheduler(false);\n FutureValue futureValue = scheduler.schedule(jvmArgs, func, null, null, new HashMap<>(),\n PredefinedTypes.TYPE_ANY, \"test\",\n new StrandMetadata(ANON_ORG, DOT, DEFAULT_MAJOR_VERSION.value, functionName));\n scheduler.start();\n if (futureValue.panic instanceof RuntimeException) {\n throw new BLangTestException(futureValue.panic.getMessage(),\n futureValue.panic);\n }\n jvmResult = futureValue.result;\n } catch (ClassNotFoundException | NoSuchMethodException e) {\n throw new RuntimeException(\"Error while invoking function '\" + functionName + \"'\", e);\n }\n\n return jvmResult;\n }",
"V call() throws StatusRuntimeException;",
"public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"<T> T callInContext(ContextualCallable<T> callable) {\n InternalContext[] reference = localContext.get();\n if (reference[0] == null) {\n reference[0] = new InternalContext(this);\n try {\n return callable.call(reference[0]);\n }\n finally {\n // Only remove the context if this call created it.\n reference[0] = null;\n }\n }\n else {\n // Someone else will clean up this context.\n return callable.call(reference[0]);\n }\n }",
"@Test\r\n public void executeTransactionTest_invoke_privateMethod() throws Exception {\r\n localService = new LocalServiceImpl();\r\n\r\n Integer sourceAccountBalance = Whitebox.invokeMethod(localService, \"getSourceAccountBalance\");\r\n assertEquals(java.util.Optional.ofNullable(sourceAccountBalance), Optional.of(500));\r\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tUtils.upgradeRootPermission(getPackageCodePath());\n\t\t\t}",
"@Override\n public Scalar<Boolean, Object> compile(List<Symbol> arguments, String currentUser, UserLookup userLookup) {\n Object userValue = null;\n Symbol privileges = null;\n if (arguments.size() == 2) {\n userValue = currentUser;\n privileges = arguments.get(1);\n }\n if (arguments.size() == 3) {\n if (arguments.get(0) instanceof Input<?> input) {\n userValue = input.value();\n }\n privileges = arguments.get(2);\n }\n\n Collection<Privilege.Type> compiledPrivileges = normalizePrivilegeIfLiteral(privileges);\n if (userValue == null) {\n // Fall to non-compiled version which returns null.\n return this;\n }\n\n // Compiled privileges can be null here but we don't fall to non-compiled version as\n // can mean that privilege string is not null but not Literal either.\n // When we pass NULL to the compiled version, it treats last argument like regular evaluate:\n // does null check and parses privileges string.\n var sessionUser = USER_BY_NAME.apply(userLookup, currentUser);\n User user = getUser.apply(userLookup, userValue);\n validateCallPrivileges(sessionUser, user);\n return new CompiledHasPrivilege(signature, boundSignature, sessionUser, user, compiledPrivileges);\n }",
"@Override\n public boolean isAccessible( Env<AttrContext> env, Symbol.TypeSymbol typeSymbol, boolean checkInner )\n {\n boolean accessible = super.isAccessible( env, typeSymbol, checkInner );\n if( accessible )\n {\n return true;\n }\n\n if( isJailbreakOnType() )\n {\n // handle the case where the class itself is inaccessible:\n //\n // // the *type* must be @Jailbreak as well as the constructor\n // com.foo.@Jailbreak PrivateClass privateThing = new com.foo.@Jailbreak PrivateClass();\n // privateThing.privateMethod();\n // ...\n return true;\n }\n\n if( JreUtil.isJava8() )\n {\n return false;\n }\n\n\n // Java 9 +\n\n JavaFileObject sourceFile = env.toplevel.getSourceFile();\n if( sourceFile instanceof GeneratedJavaStubFileObject )\n {\n // Allow augmented classes to access modules as if defined in both the extended class' module and\n // the extension class' module.\n accessible = true;\n }\n\n return accessible;\n }",
"public void authenticationProcedure(){\n\t\tthrow new UnsupportedOperationException(\"TODO: auto-generated method stub\");\r\n\t}",
"public final void zzcx() throws IllegalAccessException, InvocationTargetException {\n if (zzzt == null) {\n synchronized (zzzl) {\n if (zzzt == null) {\n zzzt = (Long) this.zzzw.invoke((Object) null, new Object[0]);\n }\n }\n }\n synchronized (this.zzzm) {\n this.zzzm.zzaz(zzzt.longValue());\n }\n }",
"private native void nativeProviderError(boolean isDisabled, long object);",
"public abstract void doInvoke(InvocationContext ic) throws Exception;",
"boolean supportsCallableStatement();",
"public interface ExecFunctionFakeThisSupported extends ExecCallable {\n\t//\n}",
"protected ClassLoader(ClassLoader parent) {\r\n if (parent == null) {\r\n if (!getClass().equals(Launcher.ExtClassLoader.class)) {\r\n this.parent = getSystemClassLoader();\r\n } else {\r\n this.parent = null;\r\n }\r\n } else {\r\n this.parent = parent;\r\n }\r\n RefNative.initNativeClassLoader(this, parent);\r\n }",
"private static void check(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.check(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.check(java.lang.String):void\");\n }",
"private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}",
"public final java.security.Provider getProvider() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.getProvider():java.security.Provider, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getProvider():java.security.Provider\");\n }",
"protected abstract void beforeCall();",
"public static void checkPackageAccess(String name) {\n SecurityManager s = System.getSecurityManager();\n if (s != null) {\n String cname = name.replace('/', '.');\n if (cname.startsWith(\"[\")) {\n int b = cname.lastIndexOf('[') + 2;\n if (b > 1 && b < cname.length()) {\n cname = cname.substring(b);\n }\n }\n int i = cname.lastIndexOf('.');\n if (i != -1) {\n s.checkPackageAccess(cname.substring(0, i));\n }\n }\n }",
"public void loadClass(String name) throws InstantiationException, IllegalAccessException, ClassNotFoundException{\n\t\tSystem.out.println(\"Class object address \" + InspectClassLoader.class.hashCode());\n\t\tObject obj = getClass().getClassLoader().loadClass(\"InsideJVM.InspectClassLoader\").newInstance();\n\t\tSystem.out.println(\"Same class object: \" + (obj.getClass() == InspectClassLoader.class));\n\t\t\n\t\t// Class<?> object's class is ???\n\t\tClass<?> s = getClass().getClassLoader().loadClass(\"InsideJVM.InspectClassLoader\");\n\t\tSystem.out.println(s.getClass()); // output: java.land.Class\n\t\t\n\t\tSystem.out.println(\"class loader hashcode \" + getClass().getClassLoader().hashCode());\n\t}",
"protected void testAllowedOperations(final String methodName) {\n final OperationsPolicy policy = new OperationsPolicy();\n\n /*[0] Test getEJBHome /////////////////*/\n try {\n mdbContext.getEJBHome();\n policy.allow(OperationsPolicy.Context_getEJBHome);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[1] Test getCallerPrincipal /////////*/\n try {\n mdbContext.getCallerPrincipal();\n policy.allow(OperationsPolicy.Context_getCallerPrincipal);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[2] Test isCallerInRole /////////////*/\n try {\n mdbContext.isCallerInRole(\"TheMan\");\n policy.allow(OperationsPolicy.Context_isCallerInRole);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[3] Test getRollbackOnly ////////////*/\n try {\n mdbContext.getRollbackOnly();\n policy.allow(OperationsPolicy.Context_getRollbackOnly);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[4] Test setRollbackOnly ////////////*/\n // Rollback causes message redelivery\n\n /*[5] Test getUserTransaction /////////*/\n try {\n mdbContext.getUserTransaction();\n policy.allow(OperationsPolicy.Context_getUserTransaction);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[6] Test getEJBObject ///////////////\n *\n * MDBs don't have an ejbObject\n */\n\n /*[7] Test Context_getPrimaryKey ///////////////\n *\n * Can't really do this\n */\n\n /*[8] Test JNDI_access_to_java_comp_env ///////////////*/\n try {\n final InitialContext jndiContext = new InitialContext();\n\n final String actual = (String) jndiContext.lookup(\"java:comp/env/stateless/references/JNDI_access_to_java_comp_env\");\n\n policy.allow(OperationsPolicy.JNDI_access_to_java_comp_env);\n } catch (final IllegalStateException | javax.naming.NamingException ignored) {\n }\n\n /*[11] Test lookup /////////*/\n try {\n mdbContext.lookup(\"stateless/references/JNDI_access_to_java_comp_env\");\n policy.allow(OperationsPolicy.Context_lookup);\n } catch (final IllegalArgumentException ignored) {\n }\n\n allowedOperationsTable.put(methodName, policy);\n\n }",
"@Test\npublic void testPrivateChat() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = HandlerClient.getClass().getMethod(\"privateChat\", String.class, String.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}"
] | [
"0.8050479",
"0.75511587",
"0.7351032",
"0.6358628",
"0.6165949",
"0.6006392",
"0.5821107",
"0.5794721",
"0.56497073",
"0.5464812",
"0.5449039",
"0.54463476",
"0.54236835",
"0.5355946",
"0.5270766",
"0.5270766",
"0.5248763",
"0.52435553",
"0.5154532",
"0.51466",
"0.50983703",
"0.50971663",
"0.50797945",
"0.5055339",
"0.50540704",
"0.5050556",
"0.5047707",
"0.50303054",
"0.50224185",
"0.4933193",
"0.4915113",
"0.49075618",
"0.48853806",
"0.48475826",
"0.48312962",
"0.48286286",
"0.48282412",
"0.48219758",
"0.48184365",
"0.48035598",
"0.4792015",
"0.4790155",
"0.4786813",
"0.47551525",
"0.4752417",
"0.4744732",
"0.4731721",
"0.47003055",
"0.46982574",
"0.4697926",
"0.4688644",
"0.46859732",
"0.46856666",
"0.4677474",
"0.46593684",
"0.46497974",
"0.46475983",
"0.4645399",
"0.46322632",
"0.46254525",
"0.45936868",
"0.4585057",
"0.4565534",
"0.45653272",
"0.4560733",
"0.4560549",
"0.45495528",
"0.45474654",
"0.45431828",
"0.4541093",
"0.45338196",
"0.4529969",
"0.45252645",
"0.4522404",
"0.4520161",
"0.44988883",
"0.4491568",
"0.44890136",
"0.4479473",
"0.44744915",
"0.44741946",
"0.44718927",
"0.4471382",
"0.44688958",
"0.44652262",
"0.4439073",
"0.44379613",
"0.443229",
"0.442571",
"0.44226205",
"0.4412903",
"0.43967536",
"0.4396649",
"0.4394851",
"0.4390971",
"0.43868804",
"0.43806815",
"0.43777403",
"0.4375293",
"0.43719727"
] | 0.8074002 | 0 |
Without permissions, calling privilegedCallable throws ACE | public void testPrivilegedCallableWithNoPrivs() throws Exception {
// Avoid classloader-related SecurityExceptions in swingui.TestRunner
Executors.privilegedCallable(new CheckCCL());
Runnable r = new CheckedRunnable() {
public void realRun() throws Exception {
if (System.getSecurityManager() == null)
return;
Callable task = Executors.privilegedCallable(new CheckCCL());
try {
task.call();
shouldThrow();
} catch (AccessControlException success) {}
}};
runWithoutPermissions(r);
// It seems rather difficult to test that the
// AccessControlContext of the privilegedCallable is used
// instead of its caller. Below is a failed attempt to do
// that, which does not work because the AccessController
// cannot capture the internal state of the current Policy.
// It would be much more work to differentiate based on,
// e.g. CodeSource.
// final AccessControlContext[] noprivAcc = new AccessControlContext[1];
// final Callable[] task = new Callable[1];
// runWithPermissions
// (new CheckedRunnable() {
// public void realRun() {
// if (System.getSecurityManager() == null)
// return;
// noprivAcc[0] = AccessController.getContext();
// task[0] = Executors.privilegedCallable(new CheckCCL());
// try {
// AccessController.doPrivileged(new PrivilegedAction<Void>() {
// public Void run() {
// checkCCL();
// return null;
// }}, noprivAcc[0]);
// shouldThrow();
// } catch (AccessControlException success) {}
// }});
// runWithPermissions
// (new CheckedRunnable() {
// public void realRun() throws Exception {
// if (System.getSecurityManager() == null)
// return;
// // Verify that we have an underprivileged ACC
// try {
// AccessController.doPrivileged(new PrivilegedAction<Void>() {
// public Void run() {
// checkCCL();
// return null;
// }}, noprivAcc[0]);
// shouldThrow();
// } catch (AccessControlException success) {}
// try {
// task[0].call();
// shouldThrow();
// } catch (AccessControlException success) {}
// }},
// new RuntimePermission("getClassLoader"),
// new RuntimePermission("setContextClassLoader"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"boolean isCallableAccess();",
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }",
"int executeSafely();",
"protected abstract void runPrivate();",
"private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}",
"boolean isExecuteAccess();",
"public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }",
"@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;",
"boolean isNonSecureAccess();",
"public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\n }",
"@Test\n public void testRequestNonRuntimePermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.BIND_PRINT_SERVICE));\n\n String[] permissions = new String[] {Manifest.permission.BIND_PRINT_SERVICE};\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n }",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tAccessModifier obj = new AccessModifier();\r\n\t\tobj.publicFunction();\r\n\t\tTestAccessModAtProjectLevel obj2= new \tTestAccessModAtProjectLevel();\r\n\t\tobj2.protectedfunction();\r\n\t}",
"public static boolean isCallable(Player player, String rootCMD,\n\t\t\tString subCmd) {\n\t\ttry{\n\t\t\t// alias\n\t\t\treturn iBank.hasPermission(player, getPermission(rootCMD, subCmd));\n\t\t}catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"public void testPrivilegedThreadFactory() throws Exception {\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final ClassLoader thisccl = Thread.currentThread().getContextClassLoader();\n // android-note: Removed unsupported access controller check.\n // final AccessControlContext thisacc = AccessController.getContext();\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n assertSame(thisccl, current.getContextClassLoader());\n //assertEquals(thisacc, AccessController.getContext());\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.privilegedThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"),\n new RuntimePermission(\"modifyThread\"));\n }",
"public interface AccessControlled {\r\n\r\n}",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"@Override\n\tpublic void invoke(String origin, boolean allow, boolean remember) {\n\t\t\n\t}",
"public interface RuntimePermissionRequester {\n /**\n * Asks user for specific permissions needed to proceed\n *\n * @param requestCode Request permission using this code, allowing for\n * callback distinguishing\n */\n void requestNeededPermissions(int requestCode);\n}",
"@Test\r\n public void executeTransactionTest_invoke_privateMethod() throws Exception {\r\n localService = new LocalServiceImpl();\r\n\r\n Integer sourceAccountBalance = Whitebox.invokeMethod(localService, \"getSourceAccountBalance\");\r\n assertEquals(java.util.Optional.ofNullable(sourceAccountBalance), Optional.of(500));\r\n }",
"public Object run() throws Exception {\n System.out.println(\"Performing secure action ...\");\n return null;\n }",
"public static void checkAccess() throws SecurityException {\n if(isSystemThread.get()) {\n return;\n }\n //TODO: Add Admin Checking Code\n// if(getCurrentUser() != null && getCurrentUser().isAdmin()) {\n// return;\n// }\n throw new SecurityException(\"Invalid Permissions\");\n }",
"void requestNeededPermissions(int requestCode);",
"public ImpossibleAccessException() {\n super(Constants.IMPOSSIBLE_ACCESS);\n }",
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public <T> T runWithKeyChecksIgnored(Callable<T> call) throws Exception;",
"public void trySafeMethod(){\n safeMethod();\n }",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }",
"abstract public void getPermission();",
"@Override\n\tpublic void execute() {\n\t\tsecurity.on();\n\t}",
"V call() throws StatusRuntimeException;",
"public boolean isAccessible() {\n return false;\n }",
"@Override\n\tprotected void doIsPermitted(String arg0, Handler<AsyncResult<Boolean>> arg1) {\n\t\t\n\t}",
"public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"@Test\n public void shouldThrownAccessExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n // p4ic4idea: use a public, non-abstract class with default constructor\n executeAndExpectThrowsExceptions(\n AccessException.AccessExceptionForTests.class,\n AccessException.class\n );\n }",
"public static void denyAccess(String folder) throws Exception\r\n {\r\n String drive = \"\";\r\n for(int i=0;i<folder.length();i++)\r\n {\r\n if(folder.charAt(i)=='\\\\')\r\n {\r\n drive = folder.substring(0, i);\r\n break;\r\n }\r\n }\r\n String directory = \"\";\r\n String fileName = \"\";\r\n for(int i=folder.length()-1;i>=0;i--)\r\n {\r\n if(folder.charAt(i)=='\\\\')\r\n {\r\n fileName = folder.substring(i+1);\r\n directory = folder.substring(0,i);\r\n break;\r\n }\r\n }\r\n String user = fetchUserName();\r\n Runtime r = Runtime.getRuntime();\r\n\tr.exec(\"cmd /c start cmd.exe /K \\\"\"+drive+\"&&cd \"+directory+\"&&icacls \\\"\"+fileName+\"\\\" /deny \"+user+\":W&&exit\\\"\");\r\n r.exec(\"cmd /c start cmd.exe /K \\\"\"+drive+\"&&cd \"+directory+\"&&icacls \\\"\"+fileName+\"\\\" /deny \"+user+\":R&&exit\\\"\");\r\n \r\n /* \r\n Process p = Runtime.getRuntime().exec(drive);\r\n p.waitFor();\r\n p = Runtime.getRuntime().exec(\"cd \"+directory);\r\n \r\n \r\n p=Runtime.getRuntime().exec(\"icacls \"+fileName+\" /deny \"+user+\":W\"); \r\n p.waitFor(); \r\n p = Runtime.getRuntime().exec(\"icacls \"+fileName+\" /deny \"+user+\":R\");\r\n p.waitFor();\r\n */\r\n }",
"protected abstract boolean invokable(Resource r);",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"void permissionGranted(int requestCode);",
"public void mo9845a() {\n ArrayList arrayList = new ArrayList();\n arrayList.add(new CallableC1816b(this, (byte) 0));\n try {\n Executors.newSingleThreadExecutor().invokeAny(arrayList);\n } catch (InterruptedException e) {\n e.printStackTrace();\n this.f4523c.onFail();\n } catch (ExecutionException e2) {\n e2.printStackTrace();\n this.f4523c.onFail();\n }\n }",
"private Document runPrivileged(final PrivilegedSendMessage privilegedSendMessage) {\n final CallbackHandler handler = new ProvidedAuthCallback(username, password);\n Document result;\n try {\n final LoginContext lc = new LoginContext(\"\", null, handler, new KerberosJaasConfiguration(kerberosDebug, kerberosTicketCache));\n lc.login();\n\n result = Subject.doAs(lc.getSubject(), privilegedSendMessage);\n } catch (LoginException e) {\n throw new WinRmRuntimeIOException(\"Login failure sending message on \" + targetURL + \" error: \" + e.getMessage(),\n privilegedSendMessage.getRequestDocument(), null, e);\n } catch (PrivilegedActionException e) {\n throw new WinRmRuntimeIOException(\"Failure sending message on \" + targetURL + \" error: \" + e.getMessage(),\n privilegedSendMessage.getRequestDocument(), null, e.getException());\n }\n return result;\n }",
"@Test\npublic void testPrivateChat() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = HandlerClient.getClass().getMethod(\"privateChat\", String.class, String.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}",
"public CannotInvokeException(IllegalAccessException e) {\n super(\"by \" + e.toString());\n err = e;\n }",
"boolean ignoresPermission();",
"protected abstract void safeExecute(final Tuple input) throws Exception;",
"private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }",
"void checkAccessModifier(Method method);",
"protected void testAllowedOperations(final String methodName) {\n final OperationsPolicy policy = new OperationsPolicy();\n\n /*[0] Test getEJBHome /////////////////*/\n try {\n mdbContext.getEJBHome();\n policy.allow(OperationsPolicy.Context_getEJBHome);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[1] Test getCallerPrincipal /////////*/\n try {\n mdbContext.getCallerPrincipal();\n policy.allow(OperationsPolicy.Context_getCallerPrincipal);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[2] Test isCallerInRole /////////////*/\n try {\n mdbContext.isCallerInRole(\"TheMan\");\n policy.allow(OperationsPolicy.Context_isCallerInRole);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[3] Test getRollbackOnly ////////////*/\n try {\n mdbContext.getRollbackOnly();\n policy.allow(OperationsPolicy.Context_getRollbackOnly);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[4] Test setRollbackOnly ////////////*/\n // Rollback causes message redelivery\n\n /*[5] Test getUserTransaction /////////*/\n try {\n mdbContext.getUserTransaction();\n policy.allow(OperationsPolicy.Context_getUserTransaction);\n } catch (final IllegalStateException ignored) {\n }\n\n /*[6] Test getEJBObject ///////////////\n *\n * MDBs don't have an ejbObject\n */\n\n /*[7] Test Context_getPrimaryKey ///////////////\n *\n * Can't really do this\n */\n\n /*[8] Test JNDI_access_to_java_comp_env ///////////////*/\n try {\n final InitialContext jndiContext = new InitialContext();\n\n final String actual = (String) jndiContext.lookup(\"java:comp/env/stateless/references/JNDI_access_to_java_comp_env\");\n\n policy.allow(OperationsPolicy.JNDI_access_to_java_comp_env);\n } catch (final IllegalStateException | javax.naming.NamingException ignored) {\n }\n\n /*[11] Test lookup /////////*/\n try {\n mdbContext.lookup(\"stateless/references/JNDI_access_to_java_comp_env\");\n policy.allow(OperationsPolicy.Context_lookup);\n } catch (final IllegalArgumentException ignored) {\n }\n\n allowedOperationsTable.put(methodName, policy);\n\n }",
"void enableSecurity();",
"public boolean isVisibleToUser() {\n/* 830 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"SecurityManager getSecurityManager();",
"SecurityManager getSecurityManager();",
"public static Access granted() {\n return new Access() {\n @Override\n void exec(BeforeEnterEvent enterEvent) {\n }\n };\n }",
"Privilege getPrivilege();",
"public Object intercept(final EasyBeansInvocationContext invocationContext) throws Exception {\n String oldContextId = PolicyContext.getContextID();\n boolean accessGranted = true;\n boolean runAsBean = invocationContext.getFactory().getBeanInfo().getSecurityInfo().getRunAsRole() != null;\n try {\n EZBPermissionManager permissionManager = invocationContext.getFactory().getContainer().getPermissionManager();\n if (permissionManager != null) {\n accessGranted = permissionManager.checkSecurity(invocationContext, runAsBean);\n }\n } finally {\n PolicyContext.setContextID(oldContextId);\n }\n if (!accessGranted) {\n StringBuffer errMsg = new StringBuffer(\"Access Denied on bean '\");\n errMsg.append(invocationContext.getFactory().getBeanInfo().getName());\n errMsg.append(\"' contained in the URL '\");\n errMsg.append(invocationContext.getFactory().getContainer().getArchive());\n errMsg.append(\"'. \");\n errMsg.append(\" Method = '\");\n errMsg.append(invocationContext.getMethod());\n errMsg.append(\"'. \");\n errMsg.append(\"Current caller's principal is '\");\n errMsg.append(SecurityCurrent.getCurrent().getSecurityContext().getCallerPrincipal(runAsBean));\n errMsg.append(\"' with roles '\");\n errMsg.append(Arrays.asList(SecurityCurrent.getCurrent().getSecurityContext().getCallerRoles(runAsBean)));\n errMsg.append(\"'.\");\n throw new EJBAccessException(errMsg.toString());\n }\n\n return invocationContext.proceed();\n }",
"boolean supportsCallableStatement();",
"@Override\n public void checkPermission(Permission perm) {\n }",
"public interface C12049l<T> extends Callable<T> {\n T call();\n}",
"private static void notPossible () {\r\n\t\tSystem.out.println(\"This operation is not possible\");\r\n\t}",
"void legalCommand();",
"boolean isSecureAccess();",
"default void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getTestIamPermissionsMethod(), responseObserver);\n }",
"protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"private void executeCallableAndExpectError(Callable<Object> callable, Throwable error) {\n boolean called = false;\n try {\n CurrentSpanUtils.withSpan(span, true, callable).call();\n } catch (Throwable e) {\n assertThat(e).isEqualTo(error);\n called = true;\n }\n assertThat(called).isTrue();\n }",
"public static boolean is_callable(String _name) {\n\t\treturn false;\n\t}",
"public abstract void doInvoke(InvocationContext ic) throws Exception;",
"DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }",
"private PermissionHelper() {}",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"public interface Callable {\n void call(String name, String telNumber);\n}",
"public static Process runBatchFileInWindows(String src, boolean requestAdminAccess) throws Exception {\n if (!isSoWindows()) {\n return null;\n }\n// String srcCall = src;\n// if (requestAdminAccess) {\n//\n// final File file = File.createTempFile(\"gold-call-admin-\", \".bat\");\n// final String fileGetAdmin = \"get-admin-\" + CSPUtilidadesLang.getTempoCompletoLimpo() + \".vbs\";\n// FileWriter fw = new java.io.FileWriter(file);\n// fw.write(\"@echo off \" + LINE_SEPARATOR\n// + \":-------------------------------------\" + LINE_SEPARATOR\n// + \"IF \\\"%PROCESSOR_ARCHITECTURE%\\\" EQU \\\"amd64\\\" ( \" + LINE_SEPARATOR\n// + \" >nul 2>&1 \\\"%SYSTEMROOT%\\\\SysWOW64\\\\cacls.exe\\\" \\\"%SYSTEMROOT%\\\\SysWOW64\\\\config\\\\system\\\" \" + LINE_SEPARATOR\n// + \") ELSE ( \" + LINE_SEPARATOR\n// + \" >nul 2>&1 \\\"%SYSTEMROOT%\\\\system32\\\\cacls.exe\\\" \\\"%SYSTEMROOT%\\\\system32\\\\config\\\\system\\\" \" + LINE_SEPARATOR\n// + \") \" + LINE_SEPARATOR\n// + \"if '%errorlevel%' NEQ '0' ( \" + LINE_SEPARATOR\n// + \" goto UACPrompt \" + LINE_SEPARATOR\n// + \") else ( goto gotAdmin ) \" + LINE_SEPARATOR\n// + \":UACPrompt \" + LINE_SEPARATOR\n// + \" echo Set UAC = CreateObject^(\\\"Shell.Application\\\"^) > \\\"%temp%\\\\\" + fileGetAdmin + \"\\\" \" + LINE_SEPARATOR\n// + \" set params = %*:\\\"=\\\"\\\" \" + LINE_SEPARATOR\n// + \" echo UAC.ShellExecute \\\"cmd.exe\\\", \\\"/c \\\"\\\"%~s0\\\"\\\" %params%\\\", \\\"\\\", \\\"runas\\\", 0 >> \\\"%temp%\\\\\" + fileGetAdmin + \"\\\" \" + LINE_SEPARATOR\n// + \" \\\"%temp%\\\\\" + fileGetAdmin + \"\\\" \" + LINE_SEPARATOR\n// + \" del \\\"%temp%\\\\\" + fileGetAdmin + \"\\\" \" + LINE_SEPARATOR\n// + \" exit /B \" + LINE_SEPARATOR\n// + \":gotAdmin \" + LINE_SEPARATOR\n// + \" pushd \\\"%CD%\\\" \" + LINE_SEPARATOR\n// + \" CD /D \\\"%~dp0\\\" \" + LINE_SEPARATOR\n// + \":-------------------------------------\" + LINE_SEPARATOR\n// + new CSPArquivosLocais(src).getContent());\n// fw.close();\n// srcCall = file.getAbsolutePath();\n// }\n if (requestAdminAccess) {\n return runVisualBasicScriptInWindows(\n \"Set UAC = CreateObject(\\\"Shell.Application\\\")\" + LINE_SEPARATOR\n + \"UAC.ShellExecute \\\"\" + src + \"\\\", \\\"\\\", \\\"\\\", \\\"runas\\\", 1\"\n );\n }\n return runProcessInSo(\"cmd\", \"/c\", \"start\", \"/b\", src);\n }",
"@Test\n\tvoid onPrivateMethod() {\n\t\tString classContent =\n\t\t//@formatter:off\n\t\t\t\t\"package methodinterception;\"\n\n\t\t\t\t+ \"import io.github.swingboot.concurrency.AssertUi;\"\n\t\t\t\t\n\t\t\t\t+ \"public class N {\"\n\t\t\t\t+ \"\tpublic N() {}\"\n\t\t\t\t\n\t\t\t\t+ \"\t@AssertUi\"\n\t\t\t\t+ \"\tprivate void doSomething() {}\"\n\t\t\t\t\n\t\t\t\t+ \"}\";\n\t\t//@formatter:on\n\t\tReflectException ex = assertThrows(ReflectException.class, () -> compile(\"N\", classContent));\n\t\tassertTrue(ex.getMessage().toLowerCase().contains(\"private methods\"));\n\t}",
"void requestStoragePermission();",
"@Override\n\tprotected boolean isAccessAllowed(ServletRequest request, ServletResponse response, Object mappedValue)\n\t\t\tthrows Exception {\n\t\treturn false;\n\t}",
"<T> T runWithContext(String applicationName, Callable<T> callable) throws Exception;",
"private abstract void privateabstract();",
"protected static void validateCallPrivileges(User sessionUser, User user) {\n if (user.name().equals(sessionUser.name()) == false\n && sessionUser.hasPrivilege(Privilege.Type.DQL, Privilege.Clazz.TABLE, \"sys.privileges\", null) == false\n && sessionUser.hasPrivilege(Privilege.Type.AL, Privilege.Clazz.CLUSTER, \"crate\", null) == false) {\n throw new MissingPrivilegeException(sessionUser.name());\n }\n }",
"void ensureAdminAccess() {\n Account currentAccount = SecurityContextHolder.getContext().getAccount();\n if (!currentAccount.isAdmin()) {\n throw new IllegalStateException(\"Permission denied.\");\n }\n }",
"public static void disablePermissionCache() {\n sPermissionCache.disableLocal();\n }",
"public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException;",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;",
"void askForPermissions();",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tClassC cb = new ClassC();\r\n\t\tcb.protectedMethod();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\npublic void testCalFileUFP() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calFileUFP\", int.class, int.class, int.class, EstimationFileData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}",
"public final void zzcx() throws IllegalAccessException, InvocationTargetException {\n if (zzzt == null) {\n synchronized (zzzl) {\n if (zzzt == null) {\n zzzt = (Long) this.zzzw.invoke((Object) null, new Object[0]);\n }\n }\n }\n synchronized (this.zzzm) {\n this.zzzm.zzaz(zzzt.longValue());\n }\n }",
"@Override\n public void onFailure(Throwable caught) {\n\n Console.warning(\"Failed to create security context for \"+id+ \", fallback to temporary read-only context\", caught.getMessage());\n contextMapping.put(id, READ_ONLY);\n callback.onSuccess(READ_ONLY);\n }"
] | [
"0.7754494",
"0.75738955",
"0.7389194",
"0.7009505",
"0.6966776",
"0.6537885",
"0.65238076",
"0.63865304",
"0.6355684",
"0.63414323",
"0.6335567",
"0.6113212",
"0.6089834",
"0.59108114",
"0.57965225",
"0.57858306",
"0.5735553",
"0.56590766",
"0.5609021",
"0.5596324",
"0.55850697",
"0.55623275",
"0.5517593",
"0.5474049",
"0.54326975",
"0.543108",
"0.5419216",
"0.54121166",
"0.53867066",
"0.5343694",
"0.53199595",
"0.5305003",
"0.52950704",
"0.5284211",
"0.52578074",
"0.5236724",
"0.5228001",
"0.52219284",
"0.5196138",
"0.5190561",
"0.5184023",
"0.5183528",
"0.51770437",
"0.5160686",
"0.51592386",
"0.5143951",
"0.51310796",
"0.5108175",
"0.5105895",
"0.50923663",
"0.5085965",
"0.5085162",
"0.50839716",
"0.5064206",
"0.50526506",
"0.5050944",
"0.50412166",
"0.5040741",
"0.50259453",
"0.5020678",
"0.5015402",
"0.5008357",
"0.49641836",
"0.49562916",
"0.49562916",
"0.49503893",
"0.49405348",
"0.49292552",
"0.4913291",
"0.4896095",
"0.4889434",
"0.48888132",
"0.48851818",
"0.48820436",
"0.4879891",
"0.48796323",
"0.4878541",
"0.4878426",
"0.4874965",
"0.48678255",
"0.4865479",
"0.4857707",
"0.48407087",
"0.48401418",
"0.48301393",
"0.48294082",
"0.4827319",
"0.48203793",
"0.4809803",
"0.48058474",
"0.48046166",
"0.47994608",
"0.4792701",
"0.47895333",
"0.4788977",
"0.47862673",
"0.47724167",
"0.476822",
"0.47621936",
"0.47542334"
] | 0.7690072 | 1 |
With permissions, calling privilegedCallable succeeds | public void testPrivilegedCallableWithPrivs() throws Exception {
Runnable r = new CheckedRunnable() {
public void realRun() throws Exception {
Executors.privilegedCallable(new CheckCCL()).call();
}};
runWithPermissions(r,
new RuntimePermission("getClassLoader"),
new RuntimePermission("setContextClassLoader"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"boolean isCallableAccess();",
"private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }",
"private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }",
"public interface RuntimePermissionRequester {\n /**\n * Asks user for specific permissions needed to proceed\n *\n * @param requestCode Request permission using this code, allowing for\n * callback distinguishing\n */\n void requestNeededPermissions(int requestCode);\n}",
"protected abstract void runPrivate();",
"public static boolean isCallable(Player player, String rootCMD,\n\t\t\tString subCmd) {\n\t\ttry{\n\t\t\t// alias\n\t\t\treturn iBank.hasPermission(player, getPermission(rootCMD, subCmd));\n\t\t}catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"void permissionGranted(int requestCode);",
"abstract public void getPermission();",
"void requestNeededPermissions(int requestCode);",
"private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}",
"private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }",
"@Test\n public void testRequestNonRuntimePermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.BIND_PRINT_SERVICE));\n\n String[] permissions = new String[] {Manifest.permission.BIND_PRINT_SERVICE};\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n }",
"@Override\n public void checkPermission(Permission perm) {\n }",
"boolean isExecuteAccess();",
"@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;",
"int executeSafely();",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}",
"boolean isNonSecureAccess();",
"void askForPermissions();",
"default void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getTestIamPermissionsMethod(), responseObserver);\n }",
"@Override\n\tprotected void doIsPermitted(String arg0, Handler<AsyncResult<Boolean>> arg1) {\n\t\t\n\t}",
"int getPermissionWrite();",
"boolean ignoresPermission();",
"public void onPermissionGranted() {\n\n }",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public interface PermissionManagerServiceInternal extends PermissionManagerInternal,\n LegacyPermissionDataProvider {\n /**\n * Check whether a particular package has been granted a particular permission.\n *\n * @param packageName the name of the package you are checking against\n * @param permissionName the name of the permission you are checking for\n * @param userId the user ID\n * @return {@code PERMISSION_GRANTED} if the permission is granted, or {@code PERMISSION_DENIED}\n * otherwise\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n int checkPermission(@NonNull String packageName, @NonNull String permissionName,\n @UserIdInt int userId);\n\n /**\n * Check whether a particular UID has been granted a particular permission.\n *\n * @param uid the UID\n * @param permissionName the name of the permission you are checking for\n * @return {@code PERMISSION_GRANTED} if the permission is granted, or {@code PERMISSION_DENIED}\n * otherwise\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n int checkUidPermission(int uid, @NonNull String permissionName);\n\n /**\n * Adds a listener for runtime permission state (permissions or flags) changes.\n *\n * @param listener The listener.\n */\n void addOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);\n\n /**\n * Removes a listener for runtime permission state (permissions or flags) changes.\n *\n * @param listener The listener.\n */\n void removeOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);\n\n /**\n * Get whether permission review is required for a package.\n *\n * @param packageName the name of the package\n * @param userId the user ID\n * @return whether permission review is required\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n boolean isPermissionsReviewRequired(@NonNull String packageName,\n @UserIdInt int userId);\n\n /**\n * Reset the runtime permission state changes for a package.\n *\n * TODO(zhanghai): Turn this into package change callback?\n *\n * @param pkg the package\n * @param userId the user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void resetRuntimePermissions(@NonNull AndroidPackage pkg,\n @UserIdInt int userId);\n\n /**\n * Read legacy permission state from package settings.\n *\n * TODO(zhanghai): This is a temporary method because we should not expose\n * {@code PackageSetting} which is a implementation detail that permission should not know.\n * Instead, it should retrieve the legacy state via a defined API.\n */\n void readLegacyPermissionStateTEMP();\n\n /**\n * Write legacy permission state to package settings.\n *\n * TODO(zhanghai): This is a temporary method and should be removed once we migrated persistence\n * for permission.\n */\n void writeLegacyPermissionStateTEMP();\n\n /**\n * Get all the permissions granted to a package.\n *\n * @param packageName the name of the package\n * @param userId the user ID\n * @return the names of the granted permissions\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n Set<String> getGrantedPermissions(@NonNull String packageName, @UserIdInt int userId);\n\n /**\n * Get the GIDs of a permission.\n *\n * @param permissionName the name of the permission\n * @param userId the user ID\n * @return the GIDs of the permission\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId);\n\n /**\n * Get the packages that have requested an app op permission.\n *\n * @param permissionName the name of the app op permission\n * @return the names of the packages that have requested the app op permission\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n String[] getAppOpPermissionPackages(@NonNull String permissionName);\n\n /** HACK HACK methods to allow for partial migration of data to the PermissionManager class */\n @Nullable\n Permission getPermissionTEMP(@NonNull String permName);\n\n /** Get all permissions that have a certain protection */\n @NonNull\n ArrayList<PermissionInfo> getAllPermissionsWithProtection(\n @PermissionInfo.Protection int protection);\n\n /** Get all permissions that have certain protection flags */\n @NonNull ArrayList<PermissionInfo> getAllPermissionsWithProtectionFlags(\n @PermissionInfo.ProtectionFlags int protectionFlags);\n\n /**\n * Start delegate the permission identity of the shell UID to the given UID.\n *\n * @param uid the UID to delegate shell permission identity to\n * @param packageName the name of the package to delegate shell permission identity to\n * @param permissionNames the names of the permissions to delegate shell permission identity\n * for, or {@code null} for all permissions\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void startShellPermissionIdentityDelegation(int uid,\n @NonNull String packageName, @Nullable List<String> permissionNames);\n\n /**\n * Stop delegating the permission identity of the shell UID.\n *\n * @see #startShellPermissionIdentityDelegation(int, String, List)\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void stopShellPermissionIdentityDelegation();\n\n /**\n * Get all delegated shell permissions.\n */\n @NonNull List<String> getDelegatedShellPermissions();\n\n /**\n * Read legacy permissions from legacy permission settings.\n *\n * TODO(zhanghai): This is a temporary method because we should not expose\n * {@code LegacyPermissionSettings} which is a implementation detail that permission should not\n * know. Instead, it should retrieve the legacy permissions via a defined API.\n */\n void readLegacyPermissionsTEMP(@NonNull LegacyPermissionSettings legacyPermissionSettings);\n\n /**\n * Write legacy permissions to legacy permission settings.\n *\n * TODO(zhanghai): This is a temporary method and should be removed once we migrated persistence\n * for permission.\n */\n void writeLegacyPermissionsTEMP(@NonNull LegacyPermissionSettings legacyPermissionSettings);\n\n /**\n * Callback when the system is ready.\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onSystemReady();\n\n /**\n * Callback when a storage volume is mounted, so that all packages on it become available.\n *\n * @param volumeUuid the UUID of the storage volume\n * @param fingerprintChanged whether the current build fingerprint is different from what it was\n * when this volume was last mounted\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onStorageVolumeMounted(@NonNull String volumeUuid, boolean fingerprintChanged);\n\n /**\n * Callback when a user has been created.\n *\n * @param userId the created user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onUserCreated(@UserIdInt int userId);\n\n /**\n * Callback when a user has been removed.\n *\n * @param userId the removed user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onUserRemoved(@UserIdInt int userId);\n\n /**\n * Callback when a package has been added.\n *\n * @param pkg the added package\n * @param isInstantApp whether the added package is an instant app\n * @param oldPkg the old package, or {@code null} if none\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageAdded(@NonNull AndroidPackage pkg, boolean isInstantApp,\n @Nullable AndroidPackage oldPkg);\n\n /**\n * Callback when a package has been installed for a user.\n *\n * @param pkg the installed package\n * @param previousAppId the previous app ID if the package is leaving a shared UID,\n * or Process.INVALID_UID\n * @param params the parameters passed in for package installation\n * @param userId the user ID this package is installed for\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageInstalled(@NonNull AndroidPackage pkg, int previousAppId,\n @NonNull PackageInstalledParams params,\n @UserIdInt int userId);\n\n /**\n * Callback when a package has been removed.\n *\n * @param pkg the removed package\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageRemoved(@NonNull AndroidPackage pkg);\n\n /**\n * Callback when a package has been uninstalled.\n * <p>\n * The package may have been fully removed from the system, or only marked as uninstalled for\n * this user but still instlaled for other users.\n *\n * TODO: Pass PackageState instead.\n *\n * @param packageName the name of the uninstalled package\n * @param appId the app ID of the uninstalled package\n * @param pkg the uninstalled package, or {@code null} if unavailable\n * @param sharedUserPkgs the packages that are in the same shared user\n * @param userId the user ID the package is uninstalled for\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageUninstalled(@NonNull String packageName, int appId, @Nullable AndroidPackage pkg,\n @NonNull List<AndroidPackage> sharedUserPkgs, @UserIdInt int userId);\n\n /**\n * Listener for package permission state (permissions or flags) changes.\n */\n interface OnRuntimePermissionStateChangedListener {\n\n /**\n * Called when the runtime permission state (permissions or flags) changed.\n *\n * @param packageName The package for which the change happened.\n * @param userId the user id for which the change happened.\n */\n @Nullable\n void onRuntimePermissionStateChanged(@NonNull String packageName,\n @UserIdInt int userId);\n }\n\n /**\n * The permission-related parameters passed in for package installation.\n *\n * @see android.content.pm.PackageInstaller.SessionParams\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n final class PackageInstalledParams {\n /**\n * A static instance whose parameters are all in their default state.\n */\n public static final PackageInstalledParams DEFAULT = new Builder().build();\n\n @NonNull\n private final List<String> mGrantedPermissions;\n @NonNull\n private final List<String> mAllowlistedRestrictedPermissions;\n @NonNull\n private final int mAutoRevokePermissionsMode;\n\n private PackageInstalledParams(@NonNull List<String> grantedPermissions,\n @NonNull List<String> allowlistedRestrictedPermissions,\n int autoRevokePermissionsMode) {\n mGrantedPermissions = grantedPermissions;\n mAllowlistedRestrictedPermissions = allowlistedRestrictedPermissions;\n mAutoRevokePermissionsMode = autoRevokePermissionsMode;\n }\n\n /**\n * Get the permissions to be granted.\n *\n * @return the permissions to be granted\n */\n @NonNull\n public List<String> getGrantedPermissions() {\n return mGrantedPermissions;\n }\n\n /**\n * Get the restricted permissions to be allowlisted.\n *\n * @return the restricted permissions to be allowlisted\n */\n @NonNull\n public List<String> getAllowlistedRestrictedPermissions() {\n return mAllowlistedRestrictedPermissions;\n }\n\n /**\n * Get the mode for auto revoking permissions.\n *\n * @return the mode for auto revoking permissions\n */\n public int getAutoRevokePermissionsMode() {\n return mAutoRevokePermissionsMode;\n }\n\n /**\n * Builder class for {@link PackageInstalledParams}.\n */\n public static final class Builder {\n @NonNull\n private List<String> mGrantedPermissions = Collections.emptyList();\n @NonNull\n private List<String> mAllowlistedRestrictedPermissions = Collections.emptyList();\n @NonNull\n private int mAutoRevokePermissionsMode = AppOpsManager.MODE_DEFAULT;\n\n /**\n * Set the permissions to be granted.\n *\n * @param grantedPermissions the permissions to be granted\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setGrantedRuntimePermissions(\n * java.lang.String[])\n */\n public void setGrantedPermissions(@NonNull List<String> grantedPermissions) {\n Objects.requireNonNull(grantedPermissions);\n mGrantedPermissions = new ArrayList<>(grantedPermissions);\n }\n\n /**\n * Set the restricted permissions to be allowlisted.\n * <p>\n * Permissions that are not restricted are ignored, so one can just pass in all\n * requested permissions of a package to get all its restricted permissions allowlisted.\n *\n * @param allowlistedRestrictedPermissions the restricted permissions to be allowlisted\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setWhitelistedRestrictedPermissions(Set)\n */\n public void setAllowlistedRestrictedPermissions(\n @NonNull List<String> allowlistedRestrictedPermissions) {\n Objects.requireNonNull(mGrantedPermissions);\n mAllowlistedRestrictedPermissions = new ArrayList<>(\n allowlistedRestrictedPermissions);\n }\n\n /**\n * Set the mode for auto revoking permissions.\n * <p>\n * {@link AppOpsManager#MODE_ALLOWED} means the system is allowed to auto revoke\n * permissions from this package, and {@link AppOpsManager#MODE_IGNORED} means this\n * package should be ignored when auto revoking permissions.\n * {@link AppOpsManager#MODE_DEFAULT} means no changes will be made to the auto revoke\n * mode of this package.\n *\n * @param autoRevokePermissionsMode the mode for auto revoking permissions\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setAutoRevokePermissionsMode(\n * boolean)\n */\n public void setAutoRevokePermissionsMode(int autoRevokePermissionsMode) {\n mAutoRevokePermissionsMode = autoRevokePermissionsMode;\n }\n\n /**\n * Build a new instance of {@link PackageInstalledParams}.\n *\n * @return the {@link PackageInstalledParams} built\n */\n @NonNull\n public PackageInstalledParams build() {\n return new PackageInstalledParams(mGrantedPermissions,\n mAllowlistedRestrictedPermissions, mAutoRevokePermissionsMode);\n }\n }\n }\n\n /**\n * Sets the provider of the currently active HotwordDetectionService.\n *\n * @see HotwordDetectionServiceProvider\n */\n void setHotwordDetectionServiceProvider(@Nullable HotwordDetectionServiceProvider provider);\n\n /**\n * Gets the provider of the currently active HotwordDetectionService.\n *\n * @see HotwordDetectionServiceProvider\n */\n @Nullable\n HotwordDetectionServiceProvider getHotwordDetectionServiceProvider();\n\n /**\n * Provides the uid of the currently active\n * {@link android.service.voice.HotwordDetectionService}, which should be granted RECORD_AUDIO,\n * CAPTURE_AUDIO_HOTWORD and CAPTURE_AUDIO_OUTPUT permissions.\n */\n interface HotwordDetectionServiceProvider {\n int getUid();\n }\n}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tAccessModifier obj = new AccessModifier();\r\n\t\tobj.publicFunction();\r\n\t\tTestAccessModAtProjectLevel obj2= new \tTestAccessModAtProjectLevel();\r\n\t\tobj2.protectedfunction();\r\n\t}",
"private PermissionHelper() {}",
"public com.google.common.util.concurrent.ListenableFuture<\n com.google.iam.v1.TestIamPermissionsResponse>\n testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request);\n }",
"@Test\n public void testRequestGrantedPermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and allow it\n BasePermissionActivity.Result firstResult = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, null);\n\n // Expect the permission is granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {true});\n }",
"public void testPrivilegedThreadFactory() throws Exception {\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final ClassLoader thisccl = Thread.currentThread().getContextClassLoader();\n // android-note: Removed unsupported access controller check.\n // final AccessControlContext thisacc = AccessController.getContext();\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n assertSame(thisccl, current.getContextClassLoader());\n //assertEquals(thisacc, AccessController.getContext());\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.privilegedThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"),\n new RuntimePermission(\"modifyThread\"));\n }",
"public boolean checkPermission(Permission permission);",
"@Override\n public void onPermissionGranted() {\n }",
"@Override\n public void onPermissionGranted() {\n }",
"void requestStoragePermission();",
"@Override\n public void checkPermission(Permission perm, Object context) {\n }",
"boolean memberHasPermission(String perm, Member m);",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"public static void checkAccess() throws SecurityException {\n if(isSystemThread.get()) {\n return;\n }\n //TODO: Add Admin Checking Code\n// if(getCurrentUser() != null && getCurrentUser().isAdmin()) {\n// return;\n// }\n throw new SecurityException(\"Invalid Permissions\");\n }",
"@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }",
"protected abstract boolean invokable(Resource r);",
"public interface PermissionListener {\n\n void onGranted(); //授权\n\n void onDenied(List<String> deniedPermission); //拒绝 ,并传入被拒绝的权限\n}",
"private Document runPrivileged(final PrivilegedSendMessage privilegedSendMessage) {\n final CallbackHandler handler = new ProvidedAuthCallback(username, password);\n Document result;\n try {\n final LoginContext lc = new LoginContext(\"\", null, handler, new KerberosJaasConfiguration(kerberosDebug, kerberosTicketCache));\n lc.login();\n\n result = Subject.doAs(lc.getSubject(), privilegedSendMessage);\n } catch (LoginException e) {\n throw new WinRmRuntimeIOException(\"Login failure sending message on \" + targetURL + \" error: \" + e.getMessage(),\n privilegedSendMessage.getRequestDocument(), null, e);\n } catch (PrivilegedActionException e) {\n throw new WinRmRuntimeIOException(\"Failure sending message on \" + targetURL + \" error: \" + e.getMessage(),\n privilegedSendMessage.getRequestDocument(), null, e.getException());\n }\n return result;\n }",
"public Boolean setFloodPerm(String floodPerm) throws PermissionDeniedException;",
"public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }",
"public interface IPermissionCommunicator {\n public void onRequestForPermission();\n}",
"public abstract boolean impliesWithoutTreePathCheck(Permission permission);",
"@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}",
"public interface AccessControlled {\r\n\r\n}",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"int getPermissionRead();",
"private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_ACCESS_FINE_LOCATION);\n\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_ACCESS_COARSE_LOCATION);\n } else {\n isPermission = true;\n }\n }",
"public void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n }",
"public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }",
"@FunctionalInterface\npublic interface PermissionProvider {\n\n /**\n * Checks if a user can use a special kind of commands.\n *\n * @param level The {@link PermissionLevel} of the command\n * @param channel The channel the message occurred in\n * @param member The {@link Member} that send the message\n * @return True if the user has the rights to use the commands\n */\n boolean hasPermission(PermissionLevel level, TextChannel channel, Member member);\n\n /**\n * @return The default {@link PermissionProvider}.\n */\n static PermissionProvider getDefault() {\n return new IdPermissionsProvider();\n }\n\n enum PermissionLevel {\n ADMIN\n }\n}",
"public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }",
"public abstract boolean addRunAs(ServiceSecurity serviceSecurity, SecurityContext securityContext);",
"public String getFloodPerm() throws PermissionDeniedException;",
"private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\r\n PERMISSIONS_ACCESS_FINE_LOCATION);\r\n\r\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED){\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\r\n PERMISSIONS_ACCESS_COARSE_LOCATION);\r\n } else {\r\n isPermission = true;\r\n }\r\n }",
"boolean hasPermission(final Player sniper, final String permission);",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"public interface PermissionResult {\n\n void permissionGranted();\n\n void permissionDenied();\n\n void permissionForeverDenied();\n\n}",
"boolean isWritePermissionGranted();",
"@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }",
"boolean hasInstantiatePermission();",
"public void runTimePermission(){\n Dexter.withActivity(this).withPermission(Manifest.permission.READ_EXTERNAL_STORAGE)\n .withListener(new PermissionListener() {\n @Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n play();\n }\n\n @Override\n public void onPermissionDenied(PermissionDeniedResponse response) {\n\n }\n\n @Override\n public void onPermissionRationaleShouldBeShown(PermissionRequest permission, PermissionToken token) {\n token.continuePermissionRequest();\n }\n }).check();\n }",
"boolean isSecureAccess();",
"@Test\n public void testRequestPermissionFromTwoGroups() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CALENDAR));\n\n String[] permissions = new String[] {\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.WRITE_CALENDAR\n };\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true, true});\n }",
"@Override\n public void checkRunTimePermission(AppBaseActivity activity, String permission) {\n if (ContextCompat.checkSelfPermission(activity, permission)\n != PackageManager.PERMISSION_GRANTED) {\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(activity, permission)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(activity,\n new String[]{permission},\n REQUEST_PERMISSIONS_REQUEST_CODE);\n // REQUEST_PERMISSIONS_REQUEST_CODE is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n\n }\n }",
"public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }",
"boolean check(Permission permission, Surrogate surrogate, boolean permissionRequired) throws T2DBException;",
"public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request);\n }",
"private boolean runtime_permissions() {\n if(Build.VERSION.SDK_INT >= 23 && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},100);\n\n return true;\n }\n return false;\n }",
"@Override\n public boolean testPermission(CommandSource source) {\n return source.hasPermission(\"core.tps\");\n }",
"Privilege getPrivilege();",
"@Override\n\tpublic void execute() {\n\t\tsecurity.on();\n\t}",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"boolean isPrivate();",
"@Test(dependsOnMethods = \"testRoleAdd\", groups = \"role\", priority = 1)\n public void testRoleGrantPermission() throws ExecutionException, InterruptedException {\n this.authDisabledAuthClient\n .roleGrantPermission(rootRole, rootRolekeyRangeBegin, rootkeyRangeEnd,\n Permission.Type.READWRITE).get();\n this.authDisabledAuthClient\n .roleGrantPermission(userRole, userRolekeyRangeBegin, userRolekeyRangeEnd, Type.READWRITE)\n .get();\n }",
"public abstract boolean canEditAccessRights(OwObject object_p) throws Exception;",
"public interface PermissionsInstance {\n\n\t/**\n\t * Check whether the specified member has permission for the following action\n\t * @param perm The permission name\n\t * @param m The member\n\t * @return True, if the member can do the action\n\t */\n\tboolean memberHasPermission(String perm, Member m);\n\t\n}",
"private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }",
"public String getFloodPerm(String dpidStr) throws PermissionDeniedException;",
"@Override\n\tpublic void invoke(String origin, boolean allow, boolean remember) {\n\t\t\n\t}",
"@Test\n public void testDenialWithPrejudice() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and deny it\n BasePermissionActivity.Result firstResult = requestPermissions(\n permissions, REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickDenyButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n\n // Request the permission and choose don't ask again\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, () -> {\n try {\n denyWithPrejudice();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is not granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {false});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result thirdResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 2,\n BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(thirdResult, REQUEST_CODE_PERMISSIONS + 2,\n permissions, new boolean[] {false});\n }",
"public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\n }",
"public interface SysPermissionService {\n}",
"@Test()\n public void doTestWithSuperPermission() throws Exception {\n doTestChangeTopic(\"admin\", \"123\");\n }",
"boolean process(Param param, JsrCallable callable) throws InvalidSignatureException;",
"private void requestCameraPermission(){\n requestPermissions(cameraPermissions, CAMERA_REQUESTED_CODE);\n }",
"PermissionService getPermissionService();"
] | [
"0.7754211",
"0.73337495",
"0.7208815",
"0.6771184",
"0.658077",
"0.6565694",
"0.6548",
"0.604851",
"0.60082906",
"0.59351414",
"0.5867513",
"0.58627456",
"0.5845705",
"0.583195",
"0.58230925",
"0.5788367",
"0.5782598",
"0.57655567",
"0.5651301",
"0.56400436",
"0.5615851",
"0.5601366",
"0.5585449",
"0.5565867",
"0.55570126",
"0.554267",
"0.553974",
"0.55252254",
"0.55138147",
"0.5513348",
"0.5486841",
"0.54797417",
"0.5466026",
"0.54556787",
"0.5419466",
"0.5413936",
"0.541135",
"0.54086417",
"0.5403445",
"0.53951174",
"0.538761",
"0.5384262",
"0.53582454",
"0.5353905",
"0.5347634",
"0.53453916",
"0.53214264",
"0.5309004",
"0.53070426",
"0.5304843",
"0.52955675",
"0.52888554",
"0.528595",
"0.5280279",
"0.5274014",
"0.5262896",
"0.52548647",
"0.52530676",
"0.52478397",
"0.5245876",
"0.5237354",
"0.52327883",
"0.52327406",
"0.52281106",
"0.5221063",
"0.5216945",
"0.5216774",
"0.52100116",
"0.5205735",
"0.5185591",
"0.5183144",
"0.5164918",
"0.5160704",
"0.51593465",
"0.51500994",
"0.5147941",
"0.51475745",
"0.51364034",
"0.5127466",
"0.5115569",
"0.5111305",
"0.51041466",
"0.50924337",
"0.50921524",
"0.50916034",
"0.50905794",
"0.5082958",
"0.50454897",
"0.50139755",
"0.50100446",
"0.50097066",
"0.5003986",
"0.5000224",
"0.49944738",
"0.49887297",
"0.49867705",
"0.49837816",
"0.49794456",
"0.49766678",
"0.49720907"
] | 0.79472625 | 0 |
callable(Runnable) returns null when called | public void testCallable1() throws Exception {
Callable c = Executors.callable(new NoOpRunnable());
assertNull(c.call());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public interface OnStart extends FuncUnit0 {\n \n public static final OnStart DoNothing = ()->{};\n \n public static OnStart run(FuncUnit0 runnable) {\n if (runnable == null)\n return null;\n \n return runnable::run;\n }\n \n}",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public MyRunnable(){\t\n\t}",
"@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"Runnable mk();",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"static Scheduler m34951a(Function<? super Callable<Scheduler>, ? extends Scheduler> hVar, Callable<Scheduler> callable) {\n return (Scheduler) ObjectHelper.m35048a(m34956a(hVar, (T) callable), \"Scheduler Callable result can't be null\");\n }",
"@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}",
"FragmentExecutor getRunnable();",
"public abstract void executeOnNetwork(@NonNull Runnable runnable);",
"private Object getTask(Runnable runnable)\r\n {\r\n Object innerTask = \r\n ObservableExecutors.getInnerTask(runnable, Object.class);\r\n if (innerTask != null)\r\n {\r\n return innerTask;\r\n }\r\n return runnable;\r\n }",
"Callable<E> getTask();",
"public abstract void mo30313a(C41366e c41366e, Runnable runnable);",
"private void m76769g() {\n C1592h.m7855a((Callable<TResult>) new C23441a<TResult>(this), C1592h.f5958b);\n }",
"interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }",
"@FunctionalInterface\n public interface CheckedRunnable {\n void run() throws Exception;\n }",
"interface DebugCallable<T> {\n\n /**\n * The invocation that will be tracked.\n *\n * @return the result\n */\n T call() throws EvalException, InterruptedException;\n }",
"@Override\r\n\tvoid execute(Runnable task);",
"public Runnable _0parameterNoReturn() {\n\t\treturn () -> System.out.println(\"\"); // we have to use brackets for no parameter\n\t\t\t\t// OR\n\t\t// return () -> { System.out.println(\"\"); };\n\t}",
"static Scheduler m34966e(Callable<Scheduler> callable) {\n try {\n return (Scheduler) ObjectHelper.m35048a(callable.call(), \"Scheduler Callable result can't be null\");\n } catch (Throwable th) {\n throw C8162d.m35182a(th);\n }\n }",
"public interface C12049l<T> extends Callable<T> {\n T call();\n}",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }",
"@Override\r\n\tpublic void runFunc() {\n\r\n\t}",
"@Override\n public void run() {\n final WeakHandler wh = hw.getThat();\n final Runnable r = runnable.get();\n if (wh == null || r == null) {\n return;\n }\n r.run();\n }",
"@FunctionalInterface\npublic interface FailableRunnable {\n\n /**\n * Executes a side-effectful computation.\n *\n * @throws Exception\n * if it fails\n */\n public void run() throws Exception;\n}",
"@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}",
"public static Runnable m34957a(Runnable runnable) {\n ObjectHelper.m35048a(runnable, \"run is null\");\n Function<? super Runnable, ? extends Runnable> hVar = f27417b;\n if (hVar == null) {\n return runnable;\n }\n return (Runnable) m34956a(hVar, (T) runnable);\n }",
"public Runnable getRunnable() {\n return runnable;\n }",
"@Override\n protected void invokeTestRunnable(final Runnable runnable) throws Exception {\n System.out.println(\"Invoke: \" + runnable);\n runnable.run();\n }",
"public void detenerRunnable(){\n Log.d(\"RUNNABLE\",\"DETENIENDO RUNNABLE SONIDO + VIBRACION\");\n handler.removeCallbacksAndMessages(myRunnable);\n handler.removeCallbacks(myRunnable);\n\n }",
"public abstract void submit(Runnable runnable);",
"public interface TaskCaller extends Callable<Bitmap> {\n\n void onFinish();\n void onError();\n\n}",
"public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}",
"public synchronized void dispatch(Runnable runnable) {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tif (runnable != null) {\n\t\t\tqueue.push(runnable);\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}",
"public static Scheduler m34953a(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27418c;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"public abstract void submit(Callable callable);",
"void executeStraight(Runnable task);",
"@Override\n public void run() {\n mRunnable.onPreExecute();\n mExecutor.onPreExecuteCallback(mRunnable);\n }",
"protected interface DispatcherRunnable<LISTENER> {\n void run(LISTENER listener);\n }",
"public static void m18362a(Runnable runnable) {\n if (runnable == null) {\n return;\n }\n if (m18371b()) {\n f16362c.execute(runnable);\n if (Proxy.f16280c) {\n Log.e(\"TAG_PROXY_UTIL\", \"invoke in pool thread\");\n return;\n }\n return;\n }\n runnable.run();\n if (Proxy.f16280c) {\n Log.e(\"TAG_PROXY_UTIL\", \"invoke calling thread\");\n }\n }",
"public static Completable m147573a(Callable<?> callable) {\n ObjectHelper.m147684a((Object) callable, \"callable is null\");\n return RxJavaPlugins.m148466a(new CompletableFromCallable(callable));\n }",
"public interface Callable {\n void call(String name, String telNumber);\n}",
"public static Scheduler m34963c(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27421f;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"public static <T> T callInHandlerThread(Callable<T> callable, T defaultValue) {\n if (handler != null)\n return handler.callInHandlerThread(callable, defaultValue);\n return defaultValue;\n }",
"public void mo9845a() {\n ArrayList arrayList = new ArrayList();\n arrayList.add(new CallableC1816b(this, (byte) 0));\n try {\n Executors.newSingleThreadExecutor().invokeAny(arrayList);\n } catch (InterruptedException e) {\n e.printStackTrace();\n this.f4523c.onFail();\n } catch (ExecutionException e2) {\n e2.printStackTrace();\n this.f4523c.onFail();\n }\n }",
"public static Scheduler m34965d(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27419d;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }",
"@Override\n public void run() {\n System.out.println(\"Inside runnable 1\");\n }",
"public interface RunnableTask {\n ProcessResult run();\n}",
"public static Scheduler m34961b(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27420e;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"public static void run(){}",
"@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}",
"@Test\n @DisplayName(\"Plain Runnable\")\n void testRunnable() {\n Runnable task = this::printThreadName;\n\n task.run();\n\n Thread thread = new Thread(task);\n thread.start();\n\n System.out.println(\"Done!\");\n }",
"public interface Callable<V> {\n\n\tpublic void onCall(int state, V jo);\n\n}",
"public void mo81388a(Runnable runnable) {\n SupportSystemBarFragment supportSystemBarFragment = this.f58069a;\n if (supportSystemBarFragment != null && !supportSystemBarFragment.isDetached() && !this.f58069a.isRemoving()) {\n this.f58069a.runOnlyOnAdded(new BaseFragment.AbstractC16088a(runnable) {\n /* class com.zhihu.android.app.p1311ui.fragment.webview.$$Lambda$h$tYJhTCNeYoNAvUmEdika4IKE_w */\n private final /* synthetic */ Runnable f$0;\n\n {\n this.f$0 = r1;\n }\n\n @Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment.AbstractC16088a\n public final void call(BaseFragmentActivity baseFragmentActivity) {\n UrlDelegate.m81838a(this.f$0, baseFragmentActivity);\n }\n });\n }\n }",
"public interface ThrowingRunnable {\n\n void run() throws Throwable;\n }",
"static io.reactivex.Scheduler applyRequireNonNull(io.reactivex.functions.Function<java.util.concurrent.Callable<io.reactivex.Scheduler>, io.reactivex.Scheduler> r3, java.util.concurrent.Callable<io.reactivex.Scheduler> r4) {\n /*\n java.lang.Object r0 = apply(r3, r4)\n io.reactivex.Scheduler r0 = (io.reactivex.Scheduler) r0\n if (r0 != 0) goto L_0x0011\n java.lang.NullPointerException r1 = new java.lang.NullPointerException\n java.lang.String r2 = \"Scheduler Callable returned null\"\n r1.<init>(r2)\n throw r1\n L_0x0011:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.plugins.RxAndroidPlugins.applyRequireNonNull(io.reactivex.functions.Function, java.util.concurrent.Callable):io.reactivex.Scheduler\");\n }",
"@CheckForNull\n public static <T> Future<T> postCallable(Callable<T> callable) {\n if (handler != null)\n return handler.postCallable(callable);\n return null;\n }",
"public static Completable m147571a(Runnable runnable) {\n ObjectHelper.m147684a((Object) runnable, \"run is null\");\n return RxJavaPlugins.m148466a(new CompletableFromRunnable(runnable));\n }",
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"@Override\n\tpublic void run() {\n\t\trealFun();\n\t}",
"interface CallableOnResource {\n \t\tpublic void call(IResource resource);\n \t}",
"void execute(Runnable job);",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_callabletest);\n bt_Callable = (Button) findViewById(R.id.bt_Callable);\n bt_Runnable = (Button) findViewById(R.id.bt_Runnable);\n //FutureTask不展示\n// //创建线程池\n// ExecutorService es = Executors.newSingleThreadExecutor();\n// //创建Callable对象任务\n// CallableDemo calTask=new CallableDemo();\n// //创建FutureTask\n// FutureTask<Integer> futureTask=new FutureTask<>(calTask);\n// //执行任务\n// es.submit(futureTask);\n// //关闭线程池\n// es.shutdown();\n initEvents();\n }",
"@Override\npublic void run() {\n perform();\t\n}",
"private static void demoRunnable() {\n new Thread(() -> System.out.println(Thread.currentThread().getName()), \"thread-λ\").start();\n new Thread(ToLambdaP5::printThread, \"thread-method-ref\").start();\n }",
"public interface DuelCallable<T, E> {\n\n\tvoid run(T one, E two);\n\n}",
"@Override\n public void run() {\n if (gpioPort == null) {\n return;\n }\n try {\n listner.portCallback(gpioPort);\n Log.d(\"Inside runnable\", \"this is the value inside runnable\");\n\n //Schedule another event after delay.\n mHandler.postDelayed(mCallBackRunnable, CALLBACK_INTERVAL);\n } catch (IOException e) {\n Log.d(\"Inside runnable Error\", \"this is the value inside runnable\");\n }\n }",
"Object run(Callback<String> callback, String input);",
"public GeneralRunnable(Goable<ReturnType, ParameterType> goable) {\n this.goable = goable;\n this.parameter = null;\n }",
"public Object\n call() throws Exception { \n final ConstArray<?> argv;\n try {\n argv = deserialize(m,\n ConstArray.array(lambda.getGenericParameterTypes()));\n } catch (final BadSyntax e) {\n /*\n * strip out the parsing information to avoid leaking\n * information to the application layer\n */ \n throw (Exception)e.getCause();\n }\n \n // AUDIT: call to untrusted application code\n final Object r = Reflection.invoke(bubble(lambda), target,\n argv.toArray(new Object[argv.length()]));\n return Fulfilled.isInstance(r) ? ((Promise<?>)r).call() : r;\n }",
"@Override\n abstract public void run();",
"public TaskReturnType Run();",
"@Override // java.lang.Runnable\n public final void run() {\n ListenableFuture<? extends I> listenableFuture = this.h;\n F f = this.i;\n boolean z = true;\n boolean isCancelled = isCancelled() | (listenableFuture == null);\n if (f != null) {\n z = false;\n }\n if (!isCancelled && !z) {\n this.h = null;\n if (listenableFuture.isCancelled()) {\n setFuture(listenableFuture);\n return;\n }\n try {\n try {\n Object o = o(f, Futures.getDone(listenableFuture));\n this.i = null;\n p(o);\n } catch (Throwable th) {\n this.i = null;\n throw th;\n }\n } catch (CancellationException unused) {\n cancel(false);\n } catch (ExecutionException e) {\n setException(e.getCause());\n } catch (RuntimeException e2) {\n setException(e2);\n } catch (Error e3) {\n setException(e3);\n }\n }\n }",
"@Override\n public void run(){\n }",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"T call() throws EvalException, InterruptedException;",
"public static OnRun onRun( Runnable run )\n\t{\n\t\treturn new OnRun( run );\n\t}",
"@Override\r\n\tpublic int call(Runnable thread_base, String strMsg) {\n\t\treturn 0;\r\n\t}",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"@Override\r\n\tpublic abstract void run();",
"@Override\r\n\tabstract public void run();",
"public abstract void postToMainThread(@NonNull Runnable runnable);",
"public void run()\r\n/* 996: */ {\r\n/* 997:838 */ if (DefaultPromise.this.listeners == null) {\r\n/* 998: */ for (;;)\r\n/* 999: */ {\r\n/* :00:840 */ GenericFutureListener<?> l = (GenericFutureListener)poll();\r\n/* :01:841 */ if (l == null) {\r\n/* :02: */ break;\r\n/* :03: */ }\r\n/* :04:844 */ DefaultPromise.notifyListener0(DefaultPromise.this, l);\r\n/* :05: */ }\r\n/* :06: */ }\r\n/* :07:849 */ DefaultPromise.execute(DefaultPromise.this.executor(), this);\r\n/* :08: */ }",
"private static void runLater(Runnable runnable) {\n Display display = Display.findDisplay(Thread.currentThread());\n if (display != null) {\n display.asyncExec(runnable);\n } else {\n AdtPlugin.log(IStatus.WARNING, \"Could not find display\");\n }\n }",
"@Override\r\n public void run() {}",
"public final V runInterruptibly() {\n return this.callable.call();\n }"
] | [
"0.7070785",
"0.70059085",
"0.6809675",
"0.67238235",
"0.6538563",
"0.6503219",
"0.65012515",
"0.64705545",
"0.64041764",
"0.63689846",
"0.6313162",
"0.6295832",
"0.6246946",
"0.62102467",
"0.6203924",
"0.61727667",
"0.6161099",
"0.61353534",
"0.60975605",
"0.6094242",
"0.6078578",
"0.6071501",
"0.6058856",
"0.6054983",
"0.6030917",
"0.60058665",
"0.5985583",
"0.59301335",
"0.59098446",
"0.58998555",
"0.5867033",
"0.5861631",
"0.58520424",
"0.5809103",
"0.58005714",
"0.5789251",
"0.5782997",
"0.57829463",
"0.5782207",
"0.57711774",
"0.5740261",
"0.57360923",
"0.57269377",
"0.5723765",
"0.5718986",
"0.5718888",
"0.57045376",
"0.57030463",
"0.57029516",
"0.5685852",
"0.56812984",
"0.5680851",
"0.5659779",
"0.56402254",
"0.5638314",
"0.5637171",
"0.56306714",
"0.5628893",
"0.56237227",
"0.5619471",
"0.5608907",
"0.5603083",
"0.5567172",
"0.5563601",
"0.5554921",
"0.5546658",
"0.5545617",
"0.5535254",
"0.55248183",
"0.55154765",
"0.5512123",
"0.5511841",
"0.5489128",
"0.5486944",
"0.54658186",
"0.5462577",
"0.5454433",
"0.5446703",
"0.54272443",
"0.54245603",
"0.5417095",
"0.5409549",
"0.5398374",
"0.53979",
"0.53932077",
"0.53932077",
"0.53932077",
"0.53932077",
"0.53932077",
"0.5392158",
"0.53921",
"0.53875536",
"0.5386853",
"0.5384404",
"0.5383104",
"0.5378824",
"0.5378357",
"0.53674716",
"0.5349098",
"0.53463346"
] | 0.73871166 | 0 |
callable(Runnable, result) returns result when called | public void testCallable2() throws Exception {
Callable c = Executors.callable(new NoOpRunnable(), one);
assertSame(one, c.call());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Future<T> then(Runnable result);",
"Runnable mk();",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"Object run(Callback<String> callback, String input);",
"void execute(Runnable job);",
"@FunctionalInterface\n public interface CheckedRunnable {\n void run() throws Exception;\n }",
"public interface Callable<V> {\n\n\tpublic void onCall(int state, V jo);\n\n}",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"public interface Callback {\n public void run(Object result, Exception err, Object rock);\n }",
"void executeStraight(Runnable task);",
"Callable<E> getTask();",
"public interface Callable {\n void call(String name, String telNumber);\n}",
"public interface RunnableTask {\n ProcessResult run();\n}",
"@Override\r\n\tvoid execute(Runnable task);",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public interface DuelCallable<T, E> {\n\n\tvoid run(T one, E two);\n\n}",
"public TaskReturnType Run();",
"Result invoke(Invoker<?> invoker, Invocation invocation);",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"void onResult(T result);",
"void onResult(T result);",
"interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }",
"void onResult(int ret);",
"T call() throws EvalException, InterruptedException;",
"public interface TaskCaller extends Callable<Bitmap> {\n\n void onFinish();\n void onError();\n\n}",
"interface DebugCallable<T> {\n\n /**\n * The invocation that will be tracked.\n *\n * @return the result\n */\n T call() throws EvalException, InterruptedException;\n }",
"public interface C12049l<T> extends Callable<T> {\n T call();\n}",
"public abstract void submit(Callable callable);",
"@Override\n protected void run(Result result) throws Throwable {\n }",
"public interface Func<T, R> {\n R call(T t);\n}",
"public abstract void submit(Runnable runnable);",
"@FunctionalInterface\npublic interface FailableRunnable {\n\n /**\n * Executes a side-effectful computation.\n *\n * @throws Exception\n * if it fails\n */\n public void run() throws Exception;\n}",
"private Object getTask(Runnable runnable)\r\n {\r\n Object innerTask = \r\n ObservableExecutors.getInnerTask(runnable, Object.class);\r\n if (innerTask != null)\r\n {\r\n return innerTask;\r\n }\r\n return runnable;\r\n }",
"public interface CallbackTask<R>\n{\n\n R execute() throws Exception;\n\n void onBack(R r);\n\n void onException(Throwable t);\n}",
"public abstract void executeOnNetwork(@NonNull Runnable runnable);",
"interface CallableOnResource {\n \t\tpublic void call(IResource resource);\n \t}",
"void onTaskFinished(A finishedTask, R result);",
"FragmentExecutor getRunnable();",
"public Object\n call() throws Exception { \n final ConstArray<?> argv;\n try {\n argv = deserialize(m,\n ConstArray.array(lambda.getGenericParameterTypes()));\n } catch (final BadSyntax e) {\n /*\n * strip out the parsing information to avoid leaking\n * information to the application layer\n */ \n throw (Exception)e.getCause();\n }\n \n // AUDIT: call to untrusted application code\n final Object r = Reflection.invoke(bubble(lambda), target,\n argv.toArray(new Object[argv.length()]));\n return Fulfilled.isInstance(r) ? ((Promise<?>)r).call() : r;\n }",
"public Object runAndGetResult() {\n run();\n return getResult();\n }",
"private void m76769g() {\n C1592h.m7855a((Callable<TResult>) new C23441a<TResult>(this), C1592h.f5958b);\n }",
"public interface CallBackListener {\n void onResult(boolean isSuccess, Object result);\n}",
"<T> T runWithContext(Callable<T> callable, Locale locale) throws Exception;",
"public interface ResultProcessor {\n void handleResults(Run results);\n}",
"@Override\npublic void run() {\n perform();\t\n}",
"@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute();",
"public static OnRun onRun( Runnable run )\n\t{\n\t\treturn new OnRun( run );\n\t}",
"public interface ThrowingRunnable {\n\n void run() throws Throwable;\n }",
"public <T> T execute(final Callable<T> callable) throws Exception {\n int attempts = 0;\n int maxAttempts = retryPolicy.getMaxAttempts();\n long delay = retryPolicy.getDelay();\n TimeUnit timeUnit = retryPolicy.getTimeUnit();\n while(attempts < maxAttempts) {\n try {\n attempts++;\n beforeCall();\n T result = callable.call();\n afterCall(result);\n return result;\n } catch (Exception e) {\n onException(e);\n if (attempts >= maxAttempts) {\n onMaxAttempts(e);\n throw e;\n }\n beforeWait();\n sleep(timeUnit.toMillis(delay));\n afterWait();\n }\n }\n return null;\n }",
"public void evaluate(Handler<AsyncResult<Double>> resultHandler) { \n delegate.evaluate(resultHandler);\n }",
"public abstract void mo30313a(C41366e c41366e, Runnable runnable);",
"@Override\n protected void invokeTestRunnable(final Runnable runnable) throws Exception {\n System.out.println(\"Invoke: \" + runnable);\n runnable.run();\n }",
"protected interface DispatcherRunnable<LISTENER> {\n void run(LISTENER listener);\n }",
"@Override\n public void run()\n {\n result[0] = true;\n }",
"protected interface InvocationCallback {\n\n\t\tObject proceedWithInvocation() throws Throwable;\n\t}",
"public static <T> T callInHandlerThread(Callable<T> callable, T defaultValue) {\n if (handler != null)\n return handler.callInHandlerThread(callable, defaultValue);\n return defaultValue;\n }",
"public interface ExecutorListener {\n\n void invokeMethod(int id, ExecutorObject object, ExecuteRunType type, User user, String uniqueMethodId, Method method);\n\n}",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public interface OnStart extends FuncUnit0 {\n \n public static final OnStart DoNothing = ()->{};\n \n public static OnStart run(FuncUnit0 runnable) {\n if (runnable == null)\n return null;\n \n return runnable::run;\n }\n \n}",
"public static <TResult> C2177n<TResult> m11234a(Callable<TResult> callable, Executor executor, C2170h hVar) {\n C2196o oVar = new C2196o();\n try {\n executor.execute(new C2188j(hVar, oVar, callable));\n } catch (Exception e) {\n oVar.mo9339a((Exception) new ExecutorException(e));\n }\n return oVar.mo9338a();\n }",
"public interface CallBack {\n\tpublic void solve(String result);\n}",
"@Override\r\n\tpublic void runFunc() {\n\r\n\t}",
"protected abstract boolean invokable(Resource r);",
"public interface RunnableFactory {\n\n\t/**\n\t * Yields a new instance of the runnable.\n\t */\n\n Runnable mk();\n}",
"public void run(TestResult result) {\n result.run(this);\n }",
"@Override\r\n\tabstract public void run();",
"@Override\r\n\tpublic abstract void run();",
"public static void run(){}",
"public Runnable _0parameterNoReturn() {\n\t\treturn () -> System.out.println(\"\"); // we have to use brackets for no parameter\n\t\t\t\t// OR\n\t\t// return () -> { System.out.println(\"\"); };\n\t}",
"<T> T runWithContext(String applicationName, Callable<T> callable) throws Exception;",
"public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;",
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public abstract void execute(Task t);",
"private Callback<Boolean> wrapCallback(final TaskFinishedCallback callback) {\n return new Callback<Boolean>() {\n @Override\n public void onResult(Boolean result) {\n callback.taskFinished(result);\n }\n };\n }",
"@Override\n abstract public void run();",
"protected Object runOnGLThread(ResultRunnable task) {\n assertActivityNotNull();\n return mActivity.runOnGLThread(task);\n }",
"void execute(Handler handler, Callback callback);",
"@Test\n @DisplayName(\"Future with result\")\n void testFutureWithResult() throws ExecutionException, InterruptedException {\n final ExecutorService executor = Executors.newSingleThreadExecutor();\n final Future<String> future = executor.submit(this::getThreadName);\n\n // check if the future has already been finished. this isn't the case since the above callable sleeps for one second before returning the integer\n assertFalse(future.isDone());\n // calling the method get() blocks the current thread and waits until the callable completes before returning the actual result\n final String result = future.get();\n // now the future is finally done\n assertTrue(future.isDone());\n\n assertThat(result).matches(Pattern.compile(\"Thread \\\"pool-\\\\d-thread-\\\\d\\\"\"));\n }",
"public interface ResultPointCallback {\n void foundPossibleResultPoint(ResultPoint resultPoint);\n}",
"void execute(final Callback callback);",
"public interface IHttpThreadExecutor {\n public void addTask(Runnable runnable);\n}",
"public abstract Value<T> run() throws Exception;",
"@Test\n @DisplayName(\"Invoke Any\")\n void invokeAny() throws ExecutionException, InterruptedException {\n ExecutorService executor = Executors.newWorkStealingPool();\n\n List<Callable<String>> callables = Arrays.asList(\n callable(\"task1\", 2),\n callable(\"task2\", 1),\n callable(\"task3\", 3));\n\n String result = executor.invokeAny(callables);\n assertEquals(\"task2\", result);\n }",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"protected final boolean exec() {\n/* 94 */ this.result = compute();\n/* 95 */ return true;\n/* */ }",
"public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}",
"<T> void run(T data);",
"public int run() throws Exception;",
"public interface Result {\n public void onResult(Object object, String function, boolean IsSuccess, int RequestStatus, String MessageStatus);\n\n\n\n}"
] | [
"0.6552237",
"0.6492369",
"0.6362058",
"0.6250251",
"0.6224039",
"0.6203406",
"0.6196926",
"0.6196605",
"0.6195888",
"0.61867887",
"0.6174493",
"0.6168873",
"0.6133942",
"0.61311",
"0.6121629",
"0.61048037",
"0.60969067",
"0.6085438",
"0.6039964",
"0.60384107",
"0.6035887",
"0.6035722",
"0.6012688",
"0.6012688",
"0.59919447",
"0.59917206",
"0.59611726",
"0.59212416",
"0.5912543",
"0.589292",
"0.589238",
"0.58519495",
"0.58189225",
"0.5805519",
"0.57990396",
"0.5757715",
"0.5747183",
"0.5728577",
"0.57268506",
"0.569806",
"0.5684788",
"0.56471336",
"0.564085",
"0.56072986",
"0.5603985",
"0.560398",
"0.55976236",
"0.55863976",
"0.55806625",
"0.557467",
"0.557467",
"0.557467",
"0.557467",
"0.5572098",
"0.5562817",
"0.5542807",
"0.5538542",
"0.5523045",
"0.552255",
"0.55162704",
"0.5507223",
"0.55026597",
"0.54860634",
"0.54789084",
"0.5452777",
"0.5452777",
"0.5452777",
"0.5452777",
"0.5452777",
"0.54476374",
"0.543403",
"0.54323703",
"0.54311496",
"0.5430212",
"0.541941",
"0.5412282",
"0.5408898",
"0.5380869",
"0.53800815",
"0.5378801",
"0.5370552",
"0.5366857",
"0.53647226",
"0.5356186",
"0.53533894",
"0.53434616",
"0.5335807",
"0.53355443",
"0.5334878",
"0.5333564",
"0.53317827",
"0.5325301",
"0.5324958",
"0.5310297",
"0.530962",
"0.5303747",
"0.5303591",
"0.52967113",
"0.5293614",
"0.5289928"
] | 0.63028586 | 3 |
callable(PrivilegedAction) returns its result when called | public void testCallable3() throws Exception {
Callable c = Executors.callable(new PrivilegedAction() {
public Object run() { return one; }});
assertSame(one, c.call());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }",
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"protected abstract boolean invokable(Resource r);",
"public void performAction();",
"public void doAction(){}",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}",
"@Nullable\n @Generated\n @Selector(\"action\")\n public native SEL action();",
"boolean isCallableAccess();",
"abstract protected String performAction(String input);",
"@Override\n\tprotected void compute() {\n\t\tSystem.out.println(\"This is an action\");\n\t}",
"public Object run() throws Exception {\n System.out.println(\"Performing secure action ...\");\n return null;\n }",
"public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\n }",
"public abstract String intercept(ActionInvocation invocation) throws Exception;",
"private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }",
"abstract public void performAction();",
"public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }",
"@Override\n\tpublic void invoke(String origin, boolean allow, boolean remember) {\n\t\t\n\t}",
"@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void action() {\n }",
"public interface ShellAction {\n\n /** The name is a shell action's unique identifier. Any action is called by it's name.\n * \n * @return String representation of the name. */\n String getName();\n\n /** Can be invoked.\n * \n * @return True if it can be invoked. */\n boolean isInvokable();\n\n /** Executes the ShellAction using the given session object and parameters.\n * \n * @param resolver\n * @param context\n * @param parameters\n * @return Result of execution. */\n ActionResponse execute(final ResourceResolver resolver, final ExecutionContext context, final Parameter... parameters) throws RepositoryException;\n\n /** Executes the ShellAction using the given session object and parameters.\n * \n * @param resolver\n * @param context\n * @param parameters\n * @return Result of execution. */\n ActionResponse execute(final ResourceResolver resolver, final ExecutionContext context, final List<Parameter> parameters) throws RepositoryException;\n\n /** Verifies if it is possible to run the action with the given set of parameters.\n * \n * @param parameters\n * @return */\n boolean isValid(final Parameter... parameters);\n\n List<Parameter> getParameterInformation();\n}",
"private String performTheAction(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tString servletPath = request.getServletPath();\r\n\t\tString action = getActionName(servletPath);\r\n\t\t// Let the logged in user run his chosen action\r\n\t\treturn Action.perform(action, request);\r\n\t}",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"Object executeMethodCall(String actionName, String inMainParamValue) throws APIException;",
"public void processAction(CIDAction action);",
"public void action() {\n action.action();\n }",
"public void act();",
"int executeSafely();",
"public synchronized void applyAction(int action) {\n\n }",
"public abstract void doInvoke(InvocationContext ic) throws Exception;",
"@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }",
"public void a_Action(){}",
"protected void execute(ActionInvocation<LocalService> actionInvocation, Object serviceImpl) throws Exception {\n/* 67 */ Object result, inputArgumentValues[] = createInputArgumentValues(actionInvocation, this.method);\n/* */ \n/* */ \n/* 70 */ if (!actionInvocation.getAction().hasOutputArguments()) {\n/* 71 */ log.fine(\"Calling local service method with no output arguments: \" + this.method);\n/* 72 */ Reflections.invoke(this.method, serviceImpl, inputArgumentValues);\n/* */ \n/* */ return;\n/* */ } \n/* 76 */ boolean isVoid = this.method.getReturnType().equals(void.class);\n/* */ \n/* 78 */ log.fine(\"Calling local service method with output arguments: \" + this.method);\n/* */ \n/* 80 */ boolean isArrayResultProcessed = true;\n/* 81 */ if (isVoid) {\n/* */ \n/* 83 */ log.fine(\"Action method is void, calling declared accessors(s) on service instance to retrieve ouput argument(s)\");\n/* 84 */ Reflections.invoke(this.method, serviceImpl, inputArgumentValues);\n/* 85 */ result = readOutputArgumentValues(actionInvocation.getAction(), serviceImpl);\n/* */ }\n/* 87 */ else if (isUseOutputArgumentAccessors(actionInvocation)) {\n/* */ \n/* 89 */ log.fine(\"Action method is not void, calling declared accessor(s) on returned instance to retrieve ouput argument(s)\");\n/* 90 */ Object returnedInstance = Reflections.invoke(this.method, serviceImpl, inputArgumentValues);\n/* 91 */ result = readOutputArgumentValues(actionInvocation.getAction(), returnedInstance);\n/* */ }\n/* */ else {\n/* */ \n/* 95 */ log.fine(\"Action method is not void, using returned value as (single) output argument\");\n/* 96 */ result = Reflections.invoke(this.method, serviceImpl, inputArgumentValues);\n/* 97 */ isArrayResultProcessed = false;\n/* */ } \n/* */ \n/* 100 */ ActionArgument[] arrayOfActionArgument = actionInvocation.getAction().getOutputArguments();\n/* */ \n/* 102 */ if (isArrayResultProcessed && result instanceof Object[]) {\n/* 103 */ Object[] results = (Object[])result;\n/* 104 */ log.fine(\"Accessors returned Object[], setting output argument values: \" + results.length);\n/* 105 */ for (int i = 0; i < arrayOfActionArgument.length; i++) {\n/* 106 */ setOutputArgumentValue(actionInvocation, arrayOfActionArgument[i], results[i]);\n/* */ }\n/* 108 */ } else if (arrayOfActionArgument.length == 1) {\n/* 109 */ setOutputArgumentValue(actionInvocation, arrayOfActionArgument[0], result);\n/* */ } else {\n/* 111 */ throw new ActionException(ErrorCode.ACTION_FAILED, \"Method return does not match required number of output arguments: \" + arrayOfActionArgument.length);\n/* */ } \n/* */ }",
"Result invoke(Invoker<?> invoker, Invocation invocation);",
"public void executeAction( String actionInfo );",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"public interface Actionable {\n void executeAction(Action action);\n}",
"void call();",
"public void performAbility() { return; }",
"@Override\n\tpublic void action() {\n\n\t}",
"public boolean performAction(int action) {\n/* 567 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"public boolean performAction(int action, Bundle arguments) {\n/* 583 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void actionSuccessful() {\n System.out.println(\"Action performed successfully!\");\n }",
"InvocationResult invoke(RemoteService service, MethodInvocation invocation);",
"public interface RuntimePermissionRequester {\n /**\n * Asks user for specific permissions needed to proceed\n *\n * @param requestCode Request permission using this code, allowing for\n * callback distinguishing\n */\n void requestNeededPermissions(int requestCode);\n}",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\r\n protected void doActionDelegate(int actionId)\r\n {\n \r\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"interface DebugCallable<T> {\n\n /**\n * The invocation that will be tracked.\n *\n * @return the result\n */\n T call() throws EvalException, InterruptedException;\n }",
"public PDAction getPC() {\n/* 278 */ COSDictionary pc = (COSDictionary)this.actions.getDictionaryObject(\"PC\");\n/* 279 */ PDAction retval = null;\n/* 280 */ if (pc != null)\n/* */ {\n/* 282 */ retval = PDActionFactory.createAction(pc);\n/* */ }\n/* 284 */ return retval;\n/* */ }",
"static void loginAndAction(String name, PrivilegedExceptionAction<Object> action)\n throws LoginException, PrivilegedActionException {\n CallbackHandler callbackHandler = new TextCallbackHandler();\n\n LoginContext context = null;\n\n try {\n // Create a LoginContext with a callback handler\n context = new LoginContext(name, callbackHandler);\n\n // Perform authentication\n context.login();\n } catch (LoginException e) {\n System.err.println(\"Login failed\");\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Perform action as authenticated user\n Subject subject = context.getSubject();\n if (verbose) {\n System.out.println(subject.toString());\n for (Object cred : subject.getPrivateCredentials()) {\n System.out.println(cred);\n }\n } else {\n System.out.println(\"Authenticated principal: \" +\n subject.getPrincipals());\n }\n\n Subject.doAs(subject, action);\n\n context.logout();\n }",
"public abstract void submit(Callable callable);",
"void act();",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"interface CallableOnResource {\n \t\tpublic void call(IResource resource);\n \t}",
"protected abstract void runPrivate();",
"@Override\n\tpublic void authorize(String resourceName, String action, String rpcName)\n\t\t\tthrows Exception {\n\t}",
"<T> T execute(ZabbixCallback<T> action);",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"public interface Action {\n String execute(HttpServletRequest request);\n}",
"protected final boolean exec() {\n/* 94 */ this.result = compute();\n/* 95 */ return true;\n/* */ }",
"public interface IMazePathFinder extends Callable<OutputBundle> {\n\n}",
"@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}",
"public java_cup.runtime.Symbol do_action(\n int act_num,\n java_cup.runtime.lr_parser parser,\n java.util.Stack stack,\n int top)\n throws java.lang.Exception\n {\n /* call code in generated class */\n return action_obj.CUP$PCLParser$do_action(act_num, parser, stack, top);\n }",
"public void act() {\n\t}",
"static void perform_cp(String passed){\n\t\tint type = type_of_cp(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_when_sign_not(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"public Object execute(OcmAction<T> action) throws DataAccessException;",
"void permissionGranted(int requestCode);",
"protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;",
"protected abstract void actionExecuted(SUT system, State state, Action action);",
"static void myMethod()\n {\n System.out.println(\"excuted the method\");\n }",
"public void Execute() {\n\n }",
"@Override\r\n\tprotected String doIntercept(ActionInvocation invoker) throws Exception {\n\t\tSystem.out.println(\"ssssssssssss\");\r\n\t\t\r\n\t\treturn invoker.invoke();\r\n\t}",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"protected boolean applyImpl() throws Exception\n {\n MBeanServer mbeanServer = (MBeanServer) getCorrectiveActionContext()\n .getContextObject(CorrectiveActionContextConstants.Agent_MBeanServer);\n ObjectName objectName = (ObjectName) getCorrectiveActionContext()\n .getContextObject(CorrectiveActionContextConstants.MBean_ObjectName);\n\n Object result = mbeanServer.invoke(objectName, m_methodName, m_parameters, m_signature);\n\n return matchesDesiredResult(result);\n }",
"public abstract Object invoke(T target , Method method , Object[] args) throws Throwable;",
"@Override\n\tpublic void execute() {\n\t\tsecurity.on();\n\t}",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;"
] | [
"0.7504853",
"0.6777008",
"0.67071956",
"0.66236275",
"0.64764845",
"0.6397623",
"0.6211069",
"0.6179428",
"0.6061542",
"0.60179895",
"0.5791245",
"0.57536125",
"0.57442755",
"0.5740595",
"0.5678638",
"0.5677931",
"0.5657482",
"0.5636387",
"0.56247616",
"0.56221443",
"0.56094",
"0.55914265",
"0.55586725",
"0.55573344",
"0.55559295",
"0.5542282",
"0.55258477",
"0.5510109",
"0.548719",
"0.54539514",
"0.5451612",
"0.54338086",
"0.5424334",
"0.5421507",
"0.5389586",
"0.536191",
"0.5361042",
"0.5352008",
"0.5349433",
"0.5339875",
"0.5315854",
"0.53143626",
"0.53143626",
"0.53143626",
"0.53143626",
"0.5306921",
"0.52917117",
"0.52898663",
"0.52837557",
"0.5268553",
"0.52607876",
"0.52564955",
"0.5255333",
"0.5238901",
"0.5233198",
"0.522806",
"0.52224237",
"0.5216332",
"0.5214817",
"0.5214817",
"0.5214817",
"0.5205698",
"0.52046835",
"0.51981616",
"0.5189469",
"0.5185526",
"0.51836956",
"0.5178812",
"0.5175637",
"0.5172809",
"0.5172217",
"0.515908",
"0.5150139",
"0.51471037",
"0.51385564",
"0.5138353",
"0.5135775",
"0.51311886",
"0.51182014",
"0.51170236",
"0.5116558",
"0.51071095",
"0.5095607",
"0.50856775",
"0.5082173",
"0.50821024",
"0.50818795",
"0.50726914",
"0.5054784",
"0.50516737",
"0.5051427",
"0.5047063",
"0.5047063",
"0.5047063",
"0.5047063",
"0.5047063",
"0.5047063",
"0.5047063",
"0.50428575",
"0.5035865"
] | 0.6741553 | 2 |
callable(PrivilegedExceptionAction) returns its result when called | public void testCallable4() throws Exception {
Callable c = Executors.callable(new PrivilegedExceptionAction() {
public Object run() { return one; }});
assertSame(one, c.call());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public Object run() throws Exception {\n System.out.println(\"Performing secure action ...\");\n return null;\n }",
"public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"int executeSafely();",
"public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\n }",
"@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}",
"public interface RoutineException {}",
"Object proceed() throws Throwable;",
"public int run() throws Exception;",
"protected abstract boolean invokable(Resource r);",
"public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"V call() throws StatusRuntimeException;",
"public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public boolean performAction(int action) {\n/* 567 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Object proceed() throws Throwable;",
"protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;",
"public static String _takeselfie_click() throws Exception{\nreturn \"\";\n}",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;",
"public SpawnException getCaught();",
"public abstract void doInvoke(InvocationContext ic) throws Exception;",
"public boolean performAction(int action, Bundle arguments) {\n/* 583 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"int getReturnCode();",
"int getReturnCode();",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"public Object proceed(Object[] args) throws Throwable;",
"private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }",
"void apply() throws Exception;",
"public Object call() throws Exception{\n return null;\n }",
"public static String _imgpupas_click() throws Exception{\nreturn \"\";\n}",
"public void execute()\n/* */ throws Pausable, Exception\n/* */ {\n/* 378 */ errNotWoven(this);\n/* */ }",
"public static String _imghuevos_click() throws Exception{\nreturn \"\";\n}",
"String process_key () throws BaseException;",
"@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;",
"protected abstract void executeActionsIfError();",
"@Override\r\n\tpublic void execTheAction(Struct actionInput) throws Exception {\n \t n = Integer.parseInt( actionInput.getArg(0).toString() );\r\n \t myresult = fibonacci( n );\r\n// throw new Exception(\"simulateFault\");\t\t//(1)\r\n }",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"void mo57276a(Exception exc);",
"public Object\n call() throws Exception { \n final ConstArray<?> argv;\n try {\n argv = deserialize(m,\n ConstArray.array(lambda.getGenericParameterTypes()));\n } catch (final BadSyntax e) {\n /*\n * strip out the parsing information to avoid leaking\n * information to the application layer\n */ \n throw (Exception)e.getCause();\n }\n \n // AUDIT: call to untrusted application code\n final Object r = Reflection.invoke(bubble(lambda), target,\n argv.toArray(new Object[argv.length()]));\n return Fulfilled.isInstance(r) ? ((Promise<?>)r).call() : r;\n }",
"void entry() throws Exception;",
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"V result() throws Exception;",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}",
"public Object perform(MethodActionEvent event)\n throws Throwable;",
"public interface IAction {\n public boolean runAction() throws IOException, BrokenBarrierException, InterruptedException;\n}",
"public void excavate();",
"Object executeMethod(Object pObject, Method pMethod,Object[] pArgs) {\r\n\t\tObject result = null ;\r\n\t\ttry {\r\n\t\t\tresult = pMethod.invoke(pObject,pArgs) ;\r\n\t\t} catch (Exception e) {\r\n\t\t\tString message ;\r\n\t\t\tmessage = \"Error Capturing \" + getCallingClassSignature() ;\r\n\t\t\t_supervisor.echo(message) ;\r\n\t\t\tthrow new ExecutionException(message) ;\r\n\t\t}\r\n\t\treturn result ;\r\n\t}",
"public interface Performer {\n void perform() throws PerformerException;\n}",
"public void doAction(){}",
"@FunctionalInterface\r\npublic interface ThrowingInvokeHandler<X extends Throwable> extends InvokeHandler\r\n{\r\n @Override\r\n @SneakyThrows\r\n default org.omg.CORBA.portable.OutputStream _invoke(java.lang.String method,\r\n org.omg.CORBA.portable.InputStream input, org.omg.CORBA.portable.ResponseHandler handler)\r\n {\r\n return try_invoke(method, input, handler);\r\n }\r\n\r\n /**\r\n * Invoked by the ORB to dispatch a request to the servant.\r\n *\r\n * ORB passes the method name, an InputStream containing the marshalled\r\n * arguments, and a ResponseHandler which the servant uses to construct a proper\r\n * reply.\r\n *\r\n * Only CORBA SystemException may be thrown by this method.\r\n *\r\n * The method must return an OutputStream created by the ResponseHandler which\r\n * contains the marshalled reply.\r\n *\r\n * A servant must not retain a reference to the ResponseHandler beyond the\r\n * lifetime of a method invocation.\r\n *\r\n * Servant behaviour is defined as follows:\r\n * <p>\r\n * 1. Determine correct method, and unmarshal parameters from InputStream.\r\n * <p>\r\n * 2. Invoke method implementation.\r\n * <p>\r\n * 3. If no user exception, create a normal reply using ResponseHandler.\r\n * <p>\r\n * 4. If user exception occurred, create exception reply using ResponseHandler.\r\n * <p>\r\n * 5. Marshal reply into OutputStream returned by ResponseHandler.\r\n * <p>\r\n * 6. Return OutputStream to ORB.\r\n * <p>\r\n * \r\n * @param method The method name.\r\n * @param input The <code>InputStream</code> containing the marshalled\r\n * arguments.\r\n * @param handler The <code>ResponseHandler</code> which the servant uses to\r\n * construct a proper reply\r\n * @return The <code>OutputStream</code> created by the ResponseHandler which\r\n * contains the marshalled reply\r\n * @throws SystemException is thrown when invocation fails due to a CORBA system\r\n * exception.\r\n *\r\n * @throws X any exception that may be thrown.\r\n */\r\n org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;\r\n}",
"public abstract String intercept(ActionInvocation invocation) throws Exception;",
"public interface ExceptionHelper {\n default void runConvertingToRuntime(RunnableThatThrows runnable) {\n try {\n runnable.run();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n default <T> List<T> runConvertingToRuntime(CallableThatThrows<List<T>> runnable) {\n try {\n return runnable.apply();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n}",
"public java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: javax.crypto.JarVerifier.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: javax.crypto.JarVerifier.1.run():java.lang.Object\");\n }",
"@Override\n\tpublic String call() throws Exception {\n\t\treturn \"hello\";\n\t}",
"@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public abstract void run() throws Exception;",
"void execute() throws Exception;",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}",
"protected void execute(ActionInvocation<LocalService> actionInvocation, Object serviceImpl) throws Exception {\n/* 67 */ Object result, inputArgumentValues[] = createInputArgumentValues(actionInvocation, this.method);\n/* */ \n/* */ \n/* 70 */ if (!actionInvocation.getAction().hasOutputArguments()) {\n/* 71 */ log.fine(\"Calling local service method with no output arguments: \" + this.method);\n/* 72 */ Reflections.invoke(this.method, serviceImpl, inputArgumentValues);\n/* */ \n/* */ return;\n/* */ } \n/* 76 */ boolean isVoid = this.method.getReturnType().equals(void.class);\n/* */ \n/* 78 */ log.fine(\"Calling local service method with output arguments: \" + this.method);\n/* */ \n/* 80 */ boolean isArrayResultProcessed = true;\n/* 81 */ if (isVoid) {\n/* */ \n/* 83 */ log.fine(\"Action method is void, calling declared accessors(s) on service instance to retrieve ouput argument(s)\");\n/* 84 */ Reflections.invoke(this.method, serviceImpl, inputArgumentValues);\n/* 85 */ result = readOutputArgumentValues(actionInvocation.getAction(), serviceImpl);\n/* */ }\n/* 87 */ else if (isUseOutputArgumentAccessors(actionInvocation)) {\n/* */ \n/* 89 */ log.fine(\"Action method is not void, calling declared accessor(s) on returned instance to retrieve ouput argument(s)\");\n/* 90 */ Object returnedInstance = Reflections.invoke(this.method, serviceImpl, inputArgumentValues);\n/* 91 */ result = readOutputArgumentValues(actionInvocation.getAction(), returnedInstance);\n/* */ }\n/* */ else {\n/* */ \n/* 95 */ log.fine(\"Action method is not void, using returned value as (single) output argument\");\n/* 96 */ result = Reflections.invoke(this.method, serviceImpl, inputArgumentValues);\n/* 97 */ isArrayResultProcessed = false;\n/* */ } \n/* */ \n/* 100 */ ActionArgument[] arrayOfActionArgument = actionInvocation.getAction().getOutputArguments();\n/* */ \n/* 102 */ if (isArrayResultProcessed && result instanceof Object[]) {\n/* 103 */ Object[] results = (Object[])result;\n/* 104 */ log.fine(\"Accessors returned Object[], setting output argument values: \" + results.length);\n/* 105 */ for (int i = 0; i < arrayOfActionArgument.length; i++) {\n/* 106 */ setOutputArgumentValue(actionInvocation, arrayOfActionArgument[i], results[i]);\n/* */ }\n/* 108 */ } else if (arrayOfActionArgument.length == 1) {\n/* 109 */ setOutputArgumentValue(actionInvocation, arrayOfActionArgument[0], result);\n/* */ } else {\n/* 111 */ throw new ActionException(ErrorCode.ACTION_FAILED, \"Method return does not match required number of output arguments: \" + arrayOfActionArgument.length);\n/* */ } \n/* */ }",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;",
"public <T> T runWithKeyChecksIgnored(Callable<T> call) throws Exception;",
"public void performAction();",
"@Override\n\t\t\tpublic Integer call() throws Exception {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"void dispatchException(Throwable exception);",
"int mo746p() throws RemoteException;",
"public final V runInterruptibly() {\n return this.callable.call();\n }",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"int getResultCode();",
"@Override\n public CommandResult execute(CommandInvocation commandInvocation) throws CommandException, InterruptedException {\n\n log.error(\"Not implemented yet!\");\n return CommandResult.FAILURE;\n }",
"@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}",
"public abstract String initExecute() throws Exception;",
"@Override\r\n\tpublic void doException() {\n\r\n\t}",
"void mo13025a() throws RemoteException;",
"public Object invoke(String name, Object... args) throws Exception;",
"@Override\n\tpublic int run(String[] arg0) throws Exception {\n\t\treturn 0;\n\t}",
"abstract void run() throws Exception;",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"public FaultException raise(Throwable e, Object argument);",
"public void doTheFaultyThing();",
"public static void main(String[] args) {\ntry\n{\n\tnew exceptiontest().a(); \n} \ncatch (Exception e)\n{\n\te.printStackTrace();\n}\n}",
"boolean isCallableAccess();",
"int getErrcode();",
"void exec(Env e, AST[] args) { throw H2O.unimpl(\"No exec method for `\" + this.opStr() + \"` during `apply` call\"); }",
"protected WebServiceException convertHttpInvokerAccessException(Throwable ex,MethodInvocation methodInvocation) {\n\t\tif (ex instanceof ConnectException) {\n\t\t\tthrow new WebServiceException(\n\t\t\t\t\tex.getClass().getSimpleName(),\"Could not connect to HTTP invoker remote service at [\" + getServiceUrl() + \"]\",getServiceUrl(),methodInvocation.getMethod().getName(), ex);\n\t\t}\n\t\telse if (ex instanceof ClassNotFoundException || ex instanceof NoClassDefFoundError ||\n\t\t\t\tex instanceof InvalidClassException) {\n\t\t\tthrow new WebServiceException(\n\t\t\t\t\tex.getClass().getSimpleName(),\"Could not deserialize result from HTTP invoker remote service [\" + getServiceUrl() + \"]\",getServiceUrl(),methodInvocation.getMethod().getName(), ex);\n\t\t}\n\t\telse {\n\t\t\tthrow new WebServiceException(\n\t\t\t\t\tex.getClass().getSimpleName(),\"Could not access HTTP invoker remote service at [\" + getServiceUrl() + \"]\",getServiceUrl(),methodInvocation.getMethod().getName(), ex);\n\t\t}\n\t}"
] | [
"0.6623623",
"0.6461645",
"0.6346132",
"0.6318822",
"0.6318045",
"0.60697055",
"0.6016233",
"0.58558077",
"0.5783429",
"0.5775197",
"0.5684378",
"0.5661384",
"0.56568354",
"0.56145525",
"0.5614416",
"0.5594472",
"0.55861527",
"0.5575987",
"0.5565154",
"0.55100495",
"0.55017215",
"0.55006003",
"0.54597396",
"0.53817475",
"0.5364828",
"0.5318543",
"0.5310204",
"0.5310204",
"0.53086907",
"0.53086907",
"0.5305972",
"0.52941287",
"0.5293079",
"0.52712274",
"0.5247738",
"0.52307826",
"0.5219179",
"0.5188658",
"0.5182766",
"0.51643354",
"0.5147266",
"0.51468474",
"0.50985",
"0.50959444",
"0.50855553",
"0.5069951",
"0.506252",
"0.50299996",
"0.50285274",
"0.50285274",
"0.50284564",
"0.5023701",
"0.50141835",
"0.50109154",
"0.500864",
"0.5003971",
"0.5003087",
"0.49978015",
"0.49839705",
"0.49832332",
"0.4974361",
"0.49685484",
"0.49658573",
"0.49658573",
"0.49642918",
"0.49637282",
"0.49619746",
"0.49616206",
"0.4960473",
"0.4953939",
"0.49532396",
"0.49523994",
"0.49510968",
"0.49478772",
"0.49474993",
"0.49403444",
"0.4933353",
"0.49236226",
"0.49170744",
"0.49012613",
"0.49012613",
"0.49012613",
"0.49012613",
"0.49012613",
"0.48964804",
"0.48956287",
"0.4894477",
"0.48903686",
"0.48880333",
"0.4887315",
"0.48867238",
"0.48833543",
"0.48820475",
"0.48759413",
"0.48653325",
"0.4857692",
"0.48531508",
"0.4841938",
"0.48386276",
"0.4836903"
] | 0.69001746 | 0 |
callable(null Runnable) throws NPE | public void testCallableNPE1() {
try {
Callable c = Executors.callable((Runnable) null);
shouldThrow();
} catch (NullPointerException success) {}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"public interface OnStart extends FuncUnit0 {\n \n public static final OnStart DoNothing = ()->{};\n \n public static OnStart run(FuncUnit0 runnable) {\n if (runnable == null)\n return null;\n \n return runnable::run;\n }\n \n}",
"static Scheduler m34951a(Function<? super Callable<Scheduler>, ? extends Scheduler> hVar, Callable<Scheduler> callable) {\n return (Scheduler) ObjectHelper.m35048a(m34956a(hVar, (T) callable), \"Scheduler Callable result can't be null\");\n }",
"@Test(expected = NullPointerException.class)\n public void testConstructorNPE2() throws NullPointerException {\n Executors.newCachedThreadPool();\n new BoundedCompletionService<Void>(null);\n shouldThrow();\n }",
"public Runnable _0parameterNoReturn() {\n\t\treturn () -> System.out.println(\"\"); // we have to use brackets for no parameter\n\t\t\t\t// OR\n\t\t// return () -> { System.out.println(\"\"); };\n\t}",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"static Scheduler m34966e(Callable<Scheduler> callable) {\n try {\n return (Scheduler) ObjectHelper.m35048a(callable.call(), \"Scheduler Callable result can't be null\");\n } catch (Throwable th) {\n throw C8162d.m35182a(th);\n }\n }",
"@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}",
"@Test(expected = NullPointerException.class)\n public void testSubmitNPE2() throws Exception {\n CompletionService<Boolean> ecs = new BoundedCompletionService<Boolean>(\n new ExecutorCompletionService<Boolean>(e));\n Runnable r = null;\n ecs.submit(r, Boolean.TRUE);\n shouldThrow();\n }",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"static io.reactivex.Scheduler applyRequireNonNull(io.reactivex.functions.Function<java.util.concurrent.Callable<io.reactivex.Scheduler>, io.reactivex.Scheduler> r3, java.util.concurrent.Callable<io.reactivex.Scheduler> r4) {\n /*\n java.lang.Object r0 = apply(r3, r4)\n io.reactivex.Scheduler r0 = (io.reactivex.Scheduler) r0\n if (r0 != 0) goto L_0x0011\n java.lang.NullPointerException r1 = new java.lang.NullPointerException\n java.lang.String r2 = \"Scheduler Callable returned null\"\n r1.<init>(r2)\n throw r1\n L_0x0011:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.plugins.RxAndroidPlugins.applyRequireNonNull(io.reactivex.functions.Function, java.util.concurrent.Callable):io.reactivex.Scheduler\");\n }",
"@FunctionalInterface\npublic interface FailableRunnable {\n\n /**\n * Executes a side-effectful computation.\n *\n * @throws Exception\n * if it fails\n */\n public void run() throws Exception;\n}",
"public FnNull(){\n\t}",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"@Test(expected = NullPointerException.class)\n public void testSubmitNPE() throws Exception {\n CompletionService<Void> completionService = new BoundedCompletionService<Void>(\n new ExecutorCompletionService<Void>(e));\n Callable<Void> c = null;\n completionService.submit(c);\n shouldThrow();\n }",
"interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }",
"@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public static Scheduler m34963c(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27421f;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"public static Scheduler m34953a(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27418c;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"@FunctionalInterface\n public interface CheckedRunnable {\n void run() throws Exception;\n }",
"public abstract T executor(@Nullable Executor executor);",
"@Nullable\n public Object bar () {\n int\n c;\n\n @Nullable\n int\n g;\n return null;\n Runnable runnable = new Runnable() {\n public void run() {\n //To change body of implemented methods use File | Settings | File Templates.\n }\n };\n }",
"public static Runnable m34957a(Runnable runnable) {\n ObjectHelper.m35048a(runnable, \"run is null\");\n Function<? super Runnable, ? extends Runnable> hVar = f27417b;\n if (hVar == null) {\n return runnable;\n }\n return (Runnable) m34956a(hVar, (T) runnable);\n }",
"public static Scheduler m34965d(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27419d;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"public static Scheduler m34961b(Callable<Scheduler> callable) {\n ObjectHelper.m35048a(callable, \"Scheduler Callable can't be null\");\n Function<? super Callable<Scheduler>, ? extends Scheduler> hVar = f27420e;\n if (hVar == null) {\n return m34966e(callable);\n }\n return m34951a(hVar, callable);\n }",
"public abstract void mo30313a(C41366e c41366e, Runnable runnable);",
"public static Completable m147573a(Callable<?> callable) {\n ObjectHelper.m147684a((Object) callable, \"callable is null\");\n return RxJavaPlugins.m148466a(new CompletableFromCallable(callable));\n }",
"@MaybeNull\n Object invoke(Object[] argument) throws Throwable;",
"public static Callable maybeCreate(Callable target) {\n if (target == null) {\n return null;\n }\n\n if (target instanceof DecoratedCallable) {\n return target;\n }\n\n return new DecoratedCallable(target);\n }",
"@OfMethod(\"wasNull()\")\n public void testWasNull() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.wasNull();\n fail(\"Allowed was null after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"@Test(expected = NullPointerException.class)\n public void testConstructorNPE() throws NullPointerException {\n new BoundedCompletionService<Void>(null);\n shouldThrow();\n }",
"public static void ifNotPresent(Optional<?> optional, Runnable runnable) {\n if (!optional.isPresent()) {\n runnable.run();\n }\n }",
"public synchronized void dispatch(Runnable runnable) {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tif (runnable != null) {\n\t\t\tqueue.push(runnable);\n\t\t} else {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}",
"public MyRunnable(){\t\n\t}",
"public interface ThrowingRunnable {\n\n void run() throws Throwable;\n }",
"public Object call() throws Exception{\n return null;\n }",
"public void nullstill();",
"public void testNewCachedThreadPool3() {\n try {\n ExecutorService e = Executors.newCachedThreadPool(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}",
"public interface C12049l<T> extends Callable<T> {\n T call();\n}",
"public interface DuelCallable<T, E> {\n\n\tvoid run(T one, E two);\n\n}",
"private void m76769g() {\n C1592h.m7855a((Callable<TResult>) new C23441a<TResult>(this), C1592h.f5958b);\n }",
"public void testTransformWithNullCaller() throws Exception {\n try {\n instance.transform(element, document, null);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"public abstract void executeOnNetwork(@NonNull Runnable runnable);",
"@Override\n public <A> Function1<Object, A> andThen$mcZF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"Callable<E> getTask();",
"@Override\n public <A> Function1<Object, A> andThen$mcVJ$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }",
"public void testRemoveActionEventListener1_null1() {\n try {\n eventManager.removeActionEventListener(null, UndoableAction.class);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"boolean getCalledOnNullInput();",
"interface NoParametersListener {\n\tvoid execute();\n}",
"Runnable mk();",
"@Override\n public <A> Function1<Object, A> andThen$mcVF$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }",
"public void testNewSingleThreadExecutor3() {\n try {\n ExecutorService e = Executors.newSingleThreadExecutor(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"@Override\n public <A> Function1<A, Object> compose$mcZF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcFI$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"default Value<V> ifPresent(Runnable runnable) {\n if (isPresent()) {\n runnable.run();\n }\n return this;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcJI$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"void executeStraight(Runnable task);",
"interface DebugCallable<T> {\n\n /**\n * The invocation that will be tracked.\n *\n * @return the result\n */\n T call() throws EvalException, InterruptedException;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcVI$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }",
"DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcIJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"public static Completable m147571a(Runnable runnable) {\n ObjectHelper.m147684a((Object) runnable, \"run is null\");\n return RxJavaPlugins.m148466a(new CompletableFromRunnable(runnable));\n }",
"public void g() {\n <caret>f(null, null);\n }",
"public static <T> T callInHandlerThread(Callable<T> callable, T defaultValue) {\n if (handler != null)\n return handler.callInHandlerThread(callable, defaultValue);\n return defaultValue;\n }",
"@CheckForNull\n public static <T> Future<T> postCallable(Callable<T> callable) {\n if (handler != null)\n return handler.postCallable(callable);\n return null;\n }",
"T call( @Nonnull final Object... args );",
"public interface Callable {\n void call(String name, String telNumber);\n}",
"FragmentExecutor getRunnable();",
"@Override\n public <A> Function1<A, Object> compose$mcJI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"NULL createNULL();",
"@Override\n public <A> Function1<A, Object> compose$mcFI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Test\r\n public void testExecute_inputNull() {\r\n \r\n assertThat((Object)processor.execute(null, ANONYMOUS_CSVCONTEXT)).isNull();\r\n \r\n }",
"public void testRemoveActionEventListener2_null1() {\n try {\n eventManager.removeActionEventListener(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"@Override\n\t\t\tpublic Integer call() throws Exception {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n public <A> Function1<Object, A> andThen$mcZI$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcZJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcJF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\r\n\tvoid execute(Runnable task);",
"@Override\n public <A> Function1<A, Object> compose$mcJF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public Value<Void> evaluate(ValueReferenceResolver valueRefResolver) {\n return null;\n }",
"public static <TResult> C2177n<TResult> m11231a(Callable<TResult> callable) {\n return m11234a(callable, f8643j, (C2170h) null);\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcZD$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcFF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcDD$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"public void mo9845a() {\n ArrayList arrayList = new ArrayList();\n arrayList.add(new CallableC1816b(this, (byte) 0));\n try {\n Executors.newSingleThreadExecutor().invokeAny(arrayList);\n } catch (InterruptedException e) {\n e.printStackTrace();\n this.f4523c.onFail();\n } catch (ExecutionException e2) {\n e2.printStackTrace();\n this.f4523c.onFail();\n }\n }",
"public void test_NullCase() throws Exception {\n\t\tinit(null) ;\n\t\t\n\t\trepo = factory.createRepository(null) ;\n\n\t\t((DelegatingRepository) repo).setDelegate(notifier);\n\t\trepo.initialize() ;\n\t\tfunctionalTest();\n\t}",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"private static boolean casSlotNull(Runnable[] q, int i,\n Runnable t) {\n return UNSAFE.compareAndSwapObject(q, slotOffset(i), t, null);\n }",
"public ChannelFuture method_4089(Throwable var1) {\n return null;\n }",
"@Override\n protected void runHandler() {\n checkContainsAny(MSG_ILLEGAL_CLASS_LEVEL_ANNOTATION,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.CHECK_RETURN_VALUE,\n NullnessAnnotation.NONNULL, NullnessAnnotation.NULLABLE);\n checkContainsAll(MSG_CONTRADICTING_CLASS_LEVEL_ANNOTATIONS,\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcJD$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"public scala.Function1 foo() { return null; }",
"@Override\n public <A> Function1<A, Object> compose$mcZJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }"
] | [
"0.8165637",
"0.78011477",
"0.7649781",
"0.7502056",
"0.6703343",
"0.65503395",
"0.63418007",
"0.6257387",
"0.61481684",
"0.6102579",
"0.60984194",
"0.608243",
"0.60756636",
"0.60749865",
"0.6035414",
"0.60271573",
"0.6019529",
"0.6002974",
"0.5998582",
"0.5988035",
"0.59537655",
"0.58805",
"0.58676225",
"0.58666325",
"0.58208615",
"0.57969517",
"0.5782722",
"0.57809037",
"0.57779735",
"0.57701164",
"0.5756562",
"0.57468414",
"0.5746434",
"0.56849694",
"0.5661037",
"0.5643728",
"0.56264657",
"0.5575716",
"0.5512857",
"0.549958",
"0.5492964",
"0.54840744",
"0.5483019",
"0.5476579",
"0.5460755",
"0.5424126",
"0.5396877",
"0.53943527",
"0.5393327",
"0.5392032",
"0.5389158",
"0.5388109",
"0.53819877",
"0.5363874",
"0.53624696",
"0.53558373",
"0.5321525",
"0.52953917",
"0.5291916",
"0.52885467",
"0.5275879",
"0.5274605",
"0.5265208",
"0.5262931",
"0.52625716",
"0.5249133",
"0.5245275",
"0.52444774",
"0.5244148",
"0.52440935",
"0.52384263",
"0.52345943",
"0.52327746",
"0.52319187",
"0.5229465",
"0.5217087",
"0.52038866",
"0.51969093",
"0.5192064",
"0.51886654",
"0.518657",
"0.5186222",
"0.51754653",
"0.517202",
"0.5168321",
"0.51598644",
"0.51588124",
"0.5156473",
"0.515224",
"0.513272",
"0.51289713",
"0.51254094",
"0.5122685",
"0.51197904",
"0.5115183",
"0.5114078",
"0.5112501",
"0.5109007",
"0.51031554",
"0.51015764"
] | 0.8145428 | 1 |
callable(null, result) throws NPE | public void testCallableNPE2() {
try {
Callable c = Executors.callable((Runnable) null, one);
shouldThrow();
} catch (NullPointerException success) {}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public Object call() throws Exception{\n return null;\n }",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"@MaybeNull\n Object invoke(Object[] argument) throws Throwable;",
"@Override\n\t\t\tpublic Integer call() throws Exception {\n\t\t\t\treturn null;\n\t\t\t}",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"V result() throws Exception;",
"@Override\n public <A> Function1<Object, A> andThen$mcZF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcVJ$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcVF$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcZF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public scala.Function1 foo() { return null; }",
"static Scheduler m34951a(Function<? super Callable<Scheduler>, ? extends Scheduler> hVar, Callable<Scheduler> callable) {\n return (Scheduler) ObjectHelper.m35048a(m34956a(hVar, (T) callable), \"Scheduler Callable result can't be null\");\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcZJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcJI$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"T call( @Nonnull final Object... args );",
"@Override\n public <A> Function1<Object, A> andThen$mcFI$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcIJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcJF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcJI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcVD$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcVI$sp (Function1<BoxedUnit, A> arg0)\n {\n return null;\n }",
"public abstract T executor(@Nullable Executor executor);",
"@Override\n public <A> Function1<Object, A> andThen$mcJD$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcZD$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public Value<Void> evaluate(ValueReferenceResolver valueRefResolver) {\n return null;\n }",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcFF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcFJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcZJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }",
"@Override\n public <A> Function1<A, Object> compose$mcJD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"static io.reactivex.Scheduler applyRequireNonNull(io.reactivex.functions.Function<java.util.concurrent.Callable<io.reactivex.Scheduler>, io.reactivex.Scheduler> r3, java.util.concurrent.Callable<io.reactivex.Scheduler> r4) {\n /*\n java.lang.Object r0 = apply(r3, r4)\n io.reactivex.Scheduler r0 = (io.reactivex.Scheduler) r0\n if (r0 != 0) goto L_0x0011\n java.lang.NullPointerException r1 = new java.lang.NullPointerException\n java.lang.String r2 = \"Scheduler Callable returned null\"\n r1.<init>(r2)\n throw r1\n L_0x0011:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.plugins.RxAndroidPlugins.applyRequireNonNull(io.reactivex.functions.Function, java.util.concurrent.Callable):io.reactivex.Scheduler\");\n }",
"public FnNull(){\n\t}",
"@Test\r\n public void testExecute_inputNull() {\r\n \r\n assertThat((Object)processor.execute(null, ANONYMOUS_CSVCONTEXT)).isNull();\r\n \r\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcDJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public Object\n call() throws Exception { \n final ConstArray<?> argv;\n try {\n argv = deserialize(m,\n ConstArray.array(lambda.getGenericParameterTypes()));\n } catch (final BadSyntax e) {\n /*\n * strip out the parsing information to avoid leaking\n * information to the application layer\n */ \n throw (Exception)e.getCause();\n }\n \n // AUDIT: call to untrusted application code\n final Object r = Reflection.invoke(bubble(lambda), target,\n argv.toArray(new Object[argv.length()]));\n return Fulfilled.isInstance(r) ? ((Promise<?>)r).call() : r;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcDJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcFD$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcJF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public void testTransformWithNullCaller() throws Exception {\n try {\n instance.transform(element, document, null);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcII$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"static Scheduler m34966e(Callable<Scheduler> callable) {\n try {\n return (Scheduler) ObjectHelper.m35048a(callable.call(), \"Scheduler Callable result can't be null\");\n } catch (Throwable th) {\n throw C8162d.m35182a(th);\n }\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcDD$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Test(expected = NullPointerException.class)\n public void testSubmitNPE() throws Exception {\n CompletionService<Void> completionService = new BoundedCompletionService<Void>(\n new ExecutorCompletionService<Void>(e));\n Callable<Void> c = null;\n completionService.submit(c);\n shouldThrow();\n }",
"@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}",
"@Override\n public <A> Function1<A, BoxedUnit> compose$mcVJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcZI$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcIJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcDI$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Test(expected = NullPointerException.class)\n public void testConstructorNPE2() throws NullPointerException {\n Executors.newCachedThreadPool();\n new BoundedCompletionService<Void>(null);\n shouldThrow();\n }",
"@Test\n public void testReturningNull() throws Exception {\n try {\n runGroupComparator(\"LembosGroupComparatorTest-testReturningNull\", 1, 3);\n\n fail(\"The line above should had failed\");\n } catch (Exception e) {\n assertEquals(\"MapReduce function 'group' cannot return null/undefined\", e.getMessage());\n }\n }",
"@Override\n public <A> Function1<A, Object> compose$mcZD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public interface OnStart extends FuncUnit0 {\n \n public static final OnStart DoNothing = ()->{};\n \n public static OnStart run(FuncUnit0 runnable) {\n if (runnable == null)\n return null;\n \n return runnable::run;\n }\n \n}",
"@Override\n\tpublic <R> R exit(R result) {\n\t\treturn null;\n\t}",
"@Override\n public <A> Function1<Object, A> andThen$mcIF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Nullable\n Result getResult();",
"@OfMethod(\"wasNull()\")\n public void testWasNull() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.wasNull();\n fail(\"Allowed was null after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"V call() throws StatusRuntimeException;",
"@Override\n public <A> Function1<A, Object> compose$mcDD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, BoxedUnit> compose$mcVF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public Type tryPerformCall(final Type... args) {\n if (params.length != args.length) {\n return null;\n }\n for (int i = 0; i < args.length; ++i) {\n if (!args[i].canConvertTo(params[i])) {\n return null;\n }\n }\n return ret;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcIF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public String visit(VoidType n, Object arg) {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcII$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}",
"@Test(expected = NullPointerException.class)\n public void testSubmitNPE2() throws Exception {\n CompletionService<Boolean> ecs = new BoundedCompletionService<Boolean>(\n new ExecutorCompletionService<Boolean>(e));\n Runnable r = null;\n ecs.submit(r, Boolean.TRUE);\n shouldThrow();\n }",
"public T caseFunctionCall(FunctionCall object)\n {\n return null;\n }",
"@Test\n public void wrapper_testNull() throws Exception {\n try {\n Helper.processGenerateResponse(null);\n } catch (Exception e) {\n fail(\"Should never have reached here.\");\n }\n }",
"public Runnable _0parameterNoReturn() {\n\t\treturn () -> System.out.println(\"\"); // we have to use brackets for no parameter\n\t\t\t\t// OR\n\t\t// return () -> { System.out.println(\"\"); };\n\t}",
"public T getRawResult()\n/* */ {\n/* 744 */ return null;\n/* */ }",
"@Override\n public <A> Function1<Object, A> andThen$mcJJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"public ChannelFuture method_4089(Throwable var1) {\n return null;\n }",
"default V getOrThrow() {\n return getOrThrow(\"null\");\n }",
"@Override\n public <A> Function1<A, Object> compose$mcZI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"T getResult();",
"T getResult();",
"public void testExecute2() throws Exception {\r\n try {\r\n handler.execute(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }",
"@Test(expected = NullPointerException.class)\n public void testConstructorNPE() throws NullPointerException {\n new BoundedCompletionService<Void>(null);\n shouldThrow();\n }",
"T call() throws EvalException, InterruptedException;",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"@FunctionalInterface\npublic interface FailableRunnable {\n\n /**\n * Executes a side-effectful computation.\n *\n * @throws Exception\n * if it fails\n */\n public void run() throws Exception;\n}",
"@Override\r\n\tpublic String execute() throws Exception {\n\t\treturn null;\r\n\t}",
"public T getResult();",
"NULL createNULL();",
"@Override\n\tpublic Object execute() {\n\n\t\treturn null;\n\t}",
"ExecutionResult<Void> execute();",
"public T caseResultTask(ResultTask object) {\n\t\treturn null;\n\t}",
"protected abstract O getResult();",
"@Nullable\n public\n Object\n foo () {\n return null;\n }"
] | [
"0.6987264",
"0.6954927",
"0.69419605",
"0.6401236",
"0.636112",
"0.631156",
"0.62284374",
"0.62027735",
"0.62027735",
"0.618244",
"0.6115595",
"0.6068287",
"0.6022095",
"0.60033363",
"0.5970783",
"0.59259164",
"0.58935773",
"0.5891472",
"0.58804196",
"0.58802766",
"0.5855987",
"0.5842546",
"0.58276755",
"0.5824946",
"0.5820758",
"0.5811617",
"0.57881856",
"0.5786909",
"0.57855254",
"0.5777047",
"0.5761221",
"0.5759837",
"0.57509166",
"0.57466906",
"0.57458466",
"0.57395285",
"0.57379484",
"0.5734924",
"0.57340395",
"0.56897146",
"0.5688942",
"0.5677659",
"0.5671535",
"0.5662277",
"0.56532335",
"0.56452525",
"0.5639683",
"0.5632971",
"0.5632713",
"0.56326944",
"0.56010777",
"0.55995744",
"0.5596462",
"0.55950725",
"0.55923575",
"0.5570989",
"0.55597705",
"0.55488086",
"0.5526679",
"0.55248374",
"0.5524101",
"0.5520495",
"0.55198604",
"0.5519456",
"0.55091107",
"0.5508045",
"0.5482768",
"0.5480822",
"0.54793113",
"0.54772294",
"0.547645",
"0.5465125",
"0.54544747",
"0.5436697",
"0.5435259",
"0.54352146",
"0.542823",
"0.5424919",
"0.5412483",
"0.5404139",
"0.5400059",
"0.5393183",
"0.5391927",
"0.53887624",
"0.5378755",
"0.5369951",
"0.5369951",
"0.5354548",
"0.5329597",
"0.530163",
"0.530096",
"0.5292144",
"0.52769303",
"0.5274311",
"0.5273116",
"0.52689284",
"0.52667546",
"0.5262314",
"0.5261381",
"0.52582294"
] | 0.7184104 | 0 |
callable(null PrivilegedAction) throws NPE | public void testCallableNPE3() {
try {
Callable c = Executors.callable((PrivilegedAction) null);
shouldThrow();
} catch (NullPointerException success) {}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }",
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}",
"public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"@Test\n public void test1() throws Throwable {\n PermissionAnnotationHandler permissionAnnotationHandler0 = new PermissionAnnotationHandler();\n permissionAnnotationHandler0.assertAuthorized((Annotation) null);\n }",
"@Nullable\n @Generated\n @Selector(\"action\")\n public native SEL action();",
"private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }",
"@Override\n\tprotected String doIntercept(ActionInvocation arg0) throws Exception {\n\t\treturn null;\n\t}",
"NoAction createNoAction();",
"@MaybeNull\n Object invoke(Object[] argument) throws Throwable;",
"public void doAction(){}",
"@Test\n public void test0() throws Throwable {\n PermissionAnnotationHandler permissionAnnotationHandler0 = new PermissionAnnotationHandler();\n // Undeclared exception!\n try {\n permissionAnnotationHandler0.getAnnotationValue((Annotation) null);\n fail(\"Expecting exception: NullPointerException\");\n } catch(NullPointerException e) {\n }\n }",
"public FnNull(){\n\t}",
"public static Callable maybeCreate(Callable target) {\n if (target == null) {\n return null;\n }\n\n if (target instanceof DecoratedCallable) {\n return target;\n }\n\n return new DecoratedCallable(target);\n }",
"@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}",
"@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"boolean isCallableAccess();",
"public interface OnStart extends FuncUnit0 {\n \n public static final OnStart DoNothing = ()->{};\n \n public static OnStart run(FuncUnit0 runnable) {\n if (runnable == null)\n return null;\n \n return runnable::run;\n }\n \n}",
"public Object run() throws Exception {\n System.out.println(\"Performing secure action ...\");\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcZF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public ExecuteAction()\n {\n this(null);\n }",
"public void action() {\n }",
"protected abstract boolean invokable(Resource r);",
"@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 a_Action(){}",
"public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }",
"public void testRemoveActionEventListener1_null1() {\n try {\n eventManager.removeActionEventListener(null, UndoableAction.class);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\n }",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"@Override\r\n\tpublic Message doAction() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}",
"public void testRemoveActionEventListener2_null1() {\n try {\n eventManager.removeActionEventListener(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"public void testAddActionEventListener1_null1() {\n try {\n eventManager.addActionEventListener(null, UndoableAction.class);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }",
"boolean getCalledOnNullInput();",
"@Override\n public <A> Function1<A, Object> compose$mcJI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcZF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcJD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public Object\n call() throws Exception { \n final ConstArray<?> argv;\n try {\n argv = deserialize(m,\n ConstArray.array(lambda.getGenericParameterTypes()));\n } catch (final BadSyntax e) {\n /*\n * strip out the parsing information to avoid leaking\n * information to the application layer\n */ \n throw (Exception)e.getCause();\n }\n \n // AUDIT: call to untrusted application code\n final Object r = Reflection.invoke(bubble(lambda), target,\n argv.toArray(new Object[argv.length()]));\n return Fulfilled.isInstance(r) ? ((Promise<?>)r).call() : r;\n }",
"static void loginAndAction(String name, PrivilegedExceptionAction<Object> action)\n throws LoginException, PrivilegedActionException {\n CallbackHandler callbackHandler = new TextCallbackHandler();\n\n LoginContext context = null;\n\n try {\n // Create a LoginContext with a callback handler\n context = new LoginContext(name, callbackHandler);\n\n // Perform authentication\n context.login();\n } catch (LoginException e) {\n System.err.println(\"Login failed\");\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Perform action as authenticated user\n Subject subject = context.getSubject();\n if (verbose) {\n System.out.println(subject.toString());\n for (Object cred : subject.getPrivateCredentials()) {\n System.out.println(cred);\n }\n } else {\n System.out.println(\"Authenticated principal: \" +\n subject.getPrincipals());\n }\n\n Subject.doAs(subject, action);\n\n context.logout();\n }",
"public static <T> PrivilegedAction<T> of(Class<T> type) {\n return of(type, null);\n }",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"public Object execute(OcmAction<T> action) throws DataAccessException;",
"@Override\n\tpublic void invoke(String origin, boolean allow, boolean remember) {\n\t\t\n\t}",
"@Override\n public <A> Function1<A, Object> compose$mcFI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public void testRemoveActionEventListener1_null2() {\n try {\n eventManager.removeActionEventListener(actionEventListener1, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"@Override\n public Void visitUnknown(TypeMirror t, Void p) {\n return defaultAction(t, p);\n }",
"public void testAddActionEventListener2_null1() {\n try {\n eventManager.addActionEventListener(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public interface Actionable {\n void executeAction(Action action);\n}",
"public void testCtorWithNullTransferable() throws Exception {\n try {\n new PasteAssociationAction(null, namespace);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"@Override\n public String visit(Modifier n, Object arg) {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcZJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcZD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public static Access granted() {\n return new Access() {\n @Override\n void exec(BeforeEnterEvent enterEvent) {\n }\n };\n }",
"private PermissionHelper() {}",
"public void addAction(AccessibilityAction action) {\n/* 312 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public <A> Function1<Object, A> andThen$mcZD$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<A, Object> compose$mcDD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public void nullstill();",
"@Override\n\tpublic ActionCommand execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n public <A> Function1<A, Object> compose$mcIJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public void performAction();",
"@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}",
"@Override\n public <A> Function1<A, Object> compose$mcDI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}",
"@Override\n public <A> Function1<A, Object> compose$mcJF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public Runnable _0parameterNoReturn() {\n\t\treturn () -> System.out.println(\"\"); // we have to use brackets for no parameter\n\t\t\t\t// OR\n\t\t// return () -> { System.out.println(\"\"); };\n\t}",
"T call( @Nonnull final Object... args );",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;",
"public String visit(SpilledArg n, Object argu)\r\n\t {\r\n\t\t return null;\r\n\t }",
"public Object call() throws Exception{\n return null;\n }",
"public interface RuntimePermissionRequester {\n /**\n * Asks user for specific permissions needed to proceed\n *\n * @param requestCode Request permission using this code, allowing for\n * callback distinguishing\n */\n void requestNeededPermissions(int requestCode);\n}",
"@Override\n\tpublic void action() {\n\n\t}",
"@Override\n public <A> Function1<A, Object> compose$mcZI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}",
"public <T> T runWithKeyChecksIgnored(Callable<T> call) throws Exception;",
"public interface ShellAction {\n\n /** The name is a shell action's unique identifier. Any action is called by it's name.\n * \n * @return String representation of the name. */\n String getName();\n\n /** Can be invoked.\n * \n * @return True if it can be invoked. */\n boolean isInvokable();\n\n /** Executes the ShellAction using the given session object and parameters.\n * \n * @param resolver\n * @param context\n * @param parameters\n * @return Result of execution. */\n ActionResponse execute(final ResourceResolver resolver, final ExecutionContext context, final Parameter... parameters) throws RepositoryException;\n\n /** Executes the ShellAction using the given session object and parameters.\n * \n * @param resolver\n * @param context\n * @param parameters\n * @return Result of execution. */\n ActionResponse execute(final ResourceResolver resolver, final ExecutionContext context, final List<Parameter> parameters) throws RepositoryException;\n\n /** Verifies if it is possible to run the action with the given set of parameters.\n * \n * @param parameters\n * @return */\n boolean isValid(final Parameter... parameters);\n\n List<Parameter> getParameterInformation();\n}",
"public boolean performAction(int action) {\n/* 567 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void doInitialAction(){}",
"public abstract Object invoke(T target , Method method , Object[] args) throws Throwable;",
"public void testAddActionEventListener1_null2() {\n try {\n eventManager.addActionEventListener(actionEventListener1, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFJ$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcDI$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\n public <A> Function1<Object, A> andThen$mcIJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\n public <A> Function1<Object, A> andThen$mcJI$sp (Function1<Object, A> arg0)\n {\n return null;\n }"
] | [
"0.7202175",
"0.68478364",
"0.65773505",
"0.6546906",
"0.6546613",
"0.6537816",
"0.62636536",
"0.6243171",
"0.62399906",
"0.6202792",
"0.6110429",
"0.5961573",
"0.58887476",
"0.5781152",
"0.5767285",
"0.576182",
"0.5745152",
"0.5534653",
"0.55211073",
"0.55167496",
"0.548458",
"0.5471502",
"0.54230535",
"0.5414257",
"0.5394109",
"0.536705",
"0.53561866",
"0.5355042",
"0.53512716",
"0.5343976",
"0.5341103",
"0.53334564",
"0.53290385",
"0.5325261",
"0.5311589",
"0.5305948",
"0.5290695",
"0.5286467",
"0.52530175",
"0.52447724",
"0.52319217",
"0.5230225",
"0.52294236",
"0.5223822",
"0.5204229",
"0.5181099",
"0.51705086",
"0.5166023",
"0.5150127",
"0.5148469",
"0.51278377",
"0.5123782",
"0.5117863",
"0.5111592",
"0.5101418",
"0.5091762",
"0.5086899",
"0.50788665",
"0.50785047",
"0.5074264",
"0.50712055",
"0.50640273",
"0.5059229",
"0.5059195",
"0.50507164",
"0.5048871",
"0.5045884",
"0.5044184",
"0.50370944",
"0.5036467",
"0.5036134",
"0.50357115",
"0.50311327",
"0.502795",
"0.5027804",
"0.5024215",
"0.5024215",
"0.5024215",
"0.5020151",
"0.50114346",
"0.50070393",
"0.5006872",
"0.5005463",
"0.49990794",
"0.49963543",
"0.49896085",
"0.4981698",
"0.49788198",
"0.49759224",
"0.49724028",
"0.49705487",
"0.49704725",
"0.4969823",
"0.49693796",
"0.49692965",
"0.49688905",
"0.49657604",
"0.4962263",
"0.49577722",
"0.49570063"
] | 0.7394274 | 0 |
callable(null PrivilegedExceptionAction) throws NPE | public void testCallableNPE4() {
try {
Callable c = Executors.callable((PrivilegedExceptionAction) null);
shouldThrow();
} catch (NullPointerException success) {}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"private static <T> T run(PrivilegedAction<T> action)\n/* */ {\n/* 120 */ return (T)(System.getSecurityManager() != null ? AccessController.doPrivileged(action) : action.run());\n/* */ }",
"public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testPrivilegedCallableWithNoPrivs() throws Exception {\n // Avoid classloader-related SecurityExceptions in swingui.TestRunner\n Executors.privilegedCallable(new CheckCCL());\n\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n Callable task = Executors.privilegedCallable(new CheckCCL());\n try {\n task.call();\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n\n // It seems rather difficult to test that the\n // AccessControlContext of the privilegedCallable is used\n // instead of its caller. Below is a failed attempt to do\n // that, which does not work because the AccessController\n // cannot capture the internal state of the current Policy.\n // It would be much more work to differentiate based on,\n // e.g. CodeSource.\n\n// final AccessControlContext[] noprivAcc = new AccessControlContext[1];\n// final Callable[] task = new Callable[1];\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() {\n// if (System.getSecurityManager() == null)\n// return;\n// noprivAcc[0] = AccessController.getContext();\n// task[0] = Executors.privilegedCallable(new CheckCCL());\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }});\n\n// runWithPermissions\n// (new CheckedRunnable() {\n// public void realRun() throws Exception {\n// if (System.getSecurityManager() == null)\n// return;\n// // Verify that we have an underprivileged ACC\n// try {\n// AccessController.doPrivileged(new PrivilegedAction<Void>() {\n// public Void run() {\n// checkCCL();\n// return null;\n// }}, noprivAcc[0]);\n// shouldThrow();\n// } catch (AccessControlException success) {}\n\n// try {\n// task[0].call();\n// shouldThrow();\n// } catch (AccessControlException success) {}\n// }},\n// new RuntimePermission(\"getClassLoader\"),\n// new RuntimePermission(\"setContextClassLoader\"));\n }",
"public void testCallable3() throws Exception {\n Callable c = Executors.callable(new PrivilegedAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }",
"public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n if (System.getSecurityManager() == null)\n return;\n try {\n Executors.privilegedCallableUsingCurrentClassLoader(new NoOpCallable());\n shouldThrow();\n } catch (AccessControlException success) {}\n }};\n\n runWithoutPermissions(r);\n }",
"public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }",
"@IgnoreForbiddenApisErrors(reason = \"SecurityManager is deprecated in JDK17\")\n\tprivate static <T> T run(PrivilegedAction<T> action) {\n\t\treturn System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();\n\t}",
"public void testPrivilegedCallableWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallable(new CheckCCL()).call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"@Override\n\tprotected String doIntercept(ActionInvocation arg0) throws Exception {\n\t\treturn null;\n\t}",
"public void testPrivilegedCallableUsingCCLWithPrivs() throws Exception {\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n Executors.privilegedCallableUsingCurrentClassLoader\n (new NoOpCallable())\n .call();\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"));\n }",
"@Test\n public void test0() throws Throwable {\n PermissionAnnotationHandler permissionAnnotationHandler0 = new PermissionAnnotationHandler();\n // Undeclared exception!\n try {\n permissionAnnotationHandler0.getAnnotationValue((Annotation) null);\n fail(\"Expecting exception: NullPointerException\");\n } catch(NullPointerException e) {\n }\n }",
"@Test\n public void test1() throws Throwable {\n PermissionAnnotationHandler permissionAnnotationHandler0 = new PermissionAnnotationHandler();\n permissionAnnotationHandler0.assertAuthorized((Annotation) null);\n }",
"private void invoke(Method m, Object instance, Object... args) throws Throwable {\n if (!Modifier.isPublic(m.getModifiers())) {\n try {\n if (!m.isAccessible()) {\n m.setAccessible(true);\n }\n } catch (SecurityException e) {\n throw new RuntimeException(\"There is a non-public method that needs to be called. This requires \" +\n \"ReflectPermission('suppressAccessChecks'). Don't run with the security manager or \" +\n \" add this permission to the runner. Offending method: \" + m.toGenericString());\n }\n }\n \n try {\n m.invoke(instance, args);\n } catch (InvocationTargetException e) {\n throw e.getCause();\n }\n }",
"NoAction createNoAction();",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"public Object run() throws Exception {\n System.out.println(\"Performing secure action ...\");\n return null;\n }",
"@Nullable\n @Generated\n @Selector(\"action\")\n public native SEL action();",
"@MaybeNull\n Object invoke(Object[] argument) throws Throwable;",
"@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;",
"public java.lang.Void run() throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.1.run():java.lang.Void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Void\");\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 /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }",
"@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }",
"public void doAction(){}",
"public Object call() throws Exception{\n return null;\n }",
"public void testRemoveActionEventListener1_null1() {\n try {\n eventManager.removeActionEventListener(null, UndoableAction.class);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}",
"public void testRemoveActionEventListener2_null1() {\n try {\n eventManager.removeActionEventListener(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public FnNull(){\n\t}",
"static void loginAndAction(String name, PrivilegedExceptionAction<Object> action)\n throws LoginException, PrivilegedActionException {\n CallbackHandler callbackHandler = new TextCallbackHandler();\n\n LoginContext context = null;\n\n try {\n // Create a LoginContext with a callback handler\n context = new LoginContext(name, callbackHandler);\n\n // Perform authentication\n context.login();\n } catch (LoginException e) {\n System.err.println(\"Login failed\");\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Perform action as authenticated user\n Subject subject = context.getSubject();\n if (verbose) {\n System.out.println(subject.toString());\n for (Object cred : subject.getPrivateCredentials()) {\n System.out.println(cred);\n }\n } else {\n System.out.println(\"Authenticated principal: \" +\n subject.getPrincipals());\n }\n\n Subject.doAs(subject, action);\n\n context.logout();\n }",
"public void testAddActionEventListener1_null1() {\n try {\n eventManager.addActionEventListener(null, UndoableAction.class);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public void action() {\n }",
"public void addAction(AccessibilityAction action) {\n/* 312 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"public boolean performAction(int action) {\n/* 567 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"protected abstract boolean invokable(Resource r);",
"public Object\n call() throws Exception { \n final ConstArray<?> argv;\n try {\n argv = deserialize(m,\n ConstArray.array(lambda.getGenericParameterTypes()));\n } catch (final BadSyntax e) {\n /*\n * strip out the parsing information to avoid leaking\n * information to the application layer\n */ \n throw (Exception)e.getCause();\n }\n \n // AUDIT: call to untrusted application code\n final Object r = Reflection.invoke(bubble(lambda), target,\n argv.toArray(new Object[argv.length()]));\n return Fulfilled.isInstance(r) ? ((Promise<?>)r).call() : r;\n }",
"@Override\r\n\tpublic Message doAction() {\n\t\treturn null;\r\n\t}",
"public void testAddActionEventListener2_null1() {\n try {\n eventManager.addActionEventListener(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}",
"public void testCtorWithNullTransferable() throws Exception {\n try {\n new PasteAssociationAction(null, namespace);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"public void a_Action(){}",
"public void testRemoveActionEventListener1_null2() {\n try {\n eventManager.removeActionEventListener(actionEventListener1, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public ExecuteAction()\n {\n this(null);\n }",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;",
"public boolean performAction(int action, Bundle arguments) {\n/* 583 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Object execute(OcmAction<T> action) throws DataAccessException;",
"public static String _takeselfie_click() throws Exception{\nreturn \"\";\n}",
"public void testMouseClickedIfMouseEventNull() {\n try {\n editBoxTrigger.mouseClicked(null);\n } catch (Exception e) {\n fail(\"No exception is excpected.\");\n }\n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n\tpublic ActionCommand execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\treturn null;\n\t}",
"public void testTransformWithNullCaller() throws Exception {\n try {\n instance.transform(element, document, null);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"public void testAddActionEventListener1_null2() {\n try {\n eventManager.addActionEventListener(actionEventListener1, null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public static Callable maybeCreate(Callable target) {\n if (target == null) {\n return null;\n }\n\n if (target instanceof DecoratedCallable) {\n return target;\n }\n\n return new DecoratedCallable(target);\n }",
"@Override\n public T call() {\n try {\n return callable.call();\n }\n catch (Throwable e) {\n Log.e(\"Scheduler\", \"call code exception: %s\", e);\n return null;\n }\n }",
"public interface OnStart extends FuncUnit0 {\n \n public static final OnStart DoNothing = ()->{};\n \n public static OnStart run(FuncUnit0 runnable) {\n if (runnable == null)\n return null;\n \n return runnable::run;\n }\n \n}",
"protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;",
"@Override\n\t\t\tpublic Integer call() throws Exception {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}",
"boolean isCallableAccess();",
"public abstract void init_actions() throws Exception;",
"@Test(expected = NullPointerException.class)\n public void testSubmitNPE() throws Exception {\n CompletionService<Void> completionService = new BoundedCompletionService<Void>(\n new ExecutorCompletionService<Void>(e));\n Callable<Void> c = null;\n completionService.submit(c);\n shouldThrow();\n }",
"@FunctionalInterface\npublic interface JAction1<T> {\n void invoke(T val) throws Exception;\n\n default void execute(T val) {\n try {\n invoke(val);\n } catch (Exception ex) {\n throw new RuntimeException();\n }\n }\n}",
"@Override\n public <A> Function1<A, Object> compose$mcZF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public static Access granted() {\n return new Access() {\n @Override\n void exec(BeforeEnterEvent enterEvent) {\n }\n };\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"public <T> T runWithKeyChecksIgnored(Callable<T> call) throws Exception;",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"public static <T> PrivilegedAction<T> of(Class<T> type) {\n return of(type, null);\n }",
"AnonymousClass1(java.security.Signer r1, java.security.PublicKey r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void\");\n }",
"public void testHandleActionEvent_null() throws Exception {\n try {\n eventManager.handleActionEvent(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n }",
"public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }",
"int executeSafely();",
"@Override\n public <A> Function1<Object, A> andThen$mcZF$sp (Function1<Object, A> arg0)\n {\n return null;\n }",
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"@Override\n public <A> Function1<A, Object> compose$mcJI$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public boolean removeAction(AccessibilityAction action) {\n/* 364 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n\tpublic void action() {\n\n\t}",
"public interface NegativeAction {\n void negativeAction();\n}",
"@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"DecoratedCallable(Callable target) {\n super();\n this.target = target;\n }",
"public void mo5385r() {\n throw null;\n }",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"private PermissionHelper() {}",
"org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;",
"Object proceed() throws Throwable;",
"@Override\n public Void visitUnknown(TypeMirror t, Void p) {\n return defaultAction(t, p);\n }",
"public void doInitialAction(){}",
"@Override\n public <A> Function1<A, Object> compose$mcJD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Test\n public void testRequestNonRuntimePermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.BIND_PRINT_SERVICE));\n\n String[] permissions = new String[] {Manifest.permission.BIND_PRINT_SERVICE};\n\n // Request the permission and do nothing\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS, BasePermissionActivity.class, null);\n\n // Expect the permission is not granted\n assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n }",
"public void nullstill();",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"@Test\r\n public void executeTransactionTest_invoke_privateMethod() throws Exception {\r\n localService = new LocalServiceImpl();\r\n\r\n Integer sourceAccountBalance = Whitebox.invokeMethod(localService, \"getSourceAccountBalance\");\r\n assertEquals(java.util.Optional.ofNullable(sourceAccountBalance), Optional.of(500));\r\n }"
] | [
"0.74642676",
"0.6863671",
"0.6710844",
"0.6466218",
"0.6459661",
"0.6332818",
"0.63266224",
"0.6286563",
"0.6242313",
"0.6101183",
"0.58921546",
"0.5872733",
"0.58523023",
"0.5824774",
"0.5771332",
"0.57380396",
"0.5720825",
"0.5697465",
"0.56938994",
"0.5588014",
"0.5490784",
"0.54897636",
"0.54869014",
"0.5481968",
"0.54762423",
"0.54411477",
"0.54098487",
"0.5406726",
"0.53910464",
"0.53906274",
"0.537311",
"0.5370284",
"0.5364373",
"0.5346718",
"0.53393334",
"0.53301215",
"0.5288666",
"0.5281637",
"0.52756935",
"0.527412",
"0.5265644",
"0.5263404",
"0.52506405",
"0.52359235",
"0.52117825",
"0.5189774",
"0.516313",
"0.51568943",
"0.51553184",
"0.5150771",
"0.51383656",
"0.5136021",
"0.5136021",
"0.51283294",
"0.51254475",
"0.5121824",
"0.5108368",
"0.50866467",
"0.50846004",
"0.50838727",
"0.50834304",
"0.5081229",
"0.50780416",
"0.50777566",
"0.5071311",
"0.50581837",
"0.5057215",
"0.50495464",
"0.5048896",
"0.5048896",
"0.5048896",
"0.5041344",
"0.50273705",
"0.50273705",
"0.5026544",
"0.5026355",
"0.5015073",
"0.5014592",
"0.5009988",
"0.5003058",
"0.5000077",
"0.49957186",
"0.4990521",
"0.4982453",
"0.49663877",
"0.49586695",
"0.49582136",
"0.49534047",
"0.4950969",
"0.4947755",
"0.49473336",
"0.4944482",
"0.49422896",
"0.49410805",
"0.49404463",
"0.49403238",
"0.49399677",
"0.49392125",
"0.49368873",
"0.49344206"
] | 0.7394332 | 1 |
Method untuk mendapatkan TipeLayanan | TipeLayanan(String deskripsi)
{
this.deskripsi = deskripsi;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"public void leerPlanesDietas();",
"public void testTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(); \n\n\t\tshowData(data,\"kode_pangkat\",\"jumlah_pns\");\n\t}",
"private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"public void klikkaa(Tavarat tavarat, Klikattava klikattava);",
"public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void displayPantry(){\r\n jam1.displayJam();\r\n jam2.displayJam();\r\n jam3.displayJam();\r\n \r\n }",
"public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}",
"private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }",
"public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }",
"@Override\n public boolean onDrag(View v, DragEvent event) {\n final int action = event.getAction();\n switch (action) {\n\n case DragEvent.ACTION_DROP: {\n\n break;\n }\n\n case DragEvent.ACTION_DRAG_ENDED: {\n if(yukari.getVisibility()==View.VISIBLE){\n if(kontrol==0){\n harita1.setBackgroundResource(R.drawable.blue);\n harita1.setImageResource(R.drawable.blue);\n kontrol++;\n }else if(kontrol==1){\n harita2.setBackgroundResource(R.drawable.blue);\n harita2.setImageResource(R.drawable.blue);\n yukari.setVisibility(View.INVISIBLE);\n sag.setVisibility(View.VISIBLE);\n kontrol++;\n }\n else if(kontrol==3){\n harita4.setBackgroundResource(R.drawable.blue);\n harita4.setImageResource(R.drawable.blue);\n kontrol++;\n }\n else if(kontrol==4){\n harita5.setBackgroundResource(R.drawable.blue);\n harita5.setImageResource(R.drawable.blue);\n kontrol++;\n yukari.setVisibility(View.INVISIBLE);\n sol.setVisibility(View.VISIBLE);\n }\n else if(kontrol==7){\n harita8.setBackgroundResource(R.drawable.blue);\n harita8.setImageResource(R.drawable.blue);\n kontrol++;\n }\n else if(kontrol==8){\n harita9.setBackgroundResource(R.drawable.blue);\n harita9.setImageResource(R.drawable.blue);\n kontrol++;\n yukari.setVisibility(View.INVISIBLE);\n uc.setVisibility(View.VISIBLE);\n }\n }\n else if(sag.getVisibility()==View.VISIBLE){\n if(kontrol==2){\n harita3.setBackgroundResource(R.drawable.blue);\n harita3.setImageResource(R.drawable.blue);\n kontrol++;\n sag.setVisibility(View.INVISIBLE);\n yukari.setVisibility(View.VISIBLE);\n }\n }\n else if(sol.getVisibility()==View.VISIBLE){\n if(kontrol==5){\n harita6.setBackgroundResource(R.drawable.blue);\n harita6.setImageResource(R.drawable.blue);\n kontrol++;\n }\n else if(kontrol==6){\n harita7.setBackgroundResource(R.drawable.blue);\n harita7.setImageResource(R.drawable.blue);\n kontrol++;\n sol.setVisibility(View.INVISIBLE);\n yukari.setVisibility(View.VISIBLE);\n }\n }\n\n break;\n\n }\n\n case DragEvent.ACTION_DRAG_STARTED:\n break;\n\n case DragEvent.ACTION_DRAG_EXITED:\n break;\n\n case DragEvent.ACTION_DRAG_ENTERED:\n break;\n\n default:\n break;\n }\n return true;\n }",
"public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void setLabelEstados(int pokemon){\r\n if(pokemon ==0){\r\n if(pokemon_activo1.getConfuso() == true) vc.setjL_Estado1(\"Confuso\");\r\n else if(pokemon_activo1.getCongelado()== true) vc.setjL_Estado1(\"Congelado\");\r\n else if(pokemon_activo1.getDormido()== true) vc.setjL_Estado1(\"Dormido\");\r\n else if(pokemon_activo1.getEnvenenado()== true) vc.setjL_Estado1(\"Envenenado\");\r\n else if(pokemon_activo1.getParalizado()== true) vc.setjL_Estado1(\"Paralizado\");\r\n else if(pokemon_activo1.getQuemado()== true) vc.setjL_Estado1(\"Quemado\");\r\n else if(pokemon_activo1.getCongelado() == false && pokemon_activo1.getDormido() == false && pokemon_activo1.getEnvenenado() == false && \r\n pokemon_activo1.getParalizado() == false && pokemon_activo1.getQuemado() == false){\r\n vc.setjL_Estado1(\"Normal\");\r\n }\r\n }\r\n if(pokemon ==1){\r\n if(pokemon_activo2.getConfuso() == true) vc.setjL_Estado2(\"Confuso\");\r\n else if(pokemon_activo2.getCongelado()== true) vc.setjL_Estado2(\"Congelado\");\r\n else if(pokemon_activo2.getDormido()== true) vc.setjL_Estado2(\"Dormido\");\r\n else if(pokemon_activo2.getEnvenenado()== true) vc.setjL_Estado2(\"Envenenado\");\r\n else if(pokemon_activo2.getParalizado()== true) vc.setjL_Estado2(\"Paralizado\");\r\n else if(pokemon_activo2.getQuemado()== true) vc.setjL_Estado2(\"Quemado\");\r\n else if(pokemon_activo2.getCongelado() == false && pokemon_activo2.getDormido() == false && pokemon_activo2.getEnvenenado() == false && \r\n pokemon_activo2.getParalizado() == false && pokemon_activo2.getQuemado() == false){\r\n vc.setjL_Estado2(\"Normal\");\r\n }\r\n }\r\n }",
"void tampilKarakterA();",
"public CetakPenjualan() {\n initComponents();\ntampilDataPen();\nthis.setResizable(false);\n }",
"private void transportPara() {\n int[] para = bottom_screen.transportPara();\n Attack_Menu.setHp_1(para[0]);\n Attack_Menu.setHp_2(para[1]);\n Attack_Menu.setDamage_1(para[2]);\n Attack_Menu.setDamage_2(para[3]);\n Attack_Menu.setHit_1(para[4]);\n Attack_Menu.setHit_2(para[5]);\n Attack_Menu.setCrit_1(para[6]);\n Attack_Menu.setCrit_2(para[7]);\n Attack_Menu.setTurn_1(para[8]);\n Attack_Menu.setTurn_2(para[9]);\n }",
"public PanCoperti() {\n /* rimanda al costruttore della superclasse */\n super(Layout.ORIENTAMENTO_ORIZZONTALE);\n\n\n try { // prova ad eseguire il codice\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n }// fine del blocco try-catch\n }",
"public void loadPlanDataToLabels(LoadPlan p, String defaultDest) {\n \n SimpleDateFormat sdf1 = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n SimpleDateFormat sdf2 = new SimpleDateFormat(\"yyyy-MM-dd\");\n plan_id_filter.setText(\"\" + p.getId());\n this.plan_num_label.setText(\"\" + p.getId());\n this.create_user_label.setText(p.getUser());\n this.destination_label_help.setText(\"#\");\n this.destination_label_help.setText(defaultDest);\n this.create_time_label.setText(sdf1.format(p.getCreateTime()));\n if (p.getDeliveryTime() != null) {\n this.dispatch_date_label.setText(sdf2.format(p.getDeliveryTime()));\n }\n if (p.getEndTime() != null) {\n this.release_date_label.setText(sdf1.format(p.getEndTime()));\n }\n this.project_label.setText(p.getProject());\n this.state_label.setText(p.getPlanState());\n\n this.truck_no_txt1.setText(p.getTruckNo());\n this.transporteur_txt.setText(p.getTransportCompany());\n this.fg_warehouse_label.setText(p.getFgWarehouse());\n //Select the last pile of the plan\n Helper.startSession();\n String query_str = String.format(HQLHelper.GET_PILES_OF_PLAN, Integer.valueOf(p.getId()));\n SQLQuery query = Helper.sess.createSQLQuery(query_str);\n\n query.addScalar(\"pile_num\", StandardBasicTypes.INTEGER);\n List<Object[]> resultList = query.list();\n Helper.sess.getTransaction().commit();\n Integer[] arg = (Integer[]) resultList.toArray(new Integer[resultList.size()]);\n if (!resultList.isEmpty()) {\n for (int i = 1; i < arg.length; i++) {\n if (Integer.valueOf(piles_box.getItemAt(i).toString().trim()) == arg[i]) {\n piles_box.setSelectedIndex(i);\n pile_label_help.setText(arg[i].toString());\n }\n }\n } else {\n piles_box.setSelectedIndex(1);\n pile_label_help.setText(piles_box.getSelectedItem().toString());\n }\n\n }",
"protected abstract void iniciarLayout();",
"public void retournerLesPilesParcelles() {\n int compteur = 0;\n //pour chacune des 4 piles , retourner la parcelle au sommet de la pile\n for (JLabel jLabel : pileParcellesGUI) {\n JLabel thumb = jLabel;\n retournerParcelles(thumb, compteur);\n compteur++;\n }\n }",
"public Perumahan() {\n initComponents();\n aturModelTabel();\n Tipe();\n showForm(false);\n showData(\"\");\n }",
"public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }",
"private void dibujarPuntos() {\r\n for (int x = 0; x < 6; x++) {\r\n for (int y = 0; y < 6; y++) {\r\n panelTablero[x][y].add(obtenerIcono(partida.getTablero()\r\n .getTablero()[x][y].getColor()));\r\n }\r\n }\r\n }",
"private void designCompleteSeatMapUi() {\n\n //load NetworkImageView\n loadNetworkImages();\n\n labelsLocalize();\n //passenger design\n designViewForSelectedPassengerList(seatMapData.getPassengerArray());\n\n //cabin design\n designColumnBySeatMarker(seatMapData.getSeatMarkarr(), layout_columnSeatMark);\n\n designSeatByColumn(seatMapData.getSeatdetailarr());\n\n lyt_seat.setVisibility(View.VISIBLE);\n\n setLeftVerticalRow(seatMapData.getSeatdetailarr(), lytLeftVerticalRow, parentViewForRecycler, relative_seatmap_parent);\n\n\n }",
"public void afficherLru() {\n\t\tint nbrCols = listEtape.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Processus> list: listEtape) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\n\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtape.size();i++) {\n\t\t\tArrayList<Processus> list = listEtape.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}",
"private void cargarFichaLepra_control() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\r\n\t\tficha_inicio_lepraService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean ficha_inicio = ficha_inicio_lepraService\r\n\t\t\t\t.existe_paciente_lepra(parameters);\r\n\t\t// log.info(\"ficha_inicio>>>>\" + ficha_inicio);\r\n\r\n\t\tif (ficha_inicio) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}",
"private void generateKontenWarta(JSONArray jadwal, JSONArray warta) {\n setUpLayout();\n\n int dataLength = jadwal.length();\n String tanggal = null, kebaktian = null, pengkotbah = null, judul = null, deskripsi = null,gedung =null, penerjemah = null, liturgis = null, pianis = null ,paduansuara = null;\n\n // Generate konten Warta Mingguan dalam loop for\n for (int i = 0; i < dataLength; i++){\n try {\n JSONArray jsonAtribut = jadwal.getJSONObject(i).getJSONArray(\"atribut\");\n\n tanggal = jadwal.getJSONObject(i).getString(\"tanggal\");\n\n myTableLayout = new TableLayout(getActivity());\n myTableLayout.setLayoutParams(tableParams);\n HSV = new HorizontalScrollView(getActivity());\n\n TR = new TableRow(getActivity());\n TR.setLayoutParams(rowTableParams);\n\n // Judul kolom\n IsiTabelHeader(\"Kebaktian\"); // Kebaktian\n IsiTabelHeader(\"Gedung\");\n IsiTabelHeader(\"Pengkotbah\"); // Pengkotbah\n IsiTabelHeader(\"Penerjemah\");\n IsiTabelHeader(\"Liturgis\");\n IsiTabelHeader(\"Pianis\");\n IsiTabelHeader(\"Paduan Suara\");\n\n myTableLayout.addView(TR, tableParams); // Add row to table\n\n JudulTabel = new TextView(getActivity());\n JudulTabel.setText(\"Jadwal khotbah pada tanggal \"+tanggal);\n JudulTabel.setLayoutParams(params);\n myLinearLayout.addView(JudulTabel);\n\n int length2 = jsonAtribut.length();\n for (int j = 0; j < length2; j++) {\n pengkotbah = jsonAtribut.getJSONObject(j).getString(\"pengkotbah\");\n kebaktian = jsonAtribut.getJSONObject(j).getString(\"kebaktianumum\");\n gedung=jsonAtribut.getJSONObject(j).getString(\"gedung\");\n penerjemah = jsonAtribut.getJSONObject(j).getString(\"penerjemah\");\n liturgis = jsonAtribut.getJSONObject(j).getString(\"liturgis\");\n pianis = jsonAtribut.getJSONObject(j).getString(\"pianis\");\n paduansuara = jsonAtribut.getJSONObject(j).getString(\"paduansuara\");\n\n TR = new TableRow(getActivity());\n TR.setLayoutParams(rowTableParams);\n // Kebaktian\n IsiTabel(kebaktian);\n IsiTabel(gedung);\n \n\t\t\t\t\t// Pengkotbah\n IsiTabel(pengkotbah);\n IsiTabel(penerjemah);\n IsiTabel(liturgis);\n IsiTabel(pianis);\n IsiTabel(paduansuara);\n // Add row to table\n myTableLayout.addView(TR, tableParams);\n }\n HSV.setScrollbarFadingEnabled(false);\n HSV.addView(myTableLayout);\n myLinearLayout.addView(HSV);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n dataLength = warta.length();\n\n for (int i = 0; i < dataLength; i++){\n JSONObject jsonobj = null;\n try {\n jsonobj = warta.getJSONObject(i);\n judul = jsonobj.getString(\"judul\");\n deskripsi = jsonobj.getString(\"deskripsi\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // Judul warta\n TextView wartaTV = new TextView(getActivity());\n wartaTV.setText(\"Judul: \" + judul);\n wartaTV.setLayoutParams(params);\n myLinearLayout.addView(wartaTV);\n\n // Deskripsi warta\n wartaTV = new TextView(getActivity());\n wartaTV.setText(\"Deskripsi: \" + deskripsi);\n wartaTV.setLayoutParams(paramsDeskripsi);\n myLinearLayout.addView(wartaTV);\n }\n }",
"public Parte() {\n\n \n \n initComponents();\n \n \n this.setResizable(false);\n fondo imagen =new fondo();\n String imagenes=imagen.fond();\n \n ((JPanel)getContentPane()).setOpaque(false);\n ImageIcon uno=new ImageIcon(this.getClass().getResource(imagenes));\n JLabel fondo= new JLabel(); \n fondo.setIcon(uno);\n getLayeredPane().add(fondo, JLayeredPane.FRAME_CONTENT_LAYER);\n fondo.setBounds(0,0,uno.getIconWidth(),uno.getIconHeight());\n\n this.setSize(900,700);\n \n\n \n Date now = new Date(System.currentTimeMillis());\n SimpleDateFormat date = new SimpleDateFormat(\"dd-MM-yyyy\");\n SimpleDateFormat hour = new SimpleDateFormat(\"HH:mm:ss\");\n this.jLabel32.setText(date.format(now));\n this.jLabel33.setText(hour.format(now));\n \n\n \n try{\n Statement st = cn.createStatement();\n ResultSet rs = st.executeQuery(\"SELECT * FROM variable WHERE id='1'\");\n \n String usu=\"\";\n \n while(rs.next()){\n usu=rs.getString(2);\n }\n JLnombreUSU.setText(usu);\n \n \n \n \n }catch(Exception e){\n \n System.out.println(\"auditoria\"+e);\n }\n \n PdfPA.setVisible(false);\n PrintPA.setVisible(false);\n \n PdfPM.setVisible(false);\n PrintPM.setVisible(false);\n \n PdfPS.setVisible(false);\n PrintPS.setVisible(false);\n \n pdfPD.setVisible(false);\n PrintPD.setVisible(false);\n \n \n \n \n \n \n \n \n\n\n\n }",
"public void HandelKlas() {\n\t\tSystem.out.println(\"HandelKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Handel(Plansza.getRzemieslnikNaPlanszy());\n\t\tPlansza.getNiewolnikNaPLanszy().Handel(Plansza.getArystokrataNaPlanszy());\n\t\t\n\t\tPlansza.getRzemieslnikNaPlanszy().Handel(Plansza.getNiewolnikNaPLanszy());\n\t\tPlansza.getRzemieslnikNaPlanszy().Handel(Plansza.getArystokrataNaPlanszy());\n\t\t\n\t\tPlansza.getArystokrataNaPlanszy().Handel(Plansza.getNiewolnikNaPLanszy());\n\t\tPlansza.getArystokrataNaPlanszy().Handel(Plansza.getRzemieslnikNaPlanszy());\n\t}",
"public void act() \n {\n setImage(new GreenfootImage(\"== Total Pembayaran ==\",50,Color.yellow,Color.black));\n }",
"private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }",
"private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }",
"public void pridajPane() {\n\t\tmojPane.setAlignment(Pos.CENTER);\n\n\t\tmojPane.getChildren().addAll(informacia, vyberPredmetov, tabulkaZiak);\n\t}",
"private void loadaspirasirt(){\n String m_idwarga = getSp().getString(\"id_warga\",null);\n Call<ResponModel>viewmypost = getApi().rtaspirasi();\n viewmypost.enqueue(new Callback<ResponModel>() {\n @Override\n public void onResponse(Call<ResponModel> call, Response<ResponModel> response) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"Hasil\"+response.body());\n mItem= response.body().getResult();\n mAdapter = new AdapterRT(mItem,AspirasiRTActivity.this);\n mylistpost.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onFailure(Call<ResponModel> call, Throwable t) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"GAGAL\");\n }\n });\n }",
"public Karyawan() {\n initComponents();\n setResizable(false);\n tampilkan_data();\n kosong_form();\n }",
"public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }",
"public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }",
"private void addControl() {\n // Gan adapter va danh sach tab\n PagerAdapter adapter = new PagerAdapter(getSupportFragmentManager());\n // Them noi dung cac tab\n adapter.AddFragment(new TourMapTab());\n adapter.AddFragment(new TourInfoTab());\n adapter.AddFragment(new TourMapImageTab());\n // Set adapter danh sach tab\n ViewPager viewPager = ActivityManager.getInstance().activityTourTabsBinding.viewpager;\n TabLayout tabLayout = ActivityManager.getInstance().activityTourTabsBinding.tablayout;\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n // Them vach ngan cach cac tab\n View root = tabLayout.getChildAt(0);\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColor(getResources().getColor(R.color.colorPrimaryDark));\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n // Icon cac tab\n tabLayout.getTabAt(0).setIcon(R.drawable.tour_map_icon_select);\n tabLayout.getTabAt(1).setIcon(R.mipmap.tour_info_icon);\n tabLayout.getTabAt(2).setIcon(R.mipmap.tour_map_image_icon);\n\n // Doi mau tab icon khi click\n tabLayout.addOnTabSelectedListener(new TabLayout.ViewPagerOnTabSelectedListener(viewPager) {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n super.onTabSelected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.drawable.tour_map_icon_select);\n break;\n case 1:\n tab.setIcon(R.drawable.tour_info_icon_select);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon_select);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n super.onTabUnselected(tab);\n switch (tab.getPosition()){\n case 0:\n tab.setIcon(R.mipmap.tour_map_icon);\n break;\n case 1:\n tab.setIcon(R.mipmap.tour_info_icon);\n break;\n case 2:\n tab.setIcon(R.mipmap.tour_map_image_icon);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n super.onTabReselected(tab);\n }\n }\n );\n }",
"public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }",
"void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}",
"private void getPTs(){\n mPyTs = estudioAdapter.getListaPesoyTallasSinEnviar();\n //ca.close();\n }",
"private void drawMarkers () {\n // Danh dau chang chua di qua\n boolean danhDauChangChuaDiQua = false;\n // Ve tat ca cac vi tri chang tren ban do\n for (int i = 0; i < OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().size(); i++) {\n\n TourTimesheet timesheet = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().get(i);\n // Khoi tao vi tri chang\n LatLng position = new LatLng(timesheet.getmBuildingLocation().latitude, timesheet.getmBuildingLocation().longitude);\n // Thay doi icon vi tri chang\n MapNumberMarkerLayoutBinding markerLayoutBinding = DataBindingUtil.inflate(getLayoutInflater(), R.layout.map_number_marker_layout, null, false);\n // Thay doi so thu tu timesheet\n markerLayoutBinding.number.setText(String.valueOf(i + 1));\n // Thay doi trang thai markup\n // Lay ngay cua tour\n Date tourDate = OnlineManager.getInstance().mTourList.get(tourOrder).getmDate();\n // Kiem tra xem ngay dien ra tour la truoc hay sau hom nay. 0: hom nay, 1: sau, -1: truoc\n int dateEqual = Tour.afterToday(tourDate);\n // Kiem tra xem tour da dien ra chua\n if (dateEqual == -1) {\n // Tour da dien ra, thay doi mau sac markup thanh xam\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n } else if (dateEqual == 1) {\n // Tour chua dien ra, thay doi mau sac markup thanh vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Kiem tra xem chang hien tai la truoc hay sau gio nay. 0: gio nay, 1: gio sau, -1: gio truoc\n int srcStartEqual = Tour.afterCurrentHour(timesheet.getmStartTime());\n int srcEndEqual = Tour.afterCurrentHour(timesheet.getmEndTime());\n if(srcStartEqual == 1){\n // Chang chua di qua\n if (danhDauChangChuaDiQua == true) {\n // Neu la chang sau chang sap toi thi chuyen thanh mau mau vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Neu la chang ke tiep thi giu nguyen mau do\n danhDauChangChuaDiQua = true;\n }\n } else if(srcStartEqual == -1 && srcEndEqual == 1){\n // Chang dang di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP);\n } else{\n // Chang da di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n }\n }\n // Marker google map\n View markerView = markerLayoutBinding.getRoot();\n // Khoi tao marker\n MarkerOptions markerOptions = new MarkerOptions()\n .draggable(false)\n .title(timesheet.getmBuildingName() + '-' + timesheet.getmClassroomName())\n .position(position)\n .icon(BitmapDescriptorFactory.fromBitmap(getMarkerBitmapFromView(markerView)));\n if (timesheet.getmClassroomNote() != null && !timesheet.getmClassroomNote().equals(\"\") && !timesheet.getmClassroomNote().equals(\"null\")) {\n markerOptions.snippet(timesheet.getmClassroomNote());\n }\n mMap.addMarker(markerOptions);\n // add marker to the array list to display on AR Camera\n markerList.add(markerOptions);\n // Goi su kien khi nhan vao tieu de marker\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n // TODO: Chuyen sang man hinh thong tin chang khi nhan vao tieu de chang\n openTimesheetInfo(marker.getTitle());\n }\n });\n }\n }",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"void getPlanificacion(int tipoPlanificacion);",
"@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }",
"@Override\n public void onClick(View view) {\n Button trykket = null;\n for (int i = 0; i < 30 ; i++) {\n if (view==buttons.get(i)){\n trykket=buttons.get(i);\n }\n }\n assert trykket != null;\n gæt(trykket);\n\n //vi afslutter spiller hvis det er slut eller vundet.\n if(logik.erSpilletSlut()){\n if(logik.erSpilletTabt()){\n // die.start();\n slutspilllet(false);\n }\n if(logik.erSpilletVundet()) slutspilllet(true);\n }\n\n }",
"public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }",
"private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }",
"public Layer konstruisiFinalniLayer(ArrayList<Integer> a) {\n\t\tLayer lejer = new Layer(sirina, visina);\r\n\t\tArrayList<Layer> aktivniLejeri=new ArrayList();\r\n\r\n\t\tif (a.size() == 0) return lejer;\r\n\t\tfor ( Integer i : layers.keySet()) {\r\n\t\t\tif (inAktivni(i, a)) {\r\n\t\t\t\taktivniLejeri.add(layers.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (aktivniLejeri.size() == 0) return lejer;\r\n\t\tfor (int i = 0; i < sirina; i++) {\r\n\t\t\tfor (int j = 0; j < visina; j++) {\r\n\t\t\t\tPiksel piksel = aktivniLejeri.get(0).getPixel(i, j);\r\n\t\t\t\tdouble r = piksel.getR() * 1.0 / 255;\r\n\t\t\t\tdouble g = piksel.getG() * 1.0 / 255;\r\n\t\t\t\tdouble b = piksel.getB() * 1.0 / 255;\r\n\t\t\t\tdouble opacity = piksel.getOpacity() * 1.0 / 255;\r\n\r\n\t\t\t\t\r\n\t\t\t\tif (i == 410 && j == 40) {\r\n\t\t\t\t\t//std::cout << \"s\";\r\n\t\t\t\t}\r\n\t\t\t\tif (i == 40 && j == 410) {\r\n\t\t\t\t\t//std::cout << \"s\";\r\n\t\t\t\t}\r\n\t\t\t\t\tfor (int k = 1; k != aktivniLejeri.size(); k++) {\r\n\t\t\t\t\t\tif (opacity == 1.0) { continue; }\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tPiksel p1 = aktivniLejeri.get(k).getPixel(i,j);\r\n\t\t\t\t\t\tdouble r1 = p1.getR() * 1.0 / 255;\r\n\t\t\t\t\t\tdouble g1 = p1.getG() * 1.0 / 255;\r\n\t\t\t\t\t\tdouble b1 = p1.getB() * 1.0 / 255;\r\n\t\t\t\t\t\tdouble opacity1= p1.getOpacity() * 1.0 / 255;\r\n\t\t\t\t\t\tif (opacity1 == 0)continue;\r\n\t\t\t\t\t\tdouble temp = (1 - opacity)* opacity1 ;\r\n\t\t\t\t\t\tdouble opt = opacity + temp;\r\n\t\t\t\t\t\tdouble temp2 = temp / opt;\r\n\t\t\t\t\t\tdouble temp3 = opacity / opt;\r\n\t\t\t\t\t\tdouble rt = r * temp3 + r1 * temp2;\r\n\t\t\t\t\t\tdouble gt = g * temp3 + g1 * temp2;\r\n\t\t\t\t\t\tdouble bt = b * temp3 + b1 * temp2;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tr = rt;\r\n\t\t\t\t\t\tb = bt;\r\n\t\t\t\t\t\tg = gt;\r\n\t\t\t\t\t\topacity = opt;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPiksel novi = new Piksel(r*255, g*255, b*255, 0, opacity*255);\r\n\t\t\t\tlejer.overwritepixel(i, j, novi);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn lejer;\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t}",
"public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }",
"private void luoKomponentit(Container pane) {\n GridBagLayout gbl = new GridBagLayout();\n GridBagConstraints c = new GridBagConstraints();\n \n pane.setLayout(gbl);\n \n JPanel peliPanel = new JPanel();\n JPanel pelaajatPanel = new JPanel();\n \n c.fill = GridBagConstraints.BOTH;\n \n c.weighty = 0.5;\n c.weightx = 1;\n c.gridx = 0;\n c.gridy = 0;\n pane.add(peliPanel,c,1);\n \n c.weightx = 0.4;\n c.ipadx = 50;\n c.gridx = 1;\n pane.add(pelaajatPanel,c,1);\n pelaajatPanel.setBorder(new LineBorder(Color.LIGHT_GRAY, 2));\n \n luoPeliKomponentit(peliPanel);\n luoPelaajaKomponentit(pelaajatPanel);\n }",
"public void actionsTouches () {\n\t\t//Gestion des deplacements du mineur si demande\n\t\tif (Partie.touche == 'g' || Partie.touche == 'd' || Partie.touche == 'h' || Partie.touche == 'b') deplacements();\n\n\t\t//Affichage du labyrinthe et des instructions, puis attente de consignes clavier.\n\t\tpartie.affichageLabyrinthe();\n\n\t\t//Quitte la partie si demande.\n\t\tif (Partie.touche == 'q') partie.quitter();\n\n\t\t//Trouve et affiche une solution si demande.\n\t\tif (Partie.touche == 's') affichageSolution();\n\n\t\t//Recommence la partie si demande.\n\t\tif (Partie.touche == 'r') {\n\t\t\tgrille.removeAll();\n\t\t\tpartie.initialisation();\n\t\t}\n\n\t\t//Affichage de l'aide si demande\n\t\tif (Partie.touche == 'a') {\n\t\t\tString texteAide = new String();\n\t\t\tswitch(themeJeu) {\n\t\t\tcase 2 : texteAide = \"Le but du jeu est d'aider Link à trouver la sortie du donjon tout en récupérant le(s) coffre(s).\\n Link doit egalement recuperer la Master Sword qui permet de tuer le monstre bloquant le chemin.\\n\\nLink se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 3 : texteAide = \"Le but du jeu est d'aider Samus à trouver la sortie du vaisseau tout en récupérant le(s) émeraude(s).\\nSamus doit egalement recuperer la bombe qui permet de tuer le metroid qui bloque l'accès à la sortie.\\n\\nSamus se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 4 : texteAide = \"Le but du jeu est d'aider le pompier à trouver la sortie du batiment tout en sauvant le(s) rescapé(s).\\nLe pompier doit egalement recuperer l'extincteur qui permet d'éteindre le feu qui bloque l'accès à la sortie.\\n\\nLe pompier se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 5 : texteAide = \"Le but du jeu est d'aider Mario à trouver le drapeau de sortie tout en ramassant le(s) pièce(s).\\nMario doit egalement recuperer l'étoile d'invincibilité qui permet de se débarasser du Goomba qui l'empêche de sortir.\\n\\nMario se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Here we gooo !\"; break;\n\t\t\tdefault : texteAide = \"Le but du jeu est d'aider le mineur à trouver la sortie du labyrinthe tout en extrayant le(s) filon(s).\\nLe mineur doit egalement recuperer la clef qui permet l'ouverture de le porte qui bloque l'accès à la sortie.\\n\\nLe mineur se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n============================================ AIDE ========================================\\n\\n\" + texteAide + \"\\n\\n==========================================================================================\\n\");\n\t\t\tJOptionPane.showMessageDialog(null, texteAide, \"Aide\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tPartie.touche = ' ';\n\t\t}\n\n\t\t//Affichage de les infos si demande\n\t\tif (Partie.touche == 'i') {\n\t\t\tSystem.out.println(\"\\n============================================ INFOS =======================================\\n\\nCe jeu a ete developpe par Francois ADAM et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\\n\\n==========================================================================================\\n\");\n\t\t\tPartie.touche = ' ';\n\t\t\tJOptionPane.showMessageDialog(null, \"Ce jeu a été développé par François Adam et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\", \"Infos\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/EMN.png\")));\n\t\t}\n\n\t\t//Nettoyage de l'ecran de console\n\t\tSystem.out.println(\"\\n==========================================================================================\\n\");\n\t}",
"public abstract String dohvatiKontakt();",
"@Override\r\n public void prenderVehiculo() {\r\n System.out.println(\"___________________________________________________\");\r\n System.out.println(\"prender Jet\");\r\n }",
"@RequestMapping(value = \"/daftar-ranap\")\n\t\tprivate String viewAllPasienRanap(Model model) throws IOException {\n\t\t\tList<KamarModel> kamarList = kamarService.getAllKamarByStatus(1);\n\t\t\t\n\t\t\tMap<KamarModel, PasienModel> map = new HashMap<>();\n\t\t\t\n\t\t\tfor(KamarModel kamar : kamarList) {\n\t\t\t\tSystem.out.println(kamar.getStatus());\n\t\t\t\tString idPasien = String.valueOf(kamar.getIdPasien());\n\t\t\t\t\n\t\t\t\tmap.put(kamar, pasienService.getPasien(idPasien));\n\t\t\t}\n\t\t\t\n\t\t\tmodel.addAttribute(\"map\", map);\n\t\t\tmodel.addAttribute(\"kamarList\", kamarList);\n\t\t\treturn \"daftar-ranap\";\n\t\t}",
"@Override\n public void onGetResult(List<Punkty> punkties) {\n listaMeczy=punkties;\n\n gosp=new String[listaMeczy.size()];\n gosc=new String[listaMeczy.size()];\n betGosp=new int[listaMeczy.size()];\n betGosc=new int[listaMeczy.size()];\n wynGosc=new int[listaMeczy.size()];\n wynGosp=new int[listaMeczy.size()];\n punktyZaMecz=new int[listaMeczy.size()];\n\n Punkty pom55;\n\n //przypisanie danych\n for (int i = 0; i < gosp.length; i++) {\n\n pom55 = listaMeczy.get(i);\n\n gosp[i]=pom55.getGosp();\n gosc[i]=pom55.getGosc();\n betGosp[i]=pom55.getBet_gosp();\n betGosc[i]=pom55.getBet_gosc();\n wynGosp[i]=pom55.getWyn_gosp();\n wynGosc[i]=pom55.getWyn_gosc();\n punktyZaMecz[i]=pom55.getPunkty();\n }\n\n //standard\n CaptionedImagesAdapter3 adapter = new CaptionedImagesAdapter3(gosp, gosc, betGosp, betGosc, wynGosp, wynGosc);\n recyclerView.setAdapter(adapter);\n LinearLayoutManager layoutManager=new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n adapter.setListener(new CaptionedImagesAdapter3.Listener() {\n @Override\n public void onClick(int position) {\n Toast.makeText(getApplicationContext(), punktyZaMecz[position]+\" points\", Toast.LENGTH_SHORT).show();\n }\n });\n\n }",
"public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tbl_kembali SET nm_kategori = '\"+ nmKategori +\"',\"\n + \"ala_kategori = '\"+ alaKategori +\"',\"\n + \"no_kategori = '\"+ noKategori +\"',\"\n + \"kame_kategori = '\"+ kameKategori +\"',\"\n + \"kd_kategori = '\"+ kdKategori +\"',\"\n + \"sewa_kategori = '\"+ sewaKategori +\"',\"\n + \"kembali_kategori = '\"+ lamKategori +\"'\"\n + \"WHERE lambat_kategori = '\" + lambatKategori +\"'\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }",
"private void abreContasPagas() {\n FiltroDataListaFornecedor dataListaFornecedor\n = new FiltroDataListaFornecedor(\n new String[]{\n \"/br/rel/caixa/ContasPagas.jasper\",\n \"MES\",\n \"0\"});\n dataListaFornecedor.setVisible(true);\n }",
"public void toon(TileSet tileSet, String kaart) {\n Assert.notNull(lader);\n KaartDisplay display = new KaartDisplay(tileSet);\n Wereld wereld = lader.laad(kaart);\n display.setKaart(wereld.getKaart());\n\n SnelstePadDebugPanel spd = new SnelstePadDebugPanel(display, wereld, choices);\n TspDebugPanel tsp = new TspDebugPanel(display, wereld, tspChoices);\n PlanDebugPanel pdb = new PlanDebugPanel(display, wereld, hplans);\n\n HandelsPositiePanel hpos = new HandelsPositiePanel();\n display.addHandelsPositieListener(hpos);\n\n JFrame f = new JFrame();\n JPanel panel = new JPanel(new BorderLayout(8, 8));\n JPanel rightTop = new JPanel(new BorderLayout(8, 8));\n Box right = new Box(BoxLayout.Y_AXIS);\n rightTop.add(right, BorderLayout.NORTH);\n panel.add(MainGui.wrapInScrolPane(display,tileSet.getTileSize()), BorderLayout.WEST);\n panel.add(rightTop, BorderLayout.CENTER);\n right.add(Box.createVerticalStrut(8));\n right.add(spd);\n right.add(Box.createVerticalStrut(8));\n right.add(tsp);\n right.add(Box.createVerticalStrut(8));\n right.add(pdb);\n right.add(hpos);\n\n f.setSize(1024, 800);\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n f.setContentPane(panel);\n f.setVisible(true);\n\n }",
"public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}",
"public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }",
"public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}",
"public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}",
"private void getDataKitabKuning(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Kitab Kuning\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }",
"private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }",
"public JPanel convertisseur(){\n JPanel pano = new JPanel();\n stop.addActionListener(this);\n envoi.addActionListener(this);\n \n //empeche qu'un retard essaye de fuck up la sortie\n this.resultat.setFocusable(false);\n \n //le GridBagLayout permet d'avoir une grille relative entre les elements\n pano.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.fill = GridBagConstraints.HORIZONTAL;\n c.gridx = 0;\n c.gridy = 1;\n pano.add(saisie, c);\n c.gridx = 1;\n pano.add(format, c);\n c.gridx = 3;\n pano.add(resultat, c);\n c.gridx = 2;\n pano.add(envoi, c);\n c.gridy = 2;\n pano.add(stop, c);\n c.gridy = 0;\n c.gridx = 0;\n pano.add(new JLabel(\"Heure de depart \"), c);\n c.gridx = 1;\n pano.add(new JLabel(\"duree\"), c);\n return pano;\n }",
"public void asetaTeksti(){\n }",
"public void bindPlatsDataExample(){\n Categorie categorie = new Categorie();\n categorie.setId(1);\n for (String value : getTajineExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie);\n this.add(plat);\n }\n\n //INSERT CATEGORIE COUSCOUS PLAT (la categorie couscous est 2 dans notre exemple\n Categorie categorie2 = new Categorie();\n categorie2.setId(2);\n for (String value : getCouscousExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie2);\n this.add(plat);\n }\n\n //INSERT CATEGORIE CASSOLETTES PLAT (la categorie couscous est 3 dans notre exemple\n Categorie categorie3 = new Categorie();\n categorie3.setId(3);\n for (String value : getCassoletteExampleList()) {\n Plat plat = new Plat();\n plat.setNom(value);\n plat.setCategorie(categorie3);\n this.add(plat);\n }\n }",
"public void montarTela(){\n ControllerListener listener = new BaseControllerListener(){\n @Override\n public void onFinalImageSet(String id, Object imageInfo, Animatable animatable) {\n super.onFinalImageSet(id, imageInfo, animatable);\n }\n\n @Override\n public void onFailure(String id, Throwable throwable) {\n super.onFailure(id, throwable);\n }\n\n @Override\n public void onIntermediateImageFailed(String id, Throwable throwable) {\n super.onIntermediateImageFailed(id, throwable);\n }\n\n @Override\n public void onIntermediateImageSet(String id, Object imageInfo) {\n super.onIntermediateImageSet(id, imageInfo);\n }\n\n @Override\n public void onRelease(String id) {\n super.onRelease(id);\n }\n\n @Override\n public void onSubmit(String id, Object callerContext) {\n super.onSubmit(id, callerContext);\n }\n };\n\n String urlImagem = DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\");\n\n Uri uri = null;\n DraweeController dc = null;\n\n if(urlImagem.contains(\"https\")){\n uri = Uri.parse(DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n } else {\n uri = Uri.parse(\"https://tocaredev.azurewebsites.net\"+DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n }\n ivFotoPerfil.setController(dc);\n\n tvUsername.setText(DetalhesPaciente.paciente.getNome() + \" \" + DetalhesPaciente.paciente.getSobrenome());\n\n int idade = Util.retornaIdade(DetalhesPaciente.paciente.getDataNascimento());\n\n tvDataNascimento.setText(DetalhesPaciente.paciente.getDataNascimento() + \" (\" + idade + \")\");\n \n etAnamnese.setText(DetalhesPaciente.paciente.getProntuario().getAnamnese());\n etExameFisico.setText(DetalhesPaciente.paciente.getProntuario().getExameFisico());\n etPlanoTerapeutico.setText(DetalhesPaciente.paciente.getProntuario().getPlanoTerapeutico());\n etHipoteseDiagnostica.setText(DetalhesPaciente.paciente.getProntuario().getHipoteseDiagnostica());\n \n }",
"public void themesa()\n {\n \n \n \n \n }",
"@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}",
"private void tampilkan_dataT() {\n \n DefaultTableModel tabelmapel = new DefaultTableModel();\n tabelmapel.addColumn(\"Tanggal\");\n tabelmapel.addColumn(\"Berat\");\n tabelmapel.addColumn(\"Kategori\");\n tabelmapel.addColumn(\"Harga\");\n \n try {\n connection = Koneksi.connection();\n String sql = \"select a.tgl_bayar, b.berat, b.kategori, b.total_bayar from transaksi a, data_transaksi b where a.no_nota=b.no_nota AND a.status_bayar='Lunas' AND MONTH(tgl_bayar) = '\"+date1.getSelectedItem()+\"' And YEAR(tgl_bayar) = '\"+c_tahun.getSelectedItem()+\"'\";\n java.sql.Statement stmt = connection.createStatement();\n java.sql.ResultSet rslt = stmt.executeQuery(sql);\n while (rslt.next()) {\n Object[] o =new Object[4];\n o[0] = rslt.getDate(\"tgl_bayar\");\n o[1] = rslt.getString(\"berat\");\n o[2] = rslt.getString(\"kategori\");\n o[3] = rslt.getString(\"total_bayar\");\n tabelmapel.addRow(o);\n }\n tabel_LK.setModel(tabelmapel);\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Gagal memuat data\");\n }\n \n }",
"private void luoPelaajaKomponentit(JPanel panel) {\n GridBagLayout gbl = new GridBagLayout();\n GridBagConstraints c = new GridBagConstraints();\n panel.setLayout(gbl);\n \n c.fill = GridBagConstraints.HORIZONTAL;\n c.gridwidth = 1;\n c.gridheight = 1;\n c.weightx = 0.5;\n c.weighty = 0.1;\n c.gridx = 0;\n c.gridy = 0;\n \n kierros = new JLabel(\"Kierros: \" + peli.getKierros());\n kierros.setHorizontalAlignment(JLabel.CENTER);\n kierros.setBorder(new BevelBorder(0));\n \n panel.add(kierros,c);\n \n JPanel pelaajaPanel = new JPanel();\n JPanel npc1Panel = new JPanel();\n JPanel npc2Panel = new JPanel();\n JPanel npc3Panel = new JPanel();\n \n c.fill = GridBagConstraints.BOTH;\n c.weighty = 0.5;\n c.gridy = 1;\n panel.add(pelaajaPanel,c);\n \n c.gridy = 2;\n panel.add(npc1Panel,c);\n \n c.gridy = 3;\n panel.add(npc2Panel,c);\n \n c.gridy = 4;\n panel.add(npc3Panel,c);\n \n ppanel = new PelaajaPanel(nimigen.haeNimi(), pelaajaPanel, peli.getPelaajat().get(0), 0, this);\n ppanel.luoKomponentit();\n \n n1panel = new NpcPanel(nimigen.haeNimi(), npc1Panel, peli.getPelaajat().get(1), 1, this);\n n1panel.luoKomponentit();\n \n n2panel = new NpcPanel(nimigen.haeNimi(), npc2Panel, peli.getPelaajat().get(2), 2, this);\n n2panel.luoKomponentit();\n \n n3panel = new NpcPanel(nimigen.haeNimi(), npc3Panel, peli.getPelaajat().get(3), 3, this);\n n3panel.luoKomponentit();\n }",
"private Pannello creaPanDate() {\n /* variabili e costanti locali di lavoro */\n Pannello panDate = null;\n Campo campoDataInizio;\n Campo campoDataFine;\n JButton bottone;\n ProgressBar pb;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(DialogoStatistiche.nomeDataIni);\n campoDataInizio.decora().eliminaEtichetta();\n campoDataInizio.decora().etichettaSinistra(\"dal\");\n campoDataInizio.decora().obbligatorio();\n campoDataFine = CampoFactory.data(DialogoStatistiche.nomeDataFine);\n campoDataFine.decora().eliminaEtichetta();\n campoDataFine.decora().etichettaSinistra(\"al\");\n campoDataFine.decora().obbligatorio();\n\n /* bottone esegui */\n bottone = new JButton(\"Esegui\");\n bottone.setOpaque(false);\n this.setBottoneEsegui(bottone);\n bottone.addActionListener(new DialogoStatistiche.AzioneEsegui());\n bottone.setFocusPainted(false);\n\n /* progress bar */\n pb = new ProgressBar();\n this.setProgressBar(pb);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.setAllineamento(Layout.ALLINEA_CENTRO);\n panDate.creaBordo(\"Periodo di analisi\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(bottone);\n panDate.add(Box.createHorizontalGlue());\n panDate.add(pb);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return panDate;\n }",
"void rozpiszKontraktyPart2EV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\t//wektor z ostatecznie ustalona cena\n\t\t//rozpiszKontrakty() - wrzuca jako ostatnia cene cene obowiazujaa na lokalnym rynku \n\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\n\t\t\n\t\t//ograniczenia handlu prosumenta\n\t\tArrayList<DayData> constrainMarkerList = new ArrayList<DayData>();\n\t\t\n\t\t//ograniczenia handlu EV\n\t\tArrayList<DayData> constrainMarkerListEV = new ArrayList<DayData>();\n\t\t\n\t\t//print(listaFunkcjiUzytecznosci.size());\n\t\t//getInput(\"rozpiszKontraktyPart2EV first stop\");\n\t\t\n\t\tint i=0;\n\t\twhile(i<listaFunkcjiUzytecznosci.size())\n\t\t{\n\t\t\t\n\t\t\t//lista funkcji uzytecznosci o indeksie i\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(i);\n\t\t\t\n\t\t\t//point z cena = cena rynkowa\n\t\t\tPoint point = L1.get(index);\n\t\t\t\n\t\t\t\n\t\t\tDayData d =rozpiszKontraktyPointToConstrainMarker(point, wolumenHandlu, sumaKupna, sumaSprzedazy, i);\n\t\t\t\n\t\t\tif (i<Stale.liczbaProsumentow)\n\t\t\t{\n\t\t\t\tconstrainMarkerList.add(d);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconstrainMarkerListEV.add(d);\n\t\t\t\t\n\t\t\t\t/*print(d.getKupuj());\n\t\t\t\tprint(d.getConsumption());\n\t\t\t\tprint(d.getGeneration());\n\t\t\t\t\n\t\t\t\tgetInput(\"rozpiszKontraktyPart2EV - Ostatni kontrakt\");*/\n\t\t\t}\n\n\t\t\t\n\t\t\t//print(\"rozpiszKontraktyPart2EV \"+i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tArrayList<Prosument> listaProsumentow =listaProsumentowWrap.getListaProsumentow();\n\n\t\t//wyywolaj pobranie ontraktu\n\t\ti=0;\n\t\twhile (i<Stale.liczbaProsumentow)\n\t\t{\n\t\t\tif (i<constrainMarkerListEV.size())\n\t\t\t{\n\t\t\t\t((ProsumentEV)listaProsumentow.get(i)).getKontrakt(priceVector,constrainMarkerList.get(i),constrainMarkerListEV.get(i));\n\t\t\t\t//print(\"constrainMarkerListEV \"+i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlistaProsumentow.get(i).getKontrakt(priceVector,constrainMarkerList.get(i));\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//getInput(\"rozpiszKontraktyPart2EV -end\");\n\t}",
"public void leerPlanDieta(int id_paciente);",
"public telaE() {\n initComponents();\n panDel.setVisible(false);\n }",
"Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }",
"public void initWeidget(View view) {\n\t\tswitch (tem_type) {\n\t\tcase 1:// 数据库\n\t\t\tpagerAdapter = new PagerAdapter<HashMap<String, String>>(getFragmentManager(), mapList,\n\t\t\t\t\tConstants.PageType_data) {\n\n\t\t\t\t@Override\n\t\t\t\tpublic String getName(HashMap<String, String> item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn item.get(\"pro_cn_name\");\n\t\t\t\t}\n\n\t\t\t};\n\t\t\tbreak;\n\t\tcase 0:// 价格库\n\t\t\tpagerAdapter = new PagerAdapter<HashMap<String, String>>(getFragmentManager(), mapList,\n\t\t\t\t\tConstants.PageType_price) {\n\n\t\t\t\t@Override\n\t\t\t\tpublic String getName(HashMap<String, String> item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn item.get(\"pro_cn_name\");\n\t\t\t\t}\n\n\t\t\t};\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\tocvp.setAdapter(pagerAdapter);\n\t\tpsts.setViewPager(ocvp);\n\t}",
"public void cargarDimensionPadre()\r\n/* 230: */ {\r\n/* 231:296 */ if (getMascara(this.dimension).equals(this.dimensionContable.getMascara())) {\r\n/* 232:297 */ this.dimensionContable.setIndicadorMovimiento(true);\r\n/* 233: */ } else {\r\n/* 234:299 */ this.dimensionContable.setIndicadorMovimiento(false);\r\n/* 235: */ }\r\n/* 236:302 */ this.listaDimensionContablePadre = this.servicioDimensionContable.obtenerListaDimensionPadre(this.dimensionContable);\r\n/* 237: */ }",
"@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }",
"private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}",
"public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }",
"private void establecerTablaPlatillos() {\n Object[] columnas = {\"Platillo\", \"Cantidad\", \"Costo\"};\n Object[][] modelo = new Object[platillosAVender.size()][3];\n int x = 0;\n\n for (VentaPlatillo ventaPlatillo : platillosAVender) {\n\n modelo[x][0] = ventaPlatillo.getPlatillo().getNombre();\n modelo[x][1] = ventaPlatillo.getCantidad();\n modelo[x][2] = ventaPlatillo.getCosto();\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaPlatillosAVender.setDefaultEditor(Object.class, null);\n tablaPlatillosAVender.setModel(new DefaultTableModel(modelo, columnas));\n tablaPlatillosAVender.setCellSelectionEnabled(false);\n tablaPlatillosAVender.setRowSelectionAllowed(false);\n txtTotal.setText(total + \"\");\n }",
"private void actionRoute(final GoogleMap googleMap){\n mMap = googleMap;\n PengajianApi pengajianApi = ServiceGenerator.getPengajianApi();\n Call<JadwalPengajianResponse> responseCall = pengajianApi.jadwalPengajian();\n responseCall.enqueue(new Callback<JadwalPengajianResponse>() {\n @Override\n public void onResponse(Call<JadwalPengajianResponse> call, Response<JadwalPengajianResponse> response) {\n if (response.isSuccessful()){\n// // tampung response ke variable\n\n int total= response.body().getMenuPengajians().size();\n\n for (int a=0;a<total;a++){\n Double model1 = Double.valueOf(response.body().getMenuPengajians().get(a).getLatitude());\n Double model2 = Double.valueOf(response.body().getMenuPengajians().get(a).getLongitude());\n MarkerOptions markerOptions = new MarkerOptions();\n LatLng latLng = new LatLng(model1,model2);\n markerOptions.position(latLng);\n Marker m = mMap.addMarker(markerOptions);\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11));\n// menuPengajians.add(model);\n }\n// JadwalPengajianResponse item = new JadwalPengajianResponse(menuPengajians);\n// jadwalPengajianResponses.add(item);\n////\n\n////\n\n }\n\n }\n\n @Override\n public void onFailure(Call<JadwalPengajianResponse> call, Throwable t) {\n\n }\n });\n\n\n\n }",
"@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }",
"private void buildTank(){\n LayoutInflater layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n //add foliage\n ImageView foliageImageView = (ImageView) layoutInflater.inflate(R.layout.foliage_layout, null);\n\n foliageImageView.setX(0);\n foliageImageView.setY(0);\n foliageImageView.setAlpha((float) 0.97);\n fishTankLayout.addView(foliageImageView,0);\n\n //add virtual fish\n //add foliage\n fishImageView = (ImageView) layoutInflater.inflate(R.layout.fish_image, null);\n fishImageView.setScaleX((float) .3);\n fishImageView.setScaleY((float) .3);\n fishImageView.setX(fish.x);\n fishImageView.setY(fish.y);\n fishImageView.setAlpha((float) 0.97);\n fishTankLayout.addView(fishImageView,0);\n }",
"public Leiho4ZerbitzuGehigarriak(Ostatua hartutakoOstatua, double prezioTot, Date dataSartze, Date dataIrtetze,\r\n\t\t\tint logelaTot, int pertsonaKop) {\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\".\\\\Argazkiak\\\\logoa.png\"));\r\n\t\tgetContentPane().setLayout(null);\r\n\t\tthis.setBounds(350, 50, 600, 600);\r\n\t\tthis.setResizable(false); // neurketak ez aldatzeko\r\n\t\tthis.setSize(new Dimension(600, 600));\r\n\t\tthis.setTitle(\"Airour ostatu bilatzailea\");\r\n\t\tprezioTot2 = prezioTot;\r\n\t\t// botoiak\r\n\t\tbtn_next.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tMetodoakLeihoAldaketa.bostgarrenLeihoa(hartutakoOstatua, prezioTot2, dataSartze, dataIrtetze, logelaTot,\r\n\t\t\t\t\t\tpertsonaKop, cboxPentsioa.getSelectedItem() + \"\", zerbitzuArray, gosaria);\r\n\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_next.setBounds(423, 508, 122, 32);\r\n\t\tbtn_next.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_next.setBackground(Color.LIGHT_GRAY);\r\n\t\tbtn_next.setForeground(Color.RED);\r\n\t\tgetContentPane().add(btn_next);\r\n\r\n\t\tbtn_prev.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// System.out.println(hartutakoOstatua.getOstatuMota());\r\n\t\t\t\tif (hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaHotelak(hartutakoOstatua, dataSartze, dataIrtetze);\r\n\t\t\t\telse\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaEtxeak(hartutakoOstatua, prezioTot, dataIrtetze, dataIrtetze);\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_prev.setBounds(38, 508, 107, 32);\r\n\t\tbtn_prev.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_prev.setForeground(Color.RED);\r\n\t\tbtn_prev.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(btn_prev);\r\n\r\n\t\trestart.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tMetodoakLeihoAldaketa.lehenengoLeihoa();\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\trestart.setBounds(245, 508, 72, 32);\r\n\t\trestart.setForeground(Color.RED);\r\n\t\trestart.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(restart);\r\n\r\n\t\t// panela\r\n\t\tlblIzena.setText(hartutakoOstatua.getIzena());\r\n\t\tlblIzena.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblIzena.setFont(new Font(\"Verdana\", Font.BOLD | Font.ITALIC, 21));\r\n\t\tlblIzena.setBounds(0, 13, 594, 32);\r\n\t\tgetContentPane().add(lblIzena);\r\n\r\n\t\tlblLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblLogelak.setBounds(210, 114, 72, 25);\r\n\t\tgetContentPane().add(lblLogelak);\r\n\r\n\t\ttxtLogelak = new JTextField();\r\n\t\ttxtLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtLogelak.setEditable(false);\r\n\t\ttxtLogelak.setText(logelaTot + \"\");\r\n\t\ttxtLogelak.setBounds(285, 116, 32, 20);\r\n\t\ttxtLogelak.setColumns(10);\r\n\t\tgetContentPane().add(txtLogelak);\r\n\r\n\t\tlblPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblPentsioa.setBounds(210, 165, 72, 14);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tlblPentsioa.setVisible(false);\r\n\t\tgetContentPane().add(lblPentsioa);\r\n\r\n\t\tcboxPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tcboxPentsioa.addItem(\"Pentsiorik ez\");\r\n\t\tcboxPentsioa.addItem(\"Erdia\");\r\n\t\tcboxPentsioa.addItem(\"Osoa\");\r\n\t\tcboxPentsioa.setBounds(285, 162, 111, 20);\r\n\t\tgetContentPane().add(cboxPentsioa);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tcboxPentsioa.setVisible(false);\r\n\r\n\t\tcboxPentsioa.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\r\n\t\t\t\tif (cboxPentsioa.getSelectedItem().equals(\"Pentsiorik ez\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 0;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Erdia\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 5 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Osoa\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 10 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tchckbxGosaria.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tchckbxGosaria.setBounds(245, 201, 97, 23);\r\n\t\tchckbxGosaria.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\t\t\t\tdouble gosariPrezioa = 3 * gauak;\r\n\t\t\t\tif (chckbxGosaria.isSelected()) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + gosariPrezioa;\r\n\t\t\t\t\tgosaria = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgosaria = false;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - gosariPrezioa;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxGosaria);\r\n\r\n\t\tlblZerbitzuak.setFont(new Font(\"Verdana\", Font.BOLD, 16));\r\n\t\tlblZerbitzuak.setBounds(51, 244, 230, 25);\r\n\t\tgetContentPane().add(lblZerbitzuak);\r\n\r\n\t\t// gehigarriak\r\n\t\tzerbitzuArray = MetodoakKontsultak.zerbitzuakOstatuanMet(hartutakoOstatua);\r\n\r\n\t\tmodelo.addColumn(\"Izena:\");\r\n\t\tmodelo.addColumn(\"Prezio gehigarria:\");\r\n\t\tmodelo.addColumn(\"Hartuta:\");\r\n\r\n\t\t// tabla datuak\r\n\t\ttable = new JTable(modelo);\r\n\t\ttable.setShowVerticalLines(false);\r\n\t\ttable.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\ttable.setFont(new Font(\"Verdana\", Font.PLAIN, 14));\r\n\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\r\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\ttable.getTableHeader().setResizingAllowed(false);\r\n\t\ttable.setRowHeight(32);\r\n\t\ttable.setBackground(Color.LIGHT_GRAY);\r\n\t\ttable.setBounds(24, 152, 544, 42);\r\n\t\ttable.getTableHeader().setFont(new Font(\"Verdana\", Font.BOLD, 15));\r\n\t\ttable.getTableHeader().setReorderingAllowed(false);\r\n\t\tgetContentPane().add(table);\r\n\r\n\t\ttable.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent me) {\r\n\t\t\t\tif (me.getClickCount() == 1) {\r\n\t\t\t\t\ti = 1;\r\n\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tscrollPane = new JScrollPane(table);\r\n\t\tscrollPane.setViewportBorder(null);\r\n\t\tscrollPane.setBounds(20, 282, 562, 188);\r\n\r\n\t\tgetContentPane().add(scrollPane);\r\n\r\n\t\tfor (HartutakoOstatuarenZerbitzuak zerb : zerbitzuArray) {\r\n\t\t\tarray[0] = zerb.getIzena();\r\n\t\t\tarray[1] = zerb.getPrezioa() + \" €\";\r\n\t\t\tarray[2] = \"Ez\";\r\n\t\t\tmodelo.addRow(array);\r\n\t\t}\r\n\t\ttable.setModel(modelo);\r\n\r\n\t\tlblPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrezioa.setBounds(210, 72, 63, 14);\r\n\t\tgetContentPane().add(lblPrezioa);\r\n\r\n\t\ttxtPrezioa = new JTextField();\r\n\t\ttxtPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\ttxtPrezioa.setEditable(false);\r\n\t\ttxtPrezioa.setBounds(274, 70, 136, 20);\r\n\t\ttxtPrezioa.setColumns(10);\r\n\t\tgetContentPane().add(txtPrezioa);\r\n\r\n\t}",
"public void afficherFifo() {\n\t\tint nbrCols = listEtapeFifo.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Integer> list: listEtapeFifo) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\t\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtapeFifo.size();i++) {\n\t\t\tArrayList<Integer> list = listEtapeFifo.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\t//Processus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + list.get(j));\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}",
"protected void alusta() {\n \n panelTapahtuma.setFitToHeight(true);\n \n chooserTapahtumat.clear();\n chooserTapahtumat.addSelectionListener(e -> naytaTapahtuma());\n edits = TapahtumaController.luoKentat(gridTapahtuma);\n for (TextField edit: edits) {\n if (edit != null) {\n edit.setEditable(false);\n edit.setOnMouseClicked(e -> { if (e.getClickCount() > 1 ) muokkaa(getFieldId(e.getSource(),0)); } );\n edit.focusedProperty().addListener((a, o, n) -> kentta = getFieldId(edit, kentta));\n }\n }\n }",
"private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void zoomPokemon(){\n }",
"private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }",
"public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}",
"private static boolean poserTapis(){\n\t\tSystem.out.println(\"Choisisser une premiere case pour poser la premiere partie du tapis\");\n\t\tint premiereCaseTapis = console.obtenirDirection();\n\t\tint direction = premiereCaseTapis;\n\t\tint posXTapis = 0, posYTapis = 0;\n\n\t\t//Pose du premier carre de tapis\n\t\ttry{\n\t\t\tif(premiereCaseTapis == 1){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-2][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-2;\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 2){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()][jeu.getAssam().getYPion()-1].setCouleurTapis(tour);\n\t\t\t\tposXTapis = jeu.getAssam().getXPion();\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-1;\n\t\t\t}\n\n\t\t\telse if(premiereCaseTapis == 3){\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()-2].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion()-2;\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tjeu.cases[jeu.getAssam().getXPion()-1][jeu.getAssam().getYPion()].setCouleurTapis(tour);\n\t\t\t\tposYTapis = jeu.getAssam().getYPion();\n\t\t\t\tposXTapis = jeu.getAssam().getXPion()-1;\n\t\t\t}\n\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\treturn false;\n\t\t}\n\n\n\n\n\t\tconsole.afficherJeu();\n\t\tSystem.out.println(\"Choisissez la deuxieme case\");\n\n\t\t//Pose du second petit carre de tapis\n\t\twhile(true){\n\t\t\tint d = console.obtenirDirection();\n\t\t\t//pour ne pas faire de demi tour ou erreur de d\n\t\t\tif(direction == 1 && d == 2 || direction == 2 && d == 1 || direction == 3 && d == 4 || direction == 4 && d == 3 || d<1 || d>4){\n\t\t\t\tconsole.afficherImpossibleChoisirDirection();\n\t\t\t} else {\n\t\t\t\ttry{\n\t\t\t\t\tif(d == 1){\n\t\t\t\t\t\tjeu.cases[posXTapis-1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 2){\n\t\t\t\t\t\tjeu.cases[posXTapis+1][posYTapis].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse if(d == 3){\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis-1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tjeu.cases[posXTapis][posYTapis+1].setCouleurTapis(tour);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tconsole.afficherImpossiblePoserTapis();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tjeu.getJoueurs()[tour-1].useTapis();\n\t\treturn true;\n\n\n\t}",
"private void luoPeliKomponentit(JPanel panel) {\n GridBagLayout gbl = new GridBagLayout();\n GridBagConstraints c = new GridBagConstraints();\n panel.setLayout(gbl);\n c.fill = GridBagConstraints.BOTH;\n c.ipadx = 0;\n c.ipady = 0;\n c.gridwidth = 1;\n c.gridheight = 1;\n c.weightx = 0.5;\n c.weighty = 0.3;\n c.gridx = 0;\n c.gridy = 0;\n JPanel luola1 = new JPanel();\n JPanel luola2 = new JPanel();\n JPanel luola3 = new JPanel();\n JPanel kauppa = new JPanel();\n \n panel.add(luola1, c);\n \n c.gridy = 1;\n panel.add(luola2, c);\n \n c.gridy = 2;\n panel.add(luola3, c);\n \n c.gridy = 3;\n c.weighty = 0.7;\n panel.add(kauppa, c);\n \n LuolastoPanel luolasto1 = new LuolastoPanel(this, luola1, peli.getLuolastot().get(0));\n luolasto1.luoKomponentit();\n \n LuolastoPanel luolasto2 = new LuolastoPanel(this, luola2, peli.getLuolastot().get(1));\n luolasto2.luoKomponentit();\n \n LuolastoPanel luolasto3 = new LuolastoPanel(this, luola3, peli.getLuolastot().get(2));\n luolasto3.luoKomponentit();\n \n kauppaPanel = new KauppaPanel(kauppa, this);\n kauppaPanel.luoKomponentit();\n }",
"@Override\n\tprotected void trazOutroATona() {\n\t\t\n\t}"
] | [
"0.5752523",
"0.5697909",
"0.55690134",
"0.5551469",
"0.55308604",
"0.5523612",
"0.5514173",
"0.54840565",
"0.54631406",
"0.5451058",
"0.5421959",
"0.5421654",
"0.5415699",
"0.541396",
"0.54085547",
"0.54028094",
"0.5400323",
"0.5382489",
"0.5360378",
"0.5359024",
"0.5339329",
"0.53304106",
"0.5329628",
"0.53231436",
"0.5316091",
"0.53100944",
"0.530442",
"0.52994734",
"0.5297478",
"0.5291154",
"0.52881527",
"0.5276706",
"0.52743983",
"0.52714014",
"0.5270241",
"0.52612954",
"0.52545357",
"0.524859",
"0.52337784",
"0.52331203",
"0.5223243",
"0.5219457",
"0.5198192",
"0.5191504",
"0.5189904",
"0.5189677",
"0.5184213",
"0.51808745",
"0.51744765",
"0.5173547",
"0.5172872",
"0.51698446",
"0.5167048",
"0.51669395",
"0.51641023",
"0.51633334",
"0.51632017",
"0.5160508",
"0.5160363",
"0.5158171",
"0.51547164",
"0.5151301",
"0.5147028",
"0.5143208",
"0.51373273",
"0.5136207",
"0.51353526",
"0.51350766",
"0.51349604",
"0.5133975",
"0.51270866",
"0.51236546",
"0.5122721",
"0.51219577",
"0.5120434",
"0.51177585",
"0.5115319",
"0.5109581",
"0.5107008",
"0.51066095",
"0.51061726",
"0.5102241",
"0.5099915",
"0.5093928",
"0.50938004",
"0.5093706",
"0.50935626",
"0.50928575",
"0.50911134",
"0.508373",
"0.50812984",
"0.50790006",
"0.50763565",
"0.5074283",
"0.5067798",
"0.50670296",
"0.5064257",
"0.5063208",
"0.5060345",
"0.5059499"
] | 0.5806975 | 0 |
Method untuk menampilkan deskripsi yang sudah dibuat | public String toString(){
return this.deskripsi;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getDeskripsi() {\n return deskripsi;\n }",
"@Override\n public String getDeskripsi() {\n return deskripsi;\n }",
"Debut getDebut();",
"public void deskripsi() {\r\n System.out.println(this.nama + \" bekerja di Perusahaan \" + Employee.perusahaan + \" dengan usia \" + this.usia + \" tahun\");\r\n }",
"TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }",
"@Override\n\tpublic boolean ligaDesliga() {\n\t\treturn false;\n\t}",
"@Override\n public String getDescription() {\n return \"Digital goods delisting\";\n }",
"public void dessiner() {\n\t\tthis.panel.dessinerJeu();\t\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"public void desligar() {\n\r\n\t}",
"@Override\n\tpublic void setDes(String des) {\n\t\tsuper.setDes(des);\n\t}",
"public void setDebut(int d) {\n\t\tthis.debut = d;\n\t}",
"public void setvDesregpen(String vDesregpen) {\n this.vDesregpen = vDesregpen;\n }",
"@Override\n\tpublic void desligar() {\n\t\t\n\t}",
"public void sendeSpielfeld();",
"public void aplicarDescuento();",
"@Override\n\tvoid desligar() {\n\t\tsuper.desligar();\n\t\tSystem.out.println(\"Automovel desligando\");\n\t}",
"public String getDes() {\r\n return des;\r\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public long getDeskId() {\n return deskId_;\n }",
"public long getDeskId() {\n return deskId_;\n }",
"public long getDeskId() {\n return deskId_;\n }",
"public long getDeskId() {\n return deskId_;\n }",
"public void demandeDeplacement(int dx, int dy)\n\t{\n\t\t// Nouvelles coordonnées en fonction des directions d\n\t\tthis.x = this.x + dx;\n\t\tthis.y = this.y + dy;\n\t\t\n\t\tfor (PirateEcouteur piratecouteur : this.pirateEcouteurs.getListeners(PirateEcouteur.class)) {\n\t\t\t//Traitement trésor\n\t\t\tif(this.monkeyIsland.getTresor().coordonneesEgales(this.x, this.y)){\n\t\t\t\tthis.butin++;\n\t\t\t\tthis.monkeyIsland.suppressionTresor();\n\t\t\t\tthis.monkeyIsland.creationTresor();\n\t\t\t}\n\t\t\t//Traitement déplacement pirate\n\t\t\tif(this.monkeyIsland.singeEstPresent(this.x, this.y)){\n\t\t\t\tpiratecouteur.deplacementPirate(0, this.x, this.y);\n\t\t\t\t//Marcher sur un singe entraine la mort\n\t\t\t\tpiratecouteur.mortPirate(0);\n\t\t\t\tbreak;\n\t\t\t}else if(Constantes.MER != this.monkeyIsland.valeurCarte(this.x, this.y)){\n\t\t\t\tpiratecouteur.deplacementPirate(0, this.x, this.y);\n\t\t\t}else{\n\t\t\t\tpiratecouteur.deplacementPirate(0, this.x, this.y);\n\t\t\t\tpiratecouteur.mortPirate(0);\n\t\t\t}\n\t\t\t//Libération clavier pour pouvoir se déplacer\n\t\t\tpiratecouteur.liberationClavier();\n\t\t}\n\t}",
"public String getDes() {\n return des;\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\n\t}",
"@Override\n\tpublic void DesenhaSe(Graphics2D dbg, int XMundo, int YMundo) {\n\t\tdbg.setColor(Color.black);\n\t\tAffineTransform trans = dbg.getTransform();\n\t\tdbg.translate(X-XMundo, Y-YMundo);\n\t\tdbg.rotate(angulo-Math.PI/2);\n\t\t//dbg.drawLine(0, 0, getSizeX(), 0);\n\t\t\n\t\tif (recarregando&&round>0) {\n\t\t\tdbg.drawImage(imagem, 0, +6, sizeX,6+sizeY,sizeX,sizeY,0,0,null);\n\t\t}\n\t\t\n\t\t\n\t\tdbg.setTransform(trans);\n\t\t\n\t\tif (estado==1) {\n\t\t\tdbg.setColor(Color.LIGHT_GRAY);\n\t\t\tdbg.fillRect(GamePanel.PWIDTH/2-50, GamePanel.PHEIGHT/2-205,(int)(tempoRecarrega*100/Constantes.HE_tempoRecarrega) , 20);\n\n\t\t\tdbg.setColor(Color.black);\n\t\t\tdbg.drawRect(GamePanel.PWIDTH/2-51, GamePanel.PHEIGHT/2-206, 103, 21);\n\t\t}\n\t\t\n\t\tdbg.drawString(\"Round: \"+round,5 , 20);\n\t\tdbg.drawString(\"mag: \"+mag,5 , 30);\n\t\t\n\t}",
"public void depositMenu(){\n\t\tstate = ATM_State.DEPOSIT;\n\t\tgui.setDisplay(\"Amount to deposit: \\n$\");\t\n\t}",
"@Override\n\tpublic void DesenhaSe(Graphics2D dbg, int XMundo, int YMundo) {\n\t\tdbg.setColor(cor);\n\n\t\tAffineTransform trans = dbg.getTransform();\n\t\tdbg.translate(X+sizeX/2, Y+sizeY/2);\n\t\tdbg.rotate(ang);\n\t\tdbg.rotate(Math.PI/2);\n\t\t\n\n\n\t\tdbg.setColor(Color.cyan);\n\t\tdbg.fillRect((int)-sizeX/2,(int) -sizeY, sizeX/2, sizeY*2);\n\n\n\t\tdbg.drawImage(CanvasGame.getImagemcharsets(),-sizeX/2,-sizeY/2,sizeX/2,sizeY/2,sizeX*frame+startX,startY,(sizeX*frame)+sizeX+startX,(startY)+sizeY,null);\n\n\t\tdbg.setTransform(trans);\n\t\t\n\t\t\n\t\t\n\t}",
"public void preguntarDespegue(){\n String respuesta = this.mediador.preguntarDespegue(this);\n System.out.println(respuesta);\n if (respuesta==\"SI\"){\n this.setPosicion(1);\n this.indicarEstado(\"Preparando para el despegue\");\n }\n }",
"public void despegar(){\n if(this.posicion == 1){\n this.setPosicion(2);\n this.indicarEstado(\"Volando\");\n } else{\n System.out.println(\"No estoy preparado para el despegue\");\n }\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"Designator getDesgnator();",
"public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"public void setDeldte(Date deldte) {\r\n this.deldte = deldte;\r\n }",
"public void ReportarUnDiario(){\n f.registrarReporteDiario(new ReporteDiario(descripcionReporteDiario,prob));\n }",
"void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }",
"public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }",
"public void HandelKlas() {\n\t\tSystem.out.println(\"HandelKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Handel(Plansza.getRzemieslnikNaPlanszy());\n\t\tPlansza.getNiewolnikNaPLanszy().Handel(Plansza.getArystokrataNaPlanszy());\n\t\t\n\t\tPlansza.getRzemieslnikNaPlanszy().Handel(Plansza.getNiewolnikNaPLanszy());\n\t\tPlansza.getRzemieslnikNaPlanszy().Handel(Plansza.getArystokrataNaPlanszy());\n\t\t\n\t\tPlansza.getArystokrataNaPlanszy().Handel(Plansza.getNiewolnikNaPLanszy());\n\t\tPlansza.getArystokrataNaPlanszy().Handel(Plansza.getRzemieslnikNaPlanszy());\n\t}",
"public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"private void dodajZadanie() {\n Intent intent = new Intent(this, DodajEtap.class);\n startActivityForResult(intent, REQUEST_CODE);\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void deleteArticle(DetailDevisClient selected)\n\t{\n\t\tlistedetaildevis.remove(selected);\n\t\t\n\t\tdevis=getDevisActuel();\n\t\tif(devis.getMtTotalVente()==null) devis.setMtTotalVente(BigDecimal.ZERO);\n\t\tdevis.setMtTotalVente(devis.getMtTotalVente().subtract(selected.getMtTotalPrixVente()));\n\t\tif(devis.getMtTotalHt()==null) devis.setMtTotalHt(BigDecimal.ZERO);\n\t\tdevis.setMtTotalHt(devis.getMtTotalHt().subtract(selected.getMtTotalHt()));\n\t\tif(devis.getMtTotalTva()==null) devis.setMtTotalTva(BigDecimal.ZERO);\n\t\tdevis.setMtTotalTva(devis.getMtTotalTva().subtract(selected.getMtTotalTva()));\n\t\tif(devis.getMtTotalRemises()==null) devis.setMtTotalRemises(BigDecimal.ZERO);\n\t\tdevis.setMtTotalRemises(devis.getMtTotalRemises().subtract(selected.getMtTotalRemise()));\n\t\tif(devis.getMtTotalFodec()==null) devis.setMtTotalFodec(BigDecimal.ZERO);\n\t\tdevis.setMtTotalFodec(devis.getMtTotalFodec().subtract(selected.getMtTotalFodec()));\n\t\tif(devis.getMtTotalTtc()==null) devis.setMtTotalTtc(BigDecimal.ZERO);\n\t\tdevis.setMtTotalTtc(devis.getMtTotalTtc().subtract(selected.getMtTotalTtc()));\n\t\tif(devis.getNetApayer()==null) devis.setNetApayer(BigDecimal.ZERO);\n\t\tdevis.setNetApayer(devis.getNetApayer().subtract(selected.getMtTotalTtc()));\n\t\tif(devis.getPoidsTotalNet()==null) devis.setPoidsTotalNet(BigDecimal.ZERO);\n\t\tdevis.setPoidsTotalNet(devis.getPoidsTotalNet().subtract(selected.getPoidsTotalNet()));\n\t\tif(devis.getPoidsTotalBrut()==null) devis.setPoidsTotalBrut(BigDecimal.ZERO);\n\t\tdevis.setPoidsTotalBrut(devis.getPoidsTotalBrut().subtract(selected.getPoidsTotalBrut()));\n\t\t\n\t\t\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tcontext.update(\"formPrincipal:pnl_totaux\");\n\t}",
"public void denda()\n {\n transaksi.setDenda(true);\n }",
"private static void showDeckInfo() {\n }",
"public void setDes(String des) {\r\n this.des = des == null ? null : des.trim();\r\n }",
"public void setDes(String des) {\n this.des = des == null ? null : des.trim();\n }",
"public void init_DonDat_PT() {\n initDSHD();\n// btnThemDD.setText(\"Thêm DDPT\");\n// btnCTDD.setText(\"CT DDPT\");\n\n }",
"public void srediFormuPremaSK(){\n int aktivanSK = Komunikacija.getInstance().getAktivan_sk();\n \n if(aktivanSK == Konstante.SK_DODAVANJE){\n srediFormu();\n this.setTitle(\"Unos nove vezbe\");\n }\n if(aktivanSK == Konstante.SK_IZMENA){\n srediFormu();\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Izmena vezbe\");\n } \n \n if(aktivanSK == Konstante.SK_PRIKAZ){\n jTextFieldNaziv.setEnabled(false);\n jTextFieldFokus.setEnabled(false);\n jTextFieldVremeTrajanja.setEnabled(false);\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Detalji vezbe\");\n }\n}",
"public void setDelFlg(String delFlg) {\n this.delFlg = delFlg;\n }",
"void disManager() {\n\t\t\tSystem.out.println(\"c \"+c);\n\t\t\tSystem.out.println(\"d \"+d);\n\t\t}",
"public String getvDesregpen() {\n return vDesregpen;\n }",
"public void duerme() {\n System.out.println(\"Duerme profundamentZzZzZz...\");\n }",
"private void OpenDudesCongratulationLayout() {\n\t\tUserDTO dto = Activity_Home.dudeCommonList.get(Activity_Home.index);\n\n\t\t//context.searchDudeList.add(dto); //edited on 15/07/2015\n\t\tcontext.RecentlySearchedcity.searchDudeList.add(dto);\n\t\t/* ...../////..........////............///........ */\n\n\t\t/* remove dude from requist list */\n\t\tString id = dto.getUserID();\n\t\tfor (int i = 0; i < context.requestDudesList.size(); i++) {\n\t\t\tUserDTO userDTO = context.requestDudesList.get(i);\n\n\t\t\tif (id.equals(userDTO.getUserID())) {\n\n\t\t\t\tcontext.requestDudesList.remove(userDTO);\n\t\t\t}\n\t\t}\n\t\t/* ...../////..........////............///........ */\n\n\t\tdudesCongratulationLayout.setVisibility(View.VISIBLE);\n\t\tif (userDTO.getUserProfileImageDTOs().get(0).getImageId()\n\t\t\t\t.equals(AppConstants.FACEBOOK_IMAGE)) {\n\t\t\tdudeCongratulationProfileImage.setScaleType(ScaleType.FIT_CENTER);\n\t\t} else {\n\t\t\tdudeCongratulationProfileImage.setScaleType(ScaleType.FIT_XY);\n\t\t}\n\n\t\t// imageLoader.DisplayImage(userDTO.getUserProfileImageDTOs().get(0)\n\t\t// .getImagePath(), dudeCongratulationProfileImage);\n\n\t\tif (sessionManager.getUserDetail().getUserProfileImageDTOs().get(0)\n\t\t\t\t.getImageId().equals(AppConstants.FACEBOOK_IMAGE)) {\n\t\t\tuserProfileImage.setScaleType(ScaleType.FIT_CENTER);\n\t\t} else {\n\t\t\tuserProfileImage.setScaleType(ScaleType.FIT_XY);\n\t\t}\n\n\t\t// imageLoader.DisplayImage(sessionManager.getUserDetail()\n\t\t// .getUserProfileImageDTOs().get(0).getImagePath(),\n\t\t// userProfileImage);\n\n\t\ttry {\n\n\t\t\t// UserDTO sessionUserDTO = sessionManager.getUserDetail();\n\n\t\t\tif (sessionManager.getUserDetail().getUserProfileImageDTOs().size() > 0) {\n\n\t\t\t\tif (sessionManager.getUserDetail().getUserProfileImageDTOs()\n\t\t\t\t\t\t.get(0).getIsImageActive()) {\n\t\t\t\t\timageLoader.DisplayImage(sessionManager.getUserDetail()\n\t\t\t\t\t\t\t.getUserProfileImageDTOs().get(0).getImagePath(),\n\t\t\t\t\t\t\tuserProfileImage);\n\t\t\t\t} else {\n\t\t\t\t\tuserProfileImageStamp.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (userDTO.getUserProfileImageDTOs().size() > 0) {\n\n\t\t\t\tif (userDTO.getUserProfileImageDTOs().get(0).getIsImageActive()) {\n\t\t\t\t\timageLoader.DisplayImage(userDTO.getUserProfileImageDTOs()\n\t\t\t\t\t\t\t.get(0).getImagePath(),\n\t\t\t\t\t\t\tdudeCongratulationProfileImage);\n\t\t\t\t} else {\n\t\t\t\t\tuserProfileImageStamp.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"public void setDeixis(Deixis deixis) {\n\t\tthis.deixis = deixis;\n\t}",
"public void pegarDoc(Denuncia dGeral) {\n\t\t\t\n\t\t\t//-- para a tab endereço --//\n\t\t\ttabEnderecoController.lblDoc.setText(dGeral.getDoc_Denuncia() + \" | SEI nº: \" + dGeral.getDoc_SEI_Denuncia());\n\t\t\ttabEnderecoController.dGeralEnd = dGeral;\n\t\t}",
"public interface IGestorFaseDescartes {\n\t\n\t/**\n\t * Devuelve el jugador al que le toca jugar respecto\n\t * a su posición en la mesa de juego.\n\t * @return posición\n\t */\n\tpublic int getTurnoJuego();\n\n\t/**\n\t * Devuelve la fase de juego en la que se encuentra la mano\n\t * @return Fase del Juego (MUS, DESCARTE, REPARTO, GRANDE)\n\t */\n\tpublic FaseDescartes faseJuego();\n\t\n\t/**\n\t * Controla si se puede pedir mus o no.\n\t * @param j\n\t * @return boolean\n\t */\n\tpublic boolean pedirMus(Jugador j);\n\t\n\t/**\n\t * Controla si se ha cortado el mus o no para determinar\n\t * si se puede iniciar el descarte.\n\t * @param j\n\t * @return boolean\n\t */\n\tpublic boolean cortarMus(Jugador j);\n\t\n\t/**\n\t * Controla los descartes (nº de cartas y cuales) del jugador\n\t * \n\t * @param j\n\t * @param cartas\n\t * @return boolean\n\t */\n\tpublic boolean pedirDescarte(Jugador j, Carta... cartas);\n\n\t/**\n\t * Una vez que todos han solicitado su descarte utiliza la\n\t * interface de descartes para que lo haga efectivo.\n\n\t * @return\n\t */\n\tpublic boolean ejecutarDescartar();\n\t\n\t/**\n\t * Se encarga de controlar el reparto de cargas teniendo en cuenta los\n\t * descartes realizados.\n\t * @param j\n\t * @return El número de cartas recibidas o -1 en caso de error\n\t */\n\tpublic int reparte(Jugador j);\n\n\t/**\n\t * Inicializa los contadores del gestor\n\t */\n\tpublic void inicializar();\n\t\n}",
"public void setDelflag(Boolean delflag) {\r\n this.delflag = delflag;\r\n }",
"public Builder setDeskNo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n deskNo_ = value;\n onChanged();\n return this;\n }",
"public void setFechaBajaDesde(Date fechaBajaDesde) {\r\n\t\tthis.fechaBajaDesde = fechaBajaDesde;\r\n\t}",
"public String getDelfg() {\n return delfg;\n }",
"private void cargarFichaLepra_discapacidades() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}",
"public void setDelfg(String delfg) {\n this.delfg = delfg == null ? null : delfg.trim();\n }",
"public DES() {\r\n setVisible(true);\r\n setLayout(null);\r\n setSize(600, 750);\r\n\r\n keyLabel = new JLabel(\"klucz:\");\r\n keyLabel.setBounds(50, 10, 50, 30);\r\n add(keyLabel);\r\n\r\n keyField = new JTextField();\r\n keyField.setBounds(90, 15, 200, 25);\r\n add(keyField);\r\n\r\n operationLabel = new JLabel(\"Tryb:\");\r\n operationLabel.setBounds(50, 40, 50, 20);\r\n add(operationLabel);\r\n\r\n code = new JRadioButton(\"kodowanie\");\r\n code.setBounds(90, 40, 90, 20);\r\n code.addActionListener(this);\r\n code.setSelected(true);\r\n add(code);\r\n decode = new JRadioButton(\"dekodowanie\");\r\n decode.setBounds(190, 40, 110, 20);\r\n decode.addActionListener(this);\r\n add(decode);\r\n\r\n operationButton = new ButtonGroup();\r\n operationButton.add(code);\r\n operationButton.add(decode);\r\n\r\n modeLabel = new JLabel(\"Tryb:\");\r\n modeLabel.setBounds(50, 70, 100, 20);\r\n add(modeLabel);\r\n\r\n console = new JRadioButton(\"konsola\");\r\n console.setBounds(90, 70, 75, 20);\r\n console.addActionListener(this);\r\n console.setSelected(true);\r\n add(console);\r\n file = new JRadioButton(\"plik\");\r\n file.setBounds(190, 70, 50, 20);\r\n file.addActionListener(this);\r\n add(file);\r\n\r\n modeButton = new ButtonGroup();\r\n modeButton.add(console);\r\n modeButton.add(file);\r\n\r\n source = new JTextArea();\r\n jSP1 = new JScrollPane(source);\r\n\r\n jSP1.setBounds(50, 100, 485, 250);\r\n add(jSP1);\r\n\r\n result = new JTextArea();\r\n result.setEditable(false);\r\n jSP2 = new JScrollPane(result);\r\n\r\n jSP2.setBounds(50, 400, 485, 250);\r\n add(jSP2);\r\n\r\n run = new JButton(\"wykonaj\");\r\n run.setBounds(150, 670, 100, 25);\r\n run.addActionListener(this);\r\n add(run);\r\n\r\n exit = new JButton(\"wyjscie\");\r\n exit.setBounds(325, 670, 110, 25);\r\n exit.addActionListener(this);\r\n add(exit);\r\n\r\n // kontrolki dla pliku\r\n sourceFileLabel = new JLabel(\"plik wejsciowy:\");\r\n sourceFileLabel.setBounds(50, 100, 100, 25);\r\n sourceFileLabel.setVisible(false);\r\n add(sourceFileLabel);\r\n\r\n resultFileLabel = new JLabel(\"plik wyjsciowy:\");\r\n resultFileLabel.setBounds(50, 150, 100, 25);\r\n resultFileLabel.setVisible(false);\r\n add(resultFileLabel);\r\n\r\n sourceFileName = new JLabel();\r\n sourceFileName.setBounds(160, 100, 100, 25);\r\n sourceFileName.setVisible(false);\r\n add(sourceFileName);\r\n\r\n resultFileName = new JLabel();\r\n resultFileName.setBounds(160, 150, 100, 25);\r\n resultFileName.setVisible(false);\r\n add(resultFileName);\r\n\r\n loadFile = new JButton(\"wybierz plik\");\r\n loadFile.setBounds(350, 100, 125, 25);\r\n loadFile.addActionListener(this);\r\n loadFile.setVisible(false);\r\n add(loadFile);\r\n\r\n saveFile = new JButton(\"wybierz plik\");\r\n saveFile.setBounds(350, 150, 125, 25);\r\n saveFile.addActionListener(this);\r\n saveFile.setVisible(false);\r\n add(saveFile);\r\n\r\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n revalidate();\r\n repaint();\r\n }",
"private void print_da_page() {\n \t\tSystem.out.println(\"**** Hell yeah, print da page\");\n \t\t// des Assert ici pour verifier qq truc sur le local storage serait p-e\n \t\t// bien..\n \n \t\tsetInSlot(SLOT_OPTION_SELECION, cardSelectionOptionPresenter);\n \t\tcardSelectionOptionPresenter.init();\n \t\t\n \t\tsetInSlot(SLOT_BOARD, boardPresenter);\n \n \t\tcardDragController.registerDropController(cardDropPanel);\n \t\t\n \t\tsetStaticFirstComboView();\n \t\twriteInstancePanel();\n \t\tStorage_access.setCurrentProjectInstanceBddId(0);\n \t\t//Storage_access.setCurrentProjectInstance(Storage_access.getInstanceBddId(Storage_access.getCurrentProjectInstance()));\n \t\t\n \t\treDrowStatusCard();\n \t\t\n \t\tthis.boardPresenter.redrawBoard(0,0); //TODO n'enregistrerons nous pas la \"vue par default\"? ou la derniere ?\n \t\t\n \t\twriteCardWidgetsFirstTime();\n \t\t//getView().constructFlex(cardDragController);\n \t\n \t\t\n \t\t\n \t\t//CellDropControler dropController = new CellDropControler(simplePanel);\n \t //\tcardDragController.registerDropController(dropController);\n \n \t}",
"@Override\r\n\tpublic void deposit() {\n\t\tSystem.out.println(\"This Deposit value is from Axisbank class\");\r\n\t\t//super.deposit();\r\n\t}",
"public void dessiner() {\n\t\tafficherMatriceLignes(m.getCopiePartielle(progresAffichage), gc);\r\n\t}",
"public void descolaPosicao();",
"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 }",
"public void saveListe()\n\t{\n\t\tdevis=getDevisActuel();\n//\t\tClient client=clientListController.getClient();\n//\t\tdevis.setCclient(client.getCclient());\n//\t\tdevis.setDesAdresseClient(client.getDesAdresse());\n//\t\tdevis.setCodePostalClient(client.getCodePostal());\n\t\tgetClientOfDevis(clientListController.findClientById(devis.getCclient()));\n\t\t\n\t\tdevis.setMtTotalTtc(devis.getMtTotalTtc().setScale(3, BigDecimal.ROUND_UP));\n\t\tdevis.setMtTotalTva(devis.getMtTotalTva().setScale(3, BigDecimal.ROUND_UP));\n\t\tdevis.setNetApayer(devis.getNetApayer().setScale(3, BigDecimal.ROUND_UP));\n\t\t\n\t\tif(listedetailarticles!=null)\n\t\t\tlistedetaildevis=listedetailarticles;\n\t\tif(devisListeController.modif==true)\n\t\t{\n\t\t\tList<DetailDevisClient>list=findDetailOfDevis(devis.getCdevisClient());\n\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t{\n\t\t\t\tremove(list.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\tdevisInit=devis;\n\t\tdevisListeController.save();\n\t\t\n\t\t/*if(listedetailarticles!=null)\n\t\t\tlistedetaildevis=listedetailarticles;\n\t\t\n\t\tif(devisListeController.modif==true)\n\t\t{\n\t\t\tList<DetailDevisClient>list=findDetailOfDevis(dc.getCdevisClient());\n\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t{\n\t\t\t\tremove(list.get(i));\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tdetailDevisClientService.saveList(listedetaildevis);\n\t\t\n\t\t\n\t\t/*listedetaildevisStatic.clear();\n\t\tfor(DetailDevisClient ddc :listedetaildevis)\n\t\t{\n\t\t\tlistedetaildevisStatic.add(ddc);\n\t\t}*/\n\t\tdetailDevis=new DetailDevisClient();\n\t\t\n\t\t\n\t\t//listedetailarticles.clear();\n\t\t/*listedetaildevis.clear();\n\t\tdevisListeController.setDevis(new DevisClient());\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tcontext.update(\"formPrincipal\");\n\t\t*/\n\t\t\n\t\ttry {\n\t\t\tPDF();\n\t\t} catch (JRException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\t//nouveauDevis();\n\t\t}\n\t\t\n\t\tFacesContext.getCurrentInstance().addMessage\n\t\t(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Detail Devis Enregistré!\", null));\n\t\t//nouveauDevis();\n\t}",
"@Override\n\tpublic String getDes() {\n\t\treturn medicalRecord.getDes() + \" \" + \"²ΔΑΟ·Ρ\";\n\t}",
"public Builder setDeskName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n deskName_ = value;\n onChanged();\n return this;\n }",
"public void ExtirparDesdeSuperion(Superion superion) {\n\t\tINSTANCE.vida=superion.vidaAlSeparar();\n\t\tINSTANCE.miPosicion=posicionAlDesarmarSuperion(superion.getPosicion());\n\t\tmiPosicion.setMovilOcupa(this);\n\t}",
"java.lang.String getDeskName();",
"public void mostrarDetalle(String texto) {\n\t\n\t\tif((texto.equals(\"0\"))||(texto.equals(\"-1\"))){// si ya no hay elementos u ordenes o si solamente borro una orden pero todavía hay más en espera\n\t\t\tlistas.CreaListadePlatillos(texto);\n\t\t\tDetalleOrden Noelementos=new DetalleOrden();\n\t\t\tNoelementos.setmKeyOrden(\"0\");\n\t\t\tNoelementos.setmCantidad(\"\");\n\t\t\tNoelementos.setmKeyOrden(\"\");\n\t\t\tNoelementos.setmKeyPlatillo(\"\");\n\t\t\tNoelementos.setmNombrePlatillo(\"No hay más Ordenes\");\n\t\t\tNoelementos.setmNotaEspecial(\"\");\n\t\t\tNoelementos.setmNotaPromocion(\"\");\n\n\t\t\tif(texto.equals(\"0\")){ // si ya no hay elementos u ordenes\n\t\t\t\tdatos=new ArrayList<DetalleOrden>();\n\t\t datos.add(Noelementos);\n\t\t\t}\n\t\t\tif(texto.equals(\"-1\")){//si solamente borro una orden pero todavía hay más en espera\n\t\t\t\tdatos=new ArrayList<DetalleOrden>();\n\t\t\t}\n\t\t\t\n\t\t\n\t //txtDetalle.setText(texto);\n\t\t\tListaPlatillos = (ListView)getView().findViewById(R.id.Listado_Platillos); //Listado_Platillos es en el fragment_listado y hace referencia a ListaOrdenes\n\t\t\t\n\t\t\t// Al adapter personalizado le pasamos el contexto y la lista que contiene\t\n\t AdaptadorListaPlatillos adapter=new AdaptadorListaPlatillos(this,datos);\n\t // Añadimos el adapter al listview\n\t ListaPlatillos.setAdapter(adapter);//se ejecuta el montaje final ya con los datoss\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\tlistas.CreaListadePlatillos(texto);\n\t datos=listas.getListaconPlatillos();\n\t\t\n\t //txtDetalle.setText(texto);\n\t\t\tListaPlatillos = (ListView)getView().findViewById(R.id.Listado_Platillos); //Listado_Platillos es en el fragment_listado y hace referencia a ListaOrdenes\n\t\t\t\n\t\t\t// Al adapter personalizado le pasamos el contexto y la lista que contiene\t\n\t AdaptadorListaPlatillos adapter=new AdaptadorListaPlatillos(this,datos);\n\t // Añadimos el adapter al listview\n\t ListaPlatillos.setAdapter(adapter);//se ejecuta el montaje final ya con los datoss\n\t\t}\n }",
"@Test\n\tpublic void execucaoDesafio_02() {\n\t\tgetPage().getAddCustomerPage().clickGoBackToList();\n\t\t\n\t\t//2. Clica na lupa e\n\t\tgetPage().clickSearch();\n\t\t\n\t\t//2(continuação). digite Teste Sicredi\n\t\tgetPage().searchText(customerData.getName());\n\t\t\n\t\t//3, Clica checkbox, abaixo da palavra actions\n\t\tgetPage().clickCheckBoxActions();\n\t\t\n\t\t//4. Clica botão delete\n\t\tgetPage().clickDeleteButton();\n\t\t\n\t\t//5. Valida por asserção a mensagem que pergunta se tem certeza que deseja deletar item\n\t\tString textPopup = getPage().getTextPopupDeleteAlert();\n\t\t\n\t\tboolean foundText = textPopup.contains(Messages.DELETE_ITEM);\t\t\n\t\tassertTrue(\"O texto [\"+Messages.DELETE_ITEM+\"] não foi encontrado.\", foundText);\n\t\t\n\t\t//6. Clica no botão Delete do Popup\n\t\tgetPage().clickOnDeleteButtonToConfirm();\n\t\t\n\t\t//7. Valide por asserção a mensage de que foi deletado os dados do BD\n\t\tgetPage().setLastTextAfterConfirmDelete();\t\t\n\t\tboolean foundDataDeletedFromDBText = getPage().getLastTextAfterDelete().contains(Messages.DATA_DELETED_FROM_DB);\n\t\tassertTrue(\"O texto [\"+Messages.DATA_DELETED_FROM_DB+\"] não foi encontrado.\", foundDataDeletedFromDBText);\n\t\t\n\t\t//8. Feche o driver web\n\t\tgetDriver().quit();\n\n\t\t//Aqui abaixo libera a memória do processo que é o driver selenium\n\t\tgetResource().killDriver();\n\t}",
"public void setDelFlg(String delFlg) {\n\t\tthis.delFlg = delFlg;\n\t}",
"@Override\n\tpublic void ativarDesativar(int id) throws ExceptionUtil {\n\t\t\n\t}",
"@Override\n\tpublic void desenhar() {\n\t\tSystem.out.println(\"desenhar imagem png\");\n\t\t\n\t}",
"public void selfDes() {\r\n\t\tselfDes = true;\r\n\t\tdimUp = true;\r\n\t}",
"private void supprAffichage() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.deleteContents();\n break;\n case AFFICHE_USER :\n ecranUser.deleteContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.deleteContents();\n break;\n default: break;\n }\n afficheChoix = AFFICHE_RIEN;\n }",
"public void setDesignador(java.lang.String designador) {\r\n this.designador = designador;\r\n }",
"public void retur() {\r\n System.out.println(\"Hvem skal returnere DVD'en?\");\r\n String person = scan.nextLine().toLowerCase();\r\n if(personListe.containsKey(person)) {\r\n\r\n if (personListe.get(person).laanerSize() > 0) {\r\n System.out.println(\"Hvilken DVD skal returneres?\");\r\n String tittel = scan.nextLine();\r\n DVD dvd = personListe.get(person).hentLaanerListe().get(tittel);\r\n\r\n if(personListe.get(person).hentLaanerListe().containsKey(tittel)) {\r\n personListe.get(person).fjernFraLaaner(personListe.get(person).hentLaanerListe().get(tittel));\r\n dvd.hentEier().faaTilbake(dvd);\r\n }\r\n\r\n else {\r\n System.out.println(person + \" laaner ikke \" + tittel);\r\n }\r\n\r\n }\r\n\r\n else {\r\n System.out.println(person + \" laaner ikke noen DVD'er\");\r\n }\r\n\r\n }\r\n else {\r\n System.out.println(\"Den personen finnes ikke\");\r\n }\r\n\r\n }",
"private static void showPlayerDeckInfo() {\n }",
"public void setId_sede(int id_sede) {\n this.id_sede = id_sede;\n }",
"public CifrarDescifrarSimple(MainUI padre) {\n initComponents();\n setLangLabels();\n wpadre=padre;\n setHelp();\n this.setResizable(false);\n }",
"public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void disparaUfo()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoUfo.getVisible()) {\n // Generamos un número aleatorio para obtener el Ufo que va a disparar\n Random aleatorio = new Random();\n int ufoAleatorio;\n ufoAleatorio = aleatorio.nextInt(NUMEROUFOS);\n\n // Si el Ufo aleatorio NO está muerto dispara\n if (ufos.get(ufoAleatorio).getVisible()) {\n disparoUfo.setPosicion(ufos.get(ufoAleatorio).getPosicionX() + ((ufos.get(ufoAleatorio).getAncho() - disparoUfo.getAncho()) / 2), ufos.get(ufoAleatorio).getPosicionY() + ufos.get(ufoAleatorio).getAlto());\n disparoUfo.setVisible(true);\n }\n }\n }",
"@Override\n\tpublic void bildir(){\n\t\tif(durum == true){\n\t\t\tSystem.out.println(\"Durum: Acik\");\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Durum: Kapali\");\n\t\t}\n\t\t\n\t}",
"private int isDesigNameExist(String desigName) {\n\t\treturn adminServiceRef.isDesigNameExist(desigName);\r\n\t}",
"private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }",
"public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}",
"public FaseDescartes faseJuego();",
"java.lang.String getDeskNo();",
"private void hienThiCBBmaDV(){\n DichVuService dichVuService = new DichVuService();\n dichVuModels = dichVuService.layToanBoDichVu();\n \n cbbMaDV.removeAllItems();\n if (dichVuModels != null){\n for (DichVuModel dichVuModel : dichVuModels) {\n cbbMaDV.addItem(dichVuModel.getMaDV());\n }\n }else{\n return;\n }\n }",
"public void setDateDebut(String newDateDebut) {\n\t\tthis.dateDebut = newDateDebut;\n\t}",
"public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}",
"@FXML\n\tvoid deletarCidade(ActionEvent event) {\n\t\tCidade cidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tOptional<ButtonType> oResult;\n\n\t\t\n\t\t//Recebe os valores da linha selecionada na tabela\n\t\tcidade = tblCidades.getSelectionModel().getSelectedItem();\n\n\t\t//Verifica se o usuario selecionou alguma cidade na tabela\n\t\tif(cidade == null) \n\t\t{\n\t\t\tUtil.dialogMessage(\"Atenção\", \"Nenhuma cidade foi selecionada!\", \"Selecione uma cidade na tabela para poder deletá-la\");\n\t\t\t\n\t\t\treturn;\n\t\t}\n\n\t\t//Instancia o objeto\n\t\tcidadeDAO = new CidadeDAO();\n\n\t\t//Questiona o usuario se ele quer mesmo deletar a cidade\n\t\toResult = Util.confirmationMessage(\"Atenção!!\", \"Deletar Cidade\",\n\t\t\t\t\"Deseja deletar a cidade \" + cidade.getNomeCidades() + \"?\");\n\n\t\t//Verifica se ele optou por sim\n\t\tif (oResult.get() == ButtonType.OK) {\n\t\t\t//Chama o metodo da DAO para deletar a cidade do banco de dados\n\t\t\tcidadeDAO.deletar(cidade.getIdCidade());\n\t\t\t\n\t\t\t//Demonstra uma mensagem de sucesso \n\t\t\tUtil.dialogMessage(\"Atenção!!\", \"Sucesso\",\n\t\t\t\t\t\"A cidade \" + cidade.getNomeCidades() + \" foi apagada com sucesso!!\");\n\t\t\t\n\t\t\t//Preenche a tabela novamente\n\t\t\tpreencherTabela();\n\t\t\t\n\t\t\t//Limpa os campos\n\t\t\tlimparCampos();\n\t\t}\n\t}",
"@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"Seorang yang mengendarai kendaraan dan bekerja\");\r\n\t}",
"public void dodajZapis(int mjesec, int godina) throws FileNotFoundException{\r\n\t\t\r\n\t\tKalendar kalendar = new Kalendar();\r\n\t\t\r\n\t\tboolean notLegit = true;\r\n\t\tint dan = 0;\r\n\t\t\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Unosenje podsjetnika za mjesec : \" + kalendar.getMjesecText() + \" \" + godina);\r\n\t\t//ako korisnik unese datum kojeg nema u tom mjesecu, trazi se da pokusa ponovo\r\n\t\tdo{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Za koji dan zelite unijeti podsjetnik\");\r\n\t\t\tdan = in.nextInt();\r\n\t\t\tif(dan > 0 && dan <= kalendar.getBrojDana()){\r\n\t\t\t\tnotLegit = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(notLegit);\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite podsjetnik\");\r\n\t\t//ovo je malo nelogicno, ali mora ovako\r\n\t\t//naime, prvi unos nece da prihvati, ne znam zasto, ne dopusta mi da unesem tekst, samo preskoci liniju (barem tako izgleda)\r\n\t\t//ako stavim in.next() radice, ali to mi ne pase jer moram omoguciti unos vise rijeci\r\n\t\tString text = in.nextLine();\r\n\t\ttext = in.nextLine();\r\n\t\t\r\n\t\tInOutPodsjetnik podsjetnik = new InOutPodsjetnik();\r\n\t\tpodsjetnik.ucitajPodsjetnik();\r\n\t\tzapisi = podsjetnik.getPodsjetnici();\r\n\t\t//pravljenje novog objekta Zapis\r\n\t\tZapis zapis = new Zapis();\r\n\t\tzapis.setDan(dan);\r\n\t\tzapis.setMjesec(mjesec);\r\n\t\tzapis.setGodina(godina);\r\n\t\tzapis.setText(dan + \"/\" + mjesec + \"/\" + godina + \" \" + text);\r\n\t\t//ako korisnik potvrdi da zeli sacuvati podatke novi objekat se dodaje u listu\r\n\t\t//i lista se snima u fajl\r\n\t\tif(potvrdiUnos()){\r\n\t\t\tzapisi.add(zapis);\r\n\t\t\tpodsjetnik.setPodsjetnike(zapisi);\r\n\t\t}\r\n\t}"
] | [
"0.68346965",
"0.68346965",
"0.6829589",
"0.66826457",
"0.65295506",
"0.62279594",
"0.6206287",
"0.6170602",
"0.60433346",
"0.60244626",
"0.59858507",
"0.5975409",
"0.595063",
"0.59243304",
"0.5923523",
"0.58921075",
"0.58795315",
"0.5878866",
"0.5851898",
"0.58296937",
"0.58296937",
"0.5828796",
"0.5828796",
"0.58226967",
"0.58089477",
"0.579821",
"0.57769775",
"0.5766634",
"0.57608575",
"0.5751452",
"0.57504123",
"0.5674526",
"0.5674526",
"0.5669281",
"0.56646955",
"0.5640121",
"0.56162125",
"0.5613927",
"0.5603917",
"0.5596232",
"0.5539739",
"0.5537471",
"0.5535892",
"0.5530848",
"0.5525386",
"0.5523043",
"0.55227613",
"0.55183697",
"0.5500996",
"0.5500857",
"0.55000067",
"0.54950035",
"0.549456",
"0.54916346",
"0.547208",
"0.54447585",
"0.5441653",
"0.54398966",
"0.54381394",
"0.54262424",
"0.5425352",
"0.54240686",
"0.5423237",
"0.53895384",
"0.53789735",
"0.53732866",
"0.5359642",
"0.5359146",
"0.53496796",
"0.5347996",
"0.53450435",
"0.53374743",
"0.53350425",
"0.53307104",
"0.53301764",
"0.5316264",
"0.5308301",
"0.5307466",
"0.5300956",
"0.52971154",
"0.5292469",
"0.5283925",
"0.5280012",
"0.52767587",
"0.52670527",
"0.52620876",
"0.5254819",
"0.52541935",
"0.5248521",
"0.52456975",
"0.52434033",
"0.52356946",
"0.5235664",
"0.5234908",
"0.52296394",
"0.5228061",
"0.5223919",
"0.52235216",
"0.52229744",
"0.52129877",
"0.5204264"
] | 0.0 | -1 |
/StringLengthLambda obj=(String str) >str.length(); obj.lengthOFString("Nikhil"); StringLengthLambda data=word > word.length(); System.out.println(data.lengthOFString("nikhil")); | public static void main(String[] args) {
print(s -> s.substring(0, 3)); //mnow we are passing the action not the variable
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] argv) {\n\t\t Processor stringProcessor = (String str) -> str.length();\n\t\t String name = \"Java Lambda\";\n\t\t int length = stringProcessor.getStringLength(name);\n\t\t System.out.println(length);\n\n\t\t }",
"public static void main(String[] args) {\n\t\t\n\t\tStringLengthLambda myLambdaObj = s -> s.length();\n\t\tSystem.out.println(myLambdaObj.getLength(\"Hello World\"));\n\t}",
"public static void main(String[] args){\n StringLengthLambda myLambda = s -> s.length();\n\n //we can also pass this sysout - lambda into a method\n //System.out.println(myLambda.getLength(\"Roy Bairstow\"));\n\n //it can be pass in like this\n printLambda(myLambda);\n\n //or\n printLambda(s -> s.length());// in this case we wont need the above lambda expression\n //the argument in printLambda takes a lambda expression, but its interface type is from\n //stringlengthlambda so any argument passed into this method has to have the same\n //signature - that is int return type, and pass a string argument\n\n }",
"public static void main(String[] args) {\n Function<String, Integer> f = String::length;\n Integer length = f.apply(\"Ikhiloya\");\n System.out.println(\"Length of String: \" + length);\n\n //Function to return the square of an integer number\n Function<Integer, Integer> s = i -> i * i;\n Integer sqaureNum = s.apply(2);\n System.out.println(\"The square of 2 is: \" + sqaureNum);\n\n //program to replace all spaces present in the given string\n String word = \"It is a beautiful night here in ontario\";\n Function<String, String> fxn = string -> string.replaceAll(\" \", \"\");\n String newWord = fxn.apply(word);\n System.out.println(\"Word without spaces\" + \"\\n\" + newWord);\n\n //program to count all spaces present in the given string\n Function<String, Integer> countFxn = s1 -> s1.length() - s1.replaceAll(\" \", \"\").length();\n Integer count = countFxn.apply(word);\n System.out.println(\"Number of Spaces in String is:\" + \"\\n\" + count);\n }",
"static int size_of_ana(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_ori(String passed){\n\t\treturn 2;\n\t}",
"public static void main(String[] args) {\n System.out.println(\"##############Returning length of a String using Function Interface##############\");\n Function<String, Integer> function = s -> s.length();\n System.out.println(\"Length of Chetan is: \" + function.apply(\"Chetan\"));\n System.out.println(\"Length of Chetan Raj is: \" + function.apply(\"Chetan Raj\"));\n\n //Returning Square of a integer value using Function Interface\n System.out.println(\"\\n##############Returning Square of a integer value using Function Interface##############\");\n Function<Integer, Integer> squareFunction = I -> I * I;\n System.out.println(\"Square of 5 is: \"+ squareFunction.apply(5));\n System.out.println(\"Square of 10 is: \"+ squareFunction.apply(10));\n\n //Replacing all spaces using Function Interface\n System.out.println(\"\\n##############Replacing all spaces using Function Interface##############\");\n Function<String,String> replaceSpaceFunction = s -> s.replace(\" \",\"\");\n String s = \"Chetan Raj Bharti \";\n System.out.println(\"Original String: \"+ s);\n System.out.println(\"After replacing spaces: \" + replaceSpaceFunction.apply(s));\n }",
"public int my_length();",
"static int size_of_sta(String passed){\n\t\treturn 3;\n\t}",
"public static void main(String[] args) {\n\r\n\t\tFind_String f1;\r\n\t\tf1 = new Find_String();\r\n\t\tint p = f1.Max_Length(\"The cow jumped over the moon\");\r\n\t System.out.println(p);\r\n\t String ss = f1.Word_with_max_length(\"The cow jumped over the moon\");\r\n\t System.out.println(ss);\r\n\t\t\r\n\t}",
"static int size_of_stc(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_ral(String passed){\n\t\treturn 1;\n\t}",
"public static void main(String[] args) {\r\n\t String str1 = \"Hello world\";\r\n\t String str2 = str1.toUpperCase();\r\n\t String str3 = str1.toLowerCase();\r\n\t System.out.println(str1 + \" \" +str2);\r\n\t int str1Length = str1.length();\r\n\t System.out.println(str1Length);\r\n\t}",
"public int getWordLength();",
"public static void main(String[] args) {\n\t\t\n\t\tString[] s= {\"Amitesh\",null,\"\",\"Ravi\",\"\",\" \"};\n\t\t\n\t\t\n\t\tFunction<String[],Integer> f1=s1->{\n\t\t\t\n\t\tint v=0;\n\t\t\tfor(String a:s)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(a.length());\n\t\t\t}\n\t\t\treturn v;\n\t\t\t\n\t\t};\n\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\n\t}",
"static int size_of_ora(String passed){\n\t\treturn 1;\n\t}",
"public static void main(String[] args) {\n\t\tString s=\"Ravi Ranjan\";\r\n\t\tchar[] ch=s.toCharArray();\r\n\t\tint count=0;\r\n\t\t\r\n\t\tfor(char c:ch)\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\t\r\n\t\t// String length conut with out length method\r\n\t\tString name=\"Vikash\";\r\n\t\tString[] str=name.split(\"\");\r\n\t\tint numcount=0;\r\n\t\tfor(String str1:str)\r\n\t\t{\r\n\t\t\tnumcount++;\r\n\t\t}\r\n\t\tSystem.out.println(numcount);\r\n\t\t\r\n\t\t// String words conut with out length method\r\n\t\tString names=\"Ravi Ranjan Kumar\";\r\n\t\tString[] w=names.split(\" \");\r\n\t\tint wcount=0;\r\n\t\tfor(String st:w)\r\n\t\t{\r\n\t\t\twcount++;\r\n\t\t}\r\n\t\tSystem.out.println(wcount);\r\n\t\t\r\n\r\n\t}",
"static int size_of_ani(String passed){\n\t\treturn 2;\n\t}",
"public int get_length();",
"public static void main(String[] args) {\n\t\t// LENGTH();\n//\t\tString str=\"Syntax\";-----------------------\n//\t\t int lengthOfString=str.length();\n//\t\t System.out.println(lengthOfString);\n//\t\t String name=\"Timmy\";---------------------\n//\t\t int lengthOfString=name.length();\n//\t\t System.out.println(lengthOfString);\n//\t\t String name1=\" Syntex Technolody \";------------------\n//\t\t int lengthOfString1=name1.length();\n//\t\t System.out.println(name1.length());\n//\t\t String str2=\"Welcome, students!\";-----------------------\n//\t\t System.out.println(str2.length());\n\t\t// UPPER LOWER cases;\n//\t\t String str3=\"Hello\";\n//\t\t String newString=str3.toUpperCase();\n//\t\t System.out.println(newString);\n//\t\t String lowerCaseString=newString.toLowerCase();\n//\t\t System.out.println(lowerCaseString);\n//\t\t String love=\"Peionies will bring me Love\";\n//\t\t String caseString=love.toUpperCase();\n//\t\t System.out.println(love.toUpperCase());\n//\t\t String job=\"GOOD JOB IS SECCSESS IN LIFE\";\n//\t\t String newString1=job.toLowerCase();\n//\t\t System.out.println(newString1);\n//\t\t //equality;\n//\t\t String p1=\"The Hight is 5 inches\";\n//\t\t String p2=\"The hight is 5 inches\"; //QUASTION---DOES NOT IGNORES CASE!\n//\t\t boolean equality=p1.equalsIgnoreCase(p2);\n//\t\t System.out.println(equality);\n\n\t\tString word1 = \"syntaxsolutions\";\n\t\tString word2 = \"SYNTAXSOLUTIONS\";\n\n\t\tString case1 =word1.toUpperCase();\n\t\tSystem.out.println(case1);\n\n\t\tString case2 = word2.toLowerCase();\n\t\tSystem.out.println(case2);\n\t}",
"public static void main(String[] args) {\n String str = \"pwwkew\";\n// System.out.println(str.length());\n System.out.println(lengthOfLongestSubstring(str));\n\n\n }",
"public int count(String word);",
"public int length() {\n/* 103 */ return this.m_str.length();\n/* */ }",
"static int size_of_jm(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_in(String passed){\n\t\treturn 2;\n\t}",
"static int size_of_lhld(String passed){\n\t\treturn 3;\n\t}",
"public static void main(String[] args){\n String s = \"()()()\";\n System.out.println(find_max_length_of_matching_parentheses(s));\n }",
"static int size_of_aci(String passed){\n\t\treturn 2;\n\t}",
"static int size_of_sub(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_mvi(String passed){\n\t\treturn 2;\n\t}",
"public static void main(String[] args){\n\t\tLongestSubString obj = new LongestSubString();\n\t\t//System.out.println(obj.lengthOfLongestSubString(\"sandeep\"));\n\t\tSystem.out.println(obj.lengthOfLongestSubString(\"anday\"));\n\t}",
"static int size_of_cz(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_rz(String passed){\n\t\treturn 1;\n\t}",
"int calcStringLength(String str) {\n return this.lang.a(str);\n }",
"public int strCount(String str, String sub) {\n//Solution to problem coming soon\n}",
"int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}",
"public static void main(String[] args) {\n\t\tint width=20;\r\n\t\t\r\n\t\t\r\n\t\t//lambda expression\r\n\t\tTest t=()->{ //without paramter\r\n\t\t\tSystem.out.println(\"width=\"+width);\r\n\t\t};\r\n\t\t\r\n\t\tt.show();\r\n\t\t\r\n\t\tTest1 t1=(name)->{ //with paramter\r\n\t\t\treturn name;\r\n\t\t\t\r\n\t\t};\r\n\t\tSystem.out.println(t1.getName(\"sneha\"));\r\n\r\n\t}",
"static int size_of_cmp(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_inr(String passed){\n\t\treturn 1;\n\t}",
"public static void main(String[] args) {\n\t\tString A = \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\";\r\n\t\tLongestSubString longestSubString = new LongestSubString();\r\n\t\tint lengthOfLongestSubstring = longestSubString.lengthOfLongestSubstring(A);\r\n\t\tSystem.out.println(lengthOfLongestSubstring);\r\n\r\n\t}",
"static int size_of_cmc(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_jpo(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_adi(String passed){\n\t\treturn 2;\n\t}",
"public static void main(String[] args) {\n\t\tString s=\"hello far \";\n\t\tSystem.out.println(lengthOfLastWord(s));\n\t\t\n\n\t\t\n\t}",
"static int size_of_jc(String passed){\n\t\treturn 3;\n\t}",
"public int length();",
"public int length();",
"public int length();",
"public int length();",
"public int length();",
"public static void main(String[] args) {\n\t\tString s = \"Hello world\";\r\n\t\tint size = lengthOfLastWord(s);\r\n\t\tSystem.out.println(size);\r\n\r\n\t}",
"int mo23353w(String str, String str2);",
"static int size_of_call(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_out(String passed){\n\t\treturn 2;\n\t}",
"static int size_of_jz(String passed){\n\t\treturn 3;\n\t}",
"LengthGreater createLengthGreater();",
"static int size_of_jpe(String passed){\n\t\treturn 3;\n\t}",
"int getSearchLength();",
"static int size_of_daa(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_xthl(String passed){\n\t\treturn 1;\n\t}",
"public static void main(String [] args){\n System.out.println(lengthOfLongestSubstring(\"1a1b1c1d1\"));\n System.out.println(lengthOfLongestSubstring1(\"1a1b1c1d1\"));\n\n System.out.println(17/10);\n }",
"public int getLength();",
"public int getLength();",
"public int getLength();",
"public static void main(String[] args) {\n\t\tString str = \"{}{(}))}\";\n//\t\tString str = \")\";\n\t\tint n = str.length();\n\t\tSystem.out.println(fun(str, n));\n\t}",
"static int size_of_rpo(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"int length();",
"int length();",
"int length();",
"int length();",
"int length();",
"int length();",
"int length();",
"static int size_of_ret(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_ldax(String passed){\n\t\treturn 1;\n\t}",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"int getLength();",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"@Test\n\tpublic static void main() {\n\t\tSystem.out.println(Stringcount2(\"reddygaru\"));\n\t}",
"public static void main(String[] args) {\n\t\tConsumer<String> print = x -> System.out.println(x);//\n print.accept(\"kumar\");\n \n \n \n List<Integer> list = Arrays.asList(1, 2, 3, 4, 5);\n Consumer<Integer> consumer = (Integer x) -> System.out.println(x);\n forEach(list, consumer);\n forEach(list, (Integer x) -> System.out.println(x));\n\n //to find string lenth()\n List<String> lenth = Arrays.asList(\"a\", \"chinna\", \"Swamy\");\n forEachString(lenth, (String x) -> System.out.println(x.length()));\n\n }",
"static int size_of_cpi(String passed){\n\t\treturn 2;\n\t}",
"static int size_of_rpe(String passed){\n\t\treturn 1;\n\t}",
"public int getStringWidth(String text);",
"int mo23352v(String str, String str2);",
"@Override\npublic int compare(String first, String second) {\n\tint ans= Integer.compare(first.length(), second.length());\n\t//\n\t\n\t\n\t\n\t\n\treturn ans;\n\t//\n\t\n\t\n}",
"public void findLength()\n\t{\n\t\tlength = name.length();\n\t}",
"public Object lambda20() {\n return this.staticLink.lambda5loupOneOfChars(lists.cdr.apply1(this.chars));\n }",
"static int size_of_lda(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_dad(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_cpo(String passed){\n\t\treturn 3;\n\t}",
"static int size_of_rnz(String passed){\n\t\treturn 1;\n\t}"
] | [
"0.73259777",
"0.7082349",
"0.64654416",
"0.63036454",
"0.61654186",
"0.61279815",
"0.5997255",
"0.5986584",
"0.5985773",
"0.5956141",
"0.59537566",
"0.59510744",
"0.5941997",
"0.59394014",
"0.59392124",
"0.5898234",
"0.5879547",
"0.58556026",
"0.58507365",
"0.5830878",
"0.5813575",
"0.5790043",
"0.5778941",
"0.5769874",
"0.5742458",
"0.57287794",
"0.57245547",
"0.57177055",
"0.571574",
"0.5709327",
"0.5680746",
"0.56736696",
"0.5650796",
"0.56476814",
"0.5632129",
"0.56280106",
"0.56136256",
"0.5612526",
"0.56107056",
"0.55834883",
"0.5565711",
"0.5553359",
"0.55507284",
"0.5549055",
"0.55480385",
"0.5541786",
"0.55290323",
"0.55290323",
"0.55290323",
"0.55290323",
"0.55290323",
"0.5524868",
"0.55153173",
"0.55152655",
"0.55120194",
"0.5506271",
"0.55000526",
"0.54959303",
"0.5495227",
"0.5489788",
"0.54883146",
"0.5484721",
"0.5477294",
"0.5477294",
"0.5477294",
"0.54752606",
"0.5474576",
"0.54710597",
"0.54677093",
"0.54677093",
"0.54677093",
"0.54677093",
"0.54677093",
"0.54677093",
"0.54677093",
"0.54629624",
"0.54522216",
"0.5450195",
"0.5450195",
"0.5450195",
"0.5450195",
"0.5450195",
"0.5450195",
"0.5450195",
"0.5450195",
"0.5450195",
"0.5450195",
"0.5441069",
"0.5438475",
"0.5429865",
"0.54284686",
"0.54256225",
"0.5424609",
"0.5414509",
"0.5399029",
"0.5396038",
"0.539386",
"0.53885335",
"0.538756",
"0.53828144",
"0.5365959"
] | 0.0 | -1 |
Test of getPO method, of class PurchaseOrderManagementModule. | @Test
public void testGetPO() throws Exception {
System.out.println("getPO");
Long poId = -2L;
String result = "";
try {
PurchaseOrderManagementModule.getPO(poId);
} catch (Exception ex) {
result = ex.getMessage();
}
assertEquals("Purchase Order is not found!", result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String loadCustomerPO() {\n\tSession session = getSession();\n\ttry{\n\t\tCustomerPurchaseOrder custPO = new CustomerPurchaseOrder();\n\t\tcustPO = (CustomerPurchaseOrder) customerManager.listByParameter(\n\t\t\t\tcustPO.getClass(), \"customerPurchaseOrderId\",\n\t\t\t\tthis.getDr().getCustomerPurchaseOrder().getCustomerPurchaseOrderId(),session).get(0);\n\t\t\n\t\tpoDetailsHelper.generatePODetailsListFromSet(custPO.getPurchaseOrderDetails());\n\t\tpoDetailsHelper.generateCommaDelimitedValues();\n\t\t\n\t\tif(null==poDetailsHelperToCompare) {\n\t\t\tpoDetailsHelperToCompare = new PurchaseOrderDetailHelper(actionSession);\n\t\t}\n\t\tpoDetailsHelperToCompare.generatePODetailsListFromSet(custPO.getPurchaseOrderDetails());\n\t\tpoDetailsHelperToCompare.generateCommaDelimitedValues();\n\t\tthis.getDr().setTotalAmount(poDetailsHelper.getTotalAmount());\n\n\t\treturn \"dr\";\n\t}catch(Exception e){\n\t\treturn \"invoice\";\n\t}finally{\n\t\tif(session.isOpen()){\n\t\t\tsession.close();\n\t\t\tsession.getSessionFactory().close();\n\t\t}\n\t}\n\t}",
"@Test\n\tpublic void getOrderTest() {\n\t\tOrderDTO order = service.getOrder(2);\n\n\t\tassertEquals(3, order.getClientId());\n\t\tassertEquals(\"BT Group\", order.getInstrument().getName());\n\t\tassertEquals(\"BT\", order.getInstrument().getTicker());\n\t\tassertEquals(30.0, order.getPrice(), 1);\n\t\tassertEquals(500, order.getQuantity());\n\t\tassertEquals(OrderType.SELL, order.getType());\n\t}",
"@Test\n\tpublic void shouldReturnPagedDocumentsWithPurchaseOrder()\n\t{\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getAllPagedDocuments(\n\t\t\t\tcreatePageableData(0, 10, SORT_BY_DOCUMENT_STATUS_DESC), Collections.singletonList(AccountSummaryAddonUtils\n\t\t\t\t\t\t.createTypeCriteriaObject(DOCUMENT_TYPE_PURCHASE_ORDER, StringUtils.EMPTY, FILTER_BY_DOCUMENT_TYPE)));\n\n\t\tTestCase.assertEquals(1, result.getResults().size());\n\n\t\tTestCase.assertEquals(DOCUMENT_TYPE_PURCHASE_ORDER, result.getResults().get(0).getDocumentType().getCode());\n\t}",
"public void orderPo(int pid) throws Exception {\n PoBean po = this.getPoById(pid);\n if (po == null) throw new Exception(\"Purchase Order doesn't exist!\");\n if (po.getStatus() != PoBean.Status.PROCESSED) throw new Exception(\"Invalid Purchase Order Status.\");\n this.setPoStatus(PoBean.Status.ORDERED, pid);\n }",
"@Test\n public void testReadProductAndTaxDaoCorrectly() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n service.calculateNewOrderDataInput(newOrder);\n\n Assert.assertEquals(newOrder.getTaxRate(), (new BigDecimal(\"6.25\")));\n Assert.assertEquals(newOrder.getCostPerSquareFoot(), (new BigDecimal(\"5.15\")));\n Assert.assertEquals(newOrder.getLaborCostPerSquareFoot(), (new BigDecimal(\"4.75\")));\n\n }",
"@Test\n public void testCreatePurchaseOrder() throws Exception {\n System.out.println(\"createPurchaseOrder\");\n Long factoryId = 1L;\n Long contractId = 2L;\n Double purchaseAmount = 4D;\n Long storeId = 2L;\n String destination = \"store\";\n Calendar deliveryDate = Calendar.getInstance();\n deliveryDate.set(2015, 0, 13);\n Boolean isManual = false;\n Boolean isToStore = true;\n PurchaseOrderEntity result = PurchaseOrderManagementModule.createPurchaseOrder(factoryId, contractId, purchaseAmount, storeId, destination, deliveryDate, isManual, isToStore);\n assertNotNull(result);\n }",
"public void VerifyReferencePOField(){\r\n\t\tString countriesReferencePO=\"Germany,UK,Denmark\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Comments or ReferencePOField or both should be present based on country\");\r\n\r\n\t\ttry{\r\n\t\t\tif(countriesReferencePO.contains(countries.get(countrycount))){\r\n\t\t\t\tSystem.out.println(\"Reference Po field is present as \"+getPropertyValue(locator_split(\"txtCheckoutReferencePO\"), \"name\"));\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Reference Po field is present as \"+getPropertyValue(locator_split(\"txtCheckoutReferencePO\"), \"name\"));\r\n\t\t\t}else{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Reference PO field will not be present for this counry\");\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Reference PO field is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutCommentssection\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutReferencePO\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}",
"@POST\n @Consumes(\"application/json\")\n public Response createPO(PurchaseOrderEJBDTO po) {\n int pono = pfb.addPO(po);\n URI uri = context.getAbsolutePath();\n return Response.created(uri).entity(pono).build();\n }",
"@Test\n\tpublic void shouldReturnPagedDocumentsWithInvoiceForPronto()\n\t{\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getPagedDocumentsForUnit(\"Pronto\",\n\t\t\t\tcreatePageableData(0, 10, \"byDocumentNumberDesc\"), Collections.singletonList(AccountSummaryAddonUtils\n\t\t\t\t\t\t.createTypeCriteriaObject(DOCUMENT_TYPE_INVOICE, StringUtils.EMPTY, FILTER_BY_DOCUMENT_TYPE)));\n\n\t\tTestCase.assertEquals(3, result.getResults().size());\n\n\t\tfinal B2BDocumentModel b2bDocumentModel = result.getResults().get(0);\n\t\tfinal B2BDocumentModel b2bDocumentModel1 = result.getResults().get(1);\n\t\tfinal B2BDocumentModel b2bDocumentModel2 = result.getResults().get(2);\n\t\tTestCase.assertEquals(DOCUMENT_TYPE_INVOICE, b2bDocumentModel.getDocumentType().getCode());\n\t\tTestCase.assertEquals(DOCUMENT_TYPE_INVOICE, b2bDocumentModel1.getDocumentType().getCode());\n\t\tTestCase.assertEquals(DOCUMENT_TYPE_INVOICE, b2bDocumentModel2.getDocumentType().getCode());\n\t\tTestCase.assertEquals(\"INV-004\", b2bDocumentModel.getDocumentNumber());\n\t\tTestCase.assertEquals(\"INC-004\", b2bDocumentModel1.getDocumentNumber());\n\t\tTestCase.assertEquals(\"CRN-004\", b2bDocumentModel2.getDocumentNumber());\n\t}",
"@Test\n public void testPopulateNewOrderInfo() throws Exception {\n\n Order order3 = new Order(\"003\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"Date_Folder_Orders/Orders_06232017.txt\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n Order order4 = service.populateNewOrderInfo(order3);\n\n assertEquals(\"Paul\", order4.getCustomerName());\n }",
"@Test\n public void testConfirmPurchaseOrder() throws Exception {\n System.out.println(\"confirmPurchaseOrder\");\n String userId = \"F1000001\";\n Long purchaseOrderId = 1L;\n String result = PurchaseOrderManagementModule.confirmPurchaseOrder(userId, purchaseOrderId);\n assertEquals(\"Purchase Order Confirmed!\", result);\n }",
"public void testGetModo() {\n System.out.println(\"getModo\");\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n int expResult = 0;\n int result = instance.getModo();\n assertEquals(expResult, result);\n }",
"@Override\r\n public PurchaseOrderItem getPurchaseOrderItem() {\r\n if (ObjectUtils.isNotNull(this.getPurapDocumentIdentifier())) {\r\n if (ObjectUtils.isNull(this.getPaymentRequest())) {\r\n this.refreshReferenceObject(PurapPropertyConstants.PURAP_DOC);\r\n }\r\n }\r\n // ideally we should do this a different way - maybe move it all into the service or save this info somehow (make sure and\r\n // update though)\r\n if (getPaymentRequest() != null) {\r\n PurchaseOrderDocument po = getPaymentRequest().getPurchaseOrderDocument();\r\n PurchaseOrderItem poi = null;\r\n if (this.getItemType().isLineItemIndicator()) {\r\n List<PurchaseOrderItem> items = po.getItems();\r\n poi = items.get(this.getItemLineNumber().intValue() - 1);\r\n // throw error if line numbers don't match\r\n // MSU Contribution DTT-3014 OLEMI-8483 OLECNTRB-974\r\n /*\r\n * List items = po.getItems(); if (items != null) { for (Object object : items) { PurchaseOrderItem item =\r\n * (PurchaseOrderItem) object; if (item != null && item.getItemLineNumber().equals(this.getItemLineNumber())) { poi\r\n * = item; break; } } }\r\n */\r\n } else {\r\n poi = (PurchaseOrderItem) SpringContext.getBean(PurapService.class).getBelowTheLineByType(po, this.getItemType());\r\n }\r\n if (poi != null) {\r\n return poi;\r\n } else {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getPurchaseOrderItem() Returning null because PurchaseOrderItem object for line number\" + getItemLineNumber() + \"or itemType \" + getItemTypeCode() + \" is null\");\r\n }\r\n return null;\r\n }\r\n } else {\r\n\r\n LOG.error(\"getPurchaseOrderItem() Returning null because paymentRequest object is null\");\r\n throw new PurError(\"Payment Request Object in Purchase Order item line number \" + getItemLineNumber() + \"or itemType \" + getItemTypeCode() + \" is null\");\r\n }\r\n }",
"@Test(dependsOnMethods = \"checkSiteVersion\")\n public void createNewOrder() {\n actions.openRandomProduct();\n\n // save product parameters\n actions.saveProductParameters();\n\n // add product to Cart and validate product information in the Cart\n actions.addToCart();\n actions.goToCart();\n actions.validateProductInfo();\n\n // proceed to order creation, fill required information\n actions.proceedToOrderCreation();\n\n // place new order and validate order summary\n\n // check updated In Stock value\n }",
"@Test\n void getByIdOrderSuccess() {\n Order retrievedOrder = dao.getById(2);\n assertNotNull(retrievedOrder);\n assertEquals(\"February Large Long-Sleeve\", retrievedOrder.getDescription());\n\n }",
"public String getPoNumber() {\n return this.poNumber;\n }",
"public void testGetObj() {\n System.out.println(\"getObj\");\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.getObj();\n assertEquals(expResult, result);\n }",
"@Override\r\n\tpublic Purchase findPurchase2(int prodNo) throws Exception {\n\t\treturn null;\r\n\t}",
"public PDAction getPO() {\n/* 247 */ COSDictionary po = (COSDictionary)this.actions.getDictionaryObject(\"PO\");\n/* 248 */ PDAction retval = null;\n/* 249 */ if (po != null)\n/* */ {\n/* 251 */ retval = PDActionFactory.createAction(po);\n/* */ }\n/* 253 */ return retval;\n/* */ }",
"@Test(groups = {\"smoke tests\"})\n public void validPurchase() {\n page.GetInstance(CartPage.class)\n .clickProceedToCheckoutButton() //to OrderAddressPage\n .clickProceedToCheckoutButton() //to OrderShippingPage\n .acceptTermsAndProceedToCheckout() //to OrderPaymentPage\n .clickPayByBankWireButton() //to OrderSummaryPage\n .clickIConfirmMyOrderButton(); //to OrderConfirmationPage\n\n // Then\n page.GetInstance(OrderConfirmationPage.class).confirmValidOrder(\"Your order on My Store is complete.\");\n }",
"private Order getOrder()\n {\n return orderController.getOrder(getOrderNumber());\n }",
"@Test\n\tpublic void testOrder() {\n\t\t\n\t\tDateFormat df1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = df1 .parse(\"2021-10-15\");\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tshoppingCart = new ShoppingCart();\n\t\tshoppingCart.setExpiry(date);\n\t\tshoppingCart.setUserId(11491);\n\t\tshoppingCart.setItems(shoppingCartSet);\n\t\t\n\t\torder.setId(1);\n\t\torder.setShoppingCart(shoppingCart);\n\t\t\n\t\ttry {\n\t\t\tassertEquals(orderService.order(order), 1);\n\t\t\t\n\t\t} catch (OrderException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n public void testValidateNewOrderProduct() throws Exception {\n\n Order order3 = new Order(\"003\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"Date_Folder_Orders/Orders_06232017.txt\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n assertEquals(true, service.validateNewOrderProduct(order3));\n }",
"@Test\n\tpublic void createOrderTest() {\n\t\ttry {\n\t\t\tassertNull(salesOrderCtrl.getOrder());\n\t\t\tsalesOrderCtrl.createSalesOrder();\n\t\t\tassertNotNull(salesOrderCtrl.getOrder());\n\t\t} catch (Exception e) {\n\t\t\te.getMessage();\n\t\t}\n\t}",
"@Test\n void whenOrderIdIsValid_thenReturnDelivery_findByOrderId(){\n Delivery delivery = deliveryService.getDeliveryByOrderId(1L);\n assertThat(delivery.getOrder_id()).isEqualTo(1L);\n }",
"@Test\n public void makeAndRetrievePbaPaymentsByProbate() {\n String accountNumber = testProps.existingAccountNumber;\n CreditAccountPaymentRequest accountPaymentRequest = PaymentFixture.aPbaPaymentRequestForProbate(\"90.00\",\n \"PROBATE\",accountNumber);\n accountPaymentRequest.setAccountNumber(accountNumber);\n PaymentDto paymentDto = paymentTestService.postPbaPayment(USER_TOKEN, SERVICE_TOKEN, accountPaymentRequest).then()\n .statusCode(CREATED.value()).body(\"status\", equalTo(\"Success\")).extract().as(PaymentDto.class);\n\n assertTrue(paymentDto.getReference().startsWith(\"RC-\"));\n\n // Get pba payment by reference\n PaymentDto paymentsResponse =\n paymentTestService.getPbaPayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then()\n .statusCode(OK.value()).extract().as(PaymentDto.class);\n\n assertThat(paymentsResponse.getAccountNumber()).isEqualTo(accountNumber);\n\n // delete payment record\n paymentTestService.deletePayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then().statusCode(NO_CONTENT.value());\n\n }",
"public static void PP_Order(MPPOrder o) {\n\t\tProperties ctx = o.getCtx();\n\t\tString trxName = o.get_TrxName();\n\t\t//\n\t\t// Supply\n\t\tMPPMRP mrpSupply = getQuery(o, TYPEMRP_Supply, ORDERTYPE_ManufacturingOrder).firstOnly();\n\t\tif (mrpSupply == null) {\n\t\t\tmrpSupply = new MPPMRP(ctx, 0, trxName);\n\t\t\tmrpSupply.setAD_Org_ID(o.getAD_Org_ID());\n\t\t\tmrpSupply.setTypeMRP(MPPMRP.TYPEMRP_Supply);\n\t\t}\n\t\tmrpSupply.setPP_Order(o);\n\t\tmrpSupply.setPriority(o.getPriorityRule());\n\t\tmrpSupply.setPlanner_ID(o.getPlanner_ID());\n\t\tmrpSupply.setM_Product_ID(o.getM_Product_ID());\n\t\tmrpSupply.setM_Warehouse_ID(o.getM_Warehouse_ID());\n\t\tmrpSupply.setQty(o.getQtyOrdered().subtract(o.getQtyDelivered()));\n\t\tmrpSupply.save();\n\t\t//\n\t\t// Demand\n\t\tList<MPPMRP> mrpDemandList = getQuery(o, TYPEMRP_Demand, ORDERTYPE_ManufacturingOrder).list();\n\t\tfor (MPPMRP mrpDemand : mrpDemandList) {\n\t\t\tmrpDemand.setPP_Order(o);\n\t\t\tmrpDemand.save();\n\t\t}\n\t}",
"@Test\n public void testAddOrder() {\n\n System.out.println(\"addOrder\");\n OrderOperations instance = new OrderOperations();\n int orderNumber = 1;\n String date = \"03251970\";\n String customerName = \"Barack\";\n String state = \"MI\";\n String productType = \"Wood\";\n double area = 700;\n ApplicationContext ctx = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n DAOInterface testInterface = (DAOInterface) ctx.getBean(\"testMode\");\n String productInfo, taxes;\n try {\n productInfo = testInterface.readFromDisk(\"productType.txt\");\n } catch (FileNotFoundException e) {\n productInfo = \"\";\n }\n\n try {\n taxes = testInterface.readFromDisk(\"taxes.txt\");\n } catch (FileNotFoundException e) {\n taxes = \"\";\n }\n instance.addOrder(customerName, date, state, productType, area, taxes, productInfo);\n assertEquals(instance.getOrderMap().containsKey(date), true);\n assertEquals(instance.getOrderMap().get(date).get(orderNumber).getCustomerName(), \"Barack\");\n\n }",
"private void updateAssignedPO() {\n Organisation organisation = PersistenceManager.getCurrent().getCurrentModel();\n\n Person productOwner = getModel().getAssignedPO();\n\n // Add all the people with the PO skill to the list of POs\n List<Person> productOwners = organisation.getPeople()\n .stream()\n .filter(p -> p.canBeRole(Skill.PO_NAME))\n .collect(Collectors.toList());\n\n // Remove listener while editing the product owner picker\n poComboBox.getSelectionModel().selectedItemProperty().removeListener(getChangeListener());\n poComboBox.getItems().clear();\n poComboBox.getItems().addAll(productOwners);\n if (poComboBox != null) {\n poComboBox.getSelectionModel().select(productOwner);\n if (!isCreationWindow) {\n navigateToPOButton.setDisable(false);\n }\n }\n poComboBox.getSelectionModel().selectedItemProperty().addListener(getChangeListener());\n }",
"@Test\n /*He utilizado los 2 precios, uno para que sea el precio de cada producto y el otro sera la suma total de los precios*/\n public void testGetBalance() {\n System.out.println(\"getBalance\");\n ShoppingCart instance = new ShoppingCart();\n \n Product p1 = new Product(\"Galletas\", precio1);\n Product p2 = new Product(\"Raton\", precio1);\n Product p3 = new Product(\"Teclado\", precio1);\n Product p4 = new Product(\"Monitor 4K\", precio1);\n \n instance.addItem(p1);\n instance.addItem(p2);\n instance.addItem(p3);\n instance.addItem(p4);\n \n double precio_total = precio2;\n \n double result = instance.getBalance();\n assertEquals(precio_total, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Step(\"Creating a new Clinical Purchase Requisitions for a Work Order\")\n public void verifyCreatingNewPurchaseRequistion() throws Exception {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n pageActions.scrollthePage(ClinicalPurchaseRequisitionsTab);\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(ClinicalPurchaseRequisitionsTab));\n functions.highlighElement(driver, ClinicalPurchaseRequisitionsTab);\n pageActions.clickAt(ClinicalPurchaseRequisitionsTab, \"Clicking on purchase requistions tab\");\n pageActions.clickAt(clinicalPurchaseReqNewButton, \"Clicking on purchase requistions New buttton\");\n String randomExternalPO_Number = \"Test\"+Functions.getTimeStamp();\n pageActions.type(externalPO_Number, randomExternalPO_Number, \"Entered Clicnical PO Number\");\n clinicalPurchaseShortDescription.sendKeys(\"Automation externalPO_Numbner desc\");\n pageActions.clickAt(clinicalPurchaseSubmitButton, \"Clicking on SubmitButton\");\n pageActions.clickAt(saveAndGoButton, \"Clicked on save and go button\");\n searchExternalPONumber();\n\n }",
"public interface PurchaseOrderService {\n /**\n * create Purchase Order From Boq.\n * @param boqDetail boqDetail\n * @param appUser appUser\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader createPoFromBoq(BoqDetail boqDetail, AppUser appUser);\n /**\n * add lines to Purchase Order Header.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param boqDetail boqDetail\n * @return boolean\n */\n boolean addLineToPoFromBoqDetail(PurchaseOrderHeader purchaseOrderHeader, BoqDetail boqDetail);\n\n /**\n * save Purchase Order Header into database.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param securityContext securityContext\n * @return response\n */\n CommonResponse savePurchaseOrder(PurchaseOrderHeader purchaseOrderHeader, SecurityContext securityContext);\n\n /**\n * get all purchase Order Header.\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaders();\n\n /**\n * get PurchaseOrderHeader whole oblect per pohId.\n * @param pohId pohId.\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader getPurchaseOrderHeaderWhole(long pohId);\n /**\n /**\n * get product purchase items for specific supplier.\n * @param suppId suppId\n * @param searchStr searchStr\n * @return List of PruductPurchaseItem\n */\n List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);\n /**\n * get all purchase Order Header.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierIdAndStatusCode(long supplierId);\n\n /**\n * get all purchase Order Header per orguid and status.\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderNotFullyReceived();\n\n /**\n * get all purchase Order Header for specific supplier.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);\n /**\n * search purchase order header.\n * @param searchForm searchForm\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> searchPurchaseOrderHeaders(GeneralSearchForm searchForm);\n\n /**\n * get product purchase item for specific supplier and catalog no.\n * @param suppId suppId\n * @param catalogNo catalogNo\n * @return List of PruductPurchaseItem\n */\n ProductPurchaseItem getSupplierProductPurchaseItemPerCatalogNo(long suppId, String catalogNo);\n\n /**\n * get all purchase Order Header for specific product.\n * @param prodId prodId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseLine> getAllPurchaseOrderOfProduct(long prodId);\n\n /**\n * search purchase order header.\n * @param searchForm searchForm\n * @return List of PurchaseOrderHeader\n */\n GeneralSearchForm searchPurchaseOrderHeadersPaging(GeneralSearchForm searchForm);\n /**\n * create Purchase Order From Boq.\n * @param txnDetail sale order detail\n * @param appUser appUser\n * @return PurchaseOrderHeader\n */\n PurchaseOrderHeader createPoFromSaleOrder(TxnDetail txnDetail, AppUser appUser);\n\n /**\n * add lines to Purchase Order Header from txn detail.\n * @param purchaseOrderHeader purchaseOrderHeader\n * @param txnDetail txnDetail\n * @return true if successfull, otherwise return false;\n */\n boolean addLineToPoFromTxnDetail(PurchaseOrderHeader purchaseOrderHeader, TxnDetail txnDetail);\n\n /**\n * get all purchase order headers linked to specific sale order.\n * @param txhdId transaction header id.\n * @return List of purchase order linked to sale order\n */\n List<PurchaseOrderHeader> getAllPurchaseOrderOfSaleOrder(long txhdId);\n\n /**\n * update status of linked BOQ.\n * @param pohId purchaes order header id.\n */\n void updatePurchaseOrderLinkedBoqStatus(long pohId);\n\n /**\n * delete purchase order per poh id.\n * @param pohId pohId\n * @return CommonResponse.\n */\n CommonResponse deletePurchaseOrderPerPhoId(long pohId);\n\n /**\n * update order status of linked sales orders.\n * @param pohId purchaes order header id.\n */\n void updatePurchaseOrderLinkedSaleOrderStatus(long pohId);\n\n /**\n * get all IN-PROGRESS and CONFIRMED purchase Order Header.\n * @param supplierId supplierId\n * @return List of PurchaseOrderHeader\n */\n List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);\n\n\n /**\n * get product purchase item for specific supplier and catalog no.\n * @param sprcId sprcId\n * @return List of PruductPurchaseItem\n */\n ProductPurchaseItem getProductPurchaseItemPerId(long sprcId);\n}",
"@Test\r\n public void testRetrieve() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.retrieve(paymentDetail1));\r\n }",
"public PurchaseVO toPurchaseVO(PurchaseBillPO po) throws RemoteException{\r\n\t\tPurchaseVO purchaseVO = new PurchaseVO(po.getBillID(),po.getSupplier(),po.getOperator(),po.getInventory(),po.getTotalAmount(),po.getRemark(),po.getGoodsList().get(0).getId()+\"\",po.getGoodsList().get(0).getName(),po.getGoodsList().get(0).getType(),(int)po.getGoodsList().get(0).getAmount(),po.getGoodsList().get(0).getPrice()+\"\",po.getGoodsList().get(0).getTotalPrice(),po.getGoodsList().get(0).getRemark());\r\n\t\treturn purchaseVO;\r\n\t}",
"@Test\n public void testDAM32001002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3PageListPage orderMB3PageListPage = dam3IndexPage\n .dam32001002Click();\n\n orderMB3PageListPage.checkITM0000001();\n\n orderMB3PageListPage = orderMB3PageListPage.clickItemCodeSearch();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001\\nITM0000002, Orange juice\\nNotePC, CTG0000001\\nCTG0000002, Drink\\nPC, dummy7\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3PageListPage.getOrderDetails(7);\n\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy4\";\n actualOrderDetails = orderMB3PageListPage.getOrderDetails(4);\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n }",
"public static MPPOrder createMO(MPPProductPlanning pp, int C_OrderLine_ID, int M_AttributeSetInstance_ID, BigDecimal qty, Timestamp dateOrdered,\n\t\t\tTimestamp datePromised, String description) {\n\n\t\tMPPProductBOM bom = pp.getPP_Product_BOM();\n\t\tMWorkflow wf = pp.getAD_Workflow();\n\n\t\tif (pp.getS_Resource_ID() > 0 && bom != null && wf != null) {\n\t\t\t// RoutingService routingService =\n\t\t\t// RoutingServiceFactory.get().getRoutingService(pp.getCtx());\n\t\t\t// int duration =\n\t\t\t// routingService.calculateDuration(wf,MResource.get(pp.getCtx(),\n\t\t\t// pp.getS_Resource_ID()),qty).intValueExact();\n\t\t\tint duration = MPPMRP.getDurationDays(qty, pp);\n\n\t\t\tMPPOrder order = new MPPOrder(pp.getCtx(), 0, pp.get_TrxName());\n\t\t\torder.setAD_Org_ID(pp.getAD_Org_ID());\n\t\t\torder.setDescription(description);\n\t\t\torder.setC_OrderLine_ID(C_OrderLine_ID);\n\t\t\torder.setS_Resource_ID(pp.getS_Resource_ID());\n\t\t\torder.setM_Warehouse_ID(pp.getM_Warehouse_ID());\n\t\t\torder.setM_Product_ID(pp.getM_Product_ID());\n\t\t\torder.setM_AttributeSetInstance_ID(M_AttributeSetInstance_ID);\n\t\t\torder.setPP_Product_BOM_ID(pp.getPP_Product_BOM_ID());\n\t\t\torder.setAD_Workflow_ID(pp.getAD_Workflow_ID());\n\t\t\torder.setPlanner_ID(pp.getPlanner_ID());\n\t\t\torder.setLine(10);\n\t\t\torder.setDateOrdered(dateOrdered);\n\t\t\torder.setDatePromised(datePromised);\n\t\t\torder.setDateStartSchedule(TimeUtil.addDays(datePromised, 0 - duration));\n\t\t\torder.setDateFinishSchedule(datePromised);\n\t\t\torder.setC_UOM_ID(new MProduct(pp.getCtx(), pp.getM_Product_ID(), pp.get_TrxName()).getC_UOM_ID());\n\t\t\torder.setQty(qty);\n\t\t\torder.setPriorityRule(MPPOrder.PRIORITYRULE_High);\n\t\t\torder.save();\n\t\t\torder.setDocStatus(order.prepareIt());\n\t\t\torder.setDocAction(MPPOrder.ACTION_Complete);\n\t\t\torder.save();\n\t\t\treturn order;\n\t\t}\n\t\treturn null;\n\t}",
"public SupplyPO get(Integer pk)\r\n\t{\r\n\t\ttry{\r\n\t\t\r\n\t\t\tSupplyDAO dao = new SupplyDAO();\r\n\t\t\treturn (SupplyPO)dao.getObject(SupplyPO.class, pk);\r\n\t\t\t\r\n\t\t}catch (Exception e){\r\n\t\t\r\n\t\t\tlog.error(e.toString());\r\n\t\t\treturn null;\r\n\t\t\t\r\n\t\t}\r\n\t}",
"@Test\n public void shouldRetrieveAPaymentViaGet() throws Exception {\n ResponseEntity<String> response = postTestPaymentAndGetResponse();\n String location = getLocationHeader(response);\n\n //when: the payment is fetched via get:\n ResponseEntity<Payment> getResponse = restTemplate.getForEntity(location, Payment.class);\n //then: the response status code should be OK:\n assertEquals(HttpStatus.OK, getResponse.getStatusCode());\n //and: the data on the response should be correct, e.g. check the orgainsation_id field:\n Payment payment = getResponse.getBody();\n assertEquals(testPaymentAsObject.getOrganisationId(), payment.getOrganisationId());\n }",
"public void process(PurchaseOrder po)\n {\n File file = new File(path + \"/\" + ORDERS_XML);\n \n try\n {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource();\n is.setCharacterStream(new FileReader(file));\n\n Document doc = db.parse(is);\n\n Element root = doc.getDocumentElement();\n Element e = doc.createElement(\"order\");\n\n // Convert the purchase order to an XML format\n String keys[] = {\"orderNum\",\"customerRef\",\"product\",\"quantity\",\"unitPrice\"};\n String values[] = {Integer.toString(po.getOrderNum()), po.getCustomerRef(), po.getProduct().getProductType(), Integer.toString(po.getQuantity()), Float.toString(po.getUnitPrice())};\n \n for(int i=0;i<keys.length;i++)\n {\n Element tmp = doc.createElement(keys[i]);\n tmp.setTextContent(values[i]);\n e.appendChild(tmp);\n }\n \n // Set the status to submitted\n Element status = doc.createElement(\"status\");\n status.setTextContent(\"submitted\");\n e.appendChild(status);\n\n // Set the order total\n Element total = doc.createElement(\"orderTotal\");\n float orderTotal = po.getQuantity() * po.getUnitPrice();\n total.setTextContent(Float.toString(orderTotal));\n e.appendChild(total);\n\n // Write the content all as a new element in the root\n root.appendChild(e);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer m = tf.newTransformer();\n DOMSource source = new DOMSource(root);\n StreamResult result = new StreamResult(file);\n m.transform(source, result);\n\n }\n catch(Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"@DirtiesDatabase\n\t@Test\n\tpublic void testRetrievePAforBundle() {\n\t\tcreateBundles();\n\t\tPriceAdjustment createPA = createPA(\"P1\", \"PA1\", \"PLGUID\", \"CGUID\");\n\t\tPriceAdjustment createPA2 = createPA(\"P1\", \"PA2\", \"PLGUID\", \"C2GUID\");\n\t\t\n\t\tProductBundle bundle = (ProductBundle) productService.findByGuid(\"P1\");\n\t\tCollection<PriceAdjustment> findAllAdjustmentsOnBundle = priceAdjustmentService.findAllAdjustmentsOnBundle(\"PLGUID\", bundle);\n\t\tassertNotNull(findAllAdjustmentsOnBundle);\n\t\tassertEquals(2, findAllAdjustmentsOnBundle.size());\n\t\tassertEquals(createPA.getGuid(), ((PriceAdjustment) findAllAdjustmentsOnBundle.toArray()[0]).getGuid());\n\t\tassertEquals(createPA2.getGuid(), ((PriceAdjustment) findAllAdjustmentsOnBundle.toArray()[1]).getGuid());\n\t}",
"@Test\n void getByPropertyLikeSuccess() {\n List<Order> orders = dao.getByPropertyLike(\"description\", \"SSD\");\n assertEquals(1, orders.size());\n }",
"@Test\n public void testOrderFactoryGetOrder() {\n OrderController orderController = orderFactory.getOrderController();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n // add a menu item to the menu\n menuFactory.getMenu().addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n\n // order 3 of the menu item\n HashMap<MenuItem, Integer> orderItems = new HashMap<>();\n HashMap<SetItem, Integer> setOrderItems = new HashMap<>();\n orderItems.put(menuFactory.getMenu().getMenuItem(1), 3);\n\n // create the order\n orderController.addOrder(STAFF_NAME, 1, false, orderItems, setOrderItems);\n assertEquals(1, orderController.getOrders().size());\n assertEquals(STAFF_NAME, orderController.getOrder(1).getStaffName());\n assertEquals(1, orderController.getOrder(1).getTableId());\n assertEquals(3, orderController.getOrder(1).getOrderedMenuItems().get(menuFactory.getMenu().getMenuItem(1)));\n }",
"@Override\r\n\tpublic PurchaseOrder getOnePurchaseOrderById(Integer purId) {\n\t\treturn ht.get(PurchaseOrder.class,purId);\r\n\t}",
"@Test\n public void addOrderTest() {\n Orders orders = new Orders();\n orders.addOrder(order);\n\n Order test = orders.orders.get(0);\n String[] itemTest = test.getItems();\n String[] priceTest = test.getPrices();\n\n assertEquals(items, itemTest);\n assertEquals(prices, priceTest);\n }",
"@Test\n public void getOrderByIdTest() {\n Long orderId = 10L;\n Order response = api.getOrderById(orderId);\n Assert.assertNotNull(response);\n Assert.assertEquals(10L, response.getId().longValue());\n Assert.assertEquals(10L, response.getPetId().longValue());\n Assert.assertEquals(1, response.getQuantity().intValue());\n\n verify(exactly(1), getRequestedFor(urlEqualTo(\"/store/order/10\")));\n }",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\to = new Order(\"Customer 1\");\t\t\r\n\t\to.addProduct(new Product(\"p101\",\"Orange\",12,10));\r\n\t\to.addProduct(new Product(\"p102\",\"Banana\",4,5));\r\n\t\to.addProduct(new Product(\"p103\",\"Apple\",10,10));\r\n\t\to.addProduct(new Product(\"p104\",\"Lemons\",5,20));\r\n\t\to.addProduct(new Product(\"p105\",\"Peaches\",5,5));\r\n\t}",
"@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void crearOrdersTest() {\r\n\r\n\t\tpd.crearOrders();\r\n\t\tpd.pm.deletePersistent(pd.o1);\r\n\t\tpd.pm.deletePersistent(pd.o2);\r\n\t\tpd.pm.deletePersistent(pd.o3);\r\n\r\n\t}",
"public int getOrderProductNum()\r\n {\n return this.orderProductNum;\r\n }",
"@Override\r\n\tpublic int modify(PaymentPO po) {\n\t\treturn 0;\r\n\t}",
"public void testGet() {\n System.out.println(\"get\");\n String key = \"\";\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.get(key);\n assertEquals(expResult, result);\n }",
"@Test\r\n\t@Order(1)\r\n\tpublic void testTotalPrice() {\r\n\r\n\t\tSystem.out.println(\"Total Precio Test\");\r\n\r\n\t\tcarritoCompraService.addArticulo(new Articulo(\"articulo1\", 10.5));\r\n\t\tcarritoCompraService.addArticulo(new Articulo(\"articulo2\", 20.5));\r\n\t\tcarritoCompraService.addArticulo(new Articulo(\"articulo3\", 30.5));\r\n\r\n\t\tSystem.out.println(\"Precio Total : \" + carritoCompraService.totalPrice());\r\n\r\n\t\tassertEquals(carritoCompraService.totalPrice(), 61.5);\r\n\t\t\r\n\t}",
"@Test\n public void testCreateOrderCalculations() throws Exception {\n\n service.loadFiles();\n \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n service.calculateNewOrderDataInput(newOrder);\n\n Assert.assertEquals(newOrder.getMaterialCostTotal(), (new BigDecimal(\"1199.95\")));\n Assert.assertEquals(newOrder.getLaborCost(), (new BigDecimal(\"1106.75\")));\n Assert.assertEquals(newOrder.getTax(), (new BigDecimal(\"144.17\")));\n Assert.assertEquals(newOrder.getTotal(), (new BigDecimal(\"2450.87\")));\n\n }",
"@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}",
"public static void main(String[] args) throws Exception {\n\n System.out.println(\"###CustomerOrder Test###\");\n CustomerOrderService customerOrderService = new CustomerOrderService(new CustomerOrderDao());\n\n CustomerOrder customerOrder1 = new CustomerOrder(BigDecimal.valueOf(99.95), \"NEW\", \"1000\", 1, 1, 1);\n customerOrderService.addCustomerOrder(customerOrder1);\n\n System.out.println(\"getCustomerOrder(1): \" + customerOrderService.getCustomerOrder(1));\n System.out.println(\"getAllCustomerOrdersByCustId(1): \" + customerOrderService.getAllCustomerOrdersByCustId(1));\n\n System.out.println(\"getDetailedCustomerOrder(1): \" + customerOrderService.getDetailedCustomerOrder(1));\n\n System.out.println(\"getCustomerOrderStatus(1): \" + customerOrderService.getCustomerOrderStatus(1));\n \n\n CustomerOrder customerOrder2 = new CustomerOrder(1, BigDecimal.valueOf(88.88), \"SHIPPED\", \"2222\", 2, 2, 2);\n customerOrderService.updateCustomerOrder(customerOrder2);\n\n System.out.println(\"getCustomerOrder(1) - after update: \" + customerOrderService.getCustomerOrder(1));\n\n Payment payment1 = new Payment(1, \"PAYMENT\", \"PROCESSED\");\n customerOrderService.addPayment(payment1);\n\n System.out.println(\"getPayment(1): \" + customerOrderService.getPayment(1));\n customerOrderService.updatePayment(1, \"REFUNDED\");\n System.out.println(\"getPayment(1) - after status update: \" + customerOrderService.getPayment(1));\n\n System.out.println(\"getPaymentsByOrderId(1): \" + customerOrderService.getPaymentsByOrderId(1));\n\n CustomerOrderDetail customerOrderDetail1 = new CustomerOrderDetail(1, 3);\n customerOrderService.addCustomerOrderDetail(customerOrderDetail1);\n\n System.out.println(\"getCustomerOrderDetail(2): \" + customerOrderService.getCustomerOrderDetail(2));\n System.out.println(\"getCustomerOrderDetailsByOrderId(1): \" + customerOrderService.getCustomerOrderDetailsByOrderId(1));\n \n \n \n //Start of the Product test\n \n System.out.println(\"###Product Test###\"); \n ProductService productService = new ProductService(new ProductDao());\n\n Product productTest = new Product(1, \"1234\", \"ProductTest\", \"veryCool\", true, 1, 1, \"picture\");\n productService.createProduct(productTest);\n \n System.out.println(\"Select productTest by id: \" + productService.getProduct(4));\n \n System.out.println(\"select All Products: \" + productService.selectAllProducts());\n \n\n \n //End of product test\n \n //Partner test started\n \n System.out.println(\"###Partner Test###\"); \n PartnerService partnerService = new PartnerService(new PartnerDao());\n\n Partner partnerTest = new Partner(1, \"Myco\", \"6331 N Kenmore Ave\", \"Chicago\", \"IL\", \"60660\", \"USA\", \"800-556-8876\", \"abc@xyz.com\", \"http://www.xyz.com/\", true);\n partnerService.createPartner(partnerTest);\n \n System.out.println(\"Select partnerTest by id: \" + partnerService.getPartner(1));\n \n System.out.println(\"select All Partners: \" + partnerService.selectAllPartner());\n \n \n //End of partner test\n }",
"@Test\n public void testGetQuantity() {\n assertEquals(\"getQuantity failed\", 2, o1.getQuantity());\n }",
"@Test\n public void testBuyProperty() throws IOException, InvalidFormatException, NotAProperty {\n GameController controller = new GameController(2,0);\n controller.getActivePlayer().setLocation(6);\n ColouredProperty cp = (ColouredProperty) controller.getBoard().getBoardLocations().get(controller.getActivePlayer().getLocation());\n controller.buyProperty(controller.getBoard().getBoardLocations().get(controller.getActivePlayer().getLocation()));\n Assert.assertTrue(controller.getActivePlayer().getName().equals(cp.getOwnedBuy()));\n }",
"@Test\n public void getPerroTest() {\n \n PerroEntity entity = Perrodata.get(0);\n PerroEntity resultEntity = perroLogic.getPerro(entity.getId());\n Assert.assertNotNull(resultEntity);\n \n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getIdPerro(), resultEntity.getIdPerro());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n Assert.assertEquals(entity.getEdad(), resultEntity.getEdad());\n Assert.assertEquals(entity.getRaza(), resultEntity.getRaza());\n }",
"List<PurchaseLine> getAllPurchaseOrderOfProduct(long prodId);",
"@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}",
"@Test\n public void testDeployCommandInOpponentCountry() {\n d_gameData.getD_playerList().get(0).setD_noOfArmies(10);\n d_orderProcessor.processOrder(\"deploy nepal 6\", d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order.executeOrder());\n }",
"@Test\n public void testEditAnOrder() {\n System.out.println(\"EditAnOrder\");\n OrderOperations instance = new OrderOperations();\n int orderNumber = 1;\n String date = \"03251970\";\n String customerName = \"Barack\";\n String state = \"MI\";\n String productType = \"Wood\";\n double area = 700;\n ApplicationContext ctx = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n DAOInterface testInterface = (DAOInterface) ctx.getBean(\"testMode\");\n String productInfo, taxes;\n try {\n productInfo = testInterface.readFromDisk(\"productType.txt\");\n } catch (FileNotFoundException e) {\n productInfo = \"\";\n }\n\n try {\n taxes = testInterface.readFromDisk(\"taxes.txt\");\n } catch (FileNotFoundException e) {\n taxes = \"\";\n }\n instance.addOrder(customerName, date, state, productType, area, taxes, productInfo);\n date = \"03251970\";\n customerName = \"Chuck\";\n state = \"PA\";\n area = 200;\n instance.editAnOrder(orderNumber, customerName, date, state, productType, taxes, area, productInfo);\n assertEquals(instance.getOrderMap().get(date).get(orderNumber).getCustomerName().equals(\"Barack\"), false);\n assertEquals(instance.getOrderMap().get(date).get(orderNumber).getState().equals(\"PA\"), true);\n \n }",
"@Test\r\n public void getPriceTest() {\r\n Phone phone = mock(Phone.class);\r\n when(phone.getPrice()).thenReturn(2500);\r\n assertEquals(2500, phone.getPrice());\r\n }",
"@Override\n\tpublic Porder getPorderById(Integer porderid) {\n \t\n \treturn entityManager.find(Porder.class,porderid);\n }",
"@Test (priority = 3)\n\t@Then(\"^Create Order$\")\n\tpublic void create_Order() throws Throwable {\n\t\tCommonFunctions.clickButton(\"wlnk_Home\", \"Sheet1\", \"Home\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLNK_OrderNewServices\", \"Sheet1\", \"Oreder New Service\", \"CLICK\");\n\t\t//Thread.sleep(3000);\n\t\tCommonFunctions.clickButton(\"WRD_complete\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Contine\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WCB_Additional\", \"Sheet1\", \"Additional\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_checkout\", \"Sheet1\", \"Checkout\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_completeOrder\", \"Sheet1\", \"complete order\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_PayNow\", \"Sheet1\", \"Pay Now\", \"CLICK\");\n\t\tCommonFunctions.checkObjectExist(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"NO\");\n\t\tCommonFunctions.clickButton(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"CLICK\");\n\t}",
"public java.lang.String getPO_ITEM() {\r\n return PO_ITEM;\r\n }",
"void getOrders();",
"@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNumTarjetaPrepago(), resultEntity.getNumTarjetaPrepago());\n Assert.assertEquals(entity.getSaldo(), resultEntity.getSaldo(), 0.001);\n Assert.assertEquals(entity.getPuntos(), resultEntity.getPuntos(),0.001);\n }",
"Product getPProducts();",
"@Test\n public void testInit()\n {\n System.out.println(\"testInit\");\n ExchangeProduct myExchangeProduct = new ExchangeProduct(\"FU\", \"SGX\", \"K1\");\n \n assertEquals(\"FU\", myExchangeProduct.getGroupCode());\n assertEquals(\"SGX\", myExchangeProduct.getExchangeCode());\n assertEquals(\"K1\", myExchangeProduct.getSymbol());\n }",
"@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }",
"@Test(enabled = true)\n\tpublic void test001() {\n\t\tCategoryPOM laptops = new CategoryPOM(driver);\n\t\tlaptops.showAllLaptops();\n\t\tlaptops.clickProduct(\"Air\");\n\t\tProductPOM macbookAir = new ProductPOM(driver);\n\t\tmacbookAir.addToWishlist();\n\t\tmacbookAir.addToComparelist();\n\t}",
"@Test\n public void testFindProduct() {\n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n \n assertTrue(instance.findProduct(\"Galletas\"));\n }",
"@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\r\n // TODO review the generated test code and remove the default call to fail.\r\n // fail(\"The test case is a prototype.\");\r\n }",
"public ProjectOfferPOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public SysOrderDOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\r\n\tpublic Purchase findPurchase(int tranNo) throws Exception {\n\t\treturn null;\r\n\t}",
"@Test\r\n public void getPostalCodeTest()\r\n {\r\n Assert.assertEquals(stub.getPostalCode(), POSTALCODE);\r\n }",
"@Test\r\n\tpublic void testAddPurchaseOrder() {\r\n\t\tassertNotNull(\"Test if there is valid purchase order list to add to\", purchaseOrder);\r\n\r\n\t\tpurchaseOrder.add(o1);\r\n\t\tassertEquals(\"Test that if the purchase order list size is 1\", 1, purchaseOrder.size());\r\n\r\n\t\tpurchaseOrder.add(o2);\r\n\t\tassertEquals(\"Test that if purchase order size is 2\", 2, purchaseOrder.size());\r\n\t}",
"public void testGetObjTemp() {\n System.out.println(\"getObjTemp\");\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n Object expResult = null;\n Object result = instance.getObjTemp();\n assertEquals(expResult, result);\n }",
"PurchaseOrderHeader createPoFromSaleOrder(TxnDetail txnDetail, AppUser appUser);",
"public BigDecimal getOrderItemProice() {\n return orderItemProice;\n }",
"public PurchaseBillPO toPurchaseBillPO(PurchaseVO vo){\r\n\t\tList<GoodInfo> list = new ArrayList<GoodInfo>();\r\n\t\tGoodInfo goodinfo = new GoodInfo(vo.getNameofGoods(),vo.getModel(),vo.getNumber(),Double.parseDouble(vo.getPrice()),vo.getSum2(),vo.getNote2());\r\n\t\tlist.add(goodinfo);\r\n\t\tPurchaseBillPO purchasebillPO = new PurchaseBillPO(null,vo.getIdofGoods(),vo.getSupplier(),vo.getStorage(),null,vo.getOperator(),list,vo.getNote1(),vo.getSum1());\r\n\t\treturn purchasebillPO;\r\n\t}",
"@Test\n public void testGetProductInfo() throws Exception {\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();",
"public PurchaseExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"PurchaseOrderHeader createPoFromBoq(BoqDetail boqDetail, AppUser appUser);",
"@Test\r\n public void testPickOrder() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614141.107341.1\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(PICK_ORDER_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n assertNotNull(event);\r\n }",
"@Test\n public void testGetPrice() {\n System.out.println(\"getPrice\");\n Menu instance = MenuFactory.createMenu(MenuType.FOOD, name, 14000);\n int expResult = 14000;\n int result = instance.getPrice();\n assertEquals(expResult, result);\n }",
"@Override\n public void execute(ProcessBundle bundle) throws Exception {\n HttpServletRequest request = RequestContext.get().getRequest();\n VariablesSecureApp vars = new VariablesSecureApp(request);\n\n try {\n OBContext.setAdminMode();\n // Variable declaration\n // Variable declaration\n String proposalId = null;\n String proposalattrId = null;\n if (bundle.getParams().get(\"Escm_Proposalmgmt_ID\") != null) {\n proposalId = bundle.getParams().get(\"Escm_Proposalmgmt_ID\").toString();\n }\n if (bundle.getParams().get(\"Escm_Proposal_Attr_ID\") != null) {\n proposalattrId = bundle.getParams().get(\"Escm_Proposal_Attr_ID\").toString();\n EscmProposalAttribute proposalAttr = OBDal.getInstance().get(EscmProposalAttribute.class,\n proposalattrId);\n proposalId = proposalAttr.getEscmProposalmgmt().getId();\n }\n EscmProposalMgmt proposalmgmt = OBDal.getInstance().get(EscmProposalMgmt.class, proposalId);\n final String clientId = bundle.getContext().getClient();\n final String orgId = proposalmgmt.getOrganization().getId();\n final String userId = bundle.getContext().getUser();\n User user = OBDal.getInstance().get(User.class, userId);\n String purchaseOrderType = \"PUR\";\n List<EscmPurchaseOrderConfiguration> config = new ArrayList<EscmPurchaseOrderConfiguration>();\n List<Location> bploclist = new ArrayList<Location>();\n List<Warehouse> warehouselist = new ArrayList<Warehouse>();\n List<PriceList> priceListlist = new ArrayList<PriceList>();\n List<PaymentTerm> paymentTermList = new ArrayList<PaymentTerm>();\n Location bplocation = null;\n String yearId = null, transdoctypeId = null;\n SimpleDateFormat d1 = new SimpleDateFormat(\"dd-MM-yyyy\");\n Warehouse warehouse = null;\n PriceList priceList = null;\n PaymentTerm paymentTerm = null;\n String startingDate = \"\", budgetReferenceId = null;\n\n String motContactPerson = \"\";\n String motContactPosition = \"\";\n String description = null;\n String alertWindow = sa.elm.ob.scm.util.AlertWindow.contractUser;\n String windowId = \"2ADDCB0DD2BF4F6DB13B21BBCCC3038C\";\n NextRoleByRuleVO nextApproval = null;\n\n ProposalManagementProcessDAO proposalDAO = new ProposalManagementProcessDAOImpl();\n // get the connection\n Connection conn = OBDal.getInstance().getConnection();\n\n boolean isMinProposalApproved = false;\n if (proposalmgmt.getProposalstatus().equals(\"PAWD\")) {\n isMinProposalApproved = proposalDAO.isMinProposalApproved(proposalmgmt);\n }\n\n if ((proposalmgmt.getProposalappstatus().equals(\"APP\")\n && proposalmgmt.getProposalstatus().equals(\"AWD\"))\n || (proposalmgmt.getProposalstatus().equals(\"PAWD\")\n && (isMinProposalApproved || proposalmgmt.getProposalappstatus().equals(\"APP\")))) {\n\n // based on configuration minvalue , getting purchase order type is purchase order /contract\n if (proposalmgmt.getProposalstatus().equals(\"PAWD\")) {\n config = proposalDAO.getPOTypeBasedOnValue(orgId, proposalmgmt.getAwardamount());\n } else {\n config = proposalDAO.getPOTypeBasedOnValue(orgId, proposalmgmt.getTotalamount());\n }\n\n if (config.size() > 0) {\n purchaseOrderType = config.get(0).getOrdertype();\n\n // Setting mot contact person and position\n\n EscmPurchaseOrderConfiguration configuration = config.get(0);\n motContactPosition = configuration.getMOTContactPosition();\n motContactPerson = configuration.getMOTContactPerson() != null\n ? configuration.getMOTContactPerson().getName()\n : null;\n\n } else {\n\n // Setting mot contact person and position\n\n EscmPurchaseOrderConfiguration configuration = PurchaseAgreementCalloutDAO\n .checkDocTypeConfig(OBContext.getOBContext().getCurrentClient().getId(),\n proposalmgmt.getOrganization().getId(), purchaseOrderType);\n\n motContactPosition = configuration.getMOTContactPosition();\n motContactPerson = configuration.getMOTContactPerson() != null\n ? configuration.getMOTContactPerson().getName()\n : null;\n\n }\n\n // Throw error if contract category is inactive\n if (proposalmgmt != null && proposalmgmt.getContractType() != null\n && !proposalmgmt.getContractType().isActive()) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Escm_ContractCategoryInactive@\");\n bundle.setResult(result);\n return;\n }\n\n startingDate = proposalDAO.getPeriodStartDate(clientId);\n budgetReferenceId = proposalDAO.getBudgetFromPeriod(clientId, startingDate);\n if (\"\".equals(budgetReferenceId)) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@Efin_Budget_Init_Mandatory@\");\n bundle.setResult(result);\n return;\n }\n if (budgetReferenceId != null) {\n if (!proposalmgmt.getEfinBudgetinitial().getId().equals(budgetReferenceId)) {\n // OBError result = OBErrorBuilder.buildMessage(null, \"error\", \"@Escm_YearClosed_Err@\");\n // bundle.setResult(result);\n // return;\n }\n }\n\n // fetching finacial year\n yearId = proposalDAO.getFinancialYear(clientId);\n if (\"\".equals(yearId)) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@ESCM_FinancialYear_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n\n // fetching warehouse\n warehouselist = proposalDAO.getWarehouse(proposalmgmt.getClient().getId());\n if (warehouselist.size() > 0) {\n warehouse = warehouselist.get(0);\n } else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", \"@ESCM_Warehouse_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n\n // fetching bplocation\n bploclist = proposalDAO.getLocation(proposalmgmt.getSupplier().getId());\n if (bploclist.size() > 0)\n bplocation = bploclist.get(0);\n else {\n String message = OBMessageUtils.messageBD(\"ESCM_SuppLoc_NotDefine\");\n message = message.replace(\"%\", proposalmgmt.getSupplier().getName());\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", message);\n bundle.setResult(result);\n return;\n }\n\n // fetching pricelist\n priceListlist = proposalDAO.getPriceList(proposalmgmt.getClient().getId());\n if (priceListlist.size() > 0)\n priceList = priceListlist.get(0);\n else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", \"@ESCM_PriceList_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n\n // fetching payment term\n paymentTermList = proposalDAO.getPaymentTerm(proposalmgmt.getClient().getId());\n if (paymentTermList.size() > 0)\n paymentTerm = paymentTermList.get(0);\n else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@ESCM_PaymentTerm_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n if (user.getBusinessPartner() == null) {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@ESCM_CrtPOfrmProsal_NotBP@\");\n bundle.setResult(result);\n return;\n }\n // default value brought for mot contact person/position so no need validation.\n /*\n * if (user.getBusinessPartner() != null && user.getBusinessPartner().getEhcmPosition() ==\n * null) { OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n * \"@ESCM_LoggUser_PosNotDef@\"); bundle.setResult(result); return; }\n */\n\n // fetching document type\n Object transdoctype = proposalDAO.getTransactionDoc(orgId, clientId);\n if (transdoctype != null) {\n transdoctypeId = (String) transdoctype;\n } else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", \"@ESCM_PODocType_NotDefine@\");\n bundle.setResult(result);\n return;\n }\n\n if (transdoctypeId != null && paymentTerm != null && priceList != null && warehouse != null\n && bplocation != null && yearId != null) {\n Order order = OBProvider.getInstance().get(Order.class);\n order.setClient(proposalmgmt.getClient());\n order.setOrganization(proposalmgmt.getOrganization());\n order.setCreatedBy(user);\n order.setUpdatedBy(user);\n order.setSalesTransaction(false);\n order.setDocumentType(OBDal.getInstance().get(DocumentType.class, \"0\"));\n order.setTransactionDocument(OBDal.getInstance().get(DocumentType.class, transdoctypeId));\n order.setDocumentNo(UtilityDAO.getSequenceNo(conn, clientId,\n order.getTransactionDocument().getDocumentSequence().getName(), true));\n order.setDocumentStatus(\"DR\");\n order.setDocumentAction(\"CO\");\n order.setAccountingDate(new java.util.Date());\n order.setOrderDate(new java.util.Date());\n order.setBusinessPartner(proposalmgmt.getSupplier());\n order.setEscmRevision(0L);\n order.setEscmAppstatus(\"DR\");\n order.setEscmFinanyear(OBDal.getInstance().get(Year.class, yearId));\n if (proposalmgmt.getEscmBidmgmt() != null\n && proposalmgmt.getEscmBidmgmt().getBidname() != null) {\n order.setEscmProjectname(proposalmgmt.getEscmBidmgmt().getBidname());\n } else {\n order.setEscmProjectname(proposalmgmt.getBidName());\n }\n // order.setEscmOnboarddateh(new java.util.Date());\n order.setEscmOrdertype(purchaseOrderType);\n // order.setEscmOnboarddategreg(d1.format(new Date()));\n order.setPartnerAddress(bplocation);\n order.setEscmContractduration(null);\n // order.setEscmPeriodtype(\"DT\");\n order.setWarehouse(warehouse);\n order.setPriceList(priceList);\n order.setPaymentTerms(paymentTerm);\n order.setInvoiceTerms(\"D\");\n order.setDeliveryTerms(\"A\");\n order.setFreightCostRule(\"I\");\n order.setFormOfPayment(\"B\");\n order.setDeliveryMethod(\"P\");\n order.setPriority(\"5\");\n order.setEscmAdRole(OBContext.getOBContext().getRole());\n order.setEscmAppstatus(\"DR\");\n order.setEscmAdvpaymntPercntge(BigDecimal.ZERO);\n Currency objCurrency = OBDal.getInstance().get(Currency.class, \"317\");\n order.setCurrency(proposalmgmt.getOrganization().getCurrency() == null ? objCurrency\n : proposalmgmt.getOrganization().getCurrency());\n\n if (proposalmgmt.getProposalstatus().equals(\"PAWD\")) {\n order.setGrandTotalAmount(proposalmgmt.getAwardamount());\n } else {\n order.setGrandTotalAmount(proposalmgmt.getTotalamount());\n }\n\n order.setDocumentStatus(\"DR\");\n order.setEscmDocaction(\"CO\");\n // order.setEscmContractstartdate(new java.util.Date());\n // order.setEscmContractenddate(new java.util.Date());\n order.setEscmBuyername(user);\n order.setEscmRatedategre(d1.format(new Date()));\n if (budgetReferenceId != null)\n order.setEfinBudgetint(\n OBDal.getInstance().get(EfinBudgetIntialization.class, budgetReferenceId));\n order.setEscmProposalmgmt(proposalmgmt);\n // order.setEscmMotcontperson(user.getBusinessPartner().getName());\n // order.setEscmMotcontposition(user.getBusinessPartner().getEhcmPosition());\n order.setEscmMotcontperson(motContactPerson);\n order.setEscmMotcontposition(motContactPosition);\n if (proposalmgmt.getSecondsupplier() != null)\n order.setEscmSecondsupplier(proposalmgmt.getSecondsupplier());\n if (proposalmgmt.getSecondBranchname() != null)\n order.setEscmSecondBranchname(proposalmgmt.getSecondBranchname());\n order.setEscmIssecondsupplier(proposalmgmt.isSecondsupplier());\n if (proposalmgmt.getIBAN() != null)\n order.setEscmSecondIban(proposalmgmt.getIBAN());\n if (proposalmgmt.getSubcontractors() != null)\n order.setEscmSubcontractors(proposalmgmt.getSubcontractors());\n if (proposalmgmt.isTaxLine()) {\n order.setEscmIstax(proposalmgmt.isTaxLine());\n\n }\n if (proposalmgmt.getEfinTaxMethod() != null) {\n order.setEscmTaxMethod(proposalmgmt.getEfinTaxMethod());\n }\n order.setEscmCalculateTaxlines(true);\n if (proposalmgmt.getContractType() != null) {\n order.setEscmContactType(proposalmgmt.getContractType());\n if (proposalmgmt.getContractType().getReceiveType().getSearchKey().equals(\"AMT\")) {\n order.setEscmReceivetype(\"AMT\");\n } else {\n order.setEscmReceivetype(\"QTY\");\n }\n } else {\n order.setEscmContactType(null);\n }\n OBQuery<EscmProposalsourceRef> sourceRef = OBDal.getInstance().createQuery(\n EscmProposalsourceRef.class,\n \"as e where e.escmProposalmgmtLine.id in (select ln.id from \"\n + \"Escm_Proposalmgmt_Line ln where ln.escmProposalmgmt.id=:propId)\");\n sourceRef.setNamedParameter(\"propId\", proposalmgmt.getId());\n List<EscmProposalsourceRef> propSrclist = sourceRef.list();\n if (propSrclist.size() > 0) {\n EscmProposalsourceRef propSrcRef = propSrclist.get(0);\n if (propSrcRef.getRequisition() != null) {\n order.setEscmMaintenanceProject(\n propSrcRef.getRequisition().getEscmMaintenanceProject());\n }\n if (propSrcRef.getRequisition() != null) {\n order.setEscmMaintenanceCntrctNo(\n propSrcRef.getRequisition().getESCMMaintenanceContractNo());\n }\n }\n if (proposalmgmt.getEscmBidmgmt() != null) {\n OBQuery<Escmbidsourceref> bidSrcref = OBDal.getInstance().createQuery(\n Escmbidsourceref.class,\n \"as e where e.escmBidmgmtLine.id in (select bid.id from escm_bidmgmt_line bid where bid.escmBidmgmt.id=:bidId)\");\n bidSrcref.setNamedParameter(\"bidId\", proposalmgmt.getEscmBidmgmt().getId());\n List<Escmbidsourceref> bidSrcList = bidSrcref.list();\n if (bidSrcList.size() > 0) {\n Escmbidsourceref bidSrcRef = bidSrcList.get(0);\n if (bidSrcRef.getRequisition() != null) {\n order.setEscmMaintenanceProject(\n bidSrcRef.getRequisition().getEscmMaintenanceProject());\n order.setEscmMaintenanceCntrctNo(\n bidSrcRef.getRequisition().getESCMMaintenanceContractNo());\n }\n }\n }\n\n OBDal.getInstance().save(order);\n\n proposalmgmt.setDocumentNo(order);\n OBDal.getInstance().save(proposalmgmt);\n\n // Updating the PO reference in PEE(Proposal Attribute)\n // Fetching the PEE irrespective of Proposal Version\n OBQuery<EscmProposalAttribute> proposalAttr = OBDal.getInstance().createQuery(\n EscmProposalAttribute.class,\n \" as a join a.escmProposalevlEvent b where b.status='CO' and a.escmProposalmgmt.proposalno= :proposalID \");\n proposalAttr.setNamedParameter(\"proposalID\", proposalmgmt.getProposalno());\n List<EscmProposalAttribute> proposalAttrList = proposalAttr.list();\n if (proposalAttrList.size() > 0) {\n EscmProposalAttribute proposalAttrObj = proposalAttrList.get(0);\n proposalAttrObj.setOrder(order);\n OBDal.getInstance().save(proposalAttrObj);\n }\n\n OBDal.getInstance().flush();\n\n int ordercount = POcontractAddproposalDAO.insertOrderline(conn, proposalmgmt, order);\n\n if (ordercount == 1) {\n // send an alert to contract user when po is created\n description = sa.elm.ob.scm.properties.Resource\n .getProperty(\"scm.contractuser.alert\", vars.getLanguage())\n .concat(\"\" + proposalmgmt.getProposalno());\n AlertUtility.alertInsertBasedonPreference(order.getId(), order.getDocumentNo(),\n \"ESCM_Contract_User\", order.getClient().getId(), description, \"NEW\", alertWindow,\n \"scm.contractuser.alert\", Constants.GENERIC_TEMPLATE, windowId, null);\n String message = OBMessageUtils.messageBD(\"ESCM_CreatePOForProposal_Success\");\n message = message.replace(\"%\", order.getDocumentNo());\n OBError result = OBErrorBuilder.buildMessage(null, \"success\", message);\n bundle.setResult(result);\n } else {\n OBError result = OBErrorBuilder.buildMessage(null, \"error\",\n \"@ESCM_CreatePOForProsalNotSuccess@\");\n bundle.setResult(result);\n }\n }\n }\n } catch (OBException e) {\n OBDal.getInstance().rollbackAndClose();\n log.error(\" Exception in CreatePOFromProposal: \" + e);\n OBError result = OBErrorBuilder.buildMessage(null, \"error\", e.getMessage());\n bundle.setResult(result);\n return;\n } catch (Exception e) {\n log.error(\"Exeception in CreatePOFromProposal Process:\", e);\n // Throwable t = DbUtility.getUnderlyingSQLException(e);\n final OBError error = OBMessageUtils.translateError(bundle.getConnection(), vars,\n vars.getLanguage(), OBMessageUtils.messageBD(\"HB_INTERNAL_ERROR\"));\n bundle.setResult(error);\n } finally {\n OBContext.restorePreviousMode();\n }\n }",
"@Test\r\n public void testGetPaymentDetails() {\r\n }",
"@Test\n\tpublic void testOrderWithoutShoppingCart() {\n\t\ttry {\n\t\t\tassertEquals(orderService.order(order), null);\n\t\t} catch (OrderException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n public void testDAM32102002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32102002Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntityLazy();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n }",
"@Override\n\tpublic ProductBean readpro(int pnum) {\n\t\treturn session.selectOne(namespace+\".readpro\", pnum);\n\t}",
"public GetProductoSrv() {\n\t\tsuper();\n\t\tinitializer();\n\t}",
"public void testGetObjSwap() {\n System.out.println(\"getObjSwap\");\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n HashMap result = instance.getObjSwap();\n assertNotNull(result);\n }",
"@Test\n\tpublic void priceTest(){\n\t\tMyFoodora myFoodora = new MyFoodora();\n\t\tmyFoodora.load();\n\t\tRestaurant rest = myFoodora.getListRestaurant().get(0);\n\t\ttry{\n\t\tOrder order = new Order(myFoodora.getListCustomer().get(0), rest);\n\t\torder.AddMealToOrder(\"basic\",1); //Basic is the meal of the week\n\t\torder.getCustomer().setFidelityCard(\"lotteryfidelitycard\");\n\t\torder.getBill();\n\t\tmyFoodora.getListCourier().get(0).setAcceptProbability(1); //To be sure that the order is always accepted in the test\n\t\tmyFoodora.setCourierToOrder(order);\n\t\tmyFoodora.closeOrder(order);\n\t\tassertTrue(order.getPrice()== ((double) Math.round(0.95*(2.3+6.7+2.5) * 100))/100 ||order.getPrice()==0);}\n\t\t\n\t\tcatch(NoCourierFoundToDeliver e){\n\t\t\te.getMessage();\n\t\t}\n\t\tcatch(OrderNotCompletException e){\n\t\t\te.getMessage();\n\t\t}\n\t\tcatch(ItemDoesNotExist e){\n\t\t\te.getMessage();\n\t\t}\n\t\tcatch(FidelityCardDoesNotExistException e){\n\t\t\te.getMessage();\n\t\t}\n\t}",
"@Test\r\n\tpublic void testMakePurchase_enough_money() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tvendMachine.addItem(test, \"C\");\r\n\t\tvendMachine.insertMoney(10.0);\r\n\t\tassertEquals(true, vendMachine.makePurchase(\"A\"));\r\n\t}",
"@Test\n public void testEditOrder() throws Exception {\n String stringDate1 = \"10012017\";\n LocalDate date = LocalDate.parse(stringDate1, DateTimeFormatter.ofPattern(\"MMddyyyy\"));\n\n String stringDate2 = \"11052020\";\n LocalDate date2 = LocalDate.parse(stringDate2, DateTimeFormatter.ofPattern(\"MMddyyyy\"));\n\n Orders edittedOrder = new Orders(1);\n edittedOrder.setOrderNumber(1);\n edittedOrder.setDate(date2);\n edittedOrder.setCustomerName(\"Jenna\");\n edittedOrder.setArea(new BigDecimal(\"30\"));\n Tax tax = new Tax(\"PA\");\n tax.setState(\"PA\");\n edittedOrder.setTax(tax);\n Product product = new Product(\"Tile\");\n product.setProductType(\"Tile\");\n edittedOrder.setProduct(product);\n service.addOrder(edittedOrder);\n\n Orders oldOrder = service.getOrder(date, 1);\n service.editOrder(oldOrder, edittedOrder);\n\n// Testing order date and product change \n assertEquals(new BigDecimal(\"4.15\"), service.getOrder(edittedOrder.getDate(), edittedOrder.getOrderNumber()).getProduct().getLaborCostPerSqFt());\n assertEquals(new BigDecimal(\"6.75\"), service.getOrder(edittedOrder.getDate(), edittedOrder.getOrderNumber()).getTax().getTaxRate());\n\n try {\n// Testing if order was removed from previous the date after the edit method\n service.getOrder(date, 1).getProduct().getProductType();\n fail(\"Exception was expected\");\n } catch (Exception e) {\n return;\n }\n\n }",
"public void setOrderItemProice(BigDecimal orderItemProice) {\n this.orderItemProice = orderItemProice;\n }",
"@Test\n public void testLoadOrderData() throws Exception {\n dao.loadEnvironmentVariable();\n Order writeOrder = new Order();\n\n writeOrder.setOrderNumber(1);\n writeOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n writeOrder.setCustomer(\"Load Test\");\n writeOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n writeOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n writeOrder.setArea(new BigDecimal(\"100.00\"));\n writeOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n writeOrder.setLaborCost(new BigDecimal(\"475.00\"));\n writeOrder.setTaxCost(new BigDecimal(\"61.88\"));\n writeOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n assertTrue(dao.getAllOrders().isEmpty());\n\n dao.addOrder(writeOrder);\n dao.writeOrderData();\n\n dao = null;\n\n OrdersDao dao2 = new OrdersDaoImpl();\n\n assertTrue(dao2.getAllOrders().isEmpty());\n\n dao2.loadOrderData();\n\n assertTrue(dao2.getAllOrders().size() >= 1);\n\n Files.deleteIfExists(Paths.get(System.getProperty(\"user.dir\") + \"/Orders_01011900.txt\"));\n }"
] | [
"0.6768519",
"0.6177562",
"0.60846496",
"0.57843435",
"0.5767392",
"0.5743571",
"0.5708308",
"0.5697701",
"0.5691271",
"0.5690969",
"0.562017",
"0.561092",
"0.56061345",
"0.5544702",
"0.55261874",
"0.5495393",
"0.547915",
"0.54715294",
"0.5470912",
"0.5468958",
"0.5464304",
"0.54457223",
"0.5427396",
"0.5414936",
"0.53694206",
"0.5369094",
"0.5367258",
"0.53474474",
"0.533732",
"0.53276926",
"0.5325055",
"0.53207356",
"0.5308528",
"0.5300523",
"0.5299101",
"0.52865845",
"0.5283627",
"0.5264813",
"0.5262818",
"0.5260221",
"0.5259576",
"0.52587163",
"0.52557373",
"0.52469164",
"0.5218205",
"0.51944786",
"0.5185403",
"0.518282",
"0.51813674",
"0.5179027",
"0.5169596",
"0.51650846",
"0.51545",
"0.5153702",
"0.5151796",
"0.5150756",
"0.5143493",
"0.51361346",
"0.5129298",
"0.5128317",
"0.5126937",
"0.5108579",
"0.5091696",
"0.5089874",
"0.50833493",
"0.5078356",
"0.50775224",
"0.5076466",
"0.50718695",
"0.5070828",
"0.50653255",
"0.50555974",
"0.50536895",
"0.50486857",
"0.50473684",
"0.50410265",
"0.5037292",
"0.5036147",
"0.50354695",
"0.50344115",
"0.5033455",
"0.5033136",
"0.5032943",
"0.5031632",
"0.5024754",
"0.50213337",
"0.50131476",
"0.50103664",
"0.5009054",
"0.5006401",
"0.50049603",
"0.500277",
"0.49995628",
"0.49990237",
"0.4997175",
"0.4995639",
"0.4991675",
"0.49889657",
"0.49852166",
"0.497395"
] | 0.79014593 | 0 |
Test of viewRawMaterialWithSelectType method, of class PurchaseOrderManagementModule. | @Test
public void testViewRawMaterialWithSelectType1() throws Exception {
System.out.println("viewRawMaterialWithSelectType");
Long factoryId = 1L;
Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);
assertFalse(result.isEmpty());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testViewRawMaterialWithSelectType2() throws Exception {\n System.out.println(\"viewRawMaterialWithSelectType\");\n Long factoryId = 1L;\n Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);\n assertFalse(result.isEmpty());\n }",
"@Override\n public void onClick(View view) {\n\n if (material_type.getSelectedItem().equals(\"--Select Material Type--\")) {\n Toast.makeText(Activity_Sell.this, \"Select Material Type to continue\", Toast.LENGTH_SHORT).show();\n } else {\n\n// LoadMaterialTypeSpinner();\n alertDialog.dismiss();\n getMaterial();\n /* getMaterialClasses();\n getMaterialDetails();\n getMaterialUnits();*/\n\n }\n }",
"public void setMaterial_type(Integer material_type) {\n this.material_type = material_type;\n }",
"public ManageRawMaterials() {\n initComponents();\n \n txtF230IID.setText(wdba.GetIncrementedId(\"rawMaterialId\",\"rawMaterial\",2));\n \n wdba.FillCombo(cmb231IName,\"itemName\",\"rawMaterial\");\n ck = new ComboKeyHandler(cmb231IName);\n \n wdba.ViewAll(tbl201RawMaterials,\"rawMaterial\");\n SetTableHeaders();\n jLabel9.setVisible(false);\n spnnr233IQty1.setVisible(false);\n updateItem.setText(\"Update Item\");\n tbl201RawMaterials.setComponentPopupMenu(pop234Update);\n \n \n cmb231IName.getEditor().getEditorComponent().addKeyListener(new KeyAdapter() {\n public void keyTyped(KeyEvent e){\n ck.keyTyped(e);\n }\n });\n }",
"public Integer getMaterial_type() {\n return material_type;\n }",
"public void setType(Material type) {\n this.type = type;\n }",
"@FXML\n void modifyProductSearchOnAction(ActionEvent event) {\n if (modifyProductSearchField.getText().matches(\"[0-9]+\")) {\n modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n } else {\n modProdAddTable.getSelectionModel().select(Inventory.partName(modifyProductSearchField.getText()));\n }\n //modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n }",
"public static void showMaterialsType (String[] materialsName, String[] materialsType, String type, int materialsAmount){\n\t\t\n\t\tArrayList<String> result = Budget.materialsType(materialsName, materialsType, type, materialsAmount);\n\t\t\n\t\tSystem.out.println(\"Materiales de \" + type + \":\");\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t\t\n\t}",
"public String selectByExample(MaterialTypeExample example) {\r\n SQL sql = new SQL();\r\n if (example != null && example.isDistinct()) {\r\n sql.SELECT_DISTINCT(\"id\");\r\n } else {\r\n sql.SELECT(\"id\");\r\n }\r\n sql.SELECT(\"mt_name\");\r\n sql.SELECT(\"remark\");\r\n sql.SELECT(\"mt_order_num\");\r\n sql.FROM(Utils.getDatabase()+\".material_type\");\r\n applyWhere(sql, example, false);\r\n \r\n if (example != null && example.getOrderByClause() != null) {\r\n sql.ORDER_BY(example.getOrderByClause());\r\n }\r\n \r\n return sql.toString();\r\n }",
"@Test\n public void selectChainedView() throws Exception {\n final Properties connectionProps = new Properties();\n connectionProps.setProperty(USER, TestInboundImpersonation.PROXY_NAME);\n connectionProps.setProperty(PASSWORD, TestInboundImpersonation.PROXY_PASSWORD);\n connectionProps.setProperty(IMPERSONATION_TARGET, TestInboundImpersonation.TARGET_NAME);\n BaseTestQuery.updateClient(connectionProps);\n BaseTestQuery.testBuilder().sqlQuery(\"SELECT * FROM %s.u0_lineitem ORDER BY l_orderkey LIMIT 1\", BaseTestImpersonation.getWSSchema(TestInboundImpersonation.OWNER)).ordered().baselineColumns(\"l_orderkey\", \"l_partkey\").baselineValues(1, 1552).go();\n }",
"@Test\n public void cargarComboBoxMateria(){\n ComboBoxRecrea cbRecrea=new ComboBoxRecrea();\n mt=contAgre.AgregarMateria(imagen, puntos, materiaNombre); \n contCons.CargarComboBoxMateria(cbRecrea);\n int cbLimite=cbRecrea.getItemCount();\n for(int i=0;i<cbLimite;i++){\n assertNotSame(\"\",cbRecrea.getItemAt(i));//El nombre que se muestra es distinto de vacio\n assertNotNull(cbRecrea.getItemAt(i));\n }\n String mat= (String)cbRecrea.getItemAt(cbRecrea.getItemCount()-1);\n assertEquals(mat,mt.getNombre());\n \n cbRecrea.setSelectedIndex(cbRecrea.getItemCount()-1);\n Materia materia=(Materia)cbRecrea.GetItemRecrea();\n \n assertEquals(mt.getHijoURL(),materia.getHijoURL());\n assertEquals(mt.getImagenURL(),materia.getImagenURL());\n assertEquals(mt.getNivel(),materia.getNivel());\n assertEquals(mt.getNombre(),materia.getNombre());\n assertEquals(mt.getRepaso(),materia.getRepaso());\n assertEquals(mt.getAsignaturas(),materia.getAsignaturas());\n }",
"public boolean testMaterial(EIfcmaterialconstituent type) throws SdaiException;",
"public Material type()\n\t{\n\t\treturn type;\n\t}",
"@Test\n\t// @Disabled\n\tvoid testViewCustomerbyVehicleType() {\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"tom@gmail.com\");\n\t\tVehicle vehicle1 = new Vehicle(101, \"TN02J0666\", \"car\", \"A/C\", \"prime\", \"goa\", \"13\", 600.0, 8000.0);\n\t\tVehicle vehicle2 = new Vehicle(102, \"TN02J0666\", \"car\", \"A/C\", \"prime\", \"goa\", \"13\", 600.0, 8000.0);\n\t\tList<Vehicle> vehicleList =new ArrayList<>();\n\t\tvehicleList.add(vehicle1);\n\t\tvehicleList.add(vehicle2);\n\t\tcustomer1.setVehicle(vehicleList);\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tMockito.when(custRep.findbyType(\"car\")).thenReturn(customerList);\n\t\tList<Customer> cust3 = custService.findbyType(\"car\");\n\t\tassertEquals(1, cust3.size());\n\t}",
"@Test(timeout = 4000)\n public void test39() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n StandaloneComponent standaloneComponent0 = dynamicSelectModel0.getTopLevelComponent();\n assertNull(standaloneComponent0);\n }",
"public void testEditEObjectFlatComboViewerSampleEobjectflatcomboviewerRequiredPropery() throws Exception {\n\n\t\t// Import the input model\n\t\tinitializeInputModel();\n\n\t\teObjectFlatComboViewerSample = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), eObjectFlatComboViewerSampleMetaClass);\n\t\tif (eObjectFlatComboViewerSample == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\n\t\t// Create the expected model\n\t\tinitializeExpectedModelForEObjectFlatComboViewerSampleEobjectflatcomboviewerRequiredPropery();\n\n\t\t// Open the input model with the treeview editor\n\t\tSWTBotEditor modelEditor = bot.openActiveModel();\n\n\t\t// Open the EEF properties view to edit the EObjectFlatComboViewerSample element\n\t\tEObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), eObjectFlatComboViewerSampleMetaClass);\n\t\tif (firstInstanceOf == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\t\tSWTBotView propertiesView = bot.prepareLiveEditing(modelEditor, firstInstanceOf, null);\n\n\t\t// Change value of the eobjectflatcomboviewerRequiredPropery feature of the EObjectFlatComboViewerSample element \n\t\tbot.editPropertyEObjectFlatComboViewerFeature(propertiesView, EefnrViewsRepository.EObjectFlatComboViewerSample.Properties.eobjectflatcomboviewerRequiredPropery, allInstancesOf.indexOf(referenceValueForEobjectflatcomboviewerRequiredPropery), bot.selectNode(modelEditor, firstInstanceOf));\n\n\t\t// Save the modification\n\t\tbot.finalizeEdition(modelEditor);\n\n\t\t// Compare real model with expected model\n\t\tassertExpectedModelReached(expectedModel);\n\n\t\t// Delete the input model\n\t\tdeleteModels();\n\n\t}",
"@Test\n public void getActionTest(){\n assertEquals(BUY_CARD, card.getActionType());\n }",
"public void selectModelItem(final String type, final String name){\n\t\tactivate();\n\t\tDisplay.syncExec(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n DefaultCTabItem tabItem = new DefaultCTabItem(1);\n\t\t\t\ttabItem.activate();\n\t\t\t\tGraphicalViewer viewer = ((IEditorPart) tabItem.getSWTWidget().getData()).getAdapter(GraphicalViewer.class);\n\t\t\t\tviewer.select(ViewerHandler.getInstance().getEditParts(viewer, new ModelEditorItemMatcher(type, name)).get(0));\n\t\t\t}\n\t\t});\n\t}",
"String getMaterial();",
"@Then(\"^verify system returns only selected columns$\")\r\n\tpublic void verify_system_returns_only_selected_columns() throws Throwable {\r\n\t\tScenarioName.createNode(new GherkinKeyword(\"Then\"),\"verify system returns only selected columns\");\r\n\t\tList<Data> data = respPayload.getData();\r\n\t\t\r\n\t\tAssert.assertTrue(!data.get(0).getManufacturer().isEmpty());\r\n\t\tSystem.out.println(\"1 st Manufacturer \"+ data.get(0).getManufacturer());\r\n\t\t \r\n\t\t\r\n\t}",
"public Material getType() {\n return type;\n }",
"private Material validateAndGetMaterial(String rawMaterial) {\n Material material = Material.getMaterial(rawMaterial);\n\n // Try the official look up\n if (material == null) {\n\n // if that fails, try our custom lookup\n material = Utils.lookupMaterial(rawMaterial);\n\n if (material != null) {\n // if we find a old matching version, replace it with the new version\n Utils.log(\"Outdated Material found \" + rawMaterial + \" found new version \" + material.name(), 1);\n updateOutdatedMaterial(rawMaterial, material.name());\n Utils.log(\"Action has been transferred to use \" + material.name());\n\n } else {\n Utils.log(\"Material \" + rawMaterial + \" in kit \" + name + \" is invalid.\", 2);\n }\n }\n return material;\n }",
"private static void fetchMaterialById() throws MaterialNotFoundException {\r\n\t\t\t\t\t\t\tScanner s = new Scanner(System.in);\r\n\t\t\t\t\t\t\tSystem.out.println(\"Please Enter The Material_id:\");\r\n\t\t\t\t\t\t\tInteger Material_id = Integer.parseInt(s.nextLine());\r\n\r\n\t\t\t\t\t\t\tMaterialService materialService = new MaterialService();\r\n\t\t\t\t\t\t\tMaterialResponseObject obj= materialService.fetchMaterialById(Material_id);\r\n\t\t\t\t\t\t\tMaterialVO vo;\r\n\t\t\t\t\t\t\tvo = obj.getMaterialVO();\r\n\t\t\t\t\t\t\tif (vo != null) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\t\"========================================================================================================================================================\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Material_id\" + '\\t' + \"Material_name\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\t\"=========================================================================================================================================================\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(vo.getMaterial_id() + \"\\t\\t\" + vo.getMaterial_name());\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tSystem.out.println(obj.getFailureMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}",
"public void validateRMAtableinMicroServiceSection(String ActionType) throws InterruptedException {\n\n\t\tString msID = rmaprop.getProperty(\"transactionID\");\n\t\t\n\t\tWebElement MicroServiceName = SeleniumDriver.getDriver()\n\t\t\t\t.findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//h1[@tooltip='Transaction ID:\"+ msID + \"']\"));\n\n\t\tif (\"ADD\".equalsIgnoreCase(ActionType)) {\n\n\t\t\t\n\t\t\t\n\t\t\tif (MicroServiceName.isDisplayed()) {\n\t\t\t\t\n\t\t\t\tif (CommonMethods.iselementcurrentlyvisible(ActiveRMA_icon)) {\n\n\t\t\t\t\tActiveRMA_icon.getText();\n\n\t\t\t\t\tSystem.out.println(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\n\t\t\t\t\tLog.info(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\t\t\t\t}\n\n\t\t\t\tMicroServiceName.click();\n\n\t\t\t\tWebElement RMASubTab = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID+\"') and @class='collapse in']/div/ul/li[a[contains(text(),'RMA')]]\"));\n\n\t\t\t\tboolean RMATabCheck = RMASubTab.isDisplayed();\n\n\t\t\t\tCommonMethods.scrollintoview(RMASubTab);\n\n\t\t\t\tLog.info(\"RMA tab is displayed in the MS section = \" + RMATabCheck);\n\n\t\t\t\tRMASubTab.click();\n\n\t\t\t\tList<WebElement> RMAType_entries_in_table = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElements(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID+\"')]//tr[@ng-repeat='row in microService.rmaList']/td[2]\"));\n\n\t\t\t\tint countRMAType = RMAType_entries_in_table.size();\n\n\t\t\t\tLog.info(\"Total Number of RMA's in the table = \" + countRMAType);\n\n\t\t\t\tint i;\n\t\t\t\tfor (i = 0; i <= countRMAType-1 ; i++) {\n\n\t\t\t\t\tString RMAT = RMAType_entries_in_table.get(i).getText();\n\t\t\t\t\tSystem.out.println(\"RMA Types = \" + i+ \" = \" + RMAT);\n\t\t\t\t\tLog.info(\"RMA Types = \" + i+ \" = \" + RMAT);\n\n\t\t\t\t\tMap<String,String> datamap = new HashMap<String,String>();\n\t\t\t\t\tif (RMAT.equals(rmaprop.getProperty(\"rmaType\"))) {\n\n\t\t\t\t\t\tLog.info(\"RMAType is present in the = \" + RMAType_entries_in_table.get(i).getText());\n\n\t\t\t\t\t\tint j= i+1;\n\t\t\t\t\t\tWebElement rmaID = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID +\"')]//tr[position()=\"+j+\"]/td[1]\"));\n\t\t\t\t\t\tWebElement rmaType = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID +\"')]//tr[position()=\"+j+\"]/td[2]\"));\n\t\t\t\t\t\tWebElement rmaDesc = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[3]\"));\n\t\t\t\t\t\tWebElement rmaSource = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[4]\"));\n\t\t\t\t\t\tWebElement rmaEventDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[5]\"));\n\t\t\t\t\t\tWebElement rmaComments = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[6]\"));\n\t\t\t\t\t\tWebElement rmaCreatedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[7]\"));\n\t\t\t\t\t\tWebElement rmaCreatedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[8]\"));\n\t\t\t\t\t\tWebElement rmaModifiedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[9]\"));\n\t\t\t\t\t\tWebElement rmaModifiedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[10]\"));\n\t\t\t\t\t\tWebElement rmaClearedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[11]\"));\n\t\t\t\t\t\tWebElement rmaClearRMA = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[12]/span[2]\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tdatamap.put(\"RMA ID\", rmaID.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA Type\", rmaType.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA DESCRIPTION\", rmaDesc.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"SOURCE OF RMA\", rmaSource.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA EVENT DATETIME\", rmaEventDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"COMMENTS\", rmaComments.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED BY\", rmaCreatedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED DATE\",rmaCreatedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED BY\",rmaModifiedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED DATE\",rmaModifiedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CLEARED DATE\", rmaClearedDate.getText()) ;\n\t\t\t\t\t//\tdatamap.put(\"CLEAR RMA\",rmaClearRMA.getText()) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\"RMA table details = \"+ datamap);\n\t\t\t\t\t\t\n\t\t\t\t\t\tboolean isDeleteElementCurrentlyEnable = CommonMethods.iselementcurrentlyenable(rmaClearRMA) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\" For ActionType = \" + ActionType + \" ====== \" + \"Is RMA clear icon enabled = \"+ isDeleteElementCurrentlyEnable );\n\t\t\t\t\t\tCommonMethods.captureScreenshot(URLConfigs.SCREENSHOT_PATH+\"\\\\Verified RMA table in request page after \"+ActionType+\" RMA Action\" + \"_\" + SeleniumDriver.timestamp() + \".png\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak ;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} if (\"UPDATE\".equalsIgnoreCase(ActionType)) {\n\n\t\t\tif (MicroServiceName.isDisplayed()) {\n\n\t\t\t\tif (CommonMethods.iselementcurrentlyvisible(ActiveRMA_icon)) {\n\n\t\t\t\t\tActiveRMA_icon.getText();\n\n\t\t\t\t\tSystem.out.println(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\n\t\t\t\t\tLog.info(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\t\t\t\t}\n\n\t\t\t\tMicroServiceName.click();\n\n\t\t\t\tWebElement RMASubTab = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID + \"') and @class='collapse in']/div/ul/li[a[contains(text(),'RMA')]]\"));\n\n\t\t\t\tboolean RMATabCheck = RMASubTab.isDisplayed();\n\n\t\t\t\tCommonMethods.scrollintoview(RMASubTab);\n\n\t\t\t\tLog.info(\"RMA tab is displayed in the MS section = \" + RMATabCheck);\n\t\t\t\t\n\t\t\t\tRMASubTab.click();\n\t\t\t\tList<WebElement> RMAType_entries_in_table = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElements(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID + \"')]//tr[@ng-repeat='row in microService.rmaList']/td[2]\"));\n\n\t\t\t\tint countRMAType = RMAType_entries_in_table.size();\n\n\t\t\t\tLog.info(\"Total Number of RMA's = \" + countRMAType);\n\n\t\t\t\tfor (int i = 0; i < countRMAType - 1; i++) {\n\n\t\t\t\t\tString RMAT = RMAType_entries_in_table.get(i).getText();\n\t\t\t\t\tSystem.out.println(\"RMA Types = \" + RMAT);\n\n\t\t\t\t\tMap<String,String> datamap = new HashMap<String,String>();\n\t\t\t\t\tif (RMAT.equals(rmaprop.getProperty(\"rmaType\"))) {\n\n\t\t\t\t\t\tLog.info(\"RMAType is present in the = \" + RMAType_entries_in_table.get(i).getText());\n\n\t\t\t\t\t\tint j= i+1;\n\t\t\t\t\t\tWebElement rmaID = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID+\"')]//tr[position()=\"+j+\"]/td[1]\"));\n\t\t\t\t\t\tWebElement rmaType = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[2]\"));\n\t\t\t\t\t\tWebElement rmaDesc = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[3]\"));\n\t\t\t\t\t\tWebElement rmaSource = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[4]\"));\n\t\t\t\t\t\tWebElement rmaEventDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[5]\"));\n\t\t\t\t\t\tWebElement rmaComments = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[6]\"));\n\t\t\t\t\t\tWebElement rmaCreatedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID+\"')]//tr[position()=\"+j+\"]/td[7]\"));\n\t\t\t\t\t\tWebElement rmaCreatedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[8]\"));\n\t\t\t\t\t\tWebElement rmaModifiedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[9]\"));\n\t\t\t\t\t\tWebElement rmaModifiedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[10]\"));\n\t\t\t\t\t\tWebElement rmaClearedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[11]\"));\n\t\t\t\t\t\tWebElement rmaClearRMA = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID+\"')]//tr[position()=\"+j+\"]/td[12]/span[2]\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tdatamap.put(\"RMA ID\", rmaID.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA Type\", rmaType.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA DESCRIPTION\", rmaDesc.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"SOURCE OF RMA\", rmaSource.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA EVENT DATETIME\", rmaEventDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"COMMENTS\", rmaComments.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED BY\", rmaCreatedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED DATE\",rmaCreatedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED BY\",rmaModifiedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED DATE\",rmaModifiedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CLEARED DATE\", rmaClearedDate.getText()) ;\n\t\t\t\t\t//\tdatamap.put(\"CLEAR RMA\",rmaClearRMA.getText()) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\"RMA table details = \"+ datamap);\n\n\t\t\t\t\t\t// System.out.println(\"RMAType = \" + RMATypefromRequestPage.get(i).getText());\n\t\t\t\t\t\t\n\t\t\t\t\t\tboolean isDeleteElementCurrentlyEnable = CommonMethods.iselementcurrentlyenable(rmaClearRMA) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\" For ActionType = \" + ActionType + \" ====== \" + \"Is RMA clear icon enabled = \"+ isDeleteElementCurrentlyEnable );\n\n\t\t\t\t\t\tCommonMethods.captureScreenshot(URLConfigs.SCREENSHOT_PATH+\"\\\\Verified RMA table in request page after \"+ActionType+\" RMA Action\" + \"_\" + SeleniumDriver.timestamp() + \".png\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} if (\"DELETE\".equalsIgnoreCase(ActionType)) {\n\n\t\t\tboolean getCurrentVisibilityofActiveRMAIcon = CommonMethods.iselementcurrentlyvisible(MicroServiceName);\n\t\t\tSystem.out.println(\"Is Microservice listed in the table = \" + getCurrentVisibilityofActiveRMAIcon);\n\n\t\t\tif (MicroServiceName.isDisplayed()) {\n\n\t\t\t\tif (CommonMethods.iselementcurrentlyvisible(ActiveRMA_icon)) {\n\n\t\t\t\t\tActiveRMA_icon.getText();\n\n\t\t\t\t\tSystem.out.println(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\n\t\t\t\t\tLog.info(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\t\t\t\t}\n\n\t\t\t\tMicroServiceName.click();\n\n\t\t\t\tWebElement RMASubTab = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID + \"') and @class='collapse in']/div/ul/li[a[contains(text(),'RMA')]]\"));\n\n\t\t\t\tboolean RMATabCheck = RMASubTab.isDisplayed();\n\n\t\t\t\tCommonMethods.scrollintoview(RMASubTab);\n\n\t\t\t\tLog.info(\"RMA tab is displayed in the MS section = \" + RMATabCheck);\n\t\t\t\tRMASubTab.click();\n\t\t\t\tList<WebElement> RMAType_entries_in_table = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElements(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"\n\t\t\t\t\t\t\t\t+ rmaprop.getProperty(\"transactionID\")\n\t\t\t\t\t\t\t\t+ \"') and @class='collapse in']/div/div//ng-include[@id='reqDetSubTabContentFrame2']//tbody/tr/td[2]\"));\n\n\t\t\t\tint countRMAType = RMAType_entries_in_table.size();\n\n\t\t\t\tLog.info(\"Total Number of RMA's = \" + countRMAType);\n \n\t\t\t\tfor (int i = 0; i <= countRMAType; i++) {\n\n\t\t\t\t\tString RMAT = RMAType_entries_in_table.get(i).getText();\n\t\t\t\t\tSystem.out.println(\"RMA Types = \" + RMAT);\n\n\t\t\t\t\tMap<String,String> datamap = new HashMap<String,String>();\n\t\t\t\t\t\n\t\t\t\t\tif (RMAT.equals(rmaprop.getProperty(\"rmaType\"))) {\n\n\t\t\t\t\t\tLog.info(\"RMAType is present in the = \" + RMAType_entries_in_table.get(i).getText());\n\n\t\t\t\t\t\tint j= i+1;\n\t\t\t\t\t\tWebElement rmaID = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID+\"')]//tr[position()=\"+j+\"]/td[1]\"));\n\t\t\t\t\t\tWebElement rmaType = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[2]\"));\n\t\t\t\t\t\tWebElement rmaDesc = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[3]\"));\n\t\t\t\t\t\tWebElement rmaSource = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[4]\"));\n\t\t\t\t\t\tWebElement rmaEventDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[5]\"));\n\t\t\t\t\t\tWebElement rmaComments = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[6]\"));\n\t\t\t\t\t\tWebElement rmaCreatedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID+\"')]//tr[position()=\"+j+\"]/td[7]\"));\n\t\t\t\t\t\tWebElement rmaCreatedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[8]\"));\n\t\t\t\t\t\tWebElement rmaModifiedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[9]\"));\n\t\t\t\t\t\tWebElement rmaModifiedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[10]\"));\n\t\t\t\t\t\tWebElement rmaClearedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[11]\"));\n\t\t\t\t\t\tWebElement rmaClearRMA = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID+\"')]//tr[position()=\"+j+\"]/td[12]/span[2]\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tdatamap.put(\"RMA ID\", rmaID.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA Type\", rmaType.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA DESCRIPTION\", rmaDesc.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"SOURCE OF RMA\", rmaSource.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA EVENT DATETIME\", rmaEventDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"COMMENTS\", rmaComments.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED BY\", rmaCreatedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED DATE\",rmaCreatedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED BY\",rmaModifiedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED DATE\",rmaModifiedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CLEARED DATE\", rmaClearedDate.getText()) ;\n\t\t\t\t\t//\tdatamap.put(\"CLEAR RMA\",rmaClearRMA.getText()) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\"RMA table details = \"+ datamap);\n\n\t\t\t\t\t\n\t\t\t\t\t\tboolean isDeleteElementCurrentlyVisible = CommonMethods.iselementcurrentlyvisible(rmaClearRMA);\n\t\t\t\t\t\tLog.info(\"Is clear RMA icon visible for the deleted RMA entry ? = \"+ isDeleteElementCurrentlyVisible);\n\t\t\t\t\t\n\t\t\t\t\t\tboolean isDeleteElementCurrentlyEnable = CommonMethods.iselementcurrentlyenable(rmaClearRMA) ;\n\t\t\t\t\t\tLog.info(\"Is clear RMA icon enabled for the deleted RMA entry ? = \"+ isDeleteElementCurrentlyEnable);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (isDeleteElementCurrentlyEnable == false && isDeleteElementCurrentlyVisible == false) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tLog.info(\"Delete RMA icon is currently Disabled & not Visible on UI\");\n\t\t\t\t\t\t\tCommonMethods.captureScreenshot(URLConfigs.SCREENSHOT_PATH+\"\\\\Verified RMA table in request page after \"+ActionType+\" RMA Action\" + \"_\" + SeleniumDriver.timestamp() + \".png\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tLog.info(\"isElementCurrentlyEnable = \" + isDeleteElementCurrentlyEnable + \" \"\n\t\t\t\t\t\t\t\t\t+ \"isElementCurrentlyVisible = \" + isDeleteElementCurrentlyVisible);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"public String getSelectQuantity() {\n\t\tactionStartTime = new Date();\n\t\ttry {\n\t\t\tInteger quantityUnit = promotionProgramMgr.getSelectQuantity(groupKMId, levelKMId);\n\t\t\tresult.put(ERROR, false);\n\t\t\tresult.put(\"quantityUnit\", quantityUnit);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.getMaxOrderNumber\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public T caseMaterial(Material object) {\r\n\t\treturn null;\r\n\t}",
"@Test\n public void testAddMaterialEmpty() {\n assertTrue(planned.getMaterials().isEmpty());\n }",
"public void getSelectedPart(Part selectedPart){\n this.part = selectedPart;\n if(selectedPart instanceof InHouse){\n labelPartSource.setText(\"Machine ID\");\n InHouse inHouse = (InHouse)selectedPart;\n ModPartIDField.setText(Integer.toString(inHouse.getId()));\n ModPartNameField.setText(inHouse.getName());\n ModPartInventoryField.setText(Integer.toString(inHouse.getStock()));\n ModPartPriceField.setText(Double.toString(inHouse.getPrice()));\n ModPartMaxField.setText(Integer.toString(inHouse.getMax()));\n ModPartMinField.setText(Integer.toString(inHouse.getMin()));\n partSourceField.setText(Integer.toString(inHouse.getMachineId()));\n inHouseRadBtn.setSelected(true);\n } else if (selectedPart instanceof Outsourced){\n labelPartSource.setText(\"Company Name\");\n Outsourced outsourced = (Outsourced) selectedPart;\n ModPartIDField.setText(Integer.toString(outsourced.getId()));\n ModPartNameField.setText(outsourced.getName());\n ModPartInventoryField.setText(Integer.toString(outsourced.getStock()));\n ModPartPriceField.setText(Double.toString(outsourced.getPrice()));\n ModPartMaxField.setText(Integer.toString(outsourced.getMax()));\n ModPartMinField.setText(Integer.toString(outsourced.getMin()));\n partSourceField.setText(outsourced.getCompanyName());\n OutsourcedRadBtn.setSelected(true);\n }\n }",
"public void re_GiveMaterials() {\n\t\tString buildingType = gc.getBuildingType();\n\t\t// wood, brick, grain, wool, ore\n\t\tString[] materialCodes = {\"h\", \"b\", \"g\", \"w\", \"e\"};\n\t\tint[] materials = new int[AMOUNT_OF_MATERIALS];\n\n\t\tswitch (buildingType) {\n\n\t\tcase VILLAGE_TYPE:\n\t\t\tmaterials = VILLAGE_ARRAY;\n\t\t\tbreak;\n\n\t\tcase CITY_TYPE:\n\t\t\tmaterials = CITY_ARRAY;\n\t\t\tbreak;\n\t\t\t\n\t\tcase STREET_TYPE:\n\t\t\tmaterials = STREET_ARRAY;\n\t\t\tbreak;\n\t\t}\n\t\t// Check if player is not in first round\n\t\tif(!pTM.inFirstRound(gameID)) {\n\t\t\tbbm.returnMaterials(materialCodes, materials);\n\t\t\t\n\t\t\t//Reset build value\n\t\t\tgc.placeBuilding(\"\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\n\t}",
"public void selectAProduct() {\n specificProduct.click();\n }",
"private void startMaterials() {\n Intent intent = new MaterialsSearchActivity.IntentBuilder(item.getMaterails() != null ? item.getMaterails().getId() : 0)\n .build(mContext, new MaterialsSearchActivity.iMaterialsSelectListener() {\n @Override\n public void select(boolean select, MaterialsBean bean) {\n if (select) {\n mItemMaterials.setText(bean.getName());\n item.setMaterails(new MaterialsBean(bean.getId(), bean.getName(), bean.getTime()));\n }\n }\n });\n startActivity(intent);\n }",
"@Test\n public void inventoryViewModelIsParcelable() {\n setUpInventoryViewModel();\n isPackedAndUnpackedAsParcelSuccessfully();\n }",
"@Test\r\n public void testSetMaterial() {\r\n String expResult = \"pruebaMaterial\";\r\n articuloPrueba.setMaterial(expResult);\r\n assertEquals(expResult, articuloPrueba.getMaterial());\r\n }",
"private void RenderCombo()\r\n\t{\r\n\t\tSystem.out.println(\"Setup\");\r\n\t\tList<ProductionOrder> productionOrders = null;\r\n\t\t\t\t\r\n \ttry {\r\n \t\tproductionOrders = this.getProductionOrderService().findProductionOrders(); \r\n \t\tif(productionOrders==null)\r\n \t\t\tSystem.out.println(\"productoinOrders is null\");\r\n\t \t_productionOrderSelect = null;\r\n\t \t_productionOrderSelect = new GenericSelectModel<ProductionOrder>(productionOrders,ProductionOrder.class,\"FormattedDocNo\",\"id\",_access);\r\n\t \tif(_productionOrderSelect==null){\r\n\t \t\tSystem.out.println(\"Setuprender productionOrderselect is null\");\r\n\t \t}\r\n \t}\r\n \tcatch(Exception e)\r\n \t{\r\n \t\t\r\n \t}\r\n \tfinally {\r\n \t\t\r\n \t}\r\n\t}",
"@Test\r\n public void testGetMaterial() {\r\n String expResult = \"Materialprueba\";\r\n articuloPrueba.setMaterial(expResult);\r\n String result = articuloPrueba.getMaterial();\r\n assertEquals(expResult, result);\r\n }",
"@Override\r\n\tpublic void adminSelectRead() {\n\t\t\r\n\t}",
"ExpMaterial getExpMaterial(Container c, User u, int rowId, @Nullable ExpSampleType sampleType);",
"@Test\n public void findSample_whenNoFieldsAreSelected_sampleReturnedWithAllFields() {\n MolecularSampleDto molecularSampleDto = molecularSampleRepository.findOne(\n testMolecularSample.getUuid(),\n new QuerySpec(MolecularSampleDto.class)\n );\n \n assertNotNull(molecularSampleDto);\n assertEquals(testMolecularSample.getUuid(), molecularSampleDto.getUuid());\n assertEquals(TEST_MOLECULAR_SAMPLE_NAME, molecularSampleDto.getName());\n assertEquals(TEST_MATERIAL_SAMPLE_UUID.toString(), molecularSampleDto.getMaterialSample().getId());\n assertEquals(TEST_MOLECULAR_SAMPLE_SAMPLE_TYPE, molecularSampleDto.getSampleType());\n }",
"private void bomSelected(int selectedRow){\n \tbomDet=new inventorycontroller.function.BillOfMaterialProcessor(dbInterface1)\n \t .getBomDescForPoMaster(jTable1.getModel().getValueAt(selectedRow, 3).toString());\n \t\n \tadjustAddedQty(); //* adjusts the item qty. which are already added.\n \t\n \tjTable2.setModel(new javax.swing.table.DefaultTableModel(\n bomDet,\n new String [] {\n \"Select\", \"Material\", \"Reqd. Quantity\", \"Purchase Requirement\", \"Remark\"\n }\n ) {\n Class[] types = new Class [] {\n \tjava.lang.Boolean.class, \n \tjava.lang.String.class, \n java.lang.Long.class, \n java.lang.Long.class,\n java.lang.String.class\n };\n \n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return columnIndex==0 ? true : false ;\n }\n });\n }",
"public static void ViewNewBagType()\r\n{\r\n\r\n\r\n\tselectBagType(RandomString);\r\n\tSystem.out.println(\"BagTypeName Viewed Successfully\");\r\n\t\r\n}",
"@Test\n public void selectsItemWithWidthAndHeightWithinSelectionArea() {\n Place place = mock(Place.class);\n when(place.getX()).thenReturn(0);\n when(place.getY()).thenReturn(0);\n when(place.getWidth()).thenReturn(10);\n when(place.getHeight()).thenReturn(10);\n\n net.addPlace(place);\n\n Rectangle selectionRectangle = new Rectangle(5, 5, 40, 40);\n controller.select(selectionRectangle);\n\n assertTrue(controller.isSelected(place));\n }",
"@Test\n @SuppressWarnings(\"unchecked\")\n public void f15DisplayRawDataTest() {\n clickOn(\"#thumbnailTab\").sleep(1000);\n FlowPane root = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n\n //Go to the 2nd asset\n clickOn(root.getChildren().get(1)).sleep(2000);\n clickOn(\"#rawDataTab\").sleep(1000);\n\n moveBy(90, 200).sleep(1000);\n TableView<ObservableList<String>> table = (TableView<ObservableList<String>>) scene.getRoot().lookup(\"#RawDataTable\");\n\n table.scrollToColumnIndex(15); //scroll to show the end columns\n sleep(3000).clickOn(\"#backBtn\").sleep(1000);\n\n assertTrue(\"There is a raw data table for the selected asset.\", table.getItems().size() > 0);\n }",
"@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }",
"public void clickViewCart(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- ViewCart button should be clicked\");\r\n\t\ttry{\r\n\t\t\twaitForPageToLoad(25);\r\n\t\t\twaitForElement(locator_split(\"BybtnSkuViewCart\"));\r\n\t\t\tclick(locator_split(\"BybtnSkuViewCart\"));\r\n\t\t\twaitForPageToLoad(25);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- ViewCart button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- ViewCart button is not clicked \"+elementProperties.getProperty(\"BybtnSkuViewCart\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"BybtnSkuViewCart\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t} \r\n\t}",
"@Test\n public void transformMenu() {\n onView(withId(R.id.transform_button))\n .perform(click());\n\n //Make sure fragment is loaded\n onView(withText(\"Stack Blur\"))\n .check(matches(isDisplayed()));\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyMuMvManageView() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether user is able to create a new view successfully and it gets reflected in the list\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\t \t\t\t\t\t \t \t\t\t\t \t \t\t\n\t\t.Addviewname(userProfile)\n\t\t.verifyLeadTabledata_AddnewViewAudit(userProfile)\n\t\t.AddnewUserslink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\t\t\t\t\t\t \t \t\t\n\t\t.verifynewview(userProfile)\n\t\t.VerifyenterValidData_StandardUserdetails(userProfile);\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewStdUserdata(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile);\t\t\t\t \t \t\t\n\n\t}",
"@FXML\r\n public void onActionToModifyProductScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n\r\n //Get product information from the Product Controller in order to populate the modify screen text fields\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyProduct.fxml\"));\r\n loader.load();\r\n\r\n ProductController proController = loader.getController();\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n proController.sendProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }",
"@GET(\"user-product-materials-content\")\n Call<MaterialsResponse> getMaterials();",
"@Override\n\tpublic String getMaterial() {\n\t\treturn null;\n\t}",
"public String getMaterial () {\r\n return getItemStack().getTypeId()+ \":\" + getItemStack().getDurability(); \r\n\t}",
"public abstract String getSelectedPhoneType3();",
"public void testEditEObjectFlatComboViewerSampleEobjectflatcomboviewerOptionalPropery() throws Exception {\n\n\t\t// Import the input model\n\t\tinitializeInputModel();\n\n\t\teObjectFlatComboViewerSample = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), eObjectFlatComboViewerSampleMetaClass);\n\t\tif (eObjectFlatComboViewerSample == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\n\t\t// Create the expected model\n\t\tinitializeExpectedModelForEObjectFlatComboViewerSampleEobjectflatcomboviewerOptionalPropery();\n\n\t\t// Open the input model with the treeview editor\n\t\tSWTBotEditor modelEditor = bot.openActiveModel();\n\n\t\t// Open the EEF properties view to edit the EObjectFlatComboViewerSample element\n\t\tEObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), eObjectFlatComboViewerSampleMetaClass);\n\t\tif (firstInstanceOf == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\t\tSWTBotView propertiesView = bot.prepareLiveEditing(modelEditor, firstInstanceOf, null);\n\n\t\t// Change value of the eobjectflatcomboviewerOptionalPropery feature of the EObjectFlatComboViewerSample element \n\t\tbot.editPropertyEObjectFlatComboViewerFeature(propertiesView, EefnrViewsRepository.EObjectFlatComboViewerSample.Properties.eobjectflatcomboviewerOptionalPropery, allInstancesOf.indexOf(referenceValueForEobjectflatcomboviewerOptionalPropery)+1, bot.selectNode(modelEditor, firstInstanceOf));\n\n\t\t// Save the modification\n\t\tbot.finalizeEdition(modelEditor);\n\n\t\t// Compare real model with expected model\n\t\tassertExpectedModelReached(expectedModel);\n\n\t\t// Delete the input model\n\t\tdeleteModels();\n\n\t}",
"@Transactional\r\n\tpublic void edit(TypeMaterial typematerial) {\n\t\ttypematerialdao.edit(typematerial);\r\n\t}",
"public void openTableMenu(){\n Table table = tableView.getSelectionModel().getSelectedItem();\n try{\n\n if (table != null) {\n OrderScreen controller = new OrderScreen(server,table,restaurant);\n if (!table.getIsOccupied()){\n controller.addOptionsToComboBox(table);}\n if(table.getTableSize() != 0){\n vBox.getChildren().setAll(controller);\n }\n }\n\n\n } catch (NullPointerException e){\n e.printStackTrace();\n }\n\n\n }",
"public static ModelAndView buildStaticProductDialoues(HttpServletRequest request, \r\n\t\t\tMap<String, String>requestParamMap, OrderQualVO orderQualVO, ModelAndView mav) throws Exception{\r\n\r\n\t\tStaticCKOVO stCkVO = new StaticCKOVO();\r\n\r\n\t\tList<String> errorStringList = new ArrayList<String>();\r\n\r\n\t\tList<String> errorLog = null;\r\n\r\n\t\tString jsonString = \"\";\r\n\t\tString providerExternalID = \"\";\r\n\r\n\t\t/*\r\n\t\t * checking whether the order is already present in the cache, if present, we return the order\r\n\t\t * if not present, we do a get order call\r\n\t\t */\r\n\t\tOrderType order = OrderUtil.INSTANCE.returnOrderType(orderQualVO.getOrderId());\r\n\r\n\t\t/*\r\n\t\t * checking whether the product info is already present in the cache\r\n\t\t * and returning if present or making a getProductDetails if not present \r\n\t\t */\r\n\t\tProductInfoType productInfo = ProductServiceUI.INSTANCE.getProduct(orderQualVO.getProductExternalId(),orderQualVO.getGUID(), orderQualVO.getProviderExternalId());\r\n\r\n\t\t/*\r\n\t\t * getting lineItemExternalID and providerExternalID from the orderQualVo Object\r\n\t\t */\r\n\t\tlong lineItemExternalID = orderQualVO.getLineItemExternalId();\r\n\t\tif(orderQualVO.getProviderExternalId() != null){\r\n\t\t\tproviderExternalID = orderQualVO.getProviderExternalId();\r\n\t\t}else{\r\n\t\t\tproviderExternalID = OrderUtil.INSTANCE.getProviderExternalId(order, lineItemExternalID);\r\n\t\t}\r\n\r\n\t\tString selectedValues = requestParamMap.get(\"extIDSelectedValues\");\r\n\r\n\t\t/*\r\n\t\t * getting selected and unselected promotions from the product cutomization page\r\n\t\t */\r\n\t\tString unSelectedPromotions = requestParamMap.get(\"unSelectedPromotions\");\r\n\r\n\t\t/*\r\n\t\t * converting the list of features to features map\r\n\t\t */\r\n\t\tList<FeatureType> features = productInfo.getProductDetails().getFeature(); \r\n\r\n\t\tMap<String, FeatureType> availableFeatureMap = buildAvailableFeatureMap(features);\r\n\r\n\t\tlogger.info(\"Available Feature Map --> \"+availableFeatureMap);\r\n\r\n\t\t/*\r\n\t\t * converting the list of featureGroups to featureGroup map\r\n\t\t */\r\n\t\tList<FeatureGroupType> featureGroupList= productInfo.getProductDetails().getFeatureGroup();\r\n\t\tMap<String, FeatureGroupType> availableFeatureGroupMap = new HashMap<String, FeatureGroupType>();\r\n\t\tif(!Utils.isEmpty(featureGroupList)){\r\n\t\t\tavailableFeatureGroupMap = buildAvailableFeatureGroupMap(featureGroupList);\r\n\t\t}\r\n\t\tlogger.info(\"Available Feature Group Map --> \"+availableFeatureGroupMap);\r\n\r\n\r\n\t\t/*\r\n\t\t * getting all the features and feature groups that are present in the dialogues \r\n\t\t */\r\n\t\tMap<String, FeatureType> dialogueFeatureMap = orderQualVO.getDialogueFeatureMap();\r\n\r\n\t\tMap<String, FeatureGroupType> dialogueFeatureGroupMap = orderQualVO.getDialogueFeatureGroup();\r\n\r\n\t\tlogger.info(\"Order ID ::::: \"+orderQualVO.getOrderId());\r\n\r\n\t\t/*\r\n\t\t * getting the features and feature groups that are entered during the previous CKO\r\n\t\t */\r\n\t\tList<String> viewDetailsFeaturesList = orderQualVO.getViewDetailsSelFeatureList();\r\n\r\n\t\tList<FeatureGroup> viewDetailsFeatureGroupList = orderQualVO.getViewDetailsSelFeatureGroupList();\r\n\r\n\t\tlogger.info(\"before prepopulate values \");\r\n\r\n\t\t/*\r\n\t\t * defaulting the customer related data if the data is entered during the previous CKO\r\n\t\t */\r\n\t\tMap<String, String> preSelectedMap = PrepopulateDialogue.INSTANCE.buildPreSelectedValues(order);\r\n\t\tlogger.info(\"after prepopulate values \");\r\n\r\n\t\tLineItemType item = null;\r\n\t\tMap<String, Long> promoLineItemMap = new HashMap<String, Long>(); \r\n\r\n\t\t/*\r\n\t\t * retrieving all lineItems that are present on the order\r\n\t\t */\r\n\t\tif(order.getLineItems() != null){\r\n\t\t\tint lineItemNumber = 0;\r\n\t\t\t/*\r\n\t\t\t * iterating over all the lineItems to get current lineItem and Promotions that are present on \r\n\t\t\t * the order and that are not in cancelled removed status\r\n\t\t\t */\r\n\t\t\tfor(LineItemType lineItemTypes : order.getLineItems().getLineItem()){\r\n\t\t\t\tif(lineItemTypes.getExternalId() == orderQualVO.getLineItemExternalId()){\r\n\t\t\t\t\titem = lineItemTypes;\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * getting the lineItemNumber of the current lineItem\r\n\t\t\t\t\t */\r\n\t\t\t\t\tlineItemNumber = lineItemTypes.getLineItemNumber();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * checking whether the lineItemDetail Type is of productPromotion and lineItemStatus not cancelled_removed\r\n\t\t\t\t */\r\n\t\t\t\tif(lineItemTypes.getLineItemDetail().getDetailType().equals(\"productPromotion\") && \r\n\t\t\t\t\t\t!lineItemTypes.getLineItemStatus().getStatusCode().value().equalsIgnoreCase(\"CANCELLED_REMOVED\")){\r\n\t\t\t\t\tOrderLineItemDetailTypeType detailType = lineItemTypes.getLineItemDetail().getDetail();\r\n\t\t\t\t\tboolean appliesToSameLine = false;\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * appliesTo is a field that is present on every promotion and \r\n\t\t\t\t\t * this is same as the lineItem that the current promotion is acting\r\n\t\t\t\t\t */\r\n\t\t\t\t\t// appliesTO same as lineItemNumber, it belongs to same lineItem\r\n\t\t\t\t\tif(lineItemNumber == lineItemTypes.getLineItemDetail().getDetail().getPromotionLineItem().getAppliesTo().get(0)){\r\n\t\t\t\t\t\tappliesToSameLine = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * adding only those promotions that are applied to current lineItem only\r\n\t\t\t\t\t * (i.e, the appliesTo of promotion is same as current LineItem lineItemNumber)\r\n\t\t\t\t\t */\r\n\t\t\t\t\t//if promo appliesTo current lineItem, put it in map\r\n\t\t\t\t\tif(appliesToSameLine){\r\n\t\t\t\t\t\tString lineItemPromoExternalID = detailType.getPromotionLineItem().getPromotion().getExternalId();\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * this Map is used as a reference for adding or deleting the promotions that are \r\n\t\t\t\t\t\t * added or removed during the product customization page\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tpromoLineItemMap.put(lineItemPromoExternalID, lineItemTypes.getExternalId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlogger.info(\"completed retrieving line item and promotions that are present on the order\");\r\n\r\n\t\tString businessPartyName = null;\t\t\r\n\t\tString hybrisAttributes = \"\";\r\n\t\tString productCategory = null;\r\n\t\t/*\r\n\t\t * retrieving all the checkboxes and dropDowns selected during the product customization phase these values are\r\n\t\t * used to default those checkboxes and select boxes when back button is pressed during the customer Qualification phase\r\n\t\t */\r\n\t\tString selectedFeatureCheck = requestParamMap.get(\"featureCheckboxFields\");\r\n\t\tString selectedFeatureSelect = requestParamMap.get(\"featureSelectBoxFields\");\r\n\t\tmav.addObject(\"selectedCheckbox\", selectedFeatureCheck);\r\n\t\tmav.addObject(\"selectedDropDown\", selectedFeatureSelect);\r\n\r\n\t\taddPromotionToLineItem(item, promoLineItemMap, unSelectedPromotions, orderQualVO, request);\r\n\r\n\t\t/*\r\n\t\t * adding all the selected features and featureGroups to LineItem, this line Item is updated along with \r\n\t\t * these features, active dialogues etc, finally while updating lineItem status\r\n\t\t */\r\n\r\n\t\tmav.addObject(\"firstTimeDialogue\", \"firstTimeDialogue\");\r\n\t\tlogger.info(\"after adding features to line item\");\r\n\r\n\t\tif(productInfo.getProduct() != null && productInfo.getProduct().getProvider() != null && productInfo.getProduct().getProvider().getName() != null){\r\n\t\t\tbusinessPartyName = productInfo.getProduct().getProvider().getName();\r\n\t\t}\r\n\t\tif(item.getLineItemAttributes() != null && item.getLineItemAttributes().getEntity() != null){\r\n\t\t\tfor(AttributeEntityType entityType : item.getLineItemAttributes().getEntity()){\r\n\t\t\t\tif (Utils.isBlank(businessPartyName) && entityType.getSource().equals(\"PROVIDER_NAME\")) {\r\n\t\t\t\t\tbusinessPartyName = entityType.getAttribute().get(0).getValue();\r\n\t\t\t\t}\r\n\t\t\t\tif (request.getSession().getAttribute(\"hybrisAttributes\") != null) {\r\n\t\t\t\t\thybrisAttributes = (String) request.getSession().getAttribute(\"hybrisAttributes\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (entityType.getSource().equals(\"HYBRIS_ATTRIBUTES\")) {\r\n\t\t\t\t\t\thybrisAttributes = entityType.getAttribute().get(0).getValue();\r\n\t\t\t\t\t\tlogger.info(\"hybrisAttributes=\" + hybrisAttributes);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (entityType.getSource().equals(\"PRODUCT_CATEGORY\")) {\r\n\t\t\t\t\tproductCategory = entityType.getAttribute().get(0).getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.info(\"productCategory=\"+productCategory);\r\n\t\tString hybrisUrl = \"\";\r\n\t\tString hybrisUsaaId = \"\";\r\n\t\tString hybrisProgramName = \"\";\r\n\t\tString agentExtId = \"\";\r\n\t\tString atgAffiliateId = \"\";\r\n\t\tString atgPhoneNumber = \"\";\r\n\t\tString hybrisCategoryName = (String) request.getSession().getAttribute(\"hybrisCategoryName\");\r\n\t\tif (!Utils.isBlank(hybrisAttributes)) {\r\n\t\t\tString[] result = hybrisAttributes.split(\"\\\\|\");\r\n\t\t\thybrisUrl = (!Utils.isBlank(result[0]) ? result[0] : \"\");\r\n\t\t\tif(hybrisAttributes.contains(Constants.CHARTER)|| hybrisAttributes.contains(Constants.SPECTRUM)){\r\n\t\t\t\tatgAffiliateId = (!Utils.isBlank(result[1]) ? result[1] : \"\");\r\n\t\t\t\tatgPhoneNumber = (!Utils.isBlank(result[2]) ? result[2] : \"\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\thybrisUsaaId = (!Utils.isBlank(result[1]) ? result[1] : \"\");\r\n\t\t\t\thybrisProgramName = (!Utils.isBlank(result[2]) ? result[2] : \"\");\r\n\t\t\t\tagentExtId = (!Utils.isBlank(result[3]) ? result[3] : \"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlHybrisUrl = \"\";\r\n\t\tif(!Utils.isBlank(hybrisUrl)) {\r\n\t\t\tlogger.info(\"Building hybrisUrl Params for \" + hybrisUrl);\r\n\t\t\tif(!Utils.isBlank(hybrisAttributes) && (hybrisAttributes.contains(Constants.CHARTER) || hybrisAttributes.contains(Constants.SPECTRUM))){\r\n\t\t\t\thtmlHybrisUrl = hybrisUrl + \"?v=\"+atgAffiliateId;\r\n\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&affpn=\" + atgPhoneNumber;\r\n\t\t\t\tif (order != null) {\r\n\t\t\t\t\tif (order.getCustomerInformation() != null) {\r\n\t\t\t\t\t\tif (order.getCustomerInformation().getCustomer() != null) {\r\n\t\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getBestPhoneContact())) {\r\n\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&phone=\" + order.getCustomerInformation().getCustomer().getBestPhoneContact().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getFirstName())) {\r\n\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&fname=\" + order.getCustomerInformation().getCustomer().getFirstName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getLastName())) {\r\n\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&lname=\" + order.getCustomerInformation().getCustomer().getLastName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getBestEmailContact())) {\r\n\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&email=\" + order.getCustomerInformation().getCustomer().getBestEmailContact().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\t//if (!Utils.isBlank(order.getCustomerInformation().getCustomer().getAgentId())) {\r\n\t\t\t\t\t\t\t//\thtmlHybrisUrl = htmlHybrisUrl + \"&agentIdentifier=\" + order.getCustomerInformation().getCustomer().getAgentId() + \"_\" + agentExtId;\r\n\t\t\t\t\t\t\t//}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (order.getMoveDate() != null) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&moving=\" + \"yes\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&moving=\" + \"false\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (order.getCustomerInformation().getCustomer().getAddressList() != null) {\r\n\t\t\t\t\t\t\tList<CustAddress> hybrisAddressList = order.getCustomerInformation().getCustomer().getAddressList().getCustomerAddress();\r\n\t\t\t\t\t\t\tfor(CustAddress custAddr : hybrisAddressList){\r\n\t\t\t\t\t\t\t\tfor(RoleType role : custAddr.getAddressRoles().getRole()){\r\n\t\t\t\t\t\t\t\t\tif(role.value().equals(\"ServiceAddress\")){\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStreetNumber()) && !Utils.isBlank(custAddr.getAddress().getStreetName())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&a=\" + custAddr.getAddress().getStreetNumber();\r\n\t\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPrefixDirectional())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getPrefixDirectional();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getStreetName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStreetType())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getStreetType();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPostfixDirectional())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getPostfixDirectional();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPostalCode())) {\r\n\t\t\t\t\t\t\t\t\t\t\tif(custAddr.getAddress().getPostalCode().contains(\"-\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&z=\" + custAddr.getAddress().getPostalCode().split(\"-\")[0];\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&z=\" + custAddr.getAddress().getPostalCode();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getLine2())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&u=\" + custAddr.getAddress().getLine2().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getCity())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrCity=\" + custAddr.getAddress().getCity().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStateOrProvince())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrState=\" + custAddr.getAddress().getStateOrProvince().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\tif (!Utils.isBlank(hybrisCategoryName)) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&offerType=\" + request.getSession().getAttribute(\"hybrisCategoryName\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(productCategory) && (productCategory.contains(\"VIDEO\")||productCategory.contains(\"TRIPLE\"))) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&tvServiceFlag=\" + \"true\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&tvServiceFlag=\" + \"false\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(productCategory) && (productCategory.contains(\"PHONE\")||productCategory.contains(\"TRIPLE\"))) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&voiceServiceFlag=\" + \"true\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&voiceServiceFlag=\" + \"false\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(productCategory) && (productCategory.contains(\"INTERNET\")||productCategory.contains(\"TRIPLE\"))) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&dataServiceFlag=\" + \"true\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&dataServiceFlag=\" + \"false\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&TransID=\" + String.valueOf(order.getExternalId()); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\thtmlHybrisUrl = hybrisUrl + \"?invalidateSession=true\";\r\n\t\t\tif (order != null) {\r\n\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&concertId=\" + order.getExternalId();\r\n\t\t\t\tif (order.getCustomerInformation() != null) {\r\n\t\t\t\t\tif (order.getCustomerInformation().getCustomer() != null) {\r\n\t\t\t\t\t\tif (order.getCustomerInformation().getCustomer().getReferrerId() > 0L) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&referrerId=\" + order.getCustomerInformation().getCustomer().getReferrerId();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getBestPhoneContact())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&customerPhoneNumber=\" + order.getCustomerInformation().getCustomer().getBestPhoneContact().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getFirstName())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&firstName=\" + order.getCustomerInformation().getCustomer().getFirstName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getLastName())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&lastName=\" + order.getCustomerInformation().getCustomer().getLastName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getBestEmailContact())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&email=\" + order.getCustomerInformation().getCustomer().getBestEmailContact().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getAgentId())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&agentIdentifier=\" + order.getCustomerInformation().getCustomer().getAgentId() + \"_\" + agentExtId;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tif (order.getCustomerInformation().getCustomer().getAddressList() != null) {\r\n\t\t\t\t\t\tList<CustAddress> hybrisAddressList = order.getCustomerInformation().getCustomer().getAddressList().getCustomerAddress();\r\n\t\t\t\t\t\tfor(CustAddress custAddr : hybrisAddressList){\r\n\t\t\t\t\t\t\tfor(RoleType role : custAddr.getAddressRoles().getRole()){\r\n\t\t\t\t\t\t\t\tif(role.value().equals(\"ServiceAddress\")){\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStreetNumber()) && !Utils.isBlank(custAddr.getAddress().getStreetName())) {\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrStreet=\" + custAddr.getAddress().getStreetNumber();\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPrefixDirectional())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getPrefixDirectional();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getStreetName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStreetType())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getStreetType();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPostfixDirectional())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getPostfixDirectional();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPostalCode())) {\r\n\t\t\t\t\t\t\t\t\t\tif(custAddr.getAddress().getPostalCode().contains(\"-\")) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrZip5=\" + custAddr.getAddress().getPostalCode().split(\"-\")[0];\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrZip5=\" + custAddr.getAddress().getPostalCode();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getLine2())) {\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrApt=\" + custAddr.getAddress().getLine2().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getCity())) {\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrCity=\" + custAddr.getAddress().getCity().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStateOrProvince())) {\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrState=\" + custAddr.getAddress().getStateOrProvince().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item != null) {\r\n\t\t\t\t\t\tif (item.getExternalId() > 0L) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&concertLineItemID=\" + item.getExternalId();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!Utils.isBlank(hybrisCategoryName)) {\r\n\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&redirectCategoryName=\" + request.getSession().getAttribute(\"hybrisCategoryName\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!Utils.isBlank(hybrisUsaaId) && !hybrisUsaaId.equalsIgnoreCase(\"none\")) {\r\n\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&memberId=\" + hybrisUsaaId.replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!Utils.isBlank(hybrisProgramName) && !hybrisProgramName.equalsIgnoreCase(\"none\")) {\r\n\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&programName=\" + hybrisProgramName.replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\tlogger.info(\"Completed Building hybrisUrl Params =\" + htmlHybrisUrl);\r\n\t\t\tstCkVO.setValueByName(\"hybrisUrl\", htmlHybrisUrl);\r\n\t\t\tstCkVO.setValueByName(\"referrer.program.url\", hybrisUrl);\r\n\t\t} else {\r\n\t\t\tlogger.info(\"Completed Building hybrisUrl Params not completed\");\r\n\t\t\tstCkVO.setValueByName(\"referrer.program.url\", \"No URL for ordersource\");\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\t/*\r\n\t\t * setting lineItem to orderQualVO Object, this lineItem is used to get all the \r\n\t\t * features that are selected during product customization\r\n\t\t */\r\n\r\n\t\t//orderQualVO.setNewLineItemType(LineItemBuilder.INSTANCE.getLineItemBySelectedFeatures(requestParamMap, availableFeatureMap, availableFeatureGroupMap, orderQualVO.getNewLineItemType(), null));\r\n\r\n\t\tLineItemSelectionsType lineItemSelections = orderQualVO.getLineItemSelections();\r\n\r\n\t\tif((lineItemSelections == null) || (lineItemSelections.getSelection().size() == 0)) {\r\n\t\t\tlineItemSelections = LineItemSelectionBuilder.getLineItemSelections(requestParamMap, productInfo.getProductDetails().getCustomization());\r\n\t\t\torderQualVO.setLineItemSelections(lineItemSelections);\r\n\t\t}\r\n\r\n\t\tList<String> allDataFieldList = new ArrayList<String>();\r\n\r\n\t\t/*\r\n\t\t * checks whether the provisioning response is already present in the cache service, if it is present, then the response is returned\r\n\t\t * if the response is not present, then a provisioning call is made to retrieves all the dialogue related data\r\n\t\t */\r\n\t\tDialogueVO dialogueVO = DialogServiceUI.INSTANCE.getDialoguesByProductId(productInfo, orderQualVO.isAsisPlan(), orderQualVO);\r\n\r\n\t\tStringBuilder events = new StringBuilder();\r\n\r\n\t\tList<DataField> dataFields = new ArrayList<DataField>();\r\n\t\tList<DataGroup> dataGroupList = new ArrayList<DataGroup>();\r\n\r\n\t\t/*\r\n\t\t *\titerate over dialogueNamesList(List<Dialogue>) and create a list of DataGroups, dataFields, these lists are used to build dialogues display\r\n\t\t */\r\n\t\tfor (Dialogue dialogue : dialogueVO.getDialogueNameList()) {\r\n\r\n\t\t\tString externalId = dialogue.getExternalId();\r\n\t\t\tdataGroupList.addAll(dialogue.getDataGroupList());\r\n\t\t\tMap<String, List<DataField>> dataFieldMap = dialogueVO.getDataFieldMap().get(externalId);\r\n\r\n\t\t\tfor(Map.Entry<String, List<DataField>> fieldEntry : dataFieldMap.entrySet()) {\r\n\t\t\t\tdataFields.addAll(fieldEntry.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.info(\"DF External ID ::::: \"+dataFields);\r\n\t\tlogger.info(\"setting all values into orderqualVO object\");\r\n\r\n\t\torderQualVO.setAvailableDataField(dataFields);\r\n\r\n\t\torderQualVO.setAvailFeatureMap(availableFeatureMap);\r\n\r\n\t\torderQualVO.setAvailableFeatureGroup(availableFeatureGroupMap);\r\n\r\n\t\tList<DataFieldMatrix> dataFieldMatrixs = new ArrayList<DataFieldMatrix>();\r\n\r\n\t\t/*\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t\t\tStart Of logic to build enableDependencyMap and disableDependencyMap, these maps are used to hide and display \r\n\t\t\t\telements which are depended on the selected element\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\r\n\t\t/*\r\n\t\t * enable dependency map contains all the elements that are to be shown when an element is selected\r\n\t\t */\r\n\t\tMap<String, Map<String, List<String>>> enableDependencies = new HashMap<String, Map<String, List<String>>> (); \r\n\r\n\t\tenableDependencies.putAll(DialogueUtil.buildDataFieldMatrices(dataGroupList, availableFeatureGroupMap));\r\n\r\n\t\t/*\r\n\t\t * disable dependency map contains all the elements that are to be hidden when an element is selected\r\n\t\t */\r\n\t\tMap<String, Map<String, List<String>>> disableDependencies = new HashMap<String, Map<String, List<String>>>();\r\n\t\tdisableDependencies.putAll(DialogueUtil.getDisableDialogueDependencies(dataGroupList, enableDependencies, availableFeatureMap, availableFeatureGroupMap));\r\n\r\n\t\t/*\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t\t\t\t\t\t\tEnd Of logic to build enableDependencyMap and disableDependencyMap\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\tlogger.info(\"adding all dependency elements to data field matrix map\");\r\n\t\tfor (Dialogue dialogue : dialogueVO.getDialogueNameList()) {\r\n\t\t\tString externalId = dialogue.getExternalId();\r\n\t\t\tMap<String, List<DataFieldMatrix>> dataFieldMatrix = dialogueVO.getDataFieldMatrixMap().get(externalId);\r\n\t\t\tfor(Map.Entry<String, List<DataFieldMatrix>> fieldEntry : dataFieldMatrix.entrySet()) {\r\n\t\t\t\tdataFieldMatrixs.addAll(fieldEntry.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.info(\"after setting all the values to data field matrix map\");\r\n\t\tList<String> replayAllEnabledValuesList = new ArrayList<String>();\r\n\r\n\t\t/*\r\n\t\t */\r\n\t\tif(selectedValues != null && selectedValues.length() > 0){\r\n\t\t\tString[] selectedValuesArray = selectedValues.split(\",\");\r\n\t\t\tfor(String selectVal : selectedValuesArray){\r\n\t\t\t\treplayAllEnabledValuesList.addAll(OrderUtil.INSTANCE.generateReplayChildvalues(enableDependencies, selectVal));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\torderQualVO.setEnableDependencyMap(enableDependencies);\t\r\n\r\n\t\t/*\r\n\t\t * creating a List<String> allDataList by adding all the externalID's that are present in this provisioning call\r\n\t\t * this list is used to check all the dataFields when we are displaying the dependent fields in js \r\n\t\t */\r\n\t\tfor(Entry<String, Map<String, List<String>>> enableDependenciesEntry : enableDependencies.entrySet()){\r\n\t\t\tfor(Entry<String, List<String>> enableDependenciesList : enableDependenciesEntry.getValue().entrySet()){\r\n\t\t\t\tfor(String dependedEle : enableDependenciesList.getValue()){\r\n\t\t\t\t\tallDataFieldList.add(dependedEle);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * checking if the dialogue contains 'electricService.startDate' or 'businessParty.name', if the dialogue contains them,\r\n\t\t * we need to replace them with their corresponding values that are present on the order.\r\n\t\t */\r\n\t\tCustomer customer = order.getCustomerInformation().getCustomer();\r\n\t\tList<CustAddress> custAddressList = customer.getAddressList().getCustomerAddress();\r\n\t\tfor(CustAddress custAddr : custAddressList){\r\n\t\t\tfor(RoleType role : custAddr.getAddressRoles().getRole()){\r\n\t\t\t\tif(role.value().equals(\"ServiceAddress\")){\r\n\t\t\t\t\tString electricStartDate = DateUtil.toTimeString(custAddr.getAddress().getElectricityStartAt());\r\n\t\t\t\t\tstCkVO.setValueByName(\"electricService.startDate\", electricStartDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tstCkVO.setValueByName(\"businessParty.name\", businessPartyName);\r\n\t\tstCkVO.setValueByName(\"consumer.name.nameBlock\", customer.getFirstName()+\" \"+ customer.getLastName());\r\n\t\tstCkVO.setValueByName(\"referrer-general-name\", customer.getReferrerGeneralName());\r\n\t\t/*\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t\t\tStart Of logic to build display of the dialogues that are to be shown during the customer qualification page\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\tlogger.info(\"before sending to html factory\");\r\n\t\tList<Fieldset> fieldsetList = HtmlFactory.INSTANCE.dialogueToFieldSet(events, dialogueVO, enableDependencies, dialogueFeatureMap, \r\n\t\t\t\tdialogueFeatureGroupMap, viewDetailsFeaturesList, viewDetailsFeatureGroupList, preSelectedMap, \r\n\t\t\t\trequest.getContextPath(), requestParamMap, stCkVO, orderQualVO.getPriceDisplayVOMap(),orderQualVO.getDominionProductExtIds(),request.getSession().getAttribute(\"mandatoryDisclosureCheckboxes\"));\r\n\r\n\t\tlogger.info(\"after html factory\");\r\n\t\tfor (Fieldset fieldset : fieldsetList) {\r\n\r\n\t\t\tString element = HtmlBuilder.INSTANCE.toString(fieldset);\r\n\t\t\telement = element.replaceAll(\"<\", \"<\");\r\n\t\t\telement = element.replaceAll(\">\", \">\");\r\n\t\t\tevents.append(element);\r\n\t\t\tlogger.info(\"====================================\");\r\n\t\t}\r\n\t\torderQualVO.setDataField(events.toString());\r\n\t\tlogger.info(\"setting values to mav obkect\");\r\n\t\tif(errorLog != null && errorLog.size() > 0){\r\n\t\t\tmav.addObject(\"errorLog\", errorLog);\r\n\t\t}\r\n\t\tif(!errorStringList.isEmpty()){\r\n\t\t\tmav.addObject(\"errors\",errorStringList);\r\n\t\t}\r\n\t\tif(jsonString != null && jsonString.trim().length() >0){\r\n\t\t\tmav.addObject(\"iData\", jsonString);\r\n\t\t}\r\n\r\n\t\tStringBuilder customerName = new StringBuilder();\r\n\r\n\t\tif(order.getAccountHolder() != null && !order.getAccountHolder().isEmpty() && orderQualVO.getLineItemExternalId() > 0 )\r\n\t\t{\r\n\t\t\tLineItemType lineItemType = LineItemService.INSTANCE.getLineItem(order.getAgentId(),order,orderQualVO.getLineItemExternalId(),null);\r\n\t\t\tif (lineItemType != null && lineItemType.getAccountHolderExternalId() != null)\r\n\t\t\t{\r\n\t\t\t\tfor(AccountHolderType accountHolder : order.getAccountHolder())\r\n\t\t\t\t{\r\n\t\t\t\t\tlogger.info(\"accountHolderExtID=\"+ accountHolder.getExternalId()+\"_LineAcountHolderExtID=\"+lineItemType.getAccountHolderExternalId());\r\n\t\t\t\t\tif ( accountHolder.getExternalId() == lineItemType.getAccountHolderExternalId().longValue() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcustomerName.append(accountHolder.getFirstName());\r\n\t\t\t\t\t\tcustomerName.append(\" \");\r\n\t\t\t\t\t\tcustomerName.append(accountHolder.getLastName());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(customerName.length() == 0){\r\n\t\t\tcustomerName.append(order.getCustomerInformation().getCustomer().getFirstName());\r\n\t\t\tcustomerName.append(\" \");\r\n\t\t\tcustomerName.append(order.getCustomerInformation().getCustomer().getLastName());\r\n\t\t}\r\n\r\n\t\tmav.addObject(\"customerName\",customerName.toString());\r\n\r\n\r\n\t\tmav.addObject(\"dataField\", escapeSpecialCharacters(events.toString()));\r\n\t\tmav.addObject(\"productInfo\", productInfo);\r\n\r\n\t\tmav.addObject(\"allDataFieldList\", allDataFieldList);\r\n\t\tmav.addObject(\"enableDialogueMap\", enableDependencies);\r\n\t\tmav.addObject(\"disableDialogueMap\", disableDependencies);\r\n\t\tmav.addObject(\"replayAllEnabledValuesList\", replayAllEnabledValuesList);\r\n\t\tmav.addObject(\"providerExternalID\",providerExternalID);\r\n\t\tmav.addObject(\"isUtilityOffer\", false);\r\n\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.add(Calendar.YEAR, -18);\r\n\t\tString hiddenYear = (cal.get(Calendar.MONTH)+1)+\"/\"+(cal.get(Calendar.DATE)-1)+\"/\"+cal.get(Calendar.YEAR);\r\n\t\tmav.addObject(\"hiddenYear\", hiddenYear);\r\n\r\n\t\tlogger.info(\"after setting values to MAV object\");\r\n\t\treturn mav;\r\n\t}",
"@Test(timeout = 4000)\n public void test44() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n TextArea textArea0 = new TextArea(errorPage0, \">/_? 9[?}aX\", \"Tz\\\"qb2hEBW8P^&L\");\n Any any0 = new Any(textArea0, \"Tz\\\"qb2hEBW8P^&L\");\n DynamicSelectModel dynamicSelectModel0 = any0.selectModel();\n Component component0 = dynamicSelectModel0.getComponent();\n assertNull(component0);\n }",
"@Override\r\n\tpublic void setSelectedType(int paramInt) {\n\r\n\t}",
"public void setMaterialIndex(int index) { materialIndex = index; }",
"@Test\n void getResetPasswordView() throws Exception {\n\n MvcResult mvcResult = mockMvc.perform(get(PATH + \"reset/password\")\n .contentType(MediaType.APPLICATION_JSON)\n .param(\"user\", \"test\")\n .param(\"pass\", \"password\"))\n .andExpect(status().is2xxSuccessful())\n .andExpect(view().name(\"resetPassword\"))\n .andReturn();\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\t\tMsgRequest request = CommonSelectRequest.createSelectMaterialRequest(new MaterialsSelectParameters(null, false, false,false,false));\r\n\t\t\t\trequest.setResponseHandler(new ResponseHandler(){\r\n\t\t\t\t\tpublic void handle(Object returnValue, Object returnValue2, Object returnValue3, Object returnValue4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tMaterialsItemInfo[] itemList = (MaterialsItemInfo[])returnValue;\r\n\t\t\t\t\t\tfor(MaterialsItemInfo item : itemList){\r\n\t\t\t\t\t\t\tif(selectedGoodsIds.contains(item.getItemData().getId().toString())){\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttable.addRow(item); // XXX:表格控件提供插入多行数据接口后修改,目前效率\r\n\t\t\t\t\t\t\tselectedGoodsIds.add(item.getItemData().getId().toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgoodsItemCountLabel.setText(String.valueOf(selectedGoodsIds.size()));\r\n\t\t\t\t\t\ttable.renderUpate();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tgetContext().bubbleMessage(request);\r\n\t\t\t}",
"private void getSearchButtonSemantics() {\n //TODO implement method\n searchView.getResultsTextArea().setText(\"\");\n if (searchView.getFieldComboBox().getSelectedItem() == null) {\n JOptionPane.showMessageDialog(new JFrame(), \"Please select a field!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getFieldComboBox().requestFocus();\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"SKU\")) {\n Optional<Product> skuoptional = inventoryModel.searchBySku(searchView.getSearchValueTextField().getText());\n if (skuoptional.isPresent()) {//check if there is an inventory with that SKU\n searchView.getResultsTextArea().append(skuoptional.get().toString());\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified SKU was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Name\")) {\n List<Product> name = inventoryModel.searchByName(searchView.getSearchValueTextField().getText());\n if (!name.isEmpty()) {\n for (Product nameproduct : name) {\n searchView.getResultsTextArea().append(nameproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified name was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Wholesale price\")) {\n try {\n List<Product> wholesaleprice = inventoryModel.searchByWholesalePrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!wholesaleprice.isEmpty()) {//check if there is an inventory by that wholesale price\n for (Product wholesalepriceproduct : wholesaleprice) {\n searchView.getResultsTextArea().append(wholesalepriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Retail price\")) {\n try {\n List<Product> retailprice = inventoryModel.searchByRetailPrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!retailprice.isEmpty()) {\n for (Product retailpriceproduct : retailprice) {\n searchView.getResultsTextArea().append(retailpriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Quantity\")) {\n try {\n List<Product> quantity = inventoryModel.searchByQuantity(Integer.parseInt(searchView.getSearchValueTextField().getText()));\n if (!quantity.isEmpty()) {\n for (Product quantityproduct : quantity) {\n searchView.getResultsTextArea().append(quantityproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n }\n }",
"@Test(timeout = 4000)\n public void test13() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.enumeration(\"?_>Qp*Ds!n\\\"tiJ\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getValue((-8));\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // java.lang.Integer cannot be cast to java.lang.Boolean\n //\n verifyException(\"org.mvel.MVELInterpretedRuntime\", e);\n }\n }",
"@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }",
"public void testUI() throws Throwable {\n GameSetupFragment fragPre = GameSetupFragment.newInstance();\n Fragment fragPost = startFragment(fragPre, \"1\");\n assertNotNull(fragPost);\n\n //check that passing string argument to fragment creates adapter as expected\n\n //4x4 should give 16 in adapter\n GameFragment gameFragPre = GameFragment.newInstance(\"4x4\");\n final GameFragment gameFragPost = (GameFragment) startFragment(gameFragPre, \"2\");\n assertNotNull(gameFragPost);\n\n int numCubes = gameFragPost.cubeGrid.getAdapter().getCount();\n assertEquals(16, numCubes);\n\n //check that no more than two cubes are ever selected\n runTestOnUiThread(new Runnable() {\n @Override\n public void run() {\n gameFragPost.cubeGrid.performItemClick(null, 2, 0);\n\n int selectedCount = ((CubeView.Adapter)gameFragPost.cubeGrid.getAdapter()).getSelectedCount();\n assertEquals(1, selectedCount); //1 cube selected after 1 press\n\n gameFragPost.itemClick.onItemClick(null, null, 0, 0);\n gameFragPost.itemClick.onItemClick(null, null, 4, 0);\n gameFragPost.itemClick.onItemClick(null, null, 9, 0);\n selectedCount = ((CubeView.Adapter)gameFragPost.cubeGrid.getAdapter()).getSelectedCount();\n assertEquals(2, selectedCount); //2 cubes selected after several more presses\n }\n });\n }",
"public void setContents(MaterialData materialData) {\n/* 91 */ Material mat = materialData.getItemType();\n/* */ \n/* 93 */ if (mat == Material.RED_ROSE) {\n/* 94 */ setData((byte)1);\n/* 95 */ } else if (mat == Material.YELLOW_FLOWER) {\n/* 96 */ setData((byte)2);\n/* 97 */ } else if (mat == Material.RED_MUSHROOM) {\n/* 98 */ setData((byte)7);\n/* 99 */ } else if (mat == Material.BROWN_MUSHROOM) {\n/* 100 */ setData((byte)8);\n/* 101 */ } else if (mat == Material.CACTUS) {\n/* 102 */ setData((byte)9);\n/* 103 */ } else if (mat == Material.DEAD_BUSH) {\n/* 104 */ setData((byte)10);\n/* 105 */ } else if (mat == Material.SAPLING) {\n/* 106 */ TreeSpecies species = ((Tree)materialData).getSpecies();\n/* */ \n/* 108 */ if (species == TreeSpecies.GENERIC) {\n/* 109 */ setData((byte)3);\n/* 110 */ } else if (species == TreeSpecies.REDWOOD) {\n/* 111 */ setData((byte)4);\n/* 112 */ } else if (species == TreeSpecies.BIRCH) {\n/* 113 */ setData((byte)5);\n/* */ } else {\n/* 115 */ setData((byte)6);\n/* */ } \n/* 117 */ } else if (mat == Material.LONG_GRASS) {\n/* 118 */ GrassSpecies species = ((LongGrass)materialData).getSpecies();\n/* */ \n/* 120 */ if (species == GrassSpecies.FERN_LIKE) {\n/* 121 */ setData((byte)11);\n/* */ }\n/* */ } \n/* */ }",
"public void setMaterial_id(Integer material_id) {\n this.material_id = material_id;\n }",
"@Test\n public void testSelecionarItemTbViewPagamentos() {\n }",
"@Test\n public void testChangeToRecipes() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n appContext.setTheme(R.style.Theme_Entree);\n MenuBarsView v = new MenuBarsView(appContext, null, null);\n\n v.onNavigationItemSelected(v.getRecipeMenuItem());\n\n assertTrue(v.getSubView() == v.getRecipeView());\n }",
"@Test\n public void testChangeToCamera() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n appContext.setTheme(R.style.Theme_Entree);\n MenuBarsView v = new MenuBarsView(appContext, null, null);\n\n v.onNavigationItemSelected(v.getCameraMenuItem());\n\n assertTrue(v.getSubView() == v.getCameraView());\n }",
"public void selectNCDPotectedClaim ()\r\n\t{\r\n\t\tWebDriverWait wait = new WebDriverWait (driver, GlobalWaitTime.getIntWaitTime ());\r\n\t\twait.until (ExpectedConditions.elementToBeClickable (orPolicyVehicleHub.ddlNCDProtected));\r\n\t\tSelect oNCDProtectedClaims = new Select (orPolicyVehicleHub.ddlNCDProtected);\r\n\t\tint intNCDProtectedIndex = RandomCount.selectRandomItem (oNCDProtectedClaims);\r\n\t\toNCDProtectedClaims.selectByIndex (intNCDProtectedIndex);\r\n\r\n\t}",
"@Override\r\n\tpublic void onMaterialItem(HttpRequest request, MaterialItem item) {\n\r\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 }",
"@Transactional\r\n\tpublic List getAllTypeMaterial() {\n\t\treturn typematerialdao.getAllTypeMaterial();\r\n\t}",
"public String productTypeSelected() {\n String productType = \"\";\n rbListAddElement();\n for (int i = 0; i < rbProductType.size(); i++) {\n if (rbProductType.get(i).isSelected()) {\n productType += (rbProductType.get(i).getText());\n System.out.println(\"Selected product type :\" + productType);\n }\n }\n return productType;\n }",
"public void clickViewCartButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Viewcart button should be clicked\");\r\n\t\ttry{\r\n\t\t\t//waitForElement(btnViewCart);\r\n\t\t\twaitForElement(locator_split(\"btnViewCartBtn\"));\r\n\t\t\t//click(btnViewCart);\r\n\t\t\tclick(locator_split(\"btnViewCartBtn\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Viewcart button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- View button is not clicked \"+elementProperties.getProperty(\"btnViewCartBtn\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnViewCartBtn\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}",
"public static void consultaMaterial(DefaultTableModel dtm, JComboBox cmb) {\n\t\tif(cmb.getSelectedIndex() != 0 && cmb.getSelectedIndex() != -1) {\n\t\t\tInventarioAdministrativo i = invenDAO.consultaMaterial((String) cmb.getSelectedItem());\n\t\t\tif(i != null) {\n\t\t\t\tObject[] fila = {\n\t\t\t\t\t\ti.getNombre(),\n\t\t\t\t\t\ti.getUnidades(),\n\t\t\t\t\t\ti.getFecha_llegada()\n\t\t\t\t};\n\t\t\t\t\n\t\t\t\tdtm.addRow(fila);\n\t\t\t}else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No hay datos\");\n\t\t\t}\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Seleccione material a consultar\");\n\t\t}\n\t}",
"@Override\r\n\tpublic theaterVO selectView(int bnum) {\n\t\treturn theaterRentalDaoImpl.selectView(bnum);\r\n\t}",
"public void setMaterial(String material) {\n this.material = material;\n }",
"public void selectWeaponFromInventory(int weaponIndex) {\n }",
"private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}",
"@Test\n public void f14SelectAssetTest() {\n FlowPane assets;\n int i = 0;\n Random random = new Random();\n\n //select 4 random assets out of the first 12 visible assets in the window\n do {\n clickOn(\"#thumbnailTab\").moveBy(300, 500);\n scroll(10, VerticalDirection.UP).sleep(2000);\n\n assets = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n clickOn(assets.getChildren().get(random.nextInt(12)));\n sleep(1000).clickOn(\"#serialNumberOutput\").sleep(1000);\n clickOn(\"#backBtn\");\n\n } while (++i < 4);\n\n assertTrue(\"There are selectable assets on the main page.\", assets.getChildren().size() > 0);\n }",
"public String updateByPrimaryKeySelective(MaterialType record) {\r\n SQL sql = new SQL();\r\n sql.UPDATE(\"material_type\");\r\n \r\n if (record.getMtName() != null) {\r\n sql.SET(\"mt_name = #{mtName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getRemark() != null) {\r\n sql.SET(\"remark = #{remark,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMtOrderNum() != null) {\r\n sql.SET(\"mt_order_num = #{mtOrderNum,jdbcType=INTEGER}\");\r\n }\r\n \r\n sql.WHERE(\"id = #{id,jdbcType=INTEGER}\");\r\n \r\n return sql.toString();\r\n }",
"@Test\r\n\tpublic void findAllMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}",
"@FXML\n private void viewSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"View DonorReceiver\");\n } else {\n ViewProfilePaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.VIEW);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n@Test\n public void testProductSelection() {\n\t \n\t\tRestAssured.baseURI = baseURL;\n\t\tRequestSpecification request = RestAssured.given();\n\t\t\n\t\t\n\t\trequest.header(\"Content-Type\", \"application/json\");\n\t\t\n\n\t\tJSONObject jobj = new JSONObject();\n\t\t\n\t\tjobj.put(\"product_id\",\"56c815cc56685df2014df1fb\"); //Fetching the product ID from the Login API response\n\t\t\n\t\trequest.body(jobj.toJSONString());\n\n\t\tResponse resp = request.post(\"/product_selection\");\n\t\t\n\t\t\n\t\tint statusCode = resp.getStatusCode();\n\t\tAssert.assertEquals(statusCode,200, \"Status Code is not 200\");\n }",
"@Test\n public void testReturnPickUpRequest() {\n List<List<String>> orders = new ArrayList<>();\n ArrayList<String> order1 = new ArrayList<>();\n order1.add(\"White\");\n order1.add(\"SE\");\n orders.add(order1);\n ArrayList<String> order2 = new ArrayList<>();\n order2.add(\"Red\");\n order2.add(\"S\");\n orders.add(order2);\n ArrayList<String> order3 = new ArrayList<>();\n order3.add(\"Blue\");\n order3.add(\"SEL\");\n orders.add(order3);\n ArrayList<String> order4 = new ArrayList<>();\n order4.add(\"Beige\");\n order4.add(\"S\");\n orders.add(order4);\n PickUpRequest expected = new PickUpRequest(orders, translation);\n warehouseManager.makePickUpRequest(orders);\n assertEquals(expected.getSkus(), warehouseManager.returnPickUpRequest().getSkus());\n }",
"public void clickMediumUnit() {\r\n\t\twebAppDriver.clickElementById(btnMediumUnitsId);\r\n\t\twebAppDriver.verifyElementIsInvisibleByXpath(lbPleaseWaitXpath);\r\n\t}",
"private void setUpInventoryViewModel() {\n // mock equipment\n Equipment equipment = Mockito.mock(Equipment.class);\n when(equipment.getTotalSlots()).thenReturn(5);\n when(equipment.getMaxTotalWeight()).thenReturn(10);\n when(equipment.getMaxTotalVolume()).thenReturn(10);\n when(equipment.getCurrentTotalWeight()).thenReturn(3);\n when(equipment.getCurrentTotalVolume()).thenReturn(5);\n\n // mock items\n ArrayList<Item> items = new ArrayList<>();\n Item itemOne = Mockito.mock(Item.class);\n when(itemOne.getName()).thenReturn(\"Item One\");\n when(itemOne.getWeight()).thenReturn(1);\n when(itemOne.getVolume()).thenReturn(1);\n items.add(itemOne);\n items.add(itemOne);\n when(equipment.getItems()).thenReturn(items);\n\n // mock gameManager\n GameManager gameManager = Mockito.mock(GameManager.class);\n when(gameManager.getEquipment()).thenReturn(equipment);\n\n contentViewModel = new InventoryViewModel(gameManager, null);\n }",
"public abstract String getSelectedPhoneType1();",
"public static void viewOrder() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Viewing existing orders************\");\n\t\t// TODO - implement RRPSS.viewOrder\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\t\tOrderedPackageManager orderedPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackage = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to view the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\t\t\tlistOfOrderedPromotionalPackage = orderedPackageManager\n\t\t\t\t\t.retrieveOrderedPackageByOrderID(order.getId());\n\n\t\t\tif (listOfOrderedItems.size() == 0\n\t\t\t\t\t&& listOfOrderedPromotionalPackage.size() == 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\tSystem.out.println(\"Order is empty!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif (listOfOrderedItems.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"All Cart Items Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedItems.size(); j++) {\n\t\t\t\t\tOrderedItem orderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tif (listOfOrderedPromotionalPackage.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"Promotional Packages Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedPromotionalPackage.size(); j++) {\n\t\t\t\t\tOrderedPackage orderedPackage = (OrderedPackage) listOfOrderedPromotionalPackage\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedPackage.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of viewing orders************\");\n\t}",
"private void showResult(TYPE type){\r\n\t\tString brand = \"\";//brand\r\n\t\tString sub = \"\";//sub brand\r\n\t\tString area = \"\";//area\r\n\t\tString cus = \"\";//customer name\r\n\t\tString time = \"\";//time in second level\r\n\t\tKIND kind = null;//profit or shipment \r\n\t\t\r\n\t\tif(item1.getExpanded()){\r\n\t\t\tkind = KIND.SHIPMENT;\r\n\t\t\tbrand = combo_brand_shipment.getText();\r\n\t\t\tsub = combo_sub_shipment.getText();\r\n\t\t\tarea = combo_area_shipment.getText();\r\n\t\t\tcus = combo_cus_shipment.getText();\r\n\t\t}else if(item2.getExpanded()){\r\n\t\t\tkind = KIND.PROFIT;\r\n\t\t\tbrand = combo_brand_profit.getText();\r\n\t\t\tsub = combo_sub_profit.getText();\r\n\t\t\tarea = combo_area_profit.getText();\r\n\t\t\tcus = combo_cus_profit.getText();\r\n\t\t}else{//either item1 & item2 are not expanded\r\n\t\t\t//show a message?\r\n\t\t\tkind = KIND.NONE;\r\n\t\t}\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n\t\ttime = formatter.format(new Date());\r\n\t\tfinal Map<String, Object> args = new HashMap<String ,Object>();\r\n\t\targs.put(\"brand\", brand);\r\n\t\targs.put(\"sub_brand\", sub);\r\n\t\targs.put(\"area\", area);\r\n\t\targs.put(\"customer\", cus);\r\n\t\targs.put(\"time\", time);\r\n\t\targs.put(\"kind\", kind.toString());\r\n\t\targs.put(\"type\", type.toString());\r\n\t\t//call engine to get the data\t\r\n\t\t\r\n\t\tProgressMonitorDialog progressDialog = new ProgressMonitorDialog(Display.getCurrent().getActiveShell());\r\n\t\tIRunnableWithProgress runnable = new IRunnableWithProgress() { \r\n\t\t public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { \r\n\t\t \t\r\n\t\t Display.getDefault().asyncExec(new Runnable() { \r\n\t\t public void run() { \r\n\t\t monitor.beginTask(\"正在进行更新,请勿关闭系统...\", 100); \r\n\t\t \r\n\t\t monitor.worked(25); \r\n\t monitor.subTask(\"收集数据\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tro.getMap().clear();\r\n\t\t\t\t\tro=statistic.startAnalyzing(args, monitor);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\t\t\tmbox.open();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tmonitor.worked(100); \r\n\t monitor.subTask(\"分析完成\");\r\n\t \r\n\t\t monitor.done();\r\n\t\t }\r\n\t\t \t });\r\n\t\t } \r\n\t\t}; \r\n\t\t \r\n\t\ttry { \r\n\t\t progressDialog.run(true,/*是否开辟另外一个线程*/ \r\n\t\t false,/*是否可执行取消操作的线程*/ \r\n\t\t runnable/*线程所执行的具体代码*/ \r\n\t\t ); \r\n\t\t} catch (InvocationTargetException e) { \r\n\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\tmbox.open();\r\n\t\t\treturn;\r\n\t\t} catch (InterruptedException e) { \r\n\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\tmbox.open();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(ro.getMap().isEmpty())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tPagination page1 = (Pagination) ro.get(\"table1\");\r\n\t\tPagination page2 = (Pagination) ro.get(\"table2\");\r\n\t\tPagination page3 = (Pagination) ro.get(\"table3\");\r\n\t\tList<Object> res1 = new ArrayList<Object>();\r\n\t\tList<Object> res2 = new ArrayList<Object>();\r\n\t\tList<Object> res3 = new ArrayList<Object>();\r\n\t\tif(page1 != null)\r\n\t\t\tres1 = (List<Object>)page1.getItems();\r\n\t\tif(page2 != null)\r\n\t\t\tres2 = (List<Object>)page2.getItems();\r\n\t\tif(page2 != null)\r\n\t\t\tres3 = (List<Object>)page3.getItems();\r\n\t\t\r\n\t\tif(res1.size()==0 && res2.size()==0 && res3.size()==0){\r\n\t\t\tMessageBox messageBox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t \tmessageBox.setMessage(\"没有满足查询条件的数据可供分析,请查询其他条件\");\r\n\t \tmessageBox.open();\r\n\t \treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//this if/else can be optimized, since it looks better in this way, leave it\t\t\r\n\t\t//case 1: brand ratio, area ratio, trend\r\n\t\tif(brand.equals(AnalyzerConstants.ALL_BRAND) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t\t\t\t\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \t\t\r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\r\n\t\t}\r\n\t\t//case 2: brand ratio, customer ratio, trend\r\n\t\telse if(brand.equals(AnalyzerConstants.ALL_BRAND) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 3: brand ratio, trend\r\n\t\telse if(brand.equals(AnalyzerConstants.ALL_BRAND) && !area.equals(AnalyzerConstants.ALL_AREA) && !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 4: sub brand ratio, area ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 5: sub brand ratio, customer ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 6: sub brand ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && !area.equals(AnalyzerConstants.ALL_AREA) && !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 7: area ratio, trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//brand\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 8: customer ratio, trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//brand\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 9: trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && !area.equals(AnalyzerConstants.ALL_AREA) & !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//now, just trend, do nothing here\r\n\t\t}\r\n\t\tif(!kind.equals(KIND.NONE)){\r\n\t\t\t//trend, always has the trend graph \t\r\n\t\t\tTrendDataSet ts = new TrendDataSet();\r\n\t\t\tts.setKind(kind);\t\r\n\t\t\tts.setType(type);\r\n\t\t\tTrendComposite tc = new TrendComposite(composite_content, 0, ts, res3); \r\n\t\t\talys.add(tc);\r\n\t\t\tcomposite_content.setLayout(layout_content);\r\n\t\t\tcomposite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t\t\t\r\n\t}",
"public static int MakeMenuAndSelect(){\r\n int input = 0;\r\n boolean wrongNumber = false;//Boolean for error handling\r\n do { \r\n if(wrongNumber)System.out.println(\"Enter CORRECT number.\"); //Error if not a valid number or Exception\r\n wrongNumber = false; //Setting boolean for first selection of item\r\n System.out.println(\"\\nVending Machine\");\r\n System.out.println(\"_________________\\n\");\r\n \r\n //Make dynamic selection menu\r\n MakeMerchMenu(Inventory.merchList);\r\n \r\n //Choice one item for description and purchase\r\n System.out.print(\"Select one option for further details: \");\r\n try { \r\n input = Vending_Machine.GetInput(); //Calling input function\r\n System.out.println(\"\"); //Just for cosmetics\r\n if(1 > input || input > Inventory.merchList.size())wrongNumber = true;\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Enter a numeric value, try again\"); //Error Exception\r\n wrongNumber = true;\r\n } \r\n } while (wrongNumber);//Loops if not a valid selection \r\n return input;\r\n }",
"public void EnterQtyInSku(String itemnum){ \r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Quantity should be entered in the quantity box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtSkuPageQty\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtSkuPageQty\"));\r\n\t\t\tsendKeys(locator_split(\"txtSkuPageQty\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Quantity is entered in the quantity box\");\r\n\t\t\tSystem.out.println(\"Quantity is entered in the quantity box - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Quantity is not entered in the quantity box \"+elementProperties.getProperty(\"txtSkuPageQty\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSkuPageQty\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void findByIdMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}",
"private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }",
"public void setUpInventoryItemViewModel() {\n GameManager mockGameManager = Mockito.mock(GameManager.class);\n ContentViewModelDao mockViewModelDao = Mockito.mock(ContentViewModelDao.class);\n\n // mock item\n Item mockItem = Mockito.mock(Item.class);\n Item mockUpgradeItem = Mockito.mock(Item.class);\n when(mockItem.getDescription()).thenReturn(\"some description\");\n when(mockUpgradeItem.getName()).thenReturn(\"some upgrade item name\");\n when(mockItem.getUpgradeStage()).thenReturn(mockUpgradeItem);\n when(mockItem.getUseTime()).thenReturn(10);\n when(mockItem.getUpgradeTime()).thenReturn(30);\n\n contentViewModel = new InventoryItemViewModel(mockGameManager, mockItem, mockViewModelDao);\n }",
"public SelectType (int _selectType) {\n selectType = _selectType;\n }",
"@ViewAnnotations.ViewOnClick(R.id.hunter_number_read_qr_button)\n protected void onReadQrCodeClicked(final View view) {\n final IntentIntegrator intentIntegrator = IntentIntegrator.forSupportFragment(this);\n intentIntegrator.setBarcodeImageEnabled(true);\n intentIntegrator.setOrientationLocked(false);\n intentIntegrator.initiateScan();\n }",
"@Test\r\n public void regButton(){\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.Stud_id)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.btnReg)).perform(click());\r\n }",
"private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }"
] | [
"0.6870968",
"0.5921541",
"0.5212726",
"0.51257527",
"0.5019834",
"0.48843312",
"0.48242962",
"0.48037717",
"0.47560138",
"0.47308213",
"0.4708058",
"0.47077462",
"0.46693796",
"0.46272528",
"0.46166807",
"0.46164638",
"0.4603051",
"0.4573908",
"0.4556203",
"0.4542319",
"0.4540404",
"0.452913",
"0.45266864",
"0.45256987",
"0.45037636",
"0.44992086",
"0.4497873",
"0.44948283",
"0.44872728",
"0.44825083",
"0.44802764",
"0.4466848",
"0.4465575",
"0.44513515",
"0.44339868",
"0.44307652",
"0.4416203",
"0.44140515",
"0.44113612",
"0.43977654",
"0.43952373",
"0.4388219",
"0.43858138",
"0.43850765",
"0.43827897",
"0.43815503",
"0.43803093",
"0.43720677",
"0.43689126",
"0.43682",
"0.43607497",
"0.43566582",
"0.435501",
"0.43528575",
"0.43526143",
"0.43404073",
"0.43335932",
"0.43308768",
"0.43268302",
"0.4324811",
"0.43203247",
"0.43173268",
"0.43120858",
"0.43075293",
"0.43035865",
"0.4299958",
"0.42974442",
"0.4293743",
"0.42935118",
"0.4291848",
"0.42895314",
"0.428515",
"0.42848423",
"0.42804137",
"0.42701018",
"0.42692322",
"0.42654273",
"0.42612672",
"0.4250744",
"0.42492294",
"0.42435613",
"0.42434928",
"0.42316735",
"0.42316386",
"0.4227292",
"0.4224663",
"0.42241693",
"0.4223437",
"0.42223296",
"0.42205685",
"0.42195755",
"0.42176574",
"0.42153418",
"0.42148796",
"0.42105818",
"0.4203269",
"0.4198795",
"0.41976383",
"0.41974485",
"0.41943282"
] | 0.68512 | 1 |
Test of viewRawMaterialWithSelectType method, of class PurchaseOrderManagementModule. | @Test
public void testViewRawMaterialWithSelectType2() throws Exception {
System.out.println("viewRawMaterialWithSelectType");
Long factoryId = 1L;
Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);
assertFalse(result.isEmpty());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testViewRawMaterialWithSelectType1() throws Exception {\n System.out.println(\"viewRawMaterialWithSelectType\");\n Long factoryId = 1L;\n Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);\n assertFalse(result.isEmpty());\n }",
"@Override\n public void onClick(View view) {\n\n if (material_type.getSelectedItem().equals(\"--Select Material Type--\")) {\n Toast.makeText(Activity_Sell.this, \"Select Material Type to continue\", Toast.LENGTH_SHORT).show();\n } else {\n\n// LoadMaterialTypeSpinner();\n alertDialog.dismiss();\n getMaterial();\n /* getMaterialClasses();\n getMaterialDetails();\n getMaterialUnits();*/\n\n }\n }",
"public void setMaterial_type(Integer material_type) {\n this.material_type = material_type;\n }",
"public ManageRawMaterials() {\n initComponents();\n \n txtF230IID.setText(wdba.GetIncrementedId(\"rawMaterialId\",\"rawMaterial\",2));\n \n wdba.FillCombo(cmb231IName,\"itemName\",\"rawMaterial\");\n ck = new ComboKeyHandler(cmb231IName);\n \n wdba.ViewAll(tbl201RawMaterials,\"rawMaterial\");\n SetTableHeaders();\n jLabel9.setVisible(false);\n spnnr233IQty1.setVisible(false);\n updateItem.setText(\"Update Item\");\n tbl201RawMaterials.setComponentPopupMenu(pop234Update);\n \n \n cmb231IName.getEditor().getEditorComponent().addKeyListener(new KeyAdapter() {\n public void keyTyped(KeyEvent e){\n ck.keyTyped(e);\n }\n });\n }",
"public Integer getMaterial_type() {\n return material_type;\n }",
"public void setType(Material type) {\n this.type = type;\n }",
"@FXML\n void modifyProductSearchOnAction(ActionEvent event) {\n if (modifyProductSearchField.getText().matches(\"[0-9]+\")) {\n modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n } else {\n modProdAddTable.getSelectionModel().select(Inventory.partName(modifyProductSearchField.getText()));\n }\n //modProdAddTable.getSelectionModel().select(Inventory.partIndex(Integer.valueOf(modifyProductSearchField.getText())));\n }",
"public static void showMaterialsType (String[] materialsName, String[] materialsType, String type, int materialsAmount){\n\t\t\n\t\tArrayList<String> result = Budget.materialsType(materialsName, materialsType, type, materialsAmount);\n\t\t\n\t\tSystem.out.println(\"Materiales de \" + type + \":\");\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t\t\n\t}",
"public String selectByExample(MaterialTypeExample example) {\r\n SQL sql = new SQL();\r\n if (example != null && example.isDistinct()) {\r\n sql.SELECT_DISTINCT(\"id\");\r\n } else {\r\n sql.SELECT(\"id\");\r\n }\r\n sql.SELECT(\"mt_name\");\r\n sql.SELECT(\"remark\");\r\n sql.SELECT(\"mt_order_num\");\r\n sql.FROM(Utils.getDatabase()+\".material_type\");\r\n applyWhere(sql, example, false);\r\n \r\n if (example != null && example.getOrderByClause() != null) {\r\n sql.ORDER_BY(example.getOrderByClause());\r\n }\r\n \r\n return sql.toString();\r\n }",
"@Test\n public void selectChainedView() throws Exception {\n final Properties connectionProps = new Properties();\n connectionProps.setProperty(USER, TestInboundImpersonation.PROXY_NAME);\n connectionProps.setProperty(PASSWORD, TestInboundImpersonation.PROXY_PASSWORD);\n connectionProps.setProperty(IMPERSONATION_TARGET, TestInboundImpersonation.TARGET_NAME);\n BaseTestQuery.updateClient(connectionProps);\n BaseTestQuery.testBuilder().sqlQuery(\"SELECT * FROM %s.u0_lineitem ORDER BY l_orderkey LIMIT 1\", BaseTestImpersonation.getWSSchema(TestInboundImpersonation.OWNER)).ordered().baselineColumns(\"l_orderkey\", \"l_partkey\").baselineValues(1, 1552).go();\n }",
"@Test\n public void cargarComboBoxMateria(){\n ComboBoxRecrea cbRecrea=new ComboBoxRecrea();\n mt=contAgre.AgregarMateria(imagen, puntos, materiaNombre); \n contCons.CargarComboBoxMateria(cbRecrea);\n int cbLimite=cbRecrea.getItemCount();\n for(int i=0;i<cbLimite;i++){\n assertNotSame(\"\",cbRecrea.getItemAt(i));//El nombre que se muestra es distinto de vacio\n assertNotNull(cbRecrea.getItemAt(i));\n }\n String mat= (String)cbRecrea.getItemAt(cbRecrea.getItemCount()-1);\n assertEquals(mat,mt.getNombre());\n \n cbRecrea.setSelectedIndex(cbRecrea.getItemCount()-1);\n Materia materia=(Materia)cbRecrea.GetItemRecrea();\n \n assertEquals(mt.getHijoURL(),materia.getHijoURL());\n assertEquals(mt.getImagenURL(),materia.getImagenURL());\n assertEquals(mt.getNivel(),materia.getNivel());\n assertEquals(mt.getNombre(),materia.getNombre());\n assertEquals(mt.getRepaso(),materia.getRepaso());\n assertEquals(mt.getAsignaturas(),materia.getAsignaturas());\n }",
"public boolean testMaterial(EIfcmaterialconstituent type) throws SdaiException;",
"public Material type()\n\t{\n\t\treturn type;\n\t}",
"@Test\n\t// @Disabled\n\tvoid testViewCustomerbyVehicleType() {\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"tom@gmail.com\");\n\t\tVehicle vehicle1 = new Vehicle(101, \"TN02J0666\", \"car\", \"A/C\", \"prime\", \"goa\", \"13\", 600.0, 8000.0);\n\t\tVehicle vehicle2 = new Vehicle(102, \"TN02J0666\", \"car\", \"A/C\", \"prime\", \"goa\", \"13\", 600.0, 8000.0);\n\t\tList<Vehicle> vehicleList =new ArrayList<>();\n\t\tvehicleList.add(vehicle1);\n\t\tvehicleList.add(vehicle2);\n\t\tcustomer1.setVehicle(vehicleList);\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tMockito.when(custRep.findbyType(\"car\")).thenReturn(customerList);\n\t\tList<Customer> cust3 = custService.findbyType(\"car\");\n\t\tassertEquals(1, cust3.size());\n\t}",
"@Test(timeout = 4000)\n public void test39() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n StandaloneComponent standaloneComponent0 = dynamicSelectModel0.getTopLevelComponent();\n assertNull(standaloneComponent0);\n }",
"public void testEditEObjectFlatComboViewerSampleEobjectflatcomboviewerRequiredPropery() throws Exception {\n\n\t\t// Import the input model\n\t\tinitializeInputModel();\n\n\t\teObjectFlatComboViewerSample = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), eObjectFlatComboViewerSampleMetaClass);\n\t\tif (eObjectFlatComboViewerSample == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\n\t\t// Create the expected model\n\t\tinitializeExpectedModelForEObjectFlatComboViewerSampleEobjectflatcomboviewerRequiredPropery();\n\n\t\t// Open the input model with the treeview editor\n\t\tSWTBotEditor modelEditor = bot.openActiveModel();\n\n\t\t// Open the EEF properties view to edit the EObjectFlatComboViewerSample element\n\t\tEObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), eObjectFlatComboViewerSampleMetaClass);\n\t\tif (firstInstanceOf == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\t\tSWTBotView propertiesView = bot.prepareLiveEditing(modelEditor, firstInstanceOf, null);\n\n\t\t// Change value of the eobjectflatcomboviewerRequiredPropery feature of the EObjectFlatComboViewerSample element \n\t\tbot.editPropertyEObjectFlatComboViewerFeature(propertiesView, EefnrViewsRepository.EObjectFlatComboViewerSample.Properties.eobjectflatcomboviewerRequiredPropery, allInstancesOf.indexOf(referenceValueForEobjectflatcomboviewerRequiredPropery), bot.selectNode(modelEditor, firstInstanceOf));\n\n\t\t// Save the modification\n\t\tbot.finalizeEdition(modelEditor);\n\n\t\t// Compare real model with expected model\n\t\tassertExpectedModelReached(expectedModel);\n\n\t\t// Delete the input model\n\t\tdeleteModels();\n\n\t}",
"@Test\n public void getActionTest(){\n assertEquals(BUY_CARD, card.getActionType());\n }",
"public void selectModelItem(final String type, final String name){\n\t\tactivate();\n\t\tDisplay.syncExec(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n DefaultCTabItem tabItem = new DefaultCTabItem(1);\n\t\t\t\ttabItem.activate();\n\t\t\t\tGraphicalViewer viewer = ((IEditorPart) tabItem.getSWTWidget().getData()).getAdapter(GraphicalViewer.class);\n\t\t\t\tviewer.select(ViewerHandler.getInstance().getEditParts(viewer, new ModelEditorItemMatcher(type, name)).get(0));\n\t\t\t}\n\t\t});\n\t}",
"String getMaterial();",
"@Then(\"^verify system returns only selected columns$\")\r\n\tpublic void verify_system_returns_only_selected_columns() throws Throwable {\r\n\t\tScenarioName.createNode(new GherkinKeyword(\"Then\"),\"verify system returns only selected columns\");\r\n\t\tList<Data> data = respPayload.getData();\r\n\t\t\r\n\t\tAssert.assertTrue(!data.get(0).getManufacturer().isEmpty());\r\n\t\tSystem.out.println(\"1 st Manufacturer \"+ data.get(0).getManufacturer());\r\n\t\t \r\n\t\t\r\n\t}",
"public Material getType() {\n return type;\n }",
"private Material validateAndGetMaterial(String rawMaterial) {\n Material material = Material.getMaterial(rawMaterial);\n\n // Try the official look up\n if (material == null) {\n\n // if that fails, try our custom lookup\n material = Utils.lookupMaterial(rawMaterial);\n\n if (material != null) {\n // if we find a old matching version, replace it with the new version\n Utils.log(\"Outdated Material found \" + rawMaterial + \" found new version \" + material.name(), 1);\n updateOutdatedMaterial(rawMaterial, material.name());\n Utils.log(\"Action has been transferred to use \" + material.name());\n\n } else {\n Utils.log(\"Material \" + rawMaterial + \" in kit \" + name + \" is invalid.\", 2);\n }\n }\n return material;\n }",
"private static void fetchMaterialById() throws MaterialNotFoundException {\r\n\t\t\t\t\t\t\tScanner s = new Scanner(System.in);\r\n\t\t\t\t\t\t\tSystem.out.println(\"Please Enter The Material_id:\");\r\n\t\t\t\t\t\t\tInteger Material_id = Integer.parseInt(s.nextLine());\r\n\r\n\t\t\t\t\t\t\tMaterialService materialService = new MaterialService();\r\n\t\t\t\t\t\t\tMaterialResponseObject obj= materialService.fetchMaterialById(Material_id);\r\n\t\t\t\t\t\t\tMaterialVO vo;\r\n\t\t\t\t\t\t\tvo = obj.getMaterialVO();\r\n\t\t\t\t\t\t\tif (vo != null) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\t\"========================================================================================================================================================\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Material_id\" + '\\t' + \"Material_name\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\t\"=========================================================================================================================================================\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(vo.getMaterial_id() + \"\\t\\t\" + vo.getMaterial_name());\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tSystem.out.println(obj.getFailureMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}",
"public void validateRMAtableinMicroServiceSection(String ActionType) throws InterruptedException {\n\n\t\tString msID = rmaprop.getProperty(\"transactionID\");\n\t\t\n\t\tWebElement MicroServiceName = SeleniumDriver.getDriver()\n\t\t\t\t.findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//h1[@tooltip='Transaction ID:\"+ msID + \"']\"));\n\n\t\tif (\"ADD\".equalsIgnoreCase(ActionType)) {\n\n\t\t\t\n\t\t\t\n\t\t\tif (MicroServiceName.isDisplayed()) {\n\t\t\t\t\n\t\t\t\tif (CommonMethods.iselementcurrentlyvisible(ActiveRMA_icon)) {\n\n\t\t\t\t\tActiveRMA_icon.getText();\n\n\t\t\t\t\tSystem.out.println(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\n\t\t\t\t\tLog.info(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\t\t\t\t}\n\n\t\t\t\tMicroServiceName.click();\n\n\t\t\t\tWebElement RMASubTab = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID+\"') and @class='collapse in']/div/ul/li[a[contains(text(),'RMA')]]\"));\n\n\t\t\t\tboolean RMATabCheck = RMASubTab.isDisplayed();\n\n\t\t\t\tCommonMethods.scrollintoview(RMASubTab);\n\n\t\t\t\tLog.info(\"RMA tab is displayed in the MS section = \" + RMATabCheck);\n\n\t\t\t\tRMASubTab.click();\n\n\t\t\t\tList<WebElement> RMAType_entries_in_table = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElements(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID+\"')]//tr[@ng-repeat='row in microService.rmaList']/td[2]\"));\n\n\t\t\t\tint countRMAType = RMAType_entries_in_table.size();\n\n\t\t\t\tLog.info(\"Total Number of RMA's in the table = \" + countRMAType);\n\n\t\t\t\tint i;\n\t\t\t\tfor (i = 0; i <= countRMAType-1 ; i++) {\n\n\t\t\t\t\tString RMAT = RMAType_entries_in_table.get(i).getText();\n\t\t\t\t\tSystem.out.println(\"RMA Types = \" + i+ \" = \" + RMAT);\n\t\t\t\t\tLog.info(\"RMA Types = \" + i+ \" = \" + RMAT);\n\n\t\t\t\t\tMap<String,String> datamap = new HashMap<String,String>();\n\t\t\t\t\tif (RMAT.equals(rmaprop.getProperty(\"rmaType\"))) {\n\n\t\t\t\t\t\tLog.info(\"RMAType is present in the = \" + RMAType_entries_in_table.get(i).getText());\n\n\t\t\t\t\t\tint j= i+1;\n\t\t\t\t\t\tWebElement rmaID = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID +\"')]//tr[position()=\"+j+\"]/td[1]\"));\n\t\t\t\t\t\tWebElement rmaType = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID +\"')]//tr[position()=\"+j+\"]/td[2]\"));\n\t\t\t\t\t\tWebElement rmaDesc = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[3]\"));\n\t\t\t\t\t\tWebElement rmaSource = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[4]\"));\n\t\t\t\t\t\tWebElement rmaEventDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[5]\"));\n\t\t\t\t\t\tWebElement rmaComments = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[6]\"));\n\t\t\t\t\t\tWebElement rmaCreatedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[7]\"));\n\t\t\t\t\t\tWebElement rmaCreatedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[8]\"));\n\t\t\t\t\t\tWebElement rmaModifiedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[9]\"));\n\t\t\t\t\t\tWebElement rmaModifiedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[10]\"));\n\t\t\t\t\t\tWebElement rmaClearedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[11]\"));\n\t\t\t\t\t\tWebElement rmaClearRMA = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[12]/span[2]\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tdatamap.put(\"RMA ID\", rmaID.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA Type\", rmaType.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA DESCRIPTION\", rmaDesc.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"SOURCE OF RMA\", rmaSource.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA EVENT DATETIME\", rmaEventDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"COMMENTS\", rmaComments.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED BY\", rmaCreatedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED DATE\",rmaCreatedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED BY\",rmaModifiedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED DATE\",rmaModifiedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CLEARED DATE\", rmaClearedDate.getText()) ;\n\t\t\t\t\t//\tdatamap.put(\"CLEAR RMA\",rmaClearRMA.getText()) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\"RMA table details = \"+ datamap);\n\t\t\t\t\t\t\n\t\t\t\t\t\tboolean isDeleteElementCurrentlyEnable = CommonMethods.iselementcurrentlyenable(rmaClearRMA) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\" For ActionType = \" + ActionType + \" ====== \" + \"Is RMA clear icon enabled = \"+ isDeleteElementCurrentlyEnable );\n\t\t\t\t\t\tCommonMethods.captureScreenshot(URLConfigs.SCREENSHOT_PATH+\"\\\\Verified RMA table in request page after \"+ActionType+\" RMA Action\" + \"_\" + SeleniumDriver.timestamp() + \".png\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak ;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} if (\"UPDATE\".equalsIgnoreCase(ActionType)) {\n\n\t\t\tif (MicroServiceName.isDisplayed()) {\n\n\t\t\t\tif (CommonMethods.iselementcurrentlyvisible(ActiveRMA_icon)) {\n\n\t\t\t\t\tActiveRMA_icon.getText();\n\n\t\t\t\t\tSystem.out.println(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\n\t\t\t\t\tLog.info(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\t\t\t\t}\n\n\t\t\t\tMicroServiceName.click();\n\n\t\t\t\tWebElement RMASubTab = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID + \"') and @class='collapse in']/div/ul/li[a[contains(text(),'RMA')]]\"));\n\n\t\t\t\tboolean RMATabCheck = RMASubTab.isDisplayed();\n\n\t\t\t\tCommonMethods.scrollintoview(RMASubTab);\n\n\t\t\t\tLog.info(\"RMA tab is displayed in the MS section = \" + RMATabCheck);\n\t\t\t\t\n\t\t\t\tRMASubTab.click();\n\t\t\t\tList<WebElement> RMAType_entries_in_table = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElements(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID + \"')]//tr[@ng-repeat='row in microService.rmaList']/td[2]\"));\n\n\t\t\t\tint countRMAType = RMAType_entries_in_table.size();\n\n\t\t\t\tLog.info(\"Total Number of RMA's = \" + countRMAType);\n\n\t\t\t\tfor (int i = 0; i < countRMAType - 1; i++) {\n\n\t\t\t\t\tString RMAT = RMAType_entries_in_table.get(i).getText();\n\t\t\t\t\tSystem.out.println(\"RMA Types = \" + RMAT);\n\n\t\t\t\t\tMap<String,String> datamap = new HashMap<String,String>();\n\t\t\t\t\tif (RMAT.equals(rmaprop.getProperty(\"rmaType\"))) {\n\n\t\t\t\t\t\tLog.info(\"RMAType is present in the = \" + RMAType_entries_in_table.get(i).getText());\n\n\t\t\t\t\t\tint j= i+1;\n\t\t\t\t\t\tWebElement rmaID = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID+\"')]//tr[position()=\"+j+\"]/td[1]\"));\n\t\t\t\t\t\tWebElement rmaType = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[2]\"));\n\t\t\t\t\t\tWebElement rmaDesc = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[3]\"));\n\t\t\t\t\t\tWebElement rmaSource = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[4]\"));\n\t\t\t\t\t\tWebElement rmaEventDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[5]\"));\n\t\t\t\t\t\tWebElement rmaComments = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[6]\"));\n\t\t\t\t\t\tWebElement rmaCreatedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID+\"')]//tr[position()=\"+j+\"]/td[7]\"));\n\t\t\t\t\t\tWebElement rmaCreatedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[8]\"));\n\t\t\t\t\t\tWebElement rmaModifiedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[9]\"));\n\t\t\t\t\t\tWebElement rmaModifiedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[10]\"));\n\t\t\t\t\t\tWebElement rmaClearedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[11]\"));\n\t\t\t\t\t\tWebElement rmaClearRMA = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID+\"')]//tr[position()=\"+j+\"]/td[12]/span[2]\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tdatamap.put(\"RMA ID\", rmaID.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA Type\", rmaType.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA DESCRIPTION\", rmaDesc.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"SOURCE OF RMA\", rmaSource.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA EVENT DATETIME\", rmaEventDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"COMMENTS\", rmaComments.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED BY\", rmaCreatedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED DATE\",rmaCreatedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED BY\",rmaModifiedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED DATE\",rmaModifiedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CLEARED DATE\", rmaClearedDate.getText()) ;\n\t\t\t\t\t//\tdatamap.put(\"CLEAR RMA\",rmaClearRMA.getText()) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\"RMA table details = \"+ datamap);\n\n\t\t\t\t\t\t// System.out.println(\"RMAType = \" + RMATypefromRequestPage.get(i).getText());\n\t\t\t\t\t\t\n\t\t\t\t\t\tboolean isDeleteElementCurrentlyEnable = CommonMethods.iselementcurrentlyenable(rmaClearRMA) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\" For ActionType = \" + ActionType + \" ====== \" + \"Is RMA clear icon enabled = \"+ isDeleteElementCurrentlyEnable );\n\n\t\t\t\t\t\tCommonMethods.captureScreenshot(URLConfigs.SCREENSHOT_PATH+\"\\\\Verified RMA table in request page after \"+ActionType+\" RMA Action\" + \"_\" + SeleniumDriver.timestamp() + \".png\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} if (\"DELETE\".equalsIgnoreCase(ActionType)) {\n\n\t\t\tboolean getCurrentVisibilityofActiveRMAIcon = CommonMethods.iselementcurrentlyvisible(MicroServiceName);\n\t\t\tSystem.out.println(\"Is Microservice listed in the table = \" + getCurrentVisibilityofActiveRMAIcon);\n\n\t\t\tif (MicroServiceName.isDisplayed()) {\n\n\t\t\t\tif (CommonMethods.iselementcurrentlyvisible(ActiveRMA_icon)) {\n\n\t\t\t\t\tActiveRMA_icon.getText();\n\n\t\t\t\t\tSystem.out.println(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\n\t\t\t\t\tLog.info(\"Active RMA ICON = \" + ActiveRMA_icon.getText());\n\t\t\t\t}\n\n\t\t\t\tMicroServiceName.click();\n\n\t\t\t\tWebElement RMASubTab = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID + \"') and @class='collapse in']/div/ul/li[a[contains(text(),'RMA')]]\"));\n\n\t\t\t\tboolean RMATabCheck = RMASubTab.isDisplayed();\n\n\t\t\t\tCommonMethods.scrollintoview(RMASubTab);\n\n\t\t\t\tLog.info(\"RMA tab is displayed in the MS section = \" + RMATabCheck);\n\t\t\t\tRMASubTab.click();\n\t\t\t\tList<WebElement> RMAType_entries_in_table = SeleniumDriver.getDriver()\n\t\t\t\t\t\t.findElements(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"\n\t\t\t\t\t\t\t\t+ rmaprop.getProperty(\"transactionID\")\n\t\t\t\t\t\t\t\t+ \"') and @class='collapse in']/div/div//ng-include[@id='reqDetSubTabContentFrame2']//tbody/tr/td[2]\"));\n\n\t\t\t\tint countRMAType = RMAType_entries_in_table.size();\n\n\t\t\t\tLog.info(\"Total Number of RMA's = \" + countRMAType);\n \n\t\t\t\tfor (int i = 0; i <= countRMAType; i++) {\n\n\t\t\t\t\tString RMAT = RMAType_entries_in_table.get(i).getText();\n\t\t\t\t\tSystem.out.println(\"RMA Types = \" + RMAT);\n\n\t\t\t\t\tMap<String,String> datamap = new HashMap<String,String>();\n\t\t\t\t\t\n\t\t\t\t\tif (RMAT.equals(rmaprop.getProperty(\"rmaType\"))) {\n\n\t\t\t\t\t\tLog.info(\"RMAType is present in the = \" + RMAType_entries_in_table.get(i).getText());\n\n\t\t\t\t\t\tint j= i+1;\n\t\t\t\t\t\tWebElement rmaID = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+msID+\"')]//tr[position()=\"+j+\"]/td[1]\"));\n\t\t\t\t\t\tWebElement rmaType = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[2]\"));\n\t\t\t\t\t\tWebElement rmaDesc = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[3]\"));\n\t\t\t\t\t\tWebElement rmaSource = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[4]\"));\n\t\t\t\t\t\tWebElement rmaEventDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[5]\"));\n\t\t\t\t\t\tWebElement rmaComments = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[6]\"));\n\t\t\t\t\t\tWebElement rmaCreatedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID+\"')]//tr[position()=\"+j+\"]/td[7]\"));\n\t\t\t\t\t\tWebElement rmaCreatedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[8]\"));\n\t\t\t\t\t\tWebElement rmaModifiedBy = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[9]\"));\n\t\t\t\t\t\tWebElement rmaModifiedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[10]\"));\n\t\t\t\t\t\tWebElement rmaClearedDate = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID +\"')]//tr[position()=\"+j+\"]/td[11]\"));\n\t\t\t\t\t\tWebElement rmaClearRMA = SeleniumDriver.getDriver().findElement(By.xpath(\".//*[contains(@id,'microServiceList')]//div[contains(@id,'\"+ msID+\"')]//tr[position()=\"+j+\"]/td[12]/span[2]\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tdatamap.put(\"RMA ID\", rmaID.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA Type\", rmaType.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA DESCRIPTION\", rmaDesc.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"SOURCE OF RMA\", rmaSource.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"RMA EVENT DATETIME\", rmaEventDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"COMMENTS\", rmaComments.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED BY\", rmaCreatedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CREATED DATE\",rmaCreatedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED BY\",rmaModifiedBy.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"MODIFIED DATE\",rmaModifiedDate.getText()) ;\n\t\t\t\t\t\tdatamap.put(\"CLEARED DATE\", rmaClearedDate.getText()) ;\n\t\t\t\t\t//\tdatamap.put(\"CLEAR RMA\",rmaClearRMA.getText()) ;\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.info(\"RMA table details = \"+ datamap);\n\n\t\t\t\t\t\n\t\t\t\t\t\tboolean isDeleteElementCurrentlyVisible = CommonMethods.iselementcurrentlyvisible(rmaClearRMA);\n\t\t\t\t\t\tLog.info(\"Is clear RMA icon visible for the deleted RMA entry ? = \"+ isDeleteElementCurrentlyVisible);\n\t\t\t\t\t\n\t\t\t\t\t\tboolean isDeleteElementCurrentlyEnable = CommonMethods.iselementcurrentlyenable(rmaClearRMA) ;\n\t\t\t\t\t\tLog.info(\"Is clear RMA icon enabled for the deleted RMA entry ? = \"+ isDeleteElementCurrentlyEnable);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (isDeleteElementCurrentlyEnable == false && isDeleteElementCurrentlyVisible == false) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tLog.info(\"Delete RMA icon is currently Disabled & not Visible on UI\");\n\t\t\t\t\t\t\tCommonMethods.captureScreenshot(URLConfigs.SCREENSHOT_PATH+\"\\\\Verified RMA table in request page after \"+ActionType+\" RMA Action\" + \"_\" + SeleniumDriver.timestamp() + \".png\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tLog.info(\"isElementCurrentlyEnable = \" + isDeleteElementCurrentlyEnable + \" \"\n\t\t\t\t\t\t\t\t\t+ \"isElementCurrentlyVisible = \" + isDeleteElementCurrentlyVisible);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"public String getSelectQuantity() {\n\t\tactionStartTime = new Date();\n\t\ttry {\n\t\t\tInteger quantityUnit = promotionProgramMgr.getSelectQuantity(groupKMId, levelKMId);\n\t\t\tresult.put(ERROR, false);\n\t\t\tresult.put(\"quantityUnit\", quantityUnit);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.getMaxOrderNumber\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public T caseMaterial(Material object) {\r\n\t\treturn null;\r\n\t}",
"@Test\n public void testAddMaterialEmpty() {\n assertTrue(planned.getMaterials().isEmpty());\n }",
"public void getSelectedPart(Part selectedPart){\n this.part = selectedPart;\n if(selectedPart instanceof InHouse){\n labelPartSource.setText(\"Machine ID\");\n InHouse inHouse = (InHouse)selectedPart;\n ModPartIDField.setText(Integer.toString(inHouse.getId()));\n ModPartNameField.setText(inHouse.getName());\n ModPartInventoryField.setText(Integer.toString(inHouse.getStock()));\n ModPartPriceField.setText(Double.toString(inHouse.getPrice()));\n ModPartMaxField.setText(Integer.toString(inHouse.getMax()));\n ModPartMinField.setText(Integer.toString(inHouse.getMin()));\n partSourceField.setText(Integer.toString(inHouse.getMachineId()));\n inHouseRadBtn.setSelected(true);\n } else if (selectedPart instanceof Outsourced){\n labelPartSource.setText(\"Company Name\");\n Outsourced outsourced = (Outsourced) selectedPart;\n ModPartIDField.setText(Integer.toString(outsourced.getId()));\n ModPartNameField.setText(outsourced.getName());\n ModPartInventoryField.setText(Integer.toString(outsourced.getStock()));\n ModPartPriceField.setText(Double.toString(outsourced.getPrice()));\n ModPartMaxField.setText(Integer.toString(outsourced.getMax()));\n ModPartMinField.setText(Integer.toString(outsourced.getMin()));\n partSourceField.setText(outsourced.getCompanyName());\n OutsourcedRadBtn.setSelected(true);\n }\n }",
"public void re_GiveMaterials() {\n\t\tString buildingType = gc.getBuildingType();\n\t\t// wood, brick, grain, wool, ore\n\t\tString[] materialCodes = {\"h\", \"b\", \"g\", \"w\", \"e\"};\n\t\tint[] materials = new int[AMOUNT_OF_MATERIALS];\n\n\t\tswitch (buildingType) {\n\n\t\tcase VILLAGE_TYPE:\n\t\t\tmaterials = VILLAGE_ARRAY;\n\t\t\tbreak;\n\n\t\tcase CITY_TYPE:\n\t\t\tmaterials = CITY_ARRAY;\n\t\t\tbreak;\n\t\t\t\n\t\tcase STREET_TYPE:\n\t\t\tmaterials = STREET_ARRAY;\n\t\t\tbreak;\n\t\t}\n\t\t// Check if player is not in first round\n\t\tif(!pTM.inFirstRound(gameID)) {\n\t\t\tbbm.returnMaterials(materialCodes, materials);\n\t\t\t\n\t\t\t//Reset build value\n\t\t\tgc.placeBuilding(\"\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\n\t}",
"public void selectAProduct() {\n specificProduct.click();\n }",
"private void startMaterials() {\n Intent intent = new MaterialsSearchActivity.IntentBuilder(item.getMaterails() != null ? item.getMaterails().getId() : 0)\n .build(mContext, new MaterialsSearchActivity.iMaterialsSelectListener() {\n @Override\n public void select(boolean select, MaterialsBean bean) {\n if (select) {\n mItemMaterials.setText(bean.getName());\n item.setMaterails(new MaterialsBean(bean.getId(), bean.getName(), bean.getTime()));\n }\n }\n });\n startActivity(intent);\n }",
"@Test\n public void inventoryViewModelIsParcelable() {\n setUpInventoryViewModel();\n isPackedAndUnpackedAsParcelSuccessfully();\n }",
"@Test\r\n public void testSetMaterial() {\r\n String expResult = \"pruebaMaterial\";\r\n articuloPrueba.setMaterial(expResult);\r\n assertEquals(expResult, articuloPrueba.getMaterial());\r\n }",
"private void RenderCombo()\r\n\t{\r\n\t\tSystem.out.println(\"Setup\");\r\n\t\tList<ProductionOrder> productionOrders = null;\r\n\t\t\t\t\r\n \ttry {\r\n \t\tproductionOrders = this.getProductionOrderService().findProductionOrders(); \r\n \t\tif(productionOrders==null)\r\n \t\t\tSystem.out.println(\"productoinOrders is null\");\r\n\t \t_productionOrderSelect = null;\r\n\t \t_productionOrderSelect = new GenericSelectModel<ProductionOrder>(productionOrders,ProductionOrder.class,\"FormattedDocNo\",\"id\",_access);\r\n\t \tif(_productionOrderSelect==null){\r\n\t \t\tSystem.out.println(\"Setuprender productionOrderselect is null\");\r\n\t \t}\r\n \t}\r\n \tcatch(Exception e)\r\n \t{\r\n \t\t\r\n \t}\r\n \tfinally {\r\n \t\t\r\n \t}\r\n\t}",
"@Test\r\n public void testGetMaterial() {\r\n String expResult = \"Materialprueba\";\r\n articuloPrueba.setMaterial(expResult);\r\n String result = articuloPrueba.getMaterial();\r\n assertEquals(expResult, result);\r\n }",
"@Override\r\n\tpublic void adminSelectRead() {\n\t\t\r\n\t}",
"ExpMaterial getExpMaterial(Container c, User u, int rowId, @Nullable ExpSampleType sampleType);",
"@Test\n public void findSample_whenNoFieldsAreSelected_sampleReturnedWithAllFields() {\n MolecularSampleDto molecularSampleDto = molecularSampleRepository.findOne(\n testMolecularSample.getUuid(),\n new QuerySpec(MolecularSampleDto.class)\n );\n \n assertNotNull(molecularSampleDto);\n assertEquals(testMolecularSample.getUuid(), molecularSampleDto.getUuid());\n assertEquals(TEST_MOLECULAR_SAMPLE_NAME, molecularSampleDto.getName());\n assertEquals(TEST_MATERIAL_SAMPLE_UUID.toString(), molecularSampleDto.getMaterialSample().getId());\n assertEquals(TEST_MOLECULAR_SAMPLE_SAMPLE_TYPE, molecularSampleDto.getSampleType());\n }",
"private void bomSelected(int selectedRow){\n \tbomDet=new inventorycontroller.function.BillOfMaterialProcessor(dbInterface1)\n \t .getBomDescForPoMaster(jTable1.getModel().getValueAt(selectedRow, 3).toString());\n \t\n \tadjustAddedQty(); //* adjusts the item qty. which are already added.\n \t\n \tjTable2.setModel(new javax.swing.table.DefaultTableModel(\n bomDet,\n new String [] {\n \"Select\", \"Material\", \"Reqd. Quantity\", \"Purchase Requirement\", \"Remark\"\n }\n ) {\n Class[] types = new Class [] {\n \tjava.lang.Boolean.class, \n \tjava.lang.String.class, \n java.lang.Long.class, \n java.lang.Long.class,\n java.lang.String.class\n };\n \n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return columnIndex==0 ? true : false ;\n }\n });\n }",
"public static void ViewNewBagType()\r\n{\r\n\r\n\r\n\tselectBagType(RandomString);\r\n\tSystem.out.println(\"BagTypeName Viewed Successfully\");\r\n\t\r\n}",
"@Test\n public void selectsItemWithWidthAndHeightWithinSelectionArea() {\n Place place = mock(Place.class);\n when(place.getX()).thenReturn(0);\n when(place.getY()).thenReturn(0);\n when(place.getWidth()).thenReturn(10);\n when(place.getHeight()).thenReturn(10);\n\n net.addPlace(place);\n\n Rectangle selectionRectangle = new Rectangle(5, 5, 40, 40);\n controller.select(selectionRectangle);\n\n assertTrue(controller.isSelected(place));\n }",
"@Test\n @SuppressWarnings(\"unchecked\")\n public void f15DisplayRawDataTest() {\n clickOn(\"#thumbnailTab\").sleep(1000);\n FlowPane root = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n\n //Go to the 2nd asset\n clickOn(root.getChildren().get(1)).sleep(2000);\n clickOn(\"#rawDataTab\").sleep(1000);\n\n moveBy(90, 200).sleep(1000);\n TableView<ObservableList<String>> table = (TableView<ObservableList<String>>) scene.getRoot().lookup(\"#RawDataTable\");\n\n table.scrollToColumnIndex(15); //scroll to show the end columns\n sleep(3000).clickOn(\"#backBtn\").sleep(1000);\n\n assertTrue(\"There is a raw data table for the selected asset.\", table.getItems().size() > 0);\n }",
"@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }",
"public void clickViewCart(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- ViewCart button should be clicked\");\r\n\t\ttry{\r\n\t\t\twaitForPageToLoad(25);\r\n\t\t\twaitForElement(locator_split(\"BybtnSkuViewCart\"));\r\n\t\t\tclick(locator_split(\"BybtnSkuViewCart\"));\r\n\t\t\twaitForPageToLoad(25);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- ViewCart button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- ViewCart button is not clicked \"+elementProperties.getProperty(\"BybtnSkuViewCart\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"BybtnSkuViewCart\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t} \r\n\t}",
"@Test\n public void transformMenu() {\n onView(withId(R.id.transform_button))\n .perform(click());\n\n //Make sure fragment is loaded\n onView(withText(\"Stack Blur\"))\n .check(matches(isDisplayed()));\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyMuMvManageView() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether user is able to create a new view successfully and it gets reflected in the list\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\t \t\t\t\t\t \t \t\t\t\t \t \t\t\n\t\t.Addviewname(userProfile)\n\t\t.verifyLeadTabledata_AddnewViewAudit(userProfile)\n\t\t.AddnewUserslink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\t\t\t\t\t\t \t \t\t\n\t\t.verifynewview(userProfile)\n\t\t.VerifyenterValidData_StandardUserdetails(userProfile);\n\t\tnew BgbRegistrationAction()\n\t\t.AddNewStdUserdata(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.verifyAuditTable(userProfile);\t\t\t\t \t \t\t\n\n\t}",
"@FXML\r\n public void onActionToModifyProductScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n\r\n //Get product information from the Product Controller in order to populate the modify screen text fields\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyProduct.fxml\"));\r\n loader.load();\r\n\r\n ProductController proController = loader.getController();\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n proController.sendProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }",
"@GET(\"user-product-materials-content\")\n Call<MaterialsResponse> getMaterials();",
"@Override\n\tpublic String getMaterial() {\n\t\treturn null;\n\t}",
"public String getMaterial () {\r\n return getItemStack().getTypeId()+ \":\" + getItemStack().getDurability(); \r\n\t}",
"public abstract String getSelectedPhoneType3();",
"public void testEditEObjectFlatComboViewerSampleEobjectflatcomboviewerOptionalPropery() throws Exception {\n\n\t\t// Import the input model\n\t\tinitializeInputModel();\n\n\t\teObjectFlatComboViewerSample = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), eObjectFlatComboViewerSampleMetaClass);\n\t\tif (eObjectFlatComboViewerSample == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\n\t\t// Create the expected model\n\t\tinitializeExpectedModelForEObjectFlatComboViewerSampleEobjectflatcomboviewerOptionalPropery();\n\n\t\t// Open the input model with the treeview editor\n\t\tSWTBotEditor modelEditor = bot.openActiveModel();\n\n\t\t// Open the EEF properties view to edit the EObjectFlatComboViewerSample element\n\t\tEObject firstInstanceOf = EEFTestsModelsUtils.getFirstInstanceOf(bot.getActiveResource(), eObjectFlatComboViewerSampleMetaClass);\n\t\tif (firstInstanceOf == null)\n\t\t\tthrow new InputModelInvalidException(eObjectFlatComboViewerSampleMetaClass.getName());\n\t\tSWTBotView propertiesView = bot.prepareLiveEditing(modelEditor, firstInstanceOf, null);\n\n\t\t// Change value of the eobjectflatcomboviewerOptionalPropery feature of the EObjectFlatComboViewerSample element \n\t\tbot.editPropertyEObjectFlatComboViewerFeature(propertiesView, EefnrViewsRepository.EObjectFlatComboViewerSample.Properties.eobjectflatcomboviewerOptionalPropery, allInstancesOf.indexOf(referenceValueForEobjectflatcomboviewerOptionalPropery)+1, bot.selectNode(modelEditor, firstInstanceOf));\n\n\t\t// Save the modification\n\t\tbot.finalizeEdition(modelEditor);\n\n\t\t// Compare real model with expected model\n\t\tassertExpectedModelReached(expectedModel);\n\n\t\t// Delete the input model\n\t\tdeleteModels();\n\n\t}",
"@Transactional\r\n\tpublic void edit(TypeMaterial typematerial) {\n\t\ttypematerialdao.edit(typematerial);\r\n\t}",
"public void openTableMenu(){\n Table table = tableView.getSelectionModel().getSelectedItem();\n try{\n\n if (table != null) {\n OrderScreen controller = new OrderScreen(server,table,restaurant);\n if (!table.getIsOccupied()){\n controller.addOptionsToComboBox(table);}\n if(table.getTableSize() != 0){\n vBox.getChildren().setAll(controller);\n }\n }\n\n\n } catch (NullPointerException e){\n e.printStackTrace();\n }\n\n\n }",
"public static ModelAndView buildStaticProductDialoues(HttpServletRequest request, \r\n\t\t\tMap<String, String>requestParamMap, OrderQualVO orderQualVO, ModelAndView mav) throws Exception{\r\n\r\n\t\tStaticCKOVO stCkVO = new StaticCKOVO();\r\n\r\n\t\tList<String> errorStringList = new ArrayList<String>();\r\n\r\n\t\tList<String> errorLog = null;\r\n\r\n\t\tString jsonString = \"\";\r\n\t\tString providerExternalID = \"\";\r\n\r\n\t\t/*\r\n\t\t * checking whether the order is already present in the cache, if present, we return the order\r\n\t\t * if not present, we do a get order call\r\n\t\t */\r\n\t\tOrderType order = OrderUtil.INSTANCE.returnOrderType(orderQualVO.getOrderId());\r\n\r\n\t\t/*\r\n\t\t * checking whether the product info is already present in the cache\r\n\t\t * and returning if present or making a getProductDetails if not present \r\n\t\t */\r\n\t\tProductInfoType productInfo = ProductServiceUI.INSTANCE.getProduct(orderQualVO.getProductExternalId(),orderQualVO.getGUID(), orderQualVO.getProviderExternalId());\r\n\r\n\t\t/*\r\n\t\t * getting lineItemExternalID and providerExternalID from the orderQualVo Object\r\n\t\t */\r\n\t\tlong lineItemExternalID = orderQualVO.getLineItemExternalId();\r\n\t\tif(orderQualVO.getProviderExternalId() != null){\r\n\t\t\tproviderExternalID = orderQualVO.getProviderExternalId();\r\n\t\t}else{\r\n\t\t\tproviderExternalID = OrderUtil.INSTANCE.getProviderExternalId(order, lineItemExternalID);\r\n\t\t}\r\n\r\n\t\tString selectedValues = requestParamMap.get(\"extIDSelectedValues\");\r\n\r\n\t\t/*\r\n\t\t * getting selected and unselected promotions from the product cutomization page\r\n\t\t */\r\n\t\tString unSelectedPromotions = requestParamMap.get(\"unSelectedPromotions\");\r\n\r\n\t\t/*\r\n\t\t * converting the list of features to features map\r\n\t\t */\r\n\t\tList<FeatureType> features = productInfo.getProductDetails().getFeature(); \r\n\r\n\t\tMap<String, FeatureType> availableFeatureMap = buildAvailableFeatureMap(features);\r\n\r\n\t\tlogger.info(\"Available Feature Map --> \"+availableFeatureMap);\r\n\r\n\t\t/*\r\n\t\t * converting the list of featureGroups to featureGroup map\r\n\t\t */\r\n\t\tList<FeatureGroupType> featureGroupList= productInfo.getProductDetails().getFeatureGroup();\r\n\t\tMap<String, FeatureGroupType> availableFeatureGroupMap = new HashMap<String, FeatureGroupType>();\r\n\t\tif(!Utils.isEmpty(featureGroupList)){\r\n\t\t\tavailableFeatureGroupMap = buildAvailableFeatureGroupMap(featureGroupList);\r\n\t\t}\r\n\t\tlogger.info(\"Available Feature Group Map --> \"+availableFeatureGroupMap);\r\n\r\n\r\n\t\t/*\r\n\t\t * getting all the features and feature groups that are present in the dialogues \r\n\t\t */\r\n\t\tMap<String, FeatureType> dialogueFeatureMap = orderQualVO.getDialogueFeatureMap();\r\n\r\n\t\tMap<String, FeatureGroupType> dialogueFeatureGroupMap = orderQualVO.getDialogueFeatureGroup();\r\n\r\n\t\tlogger.info(\"Order ID ::::: \"+orderQualVO.getOrderId());\r\n\r\n\t\t/*\r\n\t\t * getting the features and feature groups that are entered during the previous CKO\r\n\t\t */\r\n\t\tList<String> viewDetailsFeaturesList = orderQualVO.getViewDetailsSelFeatureList();\r\n\r\n\t\tList<FeatureGroup> viewDetailsFeatureGroupList = orderQualVO.getViewDetailsSelFeatureGroupList();\r\n\r\n\t\tlogger.info(\"before prepopulate values \");\r\n\r\n\t\t/*\r\n\t\t * defaulting the customer related data if the data is entered during the previous CKO\r\n\t\t */\r\n\t\tMap<String, String> preSelectedMap = PrepopulateDialogue.INSTANCE.buildPreSelectedValues(order);\r\n\t\tlogger.info(\"after prepopulate values \");\r\n\r\n\t\tLineItemType item = null;\r\n\t\tMap<String, Long> promoLineItemMap = new HashMap<String, Long>(); \r\n\r\n\t\t/*\r\n\t\t * retrieving all lineItems that are present on the order\r\n\t\t */\r\n\t\tif(order.getLineItems() != null){\r\n\t\t\tint lineItemNumber = 0;\r\n\t\t\t/*\r\n\t\t\t * iterating over all the lineItems to get current lineItem and Promotions that are present on \r\n\t\t\t * the order and that are not in cancelled removed status\r\n\t\t\t */\r\n\t\t\tfor(LineItemType lineItemTypes : order.getLineItems().getLineItem()){\r\n\t\t\t\tif(lineItemTypes.getExternalId() == orderQualVO.getLineItemExternalId()){\r\n\t\t\t\t\titem = lineItemTypes;\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * getting the lineItemNumber of the current lineItem\r\n\t\t\t\t\t */\r\n\t\t\t\t\tlineItemNumber = lineItemTypes.getLineItemNumber();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * checking whether the lineItemDetail Type is of productPromotion and lineItemStatus not cancelled_removed\r\n\t\t\t\t */\r\n\t\t\t\tif(lineItemTypes.getLineItemDetail().getDetailType().equals(\"productPromotion\") && \r\n\t\t\t\t\t\t!lineItemTypes.getLineItemStatus().getStatusCode().value().equalsIgnoreCase(\"CANCELLED_REMOVED\")){\r\n\t\t\t\t\tOrderLineItemDetailTypeType detailType = lineItemTypes.getLineItemDetail().getDetail();\r\n\t\t\t\t\tboolean appliesToSameLine = false;\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * appliesTo is a field that is present on every promotion and \r\n\t\t\t\t\t * this is same as the lineItem that the current promotion is acting\r\n\t\t\t\t\t */\r\n\t\t\t\t\t// appliesTO same as lineItemNumber, it belongs to same lineItem\r\n\t\t\t\t\tif(lineItemNumber == lineItemTypes.getLineItemDetail().getDetail().getPromotionLineItem().getAppliesTo().get(0)){\r\n\t\t\t\t\t\tappliesToSameLine = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * adding only those promotions that are applied to current lineItem only\r\n\t\t\t\t\t * (i.e, the appliesTo of promotion is same as current LineItem lineItemNumber)\r\n\t\t\t\t\t */\r\n\t\t\t\t\t//if promo appliesTo current lineItem, put it in map\r\n\t\t\t\t\tif(appliesToSameLine){\r\n\t\t\t\t\t\tString lineItemPromoExternalID = detailType.getPromotionLineItem().getPromotion().getExternalId();\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * this Map is used as a reference for adding or deleting the promotions that are \r\n\t\t\t\t\t\t * added or removed during the product customization page\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tpromoLineItemMap.put(lineItemPromoExternalID, lineItemTypes.getExternalId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlogger.info(\"completed retrieving line item and promotions that are present on the order\");\r\n\r\n\t\tString businessPartyName = null;\t\t\r\n\t\tString hybrisAttributes = \"\";\r\n\t\tString productCategory = null;\r\n\t\t/*\r\n\t\t * retrieving all the checkboxes and dropDowns selected during the product customization phase these values are\r\n\t\t * used to default those checkboxes and select boxes when back button is pressed during the customer Qualification phase\r\n\t\t */\r\n\t\tString selectedFeatureCheck = requestParamMap.get(\"featureCheckboxFields\");\r\n\t\tString selectedFeatureSelect = requestParamMap.get(\"featureSelectBoxFields\");\r\n\t\tmav.addObject(\"selectedCheckbox\", selectedFeatureCheck);\r\n\t\tmav.addObject(\"selectedDropDown\", selectedFeatureSelect);\r\n\r\n\t\taddPromotionToLineItem(item, promoLineItemMap, unSelectedPromotions, orderQualVO, request);\r\n\r\n\t\t/*\r\n\t\t * adding all the selected features and featureGroups to LineItem, this line Item is updated along with \r\n\t\t * these features, active dialogues etc, finally while updating lineItem status\r\n\t\t */\r\n\r\n\t\tmav.addObject(\"firstTimeDialogue\", \"firstTimeDialogue\");\r\n\t\tlogger.info(\"after adding features to line item\");\r\n\r\n\t\tif(productInfo.getProduct() != null && productInfo.getProduct().getProvider() != null && productInfo.getProduct().getProvider().getName() != null){\r\n\t\t\tbusinessPartyName = productInfo.getProduct().getProvider().getName();\r\n\t\t}\r\n\t\tif(item.getLineItemAttributes() != null && item.getLineItemAttributes().getEntity() != null){\r\n\t\t\tfor(AttributeEntityType entityType : item.getLineItemAttributes().getEntity()){\r\n\t\t\t\tif (Utils.isBlank(businessPartyName) && entityType.getSource().equals(\"PROVIDER_NAME\")) {\r\n\t\t\t\t\tbusinessPartyName = entityType.getAttribute().get(0).getValue();\r\n\t\t\t\t}\r\n\t\t\t\tif (request.getSession().getAttribute(\"hybrisAttributes\") != null) {\r\n\t\t\t\t\thybrisAttributes = (String) request.getSession().getAttribute(\"hybrisAttributes\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (entityType.getSource().equals(\"HYBRIS_ATTRIBUTES\")) {\r\n\t\t\t\t\t\thybrisAttributes = entityType.getAttribute().get(0).getValue();\r\n\t\t\t\t\t\tlogger.info(\"hybrisAttributes=\" + hybrisAttributes);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (entityType.getSource().equals(\"PRODUCT_CATEGORY\")) {\r\n\t\t\t\t\tproductCategory = entityType.getAttribute().get(0).getValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.info(\"productCategory=\"+productCategory);\r\n\t\tString hybrisUrl = \"\";\r\n\t\tString hybrisUsaaId = \"\";\r\n\t\tString hybrisProgramName = \"\";\r\n\t\tString agentExtId = \"\";\r\n\t\tString atgAffiliateId = \"\";\r\n\t\tString atgPhoneNumber = \"\";\r\n\t\tString hybrisCategoryName = (String) request.getSession().getAttribute(\"hybrisCategoryName\");\r\n\t\tif (!Utils.isBlank(hybrisAttributes)) {\r\n\t\t\tString[] result = hybrisAttributes.split(\"\\\\|\");\r\n\t\t\thybrisUrl = (!Utils.isBlank(result[0]) ? result[0] : \"\");\r\n\t\t\tif(hybrisAttributes.contains(Constants.CHARTER)|| hybrisAttributes.contains(Constants.SPECTRUM)){\r\n\t\t\t\tatgAffiliateId = (!Utils.isBlank(result[1]) ? result[1] : \"\");\r\n\t\t\t\tatgPhoneNumber = (!Utils.isBlank(result[2]) ? result[2] : \"\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\thybrisUsaaId = (!Utils.isBlank(result[1]) ? result[1] : \"\");\r\n\t\t\t\thybrisProgramName = (!Utils.isBlank(result[2]) ? result[2] : \"\");\r\n\t\t\t\tagentExtId = (!Utils.isBlank(result[3]) ? result[3] : \"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString htmlHybrisUrl = \"\";\r\n\t\tif(!Utils.isBlank(hybrisUrl)) {\r\n\t\t\tlogger.info(\"Building hybrisUrl Params for \" + hybrisUrl);\r\n\t\t\tif(!Utils.isBlank(hybrisAttributes) && (hybrisAttributes.contains(Constants.CHARTER) || hybrisAttributes.contains(Constants.SPECTRUM))){\r\n\t\t\t\thtmlHybrisUrl = hybrisUrl + \"?v=\"+atgAffiliateId;\r\n\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&affpn=\" + atgPhoneNumber;\r\n\t\t\t\tif (order != null) {\r\n\t\t\t\t\tif (order.getCustomerInformation() != null) {\r\n\t\t\t\t\t\tif (order.getCustomerInformation().getCustomer() != null) {\r\n\t\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getBestPhoneContact())) {\r\n\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&phone=\" + order.getCustomerInformation().getCustomer().getBestPhoneContact().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getFirstName())) {\r\n\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&fname=\" + order.getCustomerInformation().getCustomer().getFirstName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getLastName())) {\r\n\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&lname=\" + order.getCustomerInformation().getCustomer().getLastName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getBestEmailContact())) {\r\n\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&email=\" + order.getCustomerInformation().getCustomer().getBestEmailContact().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t\t//if (!Utils.isBlank(order.getCustomerInformation().getCustomer().getAgentId())) {\r\n\t\t\t\t\t\t\t//\thtmlHybrisUrl = htmlHybrisUrl + \"&agentIdentifier=\" + order.getCustomerInformation().getCustomer().getAgentId() + \"_\" + agentExtId;\r\n\t\t\t\t\t\t\t//}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (order.getMoveDate() != null) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&moving=\" + \"yes\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&moving=\" + \"false\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (order.getCustomerInformation().getCustomer().getAddressList() != null) {\r\n\t\t\t\t\t\t\tList<CustAddress> hybrisAddressList = order.getCustomerInformation().getCustomer().getAddressList().getCustomerAddress();\r\n\t\t\t\t\t\t\tfor(CustAddress custAddr : hybrisAddressList){\r\n\t\t\t\t\t\t\t\tfor(RoleType role : custAddr.getAddressRoles().getRole()){\r\n\t\t\t\t\t\t\t\t\tif(role.value().equals(\"ServiceAddress\")){\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStreetNumber()) && !Utils.isBlank(custAddr.getAddress().getStreetName())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&a=\" + custAddr.getAddress().getStreetNumber();\r\n\t\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPrefixDirectional())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getPrefixDirectional();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getStreetName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStreetType())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getStreetType();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPostfixDirectional())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getPostfixDirectional();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPostalCode())) {\r\n\t\t\t\t\t\t\t\t\t\t\tif(custAddr.getAddress().getPostalCode().contains(\"-\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&z=\" + custAddr.getAddress().getPostalCode().split(\"-\")[0];\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&z=\" + custAddr.getAddress().getPostalCode();\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getLine2())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&u=\" + custAddr.getAddress().getLine2().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getCity())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrCity=\" + custAddr.getAddress().getCity().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStateOrProvince())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrState=\" + custAddr.getAddress().getStateOrProvince().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\tif (!Utils.isBlank(hybrisCategoryName)) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&offerType=\" + request.getSession().getAttribute(\"hybrisCategoryName\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(productCategory) && (productCategory.contains(\"VIDEO\")||productCategory.contains(\"TRIPLE\"))) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&tvServiceFlag=\" + \"true\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&tvServiceFlag=\" + \"false\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(productCategory) && (productCategory.contains(\"PHONE\")||productCategory.contains(\"TRIPLE\"))) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&voiceServiceFlag=\" + \"true\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&voiceServiceFlag=\" + \"false\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(productCategory) && (productCategory.contains(\"INTERNET\")||productCategory.contains(\"TRIPLE\"))) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&dataServiceFlag=\" + \"true\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&dataServiceFlag=\" + \"false\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&TransID=\" + String.valueOf(order.getExternalId()); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\thtmlHybrisUrl = hybrisUrl + \"?invalidateSession=true\";\r\n\t\t\tif (order != null) {\r\n\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&concertId=\" + order.getExternalId();\r\n\t\t\t\tif (order.getCustomerInformation() != null) {\r\n\t\t\t\t\tif (order.getCustomerInformation().getCustomer() != null) {\r\n\t\t\t\t\t\tif (order.getCustomerInformation().getCustomer().getReferrerId() > 0L) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&referrerId=\" + order.getCustomerInformation().getCustomer().getReferrerId();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getBestPhoneContact())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&customerPhoneNumber=\" + order.getCustomerInformation().getCustomer().getBestPhoneContact().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getFirstName())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&firstName=\" + order.getCustomerInformation().getCustomer().getFirstName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getLastName())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&lastName=\" + order.getCustomerInformation().getCustomer().getLastName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getBestEmailContact())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&email=\" + order.getCustomerInformation().getCustomer().getBestEmailContact().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\tif (!Utils.isBlank(order.getCustomerInformation().getCustomer().getAgentId())) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&agentIdentifier=\" + order.getCustomerInformation().getCustomer().getAgentId() + \"_\" + agentExtId;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\tif (order.getCustomerInformation().getCustomer().getAddressList() != null) {\r\n\t\t\t\t\t\tList<CustAddress> hybrisAddressList = order.getCustomerInformation().getCustomer().getAddressList().getCustomerAddress();\r\n\t\t\t\t\t\tfor(CustAddress custAddr : hybrisAddressList){\r\n\t\t\t\t\t\t\tfor(RoleType role : custAddr.getAddressRoles().getRole()){\r\n\t\t\t\t\t\t\t\tif(role.value().equals(\"ServiceAddress\")){\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStreetNumber()) && !Utils.isBlank(custAddr.getAddress().getStreetName())) {\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrStreet=\" + custAddr.getAddress().getStreetNumber();\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPrefixDirectional())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getPrefixDirectional();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getStreetName().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStreetType())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getStreetType();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPostfixDirectional())) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"%20\" + custAddr.getAddress().getPostfixDirectional();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getPostalCode())) {\r\n\t\t\t\t\t\t\t\t\t\tif(custAddr.getAddress().getPostalCode().contains(\"-\")) {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrZip5=\" + custAddr.getAddress().getPostalCode().split(\"-\")[0];\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrZip5=\" + custAddr.getAddress().getPostalCode();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getLine2())) {\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrApt=\" + custAddr.getAddress().getLine2().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getCity())) {\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrCity=\" + custAddr.getAddress().getCity().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (!Utils.isBlank(custAddr.getAddress().getStateOrProvince())) {\r\n\t\t\t\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&addrState=\" + custAddr.getAddress().getStateOrProvince().replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item != null) {\r\n\t\t\t\t\t\tif (item.getExternalId() > 0L) {\r\n\t\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&concertLineItemID=\" + item.getExternalId();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!Utils.isBlank(hybrisCategoryName)) {\r\n\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&redirectCategoryName=\" + request.getSession().getAttribute(\"hybrisCategoryName\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!Utils.isBlank(hybrisUsaaId) && !hybrisUsaaId.equalsIgnoreCase(\"none\")) {\r\n\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&memberId=\" + hybrisUsaaId.replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!Utils.isBlank(hybrisProgramName) && !hybrisProgramName.equalsIgnoreCase(\"none\")) {\r\n\t\t\t\t\t\thtmlHybrisUrl = htmlHybrisUrl + \"&programName=\" + hybrisProgramName.replaceAll(\" \", \"%20\");\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\tlogger.info(\"Completed Building hybrisUrl Params =\" + htmlHybrisUrl);\r\n\t\t\tstCkVO.setValueByName(\"hybrisUrl\", htmlHybrisUrl);\r\n\t\t\tstCkVO.setValueByName(\"referrer.program.url\", hybrisUrl);\r\n\t\t} else {\r\n\t\t\tlogger.info(\"Completed Building hybrisUrl Params not completed\");\r\n\t\t\tstCkVO.setValueByName(\"referrer.program.url\", \"No URL for ordersource\");\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\t/*\r\n\t\t * setting lineItem to orderQualVO Object, this lineItem is used to get all the \r\n\t\t * features that are selected during product customization\r\n\t\t */\r\n\r\n\t\t//orderQualVO.setNewLineItemType(LineItemBuilder.INSTANCE.getLineItemBySelectedFeatures(requestParamMap, availableFeatureMap, availableFeatureGroupMap, orderQualVO.getNewLineItemType(), null));\r\n\r\n\t\tLineItemSelectionsType lineItemSelections = orderQualVO.getLineItemSelections();\r\n\r\n\t\tif((lineItemSelections == null) || (lineItemSelections.getSelection().size() == 0)) {\r\n\t\t\tlineItemSelections = LineItemSelectionBuilder.getLineItemSelections(requestParamMap, productInfo.getProductDetails().getCustomization());\r\n\t\t\torderQualVO.setLineItemSelections(lineItemSelections);\r\n\t\t}\r\n\r\n\t\tList<String> allDataFieldList = new ArrayList<String>();\r\n\r\n\t\t/*\r\n\t\t * checks whether the provisioning response is already present in the cache service, if it is present, then the response is returned\r\n\t\t * if the response is not present, then a provisioning call is made to retrieves all the dialogue related data\r\n\t\t */\r\n\t\tDialogueVO dialogueVO = DialogServiceUI.INSTANCE.getDialoguesByProductId(productInfo, orderQualVO.isAsisPlan(), orderQualVO);\r\n\r\n\t\tStringBuilder events = new StringBuilder();\r\n\r\n\t\tList<DataField> dataFields = new ArrayList<DataField>();\r\n\t\tList<DataGroup> dataGroupList = new ArrayList<DataGroup>();\r\n\r\n\t\t/*\r\n\t\t *\titerate over dialogueNamesList(List<Dialogue>) and create a list of DataGroups, dataFields, these lists are used to build dialogues display\r\n\t\t */\r\n\t\tfor (Dialogue dialogue : dialogueVO.getDialogueNameList()) {\r\n\r\n\t\t\tString externalId = dialogue.getExternalId();\r\n\t\t\tdataGroupList.addAll(dialogue.getDataGroupList());\r\n\t\t\tMap<String, List<DataField>> dataFieldMap = dialogueVO.getDataFieldMap().get(externalId);\r\n\r\n\t\t\tfor(Map.Entry<String, List<DataField>> fieldEntry : dataFieldMap.entrySet()) {\r\n\t\t\t\tdataFields.addAll(fieldEntry.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.info(\"DF External ID ::::: \"+dataFields);\r\n\t\tlogger.info(\"setting all values into orderqualVO object\");\r\n\r\n\t\torderQualVO.setAvailableDataField(dataFields);\r\n\r\n\t\torderQualVO.setAvailFeatureMap(availableFeatureMap);\r\n\r\n\t\torderQualVO.setAvailableFeatureGroup(availableFeatureGroupMap);\r\n\r\n\t\tList<DataFieldMatrix> dataFieldMatrixs = new ArrayList<DataFieldMatrix>();\r\n\r\n\t\t/*\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t\t\tStart Of logic to build enableDependencyMap and disableDependencyMap, these maps are used to hide and display \r\n\t\t\t\telements which are depended on the selected element\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\r\n\t\t/*\r\n\t\t * enable dependency map contains all the elements that are to be shown when an element is selected\r\n\t\t */\r\n\t\tMap<String, Map<String, List<String>>> enableDependencies = new HashMap<String, Map<String, List<String>>> (); \r\n\r\n\t\tenableDependencies.putAll(DialogueUtil.buildDataFieldMatrices(dataGroupList, availableFeatureGroupMap));\r\n\r\n\t\t/*\r\n\t\t * disable dependency map contains all the elements that are to be hidden when an element is selected\r\n\t\t */\r\n\t\tMap<String, Map<String, List<String>>> disableDependencies = new HashMap<String, Map<String, List<String>>>();\r\n\t\tdisableDependencies.putAll(DialogueUtil.getDisableDialogueDependencies(dataGroupList, enableDependencies, availableFeatureMap, availableFeatureGroupMap));\r\n\r\n\t\t/*\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t\t\t\t\t\t\tEnd Of logic to build enableDependencyMap and disableDependencyMap\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\tlogger.info(\"adding all dependency elements to data field matrix map\");\r\n\t\tfor (Dialogue dialogue : dialogueVO.getDialogueNameList()) {\r\n\t\t\tString externalId = dialogue.getExternalId();\r\n\t\t\tMap<String, List<DataFieldMatrix>> dataFieldMatrix = dialogueVO.getDataFieldMatrixMap().get(externalId);\r\n\t\t\tfor(Map.Entry<String, List<DataFieldMatrix>> fieldEntry : dataFieldMatrix.entrySet()) {\r\n\t\t\t\tdataFieldMatrixs.addAll(fieldEntry.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.info(\"after setting all the values to data field matrix map\");\r\n\t\tList<String> replayAllEnabledValuesList = new ArrayList<String>();\r\n\r\n\t\t/*\r\n\t\t */\r\n\t\tif(selectedValues != null && selectedValues.length() > 0){\r\n\t\t\tString[] selectedValuesArray = selectedValues.split(\",\");\r\n\t\t\tfor(String selectVal : selectedValuesArray){\r\n\t\t\t\treplayAllEnabledValuesList.addAll(OrderUtil.INSTANCE.generateReplayChildvalues(enableDependencies, selectVal));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\torderQualVO.setEnableDependencyMap(enableDependencies);\t\r\n\r\n\t\t/*\r\n\t\t * creating a List<String> allDataList by adding all the externalID's that are present in this provisioning call\r\n\t\t * this list is used to check all the dataFields when we are displaying the dependent fields in js \r\n\t\t */\r\n\t\tfor(Entry<String, Map<String, List<String>>> enableDependenciesEntry : enableDependencies.entrySet()){\r\n\t\t\tfor(Entry<String, List<String>> enableDependenciesList : enableDependenciesEntry.getValue().entrySet()){\r\n\t\t\t\tfor(String dependedEle : enableDependenciesList.getValue()){\r\n\t\t\t\t\tallDataFieldList.add(dependedEle);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * checking if the dialogue contains 'electricService.startDate' or 'businessParty.name', if the dialogue contains them,\r\n\t\t * we need to replace them with their corresponding values that are present on the order.\r\n\t\t */\r\n\t\tCustomer customer = order.getCustomerInformation().getCustomer();\r\n\t\tList<CustAddress> custAddressList = customer.getAddressList().getCustomerAddress();\r\n\t\tfor(CustAddress custAddr : custAddressList){\r\n\t\t\tfor(RoleType role : custAddr.getAddressRoles().getRole()){\r\n\t\t\t\tif(role.value().equals(\"ServiceAddress\")){\r\n\t\t\t\t\tString electricStartDate = DateUtil.toTimeString(custAddr.getAddress().getElectricityStartAt());\r\n\t\t\t\t\tstCkVO.setValueByName(\"electricService.startDate\", electricStartDate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tstCkVO.setValueByName(\"businessParty.name\", businessPartyName);\r\n\t\tstCkVO.setValueByName(\"consumer.name.nameBlock\", customer.getFirstName()+\" \"+ customer.getLastName());\r\n\t\tstCkVO.setValueByName(\"referrer-general-name\", customer.getReferrerGeneralName());\r\n\t\t/*\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t\t\tStart Of logic to build display of the dialogues that are to be shown during the customer qualification page\r\n\t\t\t--------------------------------------------------------------------------------------------------------------------\r\n\t\t */\r\n\r\n\t\tlogger.info(\"before sending to html factory\");\r\n\t\tList<Fieldset> fieldsetList = HtmlFactory.INSTANCE.dialogueToFieldSet(events, dialogueVO, enableDependencies, dialogueFeatureMap, \r\n\t\t\t\tdialogueFeatureGroupMap, viewDetailsFeaturesList, viewDetailsFeatureGroupList, preSelectedMap, \r\n\t\t\t\trequest.getContextPath(), requestParamMap, stCkVO, orderQualVO.getPriceDisplayVOMap(),orderQualVO.getDominionProductExtIds(),request.getSession().getAttribute(\"mandatoryDisclosureCheckboxes\"));\r\n\r\n\t\tlogger.info(\"after html factory\");\r\n\t\tfor (Fieldset fieldset : fieldsetList) {\r\n\r\n\t\t\tString element = HtmlBuilder.INSTANCE.toString(fieldset);\r\n\t\t\telement = element.replaceAll(\"<\", \"<\");\r\n\t\t\telement = element.replaceAll(\">\", \">\");\r\n\t\t\tevents.append(element);\r\n\t\t\tlogger.info(\"====================================\");\r\n\t\t}\r\n\t\torderQualVO.setDataField(events.toString());\r\n\t\tlogger.info(\"setting values to mav obkect\");\r\n\t\tif(errorLog != null && errorLog.size() > 0){\r\n\t\t\tmav.addObject(\"errorLog\", errorLog);\r\n\t\t}\r\n\t\tif(!errorStringList.isEmpty()){\r\n\t\t\tmav.addObject(\"errors\",errorStringList);\r\n\t\t}\r\n\t\tif(jsonString != null && jsonString.trim().length() >0){\r\n\t\t\tmav.addObject(\"iData\", jsonString);\r\n\t\t}\r\n\r\n\t\tStringBuilder customerName = new StringBuilder();\r\n\r\n\t\tif(order.getAccountHolder() != null && !order.getAccountHolder().isEmpty() && orderQualVO.getLineItemExternalId() > 0 )\r\n\t\t{\r\n\t\t\tLineItemType lineItemType = LineItemService.INSTANCE.getLineItem(order.getAgentId(),order,orderQualVO.getLineItemExternalId(),null);\r\n\t\t\tif (lineItemType != null && lineItemType.getAccountHolderExternalId() != null)\r\n\t\t\t{\r\n\t\t\t\tfor(AccountHolderType accountHolder : order.getAccountHolder())\r\n\t\t\t\t{\r\n\t\t\t\t\tlogger.info(\"accountHolderExtID=\"+ accountHolder.getExternalId()+\"_LineAcountHolderExtID=\"+lineItemType.getAccountHolderExternalId());\r\n\t\t\t\t\tif ( accountHolder.getExternalId() == lineItemType.getAccountHolderExternalId().longValue() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcustomerName.append(accountHolder.getFirstName());\r\n\t\t\t\t\t\tcustomerName.append(\" \");\r\n\t\t\t\t\t\tcustomerName.append(accountHolder.getLastName());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(customerName.length() == 0){\r\n\t\t\tcustomerName.append(order.getCustomerInformation().getCustomer().getFirstName());\r\n\t\t\tcustomerName.append(\" \");\r\n\t\t\tcustomerName.append(order.getCustomerInformation().getCustomer().getLastName());\r\n\t\t}\r\n\r\n\t\tmav.addObject(\"customerName\",customerName.toString());\r\n\r\n\r\n\t\tmav.addObject(\"dataField\", escapeSpecialCharacters(events.toString()));\r\n\t\tmav.addObject(\"productInfo\", productInfo);\r\n\r\n\t\tmav.addObject(\"allDataFieldList\", allDataFieldList);\r\n\t\tmav.addObject(\"enableDialogueMap\", enableDependencies);\r\n\t\tmav.addObject(\"disableDialogueMap\", disableDependencies);\r\n\t\tmav.addObject(\"replayAllEnabledValuesList\", replayAllEnabledValuesList);\r\n\t\tmav.addObject(\"providerExternalID\",providerExternalID);\r\n\t\tmav.addObject(\"isUtilityOffer\", false);\r\n\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.add(Calendar.YEAR, -18);\r\n\t\tString hiddenYear = (cal.get(Calendar.MONTH)+1)+\"/\"+(cal.get(Calendar.DATE)-1)+\"/\"+cal.get(Calendar.YEAR);\r\n\t\tmav.addObject(\"hiddenYear\", hiddenYear);\r\n\r\n\t\tlogger.info(\"after setting values to MAV object\");\r\n\t\treturn mav;\r\n\t}",
"@Test(timeout = 4000)\n public void test44() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n TextArea textArea0 = new TextArea(errorPage0, \">/_? 9[?}aX\", \"Tz\\\"qb2hEBW8P^&L\");\n Any any0 = new Any(textArea0, \"Tz\\\"qb2hEBW8P^&L\");\n DynamicSelectModel dynamicSelectModel0 = any0.selectModel();\n Component component0 = dynamicSelectModel0.getComponent();\n assertNull(component0);\n }",
"@Override\r\n\tpublic void setSelectedType(int paramInt) {\n\r\n\t}",
"public void setMaterialIndex(int index) { materialIndex = index; }",
"@Test\n void getResetPasswordView() throws Exception {\n\n MvcResult mvcResult = mockMvc.perform(get(PATH + \"reset/password\")\n .contentType(MediaType.APPLICATION_JSON)\n .param(\"user\", \"test\")\n .param(\"pass\", \"password\"))\n .andExpect(status().is2xxSuccessful())\n .andExpect(view().name(\"resetPassword\"))\n .andReturn();\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\t\tMsgRequest request = CommonSelectRequest.createSelectMaterialRequest(new MaterialsSelectParameters(null, false, false,false,false));\r\n\t\t\t\trequest.setResponseHandler(new ResponseHandler(){\r\n\t\t\t\t\tpublic void handle(Object returnValue, Object returnValue2, Object returnValue3, Object returnValue4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tMaterialsItemInfo[] itemList = (MaterialsItemInfo[])returnValue;\r\n\t\t\t\t\t\tfor(MaterialsItemInfo item : itemList){\r\n\t\t\t\t\t\t\tif(selectedGoodsIds.contains(item.getItemData().getId().toString())){\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttable.addRow(item); // XXX:表格控件提供插入多行数据接口后修改,目前效率\r\n\t\t\t\t\t\t\tselectedGoodsIds.add(item.getItemData().getId().toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tgoodsItemCountLabel.setText(String.valueOf(selectedGoodsIds.size()));\r\n\t\t\t\t\t\ttable.renderUpate();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tgetContext().bubbleMessage(request);\r\n\t\t\t}",
"private void getSearchButtonSemantics() {\n //TODO implement method\n searchView.getResultsTextArea().setText(\"\");\n if (searchView.getFieldComboBox().getSelectedItem() == null) {\n JOptionPane.showMessageDialog(new JFrame(), \"Please select a field!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getFieldComboBox().requestFocus();\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"SKU\")) {\n Optional<Product> skuoptional = inventoryModel.searchBySku(searchView.getSearchValueTextField().getText());\n if (skuoptional.isPresent()) {//check if there is an inventory with that SKU\n searchView.getResultsTextArea().append(skuoptional.get().toString());\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified SKU was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Name\")) {\n List<Product> name = inventoryModel.searchByName(searchView.getSearchValueTextField().getText());\n if (!name.isEmpty()) {\n for (Product nameproduct : name) {\n searchView.getResultsTextArea().append(nameproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified name was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Wholesale price\")) {\n try {\n List<Product> wholesaleprice = inventoryModel.searchByWholesalePrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!wholesaleprice.isEmpty()) {//check if there is an inventory by that wholesale price\n for (Product wholesalepriceproduct : wholesaleprice) {\n searchView.getResultsTextArea().append(wholesalepriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Retail price\")) {\n try {\n List<Product> retailprice = inventoryModel.searchByRetailPrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!retailprice.isEmpty()) {\n for (Product retailpriceproduct : retailprice) {\n searchView.getResultsTextArea().append(retailpriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Quantity\")) {\n try {\n List<Product> quantity = inventoryModel.searchByQuantity(Integer.parseInt(searchView.getSearchValueTextField().getText()));\n if (!quantity.isEmpty()) {\n for (Product quantityproduct : quantity) {\n searchView.getResultsTextArea().append(quantityproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n }\n }",
"@Test(timeout = 4000)\n public void test13() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.enumeration(\"?_>Qp*Ds!n\\\"tiJ\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getValue((-8));\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // java.lang.Integer cannot be cast to java.lang.Boolean\n //\n verifyException(\"org.mvel.MVELInterpretedRuntime\", e);\n }\n }",
"@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }",
"public void testUI() throws Throwable {\n GameSetupFragment fragPre = GameSetupFragment.newInstance();\n Fragment fragPost = startFragment(fragPre, \"1\");\n assertNotNull(fragPost);\n\n //check that passing string argument to fragment creates adapter as expected\n\n //4x4 should give 16 in adapter\n GameFragment gameFragPre = GameFragment.newInstance(\"4x4\");\n final GameFragment gameFragPost = (GameFragment) startFragment(gameFragPre, \"2\");\n assertNotNull(gameFragPost);\n\n int numCubes = gameFragPost.cubeGrid.getAdapter().getCount();\n assertEquals(16, numCubes);\n\n //check that no more than two cubes are ever selected\n runTestOnUiThread(new Runnable() {\n @Override\n public void run() {\n gameFragPost.cubeGrid.performItemClick(null, 2, 0);\n\n int selectedCount = ((CubeView.Adapter)gameFragPost.cubeGrid.getAdapter()).getSelectedCount();\n assertEquals(1, selectedCount); //1 cube selected after 1 press\n\n gameFragPost.itemClick.onItemClick(null, null, 0, 0);\n gameFragPost.itemClick.onItemClick(null, null, 4, 0);\n gameFragPost.itemClick.onItemClick(null, null, 9, 0);\n selectedCount = ((CubeView.Adapter)gameFragPost.cubeGrid.getAdapter()).getSelectedCount();\n assertEquals(2, selectedCount); //2 cubes selected after several more presses\n }\n });\n }",
"public void setContents(MaterialData materialData) {\n/* 91 */ Material mat = materialData.getItemType();\n/* */ \n/* 93 */ if (mat == Material.RED_ROSE) {\n/* 94 */ setData((byte)1);\n/* 95 */ } else if (mat == Material.YELLOW_FLOWER) {\n/* 96 */ setData((byte)2);\n/* 97 */ } else if (mat == Material.RED_MUSHROOM) {\n/* 98 */ setData((byte)7);\n/* 99 */ } else if (mat == Material.BROWN_MUSHROOM) {\n/* 100 */ setData((byte)8);\n/* 101 */ } else if (mat == Material.CACTUS) {\n/* 102 */ setData((byte)9);\n/* 103 */ } else if (mat == Material.DEAD_BUSH) {\n/* 104 */ setData((byte)10);\n/* 105 */ } else if (mat == Material.SAPLING) {\n/* 106 */ TreeSpecies species = ((Tree)materialData).getSpecies();\n/* */ \n/* 108 */ if (species == TreeSpecies.GENERIC) {\n/* 109 */ setData((byte)3);\n/* 110 */ } else if (species == TreeSpecies.REDWOOD) {\n/* 111 */ setData((byte)4);\n/* 112 */ } else if (species == TreeSpecies.BIRCH) {\n/* 113 */ setData((byte)5);\n/* */ } else {\n/* 115 */ setData((byte)6);\n/* */ } \n/* 117 */ } else if (mat == Material.LONG_GRASS) {\n/* 118 */ GrassSpecies species = ((LongGrass)materialData).getSpecies();\n/* */ \n/* 120 */ if (species == GrassSpecies.FERN_LIKE) {\n/* 121 */ setData((byte)11);\n/* */ }\n/* */ } \n/* */ }",
"public void setMaterial_id(Integer material_id) {\n this.material_id = material_id;\n }",
"@Test\n public void testSelecionarItemTbViewPagamentos() {\n }",
"@Test\n public void testChangeToRecipes() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n appContext.setTheme(R.style.Theme_Entree);\n MenuBarsView v = new MenuBarsView(appContext, null, null);\n\n v.onNavigationItemSelected(v.getRecipeMenuItem());\n\n assertTrue(v.getSubView() == v.getRecipeView());\n }",
"@Test\n public void testChangeToCamera() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n appContext.setTheme(R.style.Theme_Entree);\n MenuBarsView v = new MenuBarsView(appContext, null, null);\n\n v.onNavigationItemSelected(v.getCameraMenuItem());\n\n assertTrue(v.getSubView() == v.getCameraView());\n }",
"public void selectNCDPotectedClaim ()\r\n\t{\r\n\t\tWebDriverWait wait = new WebDriverWait (driver, GlobalWaitTime.getIntWaitTime ());\r\n\t\twait.until (ExpectedConditions.elementToBeClickable (orPolicyVehicleHub.ddlNCDProtected));\r\n\t\tSelect oNCDProtectedClaims = new Select (orPolicyVehicleHub.ddlNCDProtected);\r\n\t\tint intNCDProtectedIndex = RandomCount.selectRandomItem (oNCDProtectedClaims);\r\n\t\toNCDProtectedClaims.selectByIndex (intNCDProtectedIndex);\r\n\r\n\t}",
"@Override\r\n\tpublic void onMaterialItem(HttpRequest request, MaterialItem item) {\n\r\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 }",
"@Transactional\r\n\tpublic List getAllTypeMaterial() {\n\t\treturn typematerialdao.getAllTypeMaterial();\r\n\t}",
"public String productTypeSelected() {\n String productType = \"\";\n rbListAddElement();\n for (int i = 0; i < rbProductType.size(); i++) {\n if (rbProductType.get(i).isSelected()) {\n productType += (rbProductType.get(i).getText());\n System.out.println(\"Selected product type :\" + productType);\n }\n }\n return productType;\n }",
"public void clickViewCartButton(){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Viewcart button should be clicked\");\r\n\t\ttry{\r\n\t\t\t//waitForElement(btnViewCart);\r\n\t\t\twaitForElement(locator_split(\"btnViewCartBtn\"));\r\n\t\t\t//click(btnViewCart);\r\n\t\t\tclick(locator_split(\"btnViewCartBtn\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Viewcart button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- View button is not clicked \"+elementProperties.getProperty(\"btnViewCartBtn\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnViewCartBtn\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}",
"public static void consultaMaterial(DefaultTableModel dtm, JComboBox cmb) {\n\t\tif(cmb.getSelectedIndex() != 0 && cmb.getSelectedIndex() != -1) {\n\t\t\tInventarioAdministrativo i = invenDAO.consultaMaterial((String) cmb.getSelectedItem());\n\t\t\tif(i != null) {\n\t\t\t\tObject[] fila = {\n\t\t\t\t\t\ti.getNombre(),\n\t\t\t\t\t\ti.getUnidades(),\n\t\t\t\t\t\ti.getFecha_llegada()\n\t\t\t\t};\n\t\t\t\t\n\t\t\t\tdtm.addRow(fila);\n\t\t\t}else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No hay datos\");\n\t\t\t}\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Seleccione material a consultar\");\n\t\t}\n\t}",
"@Override\r\n\tpublic theaterVO selectView(int bnum) {\n\t\treturn theaterRentalDaoImpl.selectView(bnum);\r\n\t}",
"public void setMaterial(String material) {\n this.material = material;\n }",
"public void selectWeaponFromInventory(int weaponIndex) {\n }",
"private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}",
"@Test\n public void f14SelectAssetTest() {\n FlowPane assets;\n int i = 0;\n Random random = new Random();\n\n //select 4 random assets out of the first 12 visible assets in the window\n do {\n clickOn(\"#thumbnailTab\").moveBy(300, 500);\n scroll(10, VerticalDirection.UP).sleep(2000);\n\n assets = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n clickOn(assets.getChildren().get(random.nextInt(12)));\n sleep(1000).clickOn(\"#serialNumberOutput\").sleep(1000);\n clickOn(\"#backBtn\");\n\n } while (++i < 4);\n\n assertTrue(\"There are selectable assets on the main page.\", assets.getChildren().size() > 0);\n }",
"public String updateByPrimaryKeySelective(MaterialType record) {\r\n SQL sql = new SQL();\r\n sql.UPDATE(\"material_type\");\r\n \r\n if (record.getMtName() != null) {\r\n sql.SET(\"mt_name = #{mtName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getRemark() != null) {\r\n sql.SET(\"remark = #{remark,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMtOrderNum() != null) {\r\n sql.SET(\"mt_order_num = #{mtOrderNum,jdbcType=INTEGER}\");\r\n }\r\n \r\n sql.WHERE(\"id = #{id,jdbcType=INTEGER}\");\r\n \r\n return sql.toString();\r\n }",
"@Test\r\n\tpublic void findAllMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}",
"@FXML\n private void viewSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"View DonorReceiver\");\n } else {\n ViewProfilePaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.VIEW);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n@Test\n public void testProductSelection() {\n\t \n\t\tRestAssured.baseURI = baseURL;\n\t\tRequestSpecification request = RestAssured.given();\n\t\t\n\t\t\n\t\trequest.header(\"Content-Type\", \"application/json\");\n\t\t\n\n\t\tJSONObject jobj = new JSONObject();\n\t\t\n\t\tjobj.put(\"product_id\",\"56c815cc56685df2014df1fb\"); //Fetching the product ID from the Login API response\n\t\t\n\t\trequest.body(jobj.toJSONString());\n\n\t\tResponse resp = request.post(\"/product_selection\");\n\t\t\n\t\t\n\t\tint statusCode = resp.getStatusCode();\n\t\tAssert.assertEquals(statusCode,200, \"Status Code is not 200\");\n }",
"@Test\n public void testReturnPickUpRequest() {\n List<List<String>> orders = new ArrayList<>();\n ArrayList<String> order1 = new ArrayList<>();\n order1.add(\"White\");\n order1.add(\"SE\");\n orders.add(order1);\n ArrayList<String> order2 = new ArrayList<>();\n order2.add(\"Red\");\n order2.add(\"S\");\n orders.add(order2);\n ArrayList<String> order3 = new ArrayList<>();\n order3.add(\"Blue\");\n order3.add(\"SEL\");\n orders.add(order3);\n ArrayList<String> order4 = new ArrayList<>();\n order4.add(\"Beige\");\n order4.add(\"S\");\n orders.add(order4);\n PickUpRequest expected = new PickUpRequest(orders, translation);\n warehouseManager.makePickUpRequest(orders);\n assertEquals(expected.getSkus(), warehouseManager.returnPickUpRequest().getSkus());\n }",
"public void clickMediumUnit() {\r\n\t\twebAppDriver.clickElementById(btnMediumUnitsId);\r\n\t\twebAppDriver.verifyElementIsInvisibleByXpath(lbPleaseWaitXpath);\r\n\t}",
"private void setUpInventoryViewModel() {\n // mock equipment\n Equipment equipment = Mockito.mock(Equipment.class);\n when(equipment.getTotalSlots()).thenReturn(5);\n when(equipment.getMaxTotalWeight()).thenReturn(10);\n when(equipment.getMaxTotalVolume()).thenReturn(10);\n when(equipment.getCurrentTotalWeight()).thenReturn(3);\n when(equipment.getCurrentTotalVolume()).thenReturn(5);\n\n // mock items\n ArrayList<Item> items = new ArrayList<>();\n Item itemOne = Mockito.mock(Item.class);\n when(itemOne.getName()).thenReturn(\"Item One\");\n when(itemOne.getWeight()).thenReturn(1);\n when(itemOne.getVolume()).thenReturn(1);\n items.add(itemOne);\n items.add(itemOne);\n when(equipment.getItems()).thenReturn(items);\n\n // mock gameManager\n GameManager gameManager = Mockito.mock(GameManager.class);\n when(gameManager.getEquipment()).thenReturn(equipment);\n\n contentViewModel = new InventoryViewModel(gameManager, null);\n }",
"public abstract String getSelectedPhoneType1();",
"public static void viewOrder() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Viewing existing orders************\");\n\t\t// TODO - implement RRPSS.viewOrder\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\t\tOrderedPackageManager orderedPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackage = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to view the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\t\t\tlistOfOrderedPromotionalPackage = orderedPackageManager\n\t\t\t\t\t.retrieveOrderedPackageByOrderID(order.getId());\n\n\t\t\tif (listOfOrderedItems.size() == 0\n\t\t\t\t\t&& listOfOrderedPromotionalPackage.size() == 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\tSystem.out.println(\"Order is empty!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif (listOfOrderedItems.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"All Cart Items Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedItems.size(); j++) {\n\t\t\t\t\tOrderedItem orderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tif (listOfOrderedPromotionalPackage.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"Promotional Packages Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedPromotionalPackage.size(); j++) {\n\t\t\t\t\tOrderedPackage orderedPackage = (OrderedPackage) listOfOrderedPromotionalPackage\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedPackage.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of viewing orders************\");\n\t}",
"private void showResult(TYPE type){\r\n\t\tString brand = \"\";//brand\r\n\t\tString sub = \"\";//sub brand\r\n\t\tString area = \"\";//area\r\n\t\tString cus = \"\";//customer name\r\n\t\tString time = \"\";//time in second level\r\n\t\tKIND kind = null;//profit or shipment \r\n\t\t\r\n\t\tif(item1.getExpanded()){\r\n\t\t\tkind = KIND.SHIPMENT;\r\n\t\t\tbrand = combo_brand_shipment.getText();\r\n\t\t\tsub = combo_sub_shipment.getText();\r\n\t\t\tarea = combo_area_shipment.getText();\r\n\t\t\tcus = combo_cus_shipment.getText();\r\n\t\t}else if(item2.getExpanded()){\r\n\t\t\tkind = KIND.PROFIT;\r\n\t\t\tbrand = combo_brand_profit.getText();\r\n\t\t\tsub = combo_sub_profit.getText();\r\n\t\t\tarea = combo_area_profit.getText();\r\n\t\t\tcus = combo_cus_profit.getText();\r\n\t\t}else{//either item1 & item2 are not expanded\r\n\t\t\t//show a message?\r\n\t\t\tkind = KIND.NONE;\r\n\t\t}\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n\t\ttime = formatter.format(new Date());\r\n\t\tfinal Map<String, Object> args = new HashMap<String ,Object>();\r\n\t\targs.put(\"brand\", brand);\r\n\t\targs.put(\"sub_brand\", sub);\r\n\t\targs.put(\"area\", area);\r\n\t\targs.put(\"customer\", cus);\r\n\t\targs.put(\"time\", time);\r\n\t\targs.put(\"kind\", kind.toString());\r\n\t\targs.put(\"type\", type.toString());\r\n\t\t//call engine to get the data\t\r\n\t\t\r\n\t\tProgressMonitorDialog progressDialog = new ProgressMonitorDialog(Display.getCurrent().getActiveShell());\r\n\t\tIRunnableWithProgress runnable = new IRunnableWithProgress() { \r\n\t\t public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { \r\n\t\t \t\r\n\t\t Display.getDefault().asyncExec(new Runnable() { \r\n\t\t public void run() { \r\n\t\t monitor.beginTask(\"正在进行更新,请勿关闭系统...\", 100); \r\n\t\t \r\n\t\t monitor.worked(25); \r\n\t monitor.subTask(\"收集数据\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tro.getMap().clear();\r\n\t\t\t\t\tro=statistic.startAnalyzing(args, monitor);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\t\t\tmbox.open();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tmonitor.worked(100); \r\n\t monitor.subTask(\"分析完成\");\r\n\t \r\n\t\t monitor.done();\r\n\t\t }\r\n\t\t \t });\r\n\t\t } \r\n\t\t}; \r\n\t\t \r\n\t\ttry { \r\n\t\t progressDialog.run(true,/*是否开辟另外一个线程*/ \r\n\t\t false,/*是否可执行取消操作的线程*/ \r\n\t\t runnable/*线程所执行的具体代码*/ \r\n\t\t ); \r\n\t\t} catch (InvocationTargetException e) { \r\n\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\tmbox.open();\r\n\t\t\treturn;\r\n\t\t} catch (InterruptedException e) { \r\n\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\tmbox.open();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(ro.getMap().isEmpty())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tPagination page1 = (Pagination) ro.get(\"table1\");\r\n\t\tPagination page2 = (Pagination) ro.get(\"table2\");\r\n\t\tPagination page3 = (Pagination) ro.get(\"table3\");\r\n\t\tList<Object> res1 = new ArrayList<Object>();\r\n\t\tList<Object> res2 = new ArrayList<Object>();\r\n\t\tList<Object> res3 = new ArrayList<Object>();\r\n\t\tif(page1 != null)\r\n\t\t\tres1 = (List<Object>)page1.getItems();\r\n\t\tif(page2 != null)\r\n\t\t\tres2 = (List<Object>)page2.getItems();\r\n\t\tif(page2 != null)\r\n\t\t\tres3 = (List<Object>)page3.getItems();\r\n\t\t\r\n\t\tif(res1.size()==0 && res2.size()==0 && res3.size()==0){\r\n\t\t\tMessageBox messageBox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t \tmessageBox.setMessage(\"没有满足查询条件的数据可供分析,请查询其他条件\");\r\n\t \tmessageBox.open();\r\n\t \treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//this if/else can be optimized, since it looks better in this way, leave it\t\t\r\n\t\t//case 1: brand ratio, area ratio, trend\r\n\t\tif(brand.equals(AnalyzerConstants.ALL_BRAND) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t\t\t\t\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \t\t\r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\r\n\t\t}\r\n\t\t//case 2: brand ratio, customer ratio, trend\r\n\t\telse if(brand.equals(AnalyzerConstants.ALL_BRAND) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 3: brand ratio, trend\r\n\t\telse if(brand.equals(AnalyzerConstants.ALL_BRAND) && !area.equals(AnalyzerConstants.ALL_AREA) && !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 4: sub brand ratio, area ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 5: sub brand ratio, customer ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 6: sub brand ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && !area.equals(AnalyzerConstants.ALL_AREA) && !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 7: area ratio, trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//brand\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 8: customer ratio, trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//brand\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 9: trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && !area.equals(AnalyzerConstants.ALL_AREA) & !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//now, just trend, do nothing here\r\n\t\t}\r\n\t\tif(!kind.equals(KIND.NONE)){\r\n\t\t\t//trend, always has the trend graph \t\r\n\t\t\tTrendDataSet ts = new TrendDataSet();\r\n\t\t\tts.setKind(kind);\t\r\n\t\t\tts.setType(type);\r\n\t\t\tTrendComposite tc = new TrendComposite(composite_content, 0, ts, res3); \r\n\t\t\talys.add(tc);\r\n\t\t\tcomposite_content.setLayout(layout_content);\r\n\t\t\tcomposite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t\t\t\r\n\t}",
"public static int MakeMenuAndSelect(){\r\n int input = 0;\r\n boolean wrongNumber = false;//Boolean for error handling\r\n do { \r\n if(wrongNumber)System.out.println(\"Enter CORRECT number.\"); //Error if not a valid number or Exception\r\n wrongNumber = false; //Setting boolean for first selection of item\r\n System.out.println(\"\\nVending Machine\");\r\n System.out.println(\"_________________\\n\");\r\n \r\n //Make dynamic selection menu\r\n MakeMerchMenu(Inventory.merchList);\r\n \r\n //Choice one item for description and purchase\r\n System.out.print(\"Select one option for further details: \");\r\n try { \r\n input = Vending_Machine.GetInput(); //Calling input function\r\n System.out.println(\"\"); //Just for cosmetics\r\n if(1 > input || input > Inventory.merchList.size())wrongNumber = true;\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Enter a numeric value, try again\"); //Error Exception\r\n wrongNumber = true;\r\n } \r\n } while (wrongNumber);//Loops if not a valid selection \r\n return input;\r\n }",
"public void EnterQtyInSku(String itemnum){ \r\n\t\tString searchitem = getValue(itemnum);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+searchitem);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Quantity should be entered in the quantity box\");\r\n\t\ttry{\r\n\t\t\t//editSubmit(locator_split(\"txtSearch\"));\r\n\t\t\twaitforElementVisible(locator_split(\"txtSkuPageQty\"));\r\n\t\t\tclearWebEdit(locator_split(\"txtSkuPageQty\"));\r\n\t\t\tsendKeys(locator_split(\"txtSkuPageQty\"), searchitem);\r\n\t\t\tThread.sleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Quantity is entered in the quantity box\");\r\n\t\t\tSystem.out.println(\"Quantity is entered in the quantity box - \"+searchitem+\" is entered\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Quantity is not entered in the quantity box \"+elementProperties.getProperty(\"txtSkuPageQty\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtSkuPageQty\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void findByIdMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}",
"private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }",
"public void setUpInventoryItemViewModel() {\n GameManager mockGameManager = Mockito.mock(GameManager.class);\n ContentViewModelDao mockViewModelDao = Mockito.mock(ContentViewModelDao.class);\n\n // mock item\n Item mockItem = Mockito.mock(Item.class);\n Item mockUpgradeItem = Mockito.mock(Item.class);\n when(mockItem.getDescription()).thenReturn(\"some description\");\n when(mockUpgradeItem.getName()).thenReturn(\"some upgrade item name\");\n when(mockItem.getUpgradeStage()).thenReturn(mockUpgradeItem);\n when(mockItem.getUseTime()).thenReturn(10);\n when(mockItem.getUpgradeTime()).thenReturn(30);\n\n contentViewModel = new InventoryItemViewModel(mockGameManager, mockItem, mockViewModelDao);\n }",
"public SelectType (int _selectType) {\n selectType = _selectType;\n }",
"@ViewAnnotations.ViewOnClick(R.id.hunter_number_read_qr_button)\n protected void onReadQrCodeClicked(final View view) {\n final IntentIntegrator intentIntegrator = IntentIntegrator.forSupportFragment(this);\n intentIntegrator.setBarcodeImageEnabled(true);\n intentIntegrator.setOrientationLocked(false);\n intentIntegrator.initiateScan();\n }",
"@Test\r\n public void regButton(){\r\n onView(withId(R.id.edUserReg)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.Stud_id)).perform(typeText(\"Jade\"));\r\n onView(withId(R.id.edPassReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.edPassConReg)).perform(typeText(\"hey\"));\r\n onView(withId(R.id.btnReg)).perform(click());\r\n }",
"private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }"
] | [
"0.68512",
"0.5921541",
"0.5212726",
"0.51257527",
"0.5019834",
"0.48843312",
"0.48242962",
"0.48037717",
"0.47560138",
"0.47308213",
"0.4708058",
"0.47077462",
"0.46693796",
"0.46272528",
"0.46166807",
"0.46164638",
"0.4603051",
"0.4573908",
"0.4556203",
"0.4542319",
"0.4540404",
"0.452913",
"0.45266864",
"0.45256987",
"0.45037636",
"0.44992086",
"0.4497873",
"0.44948283",
"0.44872728",
"0.44825083",
"0.44802764",
"0.4466848",
"0.4465575",
"0.44513515",
"0.44339868",
"0.44307652",
"0.4416203",
"0.44140515",
"0.44113612",
"0.43977654",
"0.43952373",
"0.4388219",
"0.43858138",
"0.43850765",
"0.43827897",
"0.43815503",
"0.43803093",
"0.43720677",
"0.43689126",
"0.43682",
"0.43607497",
"0.43566582",
"0.435501",
"0.43528575",
"0.43526143",
"0.43404073",
"0.43335932",
"0.43308768",
"0.43268302",
"0.4324811",
"0.43203247",
"0.43173268",
"0.43120858",
"0.43075293",
"0.43035865",
"0.4299958",
"0.42974442",
"0.4293743",
"0.42935118",
"0.4291848",
"0.42895314",
"0.428515",
"0.42848423",
"0.42804137",
"0.42701018",
"0.42692322",
"0.42654273",
"0.42612672",
"0.4250744",
"0.42492294",
"0.42435613",
"0.42434928",
"0.42316735",
"0.42316386",
"0.4227292",
"0.4224663",
"0.42241693",
"0.4223437",
"0.42223296",
"0.42205685",
"0.42195755",
"0.42176574",
"0.42153418",
"0.42148796",
"0.42105818",
"0.4203269",
"0.4198795",
"0.41976383",
"0.41974485",
"0.41943282"
] | 0.6870968 | 0 |
Test of createPurchaseOrder method, of class PurchaseOrderManagementModule. | @Test
public void testCreatePurchaseOrder() throws Exception {
System.out.println("createPurchaseOrder");
Long factoryId = 1L;
Long contractId = 2L;
Double purchaseAmount = 4D;
Long storeId = 2L;
String destination = "store";
Calendar deliveryDate = Calendar.getInstance();
deliveryDate.set(2015, 0, 13);
Boolean isManual = false;
Boolean isToStore = true;
PurchaseOrderEntity result = PurchaseOrderManagementModule.createPurchaseOrder(factoryId, contractId, purchaseAmount, storeId, destination, deliveryDate, isManual, isToStore);
assertNotNull(result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void createOrderTest() {\n\t\ttry {\n\t\t\tassertNull(salesOrderCtrl.getOrder());\n\t\t\tsalesOrderCtrl.createSalesOrder();\n\t\t\tassertNotNull(salesOrderCtrl.getOrder());\n\t\t} catch (Exception e) {\n\t\t\te.getMessage();\n\t\t}\n\t}",
"@Test(dependsOnMethods = \"checkSiteVersion\")\n public void createNewOrder() {\n actions.openRandomProduct();\n\n // save product parameters\n actions.saveProductParameters();\n\n // add product to Cart and validate product information in the Cart\n actions.addToCart();\n actions.goToCart();\n actions.validateProductInfo();\n\n // proceed to order creation, fill required information\n actions.proceedToOrderCreation();\n\n // place new order and validate order summary\n\n // check updated In Stock value\n }",
"public int createPurchaseOrder(PurchaseOrder purchaseOrder){\n try {\n session.save(purchaseOrder);\n tx.commit();\n } catch (Exception e) {\n e.printStackTrace();\n tx.rollback();\n return 0 ;\n }\n return 0;\n }",
"ResponseDTO createPurchase(PurchaseOrderDTO purchaseOrderDTO) throws ApiException, IOException;",
"void create(Order order);",
"@Test (priority = 3)\n\t@Then(\"^Create Order$\")\n\tpublic void create_Order() throws Throwable {\n\t\tCommonFunctions.clickButton(\"wlnk_Home\", \"Sheet1\", \"Home\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLNK_OrderNewServices\", \"Sheet1\", \"Oreder New Service\", \"CLICK\");\n\t\t//Thread.sleep(3000);\n\t\tCommonFunctions.clickButton(\"WRD_complete\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Contine\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WCB_Additional\", \"Sheet1\", \"Additional\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_checkout\", \"Sheet1\", \"Checkout\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_completeOrder\", \"Sheet1\", \"complete order\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_PayNow\", \"Sheet1\", \"Pay Now\", \"CLICK\");\n\t\tCommonFunctions.checkObjectExist(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"NO\");\n\t\tCommonFunctions.clickButton(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"CLICK\");\n\t}",
"@Test\r\n\tpublic void testAddPurchaseOrder() {\r\n\t\tassertNotNull(\"Test if there is valid purchase order list to add to\", purchaseOrder);\r\n\r\n\t\tpurchaseOrder.add(o1);\r\n\t\tassertEquals(\"Test that if the purchase order list size is 1\", 1, purchaseOrder.size());\r\n\r\n\t\tpurchaseOrder.add(o2);\r\n\t\tassertEquals(\"Test that if purchase order size is 2\", 2, purchaseOrder.size());\r\n\t}",
"@Test\n public void testConfirmPurchaseOrder() throws Exception {\n System.out.println(\"confirmPurchaseOrder\");\n String userId = \"F1000001\";\n Long purchaseOrderId = 1L;\n String result = PurchaseOrderManagementModule.confirmPurchaseOrder(userId, purchaseOrderId);\n assertEquals(\"Purchase Order Confirmed!\", result);\n }",
"@Test\n\tpublic void testOrder() {\n\t\t\n\t\tDateFormat df1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = df1 .parse(\"2021-10-15\");\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tshoppingCart = new ShoppingCart();\n\t\tshoppingCart.setExpiry(date);\n\t\tshoppingCart.setUserId(11491);\n\t\tshoppingCart.setItems(shoppingCartSet);\n\t\t\n\t\torder.setId(1);\n\t\torder.setShoppingCart(shoppingCart);\n\t\t\n\t\ttry {\n\t\t\tassertEquals(orderService.order(order), 1);\n\t\t\t\n\t\t} catch (OrderException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n public void testValidateNewOrderProduct() throws Exception {\n\n Order order3 = new Order(\"003\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"Date_Folder_Orders/Orders_06232017.txt\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n assertEquals(true, service.validateNewOrderProduct(order3));\n }",
"void createOrders(int orderNum) throws OrderBookOrderException;",
"@Override\n public boolean createPurchaseOrder(PurchaseOrderBean purchaseorder) {\n purchaseorder.setGendate(C_Util_Date.generateDate());\n return in_purchaseorderdao.createPurchaseOrder(purchaseorder);\n }",
"@Test\n public void testOrderFactoryCreate() {\n OrderController orderController = orderFactory.getOrderController();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n // add a menu item to the menu\n menuFactory.getMenu().addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n\n // order 3 of the menu item\n HashMap<MenuItem, Integer> orderItems = new HashMap<>();\n HashMap<SetItem, Integer> setOrderItems = new HashMap<>();\n orderItems.put(menuFactory.getMenu().getMenuItem(1), 3);\n\n // create the order\n orderController.addOrder(STAFF_NAME, 1, false, orderItems, setOrderItems);\n assertEquals(1, orderController.getOrders().size());\n }",
"public com.vodafone.global.er.decoupling.binding.request.Purchase createPurchase()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PurchaseImpl();\n }",
"@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void crearOrdersTest() {\r\n\r\n\t\tpd.crearOrders();\r\n\t\tpd.pm.deletePersistent(pd.o1);\r\n\t\tpd.pm.deletePersistent(pd.o2);\r\n\t\tpd.pm.deletePersistent(pd.o3);\r\n\r\n\t}",
"public void create(Order order) {\n order_dao.create(order);\n }",
"@Test(groups = {\"smoke tests\"})\n public void validPurchase() {\n page.GetInstance(CartPage.class)\n .clickProceedToCheckoutButton() //to OrderAddressPage\n .clickProceedToCheckoutButton() //to OrderShippingPage\n .acceptTermsAndProceedToCheckout() //to OrderPaymentPage\n .clickPayByBankWireButton() //to OrderSummaryPage\n .clickIConfirmMyOrderButton(); //to OrderConfirmationPage\n\n // Then\n page.GetInstance(OrderConfirmationPage.class).confirmValidOrder(\"Your order on My Store is complete.\");\n }",
"@Test\n public void testPopulateNewOrderInfo() throws Exception {\n\n Order order3 = new Order(\"003\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"Date_Folder_Orders/Orders_06232017.txt\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n Order order4 = service.populateNewOrderInfo(order3);\n\n assertEquals(\"Paul\", order4.getCustomerName());\n }",
"public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}",
"public void createOrder() throws FlooringDaoException {\n boolean validData = true;\n do {\n try {\n Order newOrder = view.getNewOrderInfo();\n service.createOrder(newOrder);\n validData = true;\n } catch (InvalidDataException ex) {\n view.displayError(ex.getMessage());\n validData = false;\n } catch (NumberFormatException ex) {\n view.displayError(\"Area must consist of digits 0-9 with or without a decimal point.\");\n validData = false;\n }\n } while (!validData);\n }",
"public void create(Order order) {\n\t\torderDao.create(order);\n\t}",
"@Test\n public void testAddOrder() {\n Order addedOrder = new Order();\n\n addedOrder.setOrderNumber(1);\n addedOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n addedOrder.setCustomer(\"Add Test\");\n addedOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n addedOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n addedOrder.setArea(new BigDecimal(\"100.00\"));\n addedOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n addedOrder.setLaborCost(new BigDecimal(\"475.00\"));\n addedOrder.setTaxCost(new BigDecimal(\"61.88\"));\n addedOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n dao.addOrder(addedOrder);\n\n Order daoOrder = dao.getAllOrders().get(0);\n\n assertEquals(addedOrder, daoOrder);\n }",
"@Test\n public void createOrder() {\n IngredientDTO ig1 = new IngredientDTO(\"Onion\",\"onion\",2L,null);\n\n IngredientDTO ig2 = new IngredientDTO(\"Chicken\",\"chicken\",2L,null);\n IngredientDTO ig3 = new IngredientDTO(\"Bacon\",\"chicken\",2L,null);\n\n OrderDataDTO orderDataDTO = new OrderDataDTO(TestDataProviders.NAME_1,TestDataProviders.STREET,TestDataProviders.ZIP_CODE,TestDataProviders.COUNTRY,TestDataProviders.TEST_EMAIL_1,DeliveryMethod.FASTEST);\n\n\n BurgerDTO burgerDTO = new BurgerDTO(new HashSet<>(Arrays.asList(ig1,ig2,ig3)),TestDataProviders.PRICE);\n OrderDTO inputDTO = new OrderDTO(null,burgerDTO,orderDataDTO,null,false);\n\n Optional<User> optionalUser = Optional.of(user);\n when(userRepository.findByUsername(any(String.class))).thenReturn(optionalUser);\n\n //when\n when(orderRepository.save(any(Order.class))).thenReturn(order);\n\n OrderDTO result = underTest.createOrder(inputDTO,\"user1\");\n\n verify(userRepository).findByUsername(anyString());\n assertEquals(inputDTO.getArchived(),result.getArchived());\n assertThat(result.getUserId(),is(1L));\n assertEquals(inputDTO.getBurger().getIngredients().size(),result.getBurger().getIngredients().size());\n// assertThat(result.getOrderData().getCountry(),TestDataProviders.COUNTRY);\n\n }",
"Purchase create(Purchase purchase) throws SQLException, DAOException;",
"@Override\n\tpublic boolean doCreate(Orders vo) throws Exception\n\t{\n\t\treturn false;\n\t}",
"@Test\n\tvoid testOnAddToOrder() {\n\t}",
"@Override\n @Transactional\n public PurchaseResponse placeOrder(Purchase purchase) {\n Order order = purchase.getOrder();\n\n //genrate traking number\n String orderTrakingNumber = genrateOrderTrakingnumber();\n order.setOrderTrackingNumber(orderTrakingNumber);\n\n //populate order with order item\n Set<OrderItem> orderItems = purchase.getOrderItems();\n orderItems.forEach(item-> order.add(item));\n\n //populate order with billingAddress and shipplingAddress\n order.setBillingAddress(purchase.getBillingAddress());\n order.setShippingAddress(purchase.getShippingAddress());\n\n //populate customer with order\n Customer customer = purchase.getCustomer();\n\n // checck if the existing customer\n String theEmail = customer.getEmail();\n Customer customerFromDB = customerRepository.findByEmail(theEmail);\n\n if(customerFromDB != null){\n // we found it let assign them\n customer = customerFromDB;\n }\n\n customer.add(order);\n\n //sqve to the db\n customerRepository.save(customer);\n\n\n\n // return the response\n return new PurchaseResponse(orderTrakingNumber);\n }",
"public Invoice createInvoice(Order order);",
"@Test\n public void testCreateOrderCalculations() throws Exception {\n\n service.loadFiles();\n \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n service.calculateNewOrderDataInput(newOrder);\n\n Assert.assertEquals(newOrder.getMaterialCostTotal(), (new BigDecimal(\"1199.95\")));\n Assert.assertEquals(newOrder.getLaborCost(), (new BigDecimal(\"1106.75\")));\n Assert.assertEquals(newOrder.getTax(), (new BigDecimal(\"144.17\")));\n Assert.assertEquals(newOrder.getTotal(), (new BigDecimal(\"2450.87\")));\n\n }",
"@Test\n public void testOrderFactory() {\n assertNotNull(orderFactory);\n }",
"Order placeNewOrder(Order order, Project project, User user);",
"@Test\n public void purchaseCustomConstructor_isCorrect() throws Exception {\n\n int purchaseId = 41;\n int userId = 99;\n int accountId = 6541;\n double price = 99.99;\n String date = \"02/19/2019\";\n String time = \"12:12\";\n String category = \"test category\";\n String location = \"test location\";\n String comment = \"test comment\";\n\n //Create empty purchase\n Purchase purchase = new Purchase(purchaseId, userId, accountId, price, date, time, category, location, comment);\n\n // Verify Values\n assertEquals(purchaseId, purchase.getPurchaseId());\n assertEquals(userId, purchase.getUserId());\n assertEquals(accountId, purchase.getAccountId());\n assertEquals(price, purchase.getPrice(), 0);\n assertEquals(date, purchase.getDate());\n assertEquals(time, purchase.getTime());\n assertEquals(category, purchase.getCategory());\n assertEquals(location, purchase.getLocation());\n assertEquals(comment, purchase.getComment());\n }",
"protected abstract Order createOrder(Cuisine cuisine);",
"OrderDTO create(OrderDTO orderDTO);",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\to = new Order(\"Customer 1\");\t\t\r\n\t\to.addProduct(new Product(\"p101\",\"Orange\",12,10));\r\n\t\to.addProduct(new Product(\"p102\",\"Banana\",4,5));\r\n\t\to.addProduct(new Product(\"p103\",\"Apple\",10,10));\r\n\t\to.addProduct(new Product(\"p104\",\"Lemons\",5,20));\r\n\t\to.addProduct(new Product(\"p105\",\"Peaches\",5,5));\r\n\t}",
"@Test\n\tpublic void getOrderTest() {\n\t\tOrderDTO order = service.getOrder(2);\n\n\t\tassertEquals(3, order.getClientId());\n\t\tassertEquals(\"BT Group\", order.getInstrument().getName());\n\t\tassertEquals(\"BT\", order.getInstrument().getTicker());\n\t\tassertEquals(30.0, order.getPrice(), 1);\n\t\tassertEquals(500, order.getQuantity());\n\t\tassertEquals(OrderType.SELL, order.getType());\n\t}",
"@Test\n public void testAddOrder() {\n\n System.out.println(\"addOrder\");\n OrderOperations instance = new OrderOperations();\n int orderNumber = 1;\n String date = \"03251970\";\n String customerName = \"Barack\";\n String state = \"MI\";\n String productType = \"Wood\";\n double area = 700;\n ApplicationContext ctx = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n DAOInterface testInterface = (DAOInterface) ctx.getBean(\"testMode\");\n String productInfo, taxes;\n try {\n productInfo = testInterface.readFromDisk(\"productType.txt\");\n } catch (FileNotFoundException e) {\n productInfo = \"\";\n }\n\n try {\n taxes = testInterface.readFromDisk(\"taxes.txt\");\n } catch (FileNotFoundException e) {\n taxes = \"\";\n }\n instance.addOrder(customerName, date, state, productType, area, taxes, productInfo);\n assertEquals(instance.getOrderMap().containsKey(date), true);\n assertEquals(instance.getOrderMap().get(date).get(orderNumber).getCustomerName(), \"Barack\");\n\n }",
"@Test\n public void createProduct() {\n }",
"public Map<String, String> createOrder(boolean debug) throws IOException {\n Map<String, String> map = new HashMap<>();\n OrdersCreateRequest request = new OrdersCreateRequest();\n request.prefer(\"return=representation\");\n request.requestBody(buildRequestBody());\n //3. Call PayPal to set up a transaction\n HttpResponse<Order> response = client().execute(request);\n System.out.println(\"Response: \" + response.toString());\n // if (true) {\n if (response.statusCode() == 201) {\n System.out.println(\"Status Code: \" + response.statusCode());\n System.out.println(\"Status: \" + response.result().status());\n System.out.println(\"Order ID: \" + response.result().id());\n System.out.println(\"Intent: \" + response.result().intent());\n System.out.println(\"Links: \");\n for (LinkDescription link : response.result().links()) {\n System.out.println(\"\\t\" + link.rel() + \": \" + link.href() + \"\\tCall Type: \" + link.method());\n }\n System.out.println(\"Total Amount: \" + response.result().purchaseUnits().get(0).amount().currencyCode()\n + \" \" + response.result().purchaseUnits().get(0).amount().value());\n\n\n map.put(\"statusCode\" , response.statusCode()+\"\");\n map.put(\"status\" , response.result().status());\n map.put(\"orderID\" , response.result().id());\n\n //return response.result().id();\n } else {\n System.out.println(\"Response: \" + response.toString());\n map.put(\"Reponse\",response.toString());\n //return response.toString();\n }\n\n return map;\n //}\n }",
"@Test\n public void testValidateNewOrderState() throws Exception {\n\n Order order3 = new Order(\"003\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"Date_Folder_Orders/Orders_06232017.txt\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n assertEquals(true, service.validateNewOrderState(order3));\n }",
"@Test\n public void testGetPO() throws Exception {\n System.out.println(\"getPO\");\n Long poId = -2L;\n String result = \"\";\n try {\n PurchaseOrderManagementModule.getPO(poId);\n } catch (Exception ex) {\n result = ex.getMessage();\n }\n assertEquals(\"Purchase Order is not found!\", result);\n }",
"@Test\n\tpublic void closeOrderTest() { \n\t\ttry{\n\t\t\tsalesOrderCtrl.createSalesOrder();\n\t\t\tint before = salesOrderDB.findAll().size();\n\t\t\tsalesOrderCtrl.closeSalesOrder();\n\t\t\tassertNotEquals(before, salesOrderDB.findAll().size());\n\t\t\tassertNull(salesOrderCtrl.getOrder());\n\t\t}catch(Exception e){\n\t\t\te.getMessage();\n\t\t}\n\t}",
"@Test\n public void buy() {\n System.out.println(client.purchase(1, 0, 1));\n }",
"@Test\n public void testOrderFactoryGetOrder() {\n OrderController orderController = orderFactory.getOrderController();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n // add a menu item to the menu\n menuFactory.getMenu().addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n\n // order 3 of the menu item\n HashMap<MenuItem, Integer> orderItems = new HashMap<>();\n HashMap<SetItem, Integer> setOrderItems = new HashMap<>();\n orderItems.put(menuFactory.getMenu().getMenuItem(1), 3);\n\n // create the order\n orderController.addOrder(STAFF_NAME, 1, false, orderItems, setOrderItems);\n assertEquals(1, orderController.getOrders().size());\n assertEquals(STAFF_NAME, orderController.getOrder(1).getStaffName());\n assertEquals(1, orderController.getOrder(1).getTableId());\n assertEquals(3, orderController.getOrder(1).getOrderedMenuItems().get(menuFactory.getMenu().getMenuItem(1)));\n }",
"@Test\n public void test2_saveProductToOrder() {\n ProductDTO productDTO= new ProductDTO();\n productDTO.setSKU(UUID.randomUUID().toString());\n productDTO.setName(\"ORANGES\");\n productDTO.setPrice(new BigDecimal(40));\n productService.saveProduct(productDTO,\"test\");\n\n //get id from product and order\n long productId = productService.getIdForTest();\n long orderId = orderService.getIdForTest();\n\n OrderDetailDTO orderDetailDTO = new OrderDetailDTO();\n orderDetailDTO.setOrderId(orderId);\n orderDetailDTO.setProductId(productId);\n String res = orderService.saveProductToOrder(orderDetailDTO,\"test\");\n assertEquals(null,res);\n }",
"void createOrder(List<Product> products, Customer customer);",
"public static Product[] createOrder()\n {\n Order order = new Order();\n Random r = new Random();\n int x;\n order.orderNumber++;\n int itemCount = 1 + r.nextInt(50);\n order.orderContents = new Product[itemCount];\n for (x = 0 ; x < itemCount; x++){\n Product item = productMaker.generateProduct();\n order.orderContents[x] = item;\n }\n\n return order.orderContents;\n\n }",
"@Test\r\n\tpublic void testMakePurchase_not_enough_money() {\r\n\t\tassertEquals(false, vendMachine.makePurchase(\"A\"));\r\n\t}",
"@Test\r\n @Rollback(true)\r\n public void testCreateOrder_ValidOrderRequest() {\r\n System.out.println(\"createOrder\");\r\n String referer = \"\";\r\n OrderRequest orderRequest = new OrderRequest();\r\n BindingResult result_2 = null;\r\n HttpSession session = new MockHttpSession();\r\n ShoppingCart cart = new ShoppingCart();\r\n session.setAttribute(LoginController.ACCOUNT_ATTRIBUTE, new Integer(1));\r\n session.setAttribute(ShoppingCartController.SHOPPING_CART_ATTRIBUTE_NAME, cart);\r\n String expResult = \"redirect:/myAccountView.htm\";\r\n String result = controller.createOrder(referer, orderRequest, result_2, session, redirect);\r\n assertEquals(expResult, result);\r\n assertNull(session.getAttribute(ShoppingCartController.SHOPPING_CART_ATTRIBUTE_NAME));\r\n }",
"@Test\r\n public void customerService() {\r\n Customer customer;\r\n customerCrudService = (CustomerCrudService)ctx.getBean(\"customerCrudService\");\r\n \r\n Contact contact = ContactFactory.getContact(\"mphokazi@gmail.com\", \"0785566321\", \"0218897190\");\r\n Demography demo = DemographyFactory.getDemography(\"Female\", \"Black\", new Date(10/6/1986));\r\n \r\n BigDecimal sellingPrice = new BigDecimal(\"8.00\");\r\n BigDecimal broughtPrice = new BigDecimal(\"6.00\");\r\n BigDecimal profit = new BigDecimal(\"2.00\");\r\n ArrayList prices = new ArrayList<BigDecimal>();\r\n prices.add(sellingPrice);\r\n prices.add(broughtPrice);\r\n prices.add(profit);\r\n Item item = ItemFactory.getItem(\"PS\", prices);\r\n \r\n List items = new ArrayList<Item>();\r\n items.add(items);\r\n \r\n customer = new CustomerFactory\r\n .Builder(125)\r\n .CustomerName(\"Mphokazi\")\r\n .CustomerSurname(\"Mhlontlo\")\r\n .Contact(contact)\r\n .Demography(demo)\r\n .OrderItem(items)\r\n .build();\r\n \r\n customerCrudService.persist(customer);\r\n customerService = (CustomerServices)ctx.getBean(\"customerService\");\r\n List<OrderItem> orderItems = customerService.customerOrder(customer.getId());\r\n Assert.assertNotNull(orderItems);\r\n for (OrderItem orderItem : orderItems) {\r\n System.out.println(orderItem.getItem());\r\n \r\n \r\n } \r\n }",
"@Override\n\tpublic OrderResponseDto createOrder(OrderRequestDto orderRequestDto) {\n\t\tLOGGER.info(\"Enter into order service impl\");\n\n\t\tOptional<Stocks> stock = stockRepository.findById(orderRequestDto.getStockId());\n\t\tOptional<User> user = userRepository.findById(orderRequestDto.getUserId());\n\n\t\tif (!stock.isPresent())\n\t\t\tthrow new CommonException(TradingConstants.ERROR_STOCK_NOT_FOUND);\n\t\tif (!user.isPresent())\n\t\t\tthrow new CommonException(TradingConstants.ERROR_USER_NOT_FOUND);\n\t\tif (orderRequestDto.getStockQuantity() >= 100)\n\t\t\tthrow new CommonException(TradingConstants.ERROR_QUANTITY);\n\t\tDouble brokeragePercent = Double.valueOf(stock.get().getBrokerageAmount() / 100d);\n\t\tDouble brokerageAmount = stock.get().getStockPrice() * orderRequestDto.getStockQuantity() + brokeragePercent;\n\t\tDouble totalPrice = stock.get().getStockPrice() * orderRequestDto.getStockQuantity() + brokerageAmount;\n\n\t\tOrders orders = Orders.builder().stockId(stock.get().getStockId())\n\t\t\t\t.stockQuantity(orderRequestDto.getStockQuantity()).totalPrice(totalPrice)\n\t\t\t\t.stockStatus(StockStatus.P.toString()).userId(orderRequestDto.getUserId()).build();\n\t\torderRepository.save(orders);\n\t\tResponseEntity<GlobalQuoteDto> latest = latestStockPrice(stock.get().getStockName());\n\t\treturn new OrderResponseDto(orders.getOrderId(), stock.get().getStockPrice(),\n\t\t\t\tlatest.getBody().getGlobalQuote().getPrice());\n\t}",
"@Test\n public void createOrder(){\n String result = myService.createOrder(\"100100\", \"黄丹丹\");\n System.out.println(result);\n }",
"@Test\n void createProductStockTest() {\n CreateProductStockResponse createProductStockResponse = new CreateProductStockResponse();\n\n //Set behaviour\n Mockito.doReturn(createProductStockResponse).when(stockClient).createProductStock(Mockito.any(CreateProductStockRequest.class));\n\n //Execute\n stockService.createProductStock(ObjectFactory.generateSampleProduct(), 5);\n\n //Verify\n Mockito.verify(stockClient, Mockito.times(1)).createProductStock(Mockito.any(CreateProductStockRequest.class));\n }",
"@Test\n public void placeOrderTest() {\n Order body = new Order().id(10L)\n .petId(10L)\n .complete(false)\n .status(Order.StatusEnum.PLACED)\n .quantity(1);\n Order response = api.placeOrder(body);\n\n Assert.assertEquals(10L, response.getId().longValue());\n Assert.assertEquals(10L, response.getPetId().longValue());\n Assert.assertEquals(1, response.getQuantity().intValue());\n Assert.assertEquals(true, response.isComplete());\n Assert.assertEquals(Order.StatusEnum.APPROVED, response.getStatus());\n\n verify(exactly(1), postRequestedFor(urlEqualTo(\"/store/order\")));\n }",
"@Transactional\n public PurchaseViewModel generateInvoice(OrderViewModel order){\n //verify customer exists\n CustomerViewModel customer = new CustomerViewModel();\n try{\n customer = customerClient.getCustomer(order.getCustomerId());\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Please confirm that the customerId provided is correct and try the request again.\");\n }\n //set customer value\n PurchaseViewModel purchase = new PurchaseViewModel();\n purchase.setCustomer(customer);\n //generate invoice\n InvoiceViewModel invoice = new InvoiceViewModel();\n invoice.setCustomerId(order.getCustomerId());\n invoice = invoiceClient.createInvoice(invoice);\n //set invoiceId/date values\n purchase.setInvoiceId(invoice.getInvoiceId());\n purchase.setPurchaseDate(invoice.getPurchaseDate());\n //update inventories and generate purchaseItems(products + invoiceItems)\n purchase.setPurchaseDetails(verifyInStock(order.getOrderList(), invoice.getInvoiceId()));\n //calculate and update level-up points earned\n LevelUpEntry accountUpdate = calculateLevelUp(purchase.getPurchaseDetails());\n accountUpdate.setCustomerId(order.getCustomerId());\n\n System.out.println(\"Sending message...\");\n rabbit.convertAndSend(EXCHANGE, ROUTING_KEY, accountUpdate);\n System.out.println(\"Message sent\");\n\n return purchase;\n }",
"void newOrder();",
"void prepareOrder(int orderId);",
"@Test\n public void testCreateProductShouldCorrect() throws Exception {\n when(productRepository.existsByName(productRequest.getName())).thenReturn(false);\n when(productRepository.save(any(Product.class))).thenReturn(product);\n\n testResponseData(RequestInfo.builder()\n .request(post(PRODUCT_ENDPOINT))\n .token(adminToken)\n .body(productRequest)\n .httpStatus(HttpStatus.OK)\n .build());\n }",
"@Test\r\n\tpublic void testMakePurchase_enough_money() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tvendMachine.addItem(test, \"C\");\r\n\t\tvendMachine.insertMoney(10.0);\r\n\t\tassertEquals(true, vendMachine.makePurchase(\"A\"));\r\n\t}",
"public com.vodafone.global.er.decoupling.binding.request.PurchaseType createPurchaseType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PurchaseTypeImpl();\n }",
"@Override\n\tpublic void createOrder(OrderDto orderDto) {\n\t\tModelMapper modelMapper = new ModelMapper();\n\t\t\n\t\tmodelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);\n\t\t\n\t\tOrderEntity orderEntity = new OrderEntity();\n\t\t//\t\t= modelMapper.map(orderDto, OrderEntity.class);\n\t\t\n\t\t\n\t\torderEntity.setCustomerName(orderDto.getCustomer().getName());\n\t\torderEntity.setEmail(orderDto.getCustomer().getEmail());\n\t\torderEntity.setProductName(orderDto.getProduct().getName());\n\t\torderEntity.setDescription(orderDto.getProduct().getDescription());\n\t\torderEntity.setAmount(orderDto.getAmount());\n\t\torderEntity.setoId(orderDto.getoId());\n\t\torderRepository.save(orderEntity);\n\t\t\t\t\n\t}",
"NewOrderResponse newOrder(NewOrder order);",
"public void createOrder(Connection connection, Logger logger, String email) throws ApplicationRuntimeException, InvalidInputException {\n validator.validateEmailAddress(email);\n logger.info(\"Enter the product name\");\n listOfProduct = sc.next();\n userEntity.setEmail(email);\n if (userDao.emailPresent(userEntity, connection)) {\n orderEntity.setListOfProduct(listOfProduct);\n orderDao.addOrder(connection, listOfProduct, email);\n logger.info(\"Order placed\");\n } else {\n logger.warning(\"You are not registered customer\");\n }\n\n }",
"@Test\r\n public void testAddOrder() throws FlooringMasteryPersistenceException{\r\n firstTest = order1();\r\n secondTest = order2();\r\n\r\n assertEquals(firstTest, dao.getOrder(orderList, 1));\r\n\r\n assertEquals(secondTest, dao.getOrder(orderList, 2));\r\n\r\n }",
"@Test\n void whenOrderIdIsValid_thenReturnDelivery_findByOrderId(){\n Delivery delivery = deliveryService.getDeliveryByOrderId(1L);\n assertThat(delivery.getOrder_id()).isEqualTo(1L);\n }",
"public void testWriteOrders() throws Exception {\n }",
"String registerOrder(int userId, int quantity, int pricePerUnit, OrderType orderType);",
"private Boolean createOrder(String phoneEmployee, String phoneCustomer, HashMap<String, Integer> barcodes)\n {\n Boolean quit = false;\n\n try{\n Order order = orderController.createOrder(phoneEmployee, phoneCustomer, barcodes);\n System.out.println(\"Salg oprettet.\");\n System.out.println(\"\");\n printOrder(order);\n quit = true;\n } catch(Exception e){\n System.out.println(\"Salg kunne ikke oprettes.\");\n System.out.println(\"\");\n }\n\n return quit;\n }",
"@Test\n @Order(4)\n void create_account_2() {\n Account empty = service.createAccount(client.getId());\n Assertions.assertEquals(client.getId(), empty.getClientId());\n Assertions.assertNotEquals(-1, empty.getId());\n Assertions.assertEquals(0, empty.getAmount());\n client.addAccount(empty);\n }",
"@Test\n public void addOrderTest() {\n Orders orders = new Orders();\n orders.addOrder(order);\n\n Order test = orders.orders.get(0);\n String[] itemTest = test.getItems();\n String[] priceTest = test.getPrices();\n\n assertEquals(items, itemTest);\n assertEquals(prices, priceTest);\n }",
"@Override\n\tpublic boolean createOrderBill(OrderBill orderBill) {\n\t\treturn false;\n\t}",
"@Test\n\tpublic void saveOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLine \n\t\tOrderLine orderline_1 = new ecom.domain.OrderLine();\n\t\tservice.saveOrderLine(orderline_1);\n\t}",
"public void startNewPurchase() throws VerificationFailedException {\n\t}",
"public void startNewPurchase() throws VerificationFailedException {\n\t}",
"@Test\n public void test() {\n XssPayload payload = XssPayload.genDoubleQuoteAttributePayload(\"input\", true);\n helper.requireLoginAdmin();\n orderId = helper.createDummyOrder(payload.toString(), \"dummy\");\n helper.get(ProcedureHelper.ORDERS_EDIT_URL(orderId));\n assertPayloadNextTo(payload, \"clientName\");\n }",
"@Test\n public void testWriteOrderData() throws Exception {\n dao.loadEnvironmentVariable();\n Order writeOrder = new Order();\n\n writeOrder.setOrderNumber(1);\n writeOrder.setOrderDate(LocalDate.parse(\"1901-01-01\"));\n writeOrder.setCustomer(\"Write Test\");\n writeOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n writeOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n writeOrder.setArea(new BigDecimal(\"100.00\"));\n writeOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n writeOrder.setLaborCost(new BigDecimal(\"475.00\"));\n writeOrder.setTaxCost(new BigDecimal(\"61.88\"));\n writeOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n dao.addOrder(writeOrder);\n dao.writeOrderData();\n\n File orderFile = new File(System.getProperty(\"user.dir\") + \"/Orders_01011901.txt\");\n\n assertTrue(orderFile.exists());\n\n Files.deleteIfExists(Paths.get(System.getProperty(\"user.dir\") + \"/Orders_01011901.txt\"));\n\n }",
"@Test\n public void testOrderFactoryInvoice() {\n OrderController orderController = orderFactory.getOrderController();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n // add a menu item to the menu\n menuFactory.getMenu().addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n\n // order 3 of the menu item\n HashMap<MenuItem, Integer> orderItems = new HashMap<>();\n HashMap<SetItem, Integer> setOrderItems = new HashMap<>();\n orderItems.put(menuFactory.getMenu().getMenuItem(1), 3);\n\n // create the order\n orderController.addOrder(STAFF_NAME, 1, false, orderItems, setOrderItems);\n \n // create the invoice\n orderController.addOrderInvoice(orderController.getOrder(1));\n\n // check that the invoice is created\n assertEquals(1, orderController.getOrderInvoices().size());\n }",
"@Test\n @Transactional\n public void createOrderItem() throws Exception {\n assertThat(orderItemRepository.findAll()).hasSize(0);\n\n // Create the OrderItem\n restOrderItemMockMvc.perform(post(\"/api/orderItems\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(orderItem)))\n .andExpect(status().isCreated());\n\n // Validate the OrderItem in the database\n List<OrderItem> orderItems = orderItemRepository.findAll();\n assertThat(orderItems).hasSize(1);\n OrderItem testOrderItem = orderItems.iterator().next();\n assertThat(testOrderItem.getBudget_id()).isEqualTo(DEFAULT_BUDGET_ID);\n assertThat(testOrderItem.getBudgetItem_id()).isEqualTo(DEFAULT_BUDGET_ITEM_ID);\n assertThat(testOrderItem.getProductFeadute_id()).isEqualTo(DEFAULT_PRODUCT_FEADUTE_ID);\n assertThat(testOrderItem.getQuote_id()).isEqualTo(DEFAULT_QUOTE_ID);\n assertThat(testOrderItem.getQuoteItem_id()).isEqualTo(DEFAULT_QUOTE_ITEM_ID);\n assertThat(testOrderItem.getQuantity()).isEqualTo(DEFAULT_QUANTITY);\n assertThat(testOrderItem.getUnitPrice()).isEqualTo(DEFAULT_UNIT_PRICE);\n assertThat(testOrderItem.getUnitListPrice()).isEqualTo(DEFAULT_UNIT_LIST_PRICE);\n assertThat(testOrderItem.getUnitAverageCost()).isEqualTo(DEFAULT_UNIT_AVERAGE_COST);\n assertThat(testOrderItem.getEstimatedDeliveryDate().toDateTime(DateTimeZone.UTC)).isEqualTo(DEFAULT_ESTIMATED_DELIVERY_DATE);\n assertThat(testOrderItem.getItemDescription()).isEqualTo(DEFAULT_ITEM_DESCRIPTION);\n assertThat(testOrderItem.getCorrespondingPo_id()).isEqualTo(DEFAULT_CORRESPONDING_PO_ID);\n }",
"private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }",
"public Order create(Order order) {\n\t\tthis.orderRepository.save(order);\n\t\tfor (Product product : order.getProducts()) {\n\t\t\tproduct.setOrder(order);\n\t\t\tthis.productService.create(product);\n\t\t}\n\t\treturn order;\n\t}",
"@Test\n\tpublic void testAdminCreate() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(05, \"new acc\", 00001, 100.00, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Created\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to create account as admin\", testResult);\n\t}",
"@Test\r\n\tpublic void testOrderPerform() {\n\t}",
"@Test\n public void addToCart() throws Exception {\n\n ReadableProducts product = super.readyToWorkProduct(\"addToCart\");\n assertNotNull(product);\n\n PersistableShoppingCartItem cartItem = new PersistableShoppingCartItem();\n cartItem.setProduct(product.getId());\n cartItem.setQuantity(1);\n\n final HttpEntity<PersistableShoppingCartItem> cartEntity =\n new HttpEntity<>(cartItem, getHeader());\n final ResponseEntity<ReadableShoppingCart> response =\n testRestTemplate.postForEntity(\n String.format(\"/api/v1/cart/\"), cartEntity, ReadableShoppingCart.class);\n\n // assertNotNull(response);\n // assertThat(response.getStatusCode(), is(CREATED));\n\n }",
"@Test\n\t@Ignore(\"Order no compila porque solicita un int, pero en la base de datos lo inserta sobre un string\")\n\tpublic void testValidateOrderC4() {\n\t\tUser user = new User(\"U-aaaaa-000\", \"Usuario\", \"Usuario1\", \"12213428H\", Date.valueOf(\"2017-04-24\"), User.PID);\n\t\tOrder order = new Order(\"O-aaaaa-000\", Order.WAITTING, user, \"U-eftgk-234\");\n\t\tItem item = new Item(\"I-aaaaa-000\", \"producto\", \"Descripcion del producto\", \"cosas\", 50, Date.valueOf(\"2000-01-01\"));\n\t\tLine line = new Line(2, 19.99f, item);\n\t\torder.addLine(line);\n\t\t\n\t\tPurchase purchase = new Purchase(\"V-aaaaa-000\", order, Date.valueOf(\"2017-05-04\"), 0.2f);\n\t\t\n\t\tassertFalse(testClass.validateOrder(purchase, true));\n\t}",
"@Override\n public Order create(Order order) {\n this.orders.add(order);\n save();\n return order;\n }",
"public void startOrder() {\r\n this.o= new Order();\r\n }",
"@POST\n @Consumes(\"application/json\")\n public Response createPO(PurchaseOrderEJBDTO po) {\n int pono = pfb.addPO(po);\n URI uri = context.getAbsolutePath();\n return Response.created(uri).entity(pono).build();\n }",
"@Test\n\tpublic void saveOrderLineProduct() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLineProduct \n\t\tInteger id_1 = 0;\n\t\tProduct related_product = new ecom.domain.Product();\n\t\tOrderLine response = null;\n\t\tresponse = service.saveOrderLineProduct(id_1, related_product);\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveOrderLineProduct\n\t}",
"@Override\n @Transactional\n public OrderDTO createOrder(OrderDTO orderDTO) {\n\n String orderId = KeyUtil.genUniqueKey();\n BigDecimal orderAmount = new BigDecimal(BigInteger.ZERO);\n// List<CartDTO> cartDTOList = new ArrayList<>();\n //1.\n for (OrderDetail orderDetail : orderDTO.getOrderDetailList()) {\n ProductInfo productInfo = productInfoService.findOne(orderDetail.getProductId());\n if (productInfo == null) {\n throw new ProjectException(ResultEnum.PRODUCT_NOT_EXIST);\n }\n\n //2.\n orderAmount = productInfo.getProductPrice()\n .multiply(new BigDecimal(orderDetail.getProductQuantity()))\n .add(orderAmount);\n //3. orderDetail db insertion\n orderDetail.setDetailId(KeyUtil.genUniqueKey());\n orderDetail.setOrderId(orderId);\n BeanUtils.copyProperties(productInfo, orderDetail);\n orderDetailRepository.save(orderDetail);\n// CartDTO cartDTO = new CartDTO(orderDetail.getProductId(), orderDetail.getProductQuantity());\n// cartDTOList.add(cartDTO);\n }\n\n //3. orderMaster\n OrderMaster orderMaster = new OrderMaster();\n orderDTO.setOrderId(orderId);\n BeanUtils.copyProperties(orderDTO, orderMaster);\n orderMaster.setOrderAmount(orderAmount);\n orderMaster.setOrderStatus(OrderStatusEnum.NEW.getCode());\n orderMaster.setPayStatus(PayStatusEnum.WAIT.getCode());\n orderMasterRepository.save(orderMaster);\n\n //4.\n List<CartDTO> cartDTOList = orderDTO.getOrderDetailList().stream().map(e ->\n new CartDTO(e.getProductId(), e.getProductQuantity())\n ).collect(Collectors.toList());\n\n productInfoService.decreaseInventory(cartDTOList);\n\n return orderDTO;\n }",
"@Step(\"Creating a new Clinical Purchase Requisitions for a Work Order\")\n public void verifyCreatingNewPurchaseRequistion() throws Exception {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n pageActions.scrollthePage(ClinicalPurchaseRequisitionsTab);\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(ClinicalPurchaseRequisitionsTab));\n functions.highlighElement(driver, ClinicalPurchaseRequisitionsTab);\n pageActions.clickAt(ClinicalPurchaseRequisitionsTab, \"Clicking on purchase requistions tab\");\n pageActions.clickAt(clinicalPurchaseReqNewButton, \"Clicking on purchase requistions New buttton\");\n String randomExternalPO_Number = \"Test\"+Functions.getTimeStamp();\n pageActions.type(externalPO_Number, randomExternalPO_Number, \"Entered Clicnical PO Number\");\n clinicalPurchaseShortDescription.sendKeys(\"Automation externalPO_Numbner desc\");\n pageActions.clickAt(clinicalPurchaseSubmitButton, \"Clicking on SubmitButton\");\n pageActions.clickAt(saveAndGoButton, \"Clicked on save and go button\");\n searchExternalPONumber();\n\n }",
"@Test\n public void testReadProductAndTaxDaoCorrectly() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n service.calculateNewOrderDataInput(newOrder);\n\n Assert.assertEquals(newOrder.getTaxRate(), (new BigDecimal(\"6.25\")));\n Assert.assertEquals(newOrder.getCostPerSquareFoot(), (new BigDecimal(\"5.15\")));\n Assert.assertEquals(newOrder.getLaborCostPerSquareFoot(), (new BigDecimal(\"4.75\")));\n\n }",
"@Test\r\n\tpublic void testMakePurchase_empty_slot() {\r\n\t\tassertEquals(false, vendMachine.makePurchase(\"D\"));\r\n\t}",
"@Test\n public void testAddOrder() throws Exception {\n String stringDate1 = \"06272017\";\n LocalDate date = LocalDate.parse(stringDate1, DateTimeFormatter.ofPattern(\"MMddyyyy\"));\n\n Orders order1 = new Orders(2);\n order1.setOrderNumber(2);\n order1.setDate(date);\n order1.setCustomerName(\"Joel\");\n order1.setArea(new BigDecimal(\"250\"));\n Tax tax1 = new Tax(\"PA\");\n tax1.setState(\"PA\");\n order1.setTax(tax1);\n Product product1 = new Product(\"Wood\");\n product1.setProductType(\"Wood\");\n order1.setProduct(product1);\n service.addOrder(order1);\n\n assertEquals(new BigDecimal(\"4.75\"), service.getOrder(order1.getDate(), order1.getOrderNumber()).getProduct().getLaborCostPerSqFt());\n assertEquals(new BigDecimal(\"6.75\"), service.getOrder(order1.getDate(), order1.getOrderNumber()).getTax().getTaxRate());\n\n//Testing with invalid data\n Orders order2 = new Orders(2);\n order2.setOrderNumber(2);\n order2.setDate(date);\n order2.setCustomerName(\"Eric\");\n order2.setArea(new BigDecimal(\"250\"));\n Tax tax2 = new Tax(\"MN\");\n tax2.setState(\"MN\");\n order2.setTax(tax2);\n Product product = new Product(\"Carpet\");\n product.setProductType(\"Carpet\");\n order2.setProduct(product);\n try {\n service.addOrder(order2);\n fail(\"Expected exception was not thrown\");\n } catch (FlooringMasteryPersistenceException | InvalidProductAndStateException | InvalidProductException | InvalidStateException e) {\n }\n\n }",
"CommonResponse savePurchaseOrder(PurchaseOrderHeader purchaseOrderHeader, SecurityContext securityContext);",
"public void createInvoice() {\n\t}",
"@Before\n\tpublic void setup() {\n\t\torder = new Order();\n\t\torder.setOrderdate(java.util.Calendar.getInstance().getTime());\n\t\torder.setTotalPrice(Double.valueOf(\"1500.99\"));\n\t\t\n\t\tshoppingCartdetails = new ShoppingCartDetails();\n\t\tshoppingCartdetails.setProductId(12345);\n\t\tshoppingCartdetails.setPrice(Double.valueOf(\"153.50\"));\n\t\tshoppingCartdetails.setQuantity(3);\n\t\tshoppingCartdetails.setShoppingCart(shoppingCart);\n\t\t\n\t\tshoppingCartSet.add(shoppingCartdetails);\n\t\t\n\t\tshoppingCartdetails = new ShoppingCartDetails();\n\t\tshoppingCartdetails.setProductId(45738);\n\t\tshoppingCartdetails.setPrice(Double.valueOf(\"553.01\"));\n\t\tshoppingCartdetails.setQuantity(1);\n\t\tshoppingCartdetails.setShoppingCart(shoppingCart);\n\t\t\n\t\tshoppingCartSet.add(shoppingCartdetails);\n\t}",
"@Test(groups = \"Transactions Tests\", description = \"Create new transaction\")\n\tpublic void createNewTransaction() {\n\t\tMainScreen.clickAccountItem(\"Income\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Salary\");\n\t\tTransactionsScreen.clickAddTransactionBtn();\n\t\tTransactionsScreen.typeTransactionDescription(\"Extra income\");\n\t\tTransactionsScreen.typeTransactionAmount(\"300\");\n\t\tTransactionsScreen.clickTransactionType();\n\t\tTransactionsScreen.typeTransactionNote(\"Extra income from this month\");\n\t\tTransactionsScreen.clickSaveBtn();\n\t\tTransactionsScreen.transactionItem(\"Extra income\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$300\"));\n\t\ttest.log(Status.PASS, \"Sub-account created successfully and the value is correct\");\n\n\t\t//Testing if the transaction was created in the 'Double Entry' account, if the value is correct and logging the result to the report\n\t\treturnToHomeScreen();\n\t\tMainScreen.clickAccountItem(\"Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Current Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Cash in Wallet\");\n\t\tTransactionsScreen.transactionItem(\"Extra income\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$300\"));\n\t\ttest.log(Status.PASS, \"'Double Entry' account also have the transaction and the value is correct\");\n\n\t}",
"ShipmentItemBilling createShipmentItemBilling();",
"public Order(int _orderId){\n this.orderId = _orderId;\n }",
"@Test\n\tpublic void createAccTest() {\n\t\tCustomer cus = new Customer(\"wgl\", myDate, \"Beijing\");\n\t\tbc.createAccount(cus, 1);\n\t\tassertEquals(1, cus.getAccList().size());\n\t}"
] | [
"0.7701943",
"0.7482174",
"0.71798384",
"0.71595186",
"0.707907",
"0.7044518",
"0.68174434",
"0.67902005",
"0.6741791",
"0.6709394",
"0.6692119",
"0.66737527",
"0.6595814",
"0.6589872",
"0.6568158",
"0.64757735",
"0.6475703",
"0.6462141",
"0.645585",
"0.6425044",
"0.63253915",
"0.6320284",
"0.6287699",
"0.6241707",
"0.6239624",
"0.6235479",
"0.61848223",
"0.61791486",
"0.61590064",
"0.61294746",
"0.6112091",
"0.61118996",
"0.6083972",
"0.60834914",
"0.6077435",
"0.6076082",
"0.60706645",
"0.60651267",
"0.60613245",
"0.60515857",
"0.60352796",
"0.6023362",
"0.601744",
"0.6009415",
"0.59907365",
"0.5985359",
"0.59513104",
"0.5942584",
"0.5941852",
"0.5937122",
"0.59284186",
"0.5916709",
"0.59102756",
"0.58857644",
"0.5880014",
"0.58712995",
"0.5868095",
"0.5866499",
"0.5866051",
"0.5864106",
"0.58603525",
"0.5854716",
"0.58529574",
"0.5849933",
"0.5844239",
"0.58432746",
"0.58378303",
"0.58323646",
"0.5831286",
"0.58299804",
"0.5829405",
"0.58238155",
"0.58117676",
"0.58117676",
"0.5800906",
"0.57988644",
"0.57961637",
"0.57952887",
"0.57898605",
"0.5783076",
"0.57599604",
"0.5757421",
"0.57550377",
"0.5746864",
"0.57293427",
"0.57193553",
"0.5708831",
"0.5706724",
"0.5702297",
"0.56998134",
"0.56882846",
"0.5687275",
"0.5686723",
"0.5685659",
"0.5684764",
"0.56822026",
"0.5674157",
"0.56666994",
"0.56595814",
"0.5637526"
] | 0.83504236 | 0 |
Test of confirmPurchaseOrder method, of class PurchaseOrderManagementModule. | @Test
public void testConfirmPurchaseOrder() throws Exception {
System.out.println("confirmPurchaseOrder");
String userId = "F1000001";
Long purchaseOrderId = 1L;
String result = PurchaseOrderManagementModule.confirmPurchaseOrder(userId, purchaseOrderId);
assertEquals("Purchase Order Confirmed!", result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}",
"@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}",
"@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}",
"@Test(groups = {\"smoke tests\"})\n public void validPurchase() {\n page.GetInstance(CartPage.class)\n .clickProceedToCheckoutButton() //to OrderAddressPage\n .clickProceedToCheckoutButton() //to OrderShippingPage\n .acceptTermsAndProceedToCheckout() //to OrderPaymentPage\n .clickPayByBankWireButton() //to OrderSummaryPage\n .clickIConfirmMyOrderButton(); //to OrderConfirmationPage\n\n // Then\n page.GetInstance(OrderConfirmationPage.class).confirmValidOrder(\"Your order on My Store is complete.\");\n }",
"@Override\n\tpublic String confirmOrder(int oid, int code) {\n \n\t\tOrder order = orderRepo.findById(oid).get();\n\t\tUser user = order.getUser();\n\t\t\n\t\tSystem.out.println(\"code at conifrmOdrer \"+user.getVerficationCode()+\" matches with int code \"+code);\n\t\tif (user.getVerficationCode() == code) {\n\t\t\tfor (Cart c : user.getCart()) {\n\t\t\t\tcartRepo.delete(c);\n\t\t\t}\n\t\t\tuser.getCart().clear();\n\t\t\torder.setPaymentStatus(\"Success\");\n\t\t\temailService.sendConfirmationMail(user, oid); //Order Information sent to Email.\n\t\t\treturn \"Order successfull\";\n\t\t} else {\n\t\t\torder.setPaymentStatus(\"Failed\");\n\t\t\tfor (Cart c : user.getCart()) {\n\t\t\t\tc.getProduct().setStock(c.getProduct().getStock()+c.getQuantity());\n\t\t\t}\t\t\t\n\t\t\treturn \"Order not successfull\";\n\t\t }\n\t\t\n\t\t\n\n\t}",
"@Then(\"^verify order is placed successfully in Order History$\")\r\n\tpublic void verifyOrderHistory() throws Exception {\n\t assertTrue(new ProductCheckout(driver).isOrderPlaced());\r\n\t}",
"OrderFullDao confirmOrder(String orderNr, String status, Long businessId);",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"@Test\n public void testCreatePurchaseOrder() throws Exception {\n System.out.println(\"createPurchaseOrder\");\n Long factoryId = 1L;\n Long contractId = 2L;\n Double purchaseAmount = 4D;\n Long storeId = 2L;\n String destination = \"store\";\n Calendar deliveryDate = Calendar.getInstance();\n deliveryDate.set(2015, 0, 13);\n Boolean isManual = false;\n Boolean isToStore = true;\n PurchaseOrderEntity result = PurchaseOrderManagementModule.createPurchaseOrder(factoryId, contractId, purchaseAmount, storeId, destination, deliveryDate, isManual, isToStore);\n assertNotNull(result);\n }",
"@Test(dependsOnMethods = \"checkSiteVersion\")\n public void createNewOrder() {\n actions.openRandomProduct();\n\n // save product parameters\n actions.saveProductParameters();\n\n // add product to Cart and validate product information in the Cart\n actions.addToCart();\n actions.goToCart();\n actions.validateProductInfo();\n\n // proceed to order creation, fill required information\n actions.proceedToOrderCreation();\n\n // place new order and validate order summary\n\n // check updated In Stock value\n }",
"private void confirmDrugOrder(String paySerialNumber) {\r\n\r\n showNetworkCacheCardView();\r\n lockPayNowOrHavePayButton(BEING_VERIFICATION);\r\n String requestAction = \"confirmOrder\";\r\n String parameter = \"&paySerialNumber=\" + paySerialNumber;\r\n HttpUtil.sendOkHttpRequest(requestAction, parameter, new Callback() {\r\n @Override\r\n public void onFailure(Call call, IOException e) {\r\n //because of network,the client can't recive message,but has success.\r\n closeNetworkCacheCardView();\r\n showErrorCardView(ACCESS_TIMEOUT);\r\n lockPayNowOrHavePayButton(ACCESS_TIMEOUT);\r\n }\r\n\r\n @Override\r\n public void onResponse(Call call, Response response) throws IOException {\r\n message = gson.fromJson(response.body().string(), Message.class);\r\n closeNetworkCacheCardView();\r\n if (message.isSuccess()) {\r\n // show pay success\r\n showPaySuccessCardView();\r\n lockPayNowOrHavePayButton(HAVE_PAY);\r\n } else {\r\n // other problems.it cause update fail\r\n showErrorCardView(UNKNOWN_ERROR);\r\n lockPayNowOrHavePayButton(UNKNOWN_ERROR);\r\n }\r\n }\r\n });\r\n\r\n }",
"Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);",
"public void confirmPrepared() {\n getCurrentOrder().setPrepared(true);\n getRestaurant().getOrderSystem().preparedOrder(getCurrentOrder());\n EventLogger.log(\"Order #\" + getCurrentOrder().getOrderNum() + \" has been prepared by chef \" + this.getName());\n doneWithOrder();\n }",
"public static Result confirmOrder(Orders orderObj){\n \n Result result = Result.FAILURE_PROCESS;\n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceBundle rs = ResourceBundle.getBundle(\"com.generic.resources.mysqlQuery\");\n Connection conn = mysql.getConnection();\n PreparedStatement preStat;\n boolean isSuccessInsertion;\n \n// if(!Checker.isValidDate(date))\n// return Result.FAILURE_CHECKER_DATE;\n\n try{ \n String order_id = Util.generateID();\n \n preStat = conn.prepareStatement(rs.getString(\"mysql.order.update.insert.1\"));\n preStat.setString(1, order_id);\n preStat.setString(2, \"1\" );\n preStat.setInt(3, 0);\n preStat.setLong(4, orderObj.getDate());\n preStat.setLong(5, orderObj.getDelay());\n preStat.setString(6, orderObj.getNote());\n preStat.setDouble(7, -1);\n preStat.setString(8, orderObj.getUserAddressID());\n preStat.setString(9, orderObj.getDistributerAddressID());\n \n \n if(preStat.executeUpdate()==1){\n List<OrderProduct> orderProductList = orderObj.getOrderProductList();\n isSuccessInsertion = orderProductList.size()>0;\n\n // - * - If process fail then break operation\n insertionFail:\n for(OrderProduct orderProduct:orderProductList){\n preStat = conn.prepareStatement(rs.getString(\"mysql.orderProduct.update.insert.1\"));\n preStat.setString(1, order_id);\n preStat.setString(2, orderProduct.getCompanyProduct_id());\n preStat.setDouble(3, orderProduct.getQuantity());\n\n if(preStat.executeUpdate()!=1){\n isSuccessInsertion = false;\n break insertionFail;\n }\n }\n\n // - * - Return success\n if(isSuccessInsertion){\n mysql.commitAndCloseConnection();\n return Result.SUCCESS.setContent(\"Siparişiniz başarılı bir şekilde verilmiştir...\");\n }\n\n // - * - If operation fail then rollback \n mysql.rollbackAndCloseConnection();\n }\n\n } catch (Exception ex) {\n mysql.rollbackAndCloseConnection();\n Logger.getLogger(DBOrder.class.getName()).log(Level.SEVERE, null, ex);\n return Result.FAILURE_PROCESS.setContent(ex.getMessage());\n } finally {\n mysql.closeAllConnection();\n } \n\n return result;\n }",
"public boolean VerifyOrderDetails_OrderConfirmation(){\n\tboolean flag = false;\n\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PAYMENTCONFIRMATION_LABEL).isDisplayed();\n\tif(flag){extentLogs.passWithCustom(\"VerifyOrderDetails\", \"PAYMENTCONFIRMATION_LABEL\");\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.ORDERNUMBER_LABEL).isDisplayed();\n\t\tif(flag){\n\t\t\textentLogs.passWithCustom(\"VerifyOrderDetails\", \"OrderNumberLabelIsDisplayed\");\n\t\t}else{extentLogs.fail(\"VerifyOrderDetails\", \"OrderNumberLabelIsNotDisplayed\");}\n\t}else{extentLogs.fail(\"VerifyOrderDetails\", \"PAYMENTCONFIRMATION_LABEL\");}\n\t\n\treturn flag;\n\t}",
"@Test\n public void buy() {\n System.out.println(client.purchase(1, 0, 1));\n }",
"void finalConfirm(ITransaction trans,boolean confirmation, String userId);",
"@DirtiesDatabase\n\t@Test\n\tpublic void testSuccessfulReversePreAuthorization() {\n\t\torderPayment.setAuthorizationCode(AUTH_CODE1);\n\t\tGiftCertificateAuthorizationRequest authorizationRequest = createAuthorizationRequestFromOrderPayment(orderPayment);\n\n\t\tGiftCertificateTransactionResponse response = transactionService.preAuthorize(authorizationRequest, null);\n\t\t\n\t\torderPayment.setAuthorizationCode(response.getAuthorizationCode());\n\t\torderPayment.setReferenceId(response.getGiftCertificateCode());\n\n\t\torderPayment.setAmount(REGULAR_AUTH);\n\t\t\ttransactionService.reversePreAuthorization(orderPayment);\n\n\t\tassertEquals(BALANCE, transactionService.getBalance(giftCertificate));\n\t\t}",
"@Test\n\t@Ignore(\"Order no compila porque solicita un int, pero en la base de datos lo inserta sobre un string\")\n\tpublic void testValidateOrderC4() {\n\t\tUser user = new User(\"U-aaaaa-000\", \"Usuario\", \"Usuario1\", \"12213428H\", Date.valueOf(\"2017-04-24\"), User.PID);\n\t\tOrder order = new Order(\"O-aaaaa-000\", Order.WAITTING, user, \"U-eftgk-234\");\n\t\tItem item = new Item(\"I-aaaaa-000\", \"producto\", \"Descripcion del producto\", \"cosas\", 50, Date.valueOf(\"2000-01-01\"));\n\t\tLine line = new Line(2, 19.99f, item);\n\t\torder.addLine(line);\n\t\t\n\t\tPurchase purchase = new Purchase(\"V-aaaaa-000\", order, Date.valueOf(\"2017-05-04\"), 0.2f);\n\t\t\n\t\tassertFalse(testClass.validateOrder(purchase, true));\n\t}",
"public void testUsarCarta(){\n\t\tassertFalse(c1.haSidoUsada());\r\n\t\tc1.usarCarta();\r\n\t\tassertTrue(c1.haSidoUsada());\r\n\t\tc1.reiniciarCarta();\r\n\t\tassertFalse(c1.haSidoUsada());\r\n\t}",
"@Then(\"Order is placed successfully confirmed by screenshot\")\r\n public void successfulOrder() throws InterruptedException {\n ProductPage prodPage = new ProductPage(driver);\r\n prodPage.goToCartAfterProductAdding();\r\n //Finishing an order form cart\r\n CartAndOrderProcess cartAndOrderProcess = new CartAndOrderProcess(driver);\r\n cartAndOrderProcess.proceedToChekout();\r\n cartAndOrderProcess.addressContinue();\r\n cartAndOrderProcess.shippingContinue();\r\n cartAndOrderProcess.payByCheckAndOrder();\r\n // Taking screenshot of successfully placed order\r\n // Also checking order history to make sure that amount is the same in order history\r\n cartAndOrderProcess.takeScreenshot(driver);\r\n cartAndOrderProcess.checkOfTotalCostAndPaymentStatus();\r\n }",
"@Test\n public void shouldWithdrawTransportOrder() {\n Kernel kernel = getKernelFromSomewhere();\n\n // Get the transport order to be withdrawn.\n TransportOrder curOrder = getTransportOrderToWithdraw();\n // Withdraw the order.\n // The second argument indicates if the vehicle should finish the movements\n // it is already assigned to (false) or abort immediately (true).\n // The third argument indicates whether the vehicle's processing state should\n // be changed to UNAVAILABLE so it cannot be assigned another transport order\n // right after the withdrawal.\n kernel.withdrawTransportOrder(curOrder.getReference(), true, false);\n // end::documentation_withdrawTransportOrder[]\n }",
"@Test\n\tpublic void testOrder() {\n\t\t\n\t\tDateFormat df1 = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = df1 .parse(\"2021-10-15\");\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tshoppingCart = new ShoppingCart();\n\t\tshoppingCart.setExpiry(date);\n\t\tshoppingCart.setUserId(11491);\n\t\tshoppingCart.setItems(shoppingCartSet);\n\t\t\n\t\torder.setId(1);\n\t\torder.setShoppingCart(shoppingCart);\n\t\t\n\t\ttry {\n\t\t\tassertEquals(orderService.order(order), 1);\n\t\t\t\n\t\t} catch (OrderException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}",
"void purchaseMade();",
"String confirmPayment(String userName, String teamName, Payment payment) throws RemoteException,\n InterruptedException;",
"@Test (priority = 3)\n\t@Then(\"^Create Order$\")\n\tpublic void create_Order() throws Throwable {\n\t\tCommonFunctions.clickButton(\"wlnk_Home\", \"Sheet1\", \"Home\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLNK_OrderNewServices\", \"Sheet1\", \"Oreder New Service\", \"CLICK\");\n\t\t//Thread.sleep(3000);\n\t\tCommonFunctions.clickButton(\"WRD_complete\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Contine\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WCB_Additional\", \"Sheet1\", \"Additional\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_checkout\", \"Sheet1\", \"Checkout\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_completeOrder\", \"Sheet1\", \"complete order\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_PayNow\", \"Sheet1\", \"Pay Now\", \"CLICK\");\n\t\tCommonFunctions.checkObjectExist(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"NO\");\n\t\tCommonFunctions.clickButton(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"CLICK\");\n\t}",
"@Test\n\tpublic void closeOrderTest() { \n\t\ttry{\n\t\t\tsalesOrderCtrl.createSalesOrder();\n\t\t\tint before = salesOrderDB.findAll().size();\n\t\t\tsalesOrderCtrl.closeSalesOrder();\n\t\t\tassertNotEquals(before, salesOrderDB.findAll().size());\n\t\t\tassertNull(salesOrderCtrl.getOrder());\n\t\t}catch(Exception e){\n\t\t\te.getMessage();\n\t\t}\n\t}",
"private void AndOrderIsSentToKitchen() throws Exception {\n assert true;\n }",
"@Test\n\tpublic void testValidTransaction() {\n\t\t\n\t\tString customerCpr = \"111111-0000\";\n\t\tString merchantCpr = \"000000-1111\";\n\t\tString uuid = \"123412345\";\n\t\tdouble amount = 100;\n\t\t\n\t\tCustomer customer = new Customer(customerCpr,\"customer\",\"bankid\");\n\t\tCustomer merchant = new Customer(merchantCpr,\"merchant\",\"bankid\");\n\t\tdatabase.addCustomer(customer);\n\t\tdatabase.addCustomer(merchant);\n\t\tdatabase.addBarcode(customerCpr, uuid);\n\t\t\n\t\tTransactionRequest transRequest = new TransactionRequest(uuid,merchantCpr,amount,\"comment\");\n\t\tTransactionHandler transHandle = new TransactionHandler(transRequest);\n\t\t\n\t\tString verifyParticipants = transHandle.verifyTransactionParticipants();\n\t\tString transJMSMessage = transHandle.generateTransactionJMSRequest();\n\t\tdatabase.deleteCustomer(customerCpr);\n\t\tdatabase.deleteCustomer(merchantCpr);\n\n\t\tassertEquals(\"Transaction participants are valid\",verifyParticipants);\n\t\tassertEquals(transJMSMessage,customer.getBankId()+\" \"+ merchant.getBankId()+ \" \" + amount + \" \" + \"comment\");\n\t}",
"public boolean orderConfirm(int id) {\n\t\ttry {\n\t\t\tConnection conn=DB.getConn();\n\t\t\tPreparedStatement stmt=conn.prepareStatement(\"update orders set status='confirm' where id=?\");\n\t\t\tstmt.setInt(1,id);\n\t\t\tstmt.executeUpdate();\n\t\t\treturn true;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public void EditOrderTest() {\n wait.until(ExpectedConditions.visibilityOfElementLocated(editOrderQuantityLocator));\n WebElement editOrderQuantity = driver.findElement(editOrderQuantityLocator);\n editOrderQuantity.click();\n // Click on the checkout button\n By goToCheckOutBtnLocator = By.xpath(\"//div[@class='Basket-bf28b64c20927ec7']//button[contains(@class,'ccl-d0484b0360a2b432')]\");\n wait.until(ExpectedConditions.visibilityOfElementLocated(goToCheckOutBtnLocator));\n WebElement goToCheckOutBtn = driver.findElement(goToCheckOutBtnLocator);\n goToCheckOutBtn.click();\n // Check that the order added to the basket\n By basketSectionSummaryLocator = By.className(\"ccl-9aab795066526b4d ccl-24c197eb36c1c3d3\");\n wait.until(ExpectedConditions.visibilityOfElementLocated(basketSectionSummaryLocator));\n\n }",
"Order sendNotificationNewOrder(Order order);",
"@Test\n\tpublic void testProcessInventoryUpdateOrderCancellation() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryDao2).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_DEALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}",
"public abstract boolean confirm();",
"void confirm();",
"@Test(dependsOnMethods = {\"searchItem\"})\n\tpublic void purchaseItem() {\n\t\tclickElement(By.xpath(item.addToCar));\n\t\twaitForText(By.id(item.cartButton), \"1\");\n\t\tclickElement(By.id(item.cartButton));\n\t\t// on checkout screen validating the title and price of item is same as what we selected on search result page by text.\n\t\tAssert.assertTrue(isPresent(locateElement(By.xpath(item.priceLocator(price)))));\n\t\tAssert.assertTrue(isPresent(locateElement(By.xpath(item.titlelocator(title)))));\t\n\t}",
"@Test\n public void testcancelwithrefund() //workon\n {\n\n BusinessManager businessManager = new BusinessManager();\n\n //how do i test void\n //how to i move to next thing\n //assertEquals(businessManager.cancelConfirm(\"yes\"), );\n\n }",
"void confirmRealWorldTrade(IUserAccount user, ITransaction trans);",
"@Override\n\tpublic void msgReadyToOrder(Customer customerAgent) {\n\t\t\n\t}",
"public void purchase() {\r\n\t\tdo {\r\n\t\t\tString id = getToken(\"Enter customer id: \");\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tint quantity = getInteger(\"Enter quantity to purchase: \");\r\n\t\t\tboolean purchased = store.purchaseWasher(id, brand, model, quantity);\r\n\t\t\tif (purchased) {\r\n\t\t\t\tSystem.out.println(\"Purchased \" + quantity + \" of \" + brand + \" \" + model + \" for customer \" + id);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Purchase unsuccessful.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Make another Purchase?\"));\r\n\t}",
"@Test\n public void testValidateNewOrderProduct() throws Exception {\n\n Order order3 = new Order(\"003\");\n order3.setCustomerName(\"Paul\");\n order3.setState(\"Ky\");\n order3.setTaxRate(new BigDecimal(\"6.75\"));\n order3.setArea(new BigDecimal(\"5.00\"));\n order3.setOrderDate(\"Date_Folder_Orders/Orders_06232017.txt\");\n order3.setProductName(\"tile\");\n order3.setMatCostSqFt(new BigDecimal(\"5.50\"));\n order3.setLaborCostSqFt(new BigDecimal(\"6.00\"));\n order3.setMatCost(new BigDecimal(\"50.00\"));\n order3.setLaborCost(new BigDecimal(\"500.00\"));\n order3.setOrderTax(new BigDecimal(\"50.00\"));\n order3.setTotalOrderCost(new BigDecimal(\"30000.00\"));\n\n assertEquals(true, service.validateNewOrderProduct(order3));\n }",
"@Test(description = \"TA - 290 Verify Order with 2 'Ready to Ship' Items with different SKU/sPurchase with Multishipment for Guest user\")\n\tpublic void verifyGuestOrderWithMutlishipment()throws InterruptedException{\n\t\tUIFunctions.addMultipleProducts(\"TumiTestData\",\"GuestDetails\");\n\t\tclick(minicart.getMiniCartSymbol(), \"Cart Image\");\n\t\tclick(minicart.getProceedCheckOut(), \"Proceed to Checkout\");\n\t\tclick(mainCart.getProceedCart(), \"Proceed to Checkout\");\n\t\tinput(singlePage.getEmailAddress(), testData.get(\"EmailID\"), \"Email ID\");\n\t\t//UIFunctions.waitForContinueToEnable();\n\t\tclick(singlePage.getContinueAsGuest(), \"Contiue as Guest\");\n\t\tUIFunctions.addMultiship();\n\t\tUIFunctions.addMultishipAddressWithCardDeatils(\"TumiTestData\",\"CreditCardDetailsMultishipmnet\");\n\t\tUIFunctions.completeOrder();\n\n\t\t\n\t}",
"@Override\n\tpublic void sendOrderConfirmationHtmlEmail(Order order) {\n\t\t\n\t}",
"@Override\n public void sure(OrderDetail orderDetail) {\n }",
"@RequestMapping(value = \"confirmpurchase/v1/wallets/{walletId}/serviceproviders/{spId}/widgets/{widgetId}\", method = RequestMethod.GET)\n public TicketPurchaseResponse confirmPurchaseV1(@PathVariable(value = \"walletId\") String walletId,\n @PathVariable(value = \"spId\") String spId, @PathVariable(value = \"widgetId\") String widgetId) {\n LOG.info(\"########confirmPurchaseV1 started\");\n TicketPurchaseResponse ticketPurchaseResponse = null;\n String result = \"Success\";\n String productRef;\n GenerateProductIDResponse generateProductIDResponse;\n String status = \"success\";\n try {\n /* MIFAREHttpClient mifareClient = new MIFAREHttpClient(DIGITIZE_BASE_URI, GENERATE_PRODUCT_REFERENCE); */\n // MIFAREHttpClient mifareClient = new MIFAREHttpClient.Builder().serviceURL(DIGITIZE_BASE_URI)\n // .apiURL(GENERATE_PRODUCT_REFERENCE).build();\n GenerateProductIDRequest request = new GenerateProductIDRequest();\n RequestContextV1 requestContext = new RequestContextV1();\n requestContext.setServiceProviderId(spId);\n String idRequest = \"\" + System.currentTimeMillis();\n requestContext.setCorrelationId(idRequest);\n requestContext.setRequestId(idRequest);\n request.setRequestContext(requestContext);\n Products products = new Products();\n products.setProductTypeId(widgetId);\n productRef = UUID.randomUUID().toString();\n products.setSpProductReference(productRef);\n request.setProductOrders(new ArrayList<>(Arrays.asList(products)));\n \n /** calling seglan service InitPurchaseOrder API if serviceProviderId is NAME_CRTM */\n if (spId.equals(configBean.getCrtmServiceProviderId())) {\n InitPurchaseOrderRequest InitPurchaseOrderRequest = new InitPurchaseOrderRequest();\n InitPurchaseOrderRequest.setDeviceId(\"1234\");\n InitPurchaseOrderRequest.setGoogleAccountId(\"gsrini@gmail.com\");\n InitPurchaseOrderRequest.setProduct(widgetId);\n InitPurchaseOrderResponse initPurchaseOrderResponse = crtmService.processInitPurchaseOrder(InitPurchaseOrderRequest);\n if (!initPurchaseOrderResponse.getResponseCode().equals(\"00\")) {\n status = \"failed\";\n result = \"failed\";\n }\n ticketPurchaseResponse = TicketPurchaseResponse.builder().status(status).ticketId(productRef)\n .digitalTicketId(initPurchaseOrderResponse.getM2gReference()).build();\n } else {\n Header[] headers = new Header[] {\n new BasicHeader(\"content-type\", ContentType.APPLICATION_JSON.getMimeType())};\n // generateProductIDResponse = mifareClient.invokePost(request, GenerateProductIDResponse.class, headers);\n generateProductIDResponse = utils.postRequestWithAbsoluteURL1(request, configBean, configBean.getDIGITIZE_BASE_URI() + configBean.getGENERATE_PRODUCT_REFERENCE(),\n GenerateProductIDResponse.class);\n ticketPurchaseResponse = TicketPurchaseResponse.builder()\n .status(generateProductIDResponse.getResponseContext().getResponseMessage()).ticketId(productRef)\n .digitalTicketId(generateProductIDResponse.getReferences().get(0).getM2gReference()).build();\n result = JsonUtil.toJSON(generateProductIDResponse);\n }\n LOG.info(\"########confirmPurchaseV1 result:\" + result);\n } catch (Exception e) {\n LOG.info(\"#Error occurred during confirm purchase:\" + e);\n result = \"failed\";\n LOG.info(\"########confirmPurchaseV1 result:\" + result);\n ticketPurchaseResponse = TicketPurchaseResponse.builder().status(result).build();\n }\n return ticketPurchaseResponse;\n }",
"void confirmTrans(ITransaction trans);",
"@Test\n public void testGetPO() throws Exception {\n System.out.println(\"getPO\");\n Long poId = -2L;\n String result = \"\";\n try {\n PurchaseOrderManagementModule.getPO(poId);\n } catch (Exception ex) {\n result = ex.getMessage();\n }\n assertEquals(\"Purchase Order is not found!\", result);\n }",
"boolean setConfirmationCode(OrderBean orderToUpdate);",
"public void CashonDeliverySubmit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Cashondelivery should be submitted\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\r\n\t\t\tif(isExist(locator_split(\"btnsubmitorder\"))){\r\n\r\n\t\t\t\tclick_submitorder_creditcard();\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Cashondelivery should be clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Cashondelivery button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnsubmitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}",
"@Test\n public void test() {\n XssPayload payload = XssPayload.genDoubleQuoteAttributePayload(\"input\", true);\n helper.requireLoginAdmin();\n orderId = helper.createDummyOrder(payload.toString(), \"dummy\");\n helper.get(ProcedureHelper.ORDERS_EDIT_URL(orderId));\n assertPayloadNextTo(payload, \"clientName\");\n }",
"@Test\r\n\tpublic void testMakePurchase_not_enough_money() {\r\n\t\tassertEquals(false, vendMachine.makePurchase(\"A\"));\r\n\t}",
"@Test\r\n\tpublic void testMakePurchase_enough_money() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"A\");\r\n\t\tvendMachine.addItem(test, \"C\");\r\n\t\tvendMachine.insertMoney(10.0);\r\n\t\tassertEquals(true, vendMachine.makePurchase(\"A\"));\r\n\t}",
"@Test\r\n\tpublic void testAddPurchaseOrder() {\r\n\t\tassertNotNull(\"Test if there is valid purchase order list to add to\", purchaseOrder);\r\n\r\n\t\tpurchaseOrder.add(o1);\r\n\t\tassertEquals(\"Test that if the purchase order list size is 1\", 1, purchaseOrder.size());\r\n\r\n\t\tpurchaseOrder.add(o2);\r\n\t\tassertEquals(\"Test that if purchase order size is 2\", 2, purchaseOrder.size());\r\n\t}",
"@Test\n public void basicConfirmHandlingAcceptTest(){\n\n WebElement confirmButton = driver.findElement(By.id(\"confirmexample\"));\n WebElement confirmResult = driver.findElement(By.id(\"confirmreturn\"));\n\n assertEquals(\"cret\", confirmResult.getText());\n confirmButton.click();\n\n String alertMessage = \"I am a confirm alert\";\n Alert confirmAlert = driver.switchTo().alert();\n assertEquals(alertMessage,confirmAlert.getText());\n confirmAlert.accept();\n assertEquals(\"true\", confirmResult.getText());\n }",
"@Test\n\tpublic void testProcessInventoryUpdateOrderPlaced() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(beanFactory).getBean(INVENTORY_JOURNAL);\n\t\t\t\twill(returnValue(inventoryJournal));\n\t\t\t\tallowing(inventoryDao).getInventory(SKU_CODE, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tallowing(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\n\t\t// WE SHALL CHECK THE RESULT FROM processInventoryUpdate()\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(inventoryDto.getQuantityOnHand(), QUANTITY_ONHAND);\n\t\tassertEquals(inventoryDto.getAvailableQuantityInStock(), QUANTITY_ONHAND - QUANTITY_10);\n\t\tassertEquals(inventoryDto.getAllocatedQuantity(), QUANTITY_10);\n\t}",
"@Test\n public void basicConfirmHandlingDismissTest(){\n\n WebElement confirmButton = driver.findElement(By.id(\"confirmexample\"));\n WebElement confirmResult = driver.findElement(By.id(\"confirmreturn\"));\n\n assertEquals(\"cret\", confirmResult.getText());\n confirmButton.click();\n\n String alertMessage = \"I am a confirm alert\";\n Alert confirmAlert = driver.switchTo().alert();\n assertEquals(alertMessage,confirmAlert.getText());\n confirmAlert.dismiss();\n assertEquals(\"false\", confirmResult.getText());\n }",
"@Override\n\tpublic void showConfirmation(Customer customer, List<Item> items, double totalPrice, int loyaltyPointsEarned) {\n\t}",
"@Test\n public void testPayTransactionSuccessfully() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify receive correct change when paying for sale\n double change = 3;\n assertEquals(change, shop.receiveCashPayment(saleId, toBePaid+change), 0.001);\n totalBalance += toBePaid;\n\n // verify sale is in state PAID/COMPLETED\n assertTrue(isTransactionInAccountBook(saleId));\n\n // verify system's balance did update correctly\n assertEquals(totalBalance, shop.computeBalance(), 0.001);\n }",
"@Deprecated\r\n public String confirmPartialPurchase() {\r\n purchaseController.getTickets().add(ticket);\r\n ticket = null;\r\n return Screen.PAYMENT_SCREEN.getOutcome();\r\n }",
"@Test\n public void deleteOrderTest() {\n Long orderId = 10L;\n api.deleteOrder(orderId);\n\n verify(exactly(1), deleteRequestedFor(urlEqualTo(\"/store/order/10\")));\n }",
"@Test(priority = 4)\n\tpublic void testPayment() {\n\t\tlogger = extent.startTest(\"passed\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 100);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.className(\"payment-info\")));\n\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"swit\\\"]/div[1]\")).click();\n\t\tdriver.findElement(By.id(\"btn\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t// For netbanking login\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"123456\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"Pass@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='LOGIN']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t//\n\t\tdriver.findElement(By.name(\"transpwd\")).sendKeys(\"Trans@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='PayNow']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Order Details\");\n\t\tlogger.log(LogStatus.PASS, \"testPayment Testcase is passed\");\n\t}",
"@Test\n public void testDeployCommandInOpponentCountry() {\n d_gameData.getD_playerList().get(0).setD_noOfArmies(10);\n d_orderProcessor.processOrder(\"deploy nepal 6\", d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order.executeOrder());\n }",
"public void testCheckout() throws InterruptedException {\n\t\taddressRadio.click();\n\t\tpFirstname.click();\n\t\tpFirstname.sendKeys(\"Paul\");\n\t\tpLastname.click();\n\t\tpLastname.sendKeys(\"Tal\");\n\t\tpAddress1.click();\n\t\tpAddress1.sendKeys(\"16 Talbi st\");\n\t\tpCity.click();\n\t\tpCity.sendKeys(\"Toronto\");\n\t\tpPostcode.click();\n\t\tpPostcode.sendKeys(\"M1V 3E8\");\n\t\tSelect cDropdown = new Select(selectC);\n\t\tcDropdown.selectByVisibleText(\"Canada\");\n\t\tSelect zDropdown = new Select(selectZ);\n\t\tzDropdown.selectByVisibleText(\"Ontario\");\n\t\tcontinueBilling.click();\n\t\tThread.sleep(3000);\n\t\tSelect aDropdown = new Select(selectA);\n\t\taDropdown.getFirstSelectedOption();\n\t\tdriver.findElement(By.cssSelector(\"#button-shipping-address\")).click();\n\t\tThread.sleep(3000);\n\t\tdriver.findElement(By.cssSelector(\"#button-shipping-method\")).click();\t\n\t\tThread.sleep(3000);\n\t\tdriver.findElement(By.cssSelector(\"input[type='checkbox'][name='agree']\")).click();\t\t\n\t\tdriver.findElement(By.cssSelector(\"#button-payment-method\")).click();\t\n\t\tdriver.findElement(By.cssSelector(\"input[value='Confirm Order']\")).click();\t\n\t\tThread.sleep(3000);\n\t\tif(driver.getCurrentUrl().contains(\"/success\")) {\n\t\t\tdriver.findElement(By.cssSelector(\"a[href*='/home']\")).click();\t\t\n\t\t\tAssert.assertTrue(true);\n\t\t} else {\n\t\t\tAssert.assertFalse(true);\n\t\t}\n\n\t}",
"@Test(description = \"TA - 290 Verify Order with 2 'Ready to Ship' Items with different SKU/sPurchase with Multishipment for Guest user\")\r\n\tpublic void verifyGuestOrderWithMutlishipment() throws InterruptedException {\r\n\r\n\t\tUIFunctions.addMultipleProducts(\"TumiTestData\", \"GuestDetails\");\r\n\t\tclick(minicart.getMiniCartSymbol(), \"Cart Image\");\r\n\t\tclick(minicart.getProceedCheckOut(), \"Proceed To Cart\");\r\n\t\tclick(mainCart.getProceedCart(), \"Proceed to Checkout\");\r\n\t\tif (!(selectedCountry.contains(\"US\") || selectedCountry.contains(\"Canada\"))) {\r\n\t\t\tinput(singlePage.getEmailAddress(), testData.get(\"EmailID\"), \"Email ID\");\r\n\t\t\tclick(singlePage.getContinueAsGuest(), \"Contiue as Guest\");\r\n\t\t}\r\n\t\tUIFunctions.addMultiship();\r\n\t\tUIFunctions.addMultishipAddressWithCardDeatils(\"TumiTestData\", \"CreditCardDetailsMultishipmnet\");\r\n\t\tUIFunctions.completeOrder();\r\n\r\n\t}",
"@Test\n\tpublic void testProcessInventoryUpdateOrderShipmentReleaseForAlwaysAvailable() {\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tproductSku.setSkuCode(SKU_CODE);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.ALWAYS_AVAILABLE);\n\t\tproductSku.setProduct(product);\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t\tallowing(productSkuService).findBySkuCode(SKU_CODE); will(returnValue(productSku));\n\t\t\t}\n\t\t});\n\n\t\tInventoryDto inventoryDto = new InventoryDtoImpl();\n\t\tinventoryDto.setSkuCode(productSku.getSkuCode());\n\t\tinventoryDto.setWarehouseUid(WAREHOUSE_UID);\n\n\t\t// No DAO operations expected.\n\t\tproductInventoryManagementService.processInventoryUpdate(inventoryDto, buildInventoryAudit(InventoryEventType.STOCK_ALLOCATE, 1));\n\t\t// No DAO operations expected.\n\t\tproductInventoryManagementService.processInventoryUpdate(inventoryDto, buildInventoryAudit(InventoryEventType.STOCK_RELEASE, 1));\n\n\t}",
"@Test\n\tpublic void testOrderWithoutShoppingCart() {\n\t\ttry {\n\t\t\tassertEquals(orderService.order(order), null);\n\t\t} catch (OrderException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Step(\"Creating a new Clinical Purchase Requisitions for a Work Order\")\n public void verifyCreatingNewPurchaseRequistion() throws Exception {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n pageActions.scrollthePage(ClinicalPurchaseRequisitionsTab);\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(ClinicalPurchaseRequisitionsTab));\n functions.highlighElement(driver, ClinicalPurchaseRequisitionsTab);\n pageActions.clickAt(ClinicalPurchaseRequisitionsTab, \"Clicking on purchase requistions tab\");\n pageActions.clickAt(clinicalPurchaseReqNewButton, \"Clicking on purchase requistions New buttton\");\n String randomExternalPO_Number = \"Test\"+Functions.getTimeStamp();\n pageActions.type(externalPO_Number, randomExternalPO_Number, \"Entered Clicnical PO Number\");\n clinicalPurchaseShortDescription.sendKeys(\"Automation externalPO_Numbner desc\");\n pageActions.clickAt(clinicalPurchaseSubmitButton, \"Clicking on SubmitButton\");\n pageActions.clickAt(saveAndGoButton, \"Clicked on save and go button\");\n searchExternalPONumber();\n\n }",
"public void startNewPurchase() throws VerificationFailedException {\n\t}",
"public void startNewPurchase() throws VerificationFailedException {\n\t}",
"@Test\n public void testAuthorization() throws Throwable {\n Method defineCustomer = EZShop.class.getMethod(\"receiveCashPayment\", Integer.class, double.class);\n testAccessRights(defineCustomer, new Object[] {saleId, toBePaid},\n new Role[] {Role.SHOP_MANAGER, Role.ADMINISTRATOR, Role.CASHIER});\n }",
"@Test\n\tpublic void addProductToCartAndEmailIt() {\n\t}",
"@Then(\"^I should be able to see the Payment button$\")\n\tpublic void i_should_be_able_to_see_the_Payment_button() throws Throwable {\n\t\tbc.checkPayment();\n\t}",
"public void cashondeliverysubmit(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Submit order button should be clicked\");\r\n\t\ttry{\r\n\t\t\twaitforElementVisible(locator_split(\"btnsubmitorder\"));\r\n\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\t\t\tif(isExist(locator_split(\"btnsubmitorder\")))\r\n\t\t\t{\r\n\t\t\t\tclick(locator_split(\"btnsubmitorder\"));\r\n\t\t\t}\r\n\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Submit order button is clicked.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Submit order button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Submit order button is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnsubmitorder\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}",
"protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }",
"public void VerifyCartCheckout_Coupon_OrderSumamrysections(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- cartcheckout, coupon and Order summary should be present in checkout page\");\r\n\r\n\t\ttry{\r\n\t\t\tif(isElementPresent(locator_split(\"boxCheckoutCartCheckout\")) & isElementPresent(locator_split(\"boxCheckoutCoupon\"))\r\n\t\t\t\t\t& isElementPresent(locator_split(\"boxCheckoutOrderSummary\"))){\r\n\t\t\t\tSystem.out.println(\"cartcheckout, coupon and Order summary is present in checkout page\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- cartcheckout, coupon and Order summary is present in checkout page\");\r\n\t\t\t}else{\r\n\t\t\t\tthrow new Exception(\"cartcheckout/coupon/Order summary are not present in checkout page\");\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- cartcheckout/coupon/Order summary are not present in checkout page\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"boxCheckoutCartCheckout\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"boxCheckoutCoupon\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"boxCheckoutOrderSummary\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}",
"@Test\n public void testPayCompletedSale() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // pay for sale so it is in state PAID/COMPLETED\n assertEquals(0, shop.receiveCashPayment(saleId, toBePaid), 0.001);\n totalBalance += toBePaid;\n\n // try to pay for sale second time returns -1\n assertEquals(-1, shop.receiveCashPayment(saleId, toBePaid), 0.001);\n\n // verify sale remains in state PAID/COMPLETED\n assertTrue(isTransactionInAccountBook(saleId));\n\n // verify system's balance did not update a second time\n assertEquals(totalBalance, shop.computeBalance(), 0.001);\n }",
"private void onPurchaseFinished(IabResult result, com.riotapps.wordbase.billing.Purchase purchase){\n\t\t \n\t\t Logger.d(TAG, \"onPurchaseFinished failed=\" + result.isFailure());\n\t\t \n\t\t if (result.isFailure()) {\n Logger.d(TAG, \"Error purchasing: \" + result);\n return;\n } \n\t\t else {\n\t\t\t StoreService.savePurchase(purchase.getSku(), purchase.getToken());\n\t\t\t \n\t\t\t String thankYouMessage = this.getString(R.string.thank_you);\n\t\t\tif (purchase.getSku().equals(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE))){\n\t\t\t\t thankYouMessage = this.getString(R.string.purchase_thanks_premium_upgrade);\n\t\t\t }\n\t\t\t\t \n\t\t\t //popup a thank you dialog\n\t\t\t DialogManager.SetupAlert(this, this.getString(R.string.thank_you), thankYouMessage);\n\t \n\t\t\t this.resetPriceButtons(purchase.getSku());\n\t\t }\n \n\t }",
"@Test\r\n\tpublic void testOrderPerform() {\n\t}",
"@Override\n\t\t\tpublic void mainBuyPro() {\n\t\t\t\tif (iap_is_ok && mHelper != null) {\n\t\t\t\t\t\n\t\t\t\t\t String payload = \"\";\n\t\t\t\t\t mHelper.launchPurchaseFlow(MainActivity.this, Paid_Id_VF, RC_REQUEST, mPurchaseFinishedListener);\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}",
"@Test\n\tpublic void createOrderTest() {\n\t\ttry {\n\t\t\tassertNull(salesOrderCtrl.getOrder());\n\t\t\tsalesOrderCtrl.createSalesOrder();\n\t\t\tassertNotNull(salesOrderCtrl.getOrder());\n\t\t} catch (Exception e) {\n\t\t\te.getMessage();\n\t\t}\n\t}",
"@Test\n void deleteTest() {\n Product product = new Product(\"Apple\", 10, 4);\n shoppingCart.addProducts(product.getName(), product.getPrice(), product.getQuantity());\n //when deletes two apples\n boolean result = shoppingCart.deleteProducts(product.getName(), 2);\n //then basket contains two apples\n int appleNb = shoppingCart.getQuantityOfProduct(\"Apple\");\n assertTrue(result);\n assertEquals(2, appleNb);\n }",
"public void deleteProduct() {\n deleteButton.click();\n testClass.waitTillElementIsVisible(emptyShoppingCart);\n Assert.assertEquals(\n \"Message is not the same as expected\",\n MESSAGE_EMPTY_SHOPPING_CART,\n emptyShoppingCart.getText());\n }",
"@DirtiesDatabase\n\t@Test\n\tpublic void testPreAuthorize() {\n\t\tGiftCertificateAuthorizationRequest authorizationRequest = createAuthorizationRequestFromOrderPayment(orderPayment);\n\t\t\n\t\ttransactionService.preAuthorize(authorizationRequest, null);\n\t\tassertEquals(BALANCE.subtract(REGULAR_AUTH), transactionService.getBalance(giftCertificate));\n\t}",
"@Override\n\tpublic int confirm(Integer id) {\n\t\tOrderGoodsEntity orderGoodsEntity = queryObject(id);\n\t\tInteger shippingStatus = orderGoodsEntity.getShippingStatus();//发货状态\n\t\tInteger payStatus = orderGoodsEntity.getPayStatus();//付款状态\n\t\tif (2 != payStatus) {\n\t\t\tthrow new RRException(\"此订单未付款,不能确认收货!\");\n\t\t}\n\t\tif (4 == shippingStatus) {\n\t\t\tthrow new RRException(\"此订单处于退货状态,不能确认收货!\");\n\t\t}\n\t\tif (0 == shippingStatus) {\n\t\t\tthrow new RRException(\"此订单未发货,不能确认收货!\");\n\t\t}\n\t\torderGoodsEntity.setShippingStatus(2);\n\t\torderGoodsEntity.setOrderStatus(301);\n\t\treturn orderGoodsDao.update(orderGoodsEntity);\n\t}",
"@Test\n\tpublic void testProcessInventoryUpdateOrderShipmentRelease() {\n\t\tfinal Inventory inventory = new InventoryImpl();\n\t\tinventory.setUidPk(INVENTORY_UID_1000);\n\t\tinventory.setQuantityOnHand(QUANTITY_ONHAND);\n\t\tinventory.setWarehouseUid(WAREHOUSE_UID);\n\t\tfinal ProductSku productSku = new ProductSkuImpl();\n\t\tfinal String skuCode = SKU_CODE;\n\t\tproductSku.setSkuCode(skuCode);\n\t\tfinal ProductImpl product = new ProductImpl();\n\t\tproduct.setAvailabilityCriteria(AvailabilityCriteria.AVAILABLE_WHEN_IN_STOCK);\n\t\tproductSku.setProduct(product);\n\n\t\tinventory.setSkuCode(productSku.getSkuCode());\n\n\t\tfinal Order order = new OrderImpl();\n\t\torder.setUidPk(ORDER_UID_2000);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup = new InventoryJournalRollupImpl();\n\t\tijRollup.setAllocatedQuantityDelta(QUANTITY_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\n\t\t\t\tatLeast(1).of(inventoryDao).getInventory(skuCode, WAREHOUSE_UID); will(returnValue(inventory));\n\t\t\t\tatLeast(1).of(inventoryJournalDao).getRollup(inventoryKey); will(returnValue(ijRollup));\n\t\t\t\toneOf(inventoryJournalDao).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, 1,\tInventoryEventType.STOCK_ALLOCATE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tInventoryDto inventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_10, inventoryDto.getAllocatedQuantity());\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\toneOf(beanFactory).getBean(EXECUTION_RESULT); will(returnValue(new InventoryExecutionResultImpl()));\n\t\t\t}\n\t\t});\n\n\t\tfinal Inventory inventory2 = assembler.assembleDomainFromDto(inventoryDto);\n\n\t\tfinal InventoryDao inventoryDao2 = context.mock(InventoryDao.class, INVENTORY_DAO2);\n\t\tfinal InventoryJournalDao inventoryJournalDao2 = context.mock(InventoryJournalDao.class, INVENTORY_JOURNAL_DAO2);\n\t\tjournalingInventoryStrategy.setInventoryDao(inventoryDao2);\n\t\tjournalingInventoryStrategy.setInventoryJournalDao(inventoryJournalDao2);\n\n\t\tfinal InventoryJournalRollupImpl ijRollup2 = new InventoryJournalRollupImpl();\n\t\tijRollup2.setAllocatedQuantityDelta(QUANTITY_NEG_10);\n\t\tijRollup2.setQuantityOnHandDelta(QUANTITY_NEG_10);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tInventoryJournalImpl inventoryJournal = new InventoryJournalImpl();\n\t\t\t\toneOf(beanFactory).getBean(INVENTORY_JOURNAL); will(returnValue(inventoryJournal));\n\t\t\t\tatLeast(1).of(inventoryDao2).getInventory(skuCode, WAREHOUSE_UID); will(returnValue(inventory2));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).saveOrUpdate(inventoryJournal); will(returnValue(new InventoryJournalImpl()));\n\t\t\t\tatLeast(1).of(inventoryJournalDao2).getRollup(inventoryKey); will(returnValue(ijRollup2));\n\t\t\t}\n\t\t});\n\n\t\tproductInventoryManagementService.processInventoryUpdate(\n\t\t\t\tproductSku, WAREHOUSE_UID,\tInventoryEventType.STOCK_RELEASE, EVENT_ORIGINATOR_TESTER, QUANTITY_10, order, null);\n\t\tinventoryDto = productInventoryManagementService.getInventory(inventory.getSkuCode(), inventory.getWarehouseUid());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getQuantityOnHand());\n\t\tassertEquals(QUANTITY_ONHAND - QUANTITY_10, inventoryDto.getAvailableQuantityInStock());\n\t\tassertEquals(QUANTITY_0, inventoryDto.getAllocatedQuantity());\n\t}",
"boolean delete(CustomerOrder customerOrder);",
"@Test\n public void testcancelwithoutrefund()\n {\n\n BusinessManager businessManager = new BusinessManager();\n\n //how do i test void\n //how to i move back to current\n //assertEquals(businessManager.cancelConfirm(\"yes\"), );\n\n\n }",
"@When(\"^User should see Review Confirmation Message$\")\n\tpublic void user_should_see_Review_Confirmation_Message() throws Throwable {\n\t\twait.WaitForElement(reviewConfirmationPageObjects.getreviewconfirmmsg(), 70);\n\t\treviewConfirmationPageObjects.verifyreviewconfirmation();\n\t}",
"@Test\n public void activateTicket() {\n Ticket ticket = givenTicketInOrderedBilled();\n\n // when\n boolean activateTicket = ticket.activateTicket();\n\n // then\n assertTrue(activateTicket);\n assertTicketInState(ticket, TicketStateType.TICKET_DELIVERED, TransactionStateType.TRANSACTION_BILLED, 6);\n }",
"public void verifyProduct() throws Throwable{\r\n\t\twdlib.waitForElement(getProductText());\r\n\t\t\r\n\t\tif(!getProductText().getText().equals(\"None Included\"))\r\n\t\t{\r\n\t\t\tReporter.log(getProductText().getText()+\" was deleted\",true);\r\n\t\t\tdeleteProduct();\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test\n void deletePermanentlyTest() {\n Product product = new Product(\"Apple\", 10, 4);\n shoppingCart.addProducts(product.getName(), product.getPrice(), product.getQuantity());\n //when deletes four apples\n boolean result = shoppingCart.deleteProducts(product.getName(), 4);\n //then basket does not contain any apple\n int appleNb = shoppingCart.getQuantityOfProduct(\"Apple\");\n assertTrue(result);\n assertEquals(0, appleNb);\n }",
"@When(\"je verifie les informations et clique sur Submit Order\")\n\tpublic void je_verifie_les_informations_et_clique_sur_Submit_Order() {\n\t throw new PendingException();\n\t}",
"@Test\n public void testDeployCommand() {\n d_gameData.getD_playerList().get(0).setD_noOfArmies(10);\n d_orderProcessor.processOrder(\"deploy india 6\", d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n boolean l_check = l_order.executeOrder();\n assertEquals(true, l_check);\n int l_countryArmies = d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).getD_noOfArmies();\n assertEquals(6, l_countryArmies);\n int l_actualArmiesInPlayer = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n assertEquals(4, l_actualArmiesInPlayer);\n }",
"@Test(expected = BusinessException.class)\n public void reactivateArchived() throws BusinessException {\n final ProductService productService = new ProductService();\n\n final Long pProductId = 1L;\n\n new Expectations() {\n\n {\n\n Deencapsulation.setField(productService, \"productDAO\", mockProductDAO);\n\n ProductBO productBO = new ProductBO();\n productBO.setStatus(Status.ARCHIVED);\n mockProductDAO.get(1L);\n times = 1;\n returns(productBO);\n }\n };\n\n productService.reactivate(pProductId);\n }",
"public void completeOrderTransaction(Transaction trans){\n }",
"@Test\n public void triggeredByCouponTest() {\n // TODO: test triggeredByCoupon\n }",
"public ResultMessage checkPurchase(PurchaseVO vo) throws RemoteException{\r\n\t\tif(RemoteHelper.getInstance().getPurchaseBillDataService().checkPurchaseBill(toPurchaseBillPO(vo))==feedback.Success){\r\n\t\t\treturn ResultMessage.SUCCESS;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn ResultMessage.FAILED;\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void onholdToConfirmSEPA() throws Exception {\n\t\ttry {\n\t\t\t// Launch the browser and load the default URL\n\t\t\tUtility.initConfiguration();\n\t\t\tThread.sleep(3000);\n\t\t\t// Login to back end and check payment method is enabled or disabled\n\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\tThread.sleep(3000);\n\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\t// Title for HTML report\n\t\t\ttest = extend.createTest(\"Vendor script execution for 'DIRECT_DEBIT_SEPA' onhold to confirm\");\n\t\t\t// Steps\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\tThread.sleep(3000);\n\t\t\telement.WooCommerce_Settings.click();\n\t\t\telement.Payment_Tab.click();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Display.click();\n\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\t// Read the order completion status\n\t\t\tString OrderCompletionStatus = element.Sepa_Order_Completion_Status_Selectbox.getText();\n\t\t\tThread.sleep(3000);\t\t\t\n\t\t\t// On-hold enabled\n\t\t\tActions action = new Actions(driver);\n\t\t\tThread.sleep(3000);\n\t\t\tWebElement onhold = element.Sepa_Onhold_Payment_Action_Selectbox;\n\t\t\tThread.sleep(5000);\n\t\t\taction.click(onhold).sendKeys(\"Authorize\", Keys.DOWN, Keys.ENTER).build().perform();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\tThread.sleep(3000);\n\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\tThread.sleep(4000);\n\t\t\t// Read the data from excel sheet\n\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\tif (element.Sepa_Label.isDisplayed() == true) {\n\t\t\t\tif (element.Sepa_Radio_button.isDisplayed()) {\n\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t}\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\telement.Place_Order.click();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t// Get the amount from order success page front end\n\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\t// Get the TID from order success page front end\n\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\t\t// Go to card portal and check the tid_status\n\t\t\t\t\tdriver.navigate().to(Constant.novalnetcardportalurl);\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\telement.Cardportal_TID_Textbox.sendKeys(TID);\n\t\t\t\t\telement.Cardportal_Submit.click();\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tString tid_status_value = element.Status_Code.getText();\n\t\t\t\t\tint tid_status = Integer.parseInt(tid_status_value);\n\t\t\t\t\t// Check whether the Tid is 99\n\t\t\t\t\tif (tid_status == 99) {\n\t\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\t\t// Enter required parameter\n\t\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"DIRECT_DEBIT_SEPA\");\n\t\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\t\telement.Status.clear();\n\t\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\t\telement.Tid.sendKeys(TID);\n\t\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\t\tString callback_message = element.callback_message.getText();\n\t\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\t\t\t\t\t\t\n\t\t\t\t\t\tif (callback_message\n\t\t\t\t\t\t\t\t.contains(\"Novalnet callback received. The transaction has been confirmed\")) {\n\t\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\t\tString BEOrderStatus = element.Backend_Order_Status.getText();\n\t\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\t\tString BEOrderNotesMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\t\t// Verify order completion status is updated in shop back end after the execution\n\t\t\t\t\t\t\tSystem.out.println(\"Order completion status: \" + OrderCompletionStatus);\n\t\t\t\t\t\t\tSystem.out.println(\"Back end order status: \" + BEOrderStatus);\n\t\t\t\t\t\t\tif (OrderCompletionStatus.equals(BEOrderStatus)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop back end\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop back end\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated successfully in shop back end\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated successfully in shop back end\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Verify order completion status is updated in front after the execution\n\t\t\t\t\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\telement.MyAccount_Menu.click();\n\t\t\t\t\t\t\telement.MyAccount_Orders.click();\n\t\t\t\t\t\t\tString FEOrderStatus = element.Frontend_Order_Status.getText();\n\t\t\t\t\t\t\tSystem.out.println(\"Front end order status: \" + FEOrderStatus);\n\t\t\t\t\t\t\tif (OrderCompletionStatus.equals(FEOrderStatus)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop front end\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop front end\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated in shop front end\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated in shop front end\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\"callback execution message: \" + callback_message_updated);\n\t\t\t\t\t\t\tSystem.out.println(\"Back end order note: \" + BEOrderNotesMessage);\n\t\t\t\t\t\t\tif (callback_message_updated.equals(BEOrderNotesMessage)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: DIRECT_DEBIT_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: DIRECT_DEBIT_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: DIRECT_DEBIT_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: DIRECT_DEBIT_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"TC FAILED: Transaction is already confirmed or not in pending status\");\n\t\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Transaction is already confirmed or not in pending status\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'onholdToConfirmSEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'onholdToConfirmSEPA' method\");\n\t\t}\n\t}",
"@Test\r\n\tpublic void Orderbooks()\r\n\t{\r\n\t\thome.clickOnBookLink();\r\n\t\tbooks.selectRandomBook();\r\n\t\tbook1.ClickOnAddToCartButton();\r\n\t\thome.clickOnShoppingCartLink();\r\n\t\tshoppingcart.selectCountry(\"India\");\r\n\t\tshoppingcart.selectCheckbox();\r\n\t\tshoppingcart.clickOnCheckOutButton();\r\n\t\tlogin.clickOnCheckAsGuest();\r\n\t\tbookAddresscheckout.enterFirstName(\"ssssi\");\r\n\t\tbookAddresscheckout.enterLastName(\"yyaa\");\r\n\t\tbookAddresscheckout.enterEmail(\"aggaa563@gmail.com\");\r\n\t\tbookAddresscheckout.enterCompany(\"Tata motors\");\r\n\t\tbookAddresscheckout.selectCountry(\"India\");\r\n\t bookAddresscheckout.enterCity(\"Solapur\");\r\n\t\tbookAddresscheckout.enterAddress1(\"Xyz street Solapur India\");\r\n\t\tbookAddresscheckout.enterAddress2(\"zzz street Solapur India\");\r\n\t\tbookAddresscheckout.enterZipPostalCode(\"21991\");\r\n\t\tbookAddresscheckout.enterPhoneNumber(\"9970815987\");\r\n\t\tbookAddresscheckout.enterFaxNumber(\"8882222\");\r\n\t bookAddresscheckout.clickOnContinueButton();\r\n\t\tShippingCheckOut.clickOnContinueButton();\r\n\t\tShippingMethodCheckOut.selectGroundRadioButton();\r\n\t\tShippingMethodCheckOut.clickOnContinueButton();\r\n\t\tPaymentMethodCheckOut.selectPaymentMethod();\r\n\t\tPaymentMethodCheckOut.clikOnContinueBtn();\r\n\t\tPaymentInformationCheckOut.clickOnContinueButton();\r\n\t\tConfirmorder.clickOnConfirmButton();\r\n\t\tcheckOut.clickOnOrderDetailsLink();\r\n\t}"
] | [
"0.7030713",
"0.7030713",
"0.7030713",
"0.6798029",
"0.64589345",
"0.6396055",
"0.63133353",
"0.6133289",
"0.6109749",
"0.610104",
"0.6067018",
"0.60578996",
"0.6023337",
"0.5964926",
"0.5946127",
"0.59375453",
"0.5887517",
"0.58713126",
"0.5854272",
"0.5853035",
"0.5815726",
"0.5795941",
"0.57928514",
"0.577892",
"0.57720816",
"0.5744892",
"0.5735814",
"0.5729424",
"0.57243836",
"0.5711326",
"0.5693939",
"0.56852853",
"0.56845164",
"0.56735283",
"0.5649598",
"0.563854",
"0.56367624",
"0.5633993",
"0.5633031",
"0.56271505",
"0.56248814",
"0.562425",
"0.56189835",
"0.56175065",
"0.56161004",
"0.5615751",
"0.56057334",
"0.56019205",
"0.5596145",
"0.5594904",
"0.5590441",
"0.55878705",
"0.5576104",
"0.5566573",
"0.55614316",
"0.55584294",
"0.5558177",
"0.55574906",
"0.5555761",
"0.55539155",
"0.5537067",
"0.55364007",
"0.55363244",
"0.55146897",
"0.5494719",
"0.54911405",
"0.54905903",
"0.5489831",
"0.54845375",
"0.54845375",
"0.5481034",
"0.54793847",
"0.5477449",
"0.5474157",
"0.5469752",
"0.54691553",
"0.54688925",
"0.54516304",
"0.54508716",
"0.5445997",
"0.54397756",
"0.5436939",
"0.5432916",
"0.5422918",
"0.54138416",
"0.54134846",
"0.54060775",
"0.54050726",
"0.539888",
"0.53980607",
"0.5390358",
"0.53832954",
"0.53766274",
"0.53749835",
"0.53748643",
"0.53741467",
"0.5374018",
"0.53721434",
"0.53711706",
"0.53709346"
] | 0.77449274 | 0 |
FTPClientFrame frame = null; | public LocalPanel() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ClientFTP() {\n }",
"Frame getFrame();",
"private Frame3() {\n\t}",
"FRAMESET createFRAMESET();",
"private Frame getCurrentFrame() {\n\t\treturn null;\r\n\t}",
"public static FileOperationsFrame getFrameInstance(){\n\t\treturn FileOperationsFrame.<FileOperationsFrame>readObjectFromDisk(classReference);\n\t}",
"public static void tranferFile() {\n\n FTPClient ftpClient = new FTPClient();\n try {\n ftpClient.connect(\"192.168.231.237\", 80);\n ftpClient.login(\"root\", \"xpsr@350\");\n ftpClient.enterLocalPassiveMode();\n\n ftpClient.setFileType(FTP.BINARY_FILE_TYPE);\n File sourceFile = new File(\"/home/sthiyagaraj/eclipse-workspace/KonnectAPI/target/APIURL.tar.gz\");\n InputStream inputStream = new FileInputStream(sourceFile);\n\n boolean done = ftpClient.storeFile(\"filename which receiver get\", inputStream);\n inputStream.close();\n if (done) {\n System.out.println(\"file is uploaded successfully..............\");\n }\n\n } catch (IOException e) {\n System.err.println(\"Exception occured while ftp : \"+e);\n } finally {\n try {\n if (ftpClient.isConnected()) {\n ftpClient.logout();\n ftpClient.disconnect();\n }\n } catch (IOException e) {\n System.err.println(\"Exception occured while ftp logout/disconnect : \"+e);\n }\n }\n\n }",
"public frame() {\r\n\t\tframeOwner = 0;\r\n\t\tassignedProcess = 0;\r\n\t\tpageNumber = 0;\r\n\t}",
"FRAME createFRAME();",
"protected ProtocolControlFrame() {\n super();\n }",
"void accessFrame(Buffer frame) {\r\n\r\n\t\t\t// For demo, we'll just print out the frame #, time &\r\n\t\t\t// data length.\r\n\r\n\t\t\tlong t = (long)(frame.getTimeStamp()/10000000f);\r\n\r\n\t\t\tStdout.log(\"Pre: frame #: \" + frame.getSequenceNumber() + \r\n\t\t\t\t\t\", time: \" + ((float)t)/100f + \r\n\t\t\t\t\t\", len: \" + frame.getLength());\r\n\t\t}",
"public void setFrame(Frame f){\n\t\tthis.frame = f;\n\t\t//if (singleInstance.mg == null || singleInstance.cpg == null) throw new AssertionViolatedException(\"Forgot to set important values first.\");\n\t}",
"@Test\n\tpublic void testGetFrame() {\n\t}",
"public ClientFrame() {\n initComponents();\n }",
"public ClientFrame() {\n initComponents();\n }",
"void open(VirtualFrame frame);",
"public void onFrameDrop() {}",
"org.apache.calcite.avatica.proto.Common.Frame getFrame();",
"public static void changeFrame() {\r\n\t\t\r\n\t}",
"public String getFileTransferServer();",
"public ChannelFuture method_4126() {\n return null;\n }",
"private void init(String desIp){\n \n this.desIp=desIp;\n initComponents();\n this.guiDel.setEnabled(false);\n this.setTitle(\"发送文件至\"+GlobalVar.getUser(this.desIp).getName()+\n \" ( \"+this.desIp+\" ) \");\n \n MyTransferHandler handler = new MyTransferHandler(this.guiAllFiles);\n this.setTransferHandler(handler);\n this.guiAllFiles.setTransferHandler(handler);\n\n }",
"@Override\n protected Void doInBackground(String... strings) {\n FTPClient client = new FTPClient();\n try {\n client.connect(\"ftp.earwormfix.com\", 21);\n client.login(\"XXXX\", \"XXXXX\"); // TODO: change when testing- leave no whitespace!!\n\n client.sendNoOp(); //used so server timeout exception will not rise\n int reply = client.getReplyCode();\n if(!FTPReply.isPositiveCompletion(reply)){\n client.disconnect();\n Log.e(TAG,\"FTP server refuse connection Code- \"+ reply);\n this.taskListener.onFinished(false);\n cancel(true);\n }\n client.enterLocalPassiveMode();//Switch to passive mode\n client.setFileType(FTP.BINARY_FILE_TYPE, FTP.BINARY_FILE_TYPE);\n client.setFileTransferMode(FTP.BINARY_FILE_TYPE);\n String remoteFile = \"post/\"+strings[1] +\n File.separator +\n strings[0].substring(strings[0].lastIndexOf(File.separator)+1);\n File videoFile = new File(strings[0]);\n InputStream inputStream = new FileInputStream(videoFile);\n\n Log.i(TAG,\"storing...\");\n boolean stored = client.storeFile(remoteFile, inputStream);\n if (stored) {\n Log.i(TAG,\"Done!!!\");\n }\n else{\n Log.e(TAG,\"Failed to send ftp \"+ reply);\n this.taskListener.onFinished(false);\n inputStream.close();\n client.logout();\n cancel(true);\n }\n inputStream.close();\n //logout will close the connection\n client.logout();\n } catch (IOException e) {\n e.printStackTrace();\n this.taskListener.onFinished(false);\n cancel(true);\n }\n return null;\n }",
"public interface FtpClientInterface {\n\n\t/**\n\t * Connects to an FTP server and logs in with the supplied username and\n\t * password.\n\t * \n\t * @throws IOException\n\t */\n\tpublic void connect() throws IOException;\n\n\t/**\n\t * Disconnects from the FTP server.\n\t * \n\t * @throws IOException\n\t */\n\tpublic void disconnect() throws IOException;\n\n\t/**\n\t * Browse the current directory in depth\n\t * \n\t * @throws Exception\n\t */\n\tpublic void deepList() throws Exception;\n\n}",
"public ChannelFuture method_4120() {\n return null;\n }",
"@Override\n\tpublic Frame getNextFrame() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Frame getNextFrame() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Frame getNextFrame() {\n\t\treturn null;\n\t}",
"public void onFTP(\r\n final String senderIP, \r\n final String senderName, \r\n final String fileName,\r\n final String fullpath,\r\n final int socketNo,\r\n final long fileLength) {\n // Process this ftp request with a thread so that\r\n // further messages can be processed without waiting for\r\n // finishing of this ftp.\r\n //\r\n Thread ftpThread = new Thread() {\r\n public void run() {\r\n\t\t\t\tFile \tselectedFile\t= null;\r\n\r\n\t\t\t\tsynchronized (FTPListenerImpl.this) {\r\n\t\t\t\t\tif (fFileChooser == null) {\r\n\t\t\t\t\t\tfFileChooser = new JFileChooser(\".\");\r\n\t\t\t\t\t\tfFileChooser.setDialogTitle(\"MessagingTool: \" + StringDefs.SAVE_FILE_AS);\r\n\t\t\t\t\t}\r\n\t\t\t\t \tselectedFile = new File(fFileChooser.getCurrentDirectory(), fileName);\r\n\t\t\t\t\tComponentUtil.overlapComponents(fFileChooser, fParentFrame, 32, false);\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\tfFileChooser.setSelectedFile(selectedFile);\r\n\t\t\t\t\t\tint status = fFileChooser.showSaveDialog(fParentFrame);\r\n\t\t\t\t\t\tif (status != JFileChooser.APPROVE_OPTION)\r\n \t\t\t\t \t\treturn;\r\n\r\n\t\t\t\t \t\tselectedFile = fFileChooser.getSelectedFile();\r\n\t\t\t\t\t\tif (!selectedFile.exists()) \r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tObject[] options = { StringDefs.YES, StringDefs.NO };\r\n\r\n\t\t\t\t\t\t\tfParentFrame.getToolkit().beep();\r\n\t\t\t\t\t\t\tint choice = JOptionPane.showOptionDialog(fParentFrame,\r\n\t\t\t\t\t\t\t\tselectedFile + StringDefs.FILE_EXISTS,\r\n\t\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE,\r\n\t\t\t\t\t\t\t\tnull, options, options[0]);\r\n\t\t\t\t\t \t\tif (choice == JOptionPane.YES_OPTION)\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t \t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n \r\n FileOutputStream outStream = null;\r\n\r\n try {\r\n outStream = new FileOutputStream(selectedFile);\r\n if (FTP.getInstance().retrieve(senderIP, fullpath, fileName, outStream, socketNo, fileLength))\r\n outStream.close();\r\n else {\r\n outStream.close();\r\n selectedFile.delete();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n selectedFile.delete();\r\n return;\r\n }\r\n }\r\n };\r\n\r\n ftpThread.setDaemon(true);\r\n ftpThread.start();\r\n }",
"public ChannelFuture method_4097() {\n return null;\n }",
"public MassMsgFrame() {\n\t}",
"Frame createFrame();",
"public void setFileTransferServer(String serverUrl);",
"public FrameControl() {\n initComponents();\n }",
"UtileFrame() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public int getFrame() {\r\n return frame;\r\n }",
"public ChannelFuture method_4130() {\n return null;\n }",
"NOFRAME createNOFRAME();",
"public ChannelFuture method_4092() {\n return null;\n }",
"public void setFrame(ChessFrame f)\n {\n frame = f;\n }",
"public NewConnectionFrame() {\n initComponents();\n }",
"@Override\n public StreamHeader.StreamFrame recvFrame() throws Exception {\n if (count++ > 100) {\n return null;\n }\n Thread.sleep(header.frameTime); // simulate actual data stream\n return header.makeFrame();\n }",
"public ClientFrame() {\n\t\tinitComponents();\n\t}",
"public void receiveFrame(SPI.Frame frame) {\n \n // data, frequency, origination\n if (!MAIN_reg.txPd && MAIN_reg.rxtx) {\n long currentTime = clock.getCount();\n new Transmit(new Transmission(frame.data, 0, currentTime));\n } else {\n if (printer.enabled) {\n printer.println(\"CC1000: discarding \"+StringUtil.toMultirepString(frame.data, 8)+\" from SPI\");\n }\n }\n \n }",
"public TifViewFrame() {\n initComponents();\n }",
"boolean execute(FTPClient client) throws SocketException, IOException;",
"public interface IFTPOperationListener {\n\n /**\n * Called when ftp login is done.\n */\n void loginDone();\n\n /**\n * Called when info are being fetched for a remote file\n *\n * @param remotePath The remote file or folder path\n */\n void fetchingInfo(String remotePath);\n\n /**\n * Called when a file listing is being done\n *\n * @param remoteFolder The remote folder path\n */\n void listingFiles(String remoteFolder);\n\n /**\n * Called before a file is being uploaded.\n *\n * @param path The path of the file\n */\n void uploadingFile(String path);\n\n /**\n * Called when a file is uploaded\n *\n * @param path The remote file path\n */\n void fileUploaded(String path);\n\n /**\n * Called when a folder is being uploaded\n *\n * @param remoteFolder Called when the folder is being uploaded\n */\n void uploadingFolder(String remoteFolder);\n\n /**\n * Called when a folder is uploaded\n *\n * @param remoteFolder The remote folder path\n */\n void folderUploaded(String remoteFolder);\n\n /**\n * Called when a file is being downloaded\n *\n * @param path The path of the file\n */\n void downloadingFile(String path);\n\n /**\n * Called when a remote file is downloaded\n *\n * @param path The remote file path\n */\n void fileDownloaded(String path);\n\n /**\n * Called when a folder is being downloaded\n *\n * @param remoteFolder The remote folder being downloaded\n */\n void downloadingFolder(String remoteFolder);\n\n /**\n * Called when a remote folder is downloaded\n *\n * @param remoteFolder The remote folder path\n */\n void folderDownloaded(String remoteFolder);\n\n /**\n * Called when a remote folder is created\n *\n * @param remoteFolder The remote folder path\n */\n void folderCreated(String remoteFolder);\n\n /**\n * Called when a remote folder is deleted\n *\n * @param remoteFolder The remote folder path\n */\n void folderDeleted(String remoteFolder);\n\n /**\n * Called when a remote file is delete\n *\n * @param path The remote file path\n */\n void fileDeleted(String path);\n\n /**\n * Called when ftp logout is done.\n */\n void logoutDone();\n\n\n}",
"public PingWebSocketFrame(ByteBuf binaryData) {\n/* 40 */ super(binaryData);\n/* */ }",
"public void setTargetFrame(String f) {\r\n\t\t_targetFrame = f;\r\n\t}",
"private void open()\n\t{\n\t\tbuffer = new LinkedList<>();\n\t\tbuffer.add(decoratee.getCurrentFrameMessage());\n\t\tbufferZeroFrame = 0;\n\t\tcurrentFrame = 0;\n\t}",
"public TFileListTransferable() {\n\t\tFList = null;\n\t\tFAMtArray = null;\n\t\tflavors = new DataFlavor[] { DataFlavor.javaFileListFlavor,\n\t\t\t\tTAMtFileListFlavor };\n\t}",
"public FrameResponsableMachine()\n {\n initComponents();\n }",
"private void setFrame(Pool p)\n\t{\n\t\tthis.frame = new Frame(p);\n\t}",
"public void closeFrame() {\n framesize = wordpointer = bitindex = -1;\n }",
"org.apache.calcite.avatica.proto.Common.Frame getFirstFrame();",
"public Credits (JFrame frame)\r\n {\r\n super();\r\n this.setLayout (null); \r\n count = 0;\r\n this.frame = frame;\r\n playEnd();\r\n \r\n }",
"private FrameUIController(){\r\n\t\t\r\n\t}",
"public Onlineupload() {\n initComponents();\n }",
"public PFTMXCallbackHandler() {\n this.clientData = null;\n }",
"int getFrame() {\n return currFrame;\n }",
"void sendReceive(){\r\n\r\n String remotePath=\"Batch\\\\Export\\\\\" + DAL.getStoreID();\r\n String localPath=\"Batch\\\\Import\\\\\";\r\n String filename=\"\";\r\n File dir;\r\n String[] children;//list of files at local\r\n\r\n CustomFtpClient ftpClient = new CustomFtpClient();\r\n try {\r\n //1---------- connect Ftp\r\n//System.out.println(DAL.getStoreID()+\" \"+DAL.getFtpServer()+\" \"+DAL.getFtpUser()+\" \"+DAL.getFtpPassword());\r\n ftpClient.openServer(DAL.getFtpServer());\r\n ftpClient.login(DAL.getFtpUser(), DAL.getFtpPassword());\r\n ftpClient.cd(remotePath);\r\n ftpClient.binary();\r\n\r\n //2---------- copy from SIM Export to POS Export\r\n StringBuffer pathList = new StringBuffer();\r\n InputStream is = ftpClient.list();\r\n int c;\r\n\r\n //read all file and directory at remote\r\n while ( (c = is.read()) != -1) {\r\n String s = (new Character( (char) c)).toString();\r\n pathList.append(s);\r\n }\r\n\r\n StringTokenizer st = new StringTokenizer(pathList.toString(),\"\\r\\n\");\r\n //get file from SIM Export\r\n while (st.hasMoreTokens()){\r\n filename=st.nextToken().substring(55);\r\n if(filename.indexOf(\".txt\")!=-1){\r\n is = ftpClient.get(filename);\r\n File file_out = new File(localPath + filename);\r\n FileOutputStream os = new\r\n FileOutputStream(file_out);\r\n byte[] bytes = new byte[1024];\r\n\r\n while ( (c = is.read(bytes)) != -1) {\r\n os.write(bytes, 0, c);\r\n }\r\n is.close();\r\n os.close();\r\n //3--------- delete SIM Export\r\n ftpClient.delete(filename);\r\n }\r\n }\r\n\r\n //4--------- copy POS Import to SIM Backup\r\n remotePath=\"..\\\\..\\\\..\\\\Batch\\\\Backup\\\\Export\";\r\n localPath=\"Batch\\\\Import\\\\\";\r\n\r\n ftpClient.cd(remotePath);\r\n\r\n //get list of file\r\n dir = new File(localPath);\r\n children = dir.list();\r\n if (children != null) {\r\n for (int i = 0; i < children.length; i++) {\r\n // Get filename of file or directory\r\n filename = children[i];\r\n TelnetOutputStream os = ftpClient.put(filename);\r\n File file_in = new File(localPath + filename);\r\n is = new FileInputStream(file_in);\r\n byte[] bytes = new byte[1024];\r\n\r\n while ( (c = is.read(bytes)) != -1) {\r\n os.write(bytes, 0, c);\r\n }\r\n is.close();\r\n os.close();\r\n }\r\n }\r\n\r\n //5--------- copy from POS Export to SIM Import\r\n remotePath=\"..\\\\..\\\\..\\\\Batch\\\\Import\";\r\n localPath=\"Batch\\\\Export\\\\\";\r\n ftpClient.cd(remotePath);\r\n\r\n //get list of file\r\n dir = new File(localPath);\r\n children = dir.list();\r\n if (children != null) {\r\n for (int i = 0; i < children.length; i++) {\r\n // Get filename of file or directory\r\n filename = children[i];\r\n TelnetOutputStream os = ftpClient.put(filename);\r\n File file_in = new File(filename);\r\n is = new FileInputStream(localPath + file_in);\r\n byte[] bytes = new byte[1024];\r\n while ( (c = is.read(bytes)) != -1) {\r\n os.write(bytes, 0, c);\r\n }\r\n is.close();\r\n os.close();\r\n }\r\n }\r\n\r\n //---------- close ftp\r\n ftpClient.closeServer();\r\n }\r\n catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"public fileServer() {\n }",
"public myGameFrame() throws IOException {\n initComponents();\n newDeck = new DeckOfCards ();\n carrd = newDeck.carrd;\n userPoint = 0;\n northPoint= 0; \n westPoint = 0; \n eastPoint = 0;\n mytransporthandler = new myTransferHandler (\"icon\"); \n \n }",
"@Override\n\tpublic Object execute(VirtualFrame frame) {\n\t\treturn null;\n\t}",
"public Frame getFrame()\n {\n return this;\n }",
"@Override\r\n\tpublic void additionalFuntion() {\n\t\tSystem.out.println(\"에디트 플러스에는 FTP 및 빌드 기능이 있습니다.\");\r\n\t}",
"void setupFrame()\n {\n int wd = shopFrame.getWidth();\n sellItemF(wd);\n\n requestItemF(wd);\n setAllVisFalse();\n }",
"public void onFramePickup(ym iba) {}",
"@SuppressWarnings(\"OverridableMethodCallInConstructor\")\n public ServerFrame() {\n initComponents();\n init();\n connection();\n }",
"@Override\n public void returnObject(FTPClient client) {\n try {\n if (client != null && !ftpBlockingQueue.offer(client, 3, TimeUnit.SECONDS)) {\n ftpClientFactory.destroyObject(ftpClientFactory.wrap(client));\n }\n } catch (InterruptedException e) {\n log.error(\"return ftp client interrupted ...{}\", e.toString());\n }\n }",
"public Channel method_4090() {\n return null;\n }",
"public void setFrame(BufferedImage frame) {\r\n\t\tplayer = frame;\r\n\t}",
"public void setFtpConnectionPane() {\n int col = 0;\n int row = 0;\n feedname = new JFXTextField();\n feedname.setPromptText(\"Enter the Feed Name\");\n hostname = new JFXTextField();\n hostname.setPromptText(\"Enter the host name\");\n username = new JFXTextField();\n username.setPromptText(\"Enter the Username\");\n password = new JFXPasswordField();\n password.setPromptText(\"Enter the password\");\n ftpConnectionCheck = new Button();\n GridPane ftpgrid = new GridPane();\n ftpgrid.setHgap(10);\n ftpgrid.setVgap(5);\n ftpgrid.setPadding(new Insets(20, 10, 10, 10));\n ftpConnectionCheck = new Button(\"Test Connection\");\n ftpgrid.add(new Label(\"Feed Name\"), col, row);\n ftpgrid.add(feedname, col + 1, row, 2, 1);\n ftpgrid.add(new Label(\"Host Name\"), col, ++row);\n ftpgrid.add(hostname, col + 1, row, 2, 1);\n ftpgrid.add(new Label(\"User Name\"), col, ++row);\n ftpgrid.add(username, col + 1, row, 2, 1);\n ftpgrid.add(new Label(\"Password\"), col, ++row);\n ftpgrid.add(password, col + 1, row, 4, 1);\n// ftpgrid.add(new Label(\"\"), col, ++row);\n\n ftptp.setContent(ftpgrid);\n\n }",
"public SerialCommFrame()\n {\n super();\n initialize();\n }",
"public void startFrame(Client client) {\r\n\t\tthis.client = client;\r\n\t\tJFrame frame = new JFrame();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(this);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}",
"public WebFile getFile() { return _file; }",
"public void inicializarFrames(){ // hay que enviar tambien la direccion IP\r\n \r\n this.empView = new Employees(this.user,this.host);\r\n this.equiView = new Equipments(this.user,this.host);\r\n this.deptView = new Departments(this.user,this.host);\r\n this.loctView = new Locations(this.user,this.host);\r\n this.artView = new Articles(this.user,this.host);\r\n this.suppView = new Suppliers(this.user,this.host);\r\n this.instView = new Instructions(this.user,this.host);\r\n this.mantView = new Mantenimiento(this.user,this.host);\r\n this.ordtrView = new OrdenTrabajo(this.user,this.host); \r\n this.repView = new Reports(this.user,this.host);\r\n this.pedView = new Pedidos(/*this.user,*/this.host);\r\n this.opeView = new Operabilidad(/*this.user,*/this.host);\r\n}",
"public org.apache.calcite.avatica.proto.Common.Frame getFrame() {\n return frame_ == null ? org.apache.calcite.avatica.proto.Common.Frame.getDefaultInstance() : frame_;\n }",
"@Override \n public void commandFrame(int id, int frameCount) {\n\n }",
"public static void main(String[] args) {\n Connect4Final frame1 = new Connect4Final();\r\n }",
"public interface IFrameProcessor\n{\n /**\n * @param rawFrame Das Rohdatenframe\n * @return Das verarbeitete Frame\n */\n Bitmap processFrame(Bitmap rawFrame);\n}",
"public void setFrame(JFrame frame) {\n\t\tthis.frame = frame;\n\t}",
"public void setFrame(JFrame frame) {\n\t\tthis.frame = frame;\n\t}",
"public internalFrame() {\r\n initComponents();\r\n }",
"private void connect() {\n ftp.connect();\n if (ftp.goodReply()) sendResponse(\"Connected\");\n else sendResponse(\"Could not connect to server\");\n }",
"void sendFile() {\r\n\t\t// 특정 클라이언트에게 파일을 보냄\r\n\t}",
"public JFrame getFrame() {\n\t\treturn frame;\n\t}",
"public JFrame getFrame() {\n\t\treturn frame;\n\t}",
"public JFrame getFrame() {\n\t\treturn frame;\n\t}",
"public JFrame getFrame() {\n\t\treturn frame;\n\t}",
"private void treatFrame(Frame frame) throws IOException {\n if (frame instanceof PublicMessage) {\n var pm = (PublicMessage) frame;\n System.out.println(pm.getPseudo() + \": \" + pm.getMsg());\n\n } else if (frame instanceof PrivateMessage) {\n var pm = (PrivateMessage) frame;\n System.out.println(\"Private message from \" + pm.getPseudo() + \": \" + pm.getMsg());\n } else if (frame instanceof ErrorFrame) {\n var ef = (ErrorFrame) frame;\n var efCode = ef.getCode();\n if (efCode == 1) {\n System.out.println(\"Login already used by another client\");\n silentlyClose();\n closed = true;\n return;\n } else if (efCode == 2) {\n System.out.println(\"Receiver does not exist\");\n return;\n } else if (efCode == 0) {\n silentlyClose();\n return;\n }\n } else if (frame instanceof PrivateConnexionRequest) {\n var pcr = (PrivateConnexionRequest) frame;\n System.out.println(\"Private connexion request from: \" + pcr.getRequester() +\n \" (/accept \" + pcr.getRequester() + \" or /decline \" + pcr.getRequester() + \")\");\n clientChatOs.privateContextMap.put(pcr.getRequester(),\n new PrivateContext(State.PENDING_TARGET, clientChatOs));\n } else if (frame instanceof PrivateConnexionDecline) {\n var pcd = (PrivateConnexionDecline) frame;\n System.out.println(\"Private connexion request with: \" + pcd.getReceiver() +\n \" declined\");\n clientChatOs.privateContextMap.remove(pcd.getReceiver());\n } else if (frame instanceof IdPrivateFrame) {\n var ipd = (IdPrivateFrame) frame;\n if (ipd.getRequester().equals(pseudo)) {\n clientChatOs.privateContextMap.get(ipd.getReceiver())\n .initializePrivateConnexion(ipd.getConnectId());\n } else {\n clientChatOs.privateContextMap.get(ipd.getRequester())\n .initializePrivateConnexion(ipd.getConnectId());\n }\n }\n }",
"public MainFrameController() {\n }",
"public boolean hasFrame() {\n return frame_ != null;\n }",
"Bitmap getBitmap(){\n Bitmap bm = frame;\n frame = null;\n return bm;\n }",
"public ConnectionFrame() {\n initComponents();\n setupFiles();\n \n this.setIconImage(new ImageIcon(getClass().getResource(\"/net/jmhertlein/mctowns/remote/client/resources/icon.png\")).getImage());\n \n keyLoader = new KeyLoader(rootKeysDir);\n \n updateKeyComboBox();\n updateServerComboBox();\n advancedPane.setVisible(false);\n connectionProgressBar.setVisible(false);\n pack();\n \n setLocationRelativeTo(null);\n thisFrame = this;\n }",
"public POSFrame() {\n initComponents();\n }",
"public void setFrame(int frame)\n\t{\n\t\tisFinished = false;\n\t\tcurrFrame = frame;\n\t\tframeStart = (long) Game.getTimeMilli();\n\t}",
"public JFrame getFrame(){\n\t\treturn this.frame;\n\t}",
"@Override\n\tpublic void onPreviewFrame(byte[] bytes, Camera camera) {\n\n\t}",
"org.apache.calcite.avatica.proto.Common.FrameOrBuilder getFrameOrBuilder();",
"public Frame readFrame() {\n _buffer.flip();\n if(_buffer.hasRemaining()) {\n int frameSize = _buffer.getInt();\n byte[] body = new byte[frameSize];\n _buffer.get(body);\n return new Frame(frameSize, body);\n } else {\n return null;\n }\n }"
] | [
"0.6324206",
"0.5782219",
"0.5724172",
"0.56953585",
"0.56098074",
"0.559612",
"0.5510369",
"0.5510262",
"0.5470674",
"0.54602885",
"0.544131",
"0.54306287",
"0.5406349",
"0.5397348",
"0.5397348",
"0.53627914",
"0.529001",
"0.52827954",
"0.528198",
"0.52804446",
"0.5272168",
"0.52578676",
"0.52514154",
"0.5249139",
"0.52415264",
"0.52286327",
"0.52286327",
"0.52286327",
"0.5215991",
"0.5210643",
"0.5208487",
"0.519957",
"0.51903707",
"0.5166195",
"0.5164043",
"0.51601124",
"0.5146301",
"0.51445144",
"0.51427454",
"0.513548",
"0.5129712",
"0.5124274",
"0.5102177",
"0.50922227",
"0.5083264",
"0.5080712",
"0.50801384",
"0.50790846",
"0.5072036",
"0.5064805",
"0.5062645",
"0.5060072",
"0.50473183",
"0.5023579",
"0.5019812",
"0.50192416",
"0.5018581",
"0.50114214",
"0.500231",
"0.4994373",
"0.4991927",
"0.49889272",
"0.49771395",
"0.49719444",
"0.4948354",
"0.49357212",
"0.49291402",
"0.49232715",
"0.49202114",
"0.4920068",
"0.49180695",
"0.4917912",
"0.49155384",
"0.4915251",
"0.49133468",
"0.49039194",
"0.4894454",
"0.48855367",
"0.4882131",
"0.48811066",
"0.48687583",
"0.48658702",
"0.48658702",
"0.48626876",
"0.48606583",
"0.48475945",
"0.4847249",
"0.4847249",
"0.4847249",
"0.4847249",
"0.48397642",
"0.48384458",
"0.48364952",
"0.48337445",
"0.48287514",
"0.48275903",
"0.48237887",
"0.48234078",
"0.4804629",
"0.48044378",
"0.47993225"
] | 0.0 | -1 |
initialize your data structure here. | public MinStack() {
dataStack=new Stack<>();
minStack=new Stack<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initData() {\n\t}",
"private void initData() {\n }",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"@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\tpublic void initData() {\n\n\n\n\t}",
"private void InitData() {\n\t}",
"private void initData(){\n\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\r\n\tpublic void initData() {\n\t}",
"private void initialize() {\n first = null;\n last = null;\n size = 0;\n dictionary = new Hashtable();\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}",
"public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }",
"protected @Override\r\n abstract void initData();",
"public void initialize() {\n // empty for now\n }",
"void initData(){\n }",
"private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}",
"public void initData(){\r\n \r\n }",
"public InitialData(){}",
"abstract void initializeNeededData();",
"public void initialize()\n {\n }",
"public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void init() {\n\t\t}",
"private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }",
"private void initializeData() {\n posts = new ArrayList<>();\n posts.add(new Posts(\"Emma Wilson\", \"23 years old\", R.drawable.logo));\n posts.add(new Posts(\"Lavery Maiss\", \"25 years old\", R.drawable.star));\n posts.add(new Posts(\"Lillie Watts\", \"35 years old\", R.drawable.profile));\n }",
"public void initialize() {\n grow(0);\n }",
"public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }",
"public void init() {\n \n }",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"private void initData() {\n requestServerToGetInformation();\n }",
"private TigerData() {\n initFields();\n }",
"public void initialise() \n\t{\n\t\tthis.docids = scoresMap.keys();\n\t\tthis.scores = scoresMap.getValues();\n\t\tthis.occurrences = occurrencesMap.getValues();\t\t\n\t\tresultSize = this.docids.length;\n\t\texactResultSize = this.docids.length;\n\n\t\tscoresMap.clear();\n\t\toccurrencesMap.clear();\n\t\tthis.arraysInitialised = true;\n\t}",
"public void InitData() {\n }",
"public void init() {\r\n\r\n\t}",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"private void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void initialise() {\n \thashFamily = new Hash[this.r];\n for(int i= 0; i < this.r;i++)\n {\n \tthis.hashFamily[i] = new Hash(this.s * 2);\n }\n this.net = new OneSparseRec[this.r][this.s *2];\n for(int i = 0 ; i < this.r; i++)\n \tfor(int j =0 ; j< this.s * 2 ; j++)\n \t\tthis.net[i][j] = new OneSparseRec();\n \n }",
"protected void initialize() {\n \t\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"public DataStructure() {\r\n firstX = null;\r\n lastX = null;\r\n firstY = null;\r\n lastY = null;\r\n size = 0;\r\n }",
"private void initialize() {\n }",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"private void init() {\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private RandomData() {\n initFields();\n }",
"public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }",
"private void initialize() {\n\t\t\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void initialize() {\r\n }",
"public void initialize() {\n // TODO\n }",
"private void initValues() {\n \n }",
"public void init() {\n\t\t\n\t}",
"public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"bebexitaHemoxita@gmail.com\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}",
"private void initialize() {\n\t}",
"public void init() {\n\t\n\t}",
"private void initStructures() throws RIFCSException {\n initTexts();\n initDates();\n }",
"public AllOOneDataStructure() {\n\t\thead=new Node(\"\", 0);\n\t\ttail=new Node(\"\", 0);\n\t\thead.next=tail;\n\t\ttail.prev=head;\n\t\tmap=new HashMap<>();\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }",
"private void initialize() {\n this.pm10Sensors = new ArrayList<>();\n this.tempSensors = new ArrayList<>();\n this.humidSensors = new ArrayList<>();\n }",
"private void init() {\n UNIGRAM = new HashMap<>();\n }",
"@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}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}"
] | [
"0.7977482",
"0.7960524",
"0.77892214",
"0.77469254",
"0.77469254",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7555887",
"0.74711394",
"0.74664557",
"0.7456787",
"0.7442776",
"0.74332404",
"0.74293566",
"0.74293566",
"0.74293566",
"0.7424801",
"0.7424801",
"0.74193865",
"0.74193865",
"0.7396702",
"0.7377209",
"0.7337531",
"0.7284757",
"0.7242543",
"0.7239983",
"0.7234074",
"0.7234074",
"0.7198138",
"0.71908426",
"0.715556",
"0.71537024",
"0.71223176",
"0.7119919",
"0.7108915",
"0.7079143",
"0.7067195",
"0.7038099",
"0.7007621",
"0.70002675",
"0.69993395",
"0.69971174",
"0.6990406",
"0.69751334",
"0.6956165",
"0.69540185",
"0.69464344",
"0.6929199",
"0.69277245",
"0.69274646",
"0.692011",
"0.6919285",
"0.6905678",
"0.6900472",
"0.6888085",
"0.68746126",
"0.687375",
"0.6872683",
"0.6862437",
"0.6862437",
"0.6862437",
"0.6862437",
"0.6859934",
"0.68572277",
"0.6854638",
"0.68525577",
"0.6849266",
"0.6842036",
"0.684087",
"0.6834055",
"0.6818388",
"0.6818388",
"0.6818388",
"0.68110853",
"0.6810481",
"0.67957866",
"0.67933977",
"0.67928183",
"0.6774874",
"0.67705756",
"0.6769432",
"0.6769174",
"0.67685276",
"0.6758345",
"0.67506",
"0.67413336",
"0.6737609",
"0.67348677",
"0.67224944",
"0.67206126",
"0.6720061",
"0.6720061",
"0.6720061",
"0.6716976",
"0.6716976",
"0.6716976",
"0.67100465"
] | 0.0 | -1 |
Created by CodeGenerator on 2020/03/07. | public interface PredictsService extends Service<Predicts> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"Consumable() {\n\t}",
"public void mo38117a() {\n }",
"public static void generateCode()\n {\n \n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@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\tpublic void grabar() {\n\t\t\n\t}",
"private Solution() {\n /**.\n * { constructor }\n */\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"private TMCourse() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"private SourcecodePackage() {}",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"@Override\n\tprotected void interr() {\n\t}",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"private JacobUtils() {}",
"public void mo6081a() {\n }",
"private void kk12() {\n\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private final zzgy zzgb() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@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 anular() {\n\n\t}",
"private MetallicityUtils() {\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}",
"private CanonizeSource() {}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void memoria() {\n \n }",
"private Singletion3() {}",
"private Infer() {\n\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void mo12930a() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public abstract void mo70713b();",
"public void mo21785J() {\n }",
"public final void mo91715d() {\n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public void mo23813b() {\n }",
"@Override\n\tpublic void create () {\n\n\t}",
"private CodeRef() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"public void mo1531a() {\n }",
"public void mo115190b() {\n }",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"private void init() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private MApi() {}",
"protected void mo6255a() {\n }",
"Petunia() {\r\n\t\t}",
"public void mo21792Q() {\n }",
"@Override\n\tpublic void jugar() {}",
"public void mo21877s() {\n }"
] | [
"0.6018693",
"0.5926378",
"0.5840003",
"0.579283",
"0.579283",
"0.57602245",
"0.5757238",
"0.57483184",
"0.56906074",
"0.5673075",
"0.5625119",
"0.56203425",
"0.55559963",
"0.55559963",
"0.55559963",
"0.55559963",
"0.55559963",
"0.55559963",
"0.5539407",
"0.55296844",
"0.55254334",
"0.551335",
"0.5497031",
"0.54942083",
"0.5482694",
"0.54820454",
"0.54811466",
"0.547994",
"0.5475461",
"0.547435",
"0.54728395",
"0.5469875",
"0.5466247",
"0.54651916",
"0.54384947",
"0.54248875",
"0.5420502",
"0.54157543",
"0.54157543",
"0.54157543",
"0.54139",
"0.5402819",
"0.53979594",
"0.53957033",
"0.53892493",
"0.5388043",
"0.53786737",
"0.53756887",
"0.53700864",
"0.53689766",
"0.5362505",
"0.5353029",
"0.5349983",
"0.53467256",
"0.53467256",
"0.53439546",
"0.53413606",
"0.53409946",
"0.53409946",
"0.53405786",
"0.53380924",
"0.5337687",
"0.53365517",
"0.53349423",
"0.5333892",
"0.5333288",
"0.5329296",
"0.53248453",
"0.53248453",
"0.53248453",
"0.53248453",
"0.53248453",
"0.53248453",
"0.53248453",
"0.531741",
"0.53166264",
"0.531395",
"0.53128535",
"0.53116435",
"0.5311289",
"0.530885",
"0.5307155",
"0.53048426",
"0.5301761",
"0.53017455",
"0.53017455",
"0.53017455",
"0.53017455",
"0.53017455",
"0.5296427",
"0.52940774",
"0.52931345",
"0.5292519",
"0.52917063",
"0.5290547",
"0.5287605",
"0.5284177",
"0.528214",
"0.52820295",
"0.52791244",
"0.527834"
] | 0.0 | -1 |
unchecked casts for converting args and return value should be safe since types should have all been checked during creation of converters prior to creating this dispatch candidate | @SuppressWarnings("unchecked")
public Object invoke(Caster<?> caster, Object obj, Object args[]) throws Throwable {
try {
if (argConverters != null) {
for (int i = 0, len = args.length; i < len; i++) {
@SuppressWarnings("rawtypes") // so we can pass Object as input to conversion
Converter converter = argConverters[i];
if (converter != null) {
args[i] = converter.convert(args[i], caster);
}
}
}
if (varArgsConverter != null) {
args = varArgsConverter.apply(args);
}
Object ret = method.invoke(obj, args);
if (returnConverter != null) {
@SuppressWarnings("rawtypes") // so we can pass Object as input to conversion
Converter converter = returnConverter;
ret = converter.convert(ret, caster);
}
return ret;
} catch (InvocationTargetException e) {
throw e.getCause();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Type tryPerformCall(final Type... args) {\n if (params.length != args.length) {\n return null;\n }\n for (int i = 0; i < args.length; ++i) {\n if (!args[i].canConvertTo(params[i])) {\n return null;\n }\n }\n return ret;\n }",
"Object getConvertedValue() throws ConversionException;",
"public Object convert(Object from, Class to) {\n \t\tif (from instanceof Function) {\n \t\t\tif (to == Callable.class)\n \t\t\t\treturn new RhinoCallable(engine, (Function) from);\n \t\t} else if (from instanceof Scriptable || from instanceof String) { // Let through string as well, for ArgumentReader\n \t\t\tif (Map.class.isAssignableFrom(to)) {\n \t\t\t\treturn toMap((Scriptable) from);\n \t\t\t} else {\n \t\t\t\t/* try constructing from this prototype first\n \t\t\t\ttry {\n \t\t\t\t\tScriptable scope = engine.getScope();\n \t\t\t\t\tExtendedJavaClass cls = ExtendedJavaClass.getClassWrapper(scope, to);\n \t\t\t\t\treturn cls.construct(Context.getCurrentContext(), scope, new Object[] { from });\n \t\t\t\t} catch(Throwable e) {\n \t\t\t\t\tint i = 0;\n \t\t\t\t}\n \t\t\t\t*/\n \t\t\t\tArgumentReader reader = null;\n \t\t\t\tif (ArgumentReader.canConvert(to) && (reader = getArgumentReader(from)) != null) {\n \t\t\t\t return ArgumentReader.convert(reader, unwrap(from), to);\n \t\t\t\t} else if (from instanceof NativeObject && getZeroArgumentConstructor(to) != null) {\n \t\t\t\t\t// Try constructing an object of class type, through\n \t\t\t\t\t// the JS ExtendedJavaClass constructor that takes \n \t\t\t\t\t// a last optional argument: A NativeObject of which\n \t\t\t\t\t// the fields define the fields to be set in the native type.\n \t\t\t\t\tScriptable scope = ((RhinoEngine) this.engine).getScope();\n \t\t\t\t\tExtendedJavaClass cls =\n \t\t\t\t\t\t\tExtendedJavaClass.getClassWrapper(scope, to);\n \t\t\t\t\tif (cls != null) {\n \t\t\t\t\t\tObject obj = cls.construct(Context.getCurrentContext(),\n \t\t\t\t\t\t\t\tscope, new Object[] { from });\n \t\t\t\t\t\tif (obj instanceof Wrapper)\n \t\t\t\t\t\t\tobj = ((Wrapper) obj).unwrap();\n \t\t\t\t\t\treturn obj;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t} else if (from == Undefined.instance) {\n \t\t\t// Convert undefined ot false if destination is boolean\n \t\t\tif (to == Boolean.TYPE)\n \t\t\t\treturn Boolean.FALSE;\n \t\t} else if (from instanceof Boolean) {\n \t\t\t// Convert false to null / undefined for non primitive destination classes.\n\t\t\tif (!((Boolean) from).booleanValue() && !to.isPrimitive())\n \t\t\t\treturn Undefined.instance;\n \t\t}\n \t\treturn null;\n \t}",
"public Object convertArgs2Java(final PyObject... args) {\n\t\tObject ret = null;\n\n\t\tif (args.length == 1) {\n\t\t\tret = args[0].__tojava__(Object.class);\n\t\t} else {\n\t\t\tfinal Object[] convertedArgs = new Object[args.length];\n\n\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\tconvertedArgs[i] = args[i].__tojava__(Object.class);\n\t\t\t}\n\n\t\t\tret = convertedArgs;\n\t\t}\n\n\t\treturn ret;\n\t}",
"protected abstract boolean canConvert(Class<?> parameterType, Class<?> originalArgumentType);",
"private List<Expr> castActualsToFormals(List<Expr> args, List<Type> formals) {\n List<Expr> newArgs = null;\n for (int i=0; i<args.size(); i++) {\n Expr e = args.get(i);\n Type fType = formals.get(i);\n Expr e2 = null;\n \n if (Types.baseType(fType) instanceof FunctionType) {\n e2 = upcastToFunctionType(e, (FunctionType)Types.baseType(fType), false); \n } else if (!ts.typeDeepBaseEquals(fType, e.type(), context)) {\n e2 = makeCast(e.position(), e, fType);\n }\n \n if (e2 != null) {\n if (newArgs == null) {\n newArgs = new ArrayList<Expr>(args);\n }\n newArgs.set(i, e2);\n }\n \n }\n return newArgs == null ? args : newArgs;\n }",
"protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);",
"private static void checkConvertibility(JValue val, JType typ){\r\n\t\tJType argTyp = val.getType();\n\t\tif (argTyp == null) {\n\t\t\tif (!(typ == AnyType.getInstance() || typ.isObject())) {\n\t\t\t\tthrow new TypeIncompatibleException(JObjectType.getInstance(), typ);\n\t\t\t}\n\t\t} else {\n\t\t\tConvertibility conv = argTyp.getConvertibilityTo(typ);\n\t\t\tif(conv == Convertibility.UNCONVERTIBLE){\n\t\t\t\tthrow new TypeIncompatibleException(argTyp, typ);\n\t\t\t} else if (conv == Convertibility.UNSAFE && argTyp == AnyType.getInstance()){\n\t\t\t\tUntypedValue uv = (UntypedValue) val;\n\t\t\t\tcheckConvertibility(uv.getActual(), typ);\n\t\t\t}\n\t\t}\r\n\t}",
"T convert(S e);",
"public PyObject[] convertArgs2Python(final Object... args) {\n\t\tfinal PyObject[] convertedArgs = new PyObject[args.length];\n\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tconvertedArgs[i] = Py.java2py(args[i]);\n\t\t}\n\n\t\treturn convertedArgs;\n\t}",
"public <T> T cast();",
"protected abstract Object convertNonNull(Object o);",
"public Object invoke (Object obj, Object[] args)\n {\n\tfor (int i = 0; i < myCoercers.length; i++)\n\t{\n\t args[i] = myCoercers[i].coerce (args[i]);\n\t}\n\n\treturn invoke0 (obj, args);\n }",
"public void testNegativeScalar() {\n\n /*\n * fixme Boolean converters not implemented at this point value = LocaleConvertUtils.convert(\"foo\", Boolean.TYPE); ...\n *\n * value = LocaleConvertUtils.convert(\"foo\", Boolean.class); ...\n */\n\n try {\n LocaleConvertUtils.convert(\"foo\", Byte.TYPE);\n fail(\"Should have thrown conversion exception (1)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Byte.class);\n fail(\"Should have thrown conversion exception (2)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n /*\n * fixme - not implemented try { value = LocaleConvertUtils.convert(\"org.apache.commons.beanutils2.Undefined\", Class.class);\n * fail(\"Should have thrown conversion exception\"); } catch (ConversionException e) { ; // Expected result }\n */\n\n try {\n LocaleConvertUtils.convert(\"foo\", Double.TYPE);\n fail(\"Should have thrown conversion exception (3)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Double.class);\n fail(\"Should have thrown conversion exception (4)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Float.TYPE);\n fail(\"Should have thrown conversion exception (5)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Float.class);\n fail(\"Should have thrown conversion exception (6)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Integer.TYPE);\n fail(\"Should have thrown conversion exception (7)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Integer.class);\n fail(\"Should have thrown conversion exception (8)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Byte.TYPE);\n fail(\"Should have thrown conversion exception (9)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Long.class);\n fail(\"Should have thrown conversion exception (10)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Short.TYPE);\n fail(\"Should have thrown conversion exception (11)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n try {\n LocaleConvertUtils.convert(\"foo\", Short.class);\n fail(\"Should have thrown conversion exception (12)\");\n } catch (final ConversionException e) {\n // Expected result\n }\n\n }",
"public static Object convert(Object srcValue, Class<?> targetCls)\n\t\tthrows ApplicationException\n\t{\n\t\tObject result=srcValue;\n\n\t\tClass srcClass=((null==srcValue) ? null : srcValue.getClass());\n\t\tClass dtClass=DateTime.class;\n\n\t\tif (((null==srcValue) || Converter.isPrimitiveType(srcClass)) && Converter.isPrimitiveType(targetCls))\n\t\t{\n\t\t\tresult=(null==srcValue) ? null : targetCls.cast(srcValue);\n\t\t}\n\t\telse if (ClassX.isKindOf(targetCls, URI.class))\n\t\t{\n\t\t\tif (null!=srcValue)\n\t\t\t{\n\t\t\t\tresult=URI.create(srcValue.toString());\n\t\t\t}\n\t\t}\n\t\telse if (ClassX.isKindOf(targetCls, dtClass))\n\t\t{\n\t\t\tif (null==srcValue)\n\t\t\t{\n\t\t\t\tresult=null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tString date=srcValue.toString().toLowerCase();\n\t\t\t\tdate=date.replace(\"/date(\", \"\");\n\t\t\t\tdate=date.replace(\")/\", \"\");\n\n\t\t\t\t// Remove the timezone offset value\n\t\t\t\tif (date.contains(\"+\"))\n\t\t\t\t{\n\t\t\t\t\tString[] parts=Converter.PATTERN_UTC_OFFSET.split(date);\n\t\t\t\t\tdate=parts[0];\n\t\t\t\t\t// The second value is the time zone offset but we will always use UTC.\n\t\t\t\t}\n\n\t\t\t\t// double values can not be parsed to DateTime\n\t\t\t\tif (date.contains(\"\"))\n\t\t\t\t{\n\t\t\t\t\tString[] parts=Converter.PATTERN_BACKSLASH.split(date);\n\t\t\t\t\tdate=parts[0];\n\t\t\t\t}\n\t\t\t\tLong dtLong=Long.valueOf(date);\n\t\t\t\tresult=new DateTime(dtLong, DateTimeZone.UTC);\n\t\t\t}\n\t\t}\n\t\telse if (ClassX.implementsInterface(targetCls, Convertible.class))\n\t\t{\n\t\t\tConvertible convertibleTarget;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tconvertibleTarget=(Convertible) targetCls.getConstructor().newInstance();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new ApplicationException(e);\n\t\t\t}\n\t\t\tif ((null==srcClass) || convertibleTarget.canConvertFrom(srcClass))\n\t\t\t{\n\t\t\t\tconvertibleTarget.convertFrom(srcValue);\n\t\t\t\tresult=convertibleTarget;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new ClassCastException(\n\t\t\t\t\tString.format(\n\t\t\t\t\t\t\"'%s' does not support converting from '%s'.\", targetCls.getName(), srcClass.getName()\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\telse if (ClassX.implementsInterface(srcClass, Convertible.class))\n\t\t{\n\t\t\tConvertible convertibleSrc=(Convertible) srcValue;\n\t\t\tif ((null!=srcClass) && convertibleSrc.canConvertTo(srcClass))\n\t\t\t{\n\t\t\t\tresult=convertibleSrc.convertTo(targetCls);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new ClassCastException(\n\t\t\t\t\tString.format(\n\t\t\t\t\t\t\"'%s' does not support converting to '%s'.\", ((null==srcClass) ? \"unknown source Class\" : srcClass.getName()),\n\t\t\t\t\t\t(targetCls!=null) ? targetCls.getName() : \"unknown target class\"\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"private static void mapArgumentsToJava(Object[] args) {\n if (null != args) {\n for (int a = 0; a < args.length; a++) {\n args[a] = mapValueToJava(args[a]);\n }\n }\n }",
"T convert(S source) throws ConversionException;",
"T convert(S s) throws UnconvertableException;",
"protected IValue narrow(Object result){\n\t\tif(result instanceof Integer) {\n\t\t\treturn vf.integer((Integer)result);\n\t\t}\n\t\tif(result instanceof IValue) {\n\t\t\treturn (IValue) result;\n\t\t}\n\t\tif(result instanceof Thrown) {\n\t\t\t((Thrown) result).printStackTrace(stdout);\n\t\t\treturn vf.string(((Thrown) result).toString());\n\t\t}\n\t\tif(result instanceof Object[]) {\n\t\t\tIListWriter w = vf.listWriter();\n\t\t\tObject[] lst = (Object[]) result;\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(narrow(lst[i]));\n\t\t\t}\n\t\t\treturn w.done();\n\t\t}\n\t\tif(result == null){\n\t\t\treturn null;\n\t\t}\n\t\tthrow new InternalCompilerError(\"Cannot convert object back to IValue: \" + result);\n\t}",
"public static Value performUserDefinedConversion(TypeSpec from,\n final TypeSpec to, Value fromValue, final boolean implicitConversion) {\n if (fromValue != null) {\n\n if (from.isAny()) {\n if (fromValue.getValue() != null) {\n fromValue = new Value(((Any) fromValue.getValue()).value);\n from = TypeSpec.typeOf(fromValue);\n } else {\n fromValue = new Value(); // null Value\n }\n } else if (from.isNum()) {\n if (fromValue.getValue() != null) {\n fromValue = new Value(((Num) fromValue.getValue()).value);\n from = TypeSpec.typeOf(fromValue);\n } else {\n fromValue = new Value(); // null Value\n }\n } else {\n fromValue = TypeSpec.unwrapAnyOrNumValue(fromValue);\n }\n\n }\n\n if ((fromValue != null) && (fromValue.getValue() != null)) {\n Debug.Assert(TypeSpec.typeOf(fromValue).equals(from),\n \"fromValue (type \" + TypeSpec.typeOf(fromValue)\n + \") must be of type 'from'=\" + from);\n }\n\n // (NB: we are treating the builtin class types (like Vector, Matrix) as\n // user-defined here as\n // then we can utilize their Java method conversions\n final boolean fromIsSimpleBuiltin = (from.isBuiltin() && !from\n .isBuiltinClass()) || from.isBuiltinObject();\n final boolean toIsSimpleBuiltin = (to.isBuiltin() && !to\n .isBuiltinClass()) || to.isBuiltinObject();\n\n if (fromIsSimpleBuiltin && toIsSimpleBuiltin) {\n return null; // no user-defined conversions in simple builtin types!\n }\n\n // First, construct a set of operators from 'from' and 'to' that convert\n // from a type\n // encompassing 'from' to a type encompassed by 'to'\n // (only considering implicit operators, if 'implicit' is true\n\n final Entry[] fromOps = getUserDefinedConversionOperatorsOf(from);\n final Entry[] toOps = (!from.equals(to)) ? getUserDefinedConversionOperatorsOf(to)\n : new Entry[0]; // don't duplicate\n\n final ArrayList applicableOps = new ArrayList();\n\n for (final Entry entry : fromOps) {\n final TypeSpec convertFrom = conversionOperatorFromType(from, entry);\n final TypeSpec convertTo = conversionOperatorToType(from, entry);\n if (encompasses(convertFrom, from) && encompassedBy(convertTo, to)\n && (!implicitConversion || entry.isImplicit())) {\n applicableOps.add(new TypeManager.ConvOperator(from, entry));\n }\n }\n\n for (final Entry entry : toOps) {\n final TypeSpec convertFrom = conversionOperatorFromType(to, entry);\n final TypeSpec convertTo = conversionOperatorToType(to, entry);\n if (encompasses(convertFrom, from) && encompassedBy(convertTo, to)\n && (!implicitConversion || entry.isImplicit())) {\n applicableOps.add(new TypeManager.ConvOperator(to, entry));\n }\n }\n\n // if the set of applicable operators is empty, there is no user-defined\n // conversion\n if (applicableOps.size() == 0) {\n return null;\n }\n\n // Now we need to find the most specific from type and the most specific\n // to type of the conversions\n // if one of the conversion from types is actually 'from', then thats\n // it,otherwise it is\n // the most encompassed\n TypeSpec mostSpecificFrom = null;\n for (final Object o : applicableOps) {\n final ConvOperator op = (ConvOperator) o;\n if (op.from().equals(from)) {\n mostSpecificFrom = from;\n break;\n }\n }\n\n if (mostSpecificFrom == null) { // didn't find 'from' specifically, look\n // for most encompassed\n\n final ArrayList fromTypes = new ArrayList(); // make a list of\n // conversion from\n // types\n for (final Object op : applicableOps) {\n fromTypes.add(((ConvOperator) op).from());\n }\n\n mostSpecificFrom = mostEncompassedType(fromTypes);\n\n if (mostSpecificFrom == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n }\n\n // OK, now do the analogous thing for the convert to types\n TypeSpec mostSpecificTo = null;\n for (final Object op : applicableOps) {\n if (((ConvOperator) op).to().equals(to)) {\n mostSpecificTo = to;\n break;\n }\n }\n\n if (mostSpecificTo == null) { // didn't find 'to' specifically, look for\n // most encompassing\n\n final ArrayList toTypes = new ArrayList(); // make a list of\n // conversion to types\n for (final Object op : applicableOps) {\n toTypes.add(((ConvOperator) op).to());\n }\n\n mostSpecificTo = mostEncompassingType(toTypes);\n\n if (mostSpecificTo == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n }\n\n // Now find an 'operator' in applicableOps that converts from\n // 'mostSpecificFrom' to 'mostSpecificTo'\n // if there are none or more that one, the conversion is ambiguous\n\n ConvOperator conversionOp = null;\n for (final Object o : applicableOps) {\n final ConvOperator op = (ConvOperator) o;\n if (op.from().equals(mostSpecificFrom)\n && op.to().equals(mostSpecificTo)) {\n if (conversionOp == null) {\n conversionOp = op; // found one\n } else {// alreay had one, more than one is ambiguous\n // Debug.WL(\"HERE had \"+op.from()+\"->\"+op.to()+\" in \"+conversionOp.declaringType+\" don't need in \"+op.declaringType);\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\"\n + to + \"' is ambiguous\");\n }\n }\n }\n\n if (conversionOp == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n\n // if we don't have a fromValue to convert, this is as far as we go.\n // Just return\n // a non-null *Value* to indicate that the conversion exists\n if (fromValue == null) {\n return new Value(); // null Value\n }\n\n // Finally, we can actually perform the conversion using 'conversionOp'\n // 3 steps:\n // 1) convert from -> mostSpecificFrom\n // 2) use conversionOp to convert mostSpecificFrom -> mostSpecificTo\n // 3) convert mostSpecificTo -> to\n\n Value v = fromValue;\n if (!from.equals(mostSpecificFrom)) {\n v = performImplicitConversion(from, mostSpecificFrom, v); // 1\n }\n // Debug.WriteLine(\"STEP2, calling conversion operator:\"+mostSpecificFrom+\"->\"+mostSpecificTo+\" of \"+conversionOp.declaringType+\" : \"+conversionOp.methodEntry);\n v = callConversionOperator(conversionOp.declaringType,\n conversionOp.methodEntry, v); // 2\n Debug.Assert(v != null, \"call of conversion operator failed\");\n Debug.Assert(TypeSpec.typeOf(v).equals(mostSpecificTo),\n \"unexpected return type from conversion operator\");\n\n if (!to.equals(mostSpecificTo)) {\n v = performImplicitConversion(mostSpecificTo, to, v); // 3\n }\n\n return v;\n }",
"Object convert(Object source, TypeToken<?> targetTypeToken);",
"protected <T> T convert(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }",
"public Object elConvertType(Object value);",
"@Override\n\tpublic Object convert(Class<?> desiredType, Object in) throws Exception {\n\t\treturn null;\n\t}",
"@FunctionalInterface\npublic interface Convert<S,T> {\n T convert(S arg);\n}",
"static void checkArgTypes(\r\n\t\tString funcName, Argument[] args, JParameter[] params) {\r\n\t\tif(args.length != params.length){\r\n\t\t\tthrow new IllegalArgumentsException(funcName, \"Wrong number of arguments\");\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<args.length;i++){\r\n\t\t\tJValue val = args[i].getValue();\r\n\t\t\tJParameter jp = params[i];\r\n\t\t\tif(jp.isUntyped()){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tJType typ = jp.getType();\r\n\t\t\tif(RefValue.isGenericNull(val)){\r\n\t\t\t\tJTypeKind kind = typ.getKind();\r\n\t\t\t\tif (kind == JTypeKind.CLASS || kind == JTypeKind.PLATFORM){\r\n\t\t\t\t\t// If it is a generic null, replace it with a typed null to comply with function declaration.\r\n\t\t\t\t\tRefValue rv = RefValue.makeNullRefValue(\r\n\t\t\t\t\t\tval.getMemoryArea(), kind == JTypeKind.CLASS ? (ICompoundType)typ : JObjectType.getInstance());\r\n\t\t\t\t\targs[i].setValue(rv);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcheckConvertibility(val, typ);\r\n\t\t}\r\n\t}",
"@SuppressWarnings( { \"rawtypes\", \"unchecked\" })\n protected Object[] convertToEnums( Object[] args ) throws ActionExecutionException {\n\n Object[] processedArgs = new Object[args.length];\n\n //try to convert all strings to enums\n Class<?>[] parameterTypes = method.getParameterTypes();\n for (int i = 0; i < parameterTypes.length; i++) {\n\n if (args[i] == null) {\n processedArgs[i] = null;\n continue;\n }\n\n boolean isParamArray = parameterTypes[i].isArray();\n Class<?> paramType;\n Class<?> argType;\n if (isParamArray) {\n paramType = parameterTypes[i].getComponentType();\n argType = args[i].getClass().getComponentType();\n } else {\n paramType = parameterTypes[i];\n argType = args[i].getClass();\n }\n\n if (argType == String.class && paramType.isEnum()) {\n try {\n if (isParamArray) {\n Object convertedEnums = Array.newInstance(paramType, Array.getLength(args[i]));\n\n //convert all array elements to enums\n for (int j = 0; j < Array.getLength(args[i]); j++) {\n String currentValue = (String) Array.get(args[i], j);\n if (currentValue != null) {\n Array.set(convertedEnums, j,\n Enum.valueOf((Class<? extends Enum>) paramType,\n currentValue));\n }\n }\n\n processedArgs[i] = convertedEnums;\n } else {\n processedArgs[i] = Enum.valueOf((Class<? extends Enum>) paramType,\n (String) args[i]);\n }\n } catch (IllegalArgumentException iae) {\n throw new ActionExecutionException(\"Could not convert string \" + args[i]\n + \" to enumeration of type \" + paramType.getName());\n }\n } else {\n processedArgs[i] = args[i];\n }\n }\n\n return processedArgs;\n }",
"public T convert(Number source)\r\n/* 26: */ {\r\n/* 27:56 */ return NumberUtils.convertNumberToTargetClass(source, this.targetType);\r\n/* 28: */ }",
"public static HiveObjectConversion getConversion(\n ObjectInspector inspector, LogicalType dataType, HiveShim hiveShim) {\n if (inspector instanceof PrimitiveObjectInspector) {\n HiveObjectConversion conversion;\n if (inspector instanceof BooleanObjectInspector\n || inspector instanceof StringObjectInspector\n || inspector instanceof ByteObjectInspector\n || inspector instanceof ShortObjectInspector\n || inspector instanceof IntObjectInspector\n || inspector instanceof LongObjectInspector\n || inspector instanceof FloatObjectInspector\n || inspector instanceof DoubleObjectInspector\n || inspector instanceof BinaryObjectInspector\n || inspector instanceof VoidObjectInspector) {\n conversion = IdentityConversion.INSTANCE;\n } else if (inspector instanceof DateObjectInspector) {\n conversion = hiveShim::toHiveDate;\n } else if (inspector instanceof TimestampObjectInspector) {\n conversion = hiveShim::toHiveTimestamp;\n } else if (inspector instanceof HiveCharObjectInspector) {\n conversion =\n o ->\n o == null\n ? null\n : new HiveChar(\n (String) o, ((CharType) dataType).getLength());\n } else if (inspector instanceof HiveVarcharObjectInspector) {\n conversion =\n o ->\n o == null\n ? null\n : new HiveVarchar(\n (String) o, ((VarCharType) dataType).getLength());\n } else if (inspector instanceof HiveDecimalObjectInspector) {\n conversion = o -> o == null ? null : HiveDecimal.create((BigDecimal) o);\n } else if (inspector instanceof HiveIntervalYearMonthObjectInspector) {\n conversion =\n o -> {\n if (o == null) {\n return null;\n } else {\n Period period = (Period) o;\n return new HiveIntervalYearMonth(\n period.getYears(), period.getMonths());\n }\n };\n } else if (inspector instanceof HiveIntervalDayTimeObjectInspector) {\n conversion =\n o -> {\n if (o == null) {\n return null;\n } else {\n Duration duration = (Duration) o;\n return new HiveIntervalDayTime(\n duration.getSeconds(), duration.getNano());\n }\n };\n } else {\n throw new FlinkHiveUDFException(\n \"Unsupported primitive object inspector \" + inspector.getClass().getName());\n }\n // if the object inspector prefers Writable objects, we should add an extra conversion\n // for that\n // currently this happens for constant arguments for UDFs\n if (((PrimitiveObjectInspector) inspector).preferWritable()) {\n conversion = new WritableHiveObjectConversion(conversion, hiveShim);\n }\n return conversion;\n }\n\n if (inspector instanceof ListObjectInspector) {\n HiveObjectConversion eleConvert =\n getConversion(\n ((ListObjectInspector) inspector).getListElementObjectInspector(),\n ((ArrayType) dataType).getElementType(),\n hiveShim);\n return o -> {\n if (o == null) {\n return null;\n }\n Object[] array = (Object[]) o;\n List<Object> result = new ArrayList<>();\n\n for (Object ele : array) {\n result.add(eleConvert.toHiveObject(ele));\n }\n return result;\n };\n }\n\n if (inspector instanceof MapObjectInspector) {\n MapObjectInspector mapInspector = (MapObjectInspector) inspector;\n MapType kvType = (MapType) dataType;\n\n HiveObjectConversion keyConversion =\n getConversion(\n mapInspector.getMapKeyObjectInspector(), kvType.getKeyType(), hiveShim);\n HiveObjectConversion valueConversion =\n getConversion(\n mapInspector.getMapValueObjectInspector(),\n kvType.getValueType(),\n hiveShim);\n\n return o -> {\n if (o == null) {\n return null;\n }\n Map<Object, Object> map = (Map) o;\n Map<Object, Object> result = CollectionUtil.newHashMapWithExpectedSize(map.size());\n\n for (Map.Entry<Object, Object> entry : map.entrySet()) {\n result.put(\n keyConversion.toHiveObject(entry.getKey()),\n valueConversion.toHiveObject(entry.getValue()));\n }\n return result;\n };\n }\n\n if (inspector instanceof StructObjectInspector) {\n StructObjectInspector structInspector = (StructObjectInspector) inspector;\n\n List<? extends StructField> structFields = structInspector.getAllStructFieldRefs();\n\n List<RowType.RowField> rowFields = ((RowType) dataType).getFields();\n\n HiveObjectConversion[] conversions = new HiveObjectConversion[structFields.size()];\n for (int i = 0; i < structFields.size(); i++) {\n conversions[i] =\n getConversion(\n structFields.get(i).getFieldObjectInspector(),\n rowFields.get(i).getType(),\n hiveShim);\n }\n\n return o -> {\n if (o == null) {\n return null;\n }\n Row row = (Row) o;\n List<Object> result = new ArrayList<>(row.getArity());\n for (int i = 0; i < row.getArity(); i++) {\n result.add(conversions[i].toHiveObject(row.getField(i)));\n }\n return result;\n };\n }\n\n throw new FlinkHiveUDFException(\n String.format(\n \"Flink doesn't support convert object conversion for %s yet\", inspector));\n }",
"@Override\n public Object convert(Object dest, Object source, Class<?> aClass, Class<?> aClass1) {\n return null;\n\n }",
"T convert(String value);",
"@SuppressWarnings(\"unchecked\")\n public <T> T convert(Object value, Class<T> type) {\n T convert = null;\n Object toConvert = value;\n if (toConvert != null) {\n Class<?> fromType = toConvert.getClass();\n // first we check to see if we even need to do the conversion\n if ( ConstructorUtils.classAssignable(fromType, type) ) {\n // this is already equivalent so no reason to convert\n convert = (T) value;\n } else {\n // needs to be converted\n try {\n convert = convertWithConverter(toConvert, type);\n } catch (RuntimeException e) {\n throw new UnsupportedOperationException(\"Could not convert object (\"+toConvert+\") from type (\"+fromType+\") to type (\"+type+\"): \" + e.getMessage(), e);\n }\n }\n } else {\n // object is null but type requested may be primitive\n if ( ConstructorUtils.isClassPrimitive(type) ) {\n // for primitives we return the default value\n if (ConstructorUtils.getPrimitiveDefaults().containsKey(type)) {\n convert = (T) ConstructorUtils.getPrimitiveDefaults().get(type);\n }\n }\n }\n return convert;\n }",
"public abstract JType unboxify();",
"@Test\n public void testConvertBadge() {\n Object result = converter.convert(null, badge,Long.class, Badge.class);\n\n assertEquals(result.getClass(), Long.class, \"Converted object is not of a Long class.\");\n assertSame(result, badge.getId(), \"Converted object is not the one expected.\");\n }",
"public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}",
"public abstract S castToReturnType(T o);",
"public interface DataConverter<JAVATYPE,METATYPE extends FieldDefinition> {\n /** Method invoked for a single JAVATYPE */\n JAVATYPE convert(JAVATYPE oldValue, final METATYPE meta);\n\n /** Method invoked for a JAVATYPE List. This can be used to alter the list length / add / remove elements after processing.\n * Please note that the converter is only invoked on the list itself, not on the individual elements. */\n List <JAVATYPE> convertList(List<JAVATYPE> oldList, final METATYPE meta);\n\n /** Method invoked for a JAVATYPE Set. This can be used to alter the set size / add / remove elements after processing.\n * Please note that the converter is only invoked on the list itself, not on the individual elements. */\n Set <JAVATYPE> convertSet(Set<JAVATYPE> oldSet, final METATYPE meta);\n\n /** Method invoked for an array of JAVATYPEs. This can be used to alter the list length / add / remove elements after processing.\n * Please note that the converter is only invoked on the array itself, not on the individual elements. */\n JAVATYPE [] convertArray(JAVATYPE [] oldArray, final METATYPE meta);\n\n /** Map-type methods. The tree walker converses the value parts of the map only. */\n public <K> Map<K, JAVATYPE> convertMap(Map<K, JAVATYPE> oldMap, final METATYPE meta);\n}",
"public interface TypeConverter {\n\n /**\n * Converts the value to the specified type\n * \n * @param type the requested type\n * @param value the value to be converted\n * @return the converted value\n * @throws {@link NoTypeConversionAvailableException} if conversion not possible\n */\n <T> T convertTo(Class<T> type, Object value);\n\n /**\n * Converts the value to the specified type in the context of an exchange\n * <p/>\n * Used when conversion requires extra information from the current\n * exchange (such as encoding).\n *\n * @param type the requested type\n * @param exchange the current exchange\n * @param value the value to be converted\n * @return the converted value\n * @throws {@link NoTypeConversionAvailableException} if conversion not possible\n */\n <T> T convertTo(Class<T> type, Exchange exchange, Object value);\n}",
"public static Arguments convert(List<String> args){\n List<ArgumentPair> sortedArgPairs = sortArgs(args);\n return processArgs(sortedArgPairs);\n }",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"public interface Conversion {\n /**\n * Returns the cost of the conversion. If there are several matching\n * overloads, the one with the lowest overall cost will be preferred.\n *\n * @return Cost of conversion\n */\n int getCost();\n\n /**\n * Checks the viability of implicit conversions. Converting from a\n * dimension to a hierarchy is valid if is only one hierarchy.\n */\n void checkValid();\n\n /**\n * Applies this conversion to its argument, modifying the argument list\n * in place.\n *\n * @param validator Validator\n * @param args Argument list\n */\n void apply(Validator validator, List<Exp> args);\n }",
"private void checkType(V value) {\n valueClass.cast(value);\n }",
"@Override\n\tpublic void visit(CastExpression arg0) {\n\t\t\n\t}",
"private static void LessonBoxUnboxCast() {\n int x = 10;\n Object o = x;\n //System.out.println(o + o); //since o is an object you can't uses the + operator\n //LessonReflectionAndGenerics(o.getClass());\n\n // Example Unboxing (this is casting, explicit casting)\n int y = (int) o;\n System.out.println(y);\n\n // Example Implicit casting you can go from smaller data type to a bigger data type\n //But not the other way around unless you use explicit casting\n int i = 100;\n double d = i;\n System.out.println(d);\n\n // Example of tryin to cast a bigger data type into a smaller data type\n double a = 1.92;\n //int b = a; //gets and error\n //need to be explicit\n int b = (int) a;\n System.out.println(b);\n }",
"public abstract Object getTypedParams(Object params);",
"public interface ObjectConverter<CONTEXT, FROM, TO> extends\n Converter<CONTEXT, FROM> {\n /** The default bits. */\n int DEFAULT_BITS = -1;\n\n /** The default NOP ObjectConverter. */\n @SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n ObjectConverter DEFAULT = new NOPObjectConverter(Object.class);\n\n /**\n * Converts from object instance.\n *\n * The expected behavior when receiving null is left on purpose unspecified,\n * as it depends on your application needs.\n */\n TO fromObject(CONTEXT context, final FROM obj);\n\n /** Converts to an object instance. */\n FROM toObject(CONTEXT context, final TO value);\n}",
"private static Object[] cleanUrlArgs(Object... args) {\n for (int i = 0; i < args.length; i++) {\n Object arg = args[i];\n if(arg.getClass() == long.class || arg.getClass() == int.class) {\n args[i] = Long.toString((long) arg);\n }\n else if(arg.getClass() == Long.class\n || arg.getClass() == Integer.class) {\n args[i] = arg.toString();\n }\n }\n return args;\n }",
"JAVATYPE convert(JAVATYPE oldValue, final METATYPE meta);",
"@Override\n\t\tpublic Object fromTerm(Term term, TypeDomain target, Jpc jpc) {\n\t\t\tObject converted = null;\n\t\t\tboolean converterFound = false;\n\t\t\tTerm unifiedTerm = null;\n\t\t\tif (JpcConverterManager.isValidConvertableTerm(term)) {\n\t\t\t\tString converterVarName = JpcPreferences.JPC_VAR_PREFIX + \"Converter\";\n\t\t\t\tQuery query = embeddedEngine.query(new Compound(JpcConverterManager.FROM_TERM_CONVERTER_FUNCTOR_NAME, asList(term, var(converterVarName))));\n\t\t\t\twhile (query.hasNext()) {\n\t\t\t\t\tSolution solution = query.next();\n\t\t\t\t\tunifiedTerm = term.replaceVariables(solution);\n\t\t\t\t\tunifiedTerm = unifiedTerm.compile(true);\n\t\t\t\t\tConversionFunction converter = (ConversionFunction) ((JRef) solution.get(converterVarName)).getReferent();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconverted = new InterTypeConverterEvaluator(conversionGoal(unifiedTerm, target), jpc).apply(converter);\n\t\t\t\t\t\tconverterFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (DelegateConversionException e) {} //just try with the next converter.\n\t\t\t\t}\n\t\t\t\tquery.close();\n\t\t\t}\n\t\t\tif (!converterFound) {\n\t\t\t\tthrow new DelegateConversionException(conversionGoal(term, target));\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tterm.unify(unifiedTerm);\n\t\t\t\t} catch (UncompiledTermException e) {\n\t\t\t\t\t//just ignore the exception if the original term is not compiled.\n\t\t\t\t}\n\t\t\t\treturn converted;\n\t\t\t}\n\t\t}",
"public interface IConverter<T, S> {\r\n\r\n public T convert(S input);\r\n}",
"private static List<Pair<OvsDbConverter.Entry, Object>> parseArguments(\n Deque<String> arguments) {\n\n List<Pair<OvsDbConverter.Entry, Object>> args = new ArrayList<>();\n\n for (String arg; null != (arg = arguments.peek()); ) {\n arguments.pop();\n if (arg.startsWith(\"~\")) {\n arg = arg.substring(1).replace('-', '_').toLowerCase(\n Locale.ROOT);\n // Get the converter entry for this argument type.\n OvsDbConverter.Entry entry = OvsDbConverter.get(arg);\n\n // If there is no entry, thrown an exception.\n if (null == entry) {\n throw new IllegalArgumentException(\n \"Unknown argument type: \" + arg);\n }\n\n // Add the entry to the arguments list.\n if (entry.hasConverter()) {\n args.add(new Pair<>(entry, entry.convert(arguments.pop())));\n } else {\n args.add(new Pair<>(entry, null));\n }\n\n } else throw new IllegalArgumentException(\n \"Unknown argument type: \" + arg);\n }\n\n return args;\n }",
"private static void createConverters() {\n\n modelMapper.createTypeMap(Integer.class, Permission[].class).setConverter(e -> PermissionUtils.convertToArray(e.getSource()));\n modelMapper.createTypeMap(Permission[].class, Integer.class).setConverter(e -> PermissionUtils.convertToInteger(e.getSource()));\n }",
"@Override\n\tpublic Object call(Object[] invokedArgs) {\n\t\treturn returnType.cast(informer.get(fieldName));\n\t}",
"void convert(ConversionPostedData postedData);",
"<T> T convert(Object o, Class<T> type);",
"public interface ValueConvertor {\n\t/**\n\t * \n\t * Convert the value of result set to JAVA type<BR>\n\t * \n\t * @param cursor\n\t * @param columnIndex\n\t * @param javaType\n\t * @return value after converting\n\t */\n\tObject convertCursorToJavaValue(Cursor cursor, int columnIndex,\n\t\t\tClass<?> javaType);\n\n\t/**\n\t * \n\t * Convert DB type to JAVA type<BR>\n\t * \n\t * @param value\n\t * @param javaType\n\t * @return value after converting\n\t */\n\tObject convertDBValueToJavaValue(Object value, Class<?> javaType);\n\n\t/**\n\t * Convert JAVA type to DB type<BR>\n\t * \n\t * @param value\n\t * @param javaType\n\t * @return value after converting\n\t */\n\tObject convertJavaValueToDBValue(Object value, Class<?> javaType);\n}",
"public static void main(String[] args) {\n\t\t\n\t\tbyte b1 = 12;\n\t\tshort s1 = b1;\n\t\tint i1 = b1;\n\t\tfloat f1 = b1;\n\t\t\n\t\t/*\n\t\t byte < short < int < long < float < double\n\t\n\t\t Buyuk data type'larini kucuk data type'larina cevrime isini Java otomatik olarak yapmaz.\n\t\t Bu cevirmeyi biz asagidaki gibi kod yazarak yapariz. Bunun ismi \"Explicit Narrowing Casting\" dir\n\t \n\t\t */\n\t\t\n\t\tshort s2 = 1210; \n\t\tbyte b2 = (byte)s2;\n\t\t\n\t}",
"private Expr boxingUpcastIfNeeded(Expr a, Type fType) {\n if (a instanceof NullLit_c) {\n return makeCast(a.position(), a, fType);\n }\n \n if (Types.baseType(fType) instanceof FunctionType) {\n return upcastToFunctionType(a, (FunctionType)Types.baseType(fType), true);\n }\n \n if (ts.isObjectType(a.type(), context) && ts.isObjectType(fType, context)) {\n // implicit C++ level upcast is good enough (C++ and X10 have same class hierarchy structure)\n return a;\n }\n \n if (!ts.typeDeepBaseEquals(fType, a.type(), context)) {\n Position pos = a.position();\n return makeCast(a.position(), a, fType);\n } else {\n return a;\n }\n }",
"@Override\r\n\tpublic void cast() {\n\r\n\t}",
"@Test\n public void testConvertPokemon() {\n Object result = converter.convert(null, pokemon, Long.class, Pokemon.class);\n\n assertEquals(result.getClass(), Long.class, \"Converted object is not of a Long class.\");\n assertSame(result, pokemon.getId(), \"Converted object is not the one expected.\");\n }",
"public interface ConvertType<FROM, TO> {\n\tTO convert(FROM object);\n\tTO convertDetailed(FROM object);\n\t\n\tClass<FROM> supports();\n\t\n\t/**\n\t * Nested types can reuse converters already registered\n\t * @param converter\n\t */\n\tvoid setConverter(Converter converter);\n}",
"private static Arguments toArguments(Object item) {\n if (item instanceof Arguments) {\n return (Arguments) item;\n }\n // Pass all multidimensional arrays \"as is\", in contrast to Object[].\n // See https://github.com/junit-team/junit5/issues/1665\n if (ReflectionUtils.isMultidimensionalArray(item)) {\n return arguments(item);\n }\n // Special treatment for one-dimensional reference arrays.\n // See https://github.com/junit-team/junit5/issues/1665\n if (item instanceof Object[]) {\n return arguments((Object[]) item);\n }\n // Pass everything else \"as is\".\n return arguments(item);\n }",
"private static void checkRegisterConverterArgs(Converter conv,\n Class<?> targetClass)\n {\n if (conv == null)\n {\n throw new IllegalArgumentException(\"Converter must not be null!\");\n }\n checkTargetClass(targetClass);\n }",
"@Test\n public void testConvertStadium() {\n Object result = converter.convert(null, stadium, Long.class, Stadium.class);\n\n assertEquals(result.getClass(), Long.class, \"Converted object is not of a Long class.\");\n assertSame(result, stadium.getId(), \"Converted object is not the one expected.\");\n }",
"public static void main(String[] args) {\n\t\t// Java is not a pure OOP language >> because we have primitive types in Java\n\n\t\tint num = 10;\n\t\tdouble num1 = 20;\n\n\t\t// if we know the number we want to convert takes enough space from the memory,\n\t\t// then we can do explicit casting.\n\t\tnum = (int) num1;\n\n\t\t// this is an implicit casting, it happens automatically\n\t\tnum1 = num;\n\n\t}",
"public Map<String, Object> processArgs(String[] args)\n {\n for (int ii=0; ii<args.length; ii++) {\n String token = args[ii];\n char firstC = token.charAt(0);\n if (firstC != '-' && firstC != '+') {\n return null;\n }\n // look up the token\n token = token.substring(1);\n String type = _meta.get(token);\n if (type == null) {\n return null;\n }\n\n // most types expect a following token - check\n Object argument = null;\n if (StringArg.equals(type) || ListArg.equals(type) || IntegerArg.equals(type)) {\n if (args.length < ii+2) {\n return null;\n }\n if (firstC != '-') {\n // these types all expect a - in front of the token\n return null;\n }\n argument = args[ii+1];\n ii++;\n }\n if (DoubleListArg.equals(type)) {\n if (args.length < ii+3) {\n return null;\n }\n if (firstC != '-') {\n return null;\n }\n String[] a2 = new String[2];\n a2[0] = args[ii+1];\n a2[1] = args[ii+2];\n argument = a2;\n ii += 2;\n }\n\n Object old;\n if (StringArg.equals(type)) {\n old = _result.put(token, argument);\n if (old != null) {\n return null;\n }\n }\n else if (ListArg.equals(type)) {\n List<String> oldList = (List<String>)_result.get(token);\n if (oldList == null) {\n oldList = new ArrayList<String>();\n _result.put(token, oldList);\n }\n oldList.add((String)argument);\n }\n else if (DoubleListArg.equals(type)) {\n List<String[]> oldList = (List<String[]>)_result.get(token);\n if (oldList == null) {\n oldList = new ArrayList<String[]>();\n _result.put(token, oldList);\n }\n oldList.add((String[])argument);\n }\n else if (IntegerArg.equals(type)) {\n Integer val = Integer.parseInt((String)argument);\n old = _result.put(token, val);\n if (old != null) {\n return null;\n }\n }\n else if (FlagArgFalse.equals(type) || FlagArgTrue.equals(type)) {\n // note that we always have a default value for flag args\n Boolean val = (firstC == '-');\n _result.put(token, val);\n }\n }\n\n return _result;\n }",
"protected <T> T convertForEntity(Object value, Class<T> type) {\r\n return typeConversionManager.convert(value, type);\r\n }",
"@Test\n public void testConvertBadgeId() {\n Object result = converter.convert(null, badge.getId(), Badge.class, Long.class);\n\n assertEquals(result.getClass(), Badge.class, \"Converted object is not of a Badge class.\");\n assertSame(result, badge, \"Converted object is not the one expected.\");\n }",
"public ConversionNotSupportedException(Object value, Class requiredType, Throwable cause)\r\n/* 14: */ {\r\n/* 15:47 */ super(value, requiredType, cause);\r\n/* 16: */ }",
"@Nullable\n protected Object convertValueForType(MappingContext context, Object value) {\n Class<?> rawClass = context.getTypeInformation().getSafeToWriteClass();\n if (rawClass == null) {\n throw new ConfigMeMapperException(context, \"Cannot determine required type\");\n }\n\n // Step 1: check if a value transformer can perform a simple conversion\n Object result = leafValueHandler.convert(context.getTypeInformation(), value);\n if (result != null) {\n return result;\n }\n\n // Step 2: check if we have a special type like List that is handled separately\n result = handleSpecialTypes(context, value);\n if (result != null) {\n return result;\n }\n\n // Step 3: last possibility - assume it's a bean and try to map values to its structure\n return createBean(context, value);\n }",
"private InstantiateTransformer(Class[] paramTypes, Object[] args) {\n super();\n if (((paramTypes == null) && (args != null))\n || ((paramTypes != null) && (args == null))\n || ((paramTypes != null) && (args != null) && (paramTypes.length != args.length))) {\n throw new IllegalArgumentException(\"InstantiateTransformer: The parameter types must match the arguments\");\n }\n if ((paramTypes == null) && (args == null)) {\n iParamTypes = null;\n iArgs = null;\n } else {\n iParamTypes = (Class[]) paramTypes.clone();\n iArgs = (Object[]) args.clone();\n }\n }",
"public static Value performExplicitConversion(TypeSpec from,\n final TypeSpec to, Value fromValue) {\n if (fromValue.getValue() != null) {\n fromValue = TypeSpec.unwrapAnyValue(fromValue);\n if (from.isAny() || from.isNum()) {\n from = TypeSpec.typeOf(fromValue);\n }\n }\n\n Debug.Assert(\n (fromValue.getValue() == null)\n || (TypeSpec.typeOf(fromValue).equals(from)),\n \"fromValue (type \" + TypeSpec.typeOf(fromValue)\n + \") must be type of 'from' (= \" + from + \")\");\n\n // user-defined explicit conversions have precedence, then user-defined\n // implicit\n // conversions, followed by the others\n // Debug.WL(\"1:performExplicitConversion \"+from+\"->\"+to);\n Value r = performExplicitUserDefinedConversion(from, to, fromValue);\n if (r != null) {\n return r;\n }\n\n r = performImplicitUserDefinedConversion(from, to, fromValue);\n if (r != null) {\n return r;\n }\n // Debug.WL(\"1: no performImplicitUserDefinedConversion found\");\n // try an implicit conversion\n if (existsImplicitConversion(from, to, fromValue)) {\n return performImplicitConversion(from, to, fromValue);\n }\n\n if (existsExplicitNumericConversion(from, to, fromValue)) {\n return performExplicitNumericConversion(from, to, fromValue);\n }\n\n return performExplicitReferenceConversion(from, to, fromValue);\n }",
"public static Object convert(Object value, Class<?> clazz){\n if(clazz.equals(String.class))\n return String.valueOf(value);\n if(clazz.equals(Boolean.class) || \"Boolean\".equals(clazz.getName()))\n return Boolean.valueOf(String.valueOf(value));\n if(clazz.equals(Integer.class) || \"int\".equals(clazz.getName()))\n return NumberUtils.toInt(String.valueOf(value),0);\n if(clazz.equals(Long.class) || \"long\".equals(clazz.getName()))\n return NumberUtils.toLong(String.valueOf(value),0);\n if(clazz.equals(Double.class) || \"double\".equals(clazz.getName()))\n return NumberUtils.toDouble(String.valueOf(value),0);\n if(clazz.equals(Float.class) || \"float\".equals(clazz.getName()))\n return NumberUtils.toFloat(String.valueOf(value),0);\n if(clazz.equals(BigInteger.class))\n return NumberUtils.toInt(String.valueOf(value),0);\n if(clazz.equals(Date.class)) return new java.util.Date(((Date) value).getTime());\n return value;\n }",
"private static OpenTypeConverter makeParameterizedConverter(ParameterizedType objType)\n throws OpenDataException {\n\n final Type rawType = objType.getRawType();\n\n if (rawType instanceof Class) {\n Class c = (Class<?>) rawType;\n if (c == List.class || c == Set.class || c == SortedSet.class) {\n Type[] actuals = objType.getActualTypeArguments();\n assert (actuals.length == 1);\n if (c == SortedSet.class) {\n mustBeComparable(c, actuals[0]);\n }\n return makeArrayOrCollectionConverter(objType, actuals[0]);\n } else {\n boolean sortedMap = (c == SortedMap.class);\n if (c == Map.class || sortedMap) {\n Type[] actuals = objType.getActualTypeArguments();\n assert (actuals.length == 2);\n if (sortedMap) {\n mustBeComparable(c, actuals[0]);\n }\n return makeTabularConverter(objType, sortedMap, actuals[0], actuals[1]);\n }\n }\n }\n throw new OpenDataException(\"Cannot convert type: \" + objType);\n }",
"protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;",
"T call( @Nonnull final Object... args );",
"static <T> T convert(Object value, Class<T> clazz, T nullValue, T falseValue, boolean collFirst){\r\n\t\treturn Object_To_Target.create(clazz, nullValue, falseValue, collFirst).transform(value);\r\n\t}",
"@SuppressWarnings(\"WeakerAccess\")\n @NonNull\n protected List<T> convert(@NonNull final Object data) {\n final List<Object> objects = CoreReflection.getObjects(data, false);\n if (objects == null) return Collections.singletonList(convertSingle(data));\n\n final ArrayList<T> list = new ArrayList<>();\n for (final Object object: objects)\n if (!CoreReflection.isNotSingle(object))\n list.add(convertSingle(object));\n\n return list;\n }",
"private Object parseArgument(CommandSender sender, Class<?> type, String argument) throws CommandException {\n logger.fine(\"Attempting to parse string \\\"%s\\\" as type %s\", argument, type.getName());\n try {\n if(type == String.class) {\n return argument;\n } else if(type == World.class) {\n return parseWorld(sender, argument);\n } else if(type == int.class) {\n return Integer.parseInt(argument);\n } else if(type == short.class) {\n return Short.parseShort(argument);\n } else if(type == long.class) {\n return Long.parseLong(argument);\n } else if(type == byte.class) {\n return Byte.parseByte(argument);\n } else if(type == boolean.class) {\n if(argument.equalsIgnoreCase(\"true\") || argument.equalsIgnoreCase(\"yes\")) {\n return true;\n }\n if(argument.equalsIgnoreCase(\"false\") || argument.equalsIgnoreCase(\"no\")) {\n return false;\n }\n throw new CommandException(messageConfig.getErrorMessage(\"invalidBoolean\").replace(\"{arg}\", argument));\n } else if(type.isPrimitive()) {\n throw new InvalidCommandException(\"Unknown primitive type on command argument\");\n } else {\n return runValueOfMethod(type, argument);\n }\n\n } catch(IllegalArgumentException ex) {\n throw new CommandException(messageConfig.getErrorMessage(\"invalidArgs\"), ex);\n }\n }",
"private AerospikeConverters() {}",
"public interface Converter<T> {\n public String convert(T thing);\n}",
"public Object convert(Class type, Object value) {\n\n if (shouldReturnNullValue(value)) {\n return _nullValueToReturn;\n }\n\n // If the value passed in is an instance of a Collection, then create an array from\n // it and return it. \n if (value instanceof Collection) {\n return ApiFunctions.toStringArray((Collection)value);\n }\n\n else {\n return _converter.convert(type, value);\n } \n }",
"@SuppressWarnings(\"unchecked\")\n private Object convertToDataTransferObject(Object data, Class<?> dtoType) {\n if (Map.class.isAssignableFrom(data.getClass())) {\n return ObjectUtils.convertMapToObject((Map<String, ?>) data, dtoType);\n }\n throw new ParamInvalidException(\"Cannot parse '\" + data.getClass().getName() + \"' to '\" + dtoType.getName() + \"'\");\n }",
"@Test\n public void testConvertTrainer() {\n Object result = converter.convert(null, trainer, Long.class, Trainer.class);\n\n assertEquals(result.getClass(), Long.class, \"Converted object is not of a Long class.\");\n assertSame(result, trainer.getId(), \"Converted object is not the one expected.\");\n }",
"@Override\n\tpublic void outACastExpr(ACastExpr node) {\n\t\tType t = nodeTypes.get(node.getExpr());\n\t\tboxIt(t); \n\t\tType result = nodeTypes.get(node.getType()); \n\t\til.append(fi.createCast(getBecelType(t), getBecelType(result)));\n\t\tunboxIt(result); \t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tTypecasting t=new Typecasting();\n\t\tt.typeCasting();\n\n\t}",
"public interface Converter extends Comparable<Converter> {\n int DEFAULT_PRIORITY = 5;\n\n /**\n * Convert to given type\n *\n * @param source the source\n * @param targetTypeToken the TypeToken of the type\n * @return converted object\n */\n Object convert(Object source, TypeToken<?> targetTypeToken);\n\n /**\n * Check that source can convert to given type\n *\n * @param source the source\n * @param targetTypeToken the TypeToken of the type\n * @return true if it can convert\n */\n boolean canHandle(Object source, TypeToken<?> targetTypeToken);\n\n /**\n * Executing priority. Low value is high priority.\n * @return priority\n */\n int getPriority();\n}",
"Datatype[] internalize(Datatype[] args) throws CCAException;",
"private List<Argument> convertArguments(List<gherkin.formatter.Argument> arguments) {\n if (null == arguments) {\n return new ArrayList<>();\n }\n\n return arguments.stream().map(argument -> {\n Argument hookArgument = new Argument();\n String argVal = argument.getVal();\n argVal = argVal.replace(\"<\", \"\").replace(\">\", \"\");\n hookArgument.setArgumentValue(argVal);\n hookArgument.setOffset(argument.getOffset());\n\n return hookArgument;\n }).collect(Collectors.toList());\n }",
"public static Value performImplicitConversion(final TypeSpec from,\n final TypeSpec to, final Value fromValue) {\n Debug.Assert(\n (fromValue.getValue() == null)\n || (TypeSpec.typeOf(fromValue).isA(from)),\n \"fromValue (type \" + TypeSpec.typeOf(fromValue)\n + \") must be of type 'from' (= \" + from\n + \") or a derived type\");\n\n if ((from == to) || from.equals(to)) {\n return fromValue;\n }\n\n // first try a user-define conversion. If none exist, try the builtin\n // conversions.\n final Value r = performImplicitUserDefinedConversion(from, to,\n fromValue);\n if (r != null) {\n return r;\n }\n\n if (existsImplicitNumericConversion(from, to)) {\n return performImplicitNumericConversion(from, to, fromValue);\n }\n\n if (existsImplicitReferenceConversion(from, to, fromValue)) {\n return performImplicitReferenceConversion(from, to, fromValue);\n }\n\n ScigolTreeParser\n .semanticError(\"there is no implicit conversion available from type '\"\n + from + \"' to type '\" + to + \"'\");\n return null;\n }",
"private static Object[] getValues(\n List<Pair<OvsDbConverter.Entry, Object>> args, Node node) {\n Object[] values = new Object[args.size()];\n for (int index = 0; index < args.size(); index++) {\n if (Node.class.equals(args.get(index).first.type)) {\n values[index] = node;\n } else {\n values[index] = args.get(index).second;\n }\n }\n return values;\n }",
"public Object convert(Class aType, Object aValue)\n throws ConversionException\n {\n // Deal with a null value\n if (aValue == null) {\n if (useDefault) {\n return (defaultValue);\n }\n throw new ConversionException(\"No value specified\");\n }\n \n // Deal with the no-conversion-needed case\n if (sModel.getClass() == aValue.getClass()) {\n return (aValue);\n }\n \n // Parse the input value as a String into elements\n // and convert to the appropriate type\n try {\n final List list = parseElements(aValue.toString());\n final String[] results = new String[list.size()];\n \n for (int i = 0; i < results.length; i++) {\n results[i] = (String) list.get(i);\n }\n return (results);\n }\n catch (Exception e) {\n if (useDefault) {\n return (defaultValue);\n }\n throw new ConversionException(aValue.toString(), e);\n }\n }",
"public V cast(Object object) {\n return valueClass.cast(object);\n }",
"static Object resolveGeneric (FXLocal.Context context, Type typ) {\n if (typ instanceof ParameterizedType) {\n ParameterizedType ptyp = (ParameterizedType) typ;\n Type raw = ptyp.getRawType();\n Type[] targs = ptyp.getActualTypeArguments();\n if (raw instanceof Class) {\n String rawName = ((Class) raw).getName();\n if (FXClassType.SEQUENCE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (FXClassType.OBJECT_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return context.makeTypeRef(targs[0]);\n }\n if (FXClassType.SEQUENCE_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (rawName.startsWith(FXClassType.FUNCTION_CLASSNAME_PREFIX)) {\n FXType[] prtypes = new FXType[targs.length-1];\n for (int i = prtypes.length; --i >= 0; )\n prtypes[i] = context.makeTypeRef(targs[i+1]);\n FXType rettype;\n if (targs[0] == java.lang.Void.class)\n rettype = FXPrimitiveType.voidType;\n else\n rettype = context.makeTypeRef(targs[0]);\n return new FXFunctionType(prtypes, rettype);\n }\n }\n \n typ = raw;\n }\n if (typ instanceof WildcardType) {\n WildcardType wtyp = (WildcardType) typ;\n Type[] upper = wtyp.getUpperBounds();\n Type[] lower = wtyp.getLowerBounds();\n typ = lower.length > 0 ? lower[0] : wtyp.getUpperBounds()[0];\n if (typ instanceof Class) {\n String rawName = ((Class) typ).getName();\n // Kludge, because generics don't handle primitive types.\n FXType ptype = context.getPrimitiveType(rawName);\n if (ptype != null)\n return ptype;\n }\n return context.makeTypeRef(typ);\n }\n if (typ instanceof GenericArrayType) {\n FXType elType = context.makeTypeRef(((GenericArrayType) typ).getGenericComponentType());\n return new FXJavaArrayType(elType);\n }\n if (typ instanceof TypeVariable) {\n // KLUDGE\n typ = Object.class;\n }\n return typ;\n }",
"final public boolean canApplyTo (Object[] args)\n {\n\tif (args.length != myCoercers.length)\n\t{\n\t // easy out\n\t return false;\n\t}\n\n\tfor (int i = 0; i < myCoercers.length; i++)\n\t{\n\t if (! myCoercers[i].canCoerce (args[i]))\n\t {\n\t\treturn false;\n\t }\n\t}\n\n\treturn true;\n }",
"public getType_args(getType_args other) {\n }",
"public Object[] adapt( Map<String, Object> objs, Object arg );",
"public Class<?> getConversionClass();"
] | [
"0.7064931",
"0.614893",
"0.60997605",
"0.6087633",
"0.60694784",
"0.58617103",
"0.5800866",
"0.5707101",
"0.56666595",
"0.56147605",
"0.5569825",
"0.55617326",
"0.5481475",
"0.5472451",
"0.5472307",
"0.5470885",
"0.5459131",
"0.54329205",
"0.5357962",
"0.5331058",
"0.5325873",
"0.5314706",
"0.5311015",
"0.5306902",
"0.53000045",
"0.5295471",
"0.5290473",
"0.5262105",
"0.520593",
"0.5197415",
"0.5195389",
"0.519263",
"0.51730037",
"0.5164578",
"0.5152786",
"0.5152211",
"0.5150201",
"0.51470876",
"0.51000094",
"0.5092744",
"0.5092744",
"0.5092744",
"0.5070625",
"0.5044072",
"0.50368667",
"0.50365436",
"0.50198007",
"0.5016283",
"0.5005389",
"0.5003183",
"0.49992836",
"0.4975607",
"0.49662924",
"0.4962778",
"0.4955492",
"0.49374443",
"0.49281946",
"0.49248463",
"0.4918115",
"0.49148923",
"0.49012876",
"0.48958862",
"0.48907334",
"0.4888323",
"0.48685178",
"0.48658055",
"0.48622692",
"0.48550627",
"0.48478937",
"0.48456454",
"0.48358166",
"0.4832781",
"0.48321855",
"0.48308384",
"0.48305094",
"0.48236024",
"0.48183125",
"0.48177785",
"0.48073527",
"0.47918066",
"0.47796544",
"0.4776959",
"0.47733825",
"0.47722787",
"0.47694737",
"0.47676575",
"0.47676477",
"0.47671074",
"0.47623593",
"0.4759622",
"0.475755",
"0.47469413",
"0.47449344",
"0.47425982",
"0.4734433",
"0.47335035",
"0.47269943",
"0.47195107",
"0.47136307",
"0.47095788"
] | 0.5920233 | 5 |
we are sufficiently guarding access by checking doAppendVarArgs, but compiler can't tell that this prevents null pointer dereference | @SuppressWarnings("null")
@Override
public Object[] apply(Object[] input) {
if (input == null) {
input = new Object[0];
}
Object ret[] = new Object[candidateArgsLen];
if (candidateArgsLen > 1) {
System.arraycopy(input, 0, ret, 0, candidateArgsLen - 1);
}
int varArgLen = input.length - candidateArgsLen + 1;
Object incomingVarArgs[] = doAppendVarArgs ? (Object[]) input[input.length - 1]
: null;
Object varArgValues[];
if (doAppendVarArgs) {
varArgLen--; // skip the last arg, which is the incoming var arg array
varArgValues = (Object[]) Array.newInstance(varArgType, varArgLen +
incomingVarArgs.length);
} else {
varArgValues = (Object[]) Array.newInstance(varArgType, varArgLen);
}
System.arraycopy(input, candidateArgsLen - 1, varArgValues, 0, varArgLen);
if (doAppendVarArgs) {
System.arraycopy(incomingVarArgs, 0, varArgValues, varArgLen,
incomingVarArgs.length);
}
ret[ret.length - 1] = varArgValues;
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public boolean argsNotFull();",
"protected abstract boolean checkedParametersAppend();",
"default boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}",
"public native void appendData(String arg) /*-{\r\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\r\n\t\tjso.appendData(arg);\r\n }-*/;",
"public boolean isVarArgs() {\n return (getAccessFlags() & Constants.ACCESS_VARARGS) > 0;\n }",
"boolean isVarargs();",
"boolean isVarargs();",
"boolean isVarargs();",
"@Override\n public String visit(ArrayAccessExpr n, Object arg) {\n return null;\n }",
"@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }",
"void testAppend(Tester t) {\n t.checkExpect(ints1.length(), 1);\n t.checkExpect(ints2.length(), 2);\n t.checkExpect(ints3.length(), 2);\n\n ints1.append(ints2);\n\n t.checkExpect(ints1.length(), 3);\n\n ints2.append(ints3);\n\n t.checkExpect(ints1.length(), 5);\n ints2.append(ints4);\n\n t.checkExpect(ints2.length(), 6);\n\n ints4.append(ints4);\n\n // will be infinite\n // t.checkExpect(ints4.length(), -1);\n }",
"@MaybeNull\n Object invoke(Object[] argument) throws Throwable;",
"private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }",
"public void setVarArgs(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_VARARGS);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_VARARGS);\n }",
"public void a(String... paramVarArgs) {\n }",
"default boolean hasVariadicParameter() {\n if (getNumberOfParams() == 0) {\n return false;\n } else {\n return getParam(getNumberOfParams() - 1).isVariadic();\n }\n }",
"String concat(String... text);",
"void mo12651e(String str, String str2, Object... objArr);",
"@Test\n void appendSwitchedTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{1}||{0}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(2, 4)),\n new BindWithPos(bindName2, String.class, List.of(1, 3)));\n }",
"private void parseOptionalArguments(DataSet edges, Value[] values,\n int argIndex) {\n if (values.length > argIndex) {\n while (values.length > argIndex) {\n parseStringArguments(edges, values[argIndex++]);\n }\n }\n }",
"@Override\n public Object[] getArguments() {\n return null;\n }",
"@Override\n public int getArgLength() {\n return 4;\n }",
"private void append(byte[] array, int off, int len) throws IOException {\n if(buffer == null) {\n buffer = allocator.allocate(limit);\n }\n buffer.append(array, off, len);\n }",
"public Builder addArgs(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureArgsIsMutable();\n args_.add(value);\n onChanged();\n return this;\n }",
"public Builder addArgs(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureArgsIsMutable();\n args_.add(value);\n onChanged();\n return this;\n }",
"public void testAppendBytesNullPointerException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.appendBytes(null, new byte[0]);\r\n fail(\"if fileCreationId is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.appendBytes(\"valid\", null);\r\n fail(\"if bytes is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }",
"public void append(Object data){\r\n try{\r\n throw new LinkedListException(); //cannot be used so throwing an exception\r\n }\r\n catch (Exception LinkedListException){\r\n System.out.println(\"Not valid method\");\r\n }\r\n }",
"public T getAppendable() {\n/* 63 */ return this.appendable;\n/* */ }",
"protected boolean hasArgument(Node node, int idx)\n {\n return idx < node.jjtGetNumChildren();\n }",
"void append(E[] elements, int off, int len);",
"public void b(Object... objArr) {\n }",
"@Override\n public <B extends SqlBuilder<B>> void append(List<? extends Consumer<? super B>> argumentAppend,\n B builder) {\n if (outerPriority.compareTo(builder.getPosition()) > 0) {\n builder.append(\"(\");\n }\n var matcher = ARGUMENT_PATTERN.matcher(template);\n builder.pushPosition(argumentPosition);\n int pos = 0;\n while (matcher.find()) {\n builder.append(template.substring(pos, matcher.start()));\n var argIndex = Integer.parseInt(template.substring(matcher.start() + 1, matcher.end() - 1));\n argumentAppend.get(argIndex).accept(builder);\n pos = matcher.end();\n }\n builder.append(template.substring(pos))\n .popPosition();\n if (outerPriority.compareTo(builder.getPosition()) > 0) {\n builder.append(\")\");\n }\n }",
"AstroArg empty();",
"public boolean hasArgs() {\n return fieldSetFlags()[3];\n }",
"@Test\n public void addNonEmptyTest() {\n Set<String> s = this.createFromArgsTest(\"zero\", \"one\", \"three\");\n Set<String> sExpected = this.createFromArgsRef(\"zero\", \"one\", \"two\",\n \"three\");\n\n s.add(\"two\");\n\n assertEquals(sExpected, s);\n }",
"private void m145765a(C46405c cVar, Object[] objArr) {\n int i;\n long j;\n if (objArr != null) {\n i = objArr.length;\n } else {\n i = 0;\n }\n if (i != cVar.f119506d) {\n StringBuilder sb = new StringBuilder(\"Expected \");\n sb.append(cVar.f119506d);\n sb.append(\" bind arguments but \");\n sb.append(i);\n sb.append(\" were provided.\");\n throw new SQLiteBindOrColumnIndexOutOfRangeException(sb.toString());\n } else if (i != 0) {\n long j2 = cVar.f119505c;\n for (int i2 = 0; i2 < i; i2++) {\n Boolean bool = objArr[i2];\n int a = C46434h.m145968a((Object) bool);\n if (a != 4) {\n switch (a) {\n case 0:\n nativeBindNull(this.f119482o, j2, i2 + 1);\n break;\n case 1:\n nativeBindLong(this.f119482o, j2, i2 + 1, ((Number) bool).longValue());\n break;\n case 2:\n nativeBindDouble(this.f119482o, j2, i2 + 1, ((Number) bool).doubleValue());\n break;\n default:\n if (!(bool instanceof Boolean)) {\n nativeBindString(this.f119482o, j2, i2 + 1, bool.toString());\n break;\n } else {\n long j3 = this.f119482o;\n int i3 = i2 + 1;\n if (bool.booleanValue()) {\n j = 1;\n } else {\n j = 0;\n }\n nativeBindLong(j3, j2, i3, j);\n break;\n }\n }\n } else {\n nativeBindBlob(this.f119482o, j2, i2 + 1, (byte[]) bool);\n }\n }\n }\n }",
"private static void appendOptions(StringBuilder argumentBuf,\n List<String> optList, Map<String, String> varMap) {\n final boolean isWindows = OsUtils.isWin();\n final String METHOD = \"appendOptions\"; // NOI18N\n // override the values that are found in the domain.xml file.\n // this is totally a copy/paste from StartTomcat...\n final Map<String,String> PROXY_PROPS = new HashMap<>();\n for(String s: new String[] {\n \"http.proxyHost\", // NOI18N\n \"http.proxyPort\", // NOI18N\n \"http.nonProxyHosts\", // NOI18N\n \"https.proxyHost\", // NOI18N\n \"https.proxyPort\", // NOI18N\n }) {\n PROXY_PROPS.put(JavaUtils.systemPropertyName(s), s);\n PROXY_PROPS.put(\"-D\\\"\" + s, s); // NOI18N\n PROXY_PROPS.put(\"-D\" + s, s); // NOI18N\n }\n\n // first process optList aquired from domain.xml \n for (String opt : optList) {\n String name, value;\n // do placeholder substitution\n opt = Utils.doSub(opt.trim(), varMap);\n int splitIndex = opt.indexOf('=');\n // && !opt.startsWith(\"-agentpath:\") is a temporary hack to\n // not touch already quoted -agentpath. Later we should handle it\n // in a better way.\n if (splitIndex != -1 && !opt.startsWith(\"-agentpath:\")) { // NOI18N\n // key=value type of option\n name = opt.substring(0, splitIndex);\n value = Utils.quote(opt.substring(splitIndex + 1));\n LOGGER.log(Level.FINER, METHOD,\n \"jvmOptVal\", new Object[] {name, value});\n\n } else {\n name = opt;\n value = null;\n LOGGER.log(Level.FINER, METHOD, \"jvmOpt\", name); // NOI18N\n }\n\n if(PROXY_PROPS.containsKey(name)) {\n String sysValue = System.getProperty(PROXY_PROPS.get(name));\n if (sysValue != null && sysValue.trim().length() > 0) {\n if (isWindows && \"http.nonProxyHosts\".equals(PROXY_PROPS.get(name))) { // NOI18N\n // enclose in double quotes to escape the pipes separating\n // the hosts on windows\n sysValue = \"\\\"\" + value + \"\\\"\"; // NOI18N\n }\n name = JavaUtils.systemPropertyName(PROXY_PROPS.get(name));\n value = sysValue;\n }\n }\n\n argumentBuf.append(' ');\n argumentBuf.append(name);\n if(value != null) {\n argumentBuf.append(\"=\"); // NOI18N\n argumentBuf.append(value);\n }\n }\n }",
"private static boolean callOrArrayAccessOrQualifiedRefExpression_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"callOrArrayAccessOrQualifiedRefExpression_0\")) return false;\n boolean r;\n r = callExpression(b, l + 1);\n if (!r) r = arrayAccessExpression(b, l + 1);\n if (!r) r = qualifiedReferenceExpression(b, l + 1);\n if (!r) r = consumeToken(b, NOT);\n if (!r) r = typeArguments(b, l + 1);\n return r;\n }",
"@Test\n public void testCheckNullWithLogging() {\n Helper.checkNullWithLogging(\"obj\", \"obj\", \"method\", LogManager.getLog());\n }",
"@Override\n public String str() {\n return \"append\";\n }",
"private void a(NativeAdData paramh)\n/* */ {\n/* 206 */ if ((this.e != null) && (paramh != null)) {\n/* 207 */ this.e.a(paramh);\n/* */ }\n/* */ }",
"public static void main(String[] args) {\n\n\n String str = null;\n StringBuffer sb = new StringBuffer();\n sb.append(str);\n System.out.println(sb.length());//\n System.out.println(sb);//\n StringBuffer sb1 = new StringBuffer(str);\n System.out.println(sb1);//\n\n }",
"private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }",
"Optional<String[]> arguments();",
"@Override\n\tpublic void addArg(FormulaElement arg){\n\t}",
"@Override\n public String visit(ArrayCreationLevel n, Object arg) {\n return null;\n }",
"void mo12654w(String str, String str2, Object... objArr);",
"public void varArg(int ... i) {\n System.out.println(\"Multi arg method\");\n }",
"void mo12652i(String str, String str2, Object... objArr);",
"private void appendLongStrBuf(char[] arr) {\n for (int i = 0; i < arr.length; i++) {\n appendLongStrBuf(arr[i]);\n }\n }",
"void append(E[] elements);",
"abstract protected void addExtras();",
"@Override\n\tpublic boolean append(String arg0, Object arg1) throws TimeoutException,\n\t\t\tInterruptedException, MemcachedException {\n\t\treturn false;\n\t}",
"private static boolean validOptionalArgs (String[] args){\n boolean validChar;\n // Iterate over args\n for (int i = 0; i < args.length; i++){\n if (args[i].charAt(0)!='-')\n \treturn false;\n // Iterate over characters (to read combined arguments)\n for (int charPos = 1; charPos < args[i].length(); charPos++){\n \tvalidChar = false;\n \tfor (int j = 0; j < VALID_OPTIONAL_ARGS.length; j++){\n\t if (args[i].charAt(charPos) == VALID_OPTIONAL_ARGS[j]){\n\t validChar = true;\n\t break;\n\t }\n \t}\n \tif (!validChar)\n \t\treturn false;\n \t}\n }\n return true;\n }",
"@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}",
"public static void call(Object... o) {\r\n\t\t// to prevent the compiler to prune the Object\r\n\t}",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"public Class<? extends DataType>[] getOptionalArgs();",
"@Override\n public String visit(ArrayCreationExpr n, Object arg) {\n return null;\n }",
"public abstract void a(StringBuilder sb);",
"public void append(Object item);",
"@Override\r\n public boolean appendEnd(final Appendable out , final Object... OtherData) {\r\n return false;\r\n }",
"Object[] getArguments();",
"Object[] getArguments();",
"public void log(Object... vals) throws IOException;",
"private void appendStrBufToLongStrBuf() {\n for (int i = 0; i < strBufLen; i++) {\n appendLongStrBuf(strBuf[i]);\n }\n }",
"@ExceptionTest(IndexOutOfBoundsException.class)\n @ExceptionTest(NullPointerException.class)\n public static void doublyBad() {\n\n List<String> list = new ArrayList<>();\n// The spec permits this method to throw either\n// IndexOutOfBoundsException or NullPointerException\n list.addAll(5, null);\n\n list.forEach(System.out::println);\n }",
"static boolean attribute_arg_value_array_item(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"attribute_arg_value_array_item\")) return false;\n boolean r;\n r = attribute_arg_value_scalar(b, l + 1);\n if (!r) r = attribute_arg_value_array(b, l + 1);\n return r;\n }",
"public Builder addArguments(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureArgumentsIsMutable();\n arguments_.add(value);\n onChanged();\n return this;\n }",
"public void setArgs0(java.lang.String param) {\r\n localArgs0Tracker = true;\r\n\r\n this.localArgs0 = param;\r\n\r\n\r\n }",
"public void setArgs0(java.lang.String param) {\r\n localArgs0Tracker = true;\r\n\r\n this.localArgs0 = param;\r\n\r\n\r\n }",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"public void mo43852a(StringBuilder aLog) {\n }",
"@Test\n public void testIndirectEmptyArrayCreation() {\n final String[] array = ArrayUtilsTest.<String>toArrayPropagatingType();\n assertEquals(0, array.length);\n }",
"public static void debug(String string, Object... val) {\n\n }",
"@Override\n\tpublic boolean append(String arg0, Object arg1, long arg2)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\t\treturn false;\n\t}",
"@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }",
"public void testAppend() {\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n assertEquals(6, test1.length());\n }",
"public static void out(@Nullable Object... args)\r\n\t{\r\n\t\tif (!DEBUG) return;\r\n\r\n\t\tString output = \"\";\r\n\r\n\t\tif (args != null)\r\n\t\t{\r\n\t\t\tfor (Object object : args)\r\n\t\t\t{\r\n\t\t\t\tif (object == null)\r\n\t\t\t\t{\r\n\t\t\t\t\toutput += \"[null]\";\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\toutput += String.valueOf(object) + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlongInfo(getCallingMethodInfo() + \" \" + output);\r\n\t}",
"boolean appendEntry(final LogEntry entry);",
"public static final void wtf(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.Nullable java.lang.Object r3, @org.jetbrains.annotations.Nullable java.lang.Throwable r4) {\n /*\n r0 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0);\n if (r4 == 0) goto L_0x001c;\n L_0x0008:\n r1 = r2.getLoggerTag();\n if (r3 == 0) goto L_0x0018;\n L_0x000e:\n r0 = r3.toString();\n if (r0 == 0) goto L_0x0018;\n L_0x0014:\n android.util.Log.wtf(r1, r0, r4);\n L_0x0017:\n return;\n L_0x0018:\n r0 = \"null\";\n goto L_0x0014;\n L_0x001c:\n r1 = r2.getLoggerTag();\n if (r3 == 0) goto L_0x002c;\n L_0x0022:\n r0 = r3.toString();\n if (r0 == 0) goto L_0x002c;\n L_0x0028:\n android.util.Log.wtf(r1, r0);\n goto L_0x0017;\n L_0x002c:\n r0 = \"null\";\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.wtf(org.jetbrains.anko.AnkoLogger, java.lang.Object, java.lang.Throwable):void\");\n }",
"@Override\r\n public boolean appendStart(final Appendable out , final Object... OtherData) {\r\n return false;\r\n }",
"public void filesNotFound(File... f) { }",
"public void filesNotFound(File... f) { }",
"public RTWLocation append(Object... list);",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public String visit(ArrayInitializerExpr n, Object arg) {\n return null;\n }",
"public Object[] getArguments() { return args;}",
"protected boolean appendLine(final String filename, final String format, final Object... args) {\n return appendLine(filename, String.format(format, args));\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: */ }",
"public void addSPArgsInfo(SPArgsInfo spArgsInfo) {\n\t\tif (this.argsInfoList == null) {\n\t\t\targsInfoList = new ArrayList<SPArgsInfo>();\n\t\t}\n\t\tif (!argsInfoList.contains(spArgsInfo)) {\n\t\t\targsInfoList.add(spArgsInfo);\n\t\t}\n\t}",
"private static String printOptionalArgs() {\n String output = \"\";\n for (int i = 0; i < MAX_OPTIONAL_ARGS; i++)\n output += \" [-\" + VALID_OPTIONAL_ARGS[i] + \"]\";\n return output + \" \";\n }",
"@Test\r\n\tpublic void testNoArg() {\r\n\t\tAssert.assertEquals(\"test[]\", new FunctionImpl.FunctionBuilderImpl(\"test\").build().toQ());\r\n\t}",
"private static void checkArg(Object s) {\n if (s == null) {\n throw new NullPointerException(\"Argument must not be null\");\n }\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addOptionalCondition(\"\", (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@java.lang.Override\n public int getArgsCount() {\n return args_.size();\n }",
"private void checkArguments(ArrayList<String> applicationArguments) throws JshException {\n if (applicationArguments.size() > 1) {\n throw new JshException(\"history: too many arguments\");\n }\n }",
"public Object[] getArgumentArray() {\n return null;\n }",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}"
] | [
"0.5776243",
"0.56967664",
"0.5552383",
"0.5542218",
"0.54600114",
"0.5223135",
"0.5223135",
"0.5223135",
"0.5186617",
"0.50867885",
"0.507588",
"0.50135744",
"0.49975422",
"0.4980161",
"0.49727973",
"0.49478215",
"0.49427477",
"0.48896536",
"0.4862482",
"0.48517594",
"0.4851543",
"0.4835449",
"0.48260656",
"0.48155728",
"0.48155728",
"0.47930434",
"0.4788674",
"0.47682992",
"0.4768185",
"0.4762748",
"0.4734363",
"0.4729039",
"0.47157162",
"0.47021776",
"0.4695635",
"0.4694109",
"0.46907526",
"0.46841246",
"0.46714383",
"0.46638364",
"0.46248353",
"0.4619944",
"0.46101",
"0.46028113",
"0.45967814",
"0.45941094",
"0.45899916",
"0.45759913",
"0.45732775",
"0.45612055",
"0.45499787",
"0.45442307",
"0.45398706",
"0.45389602",
"0.45305872",
"0.45259166",
"0.4520576",
"0.4519417",
"0.45171311",
"0.45006227",
"0.44984117",
"0.4493351",
"0.44920877",
"0.44920877",
"0.44892624",
"0.448815",
"0.4485829",
"0.44836998",
"0.44789258",
"0.44785038",
"0.44785038",
"0.44764698",
"0.44665733",
"0.44553846",
"0.445418",
"0.4450891",
"0.4448979",
"0.44396985",
"0.4437642",
"0.4437192",
"0.44332653",
"0.44303387",
"0.44206733",
"0.44206733",
"0.440868",
"0.44070095",
"0.44070095",
"0.44020015",
"0.44011316",
"0.439969",
"0.4398697",
"0.4391628",
"0.43892813",
"0.43861523",
"0.4379198",
"0.43719292",
"0.43690103",
"0.43666786",
"0.4364592",
"0.43627703"
] | 0.56788045 | 2 |
Interface that denotes whether or not an entity is archived. Usually, entities that implement this interface also only undergo softdeletes. | public interface Status {
public void setArchived(Character archived);
public Character getArchived();
public boolean isActive();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isArchive() {\n RepoPath repositoryPath = InternalRepoPathFactory.create(getRepoKey(), getPath());\n ItemInfo fileInfo = retrieveItemInfo(repositoryPath);\n return NamingUtils.getMimeType(fileInfo.getRelPath()).isArchive();\n }",
"public String getArchivedFlag() {\n return archivedFlag;\n }",
"public Boolean isArchiveEnabled() {\n return this.isArchiveEnabled;\n }",
"@ApiModelProperty(value = \"True if campaign/flow has been archived\")\r\n public Boolean isDeleted() {\r\n return deleted;\r\n }",
"boolean isArchiveSuppress();",
"@Override\n\tpublic final void setArchived(final boolean state) {\n\t\tthis.archived = state;\n\t}",
"public boolean isDeleted();",
"boolean isDeleted();",
"public boolean isArchiveAnalyzerEnabled() {\n return archiveAnalyzerEnabled;\n }",
"public abstract boolean isEdible();",
"@Override\n public boolean isArchivable()\n {\n /* If the complaint is resolved, it is archivable */\n return resolved;\n }",
"public boolean isAktiv() {\n\t\treturn false;\n\t}",
"public boolean isDeleted() {\r\n\treturn isDeleted;\r\n}",
"public java.lang.Boolean getDeleted();",
"boolean hasArch();",
"public Boolean getIsDeleted() {\r\n return isDeleted;\r\n }",
"public boolean isIsDeleted() {\n return isDeleted;\n }",
"@Override\n\tpublic boolean isInTrash();",
"public Boolean getIsDeleted() {\n return isDeleted;\n }",
"public boolean isPorDescuento();",
"public boolean isDeleted() {\n return (this == RecordStatusEnum.DELETED);\n }",
"public Archive getArchive();",
"public synchronized boolean hasArchiveFolder() {\n return !K9.FOLDER_NONE.equalsIgnoreCase(mArchiveFolderName);\n }",
"public boolean isDeleted()\r\n {\r\n return getSemanticObject().getBooleanProperty(swb_deleted);\r\n }",
"public boolean isDeleted() {\n\t\treturn getStatus() == STATUS_DELETED;\n\t}",
"public boolean isDeleted() {\n return deleted;\n }",
"public boolean hasArch() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }",
"public boolean isShowOnlyDeleted() {\n\t\treturn showOnlyDeleted;\n\t}",
"public boolean isIsDelete() {\n return isDelete;\n }",
"@Override\n \t\t\t\tpublic boolean isDeleted() {\n \t\t\t\t\treturn false;\n \t\t\t\t}",
"public Byte getIsDeleted() {\r\n return isDeleted;\r\n }",
"public Byte getIsDeleted() {\n return isDeleted;\n }",
"public Byte getIsDeleted() {\n return isDeleted;\n }",
"public interface ToggleToDoItemArchivedState{\n\t\tpublic void onToDoArchivedStateToggled(ArrayList<Todo> todos, String listName);\n\t}",
"@Override\n public boolean esArbolVacio() {\n return NodoBinario.esNodoVacio(raiz);\n }",
"public boolean isDeleted() {\n return deleted != null;\n }",
"public boolean isDeleted()\r\n\t{\r\n\t\treturn deletedFlag;\r\n\t}",
"public interface ArchiveProperties\n{\n // TODO: change the below to a separate property to allow archiving but disable/enable XEP-0136\n String ENABLED = \"conversation.metadataArchiving\";\n String FORCE_RSM = \"archive.FORCE_RSM\";\n}",
"boolean getItemCanBeDeleted(String itemId);",
"boolean isOrderable();",
"public void setArchivedFlag(String archivedFlag) {\n this.archivedFlag = archivedFlag == null ? null : archivedFlag.trim();\n }",
"public String getIsDeleted() {\n return isDeleted;\n }",
"public String getIsDeleted() {\n return isDeleted;\n }",
"public String getArchiver();",
"public boolean isShowOnlyDeleted() {\n\t\t\treturn showOnlyDeleted;\n\t\t}",
"public boolean hasArch() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"public Integer getIsDeleted() {\n return isDeleted;\n }",
"@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGtStatus.getIsDelete();\n\t}",
"public boolean isTar() {\n\t\treturn this.isTar;\n\t}",
"public Boolean enableSoftDelete() {\n return this.enableSoftDelete;\n }",
"public Boolean isDeleted() {\n\t\treturn this.deleted;\n\t\t\n\t}",
"public boolean archive(String owner, String repo, String archive) {\n return apiClient.get(String.format(\"/repos/%s/%s/archive/%s\", owner, repo, archive)).isOk();\n }",
"public Integer getIsdeleted() {\n return isdeleted;\n }",
"public boolean isDeleted() {\n\t\treturn deleted;\n\t}",
"public Boolean getIsDeleted() {\n\t\treturn isDeleted;\n\t}",
"public java.lang.Boolean getIsDeleted() {\r\n return isDeleted;\r\n }",
"public boolean isShowDeleted() {\n\t\treturn showDeleted;\n\t}",
"public void setDeleted(boolean deleted);",
"@Override\n\tpublic boolean isInTrashContainer();",
"public Boolean getDeleted() {\n return deleted;\n }",
"public Boolean getDeleted() {\n return deleted;\n }",
"public Boolean getDeleted() {\n return deleted;\n }",
"public Boolean getDeleted() {\n return deleted;\n }",
"public Boolean getDeleted() {\n return deleted;\n }",
"@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(80)\r\n\tboolean isDeleted();",
"@Override\n public String getEntityName()\n {\n return GWFArchiveProcess.ENTITY_NAME;\n }",
"public abstract boolean isPersistent();",
"public boolean isOkToDelete() {\r\n // TODO - implement User.isOkToDelete\r\n throw new UnsupportedOperationException();\r\n }",
"public boolean isItDelete() {\n\t\treturn false;\n\t}",
"public Boolean getDeleted() {\n return mDeleted;\n }",
"@Override\n\tpublic boolean movable(Entity obj) {\n\t\treturn true;\n\t}",
"public boolean getDeleted() {\n return deleted;\n }",
"public boolean isApproved();",
"public boolean isApproved();",
"public String getIsDeleted() {\n\t\treturn isDeleted;\n\t}",
"public default boolean shouldHideEntity(){ return false; }",
"boolean getDraft();",
"public boolean isEdible()\n {\n return this.aEdible;\n }",
"public Integer getIsDeleted() {\r\n\t\treturn isDeleted;\r\n\t}",
"public boolean isShowDeleted() {\n\t\t\treturn showDeleted;\n\t\t}",
"public Boolean getIsdelete() {\r\n return isdelete;\r\n }",
"public boolean isImpenetrable() {\n\t\treturn impenetrable;\n\t}",
"boolean isDeletable() {\n return life == 0;\n }",
"@Column(name = \"isDelete\")\r\n\tpublic Boolean getIsDelete() {\r\n\t\treturn this.isDelete;\r\n\t}",
"public boolean estaEnModoAvion();",
"public boolean isAtivada() {\n return ativada;\n }",
"private static boolean isAbcdArchive(Endpoint endpoint) {\n return EndpointType.BIOCASE_XML_ARCHIVE == endpoint.getType();\n }",
"@Override\n\tpublic boolean isDraft();",
"public Byte getIsDelete() {\n return isDelete;\n }",
"public Byte getIsDelete() {\n return isDelete;\n }",
"public abstract boolean isDelivered();",
"public boolean canBeDeleted() {\n\t\treturn System.currentTimeMillis() - dateTimeOfSubmission.getTime() < ACCEPT_CANCEL_TIME;\n\t}",
"@Override\n public boolean getAsBoolean() {\n return this.persistenceCheck.getAsBoolean();\n }",
"public interface DinaEntity {\n\n Integer getId();\n\n UUID getUuid();\n\n /**\n * The group represents the group owning the entity. group is optional and null\n * is return if an entity doesn't support it.\n *\n * @return the name of the group or null\n */\n default String getGroup() {\n return null;\n }\n\n /**\n * Is the entity considered publicly releasable?\n * Optional.empty() means inapplicable or unknown and needs to be interpreted by the caller.\n *\n * @return Optional with the isPubliclyReleasable flag or Optional.empty() if inapplicable or unknown\n */\n default Optional<Boolean> isPubliclyReleasable() {\n return Optional.empty();\n }\n\n String getCreatedBy();\n\n OffsetDateTime getCreatedOn();\n\n}",
"public Calendar getArchivalDate();",
"@Override\n public boolean esVacio(){\n return(super.esVacio());\n }",
"public interface InternalEntity {\n\t/**\n\t * Returns true if the entity should be visible in the entities view.\n\t * \n\t * @return\n\t */\n\tboolean isVisible();\n}",
"public final boolean isForDelete() {\n\t\treturn JsUtils.getNativePropertyBoolean(this, \"forDelete\");\n\t}",
"public boolean isApproved() {\n return approved;\n }",
"public String getArchiveInd() {\n\t\treturn this.archiveInd;\n\t}"
] | [
"0.6747657",
"0.65618",
"0.65565467",
"0.647334",
"0.62312365",
"0.6139648",
"0.6023636",
"0.5915101",
"0.5855151",
"0.5802455",
"0.57831645",
"0.5781912",
"0.56972295",
"0.5667165",
"0.56544113",
"0.5641823",
"0.5621178",
"0.5614496",
"0.56043863",
"0.55889285",
"0.5588695",
"0.55871075",
"0.5530565",
"0.5522178",
"0.5509318",
"0.55061877",
"0.5503562",
"0.5455308",
"0.54547596",
"0.5449746",
"0.54495907",
"0.5438945",
"0.5438945",
"0.5437584",
"0.5415369",
"0.5392995",
"0.5390319",
"0.5383501",
"0.5373755",
"0.5369389",
"0.5363834",
"0.5357743",
"0.5357743",
"0.5356512",
"0.5354541",
"0.5345973",
"0.5319349",
"0.53105533",
"0.5302529",
"0.5291375",
"0.52724075",
"0.52718127",
"0.5264292",
"0.52631545",
"0.5247528",
"0.52463686",
"0.52408165",
"0.52328724",
"0.5231377",
"0.52280396",
"0.5208075",
"0.5208075",
"0.5208075",
"0.5208075",
"0.5202715",
"0.518626",
"0.51846945",
"0.51839155",
"0.5178487",
"0.51749986",
"0.5167006",
"0.5151362",
"0.5145274",
"0.5145274",
"0.5142903",
"0.51415133",
"0.5140377",
"0.5132858",
"0.51254183",
"0.51243263",
"0.5113483",
"0.5106322",
"0.508381",
"0.50812507",
"0.5079293",
"0.50741774",
"0.5063998",
"0.50557077",
"0.5053361",
"0.5053361",
"0.5051689",
"0.504857",
"0.5036535",
"0.50343376",
"0.50338024",
"0.5033309",
"0.5030556",
"0.50257397",
"0.50233215",
"0.50172573"
] | 0.5060015 | 87 |
End onEventUpdated Cleanup Old datas | private void cleanup() {
mCategory = null;
mAccount = null;
mCal = null;
/* Reset value */
etAmount.setText("");
tvCategory.setText("");
tvPeople.setText("");
tvDescription.setText("");
tvAccount.setText("");
tvEvent.setText("");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cleanupUpdate();",
"void onDataCleared();",
"@Override\n protected void onDestroy() {\n DataUpdater.unregisterDataUpdateListener(DataUpdater.DATA_UPDATE_TYPE_AREAE_XZ, this);\n DataUpdater.unregisterDataUpdateListener(DataUpdater.DATA_UPDATE_TYPE_AREAE_BUS, this);\n DataUpdater.unregisterDataUpdateListener(DataUpdater.DATA_UPDATE_TYPE_BIGCATES, this);\n\n super.onDestroy();\n }",
"@Override\n public void removeUpdate(DocumentEvent e) {\n verifierSaisie();\n }",
"@Override\r\n\tpublic void cleanUp(Event event) {\n\t\t\r\n\t}",
"@Override\n\tpublic void changedUpdate(DocumentEvent de) {\n\n\t}",
"@Override\r\n public void removeUpdate(DocumentEvent e) {\n HayCambio();\r\n }",
"@DISPID(-2147412090)\n @PropGet\n java.lang.Object onafterupdate();",
"protected void clearOutEvents() {\n\t}",
"protected void clearOutEvents() {\n\t}",
"public void cleanupData() {\n\t}",
"@Override\n public void changedUpdate(DocumentEvent e) {\n verifierSaisie();\n }",
"@Override\n\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}",
"public void onDataChanged(){}",
"@Override\n\t\t\tpublic void changedUpdate(DocumentEvent arg0) {\n\t\t\t}",
"protected void onUpdate() {\r\n\r\n\t}",
"@Override\n public void onDataChanged() {\n\n }",
"@Override\n protected void onDataChanged() {\n }",
"@PreUpdate\n\tprotected void onUpdate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}",
"public void changedUpdate(DocumentEvent event)\n\t{\n\t\t// do nothing\n\t}",
"protected synchronized void clearChanged() {\n changed = false;\n }",
"public void dataChanged() {\n\t\tif (wijzigInfo)\n\t\t\twijzigInfo();\n\n\t\tsetChanged();\n\t\tnotifyObservers(\"dataChanged\");\n\t}",
"public void shutdownForUpdate();",
"void onCleanup() {\n\t\tdimensionMap.forEachValue(e -> {\n\t\t\te.releaseAllChunkData();\n\t\t\treturn true;\n\t\t});\n\t\tdimensionMap.clear();\n\t\tconnectedPlayers.clear();\n\t}",
"@Override\r\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t}",
"@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }",
"@Override\r\n\tpublic void update(EventBean[] arg0, EventBean[] arg1) {\n\t\tEODQuote q = (EODQuote)arg0[0].getUnderlying();\r\n\t\t/*if ( q.getTimestamp() < Utility.getInstance().getCurrentTime() )\r\n\t\t{\r\n\t\t\tUtility.getInstance().info(\"Old event ignoring \"+q.toString());\r\n\t\t\treturn;\r\n\t\t}*/\r\n\t\t\tpfm.generateExits(q);\r\n\t\t\t\t\t\r\n\t\t}",
"@Override\n\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\n\t}",
"@Override\r\n public void removeUpdate(DocumentEvent e) {\n ActivoTimer();\r\n }",
"public void dataUpdateEvent();",
"@Override\n\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}",
"void onDataChanged();",
"void cleanUpEventsAndPlaces();",
"public void update() {\n\t\tthis.binder_Inventario.clear();\n\t}",
"@Override\r\n public void changedUpdate(DocumentEvent e)\r\n {\n }",
"public void onDataChanged();",
"@Override\n public void onDataChanged() {\n }",
"@Override\n public void onDataChanged() {\n }",
"public void clearUpadted() {\n this.updated = false;\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (updateProgressDialog != null) {\n\t\t\tupdateProgressDialog = null;\n\t\t\tupdateProgressDialog = null;\n\t\t}\n\t\tif(updateMan != null) {\n\t\t\tupdateMan.cancelDownload();\n\t\t\tupdateMan = null;\n\t\t}\n\t\tm_curVer = null;\n\t\tm_newVer = null;\n\t\tm_curVerCode = null;\n\t\tm_curVerName = null;\n\t\tupdateMan = null;\n\t}",
"protected void clearEvents() {\n\t\tsCInterface.clearEvents();\n\n\t}",
"@Override\n\t\t\t\tpublic void changedUpdate(final DocumentEvent e) {\n\t\t\t\t}",
"@Override\n\tpublic void cleanUp() {\n\t\t table = null;\n colFam = null;\n currentEvent = null;\n\t}",
"@Override\r\n public void onCleanup() {\n }",
"public void changedUpdate(DocumentEvent event) {\n\t\t\t}",
"@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}",
"public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\n\t}",
"private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}",
"@Override\n public void eventsChanged() {\n }",
"protected void processOnDestroyComp()\n\t{\n\t\tif (path != null)\n\t\t{\n\t\t\tpath.removeModifiedListener(this);\n\t\t}\n\t}",
"@Override\n\tpublic void onExit() {\n\t\tlabelHelp = null;\n\t\tlayer_force = null;\n\t\tmSoundBtn = null;\n\t\tboxMessage = null;\n\n\t\tSystem.gc();\n\t\tsuper.onExit();\n\t}",
"public EventDataUpdate ()\n\t{\n\t\tm_Fields = new Hashtable<String, String>();\n\t\tm_nType = EVENTDATA_UPDATE_NONE;\n\t}",
"public void dataChanged(DataChangeEvent e) {\n\t\t\t}",
"public synchronized void endUpdates() {\n checkState(_recentlyTouched != null, \"The beginUpdates method has not been called.\");\n Iterator<String> iter = _metrics.keySet().iterator();\n while (iter.hasNext()) {\n String metric = iter.next();\n if (!_recentlyTouched.contains(metric)) {\n _registry.remove(metric);\n iter.remove();\n }\n }\n _recentlyTouched = null;\n }",
"public void willbeUpdated() {\n\t\t\n\t}",
"@Override\r\n\t\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"@Override\n @After\n public void after() throws Exception {\n\n // clean up the event data\n clearMxTestData();\n\n super.after();\n }",
"@Override\n\tpublic void changedUpdate(DocumentEvent e)\n\t{\n\t\t\n\t}",
"public void dataChanged() {\n // get latest data\n runs = getLatestRuns();\n wickets = getLatestWickets();\n overs = getLatestOvers();\n\n currentScoreDisplay.update(runs, wickets, overs);\n averageScoreDisplay.update(runs, wickets, overs);\n }",
"public void dataSetChanged() {\n\n\t\tif (!isPackValid())\n\t\t\treturn;\n\n\t\t// update charts:\n\t\tupdateCharts();\n\n\t}",
"private void doAfterUpdateModel(final PhaseEvent arg0) {\n\t}",
"public void changedUpdate(DocumentEvent e) {\n\n\t}",
"@Override\n public void onDataUpdatedCb(Object response_data) {\n \n }",
"public void afterUpdate(DevicelabtestBean pObject) throws SQLException;",
"protected void onEnd() {}",
"void afterUpdate(SampletypeBean pObject) throws SQLException {\n if (listener != null)\n listener.afterUpdate(pObject);\n }",
"public void handleUpdate(WasteBinSensorData updatedData)\n\t{\n\t\t// extract updated values and store them in the current instance\n\t\t// variables.\n\t\tthis.fillLevel = updatedData.getFillLevel();\n\t\tthis.temperatureAsMeasure = updatedData.getTemperature();\n\t\t\n\t\t// update the latest update time\n\t\tthis.latestUpdate = new Date();\n\t\tHashMap<String, Object> valuesMap = new HashMap<>();\n\t\tvaluesMap.put(\"getTemperature\", this.getTemperature());\n\t\tvaluesMap.put(\"getLevel\", this.getLevel());\n\t\tPWALNewDataAvailableEvent event = new PWALNewDataAvailableEvent(this.getUpdatedAt(), this.getPwalId(),\n\t\t\t\tthis.getExpiresAt(), valuesMap, this);\n\t\tlogger.info(\"Device {} is publishing a new data available event on topic: {}\", this.getPwalId(),\n\t\t\t\tthis.eventPublisher.getTopics());\n\t\tthis.eventPublisher.publish(event);\n\t\t\n\t}",
"@Override\n\tpublic void clearChanged() {\n\t\tthis.changed = false;\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void appUpdateFaild() {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t}",
"public void UnPostAllEvents();",
"public void allActualValuesUpdated ();",
"public void clearEvents()\n {\n ClientListener.INSTANCE.clear();\n BackingMapListener.INSTANCE.clear();\n }",
"@Override\n public void datasetChanged(DatasetChangeEvent event) {\n this.lastEvent = event;\n }",
"public void updateData() {}",
"@Override\n\tprotected void onShutdown(ApplicationEvent event) {\n\t\t\n\t}",
"@Override\n public void refreshDataEntries() {\n }",
"public void updateData() {\n\t\tcal = eventsData.getCalendar();\n\t\tfirstDayOfWeek = eventsData.getFirstDayOfWeek();\n\t\tcurrentDayOfMonth = eventsData.getDayNumber();\n\t\tnumberOfDays = eventsData.getNumberOfDays();\n\t\tnumberOfWeeks = eventsData.getNumberOfWeeks();\n\t\tyear = eventsData.getYearNumber();\n\t\tmonth = eventsData.getMonthNumber();\n\t\tday = eventsData.getDayNumber();\n\t\tweek = eventsData.getDayOfWeek();\n\t}",
"@Override\n\tpublic void onDataChanged()\n\t{\n\t\tfor (DataChangedCallbacks listener : this.dataChangedListeners)\n\t\t{\n\t\t\tlistener.onDataChanged();\n\t\t}\n\t}",
"@Override\n public void removeFirstObjectInAdapter() {\n eventsArray.remove(0);\n lastRemovedEventId = eventIds.get(0);\n lastRemovedEventTitle = eventTitles.get(0);\n lastRemovedEventDesc = eventDescriptions.get(0);\n lastRemovedEventStartTime = eventStartTimes.get(0);\n lastRemovedEventEndTime = eventEndTimes.get(0);\n lastRemovedEventLocation = eventLocations.get(0);\n //Log.d(LOG_MESSAGE, lastRemovedEventId + \" - before\");\n eventIds.remove(0);\n eventTitles.remove(0);\n eventDescriptions.remove(0);\n eventStartTimes.remove(0);\n eventEndTimes.remove(0);\n eventLocations.remove(0);\n arrayAdapter.notifyDataSetChanged();\n //Log.d(LOG_MESSAGE, lastRemovedEventId + \" - after\");\n }",
"public void dataUpdated() {\r\n finish = getConfiguration().getTransformTarget() != null;\r\n this.wizardControl.updateView();\r\n }",
"public void shutdown()\r\n {\r\n debug(\"shutdown() the application module\");\r\n\r\n // Shutdown all the Timers\r\n shutdownWatchListTimers();\r\n // Save Our WatchLists\r\n saveAllVectorData();\r\n // Our Container vectors need to be emptied and clear. \r\n modelVector.removeAllElements();\r\n modelVector = null;\r\n\r\n tableVector.removeAllElements();\r\n tableVector = null;\r\n\r\n // Delete any additional Historic Data that is Serialized to disk\r\n expungeAllHistoricFiles();\r\n\r\n // Shutdown the task that monitors the update tasks\r\n if ( this.monitorTask != null )\r\n {\r\n this.monitorTask.cancel();\r\n this.monitorTask = null;\r\n }\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n debug(\"shutdown() the application module - complete\");\r\n\r\n }",
"void endUpdate();",
"public void shutdown(){\n\t\tAndroidSensorDataManagerSingleton.cleanup();\n\t}",
"public void afterUpdate(VLabtestInstBean pObject) throws SQLException;",
"public void notifyChangementCroyants();",
"protected void onReset() {\n\t\t\n\t}",
"protected void afterRecipeCheckFailed() {\n cleanOrExplode();\n\n for (GT_MetaTileEntity_Hatch_OutputData data : eOutputData) {\n data.q = null;\n }\n\n mOutputItems = null;\n mOutputFluids = null;\n mEfficiency = 0;\n mEfficiencyIncrease = 0;\n mProgresstime = 0;\n mMaxProgresstime = 0;\n eAvailableData = 0;\n //getBaseMetaTileEntity().disableWorking(); //can add in override\n //hatchesStatusUpdate_EM(); //called always after recipe checks\n }",
"protected void cleanupOnClose() {\n\t}",
"public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}",
"@Override\r\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n public void handleEvent(Event evt) {\n System.out.println(\"Focused out, removing click and change listeners\");\r\n documentElement.removeEventListener(\"change\", changeEventListener, false);\r\n documentElement.removeEventListener(\"click\", clickEventListener, false);\r\n \r\n }",
"public static void shutdown() {\n resetCache();\n listeningForChanges = false;\n }",
"public void cleanup() {\n endtracking();\n\n //sends data to UI\n MainActivity.trackingservicerunning = false;\n MainActivity.servicestopped();\n\n //stops\n stopSelf();\n }",
"@Override\n\tpublic void onGuiClosed() {\n\t\tfield_154330_a.removed();\n\t\tsuper.onGuiClosed();\n\t}",
"@Override\n\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t}",
"@Override\n\tpublic void onDataChanged(long timestamp, int msg) {\n\t\tif(msg==AgentMessage.ERROR.getCode()) \n\t\t\tToolBox.showRemoteErrorMessage(connBean, error);\n\t\t\n\t\tsynchronized (mutex) {\n setEnabled(false);\n if (solid != null && timestamp > lastestTimeStamp+1500*1000000) {\n int result = JOptionPane.showConfirmDialog(StartUI.getFrame(), \"The config of this lift has changed. Reload it?\", \"Update\",\n JOptionPane.YES_NO_OPTION);\n if (result == JOptionPane.OK_OPTION) {\n solid = null;\n event = new Parser_Event( connBean.getIp(), connBean.getPort() );\n setHot();\n }\n } else {\n setHot();\n }\n setEnabled(true);\n }\n\t}",
"protected boolean isDataChanged() {\n\n\t\treturn true;\n\t}",
"public void removeUpdate(DocumentEvent e)\n {\n performFlags();\n }",
"@Override\r\n public void changedUpdate(DocumentEvent e) {\n HayCambio();\r\n }"
] | [
"0.69022804",
"0.6460089",
"0.6422349",
"0.62903076",
"0.6288965",
"0.6285332",
"0.6162077",
"0.6144697",
"0.6137655",
"0.6137655",
"0.6134621",
"0.6105958",
"0.6045887",
"0.60249096",
"0.60232013",
"0.6013621",
"0.6003277",
"0.60009897",
"0.5984691",
"0.5969561",
"0.5950747",
"0.5947942",
"0.5941792",
"0.59346896",
"0.5934485",
"0.59296006",
"0.5928439",
"0.5925526",
"0.591231",
"0.5905496",
"0.59038895",
"0.5897419",
"0.589654",
"0.5889741",
"0.5888905",
"0.5884696",
"0.5865853",
"0.58523643",
"0.58523643",
"0.5850571",
"0.58478725",
"0.58421874",
"0.5828336",
"0.5826055",
"0.58126193",
"0.5798697",
"0.57436156",
"0.5738525",
"0.5736537",
"0.5719174",
"0.5704044",
"0.5701889",
"0.5693588",
"0.56830955",
"0.56828576",
"0.56750757",
"0.567402",
"0.567057",
"0.5669101",
"0.5662327",
"0.5661561",
"0.56468314",
"0.5645294",
"0.5641421",
"0.56395745",
"0.56147134",
"0.5606488",
"0.55882883",
"0.55809945",
"0.55797744",
"0.55683565",
"0.556764",
"0.5567187",
"0.55652726",
"0.5545465",
"0.55427253",
"0.55416673",
"0.5539597",
"0.55386007",
"0.5536756",
"0.553631",
"0.55341256",
"0.55250394",
"0.5511764",
"0.54963523",
"0.54958785",
"0.5491649",
"0.54908884",
"0.54888785",
"0.5488405",
"0.54868114",
"0.5484488",
"0.5474364",
"0.54707456",
"0.54673254",
"0.5466105",
"0.54630977",
"0.54618424",
"0.54547524",
"0.5451998",
"0.5450696"
] | 0.0 | -1 |
End CurrencyTextWatcher Save Transaction to Database | private void createTransaction() {
String inputtedAmount = etAmount.getText().toString().trim().replaceAll(",", "");
if (inputtedAmount.equals("") || Double.parseDouble(inputtedAmount) == 0) {
etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));
return;
}
if (mAccount == null) {
((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));
return;
}
if(mCategory == null) {
((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Category_Income_Empty));
return;
}
Double amount = Double.parseDouble(etAmount.getText().toString().replaceAll(",", ""));
if(amount < 0) {
((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Amount_Invalid));
return;
}
int CategoryId = mCategory != null ? mCategory.getId() : 0;
String Description = tvDescription.getText().toString();
int accountId = mAccount.getId();
String strEvent = tvEvent.getText().toString();
Event event = null;
if (!strEvent.equals("")) {
event = mDbHelper.getEventByName(strEvent);
if (event == null) {
long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));
if (eventId != -1) {
event = mDbHelper.getEvent(eventId);
}
}
}
boolean isDebtValid = true;
// Less: DebtCollect, More: Borrow
if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting
List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());
Double lend = 0.0, debtCollect = 0.0;
for(Debt debt : debts) {
if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {
lend += debt.getAmount();
}
if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {
debtCollect += debt.getAmount();
}
}
if(debtCollect + amount > lend) {
isDebtValid = false;
((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));
}
}
if(isDebtValid) {
Transaction transaction = new Transaction(0,
TransactionEnum.Income.getValue(),
amount,
CategoryId,
Description,
0,
accountId,
mCal,
0.0,
"",
event);
long newTransactionId = mDbHelper.createTransaction(transaction);
if (newTransactionId != -1) {
if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {
Debt newDebt = new Debt();
newDebt.setCategoryId(mCategory.getId());
newDebt.setTransactionId((int) newTransactionId);
newDebt.setAmount(amount);
newDebt.setPeople(tvPeople.getText().toString());
long debtId = mDbHelper.createDebt(newDebt);
if(debtId != -1) {
((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));
cleanup();
if(getFragmentManager().getBackStackEntryCount() > 0) {
// Return to last fragment
getFragmentManager().popBackStackImmediate();
}
} else {
((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));
mDbHelper.deleteTransaction(newTransactionId);
}
} else {
((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));
cleanup();
if(getFragmentManager().getBackStackEntryCount() > 0) {
// Return to last fragment
getFragmentManager().popBackStackImmediate();
}
}
} else {
((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_transaction_create_fail));
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n String inputtedAmount = etAmount.getText().toString().trim().replaceAll(\",\", \"\");\n if (inputtedAmount.equals(\"\") || Double.parseDouble(inputtedAmount) == 0) {\n etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));\n return;\n }\n\n if (mAccount == null) {\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));\n return;\n }\n\n Double amount = Double.parseDouble(inputtedAmount);\n int categoryId = mCategory != null ? mCategory.getId() : 0;\n String description = tvDescription.getText().toString();\n int accountId = mAccount.getId();\n String strEvent = tvEvent.getText().toString();\n Event event = null;\n\n if (!strEvent.equals(\"\")) {\n event = mDbHelper.getEventByName(strEvent);\n if (event == null) {\n long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));\n if (eventId != -1) {\n event = mDbHelper.getEvent(eventId);\n }\n }\n }\n\n // Less: Repayment, More: Lend\n if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {\n\n boolean isDebtValid = true;\n if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting\n List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());\n\n Double lend = 0.0, debtCollect = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {\n lend += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {\n debtCollect += debt.getAmount();\n }\n }\n\n if(debtCollect + amount > lend) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));\n }\n\n } // End DebtType() == Category.EnumDebt.LESS\n if(isDebtValid) {\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());\n debt.setCategoryId(mCategory.getId());\n debt.setAmount(amount);\n debt.setPeople(tvPeople.getText().toString());\n\n int debtRow = mDbHelper.updateDebt(debt);\n if(debtRow == 1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } else {\n Debt newDebt = new Debt();\n newDebt.setCategoryId(mCategory.getId());\n newDebt.setTransactionId((int) mTransaction.getId());\n newDebt.setAmount(amount);\n newDebt.setPeople(tvPeople.getText().toString());\n\n long debtId = mDbHelper.createDebt(newDebt);\n if(debtId != -1) {\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));\n cleanup();\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n } else {\n // Revert update\n mDbHelper.updateTransaction(mTransaction);\n ((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));\n }\n } // End create new Debt\n\n } // End Update transaction OK\n } // End isDebtValid\n\n } else { // CATEGORY NORMAL\n Transaction transaction = new Transaction(mTransaction.getId(),\n TransactionEnum.Income.getValue(),\n amount,\n categoryId,\n description,\n 0,\n accountId,\n mCal,\n 0.0,\n \"\",\n event);\n\n int row = mDbHelper.updateTransaction(transaction);\n if (row == 1) { // Update transaction OK\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n // Return to last fragment\n getFragmentManager().popBackStackImmediate();\n }\n }\n\n LogUtils.logLeaveFunction(Tag);\n }",
"void endTransaction();",
"void commitTransaction();",
"public void onSaveButton(View v) {\n\n hasMoney = true;\n\n transactionNotes = findViewById(R.id.transaction_notes);\n final FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();\n final EditText transactionPrice = findViewById(R.id.transaction_price);\n\n\n // check the field of the transaction\n if (dateText.getText().toString().matches(\"\")) {\n return;\n }\n\n if (transactionPrice.getText().toString().matches(\"\")) {\n Toast.makeText(EditTransaction.this, \"Insert a price!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n // delete the unnecessary data\n DocumentReference docRef = db.document(firebaseAuth.getCurrentUser().getUid()).collection(transactionDate).document(transactionID);\n docRef.delete();\n\n // update the totalsum in the DB\n HashMap<String, Double> sum = new HashMap<>();\n sum.put(\"amount\", totalSum - transaction.getAmount());\n db.document(firebaseAuth.getCurrentUser().getUid()).collection(\"Wallet\").document(\"MainWallet\").set(sum);\n\n // in case the transaction was moved to another month\n // we need to insert this transaction to the documents where it belongs\n db.document(firebaseAuth.getCurrentUser().getUid()).collection(\"Wallet\").document(\"MainWallet\").get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n\n if (task.isSuccessful()) {\n\n DocumentSnapshot documentSnapshot = task.getResult();\n Boolean isPosivite = false;\n if (income.get(CategoryText.getText().toString()) != null)\n isPosivite = true;\n\n totalSum = (double) documentSnapshot.getData().get(\"amount\");\n\n // if the transaction is not possible\n // i.e the user does not have enough money\n // then show a little message\n if (totalSum - Double.parseDouble(transactionPrice.getText().toString()) < 0 && !isPosivite) {\n Toast.makeText(EditTransaction.this, \"You are a little poor human\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n // otherweise save the new transaction to the DB\n DocumentReference ref = db\n .document(firebaseAuth.getCurrentUser().getUid()).collection(monthCollection).document();\n\n Map<String, String> transaction = new HashMap<>();\n transaction.put(\"date\", dateText.getText().toString());\n transaction.put(\"price\", transactionPrice.getText().toString());\n transaction.put(\"notes\", transactionNotes.getText().toString());\n Toast.makeText(EditTransaction.this, dateText.getText().toString() + transactionPrice.getText().toString() + transactionNotes.getText().toString(), Toast.LENGTH_SHORT).show();\n\n CategoryText = findViewById(R.id.transaction_select_category);\n String[] dates = dateText.getText().toString().split(\"-\");\n String luna = dates[0], zi = dates[1], an = dates[2];\n\n\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(Integer.toString(i), mnths[i]);\n } else {\n\n months.put(Integer.toString(i), mnths[i]);\n }\n }\n\n Toast.makeText(EditTransaction.this, months.get(luna), Toast.LENGTH_SHORT).show();\n\n\n TransactionDetails transactionDetails = new TransactionDetails(Integer.parseInt(zi), zi, months.get(luna), an, CategoryText.getText().toString(), (Integer) findViewById(R.id.category_image).getTag(), -Double.parseDouble(transactionPrice.getText().toString()), ref.getId());\n\n // daca adaug bani dau cu plus\n if (isPosivite)\n transactionDetails.setAmount(-transactionDetails.getAmount());\n\n ref.set(transactionDetails);\n\n // update totalsum\n HashMap<String, Double> sum = new HashMap<>();\n sum.put(\"amount\", totalSum + transactionDetails.getAmount());\n db.document(firebaseAuth.getCurrentUser().getUid()).collection(\"Wallet\").document(\"MainWallet\").set(sum);\n\n startActivity(new Intent(EditTransaction.this, MainActivity.class));\n\n }\n\n }\n\n }\n });\n }",
"private void saveToDb() {\r\n ContentValues values = new ContentValues();\r\n values.put(DbAdapter.KEY_DATE, mTime);\r\n if (mPayeeText != null && mPayeeText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_PAYEE, mPayeeText.getText().toString());\r\n if (mAmountText != null && mAmountText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_AMOUNT, mAmountText.getText().toString());\r\n if (mCategoryText != null && mCategoryText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_CATEGORY, mCategoryText.getText().toString());\r\n if (mMemoText != null && mMemoText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_MEMO, mMemoText.getText().toString());\r\n if (mTagText != null && mTagText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_TAG, mTagText.getText().toString());\r\n\r\n \tif (Utils.validate(values)) {\r\n \t\tmDbHelper.open();\r\n \t\tif (mRowId == null) {\r\n \t\t\tlong id = mDbHelper.create(values);\r\n \t\t\tif (id > 0) {\r\n \t\t\t\tmRowId = id;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmDbHelper.update(mRowId, values);\r\n \t\t}\r\n \t\tmDbHelper.close();\r\n \t}\r\n\t}",
"public void commitTransaction() {\n\r\n\t}",
"@Override\n public void commitTx() {\n \n }",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"private void submitTransaction() {\n String amountGiven = amount.getText().toString();\n double decimalAmount = Double.parseDouble(amountGiven);\n amountGiven = String.format(\"%.2f\", decimalAmount);\n String sourceGiven = source.getText().toString();\n String descriptionGiven = description.getText().toString();\n String clientId = mAuth.getCurrentUser().getUid();\n String earnedOrSpent = \"\";\n\n if(amountGiven.isEmpty()){\n amount.setError(\"Please provide the amount\");\n amount.requestFocus();\n return;\n }\n\n if(sourceGiven.isEmpty()){\n source.setError(\"Please provide the source\");\n source.requestFocus();\n return;\n }\n\n if(descriptionGiven.isEmpty()){\n descriptionGiven = \"\";\n }\n\n int selectedRadioButton = radioGroup.getCheckedRadioButtonId();\n\n if(selectedRadioButton == R.id.radioSpending){\n Log.d(\"NewTransactionActivity\", \"Clicked on Spending\");\n earnedOrSpent = \"Spent\";\n }\n else{\n Log.d(\"NewTransactionActivity\", \"Clicked on Earning\");\n earnedOrSpent = \"Earned\";\n }\n\n storeTransactionToDatabase(clientId, earnedOrSpent, amountGiven, sourceGiven, descriptionGiven);\n\n }",
"public void logTransactionEnd();",
"void commit(Transaction transaction);",
"public void endTransaction() {\r\n Receipt salesReceipt = new Receipt();\r\n salesReceipt.createReceipt(customer, lineItems);\r\n }",
"public void endTransaction(int transactionID);",
"@Override\n\tprotected void executeTransaction(int cents) {\n\t}",
"public void onEditTransaction(Transaction transaction) {\n\t}",
"@Override\n\tpublic void tranfermoney() {\n\t\tSystem.out.println(\"hsbc tranfermoney\");\n\t}",
"public void updateTransaction(Transaction trans);",
"public void completeOrderTransaction(Transaction trans){\n }",
"public void commit() {\n if( dirty ) {\n value = textField.getText();\n notifyTextValueChanged();\n }\n dirty = false;\n }",
"public static void finishTransaction()\n {\n if (currentSession().getTransaction().isActive())\n {\n try\n {\n System.out.println(\"INFO: Transaction not null in Finish Transaction\");\n Thread.dumpStack();\n rollbackTransaction();\n// throw new UAPersistenceException(\"Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back.\");\n } catch (UAPersistenceException e)\n {\n System.out.println(\"Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation\");\n }\n }\n }",
"private void deleteTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n boolean isDebtValid = true;\n if(mDbHelper.getCategory(mTransaction.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n List<Debt> debts = mDbHelper.getAllDebts();\n\n Double repayment = 0.0, borrow = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) { // Repayment\n repayment += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n borrow += debt.getAmount();\n }\n }\n\n if(borrow - mTransaction.getAmount() < repayment) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_delete_invalid));\n }\n }\n\n if(isDebtValid) {\n mDbHelper.deleteTransaction(mTransaction.getId());\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n\n cleanup();\n\n // Return to FragmentListTransaction\n getFragmentManager().popBackStackImmediate();\n LogUtils.logLeaveFunction(Tag);\n }\n }",
"@Override\n\tpublic void onTransactionCanceled() {\n\t\tToast.makeText(getActivity(), R.string.ibs_error_billing_transactionCancelled, Toast.LENGTH_SHORT).show();\n\t}",
"public void onTransactionAdded(TransactionEntry transactionEntry);",
"public void commitTransaction() throws TransactionException {\n\t\t\r\n\t}",
"Transaction save(Transaction transaction);",
"private void transferToBankAccount() {\n ArrayList<Coin> selectedCoins;\n String collection;\n mGoldAmount = 0.0;\n mBankTransferTotal = 0;\n\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n selectedCoins = getSelectedCoins(Data.COLLECTED);\n collection = Data.COLLECTED;\n // Impose 25 coin limit\n if (selectedCoins.size() > (25 - Data.getCollectedTransferred())) {\n displayToast(getString(R.string.msg_25_coin_limit));\n return;\n }\n } else {\n selectedCoins = getSelectedCoins(Data.RECEIVED);\n collection = Data.RECEIVED;\n }\n\n if (selectedCoins.size() == 0) {\n displayToast(getString(R.string.msg_please_select_coins));\n return;\n }\n\n // Transfer selected coins to bank account\n mBankTransferInProgress = true;\n mProgressBar.setVisibility(View.VISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer in progress...\");\n\n for (Coin c : selectedCoins) {\n double value = c.getValue();\n String currency = c.getCurrency();\n double exchange = value * mExchangeRates.get(currency);\n mGoldAmount += exchange;\n Data.removeCoinFromCollection(c, collection, new OnEventListener<String>() {\n\n @Override\n public void onSuccess(String string) {\n mBankTransferTotal++;\n Log.d(TAG, \"[transferToBankAccount] number processed: \" + mBankTransferTotal);\n // If all coins have been processed\n if (mBankTransferTotal == selectedCoins.size()) {\n\n // Get current date\n LocalDateTime now = LocalDateTime.now();\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\n \"yyyy/MM/dd\", Locale.ENGLISH);\n String date = format.format(now);\n\n // Add transaction to firebase\n Transaction transaction = new Transaction(mGoldAmount, date);\n Data.addTransaction(transaction, mBankTransferTotal, collection);\n\n // Clear transfer flag\n mBankTransferInProgress = false;\n\n // Update the view\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n updateCollectedView();\n } else {\n updateReceivedView();\n }\n mProgressBar.setVisibility(View.INVISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer complete\");\n displayToast(getString(R.string.msg_transfer_complete));\n }\n }\n\n @Override\n public void onFailure(Exception e) {\n mBankTransferTotal++;\n // If all coins have been processed\n if (mBankTransferTotal == selectedCoins.size()) {\n\n // Clear transfer flag\n mBankTransferInProgress = false;\n mProgressBar.setVisibility(View.INVISIBLE);\n Log.d(TAG, \"[transferToBankAccount] transfer failed\");\n\n // Update the view\n if (mRecyclerViewCol.getVisibility() == View.VISIBLE) {\n updateCollectedView();\n } else {\n updateReceivedView();\n }\n\n } else {\n displayToast(getString(R.string.msg_failed_to_transfer) + c.getCurrency()\n + \" worth \" + c.getValue());\n }\n Log.d(TAG, \"[sendCoins] failed to transfer coin: \" + c.getId());\n }\n });\n }\n }",
"void sendTransactionToServer()\n \t{\n \t\t//json + sql magic\n \t}",
"@Override\n\tpublic void cancelTransaction() {\n\t\t\n\t}",
"private void handleTransaction() throws Exception {\r\n\t\tString receiver;\r\n\t\tString amount;\r\n\t\tMessage sendTransaction = new Message().addData(\"task\", \"transaction\").addData(\"message\", \"do_transaction\");\r\n\t\tMessage response;\r\n\r\n\t\tthis.connectionData.getTerminal().write(\"enter receiver\");\r\n\t\treceiver = this.connectionData.getTerminal().read();\r\n\r\n\t\t// tries until a amount is typed that's between 1 and 10 (inclusive)\r\n\t\tdo {\r\n\t\t\tthis.connectionData.getTerminal().write(\"enter amount (1-10)\");\r\n\t\t\tamount = this.connectionData.getTerminal().read();\r\n\t\t} while (!amount.matches(\"[0-9]|10\"));\r\n\r\n\t\t// does the transaction\r\n\t\tsendTransaction.addData(\"receiver\", this.connectionData.getAes().encode(receiver)).addData(\"amount\",\r\n\t\t\t\tthis.connectionData.getAes().encode(amount));\r\n\r\n\t\tthis.connectionData.getConnection().write(sendTransaction);\r\n\r\n\t\tresponse = this.connectionData.getConnection().read();\r\n\t\tif (response.getData(\"message\").equals(\"success\")) {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction done\");\r\n\t\t} else {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction failed. entered correct username?\");\r\n\t\t}\r\n\t}",
"void commit( boolean onSave );",
"public void rollbackTx()\n\n{\n\n}",
"private void updateTransactionFields() {\n if (transaction == null) {\n descriptionText.setText(\"\");\n executionDateButton.setText(dateFormat.format(new Date()));\n executionTimeButton.setText(timeFormat.format(new Date()));\n valueText.setText(\"\");\n valueSignToggle.setNegative();\n addButton.setText(R.string.add);\n // If we are editing a node, fill fields with current information\n } else {\n try {\n transaction.load();\n descriptionText.setText(transaction.getDescription());\n executionDateButton.setText(dateFormat.format(\n transaction.getExecutionDate()));\n executionTimeButton.setText(timeFormat.format(\n transaction.getExecutionDate()));\n BigDecimal value = transaction.getValue();\n valueText.setText(value.abs().toString());\n valueSignToggle.setToNumberSign(value);\n addButton.setText(R.string.edit);\n } catch (DatabaseException e) {\n Log.e(\"TMM\", \"Error loading transaction\", e);\n }\n }\n \n if (currentMoneyNode != null) {\n currencyTextView.setText(currentMoneyNode.getCurrency());\n }\n \n updateCategoryFields();\n updateTransferFields();\n }",
"public void recordClosingQuote(Quote closingQuote_, MarketDataSession marketDataSession_);",
"public void returnAct() {\r\n\t\t\r\n\t\tif(createWine() != null) {\r\n\t\t\t\r\n\t\t\ttext_amount =String.valueOf( cus.returnTransaction(createWine()));\r\n\t\t\twine_name.setText(name.getText());\r\n\t\t\tamount.setText(\" £ \" + text_amount + \" \" );\r\n\t\t\tbalance.setText(\" £ \" + isCredit((double)cus.getAccount() / 100.00) + \" \");\r\n\t\t\t\r\n\t\t\t//reset all textfield\r\n\t\t\tname.setText(null);\r\n\t\t\tquantity.setText(null);\r\n\t\t\tprice.setText(null);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tname.setText(null);\r\n\t\t\tquantity.setText(null);\r\n\t\t\tprice.setText(null);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void addTrans(View v)\r\n {\r\n Log.d(TAG, \"Add transaction button clicked!\");\r\n\r\n EditText editLabel = (EditText) findViewById(R.id.edit_label);\r\n String label = (editLabel == null)? \"\" : editLabel.getText().toString();\r\n\r\n EditText editAmount = (EditText) findViewById(R.id.edit_amount);\r\n double amount = ((editAmount == null) || (editAmount.getText().toString().equals(\"\")))? 0 :\r\n Double.valueOf(editAmount.getText().toString());\r\n\r\n CheckBox chkBill = (CheckBox) findViewById(R.id.chk_bill);\r\n CheckBox chkLoan = (CheckBox) findViewById(R.id.chk_loan);\r\n String special = \"\";\r\n special = (chkBill == null || !chkBill.isChecked())? special : \"Bill\";\r\n special = (chkLoan == null || !chkLoan.isChecked())? special : \"Loan\";\r\n\r\n\r\n EditText editTag = (EditText) findViewById(R.id.edit_tag);\r\n String tag = (editTag == null)? \"\" : editTag.getText().toString();\r\n\r\n Transaction t = new Transaction(false, amount, label, special, tag);\r\n\r\n Week weekAddedTo = BasicFinancialMainActivity.weeks\r\n .get(BasicFinancialMainActivity.currentWeekIndex);\r\n weekAddedTo.addTrans(t);\r\n BasicFinancialMainActivity.weeks.set(BasicFinancialMainActivity.currentWeekIndex, weekAddedTo);\r\n BasicFinancialMainActivity.saveWeeksData();\r\n\r\n startActivity(new Intent(this, BasicFinancialMainActivity.class));\r\n }",
"@Override\n public void afterTextChanged(Editable editable) {\n getCurrentSavedDatabaseValues();\n try {\n int currentCounterValue = Integer.parseInt(editable.toString().trim());\n float currentPriceValue = Float.parseFloat(price.getText().toString().trim());\n //float PriceValue = 0;\n /*int CounterValue = 0;\n String CategoryName = \"\";\n\n Cursor cursor = sqLiteDatabase.rawQuery(sqlQuery, null);\n while (cursor.moveToNext()) {\n PriceValue = cursor.getFloat(cursor.getColumnIndex(sqLiteHelper.KEY_Price));\n CounterValue = cursor.getInt(cursor.getColumnIndex(sqLiteHelper.KEY_Counter));\n CategoryName = cursor.getString(cursor.getColumnIndex(sqLiteHelper.Category_Name));\n }*/\n\n if (currentPriceValue != CurrentSavedPriceValue || currentCounterValue != CurrentSavedCounterValue\n || !CategorySelected.equals(CurrentSavedCategoryName)) {\n\n UpdateData.setEnabled(true);\n\n } else {\n UpdateData.setEnabled(false);\n }\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n catch (NullPointerException e)\n {\n e.printStackTrace();\n }\n\n }",
"@Override\n public void commit() throws SQLException {\n if (isTransActionAlive() && !getTransaction().getStatus().isOneOf(TransactionStatus.MARKED_ROLLBACK,\n TransactionStatus.ROLLING_BACK)) {\n // Flush synchronizes the database with in-memory objects in Session (and frees up that memory)\n getSession().flush();\n // Commit those results to the database & ends the Transaction\n getTransaction().commit();\n }\n }",
"private void saveState() {\r\n \tSharedPreferences settings = getSharedPreferences(TEMP, 0);\r\n \tEditor editor = settings.edit();\r\n \tif (mRowId != null)\r\n \t\teditor.putLong(DbAdapter.KEY_ROWID, mRowId);\r\n \teditor.putLong(DbAdapter.KEY_DATE, mTime);\r\n \teditor.putString(DbAdapter.KEY_PAYEE, mPayeeText != null && \r\n \t\t\tmPayeeText.getText() != null ? mPayeeText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_AMOUNT, mAmountText != null && \r\n \t\t\tmAmountText.getText() != null ? mAmountText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_CATEGORY, mCategoryText != null && \r\n \t\t\tmCategoryText.getText() != null ? mCategoryText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_MEMO, mMemoText != null && \r\n \t\t\tmMemoText.getText() != null ? mMemoText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_TAG, mTagText != null && \r\n \t\t\tmTagText.getText() != null ? mTagText.getText().toString() : null);\r\n \teditor.commit();\r\n }",
"private void storeTransactionToDatabase(final String clientId, final String earnedOrSpent, final String amountGiven, String sourceGiven, String descriptionGiven) {\n Transaction transaction = new Transaction(clientId, earnedOrSpent, amountGiven, sourceGiven, descriptionGiven, String.valueOf(date.getTime()));\n try {\n String transactionId = UUID.randomUUID().toString();\n DatabaseReference database = FirebaseDatabase.getInstance().getReference(\"Transactions/\" + transactionId);\n database.setValue(transaction).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n updateCurrentBalance(earnedOrSpent, clientId, amountGiven);\n Log.d(\"NewTransactionActivity\", \"Successfully added Transaction to Database\");\n } else {\n Log.d(\"NewTransactionActivity\", \"Failed to add Transaction to Database\");\n }\n }\n });\n }catch(Exception e){\n Log.d(\"NewTransactionActivity\", e.toString());\n }\n }",
"public void UpdateTransaction() {\n\t\tgetUsername();\n\t\tcol_transactionID.setCellValueFactory(new PropertyValueFactory<Account, Integer>(\"transactionID\"));\n\t\tcol_date.setCellValueFactory(new PropertyValueFactory<Account, Date>(\"date\"));\n\t\tcol_description.setCellValueFactory(new PropertyValueFactory<Account, String>(\"description\"));\n\t\tcol_category.setCellValueFactory(new PropertyValueFactory<Account, String>(\"category\"));\n\t\tcol_amount.setCellValueFactory(new PropertyValueFactory<Account, Double>(\"amount\"));\n\t\tmySqlCon.setUsername(username);\n\t\tlists = mySqlCon.getAccountData();\n\t\ttableTransactions.setItems(lists);\n\t}",
"void setTransactionSuccessful();",
"@Override\n\tpublic void salvar() {\n\t\t\n\t\tPedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\n\t\tPedidoCompra.setAtivo(true);\n//\t\tPedidoCompra.setNome(nome.getText());\n\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\tPedidoCompra.setSaldoinicial(\"0.00\");\n\t\t\n\t\tPedidoCompra.setData(new Date());\n\t\tPedidoCompra.setIspago(false);\n\t\tPedidoCompra.setData_criacao(new Date());\n\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\n\t\tgetservice().save(PedidoCompra);\n\t\tsaveAlert(PedidoCompra);\n\t\tclearFields();\n\t\tdesligarLuz();\n\t\tloadEntityDetails();\n\t\tatualizar.setDisable(true);\n\t\tsalvar.setDisable(false);\n\t\t\n\t\tsuper.salvar();\n\t}",
"private void mSaveBillData(int TenderType) { // TenderType:\r\n // 1=PayCash\r\n // 2=PayBill\r\n\r\n // Insert all bill items to database\r\n InsertBillItems();\r\n\r\n // Insert bill details to database\r\n InsertBillDetail(TenderType);\r\n\r\n updateMeteringData();\r\n\r\n /*if (isPrintBill) {\r\n // Print bill\r\n PrintBill();\r\n }*/\r\n }",
"@Override\n public void afterTextChanged(Editable theWatchedText) {\n unitIdChanged = theWatchedText.toString();\n // deal2.getBranchName();\n SessionData.getInstance().setBname(unitIdChanged);\n\n// if (session == 0) {\n//\n// new AsyncDealerBranchFiltter().execute();\n// } else if (session == 1) {\n// new AsyncDealerBranchFiltter().execute();\n//\n// }\n\n }",
"@Override\n\tpublic void processTransaction(Transaction transactionObject) {\n\t\t\n\t\ttrasactionList.addLast(transactionObject);\n\t\t\n\t\tif ( transactionObject.getTransactionType() == 'C'){\n\t\t\t\n\t\t\tbalance -= transactionObject.getTransactionAmount(); \n\t\t\t\n\t\t}\n\t\t\n\t\telse if ( transactionObject.getTransactionType() == 'D'){\n\t\t\t\n\t\t\tbalance += transactionObject.getTransactionAmount(); \n\t\t}\n\t}",
"public void save(Currency currency) {\n startTransaction();\n manager.persist(currency);\n endTransaction();\n }",
"public void commit(){\n \n }",
"public void commit();",
"private void release() {\n int index = claimClientNameCombobox.getSelectionModel().getSelectedIndex();\n String lastNameInput = clientName.get(index).getName();\n setSelectedJobID(clientName.get(index).getJobID());\n\n// Regular expression that splits the name into last name and first name by removing the punctuation.\n// Documentation reference: https://docs.oracle.com/javase/8/docs/api/\n String[] lastName = lastNameInput.split(\"[\\\\p{P}{1}]\");\n Double amountPaidBefore = 0.0, amountPaidCurrent = 0.0;\n\n try {\n amountPaidCurrent = Double.parseDouble(amountPaidTextfield.getText());\n\n } catch (NumberFormatException e) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(\"Invalid Input\");\n alert.setContentText(\"Please settle your balance first before releasing your order\");\n alert.showAndWait();\n return;\n }\n\n StringBuilder stringBuilder = new StringBuilder();\n Formatter formatter = new Formatter(stringBuilder);\n\n// use trim method to remove leading whitespace from the split method earlier\n formatter.format(\"SELECT transaction_records.amountPaid FROM transaction_records JOIN customer_records ON transaction_records.customerID = customer_records.customerID WHERE customer_records.lastname='%s' AND customer_records.firstname='%s' AND transaction_records.status='for claiming' AND transaction_records.jobID=%d\", lastName[0].trim(), lastName[1].trim(), getSelectedJobID());\n\n try {\n rs = conn.select(stringBuilder.toString());\n\n while (rs.next()) {\n amountPaidBefore = rs.getDouble(\"amountPaid\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n Double totalAmountPaid = amountPaidBefore + amountPaidCurrent;\n\n stringBuilder = new StringBuilder();\n formatter = new Formatter(stringBuilder);\n formatter.format(\"UPDATE transaction_records JOIN customer_records ON transaction_records.customerID=customer_records.customerID SET transaction_records.status='claimed', transaction_records.amountPaid=%f, transaction_records.balance = 0 WHERE customer_records.lastname='%s' AND customer_records.firstname='%s' AND transaction_records.status='for claiming' AND transaction_records.jobID=%d\", totalAmountPaid, lastName[0].trim(), lastName[1].trim(), getSelectedJobID());\n\n\n try {\n conn.update(stringBuilder.toString());\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n homeController.fillObservableList();\n\n orderInformationArea.setText(\"Job successfully released...\");\n orderInformationArea.appendText(\"\\nTransaction saved...\");\n remainingBalance = 0;\n }",
"void commit() {\n }",
"public void execute() {\r\n int depositAmount = this.promptDepositAmount(); // amount in cents\r\n if (depositAmount != CANCELED) {\r\n screen.displayMessage(\"\\nPlease insert a deposit envelope containing: \");\r\n screen.displayDollarAmount(depositAmount / 100);\r\n screen.displayMessageLine(\".\");\r\n\r\n if (depositSlot.isEnvelopeReceived()) {\r\n screen.displayMessageLine(\"\\nYour envelope has been received.\");\r\n screen.displayMessageLine(\"The money just deposited will not be available until we verify \" +\r\n \"the amount of any enclosed cash and your checks clear.\");\r\n bankDatabase.credit(this.accountNumber, depositAmount / 100);\r\n } else {\r\n screen.displayMessageLine (\"\\nYou did not insert an envelope. The ATM has canceled your transaction.\");\r\n }\r\n } else {\r\n screen.displayMessageLine( \"\\nCanceling transaction...\");\r\n }\r\n }",
"@Override\n public void rollbackTx() {\n \n }",
"@Override\n public void afterTextChanged(Editable editable) {\n getCurrentSavedDatabaseValues();\n try {\n int currentCounterValue = Integer.parseInt(Counter.getText().toString().trim());\n float currentPriceValue = Float.parseFloat(editable.toString().trim());\n /* float PriceValue = 0;\n int CounterValue = 0;\n String CategoryName = \"\";\n\n Cursor cursor = sqLiteDatabase.rawQuery(sqlQuery, null);\n while (cursor.moveToNext()) {\n PriceValue = cursor.getFloat(cursor.getColumnIndex(sqLiteHelper.KEY_Price));\n CounterValue = cursor.getInt(cursor.getColumnIndex(sqLiteHelper.KEY_Counter));\n CategoryName = cursor.getString(cursor.getColumnIndex(sqLiteHelper.Category_Name));\n }*/\n /*try\n {*/\n if (currentPriceValue != CurrentSavedPriceValue || currentCounterValue != CurrentSavedCounterValue\n || !CategorySelected.equals(CurrentSavedCategoryName)) {\n\n UpdateData.setEnabled(true);\n\n } else {\n UpdateData.setEnabled(false);\n }\n }\n catch (NumberFormatException e)\n {\n e.printStackTrace();\n }\n catch (NullPointerException e)\n {\n e.printStackTrace();\n }\n }",
"void rollbackTransaction();",
"public void CommitTempData(View view)\n {\n //Data validation\n String minTempField = ((EditText) findViewById(R.id.temperature_minTemp_EditText)).getText().toString();\n String maxTempField = ((EditText) findViewById(R.id.temperature_maxTemp_EditText)).getText().toString();\n\n if((!minTempField.equals(\"\"))&&(!maxTempField.equals(\"\"))) {\n //Creates connection\n String[] connectionData = new String[5];\n connectionData[0] = getResources().getString(R.string.server_set_temp_data);\n connectionData[1] = \"?DeviceCode=\" + deviceCode;\n connectionData[2] = \"&MinSet=\" + minTempField;\n connectionData[3] = \"&MaxSet=\" + maxTempField;\n connectionData[4]=\"&CurrentTemp=\"+Float.toString(currentTemp);\n new SetTempData(this).execute(connectionData);\n }\n else\n {\n Toast.makeText(this,getResources().getString(R.string.temp_empty_field),Toast.LENGTH_SHORT).show();\n }\n }",
"public void saveTemplate(String toastText) {\n SimpleDateFormat simpleDateFormatY = new SimpleDateFormat(\"yyyy\");\n SimpleDateFormat simpleDateFormatM = new SimpleDateFormat(\"MM\");\n SimpleDateFormat simpleDateFormatD = new SimpleDateFormat(\"dd\");\n SimpleDateFormat simpleDateFormatH = new SimpleDateFormat(\"HH\");\n SimpleDateFormat simpleDateFormatMin = new SimpleDateFormat(\"mm\");\n SimpleDateFormat simpleDateFormatS = new SimpleDateFormat(\"ss\");\n String year = simpleDateFormatY.format(System.currentTimeMillis());\n String month = simpleDateFormatM.format(System.currentTimeMillis());\n String day = simpleDateFormatD.format(System.currentTimeMillis());\n String hour = simpleDateFormatH.format(System.currentTimeMillis());\n String minute = simpleDateFormatMin.format(System.currentTimeMillis());\n String second = simpleDateFormatS.format(System.currentTimeMillis());\n mDatabaseManager.addDataInTemplateTable(\n new TemplateEntity(mTemplateId, mOrganizationId, mCurrencyShortForm,\n mStartValue, mDirection, mAction, year + \"-\" + month + \"-\" + day + \" \" + hour + \":\" + minute + \";\" + second)\n );\n mBaseActivity.showToast(toastText);\n isSaved = true;\n switch (mRootParameter) {\n case ConstantsManager.CONVERTER_OPEN_FROM_TEMPLATES:\n case ConstantsManager.CONVERTER_OPEN_FROM_CURRENCY:\n case ConstantsManager.CONVERTER_OPEN_FROM_ORGANIZATION:\n getActivity().setResult(ConstantsManager.CONVERTER_ACTIVITY_RESULT_CODE_CHANGED);\n if (isFinish) {\n getActivity().finish();\n }\n break;\n }\n }",
"void confirmTrans(ITransaction trans);",
"public void closeTransaction(){\n\t\ttr.rollback();\n\t\ttr = null;\n\t}",
"public void onSaveClicked(View view) {\n\n if (mInterest != 0.0f) {\n\n ContentValues values = new ContentValues();\n values.put(SavingsItemEntry.COLUMN_NAME_BANK_NAME, bankInput.getText().toString());\n values.put(SavingsItemEntry.COLUMN_NAME_AMOUNT, mAmount);\n values.put(SavingsItemEntry.COLUMN_NAME_YIELD, mYield);\n values.put(SavingsItemEntry.COLUMN_NAME_START_DATE, mStartDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_END_DATE, mEndDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_INTEREST, mInterest);\n\n if (mEditMode){\n //Update the data into database by ContentProvider\n getContentResolver().update(SavingsContentProvider.CONTENT_URI, values,\n SavingsItemEntry._ID + \"=\" + mSavingsBean.getId(), null);\n Log.d(Constants.LOG_TAG, \"Edit mode, updated existing savings item: \" + mSavingsBean.getId());\n }else {\n // Save the data into database by ContentProvider\n getContentResolver().insert(\n SavingsContentProvider.CONTENT_URI,\n values\n );\n }\n // Go back to dashboard\n //Intent intent = new Intent(this, DashboardActivity.class);\n //startActivity(intent);\n Utils.gotoDashBoard(this);\n finish();\n } else {\n Toast.makeText(this, R.string.missing_savings_information, Toast.LENGTH_LONG).show();\n }\n\n }",
"protected void commit() {\n \t\t\tif (fStart < 0) {\n \t\t\t\tif (fDocumentUndoManager.fFoldingIntoCompoundChange) {\n \t\t\t\t\tfDocumentUndoManager.fCurrent= createCurrent();\n \t\t\t\t} else {\n \t\t\t\t\treinitialize();\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tupdateTextChange();\n \t\t\t\tfDocumentUndoManager.fCurrent= createCurrent();\n \t\t\t}\n \t\t\tfDocumentUndoManager.resetProcessChangeState();\n \t\t}",
"public void transact() {\n\t\truPay.transact();\n\n\t}",
"public void commit() {\n doCommit();\n }",
"protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}",
"public void commit() {\n }",
"void commit();",
"void commit();",
"private void commitText(String s){\n if (inputConn != null)\n inputConn.commitText(s, 1);\n }",
"@Override\n public void commitTransaction() {\n try {\n connection.commit();\n } catch (SQLException e) {\n LOGGER.error(\"Can't commit transaction \", e);\n } finally {\n closeConnection();\n }\n }",
"@Override\n public void commit() {\n }",
"void setEditTransactionCurrency(String currency);",
"public void commitTransaction() {\n final EntityTransaction entityTransaction = em.getTransaction();\n if (!entityTransaction.isActive()) {\n entityTransaction.begin();\n }\n entityTransaction.commit();\n }",
"public void finishDemoActionTransaction() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.setTransactionSuccessful();\n db.endTransaction();\n db.close();\n }",
"public void fireAfterTransaction(final TransactionContext context){\r\n\t\tnotify(new ListenerCaller(){\r\n\t\t\tpublic void call(DBListener listener){\r\n\t\t\t\tlistener.afterTransaction(context);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }",
"@Override\n public void doAfterTransaction(int result) {\n\n }",
"public void commitChanges()\n {\n }",
"public static void establecerTransaccion() throws SQLException {\n con.commit();\n }",
"@Override\n\tpublic void commit() {\n\n\t}",
"@Override\r\n\t\tpublic void commit() throws SQLException {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tbinder.commit();\n\t\t\t\t\t\n\t\t\t\t\tconexion = new Conexion();\n\t\t\t\t\tConnection con = conexion.getConnection();\n\t\t\t\t\tStatement statement = con.createStatement();\n\t\t\t\t\ttxTerm.setValue(txTerm.getValue().replace(\"'\", \"´\"));\n\t\t\t\t\t\n\t\t\t\t\tString cadena;\n\t\t\t\t\tif ( acceso.equals(\"NEW\" )) {\n\t\t\t\t\t\tcadena= \"INSERT INTO TERMANDCONDITIONS ( CONDICIONES, IDTIPO, ACTIVO ) VALUES (\"\n\t\t\t\t\t\t\t+ \"'\" + txTerm.getValue().toString() + \"',\"\n\t\t\t\t\t\t\t+ \"'\" + cbType.getValue() + \"',\"\n\t\t\t\t\t\t\t+ cbEnabled.getValue()\n\t\t\t\t\t\t\t+ \")\" ;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tcadena= \"UPDATE TERMANDCONDITIONS \"\n\t\t\t\t\t\t\t\t+ \"SET CONDICIONES = '\" + txTerm.getValue().toString() + \"',\"\n\t\t\t\t\t\t\t\t+ \"IDTIPO = '\" + cbType.getValue() + \"',\"\n\t\t\t\t\t\t\t\t+ \"ACTIVO = \" + cbEnabled.getValue()\n\t\t\t\t\t\t\t\t+ \" WHERE IDTERM = \" + regterm.getItemProperty(\"IdTerm\").getValue();\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(cadena);\n\t\t\t\t\tstatement.executeUpdate(cadena);\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tcon.close();\n\t\t\t\t\t\n\t\t\t\t\tnew Notification(\"Process OK\",\n\t\t\t\t\t\t\t\"Record \" + acceso,\n\t\t\t\t\t\t\tNotification.Type.TRAY_NOTIFICATION, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tVenEditarTerms.this.close();\n\t\t\t\t\tpantallaTerms.buscar.click();\n\t\t\t\t} catch (CommitException e) {\n\n\t\t\t\t\t\n\t\t\t\t\tString mensajes = \"\";\n\t\t for (Field<?> field: binder.getFields()) {\n\t\t ErrorMessage errMsg = ((AbstractField<?>)field).getErrorMessage();\n\t\t \n\t\t if (errMsg != null) {\n\t\t \t//System.out.println(\"Error:\"+errMsg.getFormattedHtmlMessage());\n\t\t \tmensajes+=errMsg.getFormattedHtmlMessage();\n\t\t }\n\t\t }\n\t\t \n\t\t\t\t\tnew Notification(\"Errors detected\",\n\t\t\t\t\t\t\tmensajes,\n\t\t\t\t\t\t\tNotification.Type.TRAY_NOTIFICATION, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n \n\t\t } catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t \te.printStackTrace();\n\t\t \tnew Notification(\"Got an exception!\",\n\t\t\t\t\t\t\te.getMessage(),\n\t\t\t\t\t\t\tNotification.Type.ERROR_MESSAGE, true)\n\t\t\t\t\t\t\t.show(Page.getCurrent());\n\t\t \t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public void forceCommitTx()\n{\n}",
"private void saveReceipt() {\n\n\t\tFinalHttp finalHttp = new FinalHttp();\n\t\tGetServerUrl.addHeaders(finalHttp,true);\n\t\tAjaxParams params = new AjaxParams();\n\t\tparams.put(\"id\", receiptId);\n\t\tparams.put(\"receiptDate\", tv_canshu.getText().toString());\n\t\tparams.put(\"orderId\", orderId);\n\t\tparams.put(\"count\", et_num.getText().toString());\n\t\tparams.put(\"remarks\", et_remark.getText().toString());\n\t\tparams.put(\"receiptAddressId\", receiptAddressId);\n\t\tfinalHttp.post(GetServerUrl.getUrl() + \"admin/buyer/order/saveReceipt\",\n\t\t\t\tparams, new AjaxCallBack<Object>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Object t) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject jsonObject = new JSONObject(t.toString());\n\t\t\t\t\t\t\tString code = JsonGetInfo.getJsonString(jsonObject,\n\t\t\t\t\t\t\t\t\t\"code\");\n\t\t\t\t\t\t\tString msg = JsonGetInfo.getJsonString(jsonObject,\n\t\t\t\t\t\t\t\t\t\"msg\");\n\t\t\t\t\t\t\tif (!\"\".equals(msg)) {\n\t\t\t\t\t\t\t\tToast.makeText(SaveReceipptActivity.this, msg,\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (\"1\".equals(code)) {\n\t\t\t\t\t\t\t\tsetResult(1);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsuper.onSuccess(t);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable t, int errorNo,\n\t\t\t\t\t\t\tString strMsg) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(SaveReceipptActivity.this,\n\t\t\t\t\t\t\t\tR.string.error_net, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsuper.onFailure(t, errorNo, strMsg);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t}",
"public CleaningTransaction update(CleaningTransaction cleaningTransaction);",
"@Override\n public void saveTransactionDetails(TransactionInfo transactionInfo) {\n repositoryService.saveTransactionDetails(transactionInfo);\n update(\"transactions\", String.class, TransactionInfo.class, LocalDateTime.now().toString(), transactionInfo);\n }",
"private void mStoreCustomerPassbookData(int iCustId, double dblCustCreditAmount, String strBillNo) {\r\n Cursor cursorCustomerData = null;\r\n try {\r\n cursorCustomerData = db.getCustomer(iCustId);\r\n if (cursorCustomerData != null && cursorCustomerData.getCount() > 0) {\r\n if (cursorCustomerData.moveToFirst()) {\r\n //if (cursorCustomerData.getDouble(cursorCustomerData.getColumnIndex(DatabaseHandler.KEY_OpeningBalance)) > 0) {\r\n CustomerPassbookBean customerPassbookBean = new CustomerPassbookBean();\r\n customerPassbookBean.setStrCustomerID(cursorCustomerData.getInt(cursorCustomerData.getColumnIndex(DatabaseHandler.KEY_CustId)) + \"\");\r\n customerPassbookBean.setStrName(cursorCustomerData.getString(cursorCustomerData.getColumnIndex(DatabaseHandler.KEY_CustName)));\r\n customerPassbookBean.setStrPhoneNo(cursorCustomerData.getString(cursorCustomerData.getColumnIndex(DatabaseHandler.KEY_CustContactNumber)));\r\n customerPassbookBean.setDblOpeningBalance(0);\r\n customerPassbookBean.setDblDepositAmount(0);\r\n customerPassbookBean.setDblDepositAmount(dblCustCreditAmount);\r\n //double dblTotalAmountFromCustPassbookDB = getCustomerPassbookAvailableAmount(customerPassbookBean.getStrCustomerID(), customerPassbookBean.getStrPhoneNo());\r\n double dblTotalDepositAmount = getCustomerPassbookTotalDepositAndOpeningAmount(customerPassbookBean.getStrCustomerID(), customerPassbookBean.getStrPhoneNo());\r\n double dblTotalCrdeitAmount = getCustomerPassbookTotalCreditAmount(customerPassbookBean.getStrCustomerID(), customerPassbookBean.getStrPhoneNo());\r\n //double dblTotalAmountFinal = (Double.parseDouble(String.format(\"%.2f\", dblCustCreditAmount)) + Math.abs(dblTotalAmountFromCustPassbookDB));\r\n double dblTotalAmountFinal;\r\n dblTotalAmountFinal = dblTotalCrdeitAmount - (dblTotalDepositAmount + customerPassbookBean.getDblDepositAmount());\r\n customerPassbookBean.setDblTotalAmount(Double.parseDouble(String.format(\"%.2f\", (dblTotalAmountFinal))));\r\n if (trainingMode)\r\n customerPassbookBean.setStrDescription(Constants.BILL_NO + \" : TM\" + strBillNo);\r\n else\r\n customerPassbookBean.setStrDescription(Constants.BILL_NO + \" : \" + strBillNo);\r\n\r\n Date date1 = new Date();\r\n try {\r\n date1 = new SimpleDateFormat(\"dd-MM-yyyy\").parse(BUSINESS_DATE);\r\n } catch (Exception e) {\r\n Log.e(TAG, \"\" + e);\r\n Log.e(TAG, \"\" + e);\r\n }\r\n customerPassbookBean.setStrDate(\"\" + date1.getTime());\r\n customerPassbookBean.setDblCreditAmount(0);\r\n customerPassbookBean.setDblPettyCashTransaction(dblCustCreditAmount);\r\n customerPassbookBean.setDblRewardPoints(0);\r\n try {\r\n //Commented for git push purpose\r\n db.addCustomerPassbook(customerPassbookBean);\r\n } catch (Exception ex) {\r\n Log.i(TAG, \"Inserting data into customer passbook in billing screen: \" + ex.getMessage());\r\n }\r\n // }\r\n }\r\n } else {\r\n Log.i(TAG, \"No customer data selected for storing customer passbook in billing screen.\");\r\n }\r\n } catch (Exception ex) {\r\n Log.i(TAG, \"Unable to store the customer passbook data in billing screen.\" + ex.getMessage());\r\n } finally {\r\n if (cursorCustomerData != null) {\r\n cursorCustomerData.close();\r\n }\r\n }\r\n }",
"private void InsertBillDetail(int TenderType) {\n\n // Inserted Row Id in database table\n long lResult = 0;\n\n // BillDetail object\n BillDetail objBillDetail;\n\n objBillDetail = new BillDetail();\n\n // Date\n //objBillDetail.setDate(String.valueOf(d.getTime()));\n try {\n String date_today = tvDate.getText().toString();\n //Log.d(\"Date \", date_today);\n Date date1 = new SimpleDateFormat(\"dd-MM-yyyy\").parse(date_today);\n objBillDetail.setDate(String.valueOf(date1.getTime()));\n Log.d(\"InsertBillDetail\", \"Date:\" + objBillDetail.getDate());\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n\n // Time\n //objBillDetail.setTime(String.format(\"%tR\", Time));\n String strTime = new SimpleDateFormat(\"kk:mm:ss\").format(Time.getTime());\n objBillDetail.setTime(strTime);\n Log.d(\"InsertBillDetail\", \"Time:\" + strTime);\n\n // Bill Number\n objBillDetail.setBillNumber(Integer.parseInt(tvBillNumber.getText().toString()));\n Log.d(\"InsertBillDetail\", \"Bill Number:\" + tvBillNumber.getText().toString());\n\n // richa_2012\n //BillingMode\n objBillDetail.setBillingMode(String.valueOf(jBillingMode));\n Log.d(\"InsertBillDetail\", \"Billing Mode :\" + String.valueOf(jBillingMode));\n\n\n // custStateCode\n if (chk_interstate.isChecked()) {\n String str = spnr_pos.getSelectedItem().toString();\n int length = str.length();\n String sub = \"\";\n if (length > 0) {\n sub = str.substring(length - 2, length);\n }\n objBillDetail.setCustStateCode(sub);\n Log.d(\"InsertBillDetail\", \"CustStateCode :\" + sub+\" - \"+str);\n } else {\n String userPOS = db.getOwnerPOS_counter();\n objBillDetail.setCustStateCode(userPOS);\n Log.d(\"InsertBillDetail\", \"CustStateCode : \"+objBillDetail.getCustStateCode());\n }\n\n\n objBillDetail.setPOS(db.getOwnerPOS_counter());// to be retrieved from database later -- richa to do\n Log.d(\"InsertBillDetail\", \"POS : \"+objBillDetail.getPOS());\n\n // Total Items\n objBillDetail.setTotalItems(iTotalItems);\n Log.d(\"InsertBillDetail\", \"Total Items:\" + iTotalItems);\n\n // Bill Amount\n String billamt_temp = String.format(\"%.2f\",Double.parseDouble(tvBillAmount.getText().toString()));\n// objBillDetail.setBillAmount(Float.parseFloat(billamt_temp));\n objBillDetail.setdBillAmount(Double.parseDouble(billamt_temp));\n Log.d(\"InsertBillDetail\", \"Bill Amount:\" + tvBillAmount.getText().toString());\n\n // Discount Percentage\n objBillDetail.setTotalDiscountPercentage(Float.parseFloat(tvDiscountPercentage.getText().toString()));\n Log.d(\"InsertBillDetail\", \"Discount Percentage:\" + objBillDetail.getTotalDiscountPercentage());\n\n // Discount Amount\n //if(ItemwiseDiscountEnabled ==1)\n calculateDiscountAmount();\n objBillDetail.setTotalDiscountAmount(fTotalDiscount);\n Log.d(\"InsertBillDetail\", \"Total Discount:\" + fTotalDiscount);\n\n // Sales Tax Amount\n if (chk_interstate.isChecked()) {\n objBillDetail.setIGSTAmount(Float.parseFloat(String.format(\"%.2f\",Float.parseFloat(tvIGSTValue.getText().toString()))));\n objBillDetail.setCGSTAmount(0.00f);\n objBillDetail.setSGSTAmount(0.00f);\n } else {\n objBillDetail.setIGSTAmount(0.00f);\n objBillDetail.setCGSTAmount(Double.parseDouble(String.format(\"%.2f\",Double.parseDouble(tvTaxTotal.getText().toString()))));\n objBillDetail.setSGSTAmount(Double.parseDouble(String.format(\"%.2f\",Double.parseDouble(tvServiceTaxTotal.getText().toString()))));\n }\n Log.d(\"InsertBillDetail\", \"IGSTAmount : \" + objBillDetail.getIGSTAmount());\n Log.d(\"InsertBillDetail\", \"CGSTAmount : \" + objBillDetail.getCGSTAmount());\n Log.d(\"InsertBillDetail\", \"SGSTAmount : \" + objBillDetail.getSGSTAmount());\n\n objBillDetail.setCessAmount(Double.parseDouble(String.format(\"%.2f\",Double.parseDouble(tvcessValue.getText().toString()))));\n Log.d(\"InsertBillDetail\", \"cessAmount : \" + objBillDetail.getCessAmount());\n // Delivery Charge\n objBillDetail.setDeliveryCharge(Float.parseFloat(textViewOtherCharges.getText().toString()));\n Log.d(\"InsertBillDetail\", \"Delivery Charge: \"+objBillDetail.getDeliveryCharge());\n\n // Taxable Value\n// float taxval_f = Float.parseFloat(tvSubTotal.getText().toString());\n double taxval_f = Double.parseDouble(tvSubTotal.getText().toString());\n// objBillDetail.setAmount(String.valueOf(taxval_f));\n objBillDetail.setAmount(String.format(\"%.2f\", taxval_f));\n Log.d(\"InsertBillDetail\", \"Taxable Value:\" + taxval_f);\n\n /*float cgstamt_f = 0, sgstamt_f = 0;\n if (tvTaxTotal.getText().toString().equals(\"\") == false) {\n cgstamt_f = Float.parseFloat(tvTaxTotal.getText().toString());\n }\n if (tvServiceTaxTotal.getText().toString().equals(\"\") == false) {\n sgstamt_f = Float.parseFloat(tvServiceTaxTotal.getText().toString());\n }*/\n\n\n double subtot_f = taxval_f + objBillDetail.getIGSTAmount() + objBillDetail.getCGSTAmount()+ objBillDetail.getSGSTAmount();\n\n objBillDetail.setSubTotal(subtot_f);\n Log.d(\"InsertBillItems\", \"Sub Total :\" + subtot_f);\n\n// objBillDetail.setSubTotal(subtot_f);\n// Log.d(\"InsertBillDetail\", \"Sub Total :\" + subtot_f);\n\n // cust name\n String custname = editTextName.getText().toString();\n objBillDetail.setCustname(custname);\n Log.d(\"InsertBillDetail\", \"CustName :\" + custname);\n\n String custGSTIN = etCustGSTIN.getText().toString().trim().toUpperCase();\n objBillDetail.setGSTIN(custGSTIN);\n Log.d(\"InsertBillDetail\", \"custGSTIN :\" + custGSTIN);\n\n /*// cust StateCode\n if (chk_interstate.isChecked()) {\n String str = spnr_pos.getSelectedItem().toString();\n int length = str.length();\n String sub = \"\";\n if (length > 0) {\n sub = str.substring(length - 2, length);\n }\n objBillDetail.setCustStateCode(sub);\n Log.d(\"InsertBillDetail\", \"CustStateCode :\" + sub+\" - \"+str);\n } else {\n objBillDetail.setCustStateCode(\"29\");// to be retrieved from database later -- richa to do\n Log.d(\"InsertBillDetail\", \"CustStateCode :\"+objBillDetail.getCustStateCode());\n }*/\n /*String str = spnr_pos.getSelectedItem().toString();\n int length = str.length();\n String custStateCode = \"\";\n if (length > 0) {\n custStateCode = str.substring(length - 2, length);\n }*/\n /*objBillDetail.setCustStateCode(custStateCode);\n Log.d(\"InsertBillDetail\", \"CustStateCode :\" + custStateCode);*/\n\n\n // BusinessType\n if (etCustGSTIN.getText().toString().equals(\"\")) {\n objBillDetail.setBusinessType(\"B2C\");\n } else // gstin present means b2b bussiness\n {\n objBillDetail.setBusinessType(\"B2B\");\n }\n //objBillDetail.setBusinessType(\"B2C\");\n Log.d(\"InsertBillDetail\", \"BusinessType : \" + objBillDetail.getBusinessType());\n // Payment types\n if (TenderType == 1) {\n // Cash Payment\n objBillDetail.setCashPayment(Float.parseFloat(tvBillAmount.getText().toString()));\n Log.d(\"InsertBillDetail\", \"Cash:\" + tvBillAmount.getText().toString());\n\n // Card Payment\n objBillDetail.setCardPayment(fCardPayment);\n Log.d(\"InsertBillDetail\", \"Card:\" + fCardPayment);\n\n // Coupon Payment\n objBillDetail.setCouponPayment(fCouponPayment);\n Log.d(\"InsertBillDetail\", \"Coupon:\" + fCouponPayment);\n\n // PettyCash Payment\n// objBillDetail.setPettyCashPayment(fPettCashPayment);\n// Log.d(\"InsertBillDetail\", \"PettyCash:\" + fPettCashPayment);\n\n objBillDetail.setdPettyCashPayment(dPettCashPayment);\n Log.d(\"InsertBillDetail\", \"PettyCash:\" + dPettCashPayment);\n\n // Wallet Payment\n objBillDetail.setWalletAmount(fWalletPayment);\n Log.d(\"InsertBillDetail\", \"Wallet:\" + fWalletPayment);\n\n // PaidTotal Payment\n objBillDetail.setPaidTotalPayment(fPaidTotalPayment);\n\n // Change Payment\n objBillDetail.setChangePayment(dChangePayment);\n\n } else if (TenderType == 2) {\n\n if (PrintBillPayment == 1) {\n // Cash Payment\n objBillDetail.setCashPayment(Float.parseFloat(tvBillAmount.getText().toString()));\n Log.d(\"InsertBillDetail\", \"Cash:\" + Float.parseFloat(tvBillAmount.getText().toString()));\n\n // Card Payment\n objBillDetail.setCardPayment(fCardPayment);\n Log.d(\"InsertBillDetail\", \"Card:\" + fCardPayment);\n\n // Coupon Payment\n objBillDetail.setCouponPayment(fCouponPayment);\n Log.d(\"InsertBillDetail\", \"Coupon:\" + fCouponPayment);\n\n // PettyCash Payment\n// objBillDetail.setPettyCashPayment(fPettCashPayment);\n// Log.d(\"InsertBillDetail\", \"PettyCash:\" + fPettCashPayment);\n\n objBillDetail.setdPettyCashPayment(dPettCashPayment);\n Log.d(\"InsertBillDetail\", \"PettyCash:\" + dPettCashPayment);\n\n // Wallet Payment\n objBillDetail.setWalletAmount(fWalletPayment);\n Log.d(\"InsertBillDetail\", \"Wallet:\" + fWalletPayment);\n\n // PaidTotal Payment\n objBillDetail.setPaidTotalPayment(fPaidTotalPayment);\n Log.d(\"InsertBillDetail\", \"PaidTotalPayment:\" + fPaidTotalPayment);\n\n // Change Payment\n objBillDetail.setChangePayment(dChangePayment);\n Log.d(\"InsertBillDetail\", \"ChangePayment:\" + dChangePayment);\n\n objBillDetail.setfRoundOff(fRoundOfValue);\n Log.d(\"InsertBillDetail\", \"RoundOfValue:\" + fRoundOfValue);\n } else {\n // Cash Payment\n objBillDetail.setCashPayment(fCashPayment);\n Log.d(\"InsertBillDetail\", \"Cash:\" + fCashPayment);\n\n // Card Payment\n objBillDetail.setCardPayment(fCardPayment);\n Log.d(\"InsertBillDetail\", \"Card:\" + fCardPayment);\n\n // Coupon Payment\n objBillDetail.setCouponPayment(fCouponPayment);\n Log.d(\"InsertBillDetail\", \"Coupon:\" + fCouponPayment);\n\n // PettyCash Payment\n// objBillDetail.setPettyCashPayment(fPettCashPayment);\n// Log.d(\"InsertBillDetail\", \"PettyCash:\" + fPettCashPayment);\n\n objBillDetail.setdPettyCashPayment(dPettCashPayment);\n Log.d(\"InsertBillDetail\", \"PettyCash:\" + dPettCashPayment);\n\n // Wallet Payment\n objBillDetail.setWalletAmount(fWalletPayment);\n Log.d(\"InsertBillDetail\", \"Wallet:\" + fWalletPayment);\n\n // PaidTotal Payment\n objBillDetail.setPaidTotalPayment(fPaidTotalPayment);\n Log.d(\"InsertBillDetail\", \"PaidTotalPayment:\" + fPaidTotalPayment);\n\n // Change Payment\n objBillDetail.setChangePayment(dChangePayment);\n Log.d(\"InsertBillDetail\", \"ChangePayment:\" + dChangePayment);\n\n objBillDetail.setfRoundOff(fRoundOfValue);\n Log.d(\"InsertBillDetail\", \"RoundOfValue:\" + fRoundOfValue);\n }\n }\n\n // Reprint Count\n objBillDetail.setReprintCount(0);\n Log.d(\"InsertBillDetail\", \"Reprint Count:0\");\n\n // Bill Status\n\n objBillDetail.setBillStatus(1);\n Log.d(\"InsertBillDetail\", \"Bill Status:1\");\n\n\n // Employee Id (Waiter / Rider)\n objBillDetail.setEmployeeId(0);\n Log.d(\"InsertBillDetail\", \"EmployeeId:0\");\n\n // Customer Id\n objBillDetail.setCustId(Integer.valueOf(customerId));\n Log.d(\"InsertBillDetail\", \"Customer Id:\" + customerId);\n\n // User Id\n objBillDetail.setUserId(userId);\n Log.d(\"InsertBillDetail\", \"UserID:\" + userId);\n\n lResult = db.addBilll(objBillDetail, objBillDetail.getGSTIN());\n Log.d(\"InsertBill\", \"Bill inserted at position:\" + lResult);\n //lResult = dbBillScreen.updateBill(objBillDetail);\n\n if (String.valueOf(customerId).equalsIgnoreCase(\"\") || String.valueOf(customerId).equalsIgnoreCase(\"0\"))\n {\n // No customer Details, do nothing\n }\n else\n {\n iCustId = Integer.valueOf(customerId);\n double fTotalTransaction = db.getCustomerTotalTransaction(iCustId);\n double fCreditAmount = db.getCustomerCreditAmount(iCustId);\n //fCreditAmount = fCreditAmount - Float.parseFloat(tvBillAmount.getText().toString());\n fCreditAmount = fCreditAmount - dPettCashPayment;\n fTotalTransaction += Double.parseDouble(tvBillAmount.getText().toString());\n\n long lResult1 = db.updateCustomerTransaction(iCustId, Double.parseDouble(tvBillAmount.getText().toString()), fTotalTransaction, fCreditAmount);\n }\n\n // Bill No Reset Configuration\n long Result2 = db.UpdateBillNoResetInvoiceNos(Integer.parseInt(tvBillNumber.getText().toString()));\n }",
"private void InsertBillDetail(int TenderType) {\r\n\r\n // Inserted Row Id in database table\r\n long lResult = 0;\r\n\r\n // BillDetail object\r\n BillDetail objBillDetail;\r\n\r\n objBillDetail = new BillDetail();\r\n\r\n // Date\r\n //objBillDetail.setDate(String.valueOf(d.getTime()));\r\n try {\r\n String date_today = tvDate.getText().toString();\r\n //Log.d(\"Date \", date_today);\r\n Date date1 = new SimpleDateFormat(\"dd-MM-yyyy\").parse(date_today);\r\n objBillDetail.setDate(String.valueOf(date1.getTime()));\r\n Log.d(\"InsertBillDetail\", \"Date:\" + objBillDetail.getDate());\r\n }catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n // Time\r\n //objBillDetail.setTime(String.format(\"%tR\", Time));\r\n String strTime = new SimpleDateFormat(\"kk:mm:ss\").format(Time.getTime());\r\n objBillDetail.setTime(strTime);\r\n Log.d(\"InsertBillDetail\", \"Time:\" + strTime);\r\n\r\n // Bill Number\r\n objBillDetail.setBillNumber(Integer.parseInt(tvBillNumber.getText().toString()));\r\n Log.d(\"InsertBillDetail\", \"Bill Number:\" + tvBillNumber.getText().toString());\r\n\r\n // richa_2012\r\n //BillingMode\r\n objBillDetail.setBillingMode(String.valueOf(jBillingMode));\r\n Log.d(\"InsertBillDetail\", \"Billing Mode :\" + String.valueOf(jBillingMode));\r\n\r\n // custStateCode\r\n if (chk_interstate.isChecked()) {\r\n String str = spnr_pos.getSelectedItem().toString();\r\n int length = str.length();\r\n String sub = \"\";\r\n if (length > 0) {\r\n sub = str.substring(length - 2, length);\r\n }\r\n objBillDetail.setCustStateCode(sub);\r\n Log.d(\"InsertBillDetail\", \"CustStateCode :\" + sub+\" - \"+str);\r\n } else {\r\n String userPOS = db.getOwnerPOS();\r\n objBillDetail.setCustStateCode(userPOS);\r\n Log.d(\"InsertBillDetail\", \"CustStateCode : \"+objBillDetail.getCustStateCode());\r\n }\r\n\r\n\r\n objBillDetail.setPOS(db.getOwnerPOS());// to be retrieved from database later -- richa to do\r\n Log.d(\"InsertBillDetail\", \"POS : \"+objBillDetail.getPOS());\r\n\r\n\r\n // Total Items\r\n objBillDetail.setTotalItems(iTotalItems);\r\n Log.d(\"InsertBillDetail\", \"Total Items:\" + iTotalItems);\r\n\r\n // Bill Amount\r\n String billamt_temp = String.format(\"%.2f\",Double.parseDouble(tvBillAmount.getText().toString()));\r\n// objBillDetail.setBillAmount(Float.parseFloat(billamt_temp));\r\n objBillDetail.setdBillAmount(Double.parseDouble(billamt_temp));\r\n Log.d(\"InsertBillDetail\", \"Bill Amount:\" + tvBillAmount.getText().toString());\r\n\r\n // Discount Percentage\r\n objBillDetail.setTotalDiscountPercentage(Float.parseFloat(tvDiscountPercentage.getText().toString()));\r\n Log.d(\"InsertBillDetail\", \"Discount Percentage:\" + objBillDetail.getTotalDiscountPercentage());\r\n\r\n // Discount Amount\r\n // Discount Amount\r\n // if(ItemwiseDiscountEnabled ==1)\r\n calculateDiscountAmount();\r\n float discount = Float.parseFloat(tvDiscountAmount.getText().toString());\r\n //objBillDetail.setTotalDiscountAmount(discount);\r\n objBillDetail.setTotalDiscountAmount(fTotalDiscount);\r\n Log.d(\"InsertBillDetail\", \"Total Discount:\" + discount);\r\n\r\n // Sales Tax Amount\r\n if (chk_interstate.isChecked()) {\r\n objBillDetail.setIGSTAmount(Double.parseDouble(String.format(\"%.2f\",Double.parseDouble(tvIGSTValue.getText().toString()))));\r\n objBillDetail.setCGSTAmount(0.00f);\r\n objBillDetail.setSGSTAmount(0.00f);\r\n } else {\r\n objBillDetail.setIGSTAmount(0.00f);\r\n objBillDetail.setCGSTAmount(Double.parseDouble(String.format(\"%.2f\",Double.parseDouble(tvCGSTValue.getText().toString()))));\r\n objBillDetail.setSGSTAmount(Double.parseDouble(String.format(\"%.2f\",Double.parseDouble(tvSGSTValue.getText().toString()))));\r\n }\r\n Log.d(\"InsertBillDetail\", \"IGSTAmount : \" + objBillDetail.getIGSTAmount());\r\n Log.d(\"InsertBillDetail\", \"CGSTAmount : \" + objBillDetail.getCGSTAmount());\r\n Log.d(\"InsertBillDetail\", \"SGSTAmount : \" + objBillDetail.getSGSTAmount());\r\n\r\n objBillDetail.setCessAmount(Double.parseDouble(String.format(\"%.2f\",Double.parseDouble(tvcessValue.getText().toString()))));\r\n Log.d(\"InsertBillDetail\", \"cessAmount : \" + objBillDetail.getCessAmount());\r\n // Delivery Charge\r\n objBillDetail.setDeliveryCharge(Float.parseFloat(tvOthercharges.getText().toString()));\r\n Log.d(\"InsertBillDetail\", \"Delivery Charge:\"+objBillDetail.getDeliveryCharge());\r\n\r\n\r\n // Taxable Value\r\n double taxval_f = Double.parseDouble(tvSubTotal.getText().toString());\r\n objBillDetail.setAmount(String.format(\"%.2f\", taxval_f));\r\n Log.d(\"InsertBillDetail\", \"Taxable Value:\" + taxval_f);\r\n\r\n /*float cgstamt_f = 0, sgstamt_f = 0;\r\n if (tvCGSTValue.getText().toString().equals(\"\") == false) {\r\n cgstamt_f = Float.parseFloat(tvCGSTValue.getText().toString());\r\n }\r\n if (tvSGSTValue.getText().toString().equals(\"\") == false) {\r\n sgstamt_f = Float.parseFloat(tvSGSTValue.getText().toString());\r\n }*/\r\n\r\n\r\n double subtot_f = taxval_f + objBillDetail.getIGSTAmount() + objBillDetail.getCGSTAmount()+ objBillDetail.getSGSTAmount();\r\n objBillDetail.setSubTotal(subtot_f);\r\n Log.d(\"InsertBillDetail\", \"Sub Total :\" + subtot_f);\r\n\r\n // cust name\r\n String custname = edtCustName.getText().toString();\r\n objBillDetail.setCustname(custname);\r\n Log.d(\"InsertBillDetail\", \"CustName :\" + custname);\r\n // cust gstin\r\n String custGSTIN = etCustGSTIN.getText().toString().trim().toUpperCase();\r\n objBillDetail.setGSTIN(custGSTIN);\r\n Log.d(\"InsertBillDetail\", \"CustGSTIN :\" + custGSTIN);\r\n\r\n /* // cust StateCode\r\n if (chk_interstate.isChecked()) {\r\n String str = spnr_pos.getSelectedItem().toString();\r\n int length = str.length();\r\n String sub = \"\";\r\n if (length > 0) {\r\n sub = str.substring(length - 2, length);\r\n }\r\n objBillDetail.setCustStateCode(sub);\r\n Log.d(\"InsertBillDetail\", \"CustStateCode :\" + sub+\" - \"+str);\r\n } else {\r\n objBillDetail.setCustStateCode(\"29\");// to be retrieved from database later -- richa to do\r\n Log.d(\"InsertBillDetail\", \"CustStateCode :\"+objBillDetail.getCustStateCode());\r\n }*/\r\n /*String str = spnr_pos.getSelectedItem().toString();\r\n int length = str.length();\r\n String custStateCode = \"\";\r\n if (length > 0) {\r\n custStateCode = str.substring(length - 2, length);\r\n }*/\r\n /*objBillDetail.setCustStateCode(custStateCode);\r\n Log.d(\"InsertBillDetail\", \"CustStateCode :\" + custStateCode);*/\r\n\r\n // BusinessType\r\n if (etCustGSTIN.getText().toString().equals(\"\")) {\r\n objBillDetail.setBusinessType(\"B2C\");\r\n } else // gstin present means b2b bussiness\r\n {\r\n objBillDetail.setBusinessType(\"B2B\");\r\n }\r\n //objBillDetail.setBusinessType(\"B2C\");\r\n Log.d(\"InsertBillDetail\", \"BusinessType : \" + objBillDetail.getBusinessType());\r\n // Payment types\r\n if (TenderType == 1) {\r\n // Cash Payment\r\n objBillDetail.setCashPayment(Double.parseDouble(String.format(\"%.2f\", Double.parseDouble(tvBillAmount.getText().toString()))));\r\n Log.d(\"InsertBillDetail\", \"Cash:\" + tvBillAmount.getText().toString());\r\n\r\n // Card Payment\r\n objBillDetail.setCardPayment(Double.parseDouble(String.format(\"%.2f\", dblCardPayment)));\r\n Log.d(\"InsertBillDetail\", \"Card:\" + dblCardPayment);\r\n\r\n // Coupon Payment\r\n objBillDetail.setCouponPayment(Double.parseDouble(String.format(\"%.2f\", dblCouponPayment)));\r\n Log.d(\"InsertBillDetail\", \"Coupon:\" + dblCouponPayment);\r\n\r\n // PettyCash Payment\r\n// objBillDetail.setPettyCashPayment(dblPettCashPayment);\r\n// Log.d(\"InsertBillDetail\", \"PettyCash:\" + dblPettCashPayment);\r\n\r\n objBillDetail.setdPettyCashPayment(Double.parseDouble(String.format(\"%.2f\", dblPettyCashPayment)));\r\n Log.d(\"InsertBillDetail\", \"PettyCash:\" + dblPettyCashPayment);\r\n\r\n // Wallet Payment\r\n objBillDetail.setWalletAmount(Double.parseDouble(String.format(\"%.2f\", dblWalletPayment)));\r\n Log.d(\"InsertBillDetail\", \"Wallet:\" + dblWalletPayment);\r\n\r\n // PaidTotal Payment\r\n objBillDetail.setPaidTotalPayment(Double.parseDouble(String.format(\"%.2f\", dblPaidTotalPayment)));\r\n\r\n // Change Payment\r\n objBillDetail.setChangePayment(Double.parseDouble(String.format(\"%.2f\", dblChangePayment)));\r\n\r\n objBillDetail.setDblRewardPoints(dblRewardPointsAmount);\r\n Log.d(\"InsertBillDetail\", \"RewardPoints :\" + dblRewardPointsAmount);\r\n\r\n objBillDetail.setDblMSwipeAmount(dblMSwipeAmount);\r\n Log.d(\"InsertBillDetail\", \"MSwipe Amount :\" + dblMSwipeAmount);\r\n\r\n objBillDetail.setDblPaytmAmount(dblPaytmAmount);\r\n Log.d(\"InsertBillDetail\", \"Paytm Amount :\" + dblPaytmAmount);\r\n\r\n objBillDetail.setDblAEPSAmount(dblAEPSAmount);\r\n Log.d(\"InsertBillDetail\", \"AEPSAmount :\" + dblAEPSAmount);\r\n\r\n } else if (TenderType == 2) {\r\n\r\n if (PrintBillPayment == 1) {\r\n // Cash Payment\r\n objBillDetail.setCashPayment(Double.parseDouble(String.format(\"%.2f\", Double.parseDouble(tvBillAmount.getText().toString()))));\r\n Log.d(\"InsertBillDetail\", \"Cash:\" + Float.parseFloat(tvBillAmount.getText().toString()));\r\n\r\n // Card Payment\r\n objBillDetail.setCardPayment(Double.parseDouble(String.format(\"%.2f\", dblCardPayment)));\r\n Log.d(\"InsertBillDetail\", \"Card:\" + dblCardPayment);\r\n\r\n // Coupon Payment\r\n objBillDetail.setCouponPayment(Double.parseDouble(String.format(\"%.2f\", dblCouponPayment)));\r\n Log.d(\"InsertBillDetail\", \"Coupon:\" + dblCouponPayment);\r\n\r\n // PettyCash Payment\r\n// objBillDetail.setPettyCashPayment(dblPettCashPayment);\r\n// Log.d(\"InsertBillDetail\", \"PettyCash:\" + dblPettCashPayment);\r\n\r\n objBillDetail.setdPettyCashPayment(Double.parseDouble(String.format(\"%.2f\", dblPettyCashPayment)));\r\n Log.d(\"InsertBillDetail\", \"PettyCash:\" + dblPettyCashPayment);\r\n\r\n // Wallet Payment\r\n objBillDetail.setWalletAmount(Double.parseDouble(String.format(\"%.2f\", dblWalletPayment)));\r\n Log.d(\"InsertBillDetail\", \"Wallet:\" + dblWalletPayment);\r\n\r\n // PaidTotal Payment\r\n objBillDetail.setPaidTotalPayment(Double.parseDouble(String.format(\"%.2f\", dblPaidTotalPayment)));\r\n Log.d(\"InsertBillDetail\", \"PaidTotalPayment:\" + dblPaidTotalPayment);\r\n\r\n // Change Payment\r\n objBillDetail.setChangePayment(Double.parseDouble(String.format(\"%.2f\", dblChangePayment)));\r\n Log.d(\"InsertBillDetail\", \"ChangePayment:\" + dblChangePayment);\r\n\r\n\r\n objBillDetail.setfRoundOff(Double.parseDouble(String.format(\"%.2f\", dblRoundOfValue)));\r\n Log.d(\"InsertBillDetail\", \"RoundOfValue:\" + dblRoundOfValue);\r\n\r\n objBillDetail.setDblRewardPoints(dblRewardPointsAmount);\r\n Log.d(\"InsertBillDetail\", \"RewardPoints :\" + dblRewardPointsAmount);\r\n\r\n objBillDetail.setDblMSwipeAmount(dblMSwipeAmount);\r\n Log.d(\"InsertBillDetail\", \"MSwipe Amount :\" + dblMSwipeAmount);\r\n\r\n objBillDetail.setDblPaytmAmount(dblPaytmAmount);\r\n Log.d(\"InsertBillDetail\", \"Paytm Amount :\" + dblPaytmAmount);\r\n\r\n objBillDetail.setDblAEPSAmount(dblAEPSAmount);\r\n Log.d(\"InsertBillDetail\", \"AEPSAmount :\" + dblAEPSAmount);\r\n } else {\r\n // Cash Payment\r\n objBillDetail.setCashPayment(Double.parseDouble(String.format(\"%.2f\", dblCashPayment)));\r\n Log.d(\"InsertBillDetail\", \"Cash:\" + dblCashPayment);\r\n\r\n // Card Payment\r\n objBillDetail.setCardPayment(Double.parseDouble(String.format(\"%.2f\", dblCardPayment)));\r\n Log.d(\"InsertBillDetail\", \"Card:\" + dblCardPayment);\r\n\r\n // Coupon Payment\r\n objBillDetail.setCouponPayment(Double.parseDouble(String.format(\"%.2f\", dblCouponPayment)));\r\n Log.d(\"InsertBillDetail\", \"Coupon:\" + dblCouponPayment);\r\n\r\n // PettyCash Payment\r\n// objBillDetail.setPettyCashPayment(dblPettCashPayment);\r\n// Log.d(\"InsertBillDetail\", \"PettyCash:\" + dblPettCashPayment);\r\n\r\n objBillDetail.setdPettyCashPayment(Double.parseDouble(String.format(\"%.2f\", dblPettyCashPayment)));\r\n Log.d(\"InsertBillDetail\", \"PettyCash:\" + dblPettyCashPayment);\r\n\r\n // Wallet Payment\r\n objBillDetail.setWalletAmount(Double.parseDouble(String.format(\"%.2f\", dblWalletPayment)));\r\n Log.d(\"InsertBillDetail\", \"Wallet:\" + dblWalletPayment);\r\n\r\n // PaidTotal Payment\r\n objBillDetail.setPaidTotalPayment(Double.parseDouble(String.format(\"%.2f\", dblPaidTotalPayment)));\r\n Log.d(\"InsertBillDetail\", \"PaidTotalPayment:\" + dblPaidTotalPayment);\r\n\r\n // Change Payment\r\n objBillDetail.setChangePayment(Double.parseDouble(String.format(\"%.2f\", dblChangePayment)));\r\n Log.d(\"InsertBillDetail\", \"ChangePayment:\" + dblChangePayment);\r\n\r\n objBillDetail.setfRoundOff(Double.parseDouble(String.format(\"%.2f\", dblRoundOfValue)));\r\n Log.d(\"InsertBillDetail\", \"RoundOfValue:\" + dblRoundOfValue);\r\n\r\n objBillDetail.setDblRewardPoints(dblRewardPointsAmount);\r\n Log.d(\"InsertBillDetail\", \"RewardPoints :\" + dblRewardPointsAmount);\r\n\r\n objBillDetail.setDblMSwipeAmount(dblMSwipeAmount);\r\n Log.d(\"InsertBillDetail\", \"MSwipe Amount :\" + dblMSwipeAmount);\r\n\r\n objBillDetail.setDblPaytmAmount(dblPaytmAmount);\r\n Log.d(\"InsertBillDetail\", \"Paytm Amount :\" + dblPaytmAmount);\r\n\r\n objBillDetail.setDblAEPSAmount(dblAEPSAmount);\r\n Log.d(\"InsertBillDetail\", \"AEPSAmount :\" + dblAEPSAmount);\r\n }\r\n }\r\n\r\n // Reprint Count\r\n objBillDetail.setReprintCount(0);\r\n Log.d(\"InsertBillDetail\", \"Reprint Count:0\");\r\n\r\n // Bill Status\r\n if (jBillingMode == 4) {\r\n objBillDetail.setBillStatus(2);\r\n Log.d(\"InsertBillDetail\", \"Bill Status:2\");\r\n } else {\r\n objBillDetail.setBillStatus(1);\r\n Log.d(\"InsertBillDetail\", \"Bill Status:1\");\r\n }\r\n\r\n // Employee Id (Waiter / Rider)\r\n if (jBillingMode == 1 ) {\r\n// objBillDetail.setEmployeeId(Integer.parseInt(tvWaiterNumber.getText().toString()));\r\n// Log.d(\"InsertBillDetail\", \"EmployeeId:\" + tvWaiterNumber.getText().toString());\r\n } else {\r\n objBillDetail.setEmployeeId(0);\r\n Log.d(\"InsertBillDetail\", \"EmployeeId:0\");\r\n }\r\n\r\n if (!customerId.isEmpty()) {\r\n // Customer Id\r\n objBillDetail.setCustId(Integer.valueOf(customerId));\r\n Log.d(\"InsertBillDetail\", \"Customer Id:\" + customerId);\r\n\r\n Cursor customer = db.getCustomer(Integer.parseInt(customerId));\r\n if (customer != null && customer.moveToFirst()) {\r\n objBillDetail.setCustname(customer.getString(customer.getColumnIndex(DatabaseHandler.KEY_CustName)));\r\n objBillDetail.setGSTIN(customer.getString(customer.getColumnIndex(DatabaseHandler.KEY_GSTIN)));\r\n objBillDetail.setCustPhone(customer.getString(customer.getColumnIndex(DatabaseHandler.KEY_CustContactNumber)));\r\n objBillDetail.setCustEmail(customer.getString(customer.getColumnIndex(DatabaseHandler.KEY_CUST_EMAIL)));\r\n }\r\n }\r\n\r\n // User Id\r\n objBillDetail.setUserId(strUserId);\r\n Log.d(\"InsertBillDetail\", \"UserID:\" + strUserId);\r\n\r\n if(jBillingMode == 3){\r\n if(etOnlineOrderNo != null && !etOnlineOrderNo.getText().toString().isEmpty()){\r\n objBillDetail.setStrOnlineOrderNo(etOnlineOrderNo.getText().toString());\r\n }\r\n }\r\n\r\n lResult = db.addBilll(objBillDetail, etCustGSTIN.getText().toString().trim().toUpperCase());\r\n Log.d(\"InsertBill\", \"Bill inserted at position:\" + lResult);\r\n //lResult = dbBillScreen.updateBill(objBillDetail);\r\n\r\n if (lResult > 0) {\r\n\r\n if (!String.valueOf(iCustId).equalsIgnoreCase(\"\") || !String.valueOf(iCustId).equalsIgnoreCase(\"0\")) {\r\n\r\n iCustId = Integer.valueOf(edtCustId.getText().toString());\r\n\r\n Cursor cursor = db.getCustomer(iCustId);\r\n try {\r\n double totalBillAmount = Double.parseDouble(tvBillAmount.getText().toString());\r\n if (cursor != null && cursor.moveToFirst()) {\r\n double fTotalTransaction = cursor.getDouble(cursor.getColumnIndex(DatabaseHandler.KEY_TotalTransaction));\r\n double fCreditAmount = cursor.getDouble(cursor.getColumnIndex(DatabaseHandler.KEY_CreditAmount));\r\n double dblLatTransaction = 0;\r\n if (dblPettyCashPayment > 0)\r\n dblLatTransaction = dblPettyCashPayment;\r\n else\r\n dblLatTransaction = cursor.getDouble(cursor.getColumnIndex(DatabaseHandler.KEY_LastTransaction));\r\n fCreditAmount = fCreditAmount - dblPettyCashPayment;\r\n fTotalTransaction += dblPettyCashPayment;\r\n int rewardPointsAccumulated = cursor.getInt(cursor.getColumnIndex(DatabaseHandler.KEY_RewardPointsAccumulated));\r\n if (REWARD_POINTS == 1) {\r\n if (dblRewardPointsAmount <= 0) {\r\n rewardPointsAccumulated += Math.abs((RewardPoints / amountToRewardPoints) * totalBillAmount);\r\n } else {\r\n rewardPointsAccumulated -= dblRewardPointsAmount / RewardPtToAmt;\r\n }\r\n }\r\n long lResult1 = db.updateCustomerTransaction(iCustId, Double.parseDouble(String.format(\"%.2f\", dblLatTransaction)), Double.parseDouble(String.format(\"%.2f\", fTotalTransaction)),\r\n fCreditAmount, rewardPointsAccumulated);\r\n if (lResult1 > -1 && dblPettyCashPayment > 0) {\r\n mStoreCustomerPassbookData(iCustId, dblPettyCashPayment, tvBillNumber.getText().toString());\r\n }\r\n }\r\n } catch (Exception ex) {\r\n Log.i(TAG, \"Error on updating the customer data.\" + ex.getMessage());\r\n } finally {\r\n if (cursor != null) {\r\n cursor.close();\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Bill No Reset Configuration\r\n long Result2 = db.UpdateBillNoResetInvoiceNos(Integer.parseInt(tvBillNumber.getText().toString()));\r\n }",
"protected void exit() {\n (new CSVFile(bankDB)).writeCSV();\n try{\n FileUtil.writeTransactions(bankDB.getTransactions());\n }catch(IOException e){\n AlertBox.display(ERROR, \"There was an error printing the transactions\");\n }\n System.exit(0);\n }",
"void commitTransaction(ConnectionContext context) throws IOException;",
"public void saveTransaction(Transaction transaction) {\r\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\r\n try {\r\n org.hibernate.Transaction hbtransaction = session.beginTransaction();\r\n // don't save \"duplicate\" transactions\r\n Query q = session.createQuery (\"from finance.entity.Transaction trans WHERE trans.transdate = :transdate AND trans.amount = :amount AND trans.vendor = :vendor AND trans.account.uid = :accountuid\");\r\n q.setParameter(\"transdate\", transaction.getTransdate());\r\n q.setParameter(\"amount\", transaction.getAmount());\r\n q.setParameter(\"vendor\", transaction.getVendor());\r\n Account acct = transaction.getAccount();\r\n q.setParameter(\"accountuid\", acct.getUid());\r\n List<Transaction> transactionList = (List<Transaction>) q.list();\r\n if (transactionList.isEmpty()) {\r\n session.save(transaction);\r\n }\r\n hbtransaction.commit();\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n }",
"@Scheduled(fixedRate = 5 * 1000 * 60 * 60)\n public void save(){\n // delete old currencies amounts\n repository.deleteAllInBatch();\n\n FxRates rates = currencyTableService.getCurrencies();\n List<CurrencyTable> currencyTables = transform(rates);\n // add euro in currency list\n CurrencyTable euro = new CurrencyTable();\n euro.setCurrency(\"EUR\");\n euro.setExchangeRate(BigDecimal.ONE);\n\n repository.save(euro);\n repository.saveAll(currencyTables);\n }",
"void beginTransaction();",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\t\t\n\t}",
"protected abstract void commitIndividualTrx();",
"public void onClick(View v) {\n EditText editText_ItemDesrc = (EditText) findViewById(R.id.editText_ItemDesrc);\n EditText curr_amount = (EditText) findViewById(R.id.curr_amount);\n\n db = new DatabaseHandler(getApplicationContext());\n\n TourItem tourItem = new TourItem();\n tourItem.setTour_descr(editText_ItemDesrc.getText().toString());\n tourItem.setTour_id(tour_id);\n Long article_id = spinner_article.getSelectedItemId();\n Log.e(LOG, \"article_id=\" + article_id);\n tourItem.setArticle_id(article_id.intValue());\n Long curr_id = spinner_curr.getSelectedItemId();\n Log.e(LOG, \"curr_id=\" + curr_id);\n tourItem.setCurr_id(curr_id.intValue());\n tourItem.setCurr_amount(Float.parseFloat(curr_amount.getText().toString()));\n tourItem.setItem_type(tourItemsTypes.getSelectedItemPosition());\n Long tourist_id = spinTourist.getSelectedItemId();\n tourItem.setTourist_id(tourist_id.intValue());\n db.createTourItem(tourItem);\n db.closeDB();\n\n finish();\n startActivity(getIntent());\n }",
"@Override\n\t\tpublic void afterTextChanged(Editable arg0) {\n\t\t\tdata.get(position).setTejia(viewHolder.et_tejia.getText().toString());\n\t\t\tsavemodel.SaveMod(data);\n\t\t}",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\n\t}",
"public void saveCurrencyListToDb() {\n LOGGER.info(\"SAVING CURRENCY LIST TO DB.\");\n List<Currency> currencyList = currencyService.fetchCurrencyFromCRB();\n currencyRepository.saveAll(currencyList);\n }",
"private void save() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null) ) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.insert(nama_pasien2,\n nama_dokter2,\n tgl_pengobatanField.getText().toString().trim(),\n waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),\n hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }",
"public void newTransaction(){\n System.out.println(\"-----new transaction -----\");\n System.out.println(\"--no null value--\");\n List<Integer> idList =new LinkedList<>();\n List<Integer> cntList =new LinkedList<>();\n List<Double> discountList = new LinkedList<>();\n List<Double> actualPrice = new LinkedList<>();\n double totalPrice=0.0;\n System.out.print(\"cashier id: \");\n int cashierid=scanner.nextInt();\n System.out.print(\"store id: \");\n int storeid=scanner.nextInt();\n System.out.print(\"customer id: \");\n int customerid=scanner.nextInt();\n while(true){\n System.out.print(\"product id: \");\n idList.add(scanner.nextInt());\n System.out.print(\"count: \");\n cntList.add(scanner.nextInt());\n\n //support multiple product\n System.out.print(\"type y to continue(others would end): \");\n if(!scanner.next().equals('y')){\n break;\n }\n }\n\n try {\n //begin transaction\n connection.setSavepoint();\n connection.setAutoCommit(false);\n for(int i=0;i<idList.size();i++){\n //Step 1 load discount information\n String sql0=\"select * from onsaleproductions where ProductID=\"+idList.get(i)+\" and ValidDate > now()\";\n try {\n //first insert clubmemer\n result = statement.executeQuery(sql0);\n if(result.next()){\n discountList.add(result.getDouble(\"Discount\"));\n }else{\n discountList.add(1.0);\n }\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(e.getMessage());\n connection.rollback();\n return;\n }\n\n // Step 2 reduce stock & judge whether the product expired or not\n String sql1=\"update merchandise set Quantity=Quantity-\"+cntList.get(i)+\" where ProductID=\"+idList.get(i)+\" and ExpirationDate > now()\";\n try {\n //first insert clubmemer\n int res = statement.executeUpdate(sql1);\n if(res==0){\n System.out.println(\"Transaction failed! No valid product found (may expired)\");\n connection.rollback();\n return;\n }\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(\"Transaction failed! check product stock!\");\n connection.rollback();\n return;\n }\n\n String sql2=\"select * from merchandise where ProductID=\"+idList.get(i);\n try {\n //first insert clubmemer\n result = statement.executeQuery(sql2);\n double mprice=0.0;\n if(result.next()){\n mprice=result.getDouble(\"MarketPrice\");\n }\n actualPrice.add(mprice*discountList.get(i));\n totalPrice+=(cntList.get(i)*actualPrice.get(i));\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(e.getMessage());\n connection.rollback();\n return;\n }\n }\n\n // Step 3 insert transaction record which include general information\n String sql3=\"insert into transactionrecords(cashierid,storeid,totalprice,date,customerid) values(\"+cashierid+\",\"+storeid+\",\"+totalPrice+\",now(), \"+customerid+\")\";\n int tid=0;\n try {\n //first insert clubmemer\n int res = statement.executeUpdate(sql3, Statement.RETURN_GENERATED_KEYS);\n ResultSet generatedKeys = statement.getGeneratedKeys();\n\n if (generatedKeys.next()) {\n //get generatedKeys for insert registration record\n tid=generatedKeys.getInt(\"GENERATED_KEY\");\n }\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(e.getMessage());\n connection.rollback();\n return;\n }\n\n // Step 4 insert transaction contains which include product list\n for(int i=0;i<idList.size();i++){\n String sql4=\"insert into transactionContains(transactionid,productid,count,actualprice) values(\";\n sql4+=tid;\n sql4+=\", \";\n sql4+=idList.get(i);\n sql4+=\", \";\n sql4+=cntList.get(i);\n sql4+=\", \";\n sql4+=actualPrice.get(i);\n sql4+=\")\";\n try {\n //System.out.println(sql);\n int res = statement.executeUpdate(sql4);\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(e.getMessage());\n connection.rollback();\n }\n\n }\n System.out.println(\"Success\");\n connection.commit();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }finally {\n try {\n connection.setAutoCommit(true);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }"
] | [
"0.6702369",
"0.6353046",
"0.6141285",
"0.60700715",
"0.6056281",
"0.60543907",
"0.5879168",
"0.58632135",
"0.5835333",
"0.57816094",
"0.57699096",
"0.5745193",
"0.57449377",
"0.5699635",
"0.56787103",
"0.56684375",
"0.5639069",
"0.56297755",
"0.5596988",
"0.55803835",
"0.55551857",
"0.55450404",
"0.5519623",
"0.550019",
"0.5489683",
"0.5488785",
"0.54813236",
"0.5476084",
"0.54607224",
"0.5452228",
"0.54487216",
"0.54373413",
"0.543629",
"0.543569",
"0.543296",
"0.54232436",
"0.54177725",
"0.54124355",
"0.5410893",
"0.5409372",
"0.5405911",
"0.5401342",
"0.54007643",
"0.5398151",
"0.53946584",
"0.5365564",
"0.5363166",
"0.53630936",
"0.53599733",
"0.5354038",
"0.5353829",
"0.5347839",
"0.53439105",
"0.53419656",
"0.5329062",
"0.53200066",
"0.53041804",
"0.53029186",
"0.5301569",
"0.5301",
"0.5297895",
"0.5297851",
"0.52953506",
"0.5294477",
"0.5293679",
"0.5293679",
"0.52933776",
"0.52931243",
"0.52864754",
"0.52857953",
"0.5285756",
"0.5277121",
"0.52683437",
"0.5265411",
"0.52648926",
"0.5251958",
"0.5251118",
"0.5250631",
"0.5248597",
"0.52477896",
"0.5243063",
"0.5233259",
"0.52328163",
"0.5231341",
"0.5225046",
"0.52248824",
"0.5214432",
"0.5205821",
"0.5178025",
"0.516815",
"0.51630265",
"0.5160711",
"0.51487494",
"0.5142022",
"0.5134894",
"0.5124864",
"0.51224804",
"0.5120677",
"0.5113874",
"0.51094395"
] | 0.63290226 | 2 |
End createTransaction Update Transaction | private void updateTransaction() {
LogUtils.logEnterFunction(Tag);
String inputtedAmount = etAmount.getText().toString().trim().replaceAll(",", "");
if (inputtedAmount.equals("") || Double.parseDouble(inputtedAmount) == 0) {
etAmount.setError(getResources().getString(R.string.Input_Error_Amount_Empty));
return;
}
if (mAccount == null) {
((ActivityMain) getActivity()).showError(getResources().getString(R.string.Input_Error_Account_Empty));
return;
}
Double amount = Double.parseDouble(inputtedAmount);
int categoryId = mCategory != null ? mCategory.getId() : 0;
String description = tvDescription.getText().toString();
int accountId = mAccount.getId();
String strEvent = tvEvent.getText().toString();
Event event = null;
if (!strEvent.equals("")) {
event = mDbHelper.getEventByName(strEvent);
if (event == null) {
long eventId = mDbHelper.createEvent(new Event(0, strEvent, mCal, null));
if (eventId != -1) {
event = mDbHelper.getEvent(eventId);
}
}
}
// Less: Repayment, More: Lend
if(mCategory.getDebtType() == Category.EnumDebt.LESS || mCategory.getDebtType() == Category.EnumDebt.MORE) {
boolean isDebtValid = true;
if(mCategory.getDebtType() == Category.EnumDebt.LESS) { // Income -> Debt Collecting
List<Debt> debts = mDbHelper.getAllDebtByPeople(tvPeople.getText().toString());
Double lend = 0.0, debtCollect = 0.0;
for(Debt debt : debts) {
if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) {
lend += debt.getAmount();
}
if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) {
debtCollect += debt.getAmount();
}
}
if(debtCollect + amount > lend) {
isDebtValid = false;
((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_collect_invalid));
}
} // End DebtType() == Category.EnumDebt.LESS
if(isDebtValid) {
Transaction transaction = new Transaction(mTransaction.getId(),
TransactionEnum.Income.getValue(),
amount,
categoryId,
description,
0,
accountId,
mCal,
0.0,
"",
event);
int row = mDbHelper.updateTransaction(transaction);
if (row == 1) { // Update transaction OK
if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {
Debt debt = mDbHelper.getDebtByTransactionId(mTransaction.getId());
debt.setCategoryId(mCategory.getId());
debt.setAmount(amount);
debt.setPeople(tvPeople.getText().toString());
int debtRow = mDbHelper.updateDebt(debt);
if(debtRow == 1) {
((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_successful));
cleanup();
// Return to last fragment
getFragmentManager().popBackStackImmediate();
} else {
// Revert update
mDbHelper.updateTransaction(mTransaction);
((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));
}
} else {
Debt newDebt = new Debt();
newDebt.setCategoryId(mCategory.getId());
newDebt.setTransactionId((int) mTransaction.getId());
newDebt.setAmount(amount);
newDebt.setPeople(tvPeople.getText().toString());
long debtId = mDbHelper.createDebt(newDebt);
if(debtId != -1) {
((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_create_successful));
cleanup();
// Return to last fragment
getFragmentManager().popBackStackImmediate();
} else {
// Revert update
mDbHelper.updateTransaction(mTransaction);
((ActivityMain) getActivity()).showToastSuccessful(getResources().getString(R.string.message_transaction_update_fail));
}
} // End create new Debt
} // End Update transaction OK
} // End isDebtValid
} else { // CATEGORY NORMAL
Transaction transaction = new Transaction(mTransaction.getId(),
TransactionEnum.Income.getValue(),
amount,
categoryId,
description,
0,
accountId,
mCal,
0.0,
"",
event);
int row = mDbHelper.updateTransaction(transaction);
if (row == 1) { // Update transaction OK
if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {
mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());
}
// Return to last fragment
getFragmentManager().popBackStackImmediate();
}
}
LogUtils.logLeaveFunction(Tag);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void endTransaction();",
"void commitTransaction();",
"public void commitTransaction() {\n\r\n\t}",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"public static void finishTransaction()\n {\n if (currentSession().getTransaction().isActive())\n {\n try\n {\n System.out.println(\"INFO: Transaction not null in Finish Transaction\");\n Thread.dumpStack();\n rollbackTransaction();\n// throw new UAPersistenceException(\"Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back.\");\n } catch (UAPersistenceException e)\n {\n System.out.println(\"Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation\");\n }\n }\n }",
"void rollbackTransaction();",
"void commit(Transaction transaction);",
"void beginTransaction();",
"@Override\n public void commitTx() {\n \n }",
"public void commitTransaction() throws TransactionException {\n\t\t\r\n\t}",
"Transaction createTransaction();",
"public void beginTransaction() {\n\r\n\t}",
"public void updateTransaction(Transaction trans);",
"public void endTransaction(int transactionID);",
"void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }",
"@Override\n public void rollbackTx() {\n \n }",
"protected abstract Transaction createAndAdd();",
"public void beginTransaction() throws Exception;",
"public void createTransaction(Transaction trans);",
"IDbTransaction beginTransaction();",
"Transaction beginTx();",
"public void rollbackTx()\n\n{\n\n}",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\t\t\n\t}",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\n\t}",
"public void commitTransaction() {\n final EntityTransaction entityTransaction = em.getTransaction();\n if (!entityTransaction.isActive()) {\n entityTransaction.begin();\n }\n entityTransaction.commit();\n }",
"void rollback(Transaction transaction);",
"void startTransaction();",
"public CleaningTransaction update(CleaningTransaction cleaningTransaction);",
"public void forceCommitTx()\n{\n}",
"public int startTransaction();",
"public void completeOrderTransaction(Transaction trans){\n }",
"public void closeTransaction(){\n\t\ttr.rollback();\n\t\ttr = null;\n\t}",
"public void beginTransaction() throws SQLException {\r\n conn.setAutoCommit(false);\r\n beginTransactionStatement.executeUpdate();\r\n }",
"public void endTransaction() {\r\n Receipt salesReceipt = new Receipt();\r\n salesReceipt.createReceipt(customer, lineItems);\r\n }",
"@Override\n public void commit() throws SQLException {\n if (isTransActionAlive() && !getTransaction().getStatus().isOneOf(TransactionStatus.MARKED_ROLLBACK,\n TransactionStatus.ROLLING_BACK)) {\n // Flush synchronizes the database with in-memory objects in Session (and frees up that memory)\n getSession().flush();\n // Commit those results to the database & ends the Transaction\n getTransaction().commit();\n }\n }",
"public void logTransactionEnd();",
"Transaction save(Transaction transaction);",
"public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}",
"public void rollbackTransaction() throws TransactionException {\n\t\t\r\n\t}",
"public void commit(){\n \n }",
"void commit();",
"void commit();",
"public void commit();",
"@Override\n public void doAfterTransaction(int result) {\n\n }",
"public void rollbackTransactionBlock() throws SQLException {\n masterNodeConnection.rollback();\n }",
"public void saveOrUpdate(Transaction transaction) throws Exception;",
"void setTransactionSuccessful();",
"public void commitTransactionBlock() throws SQLException {\n masterNodeConnection.commit();\n masterNodeConnection.setAutoCommit(true);\n }",
"void commit() {\n }",
"@Override\n\tpublic Transaction update(Transaction transaction) {\n\t\treturn null;\n\t}",
"protected abstract boolean commitTxn(Txn txn) throws PersistException;",
"Transaction getCurrentTransaction();",
"protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}",
"public void commit() {\n }",
"public void beginTransaction() throws SQLException\n\t{\n\t\tconn.setAutoCommit(false);\n\t\tbeginTransactionStatement.executeUpdate();\n\t}",
"public abstract void commit();",
"private void doneUpdate(long transaction) throws RequestIsOutException {\n\t\t\tassert this.lastSentTransaction == null || transaction > this.lastSentTransaction;\n\t\t\t\n\t\t\tthis.sendLock.readLock().unlock();\n\t\t}",
"public void transaction() throws DBException {\n\t\tUsersTransaction transaction = new UsersTransaction();\n\t\tScanner scan = new Scanner(System.in);\n\t\tLogger.info(\"================TRANSACTION DETAILS TO DONATE======================\");\n\t\tLogger.info(\"Enter the transaction ID\");\n\t\ttransactionId = scan.nextInt();\n\t\tLogger.info(\"Enter the donor ID\");\n\t\tdonorId = scan.nextInt();\n\t\tLogger.info(\"Enter the fund Id\");\n\t\tfundRequestId = scan.nextInt();\n\t\tLogger.info(\"Enter the amount to be funded\");\n\t\ttargetAmount = scan.nextInt();\n\t\ttransaction.setTransactionId(transactionId);\n\t\ttransaction.setDonorId(donorId);\n\t\ttransaction.setFundRequestId(fundRequestId);\n\t\ttransaction.setTargetAmount(targetAmount);\n\t\tinsert(transaction);\n\t\tdonorFundRequest(reqType);\n\t}",
"public void commitTransaction() throws SQLException {\n dbConnection.commit();\n }",
"@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\tsession.save(t);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}",
"public long createTransaction(Credentials c, TransactionType tt) throws RelationException;",
"public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void commit() throws SQLException {\n\t\t\t\r\n\t\t}",
"IDbTransaction beginTransaction(IsolationLevel il);",
"private void commitTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().commit();\n }\n }",
"void commitTransaction(ConnectionContext context) throws IOException;",
"public void commitTransaction(long id) throws RelationException;",
"@Override\n public void commit() {\n }",
"public void beginTransactionBlock() throws SQLException {\n masterNodeConnection.setAutoCommit(false);\n }",
"public void DoTransaction(TransactionCallback callback) {\r\n Transaction tx = _db.beginTx();\r\n try {\r\n callback.doTransaction();\r\n tx.success();\r\n } catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Failed to do callback transaction.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t\ttx.failure();\r\n\t\t} finally {\r\n\t\t\ttx.finish();\r\n tx.close();\r\n\t\t}\r\n }",
"void rollBack();",
"public void finishDemoActionTransaction() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.setTransactionSuccessful();\n db.endTransaction();\n db.close();\n }",
"public void transactionComplete(TransactionId tid) throws IOException {\n // some code goes here\n // not necessary for proj1\\\n \t//should always commit, simply call transactionComplete(tid,true)\n \ttransactionComplete(tid, true);\n \t\n }",
"public void commit() {\n doCommit();\n }",
"@Override\n public void rollback() throws SQLException {\n if (isTransActionAlive()) {\n getTransaction().rollback();\n }\n }",
"public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }",
"@Override\n\tpublic void cancelTransaction() {\n\t\t\n\t}",
"void commit() throws IndexTransactionException;",
"@Override\n public void startTx() {\n \n }",
"@Override\n public void commitTransaction() {\n try {\n connection.commit();\n } catch (SQLException e) {\n LOGGER.error(\"Can't commit transaction \", e);\n } finally {\n closeConnection();\n }\n }",
"void readOnlyTransaction();",
"public void UpdateTransaction() {\n\t\tgetUsername();\n\t\tcol_transactionID.setCellValueFactory(new PropertyValueFactory<Account, Integer>(\"transactionID\"));\n\t\tcol_date.setCellValueFactory(new PropertyValueFactory<Account, Date>(\"date\"));\n\t\tcol_description.setCellValueFactory(new PropertyValueFactory<Account, String>(\"description\"));\n\t\tcol_category.setCellValueFactory(new PropertyValueFactory<Account, String>(\"category\"));\n\t\tcol_amount.setCellValueFactory(new PropertyValueFactory<Account, Double>(\"amount\"));\n\t\tmySqlCon.setUsername(username);\n\t\tlists = mySqlCon.getAccountData();\n\t\ttableTransactions.setItems(lists);\n\t}",
"public TransactionalElement<E> commit();",
"public Optional<TransactionHistory> updateTransaction()\n {\n return null;\n }",
"@Override\n\tpublic void commit() {\n\n\t}",
"public void finalizeTransaction(DBConnection conn) throws Exception {\n calculateEmpIdAndDates( true ); \n super.finalizeTransaction( conn );\n }",
"public void commitEntity();",
"void rollbackTransaction(ConnectionContext context) throws IOException;",
"public void close() throws RemoteException {\r\n tx.commit();\r\n }",
"public boolean commit() {\n\t\tif (blocks.size() <= 1) return false;\n\n\t\tHashMap<String, Integer> pairMap = new HashMap<String, Integer>();\n\t\tHashMap<Integer, Integer> countMap = new HashMap<Integer, Integer>();\n\n\t\tListIterator<Transaction> iterator = blocks.listIterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tTransaction block = iterator.next();\n\t\t\tpairMap.putAll((Map<? extends String, ? extends Integer>) block.getNameValue());\n\t\t}\n\n\t\tfor (Entry<String, Integer> entry : pairMap.entrySet()) {\n\t\t\tInteger value = entry.getValue();\n\t\t\tif(countMap.get(value) == null){\n\t\t\t\tcountMap.put(value, new Integer(1));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcountMap.put(value, new Integer(countMap.get(value) + 1));\n\t\t\t}\n\t\t\tpairMap.put(entry.getKey(),entry.getValue());\n\t\t}\t\t\n\n\t\tblocks = new LinkedList<Transaction>();\n\t\tblocks.add(new Transaction(pairMap, countMap));\n\n\t\treturn true;\n\t}",
"@Override\r\n\t\tpublic void rollback() throws SQLException {\n\t\t\t\r\n\t\t}",
"protected abstract void commitIndividualTrx();",
"TCommit createCommit();",
"void sendTransactionToServer()\n \t{\n \t\t//json + sql magic\n \t}",
"@Test\n public void existingTransaction() {\n Transaction t1 = startTransaction();\n IntRef intValue = new IntRef(10);\n t1.commit();\n\n Transaction t2 = startTransaction();\n assertEquals(10, intValue.get());\n\n intValue.inc();\n assertEquals(11, intValue.get());\n t2.commit();\n }",
"public void newTransaction(){\n System.out.println(\"-----new transaction -----\");\n System.out.println(\"--no null value--\");\n List<Integer> idList =new LinkedList<>();\n List<Integer> cntList =new LinkedList<>();\n List<Double> discountList = new LinkedList<>();\n List<Double> actualPrice = new LinkedList<>();\n double totalPrice=0.0;\n System.out.print(\"cashier id: \");\n int cashierid=scanner.nextInt();\n System.out.print(\"store id: \");\n int storeid=scanner.nextInt();\n System.out.print(\"customer id: \");\n int customerid=scanner.nextInt();\n while(true){\n System.out.print(\"product id: \");\n idList.add(scanner.nextInt());\n System.out.print(\"count: \");\n cntList.add(scanner.nextInt());\n\n //support multiple product\n System.out.print(\"type y to continue(others would end): \");\n if(!scanner.next().equals('y')){\n break;\n }\n }\n\n try {\n //begin transaction\n connection.setSavepoint();\n connection.setAutoCommit(false);\n for(int i=0;i<idList.size();i++){\n //Step 1 load discount information\n String sql0=\"select * from onsaleproductions where ProductID=\"+idList.get(i)+\" and ValidDate > now()\";\n try {\n //first insert clubmemer\n result = statement.executeQuery(sql0);\n if(result.next()){\n discountList.add(result.getDouble(\"Discount\"));\n }else{\n discountList.add(1.0);\n }\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(e.getMessage());\n connection.rollback();\n return;\n }\n\n // Step 2 reduce stock & judge whether the product expired or not\n String sql1=\"update merchandise set Quantity=Quantity-\"+cntList.get(i)+\" where ProductID=\"+idList.get(i)+\" and ExpirationDate > now()\";\n try {\n //first insert clubmemer\n int res = statement.executeUpdate(sql1);\n if(res==0){\n System.out.println(\"Transaction failed! No valid product found (may expired)\");\n connection.rollback();\n return;\n }\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(\"Transaction failed! check product stock!\");\n connection.rollback();\n return;\n }\n\n String sql2=\"select * from merchandise where ProductID=\"+idList.get(i);\n try {\n //first insert clubmemer\n result = statement.executeQuery(sql2);\n double mprice=0.0;\n if(result.next()){\n mprice=result.getDouble(\"MarketPrice\");\n }\n actualPrice.add(mprice*discountList.get(i));\n totalPrice+=(cntList.get(i)*actualPrice.get(i));\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(e.getMessage());\n connection.rollback();\n return;\n }\n }\n\n // Step 3 insert transaction record which include general information\n String sql3=\"insert into transactionrecords(cashierid,storeid,totalprice,date,customerid) values(\"+cashierid+\",\"+storeid+\",\"+totalPrice+\",now(), \"+customerid+\")\";\n int tid=0;\n try {\n //first insert clubmemer\n int res = statement.executeUpdate(sql3, Statement.RETURN_GENERATED_KEYS);\n ResultSet generatedKeys = statement.getGeneratedKeys();\n\n if (generatedKeys.next()) {\n //get generatedKeys for insert registration record\n tid=generatedKeys.getInt(\"GENERATED_KEY\");\n }\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(e.getMessage());\n connection.rollback();\n return;\n }\n\n // Step 4 insert transaction contains which include product list\n for(int i=0;i<idList.size();i++){\n String sql4=\"insert into transactionContains(transactionid,productid,count,actualprice) values(\";\n sql4+=tid;\n sql4+=\", \";\n sql4+=idList.get(i);\n sql4+=\", \";\n sql4+=cntList.get(i);\n sql4+=\", \";\n sql4+=actualPrice.get(i);\n sql4+=\")\";\n try {\n //System.out.println(sql);\n int res = statement.executeUpdate(sql4);\n } catch (SQLException e) {\n //rollback when failed\n System.out.println(e.getMessage());\n connection.rollback();\n }\n\n }\n System.out.println(\"Success\");\n connection.commit();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }finally {\n try {\n connection.setAutoCommit(true);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }",
"Transaction createTransaction(Settings settings);",
"private void deleteTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n boolean isDebtValid = true;\n if(mDbHelper.getCategory(mTransaction.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n List<Debt> debts = mDbHelper.getAllDebts();\n\n Double repayment = 0.0, borrow = 0.0;\n for(Debt debt : debts) {\n if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) { // Repayment\n repayment += debt.getAmount();\n }\n\n if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n borrow += debt.getAmount();\n }\n }\n\n if(borrow - mTransaction.getAmount() < repayment) {\n isDebtValid = false;\n ((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_delete_invalid));\n }\n }\n\n if(isDebtValid) {\n mDbHelper.deleteTransaction(mTransaction.getId());\n if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {\n mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());\n }\n\n cleanup();\n\n // Return to FragmentListTransaction\n getFragmentManager().popBackStackImmediate();\n LogUtils.logLeaveFunction(Tag);\n }\n }",
"public void rollback();",
"@Override\n\tpublic void onTransactionStart() {}",
"private void processCommit() throws HsqlException {\n tokenizer.isGetThis(Token.T_WORK);\n session.commit();\n }"
] | [
"0.7514596",
"0.7289798",
"0.71927875",
"0.70995796",
"0.6909413",
"0.6815226",
"0.6807128",
"0.6773237",
"0.6699288",
"0.6681341",
"0.66597265",
"0.6644169",
"0.66293335",
"0.66078705",
"0.6568916",
"0.65346164",
"0.6524572",
"0.6514481",
"0.6510177",
"0.64977926",
"0.64914197",
"0.64633006",
"0.64326286",
"0.64183164",
"0.63881797",
"0.636525",
"0.634912",
"0.6310983",
"0.6254461",
"0.62344134",
"0.62146217",
"0.6211187",
"0.6192429",
"0.61920744",
"0.6173612",
"0.6150624",
"0.6100241",
"0.60945463",
"0.6079909",
"0.6072216",
"0.6046614",
"0.6046614",
"0.6041884",
"0.6040045",
"0.6036224",
"0.6027263",
"0.60214907",
"0.6021089",
"0.6020603",
"0.600616",
"0.5997406",
"0.5981984",
"0.5974979",
"0.59702843",
"0.5969327",
"0.5967273",
"0.59501123",
"0.5945039",
"0.59430873",
"0.59385544",
"0.5927926",
"0.59242594",
"0.5917168",
"0.5906827",
"0.5904056",
"0.58826035",
"0.5868443",
"0.5867066",
"0.58662176",
"0.58337826",
"0.5833371",
"0.5833088",
"0.58139443",
"0.58126575",
"0.5792244",
"0.57904613",
"0.57880765",
"0.5782832",
"0.5771303",
"0.57577604",
"0.57511467",
"0.57486284",
"0.5746742",
"0.5742454",
"0.57415164",
"0.57388866",
"0.5730605",
"0.5727453",
"0.56984186",
"0.56976676",
"0.56970483",
"0.5693484",
"0.5689894",
"0.56873393",
"0.56866294",
"0.5683797",
"0.5675825",
"0.5674231",
"0.56693393",
"0.56604314",
"0.56444496"
] | 0.0 | -1 |
End Update Transaction Delete current Transaction | private void deleteTransaction() {
LogUtils.logEnterFunction(Tag);
boolean isDebtValid = true;
if(mDbHelper.getCategory(mTransaction.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow
List<Debt> debts = mDbHelper.getAllDebts();
Double repayment = 0.0, borrow = 0.0;
for(Debt debt : debts) {
if(mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.LESS) { // Repayment
repayment += debt.getAmount();
}
if(!mDbHelper.getCategory(debt.getCategoryId()).isExpense() && mDbHelper.getCategory(debt.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow
borrow += debt.getAmount();
}
}
if(borrow - mTransaction.getAmount() < repayment) {
isDebtValid = false;
((ActivityMain) getActivity()).showError(getResources().getString(R.string.message_debt_delete_invalid));
}
}
if(isDebtValid) {
mDbHelper.deleteTransaction(mTransaction.getId());
if(mDbHelper.getDebtByTransactionId(mTransaction.getId()) != null) {
mDbHelper.deleteDebt(mDbHelper.getDebtByTransactionId(mTransaction.getId()).getId());
}
cleanup();
// Return to FragmentListTransaction
getFragmentManager().popBackStackImmediate();
LogUtils.logLeaveFunction(Tag);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void endTransaction();",
"public void deleteTransaction() {\n\t\tconn = MySqlConnection.ConnectDb();\n\t\tString sqlDelete = \"delete from Account where transactionID = ?\";\n\t\ttry {\n\t\t\t\n\t\t\tps = conn.prepareStatement(sqlDelete);\n\t\t\tps.setString(1, txt_transactionID.getText());\n\t\t\tps.execute();\n\n\t\t\tUpdateTransaction();\n\t\t} catch (Exception e) {\n\t\t}\n\t}",
"public void endTransaction(int transactionID);",
"@Override\n\tpublic void deleteTransaction(Transaction transaction) {\n\n\t}",
"public static void finishTransaction()\n {\n if (currentSession().getTransaction().isActive())\n {\n try\n {\n System.out.println(\"INFO: Transaction not null in Finish Transaction\");\n Thread.dumpStack();\n rollbackTransaction();\n// throw new UAPersistenceException(\"Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back.\");\n } catch (UAPersistenceException e)\n {\n System.out.println(\"Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation\");\n }\n }\n }",
"public boolean delete(Transaction transaction) throws Exception;",
"void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }",
"void rollbackTransaction();",
"public void closeTransaction(){\n\t\ttr.rollback();\n\t\ttr = null;\n\t}",
"public void deleteTransactionById(int id);",
"void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }",
"@Override\n public Nary<Void> applyWithTransactionOn(TransactionContext transactionContext) {\n String deleteHql = \"DELETE FROM \" + persistentType.getName() + \" WHERE id = :deletedId\";\n Session session = transactionContext.getSession();\n Query deleteQuery = session.createQuery(deleteHql);\n deleteQuery.setParameter(\"deletedId\", deletedId);\n int affectedRows = deleteQuery.executeUpdate();\n if(affectedRows != 1){\n LOG.debug(\"Deletion of {}[{}] did not affect just 1 row: {}\", persistentType, deletedId, affectedRows);\n }\n // No result expected from this operation\n return Nary.empty();\n }",
"public CleaningTransaction update(CleaningTransaction cleaningTransaction);",
"@Test(groups = \"Transactions Tests\", description = \"Delete transaction\")\n\tpublic void deleteTransaction() {\n\t\tMainScreen.clickAccountItem(\"Income\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Salary\");\n\t\tTransactionsScreen.clickOptionsBtnFromTransactionItem(\"Bonus\");\n\t\tTransactionsScreen.clickDeleteTransactionOption();\n\t\tTransactionsScreen.clickOptionsBtnFromTransactionItem(\"Bonus\");\n\t\tTransactionsScreen.clickDeleteTransactionOption();\n\t\tTransactionsScreen.transactionItens(\"Edited Transaction test\").shouldHave(size(0));\n\t\ttest.log(Status.PASS, \"Transaction successfully deleted\");\n\n\t\t//Testing if there no transaction in the 'Double Entry' account and logging the result to the report\n\t\treturnToHomeScreen();\n\t\tMainScreen.clickAccountItem(\"Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Current Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Cash in Wallet\");\n\t\tTransactionsScreen.transactionItens(\"Bonus\").shouldHave(size(0));\n\t\ttest.log(Status.PASS, \"Transaction successfully deleted from the 'Double Entry' account\");\n\n\t}",
"protected abstract void abortTxn(Txn txn) throws PersistException;",
"void commitTransaction();",
"@Override\n\tpublic void delete(Integer transactionId) {\n\n\t}",
"public void commitTransaction() {\n\r\n\t}",
"public void endTransaction() {\r\n Receipt salesReceipt = new Receipt();\r\n salesReceipt.createReceipt(customer, lineItems);\r\n }",
"void rollback(Transaction transaction);",
"@Override\n\tpublic void cancelTransaction() {\n\t\t\n\t}",
"@Override\n public void rollbackTx() {\n \n }",
"public void deleteAllTransactions();",
"public Boolean removeTransaction()\n {\n return true;\n }",
"public static void deshacerTransaccion() {\n try {\n con.rollback();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void updateTransaction(Transaction trans);",
"public void cancelTransaction() {\n\t\t//Cancel the transaction\n\t\tregister[registerSelected].cancelTransaction();\n\t}",
"private void deleteTransaction()\n {\n System.out.println(\"Delete transaction with the ID: \");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n ctrl.deleteTransaction(id);\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\n }",
"public void completeOrderTransaction(Transaction trans){\n }",
"public void rollbackTx()\n\n{\n\n}",
"public void commitTransaction() throws TransactionException {\n\t\t\r\n\t}",
"public void logTransactionEnd();",
"public void rollbackTransaction() throws TransactionException {\n\t\t\r\n\t}",
"void commit(Transaction transaction);",
"public void finishDemoActionTransaction() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.setTransactionSuccessful();\n db.endTransaction();\n db.close();\n }",
"public void commitTransaction() {\n final EntityTransaction entityTransaction = em.getTransaction();\n if (!entityTransaction.isActive()) {\n entityTransaction.begin();\n }\n entityTransaction.commit();\n }",
"private void doneUpdate(long transaction) throws RequestIsOutException {\n\t\t\tassert this.lastSentTransaction == null || transaction > this.lastSentTransaction;\n\t\t\t\n\t\t\tthis.sendLock.readLock().unlock();\n\t\t}",
"public static void getTransactionsAndDeleteAfterCancel() {\n // get DB helper\n mDbHelper = PointOfSaleDb.getInstance(context);\n\n // Each row in the list stores amount and date of transaction -- retrieves history from DB\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // get the following columns:\n String[] tableColumns = { PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT,\n \"_ROWID_\"};// getting also _ROWID_ to delete the selected tx\n\n String sortOrder = PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT + \" DESC\";\n Cursor c = db.query(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, tableColumns, null, null, null, null, sortOrder);\n //moving to first position to get last created transaction\n if(c.moveToFirst()) {\n int rowId = Integer.parseInt(c.getString(1));\n\n String selection = \"_ROWID_\" + \" = ? \";\n String[] selectionArgs = {String.valueOf(rowId)};\n int count = db.delete(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, selection, selectionArgs);\n\n //send broadcast to update view\n sendBroadcast();\n }\n\n }",
"@Override\n\t\tpublic boolean delete(AccountTransaction t, int id) {\n\t\t\treturn false;\n\t\t}",
"TransactionContext cancelTransaction() throws IOException;",
"public void rollbackTransactionBlock() throws SQLException {\n masterNodeConnection.rollback();\n }",
"public static void endTransaction(int trans_id) {\n if (transactions.containsKey(trans_id)) {\n if (commitTransaction(trans_id)) {\n // after committing we need to check which other transactions are waiting\n System.out.println(\"T\" + trans_id + \" commits\");\n\n Iterator<Map.Entry<Integer, List<Integer>>> it =\n transaction_variable_map.entrySet().iterator();\n\n\n while (it.hasNext()) {\n Map.Entry<Integer, List<Integer>> pair = (Map.Entry<Integer, List<Integer>>) it.next();\n List<Integer> list = pair.getValue();\n if (list.contains(trans_id)) {\n\n\n list.removeAll(Arrays.asList(trans_id));\n // System.out.println(list.toString());\n if (list.isEmpty())\n it.remove();\n }\n\n\n }\n clearWaitingOperations();\n transactions.remove(trans_id);\n\n }\n\n } else {\n System.out.println(\"T\" + trans_id + \" aborts\");\n }\n }",
"int deleteByExample(TransactionExample example);",
"public JSONObject deleteTransaction(JSONObject message, Session session, Connection conn) {\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tint transID = message.getInt(\"transactionID\");\n\t\t\tint userID = message.getInt(\"userID\");\n\t\t\tint budgetID = 0;\n\t\t\tdouble amount = 0;\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM Transactions WHERE transactionID=\" + transID + \";\");\n\t\t\tint bigBudgetID = 0;\n\t\t\tif (rs.next()) {\n\t\t\t\tamount = rs.getFloat(\"Amount\");\n\t\t\t\tbudgetID = rs.getInt(\"budgetID\");\n\t\t\t}\n\t\t\tResultSet rs1 = st.executeQuery(\"SELECT * FROM Budgets WHERE budgetID=\" + budgetID + \";\");\n\t\t\tdouble budgetAmountSpent = 0;\n\t\t\t\n\t\t\tif (rs1.next()) {\n\t\t\t\tbudgetAmountSpent = rs1.getFloat(\"TotalAmountSpent\");\n\t\t\t\tbigBudgetID = rs1.getInt(\"bigBudgetID\");\n\t\t\t}\n\t\t\tResultSet rs2 = st.executeQuery(\"SELECT * FROM BigBudgets WHERE bigBudgetID=\" + bigBudgetID + \";\");\n\t\t\tdouble bigBudgetAmountSpent = 0;\n\t\t\tif (rs2.next()) {\n\t\t\t\tbigBudgetAmountSpent = rs2.getFloat(\"TotalAmountSpent\");\n\t\t\t}\n\t\t\tStatement st4 = conn.createStatement();\n\t\t\tst4.execute(\"UPDATE Budgets SET TotalAmountSpent=\" + (budgetAmountSpent-amount) + \" WHERE budgetID=\" + budgetID + \";\");\n\t\t\tStatement st5 = conn.createStatement();\n\t\t\tst5.execute(\"UPDATE BigBudgets SET TotalAmountSpent=\" + (bigBudgetAmountSpent-amount) + \"WHERE bigBudgetID=\" + bigBudgetID + \";\");\n\t\t\t\n\t\t\tString deleteTrans = \"DELETE FROM Transactions WHERE transactionID=\" + transID + \";\";\n\t\t\tst.execute(deleteTrans);\n\t\t\tresponse = getData(conn, userID);\n\t\t\tresponse.put(\"message\", \"deleteTransactionSuccess\");\n\t\t} catch (SQLException | JSONException e) {\n\t\t\te.printStackTrace();\n\t\t\ttry {\n\t\t\t\tresponse.put(\"message\", \"deleteTransactionFail\");\n\t\t\t} catch (JSONException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn response;\n\t}",
"@Override\r\n\tpublic void delete() {\n\t\tString delete=\"DELETE FROM members WHERE id =?\";\r\n\t\t try(Connection connection=db.getConnection();) {\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(delete);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t \tpreparedStatement.executeUpdate();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction successful\");\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t}\r\n\t}",
"public void endOrAbort(HashMap<String, HashMap<String, Object>> transactions, HashMap<Character, HashMap<String, Object>> locks, String tr, String condition, HashMap<String, LinkedList<String>> blockedOp) throws IOException {\n if (transactions.get(tr).get(\"State\").equals(\"Blocked\") && condition.equals(\"Commited\")) {\n String transaction = ((ArrayList) transactions.get(tr).get(\"Blocked_By\")).get(((ArrayList) transactions.get(tr).get(\"Blocked_By\")).size() - 1).toString();\n blockedOp.get(transaction).addLast(tr);\n ((ArrayList) transactions.get(tr).get(\"Blocked_Operations\")).add(\"e\"+tr.charAt(1));\n fw.write(\"Transaction is \"+transactions.get(tr).get(\"State\")+\" so nothing will happen \\n\");\n return;\n }\n if (condition.equals(\"Commited\")) {\n fw.write(\"Commiting the transaction \" + tr +\"\\n\");\n }\n else {\n fw.write(\"Aborting the transaction \" + tr+\"\\n\");\n }\n /* Updating the Lock Table records with respect to current transaction */\n transactions.get(tr).put(\"State\", condition);\n transactions.get(tr).put(\"Blocked_By\", new ArrayList());\n transactions.get(tr).put(\"Blocked_Operations\", new ArrayList());\n ArrayList<Character> ch = new ArrayList<>();\n for (Character lock : locks.keySet()) {\n HashMap<String, Object> currentLock = locks.get(lock);\n ArrayList<String> tIdList = (ArrayList) currentLock.get(\"tid\");\n if (tIdList.size() > 0 && tIdList.contains(tr)) {\n if (tIdList.size() == 1) {\n ch.add(lock);\n } else {\n ((ArrayList)(locks.get(lock).get(\"tid\"))).remove(tr);\n }\n }\n }\n if (ch.size() > 0) {\n for (Character c : ch) {\n locks.remove(c);\n }\n }\n /*Removing the aborted transaction from blocked by list of every transaction and Activating the blocked transactions which are blocked by current transaction*/\n for (String allTransactions : transactions.keySet()) {\n ArrayList list1 = ((ArrayList) transactions.get(allTransactions).get(\"Blocked_By\"));\n if (!list1.isEmpty()) {\n if (list1.contains(tr)) {\n ((ArrayList) transactions.get(allTransactions).get(\"Blocked_By\")).remove(tr);\n list1 = ((ArrayList) transactions.get(allTransactions).get(\"Blocked_By\"));\n if (list1.size() == 0) {\n transactions.get(allTransactions).put(\"State\", \"Active\");\n ArrayList<String> operations = ((ArrayList) transactions.get(allTransactions).get(\"Blocked_Operations\"));\n ArrayList<String> operationsRef = (ArrayList<String>) operations.clone();\n for (String op : operationsRef) {\n if (blockedOp.containsKey(tr) && blockedOp.get(tr).contains(op))\n ((ArrayList) transactions.get(allTransactions).get(\"Blocked_Operations\")).remove(op);\n }\n }\n }\n }\n }\n /*Running their operations which are activated*/\n if (blockedOp.containsKey(tr)) {\n fw.write(\"Activating if any, the blocked transactions which are blocked by \"+tr+\" and running their operations \\n\");\n for (String op : blockedOp.get(tr)) {\n if (transactions.get(\"T\"+op.charAt(1)).get(\"State\").equals(\"Aborted\") || transactions.get(\"T\"+op.charAt(1)).get(\"State\").equals(\"Commited\"))\n continue;\n fw.write(\"Blocked operation \" + op + \" by \" + tr + \" will be executed \\n\");\n ConcurrencyControl concurrencyControl = new ConcurrencyControl();\n if (op.charAt(0) == 'r') {\n concurrencyControl.readTransaction(transactions, locks, op, blockedOp);\n } else if (op.charAt(0) == 'w') {\n concurrencyControl.writeTransaction(transactions, locks, op, blockedOp);\n } else {\n concurrencyControl.endOrAbort(transactions, locks, \"T\"+op.charAt(1), \"Commited\", blockedOp);\n }\n }\n blockedOp.remove(tr);\n }\n }",
"@Override\n public void commitTx() {\n \n }",
"@Override\n public void rollback() throws SQLException {\n if (isTransActionAlive()) {\n getTransaction().rollback();\n }\n }",
"@Override\n\tpublic Transaction update(Transaction transaction) {\n\t\treturn null;\n\t}",
"void resetTX(Transaction transaction);",
"public synchronized void commit(int trxnId)\n {\n ResourceManager rm;\n for (Enumeration e = transactionTouch.keys(); e.hasMoreElements();) {\n rm = (ResourceManager)e.nextElement();\n try {\n rm.commit(trxnId);\n } catch (Exception x)\n {\n System.out.println(\"EXCEPTION:\");\n System.out.println(x.getMessage());\n x.printStackTrace();\n }\n }\n transactionTouch.remove(trxnId);\n lm.UnlockAll(trxnId);\n }",
"public void deleteTransaction(int id) throws SQLException {\n String sql = \"DELETE FROM LabStore.Transaction_Detail WHERE id = ?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, id);\n preStmt.executeUpdate();\n }\n }",
"@Override\n public void commit() throws SQLException {\n if (isTransActionAlive() && !getTransaction().getStatus().isOneOf(TransactionStatus.MARKED_ROLLBACK,\n TransactionStatus.ROLLING_BACK)) {\n // Flush synchronizes the database with in-memory objects in Session (and frees up that memory)\n getSession().flush();\n // Commit those results to the database & ends the Transaction\n getTransaction().commit();\n }\n }",
"public void delete(Transaction tx,Tuple old) throws RelationException;",
"public long delete(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.DELETE_TYPE);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public void close() throws RemoteException {\r\n tx.commit();\r\n }",
"public boolean deleteTransaction(User user, long transactionId) {\n Optional<Transaction> optional = transactionDAO.findById(user, transactionId);\n if(optional.isPresent()) {\n Transaction transaction = optional.get();\n Budget budget = transaction.getBudget();\n budget.setActual(budget.getActual() - transaction.getAmount());\n transactionDAO.delete(transaction);\n return true;\n }\n return false;\n }",
"protected boolean afterDelete() {\n if (!DOCSTATUS_Drafted.equals(getDocStatus())) {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n } \n \n //C_AllocationLine\n String sql = \"DELETE FROM C_AllocationLine \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PaymentAllocate\n sql = \"DELETE FROM C_PaymentAllocate \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_VALORPAGO\n sql = \"DELETE FROM C_VALORPAGO \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTVALORES\n sql = \"DELETE FROM C_PAYMENTVALORES \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTRET\n sql = \"DELETE FROM C_PAYMENTRET \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n return true;\n\n }",
"void rollbackTransaction(ConnectionContext context) throws IOException;",
"@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }",
"@Override\r\n\tpublic void deleteAd(int tid) {\n\t\tQuery query = (Query) session.createQuery(\"delete EP where pid=:id\");\r\n\t\tquery.setParameter(\"id\", tid);\r\n\t\tquery.executeUpdate();//删除\r\n\t\ttr.commit();//提交事务\r\n\t}",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\t\t\n\t}",
"@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\n\t}",
"public void forceCommitTx()\n{\n}",
"public static void clear() {\r\n\t\tload();\r\n\t\tif (transList.size() == 0) {\r\n\t\t\tSystem.out.println(\"No transaction now....\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (int i = 0; i < transList.size(); i++) {\r\n\t\t\tif (transList.get(i).toFile().charAt(0) == 'd') {\r\n\t\t\t\tDeposit trans = (Deposit) transList.get(i);\r\n\t\t\t\tif (!trans.isCleared()) {\r\n\t\t\t\t\ttrans.setCleared(AccountControl.deposit(trans.getAcc(), trans.getAmount()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tsave();\r\n\t}",
"public void endTransaction(SpaceTech.TransactionEndType tet) {\n\tfor (int i = 0; i < containers.size(); i++) {\n\t\tcontainers.get(i).Lock();\n\t}\n\tfor (int i = 0; i < containers.size(); i++) {\n\t\tswitch (tet) {\n\t\t\tcase TET_COMMIT:\n\t\t\t\tcontainers.get(i).commitTransaction(this);\n\t\t\t\tbreak;\n\t\t\tcase TET_ROLLBACK: case TET_ABORT:\n\t\t\t\tcontainers.get(i).rollbackTransaction(this);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tfor (int i = 0; i < containers.size(); i++) {\n\t\tcontainers.get(i).Unlock();\n\t}\n }",
"public boolean deleteTransaction(String uid){\n return deleteRecord(getID(uid));\n\t}",
"public TransactionObj removeTransaction(TransactionObj Transaction){\n\t\treturn removeTransaction(Transaction.sTransactionID);\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteFundTransaction(Long fundTransactionId) throws InstanceNotFoundException {\n\t\tlogger.debug(\">>deleteFundTransaction\");\n\t\tfundTransactionDao.remove(fundTransactionId);\n\t\tlogger.debug(\"deleteFundTransaction>>\");\n\t}",
"@Override\n\tpublic Transaction update(Integer transactionId, Transaction transaction) {\n\t\treturn null;\n\t}",
"public void UpdateTransaction() {\n\t\tgetUsername();\n\t\tcol_transactionID.setCellValueFactory(new PropertyValueFactory<Account, Integer>(\"transactionID\"));\n\t\tcol_date.setCellValueFactory(new PropertyValueFactory<Account, Date>(\"date\"));\n\t\tcol_description.setCellValueFactory(new PropertyValueFactory<Account, String>(\"description\"));\n\t\tcol_category.setCellValueFactory(new PropertyValueFactory<Account, String>(\"category\"));\n\t\tcol_amount.setCellValueFactory(new PropertyValueFactory<Account, Double>(\"amount\"));\n\t\tmySqlCon.setUsername(username);\n\t\tlists = mySqlCon.getAccountData();\n\t\ttableTransactions.setItems(lists);\n\t}",
"public void abortTransaction(TransID tid) throws IllegalArgumentException {//done\n\t// Check that this is actually an active transaction\n try {\n\t\tatranslist.get(tid).abort();\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\tSystem.out.println(\"IO exception\");\n\t\te.printStackTrace();\n\t\tSystem.exit(-1);\n\t}\n atranslist.remove(tid);\n }",
"protected abstract boolean commitTxn(Txn txn) throws PersistException;",
"public boolean deleteAccountTransactions(AccountTransaction t) {\n\t\t\ttry(Connection conn = ConnectionUtil.getConnection();){\n\t\t\t\tString sql = \"INSERT INTO archive_account_transactions \"\n\t\t\t\t\t\t+ \"(transaction_id,account_id_fk,trans_type,\"\n\t\t\t\t\t\t+ \"debit,credit,signed_amount,running_balance,\"\n\t\t\t\t\t\t+ \"status,memo,user_id_fk,transaction_dt,deleted_by) \"\n\t\t\t\t\t\t+ \"SELECT transaction_id,account_id_fk,trans_type, \"\n\t\t\t\t\t\t+ \"debit,credit,signed_amount,running_balance,\" \n\t\t\t\t\t\t+ \"status,memo,user_id_fk,transaction_dt, ? \"\n\t\t\t\t\t\t+ \"FROM account_transactions \"\n\t\t\t\t\t\t+ \"WHERE account_id_fk = ?;\";\t\t\t\t\t\t\n\t\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\n\t\t\t\tstatement.setInt(1,t.getUserId());\n\t\t\t\tstatement.setInt(2,t.getAccountId());\n\t\t\t\t\n\t\t\t\tint iCount = statement.executeUpdate();\n\t\t\t\t\n\t\t\t\tsql = \t\"DELETE \"\n\t\t\t\t\t\t+ \"FROM account_transactions \"\n\t\t\t\t\t\t+ \"WHERE account_id_fk = ?;\";\t\t\t\t\t\t\n\t\t\t\tstatement = conn.prepareStatement(sql);\n\t\t\t\tstatement.setInt(1,t.getAccountId());\n\t\t\t\t\n\t\t\t\tint dCount = statement.executeUpdate();\n\t\t\t\t\n//\t\t\t\tSystem.out.println(iCount);\n//\t\t\t\tSystem.out.println(dCount);\n\t\t\t\t\n\t\t\t\t//Did you delete the same # of transactions as you moved to archive\n\t\t\t\treturn iCount == dCount;\n\t\t\t\t\t\t\t\t\n\t\t\t}catch(SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn false;\n\t\t\t\n\t\t}",
"public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}",
"public void commitTransaction(long id) throws RelationException;",
"@Override\r\n\tpublic void delete(Connection connection, Salary salary) throws SQLException {\n\r\n\t}",
"@Override\n\tpublic int deletePendingTransactions(String transactionType) {\n\t\treturn 0;\n\t}",
"public void finalizeTransaction(DBConnection conn) throws Exception {\n calculateEmpIdAndDates( true ); \n super.finalizeTransaction( conn );\n }",
"protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}",
"public void rollback();",
"TransactionResponseDTO cancelTransaction(TransactionRequestDTO transactionRequestDTO);",
"@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n/* 160: */ private void eliminarDetallesReporteador(Reporteador reporteador, DetalleReporteador detalleReporteadorPadre)\r\n/* 161: */ throws AS2Exception\r\n/* 162: */ {\r\n/* 163: */ try\r\n/* 164: */ {\r\n/* 165:181 */ List<DetalleReporteador> listaDetalleReporteador = null;\r\n/* 166:182 */ if (detalleReporteadorPadre == null) {\r\n/* 167:183 */ listaDetalleReporteador = reporteador.getListaDetalleReporteador();\r\n/* 168: */ } else {\r\n/* 169:185 */ listaDetalleReporteador = detalleReporteadorPadre.getListaDetalleReporteadorHijo();\r\n/* 170: */ }\r\n/* 171:189 */ for (DetalleReporteador detalleReporteador : listaDetalleReporteador) {\r\n/* 172:190 */ eliminarDetallesReporteador(reporteador, detalleReporteador);\r\n/* 173: */ }\r\n/* 174:194 */ if ((detalleReporteadorPadre != null) && (detalleReporteadorPadre.getId() != 0)) {\r\n/* 175:195 */ this.detalleReporteadorDao.eliminar(detalleReporteadorPadre);\r\n/* 176: */ }\r\n/* 177: */ }\r\n/* 178: */ catch (AS2Exception e)\r\n/* 179: */ {\r\n/* 180:198 */ this.context.setRollbackOnly();\r\n/* 181:199 */ throw e;\r\n/* 182: */ }\r\n/* 183: */ catch (Exception e)\r\n/* 184: */ {\r\n/* 185:201 */ e.printStackTrace();\r\n/* 186:202 */ this.context.setRollbackOnly();\r\n/* 187:203 */ throw new AS2Exception(e.getMessage());\r\n/* 188: */ }\r\n/* 189: */ }",
"public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}",
"@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }",
"@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"@Override\n\tpublic void delete(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}",
"public void flushData (){\n\t\tTransaction tx = this.pm.currentTransaction();\n\t\ttry {\n\t\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\t\tthis.pm.currentTransaction().commit();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tApplication.getLogger ().error (\"Error flushing data for persistence. \", e);\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n//\t\ttx.begin();\n\t}",
"static void closeCurrentTransactionManager() {\n ExecutorDataMap.getDataMap().put(TRANSACTION, null);\n ExecutorDataMap.getDataMap().put(TRANSACTION_CONFIG, null);\n }",
"private void cancel() {\n recoTransaction.cancel();\n }",
"public boolean endTransaction(boolean doCommit) {\n boolean result = false;\n if (_canDisableAutoCommit) {\n try {\n if (doCommit) {\n _connection.commit();\n } else {\n _connection.rollback();\n }\n _connection.setAutoCommit(true);\n result = doCommit;\n } catch (SQLException e) {\n Log.exception(e, this, \"endTransaction\");\n }\n }\n return result;\n }",
"public long delete(long id) throws Exception\n\t{\n\t\tthis.updateStatus(id, SETTConstant.TransactionStatus.DELETED);\n\t\treturn id;\n\t}",
"@After\n public void finaliza() {\n session.getTransaction().rollback();\n session.close();\n }",
"@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}",
"public static void deshabilitarTransaccionManual() {\n try {\n\n con.setAutoCommit(true);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"void confirmTrans(ITransaction trans);",
"@Override\n\t\tpublic boolean update(AccountTransaction t) {\n\t\t\treturn false;\n\t\t}",
"private void commitTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().commit();\n }\n }",
"public void removeAllTransactions() {\n Realm realm = mRealmProvider.get();\n realm.executeTransaction(realm1 -> realm1.deleteAll());\n }"
] | [
"0.7430135",
"0.7147606",
"0.7049074",
"0.679384",
"0.67024446",
"0.6649305",
"0.6498201",
"0.64953727",
"0.64544153",
"0.64520013",
"0.6413765",
"0.63373035",
"0.6328094",
"0.63124174",
"0.6301383",
"0.629708",
"0.62544984",
"0.6210337",
"0.62064976",
"0.6128271",
"0.612227",
"0.610058",
"0.6070613",
"0.6055482",
"0.6027143",
"0.6020616",
"0.6015842",
"0.6015061",
"0.5985458",
"0.5975045",
"0.5969275",
"0.5948484",
"0.5924323",
"0.59071434",
"0.5881574",
"0.58772796",
"0.58588696",
"0.5856386",
"0.58507556",
"0.58483016",
"0.58473456",
"0.58351296",
"0.58051676",
"0.57857394",
"0.5768021",
"0.5762806",
"0.5757711",
"0.5735732",
"0.57219744",
"0.5703053",
"0.56800795",
"0.5669077",
"0.5665599",
"0.5660661",
"0.56419885",
"0.56323385",
"0.5621136",
"0.56152856",
"0.56006175",
"0.5598916",
"0.55920655",
"0.5580489",
"0.5570953",
"0.5570069",
"0.5545991",
"0.55268985",
"0.5524138",
"0.551757",
"0.5510633",
"0.55061203",
"0.55017054",
"0.55016464",
"0.55011666",
"0.54966736",
"0.549471",
"0.5478107",
"0.5472236",
"0.54689044",
"0.5465454",
"0.54625505",
"0.5460206",
"0.54561836",
"0.5449529",
"0.54482555",
"0.54327166",
"0.54039556",
"0.5396723",
"0.5395704",
"0.5390691",
"0.5388458",
"0.537913",
"0.53783256",
"0.5368852",
"0.5361939",
"0.5342873",
"0.53398997",
"0.5336497",
"0.5333082",
"0.5332549",
"0.53316766"
] | 0.71888816 | 1 |
Show Dialog to select Time | private void showDialogTime() {
final TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(),
new TimePickerDialog.OnTimeSetListener() {
@Override
public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
mCal.set(Calendar.HOUR_OF_DAY, hourOfDay);
mCal.set(Calendar.MINUTE, minute);
tvDate.setText(getDateString(mCal));
}
}, mCal.get(Calendar.HOUR_OF_DAY), mCal.get(Calendar.MINUTE), true);
DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),
new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
mCal.set(Calendar.YEAR, year);
mCal.set(Calendar.MONTH, monthOfYear);
mCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);
timePickerDialog.show();
}
}, mCal.get(Calendar.YEAR), mCal.get(Calendar.MONTH), mCal.get(Calendar.DAY_OF_MONTH));
datePickerDialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void timeSelectionDialog() {\n final TimeSelectionDialog timeSelectDialog = new TimeSelectionDialog(this, _game);\n timeSelectDialog.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n _game.setTime(timeSelectDialog.getSelectedTime());\n timeSelectDialog.dismiss();\n }\n });\n timeSelectDialog.show();\n }",
"private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }",
"private void selectTime() {\n Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n timeTonotify = i + \":\" + i1; //temp variable to store the time to set alarm\n mTimebtn.setText(FormatTime(i, i1)); //sets the button text as selected time\n }\n }, hour, minute, false);\n timePickerDialog.show();\n }",
"private void showTimeDialog() {\n\t\tTimePickerDialog tpd = new TimePickerDialog(this, new OnTimeSetListener(){\r\n\t\t\tpublic void onTimeSet(TimePicker view , int hour, int minute){\r\n\t\t\t\tgiorno.set(Calendar.HOUR_OF_DAY,hour);\r\n\t\t\t\tgiorno.set(Calendar.MINUTE,minute); \r\n\t\t\t\tEditText et_ora = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_ora);\r\n\t\t\t\tformatter.applyPattern(\"HH:mm\");\r\n\t\t\t\tet_ora.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.HOUR_OF_DAY), giorno.get(Calendar.MINUTE), true);\r\n\t\ttpd.show();\r\n\t}",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }",
"public void pickTime(View view) {\n\n DialogFragment newFragment = new TimePicker();\n newFragment.show(getFragmentManager(), \"timePicker\");\n\n }",
"@Override\n public void onClick(View v) {\n showDialog(TIME_DIALOG_ID);\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), endtimepicker, trigger.getEndtime().get(Calendar.HOUR), trigger.getEndtime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }",
"private void showTimePicker(){\n\n // Create new time picker instance\n TimePickerDialog timePicker = new TimePickerDialog(this, (view, hourOfDay, minute) -> {\n // Update booking time\n bookingHour = hourOfDay;\n bookingMinute = minute;\n\n // Set the contents of the edit text to the relevant hours / minutes\n timeInput.setText(getString(R.string.desired_time_format, bookingHour, bookingMinute));\n\n }, bookingHour, bookingMinute, true);\n\n timePicker.setTitle(getString(R.string.desired_time_selection));\n timePicker.show();\n\n // Change button colors\n Button positiveButton = timePicker.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = timePicker.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog30 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog30.updateTime(t30Hour30, t30Minute30);\n //show dialog\n timePickerDialog30.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }",
"private void showTimerPickerDialog() {\n backupCal = cal;\n if (cal == null) {\n cal = Calendar.getInstance();\n }\n\n TimePickerFragment fragment = new TimePickerFragment();\n\n fragment.setCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n cal = backupCal;\n EventBus.getDefault().post(new TaskEditedEvent());\n }\n });\n\n fragment.setCalendar(cal);\n fragment.show(getFragmentManager(), \"timePicker\");\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddRDV.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n editTextHeur.setText(String.format(\"%02d\",selectedHour) + \":\" + String.format(\"%02d\" ,selectedMinute)+\":\"+\"00\");\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select time of your appointment\");\n mTimePicker.show();\n\n }",
"private void showTimePicker(){\n final Calendar c = Calendar.getInstance();\n mHour = c.get(Calendar.HOUR_OF_DAY);\n mMinute = c.get(Calendar.MINUTE);\n\n // Launch Time Picker Dialog\n TimePickerDialog tpd = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n // Display Selected time in textbox\n pickupTime.setText(hourOfDay + \":\" + minute);\n// Log.e(TAG,\"Time set: \" + mHour + \",\" + mMinute + \",\");\n }\n }, mHour, mMinute, false);\n\n tpd.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }",
"@Override\n public void onClick(View view) {\n timeDialog.show(getFragmentManager(), \"timePicker\");\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddReminder.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n edtSelectTimeForMeet.setText( \"\" + selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }",
"public void showStartTimeDialog(View v){\n DialogFragment dialogFragment = null;\n switch (v.getId()) {\n case R.id.newEvent_button_from_hour:\n dialogFragment = new StartTimePicker(0);\n break;\n case R.id.newEvent_button_to_hour:\n dialogFragment = new StartTimePicker(1);\n break;\n }\n dialogFragment.show(getFragmentManager(), \"start_time_picker\");\n }",
"public void initializeTime() {\n hour = cal.get(Calendar.HOUR);\n min = cal.get(Calendar.MINUTE);\n\n time = (EditText) findViewById(R.id.textSetTime);\n time.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n if(min < 10) {\n time.setText(hour + \":0\" + min);\n } else {\n time.setText(hour + \":\" + min);\n }\n\n time.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n picker = new TimePickerDialog(ControlCenterActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n if(i1 < 10) {\n time.setText(i + \":0\" + i1);\n } else {\n time.setText(i + \":\" + i1);\n }\n }\n }, hour, min, false);\n\n picker.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddTripActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String a = \"\" + selectedMinute;\n String b = \"\" + selectedHour;\n if(selectedMinute<10){\n a = \"0\"+selectedMinute;\n }\n if(selectedHour<10){\n b = \"0\"+selectedHour;\n }\n mTime.setText( b + \":\" + a);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"@Override\r\n\tpublic void timeDialogCallBack(String time) {\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n eventTime.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Event Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"protected void ShowTimePickerDialog() {\n\r\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tint mHour = c.get(Calendar.HOUR_OF_DAY);\r\n\t\tint mMinute = c.get(Calendar.MINUTE);\r\n\r\n\t\tCustomTimePickerDialog timepicker = new CustomTimePickerDialog(\r\n\t\t\t\tgetActivity(), timePickerListener, mHour, mMinute, false);\r\n\t\ttimepicker.show();\r\n\r\n\t}",
"private void setTime(TextView textView) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n textView.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, false);//Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n }",
"public void showTimePickerDialog(View v) {\n TextView tf = (TextView) v;\n Bundle args = getTimeFromLabel(tf.getText());\n args.putInt(\"id\", v.getId());\n TimePickerFragment newFragment = new TimePickerFragment();\n newFragment.setArguments(args);\n newFragment.show(getSupportFragmentManager(), \"timePicker\");\n }",
"public void showTimePickerDialog(View view) {\n TimePickerDialog timePickerDialog = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n hour1 = hourOfDay;\n minute1 = minute;\n text3.setText(hourOfDay + \":\" + minute);\n }\n }, hour1, minute1, true);\n timePickerDialog.show();\n }",
"public int showDateTimeDialog()\n\t{\n\t\treturn showDialog(owner, layoutPanel, SwingLocale.getString(\"date_time_selector\"), IconFactory.getSwingIcon(\"component/calendar_48.png\"));\n\t}",
"public void showTimePickerDialog(int input) {\n Bundle args = new Bundle();\n args.putInt(\"input\", input);\n DialogFragment newFragment = new TimeFragment();\n newFragment.setArguments(args);\n newFragment.show(getSupportFragmentManager(), \"timePicker\");\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t TimePickerDialog tpd = new TimePickerDialog(contextyeild, //same Activity Context like before\n\t\t\t\t new TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t @Override\n\t\t\t\t public void onTimeSet(TimePicker view, int hourOfDay,int minute) {\n\t\t\t\t \n\t\t\t\t hour = hourOfDay;\n\t\t\t\t \t\t min = minute;\n\t\t\t\t \t\t \n\t\t\t\t \t\t\t String timeSet = \"\";\n\t\t\t\t \t\t\t if (hour > 12) {\n\t\t\t\t \t\t\t hour -= 12;\n\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t \t\t\t } else if (hour == 0) {\n\t\t\t\t \t\t\t hour += 12;\n\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t \t\t\t } else if (hour == 12)\n\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t \t\t\t else\n\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t String minutes = \"\";\n\t\t\t\t \t\t\t if (min < 10)\n\t\t\t\t \t\t\t minutes = \"0\" + min;\n\t\t\t\t \t\t\t else\n\t\t\t\t \t\t\t minutes = String.valueOf(min);\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t // Append in a StringBuilder\n\t\t\t\t \t\t\t String aTime = new StringBuilder().append(hour).append(':')\n\t\t\t\t \t\t\t .append(minutes).append(\" \").append(timeSet).toString();\n\t\t\t\t \t\t\t \n\t\t\t\t \t\t\t harvesttime.setText(aTime); \n\t\t\t\t }\n\t\t\t\t }, hour, min, false);\n\t\t\t\t \n\t\t\t\t tpd.show();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"private void pickTime(final Calendar initTime){\n //callback once time is selected\n TimePickerDialog.OnTimeSetListener setTime = new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n initTime.set(\n initTime.get(Calendar.YEAR),\n initTime.get(Calendar.MONTH),\n initTime.get(Calendar.DATE),\n hourOfDay,\n minute\n );\n setDateTimeViews(); //updates views\n }\n };\n //creates dialogue\n TimePickerDialog timePickerDialog = new TimePickerDialog(this,\n setTime,\n initTime.get(Calendar.HOUR_OF_DAY),\n initTime.get(Calendar.MINUTE),\n false);\n timePickerDialog.show(); //shows the dialogue\n }",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\r\n\t\t\t\t\t\talert_dialog.dismiss();\r\n\t\t\t\t\t\tet_select_time.setText(\"Set Time\");\r\n\t\t\t\t\t\tselect_time = \"\";\r\n\r\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t TimePickerDialog tpd = new TimePickerDialog(contextyeild, //same Activity Context like before\n\t\t\t\t\t\t\t new TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t public void onTimeSet(TimePicker view, int hourOfDay,int minute) {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t hour = hourOfDay;\n\t\t\t\t\t\t\t \t\t min = minute;\n\t\t\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t\t\t String timeSet = \"\";\n\t\t\t\t\t\t\t \t\t\t if (hour > 12) {\n\t\t\t\t\t\t\t \t\t\t hour -= 12;\n\t\t\t\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t\t\t\t \t\t\t } else if (hour == 0) {\n\t\t\t\t\t\t\t \t\t\t hour += 12;\n\t\t\t\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\t\t\t\t\t\t \t\t\t } else if (hour == 12)\n\t\t\t\t\t\t\t \t\t\t timeSet = \"PM\";\n\t\t\t\t\t\t\t \t\t\t else\n\t\t\t\t\t\t\t \t\t\t timeSet = \"AM\";\n\t\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\t String minutes = \"\";\n\t\t\t\t\t\t\t \t\t\t if (min < 10)\n\t\t\t\t\t\t\t \t\t\t minutes = \"0\" + min;\n\t\t\t\t\t\t\t \t\t\t else\n\t\t\t\t\t\t\t \t\t\t minutes = String.valueOf(min);\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t // Append in a StringBuilder\n\t\t\t\t\t\t\t \t\t\t String aTime = new StringBuilder().append(hour).append(':')\n\t\t\t\t\t\t\t \t\t\t .append(minutes).append(\" \").append(timeSet).toString();\n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\t \t\t\t harvesttime.setText(aTime); \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }, hour, min, false);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t tpd.show();\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 1;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 2;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"private void customTime(boolean shouldStart) {\n\n if (customCalendar == null) {\n customCalendar = Calendar.getInstance();\n customYear = customCalendar.get(Calendar.YEAR);\n customMonth = customCalendar.get(Calendar.MONTH);\n customDay = customCalendar.get(Calendar.DAY_OF_MONTH);\n }\n\n timeDialog = new DatePickerDialog(this, this, customYear, customMonth, customDay);\n timeDialog.show();\n if (shouldStart) {\n Toasty.info(StatActivity.this, \"Selection start time\").show();\n } else {\n Toasty.info(StatActivity.this, \"Select end time\").show();\n }\n }",
"@Override\r\n\tpublic void timeDialogCallBack(int hour, int minute) {\n\t\t\r\n\t}",
"public void showTimeStartPickerDialog(View v) {\n DialogFragment newFragment = new TimePickerFragment() {\n @Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n timeStartTV = (TextView)findViewById(R.id.timeStartTV);\n hourStart=hour;\n minuteStart=minute;\n timeStartTV.setText(makeHourFine(hour,minute));\n if(hourEnd!=99||minuteEnd!=99) {\n if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);\n } else\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);\n\n hours = (EditText) findViewById(R.id.HoursET);\n hours.setText(Double.toString(hoursD));\n }\n\n }\n\n };\n newFragment.show(getSupportFragmentManager(), \"timeStartPicker\");\n }",
"private void getTimeView() {\n\n\t\ttry {\n\n\t\t\t// Launch Time Picker Dialog\n\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + hour);\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + minutes);\n\n\t\t\tTimePickerDialog tpd = new TimePickerDialog(this,\n\t\t\t\t\tnew TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay,\n\t\t\t\t\t\t\t\tint minute) {\n\n\t\t\t\t\t\t\tif (rf_booking_date_box.getText().toString()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(currDate.toString())) {\n\t\t\t\t\t\t\t\tc = Calendar.getInstance();\n\t\t\t\t\t\t\t\tint curr_hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t\t\t\t\tint curr_minutes = c.get(Calendar.MINUTE);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_hour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_minutes);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!hourOfDay<curr_hour\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (hourOfDay < curr_hour));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!minute<curr_minutes\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (minute < curr_minutes));\n\n\t\t\t\t\t\t\t\tif (hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute <= curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay == curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes) {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! in if\");\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_Please_choose_valid_time),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay\n\t\t\t\t\t\t\t\t\t\t// + \":\" +\n\t\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\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} else {\n\n\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay +\n\t\t\t\t\t\t\t\t\t// \":\" +\n\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}, hour, minutes, false);\n\t\t\ttpd.show();\n\t\t\ttpd.setCancelable(false);\n\t\t\ttpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void showChooseNonCurNonGarTimeDialog(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\t\t\t\t//timeTextView.setText(timeString[0]);\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tarrivingTime = \"14:00-20:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"14:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1+1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"public void pickAdTime(View view) {\n\n DialogFragment newFragment = new AdTimePicker();\n newFragment.show(getFragmentManager(), \"adTimePicker\");\n\n }",
"public void timeCallback(View v){\n TimePickerDialog timePickerDialog = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n mHour = hourOfDay;\n mMinute = minute;\n String hourStr = String.format(\"%2s\",mHour).replace(\" \", \"0\");\n String minuteStr = String.format(\"%2s\",mMinute).replace(\" \", \"0\");\n ((EditText)findViewById(R.id.entry_time)).setText(hourStr+\":\"+minuteStr);\n }\n }, mHour, mMinute, false);\n timePickerDialog.show();\n }",
"private void showChooseCurNonGarTimeDialog1(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"@Override\n public void onClick(View v) {\n TimePickerDialog timePicker = new TimePickerDialog(\n PHUpdateNonRecurringScheduleActivity.this,\n mTimeSetListener, mHour, mMinute, true);\n\n timePicker.show();\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n in_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (out_time.getText().toString().trim().equals(\"\")) {\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"public static String showTimePickerDialog(final Context appContext,\n final TextView eStartTime) {\n\n final Calendar c = Calendar.getInstance();\n currentHour = c.get(Calendar.HOUR_OF_DAY);\n currentMinute = c.get(Calendar.MINUTE);\n currentSeconds = c.get(Calendar.SECOND);\n TimePickerDialog tpd = new TimePickerDialog(appContext,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minutes) {\n int hour = hourOfDay;\n int minute = minutes;\n String time = \"\" + hourOfDay + \"\" + minutes + \"00\";\n DTU.time = time;\n int flg = 0;\n String strHour, strMinutes, strAMPM;\n\n if (hour > 12) {\n flg = 1;\n hour = hour - 12;\n strAMPM = \"PM\";\n } else {\n strAMPM = \"AM\";\n }\n if (hour < 10) {\n strHour = \"0\" + hour;\n } else {\n strHour = \"\" + hour;\n }\n if (minute < 10) {\n strMinutes = \"0\" + minute;\n } else {\n strMinutes = \"\" + minute;\n }\n eStartTime\n .setText(strHour + \":\" + strMinutes + strAMPM);\n\n }\n }, currentHour, currentMinute, false);\n tpd.show();\n\n return \"\";\n }",
"private void showChooseCurNonGarTimeDialog2(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"public void setPickerTime(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(TimePicker.class.getName())))\n .perform(PickerActions.setTime(date.getHour(), date.getMinute()));\n new Dialog().confirmDialog();\n }",
"public void showTimeEndPickerDialog(View v) {\n DialogFragment newFragment = new TimePickerFragment() {\n @Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n timeEndTV = (TextView)findViewById(R.id.timeEndTV);\n timeEndTV.setText(makeHourFine(hour, minute));\n hourEnd=hour;\n minuteEnd=minute;\n if(hourStart!=99||minuteStart!=99) {\n if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {\n hoursD =Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);\n } else\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);\n\n hours = (EditText) findViewById(R.id.HoursET);\n hours.setText(Double.toString(hoursD));\n }\n\n\n }\n\n\n };\n newFragment.show(getSupportFragmentManager(), \"timeStartPicker\");\n }",
"@Override\n public void onClick(View v) {\n if(v == botonHora){\n final Calendar calendar = Calendar.getInstance();\n hora = calendar.get(Calendar.HOUR_OF_DAY);\n minutos = calendar.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n if(minute <10)\n campoHora.setText(hourOfDay+\":\"+\"0\"+minute);\n else\n campoHora.setText(hourOfDay+\":\"+minute);\n }\n },hora,minutos,false);\n timePickerDialog.show();\n }\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n out_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (in_time.getText().toString().trim().equals(\"\")) {\n *//*if(!validateintime())\n return;*//*\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\r\n\tpublic void ptimeDialogCallBack(int hour, int minute) {\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n long epochTime = getCurrentTimeSetting();\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(epochTime);\n\n int id = v.getId();\n switch (id) {\n case R.id.text_date:\n DatePickerDialog datePickerDialog = new DatePickerDialog(\n mContext, this,\n cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH)\n );\n datePickerDialog.show();\n break;\n case R.id.text_clock:\n TimePickerDialog timePickerDialog = new TimePickerDialog(\n mContext, this,\n cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), false\n );\n timePickerDialog.show();\n break;\n }\n }"
] | [
"0.8254651",
"0.8245998",
"0.79405963",
"0.77397996",
"0.75939393",
"0.7590987",
"0.75764906",
"0.75367105",
"0.7534164",
"0.753281",
"0.75307494",
"0.7524149",
"0.75226027",
"0.7521073",
"0.7519463",
"0.7517351",
"0.75170356",
"0.7511018",
"0.7508362",
"0.74939007",
"0.7490699",
"0.74882555",
"0.74869376",
"0.7482605",
"0.7481421",
"0.7480479",
"0.74803466",
"0.7476628",
"0.74761796",
"0.7473623",
"0.74714524",
"0.7466711",
"0.7466269",
"0.74588764",
"0.74570465",
"0.74565756",
"0.744719",
"0.7439803",
"0.7439489",
"0.7436544",
"0.7435148",
"0.7434785",
"0.74334097",
"0.74324626",
"0.7427112",
"0.7411767",
"0.7410975",
"0.7410322",
"0.74070704",
"0.74045444",
"0.7400928",
"0.7400832",
"0.73961365",
"0.7387636",
"0.7383676",
"0.73803174",
"0.73801386",
"0.73754126",
"0.7363498",
"0.73447686",
"0.73430854",
"0.729561",
"0.729334",
"0.72730786",
"0.7223168",
"0.7205643",
"0.7185248",
"0.71803594",
"0.7165835",
"0.7149403",
"0.7136289",
"0.71006286",
"0.70843005",
"0.70775634",
"0.70700514",
"0.70629793",
"0.7060595",
"0.7036826",
"0.70013505",
"0.6997609",
"0.69957465",
"0.6988896",
"0.69737005",
"0.69576436",
"0.69569635",
"0.6952227",
"0.69005007",
"0.6888334",
"0.68750477",
"0.68739486",
"0.6803236",
"0.6802177",
"0.6797925",
"0.6787959",
"0.6762794",
"0.67459536",
"0.6743154",
"0.6740989",
"0.67244995",
"0.6720513"
] | 0.74083483 | 48 |
End showDialogTime Start fragment to select Category | private void startFragmentSelectCategory(int oldCategoryId) {
LogUtils.logEnterFunction(Tag, "OldCategoryId = " + oldCategoryId);
FragmentTransactionSelectCategory nextFrag = new FragmentTransactionSelectCategory();
Bundle bundle = new Bundle();
bundle.putInt("Tab", mTab);
bundle.putBoolean("CategoryType", false);
bundle.putInt("CategoryID", oldCategoryId);
bundle.putSerializable("Callback", this);
nextFrag.setArguments(bundle);
mActivity.addFragment(mTab, mContainerViewId, nextFrag, "FragmentTransactionSelectCategory", true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openCategorySelection() {\n CategorySelectionDialogFragment categorySelectionDialogFragment = CategorySelectionDialogFragment\n .newInstance(categories);\n categorySelectionDialogFragment.show(getChildFragmentManager(), \"CategorySelectionDialogFragment\");\n }",
"public void onCategoryClicked(String category){\n\t\tfor(int i = 0 ; i < mData.getStatistics().size(); i++){\r\n\t\t\tif(mData.getStatistics().get(i).getCategory().equals(category)){\r\n\t\t\t\tif(mData.getStatistics().get(i).getDueChallenges() == 0){\r\n\t\t\t\t\tmGui.showToastNoDueChallenges(mData.getActivity());\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//Start activity challenge (learn session) with category and user \t\r\n\t\t\t\t\tNavigation.startActivityChallenge(mData.getActivity(), mData.getUser(), category);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}",
"@Override\n public void addCategory(Fragment targetFragment) {\n DialogFragment dialog = new AddEditCategoryDialog();\n Bundle bundle = new Bundle();\n bundle.putInt(MyConstants.DIALOGE_TYPE, MyConstants.DIALOGE_CATEGORY_ADD);\n dialog.setArguments(bundle);\n dialog.setTargetFragment(targetFragment, 0);\n dialog.show(getSupportFragmentManager(), \"Add_Category\");\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n DialogFragment newFragment;\n switch (id) {\n case R.id.action_move:\n if (selected != -1) {\n MoveCategoryDialogFragment newDialogFragment = new MoveCategoryDialogFragment();\n newDialogFragment.setSelected(selected);\n newDialogFragment.show(getSupportFragmentManager(), \"Move category\");\n selected = -1;\n } else {\n CharSequence text = \"Please first select transaction!\";\n Toast toast = Toast.makeText(getApplicationContext(), text, Toast.LENGTH_LONG);\n toast.show();\n }\n return true;\n case R.id.action_change_rules:\n newFragment = new ChangeRuleDialogFragment();\n newFragment.show(getSupportFragmentManager(), \"Change category rule\");\n return true;\n case R.id.action_filter:\n start = null;\n end = null;\n Intent intent = new Intent(this, FilterActivity.class);\n DatePickerFragment.setIntent(intent);\n newFragment = new DatePickerFragment();\n newFragment.show(getSupportFragmentManager(), \"datePicker\");\n newFragment = new DatePickerFragment();\n newFragment.show(getSupportFragmentManager(), \"datePicker\");\n return true;\n case R.id.action_settings:\n // TODO:\n return true;\n default:\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }",
"@Override\n protected void onOk(Category category) {\n if (getPart().getCategory() != null) {\n getCurrentConversation().getEntityManager().detach(getPart().getCategory());\n }\n\n getPart().setCategory(category);\n messageUtil.infoEntity(\"status_created_ok\", category);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n mCategoryDao.delete(mCategoryDao.getCategoryByID(selectedCategory));\n Intent intent = new Intent(ACT_Detailed_Category_Editable.this,ACT_Initial_Category_Display.class);\n startActivity(intent);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n String type = getArguments().getString(\"type\");\n if(type != null && type.equals(\"农田发布\"))\n ((FarmerRelease) getActivity()).selectDate();\n return null;\n }",
"public void selectCategory() {\n\t\t\r\n\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n \t\tCategory.this.finish();\n\n \t }",
"public void onSelectCategory(View view) {\n\n Intent intent = new Intent(this, SelectCategoryActivity.class);\n intent.putExtra(\"whichActivity\", 1);\n startActivity(intent);\n\n }",
"@Override\n\t\t\t\t\tpublic void onSelcted(Category mParent, Category category) {\n\t\t\t\t\t\tif (view == solverMan) {\n\t\t\t\t\t\t\tsolverCategory = category;\n\t\t\t\t\t\t\tsolverMan.setContent(category.getName());\n\t\t\t\t\t\t} else {// check is foucs choose person\n\t\t\t\t\t\t\tChooseItemView chooseItemView = (ChooseItemView) view\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.common_add_item_title);\n\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (category.getId().equals(mCategory.getId())) {\n\t\t\t\t\t\t\t\t\t// modify do nothing.\n\t\t\t\t\t\t\t\t\tif (!category.getName().equals(\n\t\t\t\t\t\t\t\t\t\t\tchooseItemView.getContent())) {\n\t\t\t\t\t\t\t\t\t\tshowToast(\"该关注人已经在列表了\");// not in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// chooseItem,but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// other already\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// has this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// name.\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchooseItemView.setContent(category.getName());\n\n\t\t\t\t\t\t\tAddItem addItem = (AddItem) chooseItemView.getTag();\n\t\t\t\t\t\t\t// 关注人是否已经存在,就只更新\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (addItem.tag.equals(mCategory.tag)) {\n\t\t\t\t\t\t\t\t\t// modify .\n\t\t\t\t\t\t\t\t\tmCategory.setName(category.getName());\n\t\t\t\t\t\t\t\t\tmCategory.setId(category.getId());\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLog.i(TAG,\n\t\t\t\t\t\t\t\t\t\"can not find the select item from fouc:\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}",
"@Override\n public void onClick(final View v) {\n AlertDialog.Builder dl = new AlertDialog.Builder(v.getContext());\n dl.setTitle(\"카테고리 선택\");\n dl.setSingleChoiceItems(items, 0, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n //Toast.makeText(v.getContext(), items[which], Toast.LENGTH_SHORT).show();\n ActivityStCategory = items[which];\n }\n });\n dl.setPositiveButton(\"선택완료\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id)\n {\n // 프로그램을 종료한다\n ActivitySelectBool = true;\n ActivityBtCategoty.setText(ActivityStCategory);\n dialog.dismiss(); // 누르면 바로 닫히는 형태\n }\n });\n\n dl.setNegativeButton(\"취소\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id)\n {\n // 프로그램을 종료한다\n dialog.dismiss(); // 누르면 바로 닫히는 형태\n }\n });\n\n\n dl.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n try {\n if (GlobalElements.isConnectingToInternet(getActivity())) {\n if (newFolderEdt.getText().toString().equals(\"\")) {\n Toaster.show(getActivity(), \"Enter Category Name\", false, Toaster.DANGER);\n } else {\n addCategory(\"add\", newFolderEdt.getText().toString());\n }\n\n } else {\n GlobalElements.showDialog(getActivity());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n protected void onSelected(Category category) {\n setSelectedCategory(category);\n messageUtil.infoEntity(\"status_selected_ok\", getPart().getCategory());\n }",
"@Override\r\n public void onShow(DialogInterface dialog) {\n btnDeviceSelectCancel = (Button) deviceSelectConctentView.findViewById(R.id.btnDeviceSelectCancel);\r\n\r\n btnDeviceSelectCancel.setOnClickListener(PlaybackFragment.this);\r\n\r\n }",
"@Override\r\n public void onShow(DialogInterface dialog) {\n btnDeviceSelectCancel = (Button) deviceSelectConctentView.findViewById(R.id.btnDeviceSelectCancel);\r\n\r\n btnDeviceSelectCancel.setOnClickListener(PlaybackFragment.this);\r\n\r\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityStCategory = items[which];\n }",
"public void showStartTimeDialog(View v){\n DialogFragment dialogFragment = null;\n switch (v.getId()) {\n case R.id.newEvent_button_from_hour:\n dialogFragment = new StartTimePicker(0);\n break;\n case R.id.newEvent_button_to_hour:\n dialogFragment = new StartTimePicker(1);\n break;\n }\n dialogFragment.show(getFragmentManager(), \"start_time_picker\");\n }",
"private void showFilterDialog(){\n final Dialog dialog = new Dialog(this);\n\n dialog.setContentView(R.layout.filter_search);\n dialog.setTitle(\"Search Filter\");\n\n Button okBtn = (Button) dialog.findViewById(R.id.okBtn);\n Button cancelBtn = (Button) dialog.findViewById(R.id.cancelBtn);\n final Spinner categorySpn = (Spinner) dialog.findViewById(R.id.categorySpn);\n final TextView rangeTw = (TextView) dialog.findViewById(R.id.rangeTw);\n String[] categories = getResources().getStringArray(R.array.question_category_array);\n\n ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(MainActivity.this, R.layout.support_simple_spinner_dropdown_item, categories);\n categorySpn.setAdapter(spinnerAdapter);\n\n cancelBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n okBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String category = categorySpn.getSelectedItem().toString();\n String range = rangeTw.getText().toString();\n range = range.equals(\"\")?\"NOT_SET\":range;\n\n if(currentLocation==null) {\n Snackbar.make(MainActivity.this.drawer,\n \"Wait until GPS find your location.\"\n ,Snackbar.LENGTH_LONG).show();\n return;\n }\n if(mSearchView.getQuery().trim().equals(\"\")){\n Snackbar.make(MainActivity.this.drawer,\n \"You need to enter some query first\"\n ,Snackbar.LENGTH_LONG).show();\n return;\n }\n mSearchView.showProgress();\n mSearchView.clearSuggestions();\n questionHandler.searchQuestions(MainActivity.this.mSearchView.getQuery(),\n category,range,\n currentLocation.getPosition().latitude,\n currentLocation.getPosition().longitude,\n REQUEST_TAG,\n new SearchQuestionListener(MainActivity.this));\n }\n });\n\n dialog.show();\n dialog.getWindow().setLayout((6*getResources().getDisplayMetrics().widthPixels)/7, DrawerLayout.LayoutParams.WRAP_CONTENT);\n\n }",
"@Override\r\n\t public void onClick(View arg0) {\n\r\n\t\t String cat = et2.getText().toString();\r\n\t\t if(!cat.trim().equals(\"\"))\r\n\t\t {\r\n\t\t\t closeDialogs();\r\n\r\n\t\t et2.setText(\"\");\r\n\r\n\t\t addCategory(cat,getActivity());\r\n\t\t\t\t //addProduct(department,product);\r\n\t\t //notify the list so that changes can take effect\r\n\t\t ExpAdapter.notifyDataSetChanged();\r\n\t\t expandAll();\r\n\t\t // dialog.dismiss();\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t Toast.makeText(getActivity(),\"Enter Category Name\",Toast.LENGTH_SHORT).show();\r\n\t\t\t// Toast.makeText(, \"Colosed\", Toast.LENGTH_SHORT).show();\r\n\t\t }\r\n\t }",
"void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }",
"private void onCategorySelected(Category category) {\n et_category.setText(category.getName());\n et_category_id.setText(String.valueOf(category.getKey()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }",
"public void showOptions() {\n this.popupWindow.showAtLocation(this.layout, 17, 0, 0);\n this.customview.findViewById(R.id.dialog).setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.pdf.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = \"pdf\";\n discussionActivity.showPdfChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.img.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = ContentTypes.EXTENSION_JPG_1;\n discussionActivity.showImageChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.cancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n Log.i(\"CheeseSelectionFragment\",selectedCheeses+\" THIS IS THE SELECTED CHEESES\");\n BuildPizzaDialog dialog;\n dialog = new BuildPizzaDialog();\n dialog.show(getFragmentManager(), \"dialog\");\n\n // MAKE THIS CREATE THE PIZZA. GO TO LISTVIEW FRAGMENT.\n // activityCallback.changeFragment(\"SauceSelectionFragment\");\n }",
"@Override\n public void onClick(View view) {\n dialog = new Dialog(getActivity());\n dialog.getWindow().getAttributes().windowAnimations = R.style.up_down;\n dialog.setContentView(R.layout.add_food_fragment);\n dialog.setCancelable(true);\n Window window = dialog.getWindow();\n window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n if (dialog != null && dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n }\n initDialog();\n\n\n //Spinner to show list add Food Ways\n spinner();\n\n dialog.show();\n }",
"@Override\r\n public void onClick(View view) {\n Bundle bundle = new Bundle();\r\n bundle.putInt(CategoryItem.CAT_ID, categoryItem.getCategoryId());\r\n categoryFragment.setArguments(bundle);\r\n String title = mContext.getResources().getString(R.string.app_name);\r\n HomeMainActivity.addFragmentToBackStack(categoryFragment, title);\r\n }",
"private void showCategoryMenu() {\n if(CategoryMenu == null) {\n CategoryMenu = new PopupMenu(getActivity(), CategoryExpand);\n CategoryMenu.setOnMenuItemClickListener(this);\n\n MenuInflater inflater = CategoryMenu.getMenuInflater();\n inflater.inflate(R.menu.category_menu, CategoryMenu.getMenu());\n }\n\n if(Equival.isChecked()){\n Toaster toaster = new Toaster(getContext());\n toaster.standardToast(getText(R.string.err_modify_category).toString());\n }\n else CategoryMenu.show();\n setFromCategoryTitleToMenu();\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch(id){\n case R.id.calculator:\n startActivity(new Intent(this,Calc.class));\n return true;\n case R.id.categoriesNewGD:\n LayoutInflater li = LayoutInflater.from(GoalDisActivity.this);\n View promptsCategoryView = li.inflate(R.layout.category_layout, null);\n build = new AlertDialog.Builder(GoalDisActivity.this);\n build.setTitle(\"New Category\");\n build.setMessage(\"Please Enter new Category\");\n build.setView(promptsCategoryView);\n CatgyValue = (EditText) promptsCategoryView.findViewById(R.id.CategoryEnter1);\n //PayValue.isFocused();\n CatgyValue.setFocusableInTouchMode(true);\n CatgyValue.setFocusable(true);\n CatgyValue.requestFocus();\n //InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n //imm.showSoftInput(PayValue, InputMethodManager.SHOW_IMPLICIT);\n build.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (CatgyValue.getText().toString().isEmpty() || CatgyValue.getText().toString().equals(\" \")) {// check is textbox is empty or Not\n Toast.makeText(getApplicationContext(), \"Enter a category and click\", Toast.LENGTH_LONG).show();\n } else {\n dataBase = cHelper.getWritableDatabase();\n Cursor gCursor;\n String str = Character.toUpperCase(CatgyValue.getText().toString().charAt(0)) + CatgyValue.getText().toString().substring(1).toLowerCase();//capitalize the string\n if (Build.VERSION.SDK_INT > 15) {\n gCursor = dataBase.rawQuery(\"SELECT * FROM \" + DbHelperCategory.TABLE_NAME + \" WHERE \" + DbHelperCategory.CAT_TYPE + \"=?\", new String[]{str}, null);\n } else {\n gCursor = dataBase.rawQuery(\"SELECT * FROM \" + DbHelperCategory.TABLE_NAME, null);\n }\n String dbData = null;\n int catgyFlag = 0;\n if (gCursor.getCount() > 0) {\n Toast.makeText(getApplicationContext(), \"Data present\", Toast.LENGTH_LONG).show();\n catgyFlag = 1;\n }\n //gCursor.close();\n //dataBase.close();\n if (catgyFlag == 1) {\n Toast.makeText(getApplicationContext(), \"Sorry, this option is already present\", Toast.LENGTH_LONG).show();\n gCursor.close();\n dataBase.close();\n } else {\n ContentValues values = new ContentValues();\n values.put(DbHelperCategory.CAT_TYPE, str);\n dataBase.insert(DbHelperCategory.TABLE_NAME, null, values);\n dataBase.close();\n //setContentView(R.layout.activity_goal);\n //categoryFunc();// to update the Category Spinner\n Toast.makeText(getApplication(), CatgyValue.getText().toString(), Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }\n }\n }\n });\n\n build.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplication(), \"New Category Cancelled\", Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }\n });\n\n alert = build.create();\n alert.show();\n alert.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n return true;\n }\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onClick(View view) {\n timeDialog.show(getFragmentManager(), \"timePicker\");\n }",
"public void showInputCategoryCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_INPUT_CATEGORY_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_INPUT_CATEGORY_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Input Category\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n InputCategoryCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }",
"private void timeSelectionDialog() {\n final TimeSelectionDialog timeSelectDialog = new TimeSelectionDialog(this, _game);\n timeSelectDialog.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n _game.setTime(timeSelectDialog.getSelectedTime());\n timeSelectDialog.dismiss();\n }\n });\n timeSelectDialog.show();\n }",
"@Override\n\t\t\tpublic void onShow(DialogInterface dialog) {\n\t\t\t\tsetActivityInvisible();\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n view=inflater.inflate(R.layout.fragment_first_slide, container, false);\n\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(AppConstants.KEY_SIGN_UP, MODE_PRIVATE);\n if(sharedPreferences != null && sharedPreferences.getString(AppConstants.LANG_choose, Locale.getDefault().getLanguage()) != null){\n lang = sharedPreferences.getString(AppConstants.LANG_choose,Locale.getDefault().getLanguage());\n } else {\n lang = Locale.getDefault().getLanguage();\n }\n if(sharedPreferences != null && sharedPreferences.getString(AppConstants.token, Locale.getDefault().getLanguage()) != null){\n token = sharedPreferences.getString(AppConstants.token,\"\");\n }\n\n\n percent = view.findViewById(R.id.percent);\n profileimage = view.findViewById(R.id.profileimage);\n profile_name = view.findViewById(R.id.profile_name);\n profile_dsc = view.findViewById(R.id.profile_dsc);\n askasteschar=view.findViewById(R.id.askasteschar);\n cardview=view.findViewById(R.id.cardview);\n\n getConsultants(lang, token, ADVISOR_POSITION);\n\n askasteschar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n AdvisoeDeailsBottomDialog advisoeDeailsBottomDialog = new AdvisoeDeailsBottomDialog();\n Bundle bundle = new Bundle();\n bundle.putString(AppConstants.CATEGORY_ID, categoryId);\n bundle.putString(AppConstants.CATEGORY_TYPE, category);\n bundle.putString(AppConstants.ADVISOR_ID, id);\n advisoeDeailsBottomDialog.setArguments(bundle);\n advisoeDeailsBottomDialog.show(getFragmentManager(), advisoeDeailsBottomDialog.getTag());\n\n }\n });\n\n cardview.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment fragment = new CategoriesdetailsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(AppConstants.CATEGORY_ID, categoryId);\n bundle.putString(AppConstants.toolbartiltle, category);\n fragment.setArguments(bundle);\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.mainContainer, fragment, \"HomeFragment\").commit();\n\n\n }\n });\n\n profileimage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });\n\n return view;\n\n }",
"public void addShoppingList() {\n\n\n /* Close the dialog fragment */\n FilterDialogFragment.this.getDialog().cancel();\n\n }",
"@SuppressWarnings(\"deprecation\")\r\n @Override\r\n public void onShow(DialogInterface dialog) {\n\r\n tvDateTimeTitle = (TextView) datetimeSelectConctentViewCloud.findViewById(R.id.tvDateTimeTitleCloud);\r\n tvDateTimeCurrent = (TextView) datetimeSelectConctentViewCloud.findViewById(R.id.tvDateTimeCurrentCloud);\r\n\r\n mSelectDatePickerCloud = (DatePicker) datetimeSelectConctentViewCloud.findViewById(R.id.mSelectDatePickerCloud);\r\n mSelectTimePickerCloud = (TimePicker) datetimeSelectConctentViewCloud.findViewById(R.id.mSelectTimePickerCloud);\r\n layoutDatePickerCloud = (LinearLayout) datetimeSelectConctentViewCloud.findViewById(R.id.layoutDatePickerCloud);\r\n layoutTimePickerCloud = (LinearLayout) datetimeSelectConctentViewCloud.findViewById(R.id.layoutTimePickerCloud);\r\n\r\n btnDatetimeSelectCancel = (Button) datetimeSelectConctentViewCloud.findViewById(R.id.btnDatetimeSelectCancelCloud);\r\n btnDatetimeSelectOK = (Button) datetimeSelectConctentViewCloud.findViewById(R.id.btnDatetimeSelectOKCloud);\r\n\r\n btnDatetimeSelectOK.setOnClickListener(PlaybackFragment.this);\r\n btnDatetimeSelectCancel.setOnClickListener(PlaybackFragment.this);\r\n\r\n if (nDatetimeMode == DATETIME_MODE_DATE) {\r\n tvDateTimeTitle.setText(R.string.lblDate2);\r\n layoutDatePickerCloud.setVisibility(View.VISIBLE);\r\n layoutTimePickerCloud.setVisibility(View.GONE);\r\n\r\n mSelectDatePickerCloud.init(nYear_Cloud, nMonth_Cloud, nDay_Cloud, new DatePicker.OnDateChangedListener() {\r\n\r\n @Override\r\n public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\r\n // TODO Auto-generated method stub\r\n if ((mSelectDatePickerCloud.getMonth() + 1) < 10 && mSelectDatePickerCloud.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePickerCloud.getYear() + \"-0\" + (mSelectDatePickerCloud.getMonth() + 1) + \"-0\" + mSelectDatePickerCloud.getDayOfMonth());\r\n } else if ((mSelectDatePickerCloud.getMonth() + 1) >= 10 && mSelectDatePickerCloud.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePickerCloud.getYear() + \"-\" + (mSelectDatePickerCloud.getMonth() + 1) + \"-0\" + mSelectDatePickerCloud.getDayOfMonth());\r\n } else if ((mSelectDatePickerCloud.getMonth() + 1) < 10 && mSelectDatePickerCloud.getDayOfMonth() >= 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePickerCloud.getYear() + \"-0\" + (mSelectDatePickerCloud.getMonth() + 1) + \"-\" + mSelectDatePickerCloud.getDayOfMonth());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePickerCloud.getYear() + \"-\" + (mSelectDatePickerCloud.getMonth() + 1) + \"-\" + mSelectDatePickerCloud.getDayOfMonth());\r\n }\r\n\r\n }\r\n });\r\n\r\n if ((mSelectDatePickerCloud.getMonth() + 1) < 10 && mSelectDatePickerCloud.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePickerCloud.getYear() + \"-0\" + (mSelectDatePickerCloud.getMonth() + 1) + \"-0\" + mSelectDatePickerCloud.getDayOfMonth());\r\n } else if ((mSelectDatePickerCloud.getMonth() + 1) >= 10 && mSelectDatePickerCloud.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePickerCloud.getYear() + \"-\" + (mSelectDatePickerCloud.getMonth() + 1) + \"-0\" + mSelectDatePickerCloud.getDayOfMonth());\r\n } else if ((mSelectDatePickerCloud.getMonth() + 1) < 10 && mSelectDatePickerCloud.getDayOfMonth() >= 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePickerCloud.getYear() + \"-0\" + (mSelectDatePickerCloud.getMonth() + 1) + \"-\" + mSelectDatePickerCloud.getDayOfMonth());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePickerCloud.getYear() + \"-\" + (mSelectDatePickerCloud.getMonth() + 1) + \"-\" + mSelectDatePickerCloud.getDayOfMonth());\r\n }\r\n\r\n } else if (nDatetimeMode == DATETIME_MODE_STARTTIME) {\r\n tvDateTimeTitle.setText(R.string.lblStartTime2);\r\n layoutDatePickerCloud.setVisibility(View.GONE);\r\n layoutTimePickerCloud.setVisibility(View.VISIBLE);\r\n\r\n mSelectTimePickerCloud.setIs24HourView(true);\r\n mSelectTimePickerCloud.setCurrentHour((int) nStartHour);// 锟斤拷锟斤拷timePicker小时锟斤拷\r\n mSelectTimePickerCloud.setCurrentMinute((int) nStartMin); // 锟斤拷锟斤拷timePicker锟斤拷锟斤拷锟斤拷\r\n mSelectTimePickerCloud.setOnTimeChangedListener(new OnTimeChangedListener() {\r\n\r\n @Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\r\n // TODO Auto-generated method stub\r\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }\r\n\r\n });\r\n\r\n if (mSelectTimePickerCloud.getCurrentHour() < 10 && mSelectTimePickerCloud.getCurrentMinute() < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + mSelectTimePickerCloud.getCurrentHour() + \":0\" + mSelectTimePickerCloud.getCurrentMinute());\r\n } else if (mSelectTimePickerCloud.getCurrentHour() >= 10 && mSelectTimePickerCloud.getCurrentMinute() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectTimePickerCloud.getCurrentHour() + \":0\" + mSelectTimePickerCloud.getCurrentMinute());\r\n } else if (mSelectTimePickerCloud.getCurrentHour() < 10 && mSelectTimePickerCloud.getCurrentMinute() >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + mSelectTimePickerCloud.getCurrentHour() + \":\" + mSelectTimePickerCloud.getCurrentMinute());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectTimePickerCloud.getCurrentHour() + \":\" + mSelectTimePickerCloud.getCurrentMinute());\r\n }\r\n\r\n } else if (nDatetimeMode == DATETIME_MODE_ENDTIME) {\r\n tvDateTimeTitle.setText(R.string.lblEndTime2);\r\n layoutDatePickerCloud.setVisibility(View.GONE);\r\n layoutTimePickerCloud.setVisibility(View.VISIBLE);\r\n\r\n // @@System.out.println();// add for test\r\n mSelectTimePickerCloud.setIs24HourView(true);\r\n mSelectTimePickerCloud.setCurrentHour((int) nEndHour);// 锟斤拷锟斤拷timePicker小时锟斤拷\r\n mSelectTimePickerCloud.setCurrentMinute((int) nEndMin); // 锟斤拷锟斤拷timePicker锟斤拷锟斤拷锟斤拷\r\n mSelectTimePickerCloud.setOnTimeChangedListener(new OnTimeChangedListener() {\r\n\r\n @Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\r\n // TODO Auto-generated method stub\r\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }\r\n\r\n });\r\n\r\n if (mSelectTimePickerCloud.getCurrentHour() < 10 && mSelectTimePickerCloud.getCurrentMinute() < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + mSelectTimePickerCloud.getCurrentHour() + \":0\" + mSelectTimePickerCloud.getCurrentMinute());\r\n } else if (mSelectTimePickerCloud.getCurrentHour() >= 10 && mSelectTimePickerCloud.getCurrentMinute() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectTimePickerCloud.getCurrentHour() + \":0\" + mSelectTimePickerCloud.getCurrentMinute());\r\n } else if (mSelectTimePickerCloud.getCurrentHour() < 10 && mSelectTimePickerCloud.getCurrentMinute() >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + mSelectTimePickerCloud.getCurrentHour() + \":\" + mSelectTimePickerCloud.getCurrentMinute());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectTimePickerCloud.getCurrentHour() + \":\" + mSelectTimePickerCloud.getCurrentMinute());\r\n }\r\n }\r\n\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_bycategory_exp, container, false);\n\n\n\n showData(view);\n //TODO\n\n //CAT RECYCLERVIEW\n\n\n\n\n// AdapterByCategory_Expenses adapter_ByCategory_expenses =new AdapterByCategory_Expenses(getActivity());\n// recyclerViewCat_exp.setAdapter(adapter_ByCategory_expenses);\n\n\n //DIALOG RECYCLERVIEW\n\n return view;\n }",
"public void showStartDateDialog(View v){\n DialogFragment dialogFragment = null;\n switch (v.getId()) {\n case R.id.newEvent_button_from:\n dialogFragment = new StartDatePicker(0);\n break;\n case R.id.newEvent_button_to:\n dialogFragment = new StartDatePicker(1);\n break;\n }\n dialogFragment.show(getFragmentManager(), \"start_date_picker\");\n }",
"public void chooseCategory(){\n String title = intent.getStringExtra(\"title\");\n String content = intent.getStringExtra(\"content\");\n TextView titleView = findViewById(R.id.category_grid_title);\n titleView.setText(R.string.choose_category_title);\n categoriesAdapter.passInfo(title, content);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback_category, container, false);\n ((ActivityHome) getActivity()).getSupportActionBar().setTitle(getString(R.string.feedbackCategory));\n llNoList = (LinearLayout) view.findViewById(R.id.llNoList);\n etFeedbackCategoryName = view.findViewById(R.id.etFeedbackCategoryName);\n btnSubmit = view.findViewById(R.id.btnSubmit);\n //addDialogFeedbackCategory();\n rvFeedbackCategory = view.findViewById(R.id.rvFeedbackCategory);\n // use a linear layout manager\n layoutManager = new LinearLayoutManager(getContext());\n rvFeedbackCategory.setLayoutManager(layoutManager);\n\n btnSubmit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n name = etFeedbackCategoryName.getText().toString().trim();\n if (TextUtils.isEmpty(name)) {\n etFeedbackCategoryName.setError(\"Enter Feedback Category Name\");\n etFeedbackCategoryName.requestFocus();\n return;\n } else {\n if(Utility.isNumericWithSpace(name)){\n etFeedbackCategoryName.setError(\"Invalid Feedback Category Name\");\n etFeedbackCategoryName.requestFocus();\n return;\n }else {\n //TODO\n String Name = name.replaceAll(\"\\\\s+\", \"\");\n System.out.println(\"Name \" + Name);\n for (int i = 0; i < alreadyFeedbackCategoryList.size(); i++) {\n String feedbackCategoryName = alreadyFeedbackCategoryList.get(i).replaceAll(\"\\\\s+\", \"\");\n if (Name.equalsIgnoreCase(feedbackCategoryName)) {\n System.out.println(\"equal\");\n etFeedbackCategoryName.setError(\"Already this feedback category is saved \");\n etFeedbackCategoryName.requestFocus();\n return;\n }\n }\n }\n }\n\n if (pDialog == null && !pDialog.isShowing()) {\n pDialog.show();\n }\n feedbackCategory = new FeedbackCategory();\n feedbackCategory.setInstituteId(instituteId);\n feedbackCategory.setCategory(name);\n feedbackCategory.setCreatorId(loggedInUserId);\n feedbackCategory.setModifierId(loggedInUserId);\n feedbackCategory.setCreatorType(\"A\");\n feedbackCategory.setModifierType(\"A\");\n addFeedbackCategory();\n }\n });\n return view;\n }",
"private void showChooseCurNonGarTimeDialog3(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"public void openDialog(){\n if (!isAdded()) return;\n homeViewModel.getAllSets().removeObservers(getViewLifecycleOwner());\n ChooseSetDialog dialog = new ChooseSetDialog(setsTitles);\n dialog.show(getChildFragmentManager(), \"choose_set_dialog\");\n dialog.setOnSelectedListener(choice -> {\n Word word = new Word(setsObjects.get(choice).getId(), original, translation);\n homeViewModel.insertWord(word);\n original=\"\"; translation=\"\";\n etOrigWord.setText(\"\"); etTransWord.setText(\"\");\n });\n }",
"private void showChooseCurNonGarTimeDialog2(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"@Override\n public void onClick(View view, int position) {\n Fragment fragment = new CategoryFragment();\n FragmentManager fragmentManager = ((FragmentActivity) activity)\n .getSupportFragmentManager();\n String title = \"CategoryFragment\";\n Bundle bundle = new Bundle();\n bundle.putString(\"spot_id\", id);\n bundle.putString(\"section_id\", sectionsArrayList.get(position).getSectionID());\n bundle.putString(\"name\", sectionsArrayList.get(position).getSectionName());\n fragment.setArguments(bundle);\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.container_body, fragment, title);\n fragmentTransaction.addToBackStack(title);\n fragmentTransaction.commit();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n page = getArguments().getInt(\"someInt\", 0);\n title = getArguments().getString(\"someTitle\");\n context=getActivity();\n isCitySelected=false;\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }",
"public void displayCitylist(){\n final CharSequence[] items = {\" Banglore \", \" Hyderabad \", \" Chennai \", \" Delhi \", \" Mumbai \", \" Kolkata \", \"Ahmedabad\"};\n\n // Creating and Building the Dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(\"Select Your City\");\n //final AlertDialog finalLevelDialog = levelDialog;\n //final AlertDialog finalLevelDialog = levelDialog;\n builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int item) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor1 = preferences.edit();\n\n switch (item) {\n case 0: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"Banglore\", \"\" + preferences.getInt(\"BLR\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Bangalore\");\n break;\n }\n case 1: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"HYD\", 20));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1600);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"HYD\", \"\" + preferences.getInt(\"HYD\", 20));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 20));\n citySelected.setText(\"City: Hyderabad\");\n break;\n }\n case 2: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"CHE\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1800);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"CHE\", \"\" + preferences.getInt(\"CHE\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Chennai\");\n break;\n }\n case 3: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"DEL\", 25));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n citySelected.setText(\"City: Delhi\");\n break;\n }\n case 4: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"MUM\", 18));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1500);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"MUM\", \"\" + preferences.getInt(\"MUM\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Mumbai\");\n break;\n }\n case 5: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"KOL\", 25));\n editor1.putFloat(\"nightfare\", 0.0f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"KOL\", \"\" + preferences.getInt(\"KOL\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Kolkata\");\n break;\n }\n case 6: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"AMD\", 11));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1400);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n Log.d(\"AMD\", \"\" + preferences.getInt(\"AMD\", 11));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 11));\n citySelected.setText(\"City: Ahmedabad\");\n break;\n }\n default:\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putInt(\"min_distance\", 2000);\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n citySelected.setText(\"City: Bangalore\");\n }\n levelDialog.dismiss();\n }\n });\n levelDialog = builder.create();\n levelDialog.show();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_creation, container, false);\n\n mQueryController = new QueryController(getActivity());\n\n\n LinearLayout linear = (LinearLayout)rootView.findViewById(R.id.flipLayout);\n final CustomDialogClass cdd=new CustomDialogClass(getActivity());\n linear.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n cdd.show();\n Window window = cdd.getWindow();\n window.setLayout(600,900);\n\n }\n });\n\n LinearLayout linearCustom = (LinearLayout)rootView.findViewById(R.id.contentLayout);\n final CustomContentDialogClass ccd=new CustomContentDialogClass(getActivity());\n linearCustom.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n ccd.show();\n Window window = ccd.getWindow();\n window.setLayout(600,500);\n\n }\n });\n\n\n mCreateVideo = (Button) rootView.findViewById(R.id.btn_create_video);\n //setting create video button listener\n mCreateVideo.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n //settin values to the Query object\n mQuery.setmDuration(VideoActivity.INTERVAL.toString());\n // added checks here so that it performs automatic checking of non-initilaization of query element\n\n if (CustomContentDialogClass.mScenery != null){\n mQuery.setmIsSceneryChecked(CustomContentDialogClass.mScenery.isChecked());\n Log.d(\"CREATEFRAG\",\"Scene check: \"+CustomContentDialogClass.mScenery.isChecked());\n }\n\n if (CustomContentDialogClass.mPeople != null){\n mQuery.setmIsPeopleChecked(CustomContentDialogClass.mPeople.isChecked());\n Log.d(\"CREATEFRAG\", \"People check: \" + CustomContentDialogClass.mPeople.isChecked());\n }\n\n if (CustomContentDialogClass.mSelfie != null){\n mQuery.setmIsSelfieClicked(CustomContentDialogClass.mSelfie.isChecked());\n Log.d(\"CREATEFRAG\", \"Selfie check: \" + CustomContentDialogClass.mSelfie.isChecked());\n }\n\n Long time_start = new Long(0);\n Long time_end = Calendar.getInstance().getTimeInMillis();\n try {\n Date date_start = new SimpleDateFormat(\"MM/dd/yy\", Locale.ENGLISH).parse(CustomDialogClass.mStartText.getText().toString());\n time_start = date_start.getTime();\n\n Date date_end = new SimpleDateFormat(\"MM/dd/yy\", Locale.ENGLISH).parse(CustomDialogClass.mEndText.getText().toString());\n time_end = date_end.getTime();\n }\n catch(Exception e)\n {\n\n }\n\n mQuery.setmStartDate(time_start);\n mQuery.setmEnddate(time_end);\n mQuery.setmRadius(MapsActivity.radius);\n\n\n if (MapsActivity.mPosition != null) {\n mQuery.setmLocation(new LatLng(MapsActivity.mPosition.latitude,\n MapsActivity.mPosition.longitude));\n Log.d(\"Creation fragemnt\", MapsActivity.mPosition.latitude + \"\");\n Log.d(\"Creation fragemnt\", MapsActivity.mPosition.longitude + \"\");\n }\n else\n {\n Log.d(\"CREATION FRAGMENT\", \"NO LOCATION SPECIFIED\" );\n }\n\n ArrayList<String> file_paths = mQueryController.HandleQuery(mQuery);\n\n Intent intent = new Intent(getActivity(),\n VideoActivity.class);\n\n intent.putStringArrayListExtra(IMAGES_FROM_QUERY,file_paths);\n\n startActivity(intent);\n }\n });\n\n return rootView;\n }",
"@Override\n\tpublic void onCategorySelect(String title) {\n\t\tfragment_score score=(fragment_score)fm.findFragmentByTag(\"score\");\n\t\tscore.SetMessage(title);\n\t\t//Toast.makeText(getBaseContext(), title+\"2\", 0).show();\n\t}",
"@Override\n protected void populateViewHolder(final CategoryViewHolder viewHolder, final Category model, final int position) {\n viewHolder.bindToCategory(model);\n //вешаем слушателя долгого нажатия для изменения категории\n viewHolder.cardView.setOnLongClickListener(new View.OnLongClickListener() {\n\n @Override\n public boolean onLongClick(View v) {\n new MaterialDialog.Builder(getActivity())\n .title(R.string.dialog_title)\n .content(R.string.category_change_warning)\n .onPositive(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull final MaterialDialog dialog, @NonNull DialogAction which) {\n new MaterialDialog.Builder(getActivity())\n .title(R.string.category_change)\n .content(R.string.category_change_content)\n .inputType(InputType.TYPE_CLASS_TEXT)\n .inputRange(2, 20)\n .input(model.name, model.name, false, new MaterialDialog.InputCallback() {\n @Override\n public void onInput(@NonNull MaterialDialog dialog, CharSequence input) {\n\n }\n })\n .checkBoxPrompt(getString(R.string.copilka), !model.isShow.equals(\"yes\"), new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n isCheck = isChecked;\n }\n })\n .onPositive(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull final MaterialDialog dialoge, @NonNull DialogAction which) {\n final String userId = DataLoader.getUid();\n loader.mDatabase.child(DataLoader.USERS).child(userId).addListenerForSingleValueEvent(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // Get user value\n User user = dataSnapshot.getValue(User.class);\n\n // [START_EXCLUDE]\n if (user == null) {\n // User is null, error out\n Toast.makeText(getActivity(),\n \"Error: could not fetch user.\",\n Toast.LENGTH_SHORT).show();\n } else {\n // Write new postString name, String kind, String author, boolean isShowIt, String key\n String isShow;\n if (isCheck) {\n isShow = \"not\";\n } else {\n isShow = \"yes\";\n }\n //noinspection ConstantConditions\n Category category = new Category(dialoge.getInputEditText().getText().toString(),\n model.kind,\n userId,\n isShow,\n model.key);\n loader.writeNewCategory(category, getQuery());\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n // [START_EXCLUDE]\n }\n });\n }\n })\n .onNegative(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull MaterialDialog dialoge, @NonNull DialogAction which) {\n dialoge.dismiss();\n }\n })\n .positiveText(R.string.save)\n .negativeText(R.string.dont_save)\n .show();\n\n }\n })\n .onNegative(new MaterialDialog.SingleButtonCallback() {\n @Override\n public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {\n dialog.dismiss();\n }\n })\n .positiveText(R.string.agree)\n .negativeText(R.string.disagree)\n .show();\n\n return true;\n }\n });\n progressLayout.showContent();\n }",
"public void onClick(DialogInterface dialog, int id) {\n All_events.this.finish();\n }",
"@Override\n public void cliclou(String time) {\n FragmentManager fragmentManager = getFragmentManager();\n DetalheFrag detalheFrag = (DetalheFrag) fragmentManager.findFragmentById(R.id.detalheFrag);\n\n if(detalheFrag != null && detalheFrag.isInLayout()){\n // mudar o texto do frag da direita\n detalheFrag.setNome(time);\n }else{\n\n //chamar outra tela\n timeBck = time;\n Intent intent = new Intent(this, DetalheActivity.class);\n intent.putExtra(\"time\", time);\n startActivityForResult(intent, 1);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_new_p2p_topic:\n Log.d(TAG, \"Start new p2p topic\");\n ((ContactsActivity)getActivity()).selectTab(ContactsFragment.TAB_CONTACTS);\n return true;\n\n case R.id.action_new_grp_topic:\n Log.d(TAG, \"Launch new group topic\");\n Intent intent = new Intent(getActivity(), CreateGroupActivity.class);\n // intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n startActivity(intent);\n return true;\n\n case R.id.action_add_by_id:\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder\n .setTitle(R.string.action_start_by_id)\n .setView(R.layout.dialog_add_by_id)\n .setCancelable(true)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n TextView editor = ((AlertDialog) dialog).findViewById(R.id.editId);\n if (editor != null) {\n final Activity activity = getActivity();\n String id = editor.getText().toString();\n if (!TextUtils.isEmpty(id)) {\n Intent it = new Intent(activity, MessageActivity.class);\n it.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n it.putExtra(\"topic\", id);\n startActivity(it);\n } else {\n Toast.makeText(activity, R.string.failed_empty_id,\n Toast.LENGTH_SHORT).show();\n }\n }\n\n }\n })\n .setNegativeButton(android.R.string.cancel, null)\n .show();\n return true;\n\n case R.id.action_settings:\n ((ContactsActivity)getActivity()).showAccountInfoFragment();\n return true;\n\n case R.id.action_about:\n DialogFragment about = new AboutDialogFragment();\n about.show(getFragmentManager(), \"about\");\n return true;\n\n case R.id.action_offline:\n try {\n Cache.getTinode().reconnectNow();\n } catch (IOException ex) {\n Log.d(TAG, \"Reconnect failure\", ex);\n String cause = ex.getCause().getMessage();\n Activity activity = getActivity();\n Toast.makeText(activity, activity.getString(R.string.error_connection_failed) + cause,\n Toast.LENGTH_SHORT).show();\n }\n break;\n }\n return false;\n }",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\t\t\t\tcategory = parent.getItemAtPosition(0).toString();\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onDayLongPress(Date date) {\n FragmentManager manager = getFragmentManager();\n Fragment frag = manager.findFragmentByTag(\"fragment_edit_id\");\n if (frag != null) {\n manager.beginTransaction().remove(frag).commit();\n }\n\n FragDailyLog newLog = new FragDailyLog();\n //Pass date into dialog\n Bundle dateBundle = new Bundle();\n dateBundle.putLong(\"date\", date.getTime());\n newLog.setArguments(dateBundle);\n newLog.show(manager, \"fragment_edit_id\");\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), enddatepicker, trigger.getEndtime().get(Calendar.YEAR), trigger.getEndtime().get(Calendar.MONTH), trigger.getEndtime().get(Calendar.DAY_OF_MONTH)).show();\n }",
"private void m11879d() {\n LiveFilterDialogFragment liveFilterDialogFragment;\n if (this.f9684m.isAdded() && this.f9684m.getChildFragmentManager().mo2644a(\"filter_dialog_tag\") == null) {\n String str = \"\";\n if (this.f9672a != null) {\n str = null;\n }\n if (!TextUtils.isEmpty(str)) {\n liveFilterDialogFragment = LiveFilterDialogFragment.m10592a(this.f9689r, str, true, true);\n } else {\n liveFilterDialogFragment = LiveFilterDialogFragment.m10593a(this.f9689r, C2624k.m10736a().f8419b, true);\n }\n liveFilterDialogFragment.f8275a = new C3083ab(this);\n liveFilterDialogFragment.show(this.f9684m.getChildFragmentManager(), \"filter_dialog_tag\");\n m11874a(8);\n }\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), endtimepicker, trigger.getEndtime().get(Calendar.HOUR), trigger.getEndtime().get(Calendar.MINUTE), true).show();\n }",
"private void showEndShiftDialog() {\n Log.i(LOG_TAG, \"showEndShiftDialog() called\");\n EndShiftDialogFragment newFragment = new EndShiftDialogFragment();\n newFragment.show(getSupportFragmentManager(), \"endShift\");\n }",
"private void closeFragment() {\n dateET.setText(\"\");\n timeET.setText(\"\");\n descET.setText(\"\");\n locET.setText(\"\");\n\n emotionRadioGroup.clearCheck();\n for (int i = 0; i < emotionRadioGroup.getChildCount(); i++) {\n RadioButton currentButton = (RadioButton) emotionRadioGroup.getChildAt(i);\n currentButton.getBackground().setColorFilter(Color.WHITE, PorterDuff.Mode.MULTIPLY);\n }\n\n if (navController != null)\n navController.navigate(R.id.navigation_own_list);\n }",
"private void openPopupMold(final int position, String start_dt, String end_dt, final String KEY) {\n final Dialog dialog = new Dialog(CompositeActivity.this, R.style.Theme_AppCompat_DayNight_Dialog_Alert);\n View dialogView;\n\n if (KEY.equals(\"WK\")) {\n dialogView = LayoutInflater.from(CompositeActivity.this).inflate(R.layout.change_worker, null);\n dialog.setCancelable(false);\n dialog.setContentView(dialogView);\n StaffType = dialog.findViewById(R.id.StaffType);\n StaffType.setText(compositeMasterArrayList.get(position).getStaffTp());\n dialog.findViewById(R.id.rll2).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n popupWorker(StaffType);\n }\n });\n\n\n } else {\n dialogView = LayoutInflater.from(CompositeActivity.this).inflate(R.layout.change_mold, null);\n dialog.setCancelable(false);\n dialog.setContentView(dialogView);\n }\n\n final TextView ngaystart, giostart, Used;\n ngaystart = dialog.findViewById(R.id.ngaystart);\n giostart = dialog.findViewById(R.id.giostart);\n\n final TextView ngayend, gioend;\n ngayend = dialog.findViewById(R.id.ngayend);\n gioend = dialog.findViewById(R.id.gioend);\n Used = dialog.findViewById(R.id.Used);\n tvid = dialog.findViewById(R.id.tvid);\n tvid.setText(compositeMasterArrayList.get(position).getCode());\n\n if (compositeMasterArrayList.get(position).getUseYn().equals(\"Y\")) {\n Used.setText(\"USE\");\n } else {\n Used.setText(\"UNUSE\");\n }\n dialog.findViewById(R.id.im1).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n openCameraScan();\n }\n });\n\n dialog.findViewById(R.id.confirm).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (tvid.getText().toString().length() != 0) {\n //so sanh 2 ngay duoc chon\n Date dsend = new Date();\n Date dstart = new Date();\n\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n dstart = sdf.parse(ngaystart.getText().toString() + \" \" + giostart.getText().toString());\n dsend = sdf.parse(ngayend.getText().toString() + \" \" + gioend.getText().toString());\n\n } catch (ParseException ex) {\n Log.e(\"rrr\", ex.getMessage());\n }\n\n if (dsend.after(dstart)) {\n\n String us = Used.getText().toString();\n String keyus = \"\";\n if (us.equals(\"USE\")) {\n keyus = \"Y\";\n } else {\n keyus = \"N\";\n }\n if (KEY.equals(\"WK\")) {\n showDialog();\n modifyProcessMachineWK(KEY,compositeMasterArrayList.get(position).getPmId(),keyus,ngaystart.getText().toString() + \" \" + giostart.getText().toString(),ngayend.getText().toString() + \" \" + gioend.getText().toString());\n } else {\n showDialog();\n modifyProcessMachine(KEY,compositeMasterArrayList.get(position).getPmId(),keyus,ngaystart.getText().toString() + \" \" + giostart.getText().toString(),ngayend.getText().toString() + \" \" + gioend.getText().toString());\n }\n\n } else {\n AlertError.alertError(\"Start day was bigger than end day. That is wrong\", CompositeActivity.this);\n }\n\n } else {\n tvid.setError(\"Please input here!\");\n }\n\n }\n });\n\n dialog.findViewById(R.id.rl2).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n openPpUse(Used);\n }\n });\n\n final String yy, MM, dd, hh, mm, ss, yye, MMe, dde, hhe, mme, sse;\n if (start_dt.length() == 19) {\n yy = start_dt.substring(0, 4);\n MM = start_dt.substring(5, 7);\n dd = start_dt.substring(8, 10);\n hh = start_dt.substring(11, 13);\n mm = start_dt.substring(14, 16);\n ss = start_dt.substring(17, 19);\n } else {\n AlertError.alertError(\"Format date incorrect.\", CompositeActivity.this);\n return;\n }\n if (end_dt.length() == 19) {\n yye = end_dt.substring(0, 4);\n MMe = end_dt.substring(5, 7);\n dde = end_dt.substring(8, 10);\n hhe = end_dt.substring(11, 13);\n mme = end_dt.substring(14, 16);\n sse = end_dt.substring(17, 19);\n } else {\n AlertError.alertError(\"Format date incorrect.\", CompositeActivity.this);\n return;\n }\n ngaystart.setText(yy + \"-\" + MM + \"-\" + dd);\n ngayend.setText(yye + \"-\" + MMe + \"-\" + dde);\n giostart.setText(hh + \":\" + mm + \":\" + ss);\n gioend.setText(hhe + \":\" + mme + \":\" + sse);\n\n ngaystart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogDay(ngaystart);\n }\n });\n giostart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogHour(giostart, hh, mm);\n }\n });\n ngayend.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogDay(ngayend);\n }\n });\n gioend.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogHour(gioend, hhe, mme);\n }\n });\n\n dialog.findViewById(R.id.btclose).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.cancel();\n }\n });\n\n dialog.show();\n }",
"public void onGroupSelection(){\n getTimeList().clear();\n CycleTimeBean ctb = new CycleTimeBean();\n ctb.setGroupName(groupName);\n ctb.setCatName(catName);\n getTimeList().add(ctb);\n }",
"public void showTimeEndPickerDialog(View v) {\n DialogFragment newFragment = new TimePickerFragment() {\n @Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n timeEndTV = (TextView)findViewById(R.id.timeEndTV);\n timeEndTV.setText(makeHourFine(hour, minute));\n hourEnd=hour;\n minuteEnd=minute;\n if(hourStart!=99||minuteStart!=99) {\n if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {\n hoursD =Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);\n } else\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);\n\n hours = (EditText) findViewById(R.id.HoursET);\n hours.setText(Double.toString(hoursD));\n }\n\n\n }\n\n\n };\n newFragment.show(getSupportFragmentManager(), \"timeStartPicker\");\n }",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.tvNext:\n showContentDetais();\n break;\n case R.id.ivYuyin:\n startYuyin();\n break;\n case R.id.ivZhexian:\n startZhexian();\n break;\n case R.id.ivHome:\n startHome();\n break;\n case R.id.tvCity:\n case R.id.tvDay:\n case R.id.tvWeek:\n // 预警\n if (isTanhao) {\n if (context instanceof MainActivity) {\n YujingFragment fragment = new YujingFragment();\n Bundle args = new Bundle();\n MCityInfo info = new MCityInfo();\n info.setsName(titleText);\n info.setsNum(cityNum);\n args.putSerializable(\"city\", info);\n fragment.setArguments(args);\n ((MainActivity) context).switchContent(fragment, true);\n }\n }\n break;\n case R.id.llDay:\n case R.id.llIcon:\n case R.id.llTemp:\n if (context instanceof MainActivity) {\n QushiyubaoFragment fragment = new QushiyubaoFragment();\n // Bundle args = new Bundle();\n // MCityInfo info = new MCityInfo();\n // info.setsName(titleText);\n // info.setsNum(cityNum);\n // args.putSerializable(\"city\", info);\n // fragment.setArguments(args);\n ((MainActivity) context).switchContent(fragment, true);\n }\n break;\n case R.id.llllKonqi:\n if (context instanceof MainActivity) {\n KongqiFragment fragment = new KongqiFragment();\n Bundle args = new Bundle();\n MCityInfo info = new MCityInfo();\n info.setsName(titleText);\n info.setsNum(cityNum);\n args.putSerializable(\"city\", info);\n fragment.setArguments(args);\n ((MainActivity) context).switchContent(fragment, true);\n }\n break;\n default:\n break;\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptionsDialog();\r\n\t\t\t}",
"public void onDialogPositiveClick(DialogFragment dialog) {\n\t\t\thackStartTimeline();\n\t\t}",
"@Override\n public void onStart() {\n pDialog.show();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n getActivity().finish();\n }",
"@Override\n public void onCancelConfirmClick(DialogFragment dlg) {\n //TODO: thread sleep may be required\n setContentView(R.layout.activity_main);\n mLayout = (LinearLayout) findViewById(R.id.main_layout);\n Snackbar.make(mLayout, R.string.booking_cancel_msg, Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n clearRecord();\n cancelAlarm();\n initialise();\n }",
"void onFinishHiding();",
"public void showTermsAndCondition(Dialog dialogMethod){\n\n //dismissing the previous dialog\n\n dialogMethod.dismiss();\n\n //Showing dialog\n\n final Dialog dialog = new Dialog(UserHomeActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.tearmandcondition);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.show();\n\n\n //Hooks\n backButton = dialog.findViewById(R.id.backButton);\n\n //User will click on back button\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n\n\n\n }",
"private void showTimeLapseIntervalDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tLog.d(\"tigertiger\", \"showTimeLapseIntervalDialog\");\n\t\tCharSequence title = res\n\t\t\t\t.getString(R.string.setting_time_lapse_interval);\n\t\tfinal String[] videoTimeLapseIntervalString = TimeLapseInterval\n\t\t\t\t.getInstance().getValueStringList();\n\t\tif (videoTimeLapseIntervalString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"videoTimeLapseIntervalString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = videoTimeLapseIntervalString.length;\n\n\t\tint curIdx = 0;\n\t\t// UIInfo uiInfo =\n\t\t// reflection.refecltFromSDKToUI(SDKReflectToUI.SETTING_UI_TIME_LAPSE_INTERVAL,\n\t\t// cameraProperties.getCurrentTimeLapseInterval());\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (videoTimeLapseIntervalString[i].equals(TimeLapseInterval\n\t\t\t\t\t.getInstance().getCurrentValue())) {\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t// int value = (Integer)\n\t\t\t\t// reflection.refecltFromUItoSDK(UIReflectToSDK.SETTING_SDK_TIME_LAPSE_INTERVAL,\n\t\t\t\t// videoTimeLapseIntervalString[arg1]);\n\t\t\t\tcameraProperties.setTimeLapseInterval((TimeLapseInterval\n\t\t\t\t\t\t.getInstance().getValueStringInt())[arg1]);\n\t\t\t\targ0.dismiss();\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, videoTimeLapseIntervalString, curIdx, listener,\n\t\t\t\ttrue);\n\t}",
"private void showChooseCurNonGarTimeDialog1(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"public AlertDialog createSimpleDialog(String mensaje, String titulo, final String typ) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n View v = inflater.inflate(R.layout.dialog_monitoring_info, null);\n builder.setView(v);\n\n TextView tvTitle = (TextView) v.findViewById(R.id.tv_title_dialog);\n TextView tvDescription = (TextView) v.findViewById(R.id.tv_description_dialog);\n\n tvTitle.setText(titulo);\n tvTitle.setCompoundDrawables(ContextCompat.getDrawable(v.getContext(), R.drawable.ic_question), null, null, null);\n tvDescription.setText(mensaje);\n\n builder.setPositiveButton(getResources().getString(R.string.info_dialog_option_accept),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (typ.equals(\"REGIST\")){\n MonitoringRegistrationFormFragment fragment = new MonitoringRegistrationFormFragment();\n Bundle params = new Bundle();\n params.putString(\"AREA\", area);\n params.putString(\"OPCION\", \"N\");\n fragment.setArguments(params);\n\n getActivity().getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.monitoring_principal_context, fragment)\n .commit();\n }\n else {\n AdminUserFormFragment fragment = new AdminUserFormFragment();\n getActivity().getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.transaction_principal_context, fragment)\n .commit();\n }\n }\n },300);\n }\n })\n .setNegativeButton(getResources().getString(R.string.info_dialog_option_cancel),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n builder.create().dismiss();\n if (typ.equals(\"REGIST\")){\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(getActivity(), MonitorMenuActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n startActivity(intent);\n getActivity().finish();\n }\n },300);\n }\n else {\n getActivity().finish();\n }\n }\n });\n\n return builder.create();\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\r\n View rootviView = inflater.inflate(R.layout.category_layout, container, false);\r\n mContext = getActivity();\r\n initView(rootviView);\r\n Bundle bundle = this.getArguments();\r\n String kategori = bundle.getString(\"kategori\");\r\n\r\n loadData(kategori);\r\n return rootviView;\r\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.page_map_view);\n\n\t\tmyPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\n\t\tinicMapComponent();\n\t\tinicComponent();\n\t\tfillData();\n\t\t\n\t\tbuilder = new AlertDialog.Builder(this);\n builder.setTitle(ComponentInstance\n\t\t\t\t.getTitleString(ComponentInstance.STRING_KATEGORIJE));\n \n \n \n builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int item) {\n \t\n switch(item)\n {\n case 0:\n \tmapView.clear();\n \t\tonCheckedCategory(true, \"nightlife\", 1);\n break;\n case 1:\n \tmapView.clear();\n \tonCheckedCategory(true, \"iceipice\", 2);\n break;\n case 2:\n \tmapView.clear();\n \tonCheckedCategory(true, \"shopping\", 3);\n break;\n case 3:\n \tmapView.clear();\n \tonCheckedCategory(true, \"smestaj\", 4);\n break;\n case 4:\n \tmapView.clear();\n \tonCheckedCategory(true, \"wifi\", 5);\n break;\n case 5:\n \tmapView.clear();\n \tonCheckedCategory(true, \"bank\", 6);\n break;\n case 6:\n \tmapView.clear();\n \tonCheckedCategory(true, \"gas\", 7);\n break;\n case 7:\n \tmapView.clear();\n \tonCheckedCategory(true, \"znamenitosti\", 8);\n break;\n case 8:\n \tmapView.clear();\n \tonCheckedCategory(true, \"inspiracija\", 9);\n break;\n case 9:\n \tmapView.clear();\n \tonCheckedCategory(true, \"kultura\", 10);\n break;\n case 10:\n \tmapView.clear();\n \tonCheckedCategory(true, \"rainbow\", 11);\n break;\n }\n categoryDialog.hide(); \n }\n });\n categoryDialog = builder.create();\n\t\t\n\t\tsendGoogleAnaliticsData(\"Map - screen\");\n\t\t\n\t\tHelper.inicActionBar(MapPage.this, \"MAP\");\n\t\t\n\t\tbuttonKategorije.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t//categoryDialog = builder.create();\n\t\t\t\tcategoryDialog.show();\n\t\t\t}\n\t\t});\n\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void dialogClick(Dialog dialog, View v) {\n switch (v.getId()) {\n case R.id.tv_in_the_to_xiangce:\n dialog.dismiss();\n if (photoList == null)\n photoList = new ArrayList<Map<String, Object>>();\n else\n photoList.clear();\n Intent in = new Intent(getApplicationContext(),\n AddImgFragmentActivity01.class);\n in.putExtra(\"selectedList\", photoList);\n in.putExtra(\"maxImg\", maxImg);\n startActivityForResult(in, 1);\n overridePendingTransition(R.anim.right_in, R.anim.left_out);\n break;\n\n case R.id.tv_in_the_to_xiangji:\n dialog.dismiss();\n if (photoList == null)\n photoList = new ArrayList<Map<String, Object>>();\n else\n photoList.clear();\n startXiangJi();\n break;\n\n case R.id.tv_cancel:\n dialog.dismiss();\n break;\n\n default:\n break;\n }\n }",
"@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n category = getArguments().getString(\"someTitle\");\r\n\r\n\r\n }",
"private void showDialog() {\n\n dialogSort = new Dialog(new ContextThemeWrapper(PlaceListActivity.this, R.style.DialogSlideAnim));\n Window window = dialogSort.getWindow();\n dialogSort.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialogSort.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialogSort.getWindow().setGravity(Gravity.BOTTOM);\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n int screenWidth = (int) (metrics.widthPixels * 0.98);\n dialogSort.getWindow().setLayout(screenWidth, WindowManager.LayoutParams.WRAP_CONTENT);\n dialogSort.setContentView(R.layout.dialog_sort_by);\n final String[] selectFilter = new String[2];\n //Control Initialize\n final ImageView filter_age = (ImageView) dialogSort.findViewById(R.id.filter_age);\n final ImageView filter_busy = (ImageView) dialogSort.findViewById(R.id.filter_busy);\n final ImageView filter_not_busy = (ImageView) dialogSort.findViewById(R.id.filter_not_busy);\n final ImageView filter_males = (ImageView) dialogSort.findViewById(R.id.filter_males);\n final ImageView filter_females = (ImageView) dialogSort.findViewById(R.id.filter_females);\n final LinearLayout liner_age = (LinearLayout) dialogSort.findViewById(R.id.linear_age);\n final TextView btn_done = (TextView) dialogSort.findViewById(R.id.btn_done);\n liner_age.setVisibility(View.GONE); // by default spinner not visible\n\n // Click image\n filter_busy.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_busy.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"busy\";\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n filter_not_busy.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_not_busy.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"notbusy\";\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n filter_age.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_age.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"age\";\n liner_age.setVisibility(View.VISIBLE);\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n filter_males.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_males.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"males\";\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n filter_females.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n filter_females.setSelected(true);\n selectFilter[1] = selectFilter[0];\n selectFilter[0] = \"females\";\n if (selectFilter[1] != null) {\n clearOtherSelection(selectFilter[1]);\n }\n }\n });\n btn_done.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialogSort.dismiss();\n BlurBehind.getInstance().execute(PlaceListActivity.this, new OnBlurCompleteListener() {\n @Override\n public void onBlurComplete() {\n Intent intent = new Intent(PlaceListActivity.this, LoadingActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n\n startActivity(intent);\n }\n });\n }\n });\n //Age Spinner Initialize\n final AbstractWheel spinner_age = (AbstractWheel) dialogSort.findViewById(R.id.dialog_spinner_age);\n final NumericWheelAdapter numericWheelAdapter = new NumericWheelAdapter(this, 22, 40);\n numericWheelAdapter.setItemResource(R.layout.wheel_text_centered);\n numericWheelAdapter.setItemTextResource(R.id.text);\n spinner_age.setViewAdapter(numericWheelAdapter);\n OnWheelChangedListener wheelListener2 = new OnWheelChangedListener() {\n @TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n public void onChanged(AbstractWheel wheel, int oldValue, int newValue) {\n LinearLayout mItemsLayout = spinner_age.getItemsLayout();\n int visibleitem = wheel.getVisibleItems();\n if (newValue > oldValue) {\n for (int i = 0; i < mItemsLayout.getChildCount(); i++) {\n FrameLayout select_frame = (FrameLayout) mItemsLayout.getChildAt(i);\n TextView select_txt = (TextView) select_frame.getChildAt(0);\n if (i == (visibleitem / 2) + 1) {\n select_frame.setBackground(getResources().getDrawable(R.drawable.spinner_select_white));\n select_txt.setTextColor(Color.BLACK);\n } else {\n select_frame.setBackgroundColor(Color.TRANSPARENT);\n select_txt.setTextColor(Color.WHITE);\n }\n }\n }\n }\n };\n spinner_age.addChangingListener(wheelListener2);\n if (!dialogSort.isShowing())\n dialogSort.show();\n }",
"private void showDialogTime() {\n final TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(),\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n mCal.set(Calendar.HOUR_OF_DAY, hourOfDay);\n mCal.set(Calendar.MINUTE, minute);\n\n tvDate.setText(getDateString(mCal));\n\n }\n }, mCal.get(Calendar.HOUR_OF_DAY), mCal.get(Calendar.MINUTE), true);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n mCal.set(Calendar.YEAR, year);\n mCal.set(Calendar.MONTH, monthOfYear);\n mCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n timePickerDialog.show();\n }\n }, mCal.get(Calendar.YEAR), mCal.get(Calendar.MONTH), mCal.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n showDialog(TIME_DIALOG_ID);\n }",
"private void createTypeDialog(Context context) {\r\n\t\ttypeDialog = new DialogBase(context);\r\n\t\ttypeDialog.setContentView(R.layout.type);\r\n\t\ttypeDialog.setHeader(\"Channels\");\r\n\t\tfinal TextView txtVideos = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvVideos);\r\n\t\tfinal TextView txtChannels = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvChannels);\r\n\t\ttxtChannels.setVisibility(View.GONE);\r\n\t\ttxtVideos.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\ttypeDialog.dismiss();\r\n\t\t\t\tIntent i = new Intent(getApplicationContext(), MyVideosTabletActivity.class);\r\n\t\t\t\ti.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n public void onShow(DialogInterface arg0) {\n\n }",
"void selectCategory() {\n // If user is the active player, ask for the user's category.\n if (activePlayer.getIsHuman()) {\n setGameState(GameState.CATEGORY_REQUIRED);\n }\n // Or get AI active player to select best category.\n else {\n Card activeCard = activePlayer.getTopMostCard();\n activeCategory = activeCard.getBestCategory();\n }\n\n logger.log(\"Selected category: \" + activeCategory + \"=\" +\n activePlayer.getTopMostCard().getCardProperties()\n .get(activeCategory));\n logger.log(divider);\n\n setGameState(GameState.CATEGORY_SELECTED);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Bundle bundle = getArguments();\n final Show show = bundle.getParcelable(SHOW_KEY);\n\n if(show != null){\n //Builds the AlertDialog\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n View view = View.inflate(getActivity(), R.layout.fragment_remove_show_from_my_series, null);\n TextView textView = view.findViewById(R.id.tv_remove_series);\n textView.setText(getActivity().getString(R.string.series_removal_confirmation, show.getShowTitle()));\n builder.setView(view);\n\n //Creates OnClickListener for the Dialog message\n DialogInterface.OnClickListener dialogOnClickListener = new DialogInterface.OnClickListener(){\n @Override\n public void onClick(DialogInterface dialog, int button) {\n switch(button){\n //Removes the selected show from the My Series list\n case AlertDialog.BUTTON_POSITIVE:\n //Updates the Firebase database and the UI\n show.updateShowInDatabase(false, getActivity());\n\n //Sets showAdded to false\n show.setShowAdded(false);\n\n //Sends the decision back to the appropriate Activity/class\n returnResult(true, show);\n break;\n //Cancels the action\n case AlertDialog.BUTTON_NEGATIVE:\n //Sends the decision back to the appropriate Activity/class\n returnResult(false, show);\n break;\n }\n }\n };\n\n //Assigns Buttons and OnClickListeners for the AlertDialog\n builder.setPositiveButton(getActivity().getString(R.string.yes), dialogOnClickListener);\n builder.setNegativeButton(getActivity().getString(R.string.no), dialogOnClickListener);\n\n //Creates the AlertDialog\n return builder.create();\n }\n else{\n return null;\n }\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(R.string.dialog_internet_eng_text).setPositiveButton\n (R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.exit(1);\n /*\n Intent homeIntent= new Intent(getContext(), MainCardActivity.class);\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n */\n }\n });\n return builder.create();\n }",
"public void showTimeStartPickerDialog(View v) {\n DialogFragment newFragment = new TimePickerFragment() {\n @Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n timeStartTV = (TextView)findViewById(R.id.timeStartTV);\n hourStart=hour;\n minuteStart=minute;\n timeStartTV.setText(makeHourFine(hour,minute));\n if(hourEnd!=99||minuteEnd!=99) {\n if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);\n } else\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);\n\n hours = (EditText) findViewById(R.id.HoursET);\n hours.setText(Double.toString(hoursD));\n }\n\n }\n\n };\n newFragment.show(getSupportFragmentManager(), \"timeStartPicker\");\n }",
"private void showGraphFilterDiaglog() {\n mSeletedGraphDialogItems = new ArrayList();\n\n boolean[] checkedSelections = new boolean[6];\n Arrays.fill(checkedSelections, Boolean.FALSE);\n\n String userSelections = sharedPrefsUtilInst.getDoctorGraphFilter(defValueGraphFilters);\n\n if (userSelections.equals(\"\") == false) {\n\n String[] parts = userSelections.split(\"@\");\n\n for (int i = 0; i < parts.length; ++i) {\n\n int ind = Integer.parseInt(parts[i]);\n checkedSelections[ind] = true;\n mSeletedGraphDialogItems.add(ind);\n }\n }\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n View convertView = getActivity().getLayoutInflater().inflate(R.layout.patient_alert_dialog_title, null);\n alertDialog.setCustomTitle(convertView);\n alertDialog.setMultiChoiceItems(mGraphDialogItems, checkedSelections, new DialogInterface.OnMultiChoiceClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked) {\n\n if (isChecked == true) {\n\n mSeletedGraphDialogItems.add(indexSelected);\n }\n else if (mSeletedGraphDialogItems.contains(indexSelected)) {\n\n mSeletedGraphDialogItems.remove(Integer.valueOf(indexSelected));\n }\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n saveGraphFilters();\n }\n });\n\n // Set the line color\n Dialog d = alertDialog.show();\n int dividerId = d.getContext().getResources().getIdentifier(\"android:id/titleDivider\", null, null);\n View divider = d.findViewById(dividerId);\n divider.setBackground(new ColorDrawable(Color.parseColor(\"#00274c\")));\n }",
"@Override\n\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\tint dayOfMonth) {\n\t\tgetday = dayOfMonth;\n\t\tgetmonth = monthOfYear;\n\t\tgetyear = year;\n\t\tCalendar datecheck = Calendar.getInstance();\n\n\t\tdatecheck.set(getyear, getmonth, getday);\n\n\t\tLong timeinms = datecheck.getTimeInMillis(); \n/*\nswitch(view.getTag().toString())\n{\ncase \"startdialog\":\n\n\ndatevalues getdateinter = (datevalues) getActivity();\ngetdateinter.getdatefromdialog(timeinms);\n\n\t\nbreak;\n\n\n} */\n\t\n\ndatevalues getdateinter = (datevalues) getActivity();\ngetdateinter.getdatefromdialog(timeinms);\nToast checktag = Toast.makeText(getActivity(), view.getId(), Toast.LENGTH_LONG)\t;\t\nchecktag.show();\n\t\t\n}",
"@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(getContext(), \"Se cancelo la finalizacion\", Toast.LENGTH_SHORT).show();\n }",
"@Override public void choose(String chosen) {\n\t\tif (chosen == Fragments.POPULAR.name()) {\n\t\t\t// F_TimelineFragment time = (F_TimelineFragment) fm.findFragmentById(R.id.popular1_fragment_container);\n\t\t\t// F_PopularFragment p = (F_PopularFragment) fm.findFragmentById(R.id.timeline1_fragment_container);\n\t\t\t// ft.replace(R.id.popular1_fragment_container, new F_TimelineFragment());\n\t\t\t// ft.remove(popular);\n\t\t\t// time.changeText(no);\n\t\t\tFrameLayout pop = (FrameLayout) this.findViewById(R.id.popular1_fragment_container);\n\t\t\tFrameLayout tim = (FrameLayout) this.findViewById(R.id.timeline1_fragment_container);\n\t\t\tpop.setVisibility(View.INVISIBLE);\n\t\t\tpop.setVisibility(View.GONE);\n\t\t\ttim.setVisibility(View.VISIBLE);\n\t\t}\n\n\t\tif (chosen == Fragments.TIMELINE.name()) {\n\n\t\t\tFrameLayout pop = (FrameLayout) this.findViewById(R.id.popular1_fragment_container);\n\t\t\tFrameLayout tim = (FrameLayout) this.findViewById(R.id.timeline1_fragment_container);\n\t\t\ttim.setVisibility(View.INVISIBLE);\n\t\t\ttim.setVisibility(View.GONE);\n\t\t\tpop.setVisibility(View.VISIBLE);\n\t\t}\n\n\t}",
"public void showDialog(Context context) {\n \n }",
"private void CallHomePage() {\n\t\t\n\t\tfr = new FragmentCategories();\n\t\tFragmentManager fm = getFragmentManager();\n\t\tFragmentTransaction fragmentTransaction = fm.beginTransaction();\n\t\tfragmentTransaction.replace(R.id.fragment_place, fr);\n\t\tfragmentTransaction.addToBackStack(null);\n\t\tfragmentTransaction.commit();\n\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n int hour = calendarSelected.get(Calendar.HOUR_OF_DAY);\n int minute = calendarSelected.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"private void showTimerPickerDialog() {\n backupCal = cal;\n if (cal == null) {\n cal = Calendar.getInstance();\n }\n\n TimePickerFragment fragment = new TimePickerFragment();\n\n fragment.setCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n cal = backupCal;\n EventBus.getDefault().post(new TaskEditedEvent());\n }\n });\n\n fragment.setCalendar(cal);\n fragment.show(getFragmentManager(), \"timePicker\");\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Retornar en nueva instancia del dialogo selector de tiempo\n return new TimePickerDialog(getActivity(),this, hour, minute, DateFormat.is24HourFormat(getActivity()));\n }",
"@SuppressWarnings(\"deprecation\")\r\n @Override\r\n public void onShow(DialogInterface dialog) {\n\r\n tvDateTimeTitle = (TextView) datetimeSelectConctentView.findViewById(R.id.tvDateTimeTitle);\r\n tvDateTimeCurrent = (TextView) datetimeSelectConctentView.findViewById(R.id.tvDateTimeCurrent);\r\n\r\n mSelectDatePicker = (DatePicker) datetimeSelectConctentView.findViewById(R.id.mSelectDatePicker);\r\n mSelectTimePicker = (TimePicker) datetimeSelectConctentView.findViewById(R.id.mSelectTimePicker);\r\n layoutDatePicker = (LinearLayout) datetimeSelectConctentView.findViewById(R.id.layoutDatePicker);\r\n layoutTimePicker = (LinearLayout) datetimeSelectConctentView.findViewById(R.id.layoutTimePicker);\r\n\r\n btnDatetimeSelectCancel = (Button) datetimeSelectConctentView.findViewById(R.id.btnDatetimeSelectCancel);\r\n btnDatetimeSelectOK = (Button) datetimeSelectConctentView.findViewById(R.id.btnDatetimeSelectOK);\r\n\r\n btnDatetimeSelectOK.setOnClickListener(PlaybackFragment.this);\r\n btnDatetimeSelectCancel.setOnClickListener(PlaybackFragment.this);\r\n\r\n if (nDatetimeMode == DATETIME_MODE_DATE) {\r\n tvDateTimeTitle.setText(R.string.lblDate2);\r\n layoutDatePicker.setVisibility(View.VISIBLE);\r\n layoutTimePicker.setVisibility(View.GONE);\r\n\r\n mSelectDatePicker.init(nYear, nMonth, nDay, new DatePicker.OnDateChangedListener() {\r\n\r\n @Override\r\n public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\r\n // TODO Auto-generated method stub\r\n if ((mSelectDatePicker.getMonth() + 1) < 10 && mSelectDatePicker.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-0\" + (mSelectDatePicker.getMonth() + 1) + \"-0\" + mSelectDatePicker.getDayOfMonth());\r\n } else if ((mSelectDatePicker.getMonth() + 1) >= 10 && mSelectDatePicker.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-\" + (mSelectDatePicker.getMonth() + 1) + \"-0\" + mSelectDatePicker.getDayOfMonth());\r\n } else if ((mSelectDatePicker.getMonth() + 1) < 10 && mSelectDatePicker.getDayOfMonth() >= 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-0\" + (mSelectDatePicker.getMonth() + 1) + \"-\" + mSelectDatePicker.getDayOfMonth());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-\" + (mSelectDatePicker.getMonth() + 1) + \"-\" + mSelectDatePicker.getDayOfMonth());\r\n }\r\n\r\n }\r\n });\r\n\r\n if ((mSelectDatePicker.getMonth() + 1) < 10 && mSelectDatePicker.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-0\" + (mSelectDatePicker.getMonth() + 1) + \"-0\" + mSelectDatePicker.getDayOfMonth());\r\n } else if ((mSelectDatePicker.getMonth() + 1) >= 10 && mSelectDatePicker.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-\" + (mSelectDatePicker.getMonth() + 1) + \"-0\" + mSelectDatePicker.getDayOfMonth());\r\n } else if ((mSelectDatePicker.getMonth() + 1) < 10 && mSelectDatePicker.getDayOfMonth() >= 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-0\" + (mSelectDatePicker.getMonth() + 1) + \"-\" + mSelectDatePicker.getDayOfMonth());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-\" + (mSelectDatePicker.getMonth() + 1) + \"-\" + mSelectDatePicker.getDayOfMonth());\r\n }\r\n\r\n } else if (nDatetimeMode == DATETIME_MODE_STARTTIME) {\r\n tvDateTimeTitle.setText(R.string.lblStartTime2);\r\n layoutDatePicker.setVisibility(View.GONE);\r\n layoutTimePicker.setVisibility(View.VISIBLE);\r\n\r\n mSelectTimePicker.setIs24HourView(true);\r\n mSelectTimePicker.setCurrentHour((int) nStartHour);// 锟斤拷锟斤拷timePicker小时锟斤拷\r\n mSelectTimePicker.setCurrentMinute((int) nStartMin); // 锟斤拷锟斤拷timePicker锟斤拷锟斤拷锟斤拷\r\n mSelectTimePicker.setOnTimeChangedListener(new OnTimeChangedListener() {\r\n\r\n @Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\r\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }\r\n\r\n });\r\n\r\n if (mSelectTimePicker.getCurrentHour() < 10 && mSelectTimePicker.getCurrentMinute() < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + mSelectTimePicker.getCurrentHour() + \":0\" + mSelectTimePicker.getCurrentMinute());\r\n } else if (mSelectTimePicker.getCurrentHour() >= 10 && mSelectTimePicker.getCurrentMinute() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectTimePicker.getCurrentHour() + \":0\" + mSelectTimePicker.getCurrentMinute());\r\n } else if (mSelectTimePicker.getCurrentHour() < 10 && mSelectTimePicker.getCurrentMinute() >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + mSelectTimePicker.getCurrentHour() + \":\" + mSelectTimePicker.getCurrentMinute());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectTimePicker.getCurrentHour() + \":\" + mSelectTimePicker.getCurrentMinute());\r\n }\r\n\r\n } else if (nDatetimeMode == DATETIME_MODE_ENDTIME) {\r\n tvDateTimeTitle.setText(R.string.lblEndTime2);\r\n layoutDatePicker.setVisibility(View.GONE);\r\n layoutTimePicker.setVisibility(View.VISIBLE);\r\n\r\n // @@System.out.println();// add for test\r\n mSelectTimePicker.setIs24HourView(true);\r\n mSelectTimePicker.setCurrentHour((int) nEndHour);// 锟斤拷锟斤拷timePicker小时锟斤拷\r\n mSelectTimePicker.setCurrentMinute((int) nEndMin); // 锟斤拷锟斤拷timePicker锟斤拷锟斤拷锟斤拷\r\n mSelectTimePicker.setOnTimeChangedListener(new OnTimeChangedListener() {\r\n\r\n @Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\r\n // TODO Auto-generated method stub\r\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }\r\n\r\n });\r\n\r\n if (mSelectTimePicker.getCurrentHour() < 10 && mSelectTimePicker.getCurrentMinute() < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + mSelectTimePicker.getCurrentHour() + \":0\" + mSelectTimePicker.getCurrentMinute());\r\n } else if (mSelectTimePicker.getCurrentHour() >= 10 && mSelectTimePicker.getCurrentMinute() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectTimePicker.getCurrentHour() + \":0\" + mSelectTimePicker.getCurrentMinute());\r\n } else if (mSelectTimePicker.getCurrentHour() < 10 && mSelectTimePicker.getCurrentMinute() >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + mSelectTimePicker.getCurrentHour() + \":\" + mSelectTimePicker.getCurrentMinute());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectTimePicker.getCurrentHour() + \":\" + mSelectTimePicker.getCurrentMinute());\r\n }\r\n }\r\n\r\n }"
] | [
"0.6611766",
"0.6179595",
"0.5977142",
"0.5944716",
"0.5936397",
"0.5925394",
"0.5822427",
"0.58049893",
"0.5762004",
"0.57349586",
"0.5706581",
"0.57032317",
"0.5698693",
"0.5694573",
"0.5675912",
"0.56743914",
"0.56743914",
"0.5662932",
"0.5657601",
"0.56542027",
"0.5653589",
"0.5643977",
"0.5638462",
"0.5632641",
"0.5631567",
"0.5624571",
"0.56239885",
"0.56122404",
"0.55943197",
"0.553669",
"0.55051035",
"0.55040485",
"0.5499651",
"0.5481519",
"0.5474542",
"0.54683304",
"0.54655534",
"0.5464194",
"0.54631233",
"0.54603136",
"0.5437827",
"0.5430611",
"0.5423013",
"0.54195404",
"0.54083836",
"0.54053164",
"0.5400717",
"0.539013",
"0.537722",
"0.5370682",
"0.536636",
"0.53655356",
"0.53613687",
"0.53561866",
"0.5348015",
"0.5331897",
"0.5328945",
"0.53285056",
"0.53259933",
"0.53111106",
"0.5307449",
"0.5306881",
"0.5304331",
"0.53037304",
"0.53016156",
"0.52906543",
"0.5286489",
"0.5285474",
"0.5283029",
"0.52809227",
"0.5278258",
"0.5277784",
"0.5276338",
"0.5275474",
"0.5273442",
"0.5264674",
"0.52635306",
"0.5259374",
"0.5246105",
"0.52430934",
"0.52414167",
"0.5237217",
"0.52323353",
"0.5228359",
"0.52239114",
"0.5221569",
"0.5214272",
"0.5214024",
"0.52132946",
"0.521248",
"0.5209928",
"0.52092934",
"0.52078706",
"0.5203148",
"0.5198368",
"0.5193274",
"0.51881766",
"0.51796305",
"0.51777816",
"0.5177662"
] | 0.670872 | 0 |
End startFragmentSelectCategory Start fragment LenderBorrower | private void startFragmentLenderBorrower(String oldPeople) {
FragmentLenderBorrower nextFrag = new FragmentLenderBorrower();
Bundle bundle = new Bundle();
bundle.putInt("Tab", mTab);
bundle.putSerializable("Category", mCategory);
bundle.putString("People", oldPeople);
bundle.putSerializable("Callback", this);
nextFrag.setArguments(bundle);
mActivity.addFragment(mTab, mContainerViewId, nextFrag, "FragmentLenderBorrower", true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void startFragmentSelectCategory(int oldCategoryId) {\n LogUtils.logEnterFunction(Tag, \"OldCategoryId = \" + oldCategoryId);\n FragmentTransactionSelectCategory nextFrag = new FragmentTransactionSelectCategory();\n Bundle bundle = new Bundle();\n bundle.putInt(\"Tab\", mTab);\n bundle.putBoolean(\"CategoryType\", false);\n bundle.putInt(\"CategoryID\", oldCategoryId);\n bundle.putSerializable(\"Callback\", this);\n nextFrag.setArguments(bundle);\n mActivity.addFragment(mTab, mContainerViewId, nextFrag, \"FragmentTransactionSelectCategory\", true);\n }",
"private void openCategorySelection() {\n CategorySelectionDialogFragment categorySelectionDialogFragment = CategorySelectionDialogFragment\n .newInstance(categories);\n categorySelectionDialogFragment.show(getChildFragmentManager(), \"CategorySelectionDialogFragment\");\n }",
"public void loadBooksOfCategory(){\n long categoryId=mainActivityViewModel.getSelectedCategory().getMcategory_id();\n Log.v(\"Catid:\",\"\"+categoryId);\n\n mainActivityViewModel.getBookofASelectedCategory(categoryId).observe(this, new Observer<List<Book>>() {\n @Override\n public void onChanged(List<Book> books) {\n if(books.isEmpty()){\n binding.emptyView.setVisibility(View.VISIBLE);\n }\n else {\n binding.emptyView.setVisibility(View.GONE);\n }\n\n booksAdapter.setmBookList(books);\n }\n });\n }",
"public void selectCategory() {\n\t\t\r\n\t}",
"public LoreBookSelectionAdapter(Context context, List<LoreBookSelectionInformation> bookSelectionData, FragmentManager fragmentManager) {\n super();\n this.inflater = LayoutInflater.from(context);\n this.bookSelectionData = bookSelectionData;\n this.database = ManifestDatabase.getInstance(context);\n this.fragmentManager = fragmentManager;\n loadLoreEntries();\n }",
"private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }",
"public CategoryFragment() {\n }",
"@Override\n public void onClick(View view) {\n String name = bookName.getText().toString();\n while (entryIDThreads.activeCount() > 0) {\n try {\n Thread.sleep(50);\n } catch (InterruptedException interruptedexception) {\n interruptedexception.printStackTrace();\n }\n }\n LoreEntrySelectionFragment entryFragment = new LoreEntrySelectionFragment();\n entryFragment.setName(name);\n entryFragment.setEntrySelectionIDs(entryIDMap.get(name));\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.loreBooksActivity, entryFragment, \"LoreEntrySelectionFragment\").addToBackStack(null).commit();\n }",
"@Override\r\n public void onClick(View view) {\n Bundle bundle = new Bundle();\r\n bundle.putInt(CategoryItem.CAT_ID, categoryItem.getCategoryId());\r\n categoryFragment.setArguments(bundle);\r\n String title = mContext.getResources().getString(R.string.app_name);\r\n HomeMainActivity.addFragmentToBackStack(categoryFragment, title);\r\n }",
"@Override\n public void onClick(View v) {\n\n AppCompatActivity appCompatActivity = (AppCompatActivity)v.getContext();\n\n frameLayout = appCompatActivity.findViewById(R.id.home_Framelayout);\n\n fragmentManager = appCompatActivity.getSupportFragmentManager();\n\n\n\n\n// bun.putInt(\"image\",getAdapterPosition());\n// fragment.setArguments(bun);\n// if (fragment !=null){\n// fragmentManager.beginTransaction().replace(frameLayout.getId(),fragment).commit();\n// }\n\n\n\n\n\n\n\n\n\n\n\n // get position of each item\n\n int position = getAdapterPosition();\n\n // check if category item exist or not\n if (position !=0 || position !=RecyclerView.NO_POSITION){\n // if the item exist then get the position of the item\n\n fragmentCategoriesList list = categoriesLists.get(position);\n\n // after getting the position send the user to the page of each category item\n if (position == 0){\n setFragment(new Category_Shoes());\n }\n else{\n if (position ==1){\n\n setFragment(new Category_FemaleDress());\n\n\n } else if (position ==2){\n\n setFragment(new female_Necklace());\n\n\n }else if (position ==3){\n setFragment(new categoryPhonesAndTablet());\n\n\n\n\n\n }else if (position ==4){\n\n setFragment(new computer_Accessories());\n\n\n }else if (position ==5){\n\n setFragment(new cameraAccessories());\n\n\n }else if (position ==6){\n setFragment(new categorySpeakers());\n\n\n\n\n }else if (position ==7){\n setFragment(new categoryGaming());\n\n\n\n\n }else if (position ==8){\n setFragment(new categoryBag());\n\n\n\n\n }\n else if (position ==9) {\n\n setFragment(new categoryBabyProduct());\n\n }\n\n else if (position ==10) {\n\n setFragment(new categoryMuscialInstrument());\n\n }\n else if (position ==11) {\n\n setFragment(new categoryWatches());\n\n }\n else if (position ==12) {\n\n setFragment(new categorySportingGoods());\n\n }else if (position ==13) {\n setFragment(new categoryTelevision());\n\n\n\n\n }\n\n }\n\n\n\n\n\n\n }\n }",
"public void onSelectCategory(View view) {\n\n Intent intent = new Intent(this, SelectCategoryActivity.class);\n intent.putExtra(\"whichActivity\", 1);\n startActivity(intent);\n\n }",
"@SuppressLint(\"WrongConstant\")\n\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View viewe= inflater.inflate(R.layout.fragment_listar_orden, container, false);\n //initialize the variables\n //Appbar page filter\n Spinner cmbToolbar = (Spinner) viewe.findViewById(R.id.CmbToolbar);\n\n ArrayAdapter<String> adapter = new ArrayAdapter<>(\n ((AppCompatActivity) getActivity()).getSupportActionBar().getThemedContext(),\n R.layout.appbar_filter_mesa,\n new String[]{\"Mesa 1 \", \"Mesa 2 \", \"Mesa 3 \", \"Mesa 4\", \"Mesa 5\", \"Mesa 6\"});\n\n adapter.setDropDownViewResource(R.layout.appbar_filter_mesa);\n\n cmbToolbar.setAdapter(adapter);\n\n cmbToolbar.setAdapter(adapter);\n\n cmbToolbar.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) {\n recyclerview(viewe,position+1);\n }\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n //... Acciones al no existir ningún elemento seleccionado\n // recyclerview(viewe,1);\n\n }\n });\n\n // recyclerview(viewe);\n return viewe;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View rootView = inflater.inflate(R.layout.fragment_feedback, container, false);\n\n //Populate the spinner in the fragment\n Spinner courseSpinner = (Spinner) rootView.findViewById(R.id.courseSpinner);\n\n List<String> courseCategories = new ArrayList<String>();\n courseCategories.add(\"Applied Cryptography\");\n courseCategories.add(\"Positive Psychology\");\n courseCategories.add(\"Number Theory\");\n\n ArrayAdapter<String> courseDataAdapter = new ArrayAdapter<String>(this.getContext(), android.R.layout.simple_spinner_item, courseCategories);\n courseDataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n courseSpinner.setAdapter(courseDataAdapter);\n\n\n\n Spinner loadSpinner = (Spinner) rootView.findViewById(R.id.loadSpinner);\n\n List<String> loadCategories = new ArrayList<String>();\n loadCategories.add(\"3\");\n loadCategories.add(\"5\");\n loadCategories.add(\"7\");\n loadCategories.add(\"9\");\n loadCategories.add(\"11\");\n loadCategories.add(\"13\");\n loadCategories.add(\"15\");\n loadCategories.add(\"18\");\n\n ArrayAdapter<String> loadDataAdapter = new ArrayAdapter<String>(this.getContext(), android.R.layout.simple_spinner_item, loadCategories);\n loadDataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n loadSpinner.setAdapter(loadDataAdapter);\n\n Spinner gradeSpinner = (Spinner) rootView.findViewById(R.id.avGradeSpinner);\n\n List<String> gradeCategories = new ArrayList<String>();\n gradeCategories.add(\"4\");\n gradeCategories.add(\"5\");\n gradeCategories.add(\"6\");\n gradeCategories.add(\"7\");\n gradeCategories.add(\"8\");\n gradeCategories.add(\"9\");\n gradeCategories.add(\"10\");\n\n ArrayAdapter<String> gradeDataAdapter = new ArrayAdapter<String>(this.getContext(), android.R.layout.simple_spinner_item, gradeCategories);\n gradeDataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);\n gradeSpinner.setAdapter(gradeDataAdapter);\n\n return rootView;\n\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_category, container, false);\r\n rvCats = view.findViewById(R.id.rvCats);\r\n dataViewCats = view.findViewById(R.id.dataViewCats);\r\n errorViewCats = view.findViewById(R.id.errorViewCats);\r\n btnUploadRequirement = view.findViewById(R.id.btnUploadRequirement);\r\n inputSearch = view.findViewById(R.id.inputSearch);\r\n\r\n slider = view.findViewById(R.id.banner_slider);\r\n// sliderImageList.addAll(response.body());\r\n slider.setAdapter(new MainSliderAdapter());\r\n slider.setSelectedSlide(0);\r\n\r\n// getSliderImages();\r\n\r\n getAllCategories();\r\n\r\n //recycler view\r\n rvCats.setHasFixedSize(true);\r\n GridLayoutManager llm = new GridLayoutManager(getActivity(),3);\r\n// LinearLayoutManager llm = new LinearLayoutManager(getActivity());\r\n// llm.setOrientation(LinearLayoutManager.VERTICAL);\r\n rvCats.setLayoutManager(llm);\r\n\r\n categoryAdapter = new CategoryAdapter(getActivity(),catList);\r\n categoryAdapter.setCatClickListner(this);\r\n rvCats.setAdapter(categoryAdapter);\r\n //recycler ended\r\n\r\n productAutoCompleteAdapter = new ProductAutoCompleteAdapter(getActivity(),productsList);\r\n inputSearch.setAdapter(productAutoCompleteAdapter);\r\n productAutoCompleteAdapter.setSugClickListner(this);\r\n\r\n btnUploadRequirement.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n checkPermission();\r\n }\r\n });\r\n return view;\r\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_categories, container, false);\r\n\r\n btn = (Button) view.findViewById(R.id.b1);\r\n btn.setOnClickListener(this);\r\n\r\n country1 = (RadioButton) view.findViewById(c1);\r\n country2 = (RadioButton) view.findViewById(c2);\r\n country3 = (RadioButton) view.findViewById(c3);\r\n radiogp = (RadioGroup) view.findViewById(R.id.radiogrp);\r\n\r\n course = (EditText) view.findViewById(e1);\r\n spn = (Spinner) view.findViewById(R.id.s1);\r\n spn.setOnItemSelectedListener(this);\r\n array1 = new ArrayList<>();\r\n array1.add(\"Postgraduate Courses\");\r\n array1.add(\"Undergraduate Courses\");\r\n array1.add(\"Diploma\");\r\n array1.add(\"[Choose Study Level]\");\r\n final int listsize = array1.size() - 1;\r\n adap = new ArrayAdapter<String>(this.getActivity(), R.layout.spinner1_item, array1) {\r\n @Override\r\n public int getCount() {\r\n return (listsize); // Truncate the list\r\n }\r\n };\r\n adap.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n spn.setAdapter(adap);\r\n spn.setSelection(listsize);\r\n sharedpreference = getActivity().getSharedPreferences(InitializePref.myPrefrence, this.getActivity().MODE_PRIVATE);\r\n return view;\r\n\r\n }",
"private void setupFilterSpinner() {\n categories.add(\"All\");\n categories.add(\"Clothing\");\n categories.add(\"Hat\");\n categories.add(\"Kitchen\");\n categories.add(\"Electronics\");\n categories.add(\"Household\");\n categories.add(\"Other\");\n filter = findViewById(R.id.spinnerFilter);\n ArrayAdapter<String> adapter =\n new ArrayAdapter(this, android.R.layout.simple_spinner_item, categories);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n filter.setAdapter(adapter);\n filter.setOnItemSelectedListener(\n new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(\n AdapterView<?> adapterView, View view, int position, long id) {\n if (position >= 0 && position < options.length) {\n position1 = position;\n View recyclerView = findViewById(R.id.donations_list);\n assert recyclerView != null;\n setupRecyclerView((RecyclerView) recyclerView);\n } else {\n Toast.makeText(\n DonationsListActivity.this,\n \"Selected Category DNE\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {}\n });\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n compaCategory = parent.getItemAtPosition(position).toString();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view= inflater.inflate(R.layout.fragment_sell_books, container, false);\n // ButterKnife.bind(this,view);\n\n bookNameSell=view.findViewById(R.id.bookNameSell);\n authorNameSell=view.findViewById(R.id.bookAuthorSell);\n btnLogin1 = view. findViewById(R.id.btnLogin1);\n // Spinner element\n Spinner spinner1 = view. findViewById(R.id.spinner3);\n Spinner spinner2 = view. findViewById(R.id.spinner4);\n\n // Spinner click listener\n spinner1.setOnItemSelectedListener(this);\n spinner2.setOnItemSelectedListener(this);\n\n // Spinner Drop down elements\n List<String> department = new ArrayList<String>();\n department.add(\"Information Science\");\n department.add(\"Computer Science\");\n department.add(\"Mechanical\");\n department.add(\"Electronics\");\n department.add(\"Electrical\");\n department.add(\"Civil\");\n department.add(\"Biotechnology\");\n department.add(\"Telecommunication\");\n\n List<String> semester = new ArrayList<String>();\n semester.add(\"First\");\n semester.add(\"Second\");\n semester.add(\"Third\");\n semester.add(\"Fourth\");\n semester.add(\"Fifth\");\n semester.add(\"Sixth\");\n semester.add(\"Seventh\");\n semester.add(\"Eighth\");\n\n\n ArrayAdapter<String> dataAdapter1 = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item, department);\n ArrayAdapter<String> dataAdapter2 = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item, semester);\n\n // Drop down layout style - list view with radio button\n dataAdapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n dataAdapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // attaching data adapter to spinner\n spinner1.setAdapter(dataAdapter1);\n spinner2.setAdapter(dataAdapter2);\n btnLogin1.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View view) {\n\n if ((bookNameSell != null && bookNameSell.length() > 0) && (authorNameSell != null && authorNameSell.length() > 0)) {\n { //THEN SEND TO THE NEXT ACTIVITY\n Intent i = new Intent(getActivity().getBaseContext(), finalBookDetails.class);\n i.putExtra(\"Department\", item1);\n i.putExtra(\"Semester\", item2);\n i.putExtra(\"bookNameSell\",bookNameSell.getText().toString());\n i.putExtra(\"authorNameSell\",authorNameSell.getText().toString());\n\n getActivity().startActivity(i);\n }\n\n }\n else if (!(bookNameSell != null && bookNameSell.length() > 0))\n {\n Toast.makeText(getActivity(),\"Book Name can't be empty \",Toast.LENGTH_SHORT).show();\n }\n else\n {\n Toast.makeText(getActivity(),\"Author Name can't be empty \",Toast.LENGTH_SHORT).show();\n }\n\n\n // btnLogin1.setError(\"Please Enter The Book Name\");\n //Toast.makeText(, \"Name Must Not Be Empty\", Toast.LENGTH_SHORT).show();\n\n }\n });\n\n\n return view;\n }",
"public MenuCategoryFragment() {\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }",
"@Override\n\t\t\t\t\tpublic void onSelcted(Category mParent, Category category) {\n\t\t\t\t\t\tif (view == solverMan) {\n\t\t\t\t\t\t\tsolverCategory = category;\n\t\t\t\t\t\t\tsolverMan.setContent(category.getName());\n\t\t\t\t\t\t} else {// check is foucs choose person\n\t\t\t\t\t\t\tChooseItemView chooseItemView = (ChooseItemView) view\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.common_add_item_title);\n\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (category.getId().equals(mCategory.getId())) {\n\t\t\t\t\t\t\t\t\t// modify do nothing.\n\t\t\t\t\t\t\t\t\tif (!category.getName().equals(\n\t\t\t\t\t\t\t\t\t\t\tchooseItemView.getContent())) {\n\t\t\t\t\t\t\t\t\t\tshowToast(\"该关注人已经在列表了\");// not in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// chooseItem,but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// other already\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// has this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// name.\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchooseItemView.setContent(category.getName());\n\n\t\t\t\t\t\t\tAddItem addItem = (AddItem) chooseItemView.getTag();\n\t\t\t\t\t\t\t// 关注人是否已经存在,就只更新\n\t\t\t\t\t\t\tfor (Category mCategory : mGuanzhuList) {\n\t\t\t\t\t\t\t\tif (addItem.tag.equals(mCategory.tag)) {\n\t\t\t\t\t\t\t\t\t// modify .\n\t\t\t\t\t\t\t\t\tmCategory.setName(category.getName());\n\t\t\t\t\t\t\t\t\tmCategory.setId(category.getId());\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLog.i(TAG,\n\t\t\t\t\t\t\t\t\t\"can not find the select item from fouc:\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}",
"public CategoriesFragment() {\n }",
"private void startAddBookFragment() {\n if (this.menu != null) {\n this.menu.findItem(R.id.menu_search).setVisible(false);\n this.menu.findItem(R.id.add_book).setVisible(false);\n }\n\n // Create new fragment and transaction\n AddBookFragment addBookFragment = new AddBookFragment();\n\n // consider using Java coding conventions (upper first char class names!!!)\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.activityAfterLoginId, addBookFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }",
"@Override\n public void onClick(View view, int position) {\n Fragment fragment = new CategoryFragment();\n FragmentManager fragmentManager = ((FragmentActivity) activity)\n .getSupportFragmentManager();\n String title = \"CategoryFragment\";\n Bundle bundle = new Bundle();\n bundle.putString(\"spot_id\", id);\n bundle.putString(\"section_id\", sectionsArrayList.get(position).getSectionID());\n bundle.putString(\"name\", sectionsArrayList.get(position).getSectionName());\n fragment.setArguments(bundle);\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.container_body, fragment, title);\n fragmentTransaction.addToBackStack(title);\n fragmentTransaction.commit();\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 recyclerView = (RecyclerView) view.findViewById(R.id.categoryWise);\n adapter = new MayankAdapter(getActivity(), getData());\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n recyclerView.addOnItemTouchListener(new RecyclerTouchListener(getActivity(), recyclerView, new ClickListener() {\n @Override\n public void onClick(View view, int position) {\n Toast.makeText(getActivity(), \"You Clicked\" + getData().get(position).title, Toast.LENGTH_LONG).show();\n\n switch (position) {\n case 0:\n startActivity(new Intent(getActivity(), ComputerScience.class));\n break;\n case 1:\n startActivity(new Intent(getActivity(), Electrical.class));\n break;\n case 2:\n startActivity(new Intent(getActivity(), Fiction.class));\n break;\n case 3:\n startActivity(new Intent(getActivity(), Mathematics.class));\n break;\n case 4:\n startActivity(new Intent(getActivity(), Mechanical.class));\n break;\n case 5:\n startActivity(new Intent(getActivity(), Chemical.class));\n break;\n case 6:\n startActivity(new Intent(getActivity(), Civil.class));\n break;\n case 7:\n startActivity(new Intent(getActivity(), Others.class));\n break;\n }\n }\n\n @Override\n public void onLongClick(View view, int position) {\n\n }\n }));\n\n recyclerView.setAdapter(adapter);\n return view;\n }",
"@Override\n public void onClick(View view) {\n Fragment fragment = new GroupCustomizationFragment();\n mListener.navigate_to_fragment(fragment);\n }",
"@Override\n\t\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\t\tView view, int position, long id) {\n\t\t\t\t\t\t\tif(position!=0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tMyspinner sp = (Myspinner)districtlist.getSelectedItem();\n\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\tencryptedgeoid = new Webservicerequest().Encrypt(sp.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\t\t\t\te.getMessage();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcategory2.addAll(get.getMandi(encryptedgeoid));\t\n\t\t\t\t\t\t\t\tMyspinner[] redemo2 = new Myspinner[category2.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category2.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo2[i] = new Myspinner(category2.get(i).get(\"2\"), category2.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter2 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo2);\n\t\t\t\t \t\t\t\tmandilist.setAdapter(adapter2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tArrayList<HashMap<String,String>> category2=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\t\t\t\tHashMap<String, String> map2=new HashMap<String, String>();\n\t\t\t\t \t\t\t\tmap2.put(\"1\",\"\");\n\t\t\t\t \t\t\t\tmap2.put(\"2\",\"Select Mandi\");\n\t\t\t\t \t\t\t\tcategory2.add(map2);\n\t\t\t\t\t\t\t\tMyspinner[] redemo2 = new Myspinner[category2.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category2.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo2[i] = new Myspinner(category2.get(i).get(\"2\"), category2.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter2 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo2);\n\t\t\t\t \t\t\t\tmandilist.setAdapter(adapter2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n int iyear = 0;\n switch (v.getId()) {\n case R.id.tvleave_begda:\n begdaShowDatePickerDialog();\n break;\n case R.id.tvleave_endda:\n enddaShowDatePickerDialog();\n break;\n case R.id.leave_propose:\n if(check_leave_propose()){\n String[] aLeaveKey = getResources().getStringArray(R.array.leave_key_arrays);\n leave_propose(aLeaveKey[(int)spinnerLeaveType.getSelectedItemId()],\n new StringBuilder().append(begYear)\n .append(\"-\").append(char2(begMonth + 1)).append(\"-\").append(char2(begDay)).toString(),\n new StringBuilder().append(endYear)\n .append(\"-\").append(char2(endMonth + 1)).append(\"-\").append(char2(endDay)).toString(),\n etReason.getText().toString());\n }\n break;\n case R.id.leave_cancel:\n SelfLeaveFragment fragment = new SelfLeaveFragment();\n Bundle bundle = new Bundle();\n fragment.setArguments(bundle);\n ((BaseContainerFragment) this.getParentFragment()).replaceFragment(fragment, true);\n break;\n }\n }",
"private void loadBookPageFragment() {\n\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.addToBackStack(\"ListView\"); // enables to press \"return\" and go back to the list view\n transaction.replace(R.id.main_fragment_container, new BookPageFragment());\n transaction.commit();\n }",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int index, long arg3) {\n if (index != 0) {\n categoryId = arrCategory.get(index).getId() + \"\";\n } else {\n categoryId = \"\";\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString colorString = flowerColorHorizontalSelector.getSelected();\n\t\t\t\tString leafShapeString = leafShapeHorizontalSelector.getSelected();\n\t\t\t\tString leafMarginString = leafMarginHorizontalSelector.getSelected();\n\t\t\t\tString leafArrangementString = leafArrangementHorizontalSelector.getSelected();\n\t\t\t\t//Uncomfortable putting this here ////messy\n\t\t\t\tif (colorString!=null | leafShapeString!=null | leafMarginString!=null | leafArrangementString!=null){\n\t\t\t\t\tCursor cursor = ((MainActivity) getActivity()).getLeaves(colorString, leafShapeString,leafMarginString,leafArrangementString);\n\t\t\t mListener.fragmentToActivity(2, cursor);\n\t\t\t\t}else{\n\t\t\t\t\tshowText(\"Please select at least one option from one category.\");\n\t\t\t\t}\n\t\t\t}",
"private void selectItemFromDrawer(int position) {\n Fragment fragment = new RecipesActivity();\n\n if (ApplicationData.getInstance().accountType.equalsIgnoreCase(\"free\")) {\n switch (position) {\n case 0:\n goToHomePage();\n break;\n case 1: //decouvir\n fragment = new DiscoverActivity();\n break;\n case 2: //bilan\n fragment = new BilanMinceurActivity();\n break;\n case 3: //temoignages\n fragment = new TemoignagesActivity();\n break;\n case 4: //recetters\n fragment = new RecipesActivity();\n break;\n case 5: //mon compte\n fragment = new MonCompteActivity();\n break;\n default:\n fragment = new RecipesActivity();\n }\n } else {\n switch (position) {\n case 0:\n goToHomePage();\n break;\n case 1: //coaching\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Coaching;\n if (!ApplicationData.getInstance().fromArchive)\n ApplicationData.getInstance().selectedWeekNumber = AppUtil.getCurrentWeekNumber(Long.parseLong(ApplicationData.getInstance().dietProfilesDataContract.CoachingStartDate), new Date());\n fragment = new CoachingAccountFragment();\n break;\n case 2: //repas\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Repas;\n fragment = new RepasFragment();\n break;\n case 3: //recettes\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Recettes;\n fragment = new RecipesAccountFragment();\n break;\n case 4: //conseils\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Conseil;\n fragment = new WebinarFragment();\n break;\n case 5: //exercices\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Exercices;\n fragment = new ExerciceFragment();\n break;\n case 6: //suivi\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Suivi;\n fragment = new WeightGraphFragment();\n break;\n case 7: //mon compte\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_MonCompte;\n fragment = new MonCompteAccountFragment();\n break;\n case 8: //apropos\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Apropos;\n fragment = new AproposFragment();\n break;\n default:\n fragment = new CoachingAccountFragment();\n }\n }\n\n FragmentManager fragmentManager = getFragmentManager();\n if (getFragmentManager().findFragmentByTag(\"CURRENT_FRAGMENT\") != null) {\n fragmentManager.beginTransaction().remove(getFragmentManager().findFragmentByTag(\"CURRENT_FRAGMENT\")).commit();\n } else {\n }\n\n try {\n\n fragmentManager.beginTransaction().replace(R.id.mainContent, fragment, \"CURRENT_FRAGMENT\").commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n mDrawerList.setItemChecked(position, true);\n setTitle(mNavItems.get(position).mTitle);\n\n // Close the drawer\n mDrawerLayout.closeDrawer(mDrawerPane);\n }",
"private void CallHomePage() {\n\t\t\n\t\tfr = new FragmentCategories();\n\t\tFragmentManager fm = getFragmentManager();\n\t\tFragmentTransaction fragmentTransaction = fm.beginTransaction();\n\t\tfragmentTransaction.replace(R.id.fragment_place, fr);\n\t\tfragmentTransaction.addToBackStack(null);\n\t\tfragmentTransaction.commit();\n\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_manufacturerslist, container, false);\n AllocateMemory(v);\n AttachRecyclerview();\n parent=(NavigationActivity) getActivity();\n bottom_navigation.getMenu().getItem(1).setChecked(true);\n setupUI(lv_parent_manufacturer);\n api = ApiClient.getClient().create(ApiInterface.class);\n setHasOptionsMenu(true);\n hideKeyboard(parent);\n Filterlist_Adapter.filter_child_value_list.clear();\n Filterlist_Adapter.filter_grouppp_namelist.clear();\n FilterListFragment.selected_child=\"\";\n\n ((NavigationActivity) parent).setSupportActionBar(toolbar_manufacturer);\n ((NavigationActivity) parent).getSupportActionBar()\n .setDisplayHomeAsUpEnabled(true);\n ((NavigationActivity) parent).getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_menu_black_24dp);\n toolbar_manufacturer.setTitle(parent.getResources().getString(R.string.Manufacturers));\n toolbar_manufacturer.setNavigationOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n drawer.openDrawer(GravityCompat.START);\n }\n });\n\n /*merlin = new Merlin.Builder().withConnectableCallbacks().build(getActivity());\n\n merlin.registerConnectable(new Connectable() {\n @Override\n public void onConnect() {\n // Do something you haz internet!\n callgetmenufaturerslistapi(page_no);\n }\n });*/\n\n if (CheckNetwork.isNetworkAvailable(parent)) {\n callgetmenufaturerslistapi(page_no);\n } else {\n Toast.makeText(parent, getResources().getString(R.string.internet), Toast.LENGTH_SHORT).show();\n }\n v.setOnKeyListener(new View.OnKeyListener() {\n @Override\n public boolean onKey(View view, int i, KeyEvent keyEvent) {\n\n getActivity().onBackPressed();\n\n return false;\n }\n });\n return v;\n }",
"@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\t\t\t\tcategory = parent.getItemAtPosition(0).toString();\n\t\t\t\t\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle saved) {\n ctx = getActivity();\n inflater = getActivity().getLayoutInflater();\n view = inflater.inflate(R.layout.fragment_category_list, container,\n false);\n setFields();\n // Bundle b = getArguments();\n company = SharedUtil.getCompany(ctx);\n administrator = SharedUtil.getAdministrator(ctx);\n getCategories();\n setList();\n return view;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\tLayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\t\t\tView activity = inflater.inflate(R.layout.createactivity, null);\n\t\t\t\t\t\n\t\t\t\t\tfinal Spinner districtlist = (Spinner)activity.findViewById(R.id.district);\n\t\t\t\t\tfinal Spinner mandilist = (Spinner)activity.findViewById(R.id.mandi);\n\t\t\t\t\tfinal Spinner retailerslist = (Spinner)activity.findViewById(R.id.retailers);\n\t\t\t\t\tfinal Spinner activitieslist = (Spinner)activity.findViewById(R.id.activitieslist);\n\t\t\t\t\tfinal EditText remarks = (EditText)activity.findViewById(R.id.remarks);\n\t\t\t\t\tfinal AutoCompleteTextView villages = (AutoCompleteTextView)activity.findViewById(R.id.autovillage);\n\t\t\t\t\t\n\t\t\t\t\tArrayList<HashMap<String, String>> category1=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\tHashMap<String, String> map1=new HashMap<String, String>();\n\t \t\t\t\tmap1.put(\"1\",\"\");\n\t \t\t\t\tmap1.put(\"2\",\"Select District\");\n\t \t\t\t\tcategory1.add(map1);\n\t \t\t\t\t\n\t \t\t\t\tfinal ArrayList<HashMap<String, String>> category2=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\tHashMap<String, String> map2=new HashMap<String, String>();\n\t \t\t\t\tmap2.put(\"1\",\"\");\n\t \t\t\t\tmap2.put(\"2\",\"Select Mandi\");\n\t \t\t\t\tcategory2.add(map2);\n\t \t\t\t\t\n\t \t\t\t\tfinal ArrayList<HashMap<String, String>> category3=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\tHashMap<String, String> map3=new HashMap<String, String>();\n\t \t\t\t\tmap3.put(\"1\",\"\");\n\t \t\t\t\tmap3.put(\"2\",\"Select Retailer\");\n\t \t\t\t\tcategory3.add(map3);\n\t\t\t\t\t\n\t \t\t\t\tfinal ArrayList<HashMap<String, String>> category4=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\tHashMap<String, String> map4=new HashMap<String, String>();\n\t \t\t\t\tmap4.put(\"1\",\"\");\n\t \t\t\t\tmap4.put(\"2\",\"Select Activity\");\n\t \t\t\t\tcategory4.add(map4);\n\t \t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\tArrayList<HashMap<String, String>> dist = new GetData(context, db).getDistrict();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int i=0; i<dist.size(); i++) {\n\t\t\t\t\t\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\t\t\t\t\tmap.put(\"1\",dist.get(i).get(\"Districtid\"));\n\t\t\t \t\t\t\tmap.put(\"2\",dist.get(i).get(\"Districtname\"));\n\t\t\t \t\t\t\tcategory1.add(map);\t\t \t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcategory4.addAll(get.getActivity());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\te.getMessage();\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t \t\t\t\t\n\t \t\t\t\tMyspinner[] redemo1 = new Myspinner[category1.size()];\n\t \t\t\t\tfor(int i=0; i<category1.size(); i++){\n\t \t\t\t\t\tredemo1[i] = new Myspinner(category1.get(i).get(\"2\"), category1.get(i).get(\"1\"), \"\");\n\t \t\t\t\t}\n\t \t\t\t\tArrayAdapter<Myspinner> adapter1 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo1);\t \t\t\t\t\n\t \t\t\t\tdistrictlist.setAdapter(adapter1);\n\t \t\t\t\t\n\t \t\t\t\tdistrictlist.setOnItemSelectedListener(new OnItemSelectedListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\t\tView view, int position, long id) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif(position!=0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tMyspinner sp = (Myspinner)districtlist.getSelectedItem();\n\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\tencryptedgeoid = new Webservicerequest().Encrypt(sp.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\t\t\t\te.getMessage();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcategory2.addAll(get.getMandi(encryptedgeoid));\t\n\t\t\t\t\t\t\t\tMyspinner[] redemo2 = new Myspinner[category2.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category2.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo2[i] = new Myspinner(category2.get(i).get(\"2\"), category2.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter2 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo2);\n\t\t\t\t \t\t\t\tmandilist.setAdapter(adapter2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tArrayList<HashMap<String,String>> category2=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\t\t\t\tHashMap<String, String> map2=new HashMap<String, String>();\n\t\t\t\t \t\t\t\tmap2.put(\"1\",\"\");\n\t\t\t\t \t\t\t\tmap2.put(\"2\",\"Select Mandi\");\n\t\t\t\t \t\t\t\tcategory2.add(map2);\n\t\t\t\t\t\t\t\tMyspinner[] redemo2 = new Myspinner[category2.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category2.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo2[i] = new Myspinner(category2.get(i).get(\"2\"), category2.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter2 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo2);\n\t\t\t\t \t\t\t\tmandilist.setAdapter(adapter2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t \t\t\t\t\n\t \t\t\t\tmandilist.setOnItemSelectedListener(new OnItemSelectedListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\t\tView view, int position, long id) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif(position!=0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tMyspinner sp = (Myspinner)mandilist.getSelectedItem();\n\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\tencryptedgeoid = new Webservicerequest().Encrypt(sp.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\t\t\t\te.getMessage();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcategory3.addAll(get.getretailersList(encryptedgeoid));\t\n\t\t\t\t\t\t\t\tMyspinner[] redemo3 = new Myspinner[category3.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category3.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo3[i] = new Myspinner(category3.get(i).get(\"2\"), category3.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter3 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo3);\n\t\t\t\t \t\t\t\tretailerslist.setAdapter(adapter3);\n\t\t\t\t\t\t\t\tArrayAdapter<String> adaptervillages = new ArrayAdapter<String>(context, android.R.layout.simple_spinner_dropdown_item, get.getVillageNames(encryptedgeoid));\n\t\t\t\t\t\t\t\tvillages.setAdapter(adaptervillages);\n\t\t\t\t\t\t\t\tvillages.setThreshold(3);\n\t\t\t\t\t\t\t\tvillages.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t\t\t public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t\t\t\t\t\t InputMethodManager in = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t\t\t\t\t\t\t in.hideSoftInputFromWindow(villages.getWindowToken(), 0);\n\n\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tvillages.setAdapter(null);\n\t\t\t\t\t\t\t\tArrayList<HashMap<String, String>> category3=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\t\t\t\tHashMap<String, String> map3=new HashMap<String, String>();\n\t\t\t\t \t\t\t\tmap3.put(\"1\",\"\");\n\t\t\t\t \t\t\t\tmap3.put(\"2\",\"Select Retailer\");\n\t\t\t\t \t\t\t\tcategory3.add(map3);\n\t\t\t\t \t\t\t\tMyspinner[] redemo3 = new Myspinner[category3.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category3.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo3[i] = new Myspinner(category3.get(i).get(\"2\"), category3.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter3 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo3);\n\t\t\t\t \t\t\t\tretailerslist.setAdapter(adapter3); \t\t\t\t \t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t \t\t\t\t\n\t \t\t\t\tMyspinner[] redemo2 = new Myspinner[category2.size()];\n\t \t\t\t\tfor(int i=0; i<category2.size(); i++){\n\t \t\t\t\t\tredemo2[i] = new Myspinner(category2.get(i).get(\"2\"), category2.get(i).get(\"1\"), \"\");\n\t \t\t\t\t}\n\t \t\t\t\tArrayAdapter<Myspinner> adapter2 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo2);\n\t \t\t\t\tmandilist.setAdapter(adapter2); \t\t\t\t \t\t\t\n\t \t\t\t\t\n\t \t\t\t\tMyspinner[] redemo3 = new Myspinner[category3.size()];\n\t \t\t\t\tfor(int i=0; i<category3.size(); i++){\n\t \t\t\t\t\tredemo3[i] = new Myspinner(category3.get(i).get(\"2\"), category3.get(i).get(\"1\"), \"\");\n\t \t\t\t\t}\n\t \t\t\t\tArrayAdapter<Myspinner> adapter3 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo3);\n\t \t\t\t\tretailerslist.setAdapter(adapter3); \t\t\t\t \t\t\t\t\n\t \t\t\t\t\n\t \t\t\t\tMyspinner[] redemo4 = new Myspinner[category4.size()];\n\t \t\t\t\tfor(int i=0; i<category4.size(); i++){\n\t \t\t\t\t\tredemo4[i] = new Myspinner(category4.get(i).get(\"2\"), category4.get(i).get(\"1\"), \"\");\n\t \t\t\t\t}\n\t \t\t\t\tArrayAdapter<Myspinner> adapter4 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo4);\n\t \t\t\t\tactivitieslist.setAdapter(adapter4);\n\t\t\t\t\t\n\t \t\t\t\ttry{\t \t\t\t\t\n\t \t\t\t\tfinal Date dt = new SimpleDateFormat(\"d MMMM yyyy\").parse(v.getTag().toString());\t \t\t\t\t\n\t \t\t\t\tAlertDialog.Builder build = new Builder(context)\n\t \t\t\t\t.setTitle(\"\"+new SimpleDateFormat(\"d MMM yyyy\").format(dt))\n\t\t\t\t\t.setView(activity)\n\t\t\t\t\t.setPositiveButton(\"Create\", null)\n\t\t\t\t\t.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tfinal AlertDialog alert = build.create();\t\t\t\t\t\n\t\t\t\t\talert.setOnShowListener(new OnShowListener() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onShow(DialogInterface dialog) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tButton b = alert.getButton(AlertDialog.BUTTON_POSITIVE);\n\t\t\t\t\t\t\tb.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t//dist,date,empId,spmandi,spretailer,spactivity,rem\n\t\t\t\t\t\t\t\t\tif(new ConnectionDetector(context).isConnectingToInternet()){\n\t\t\t\t\t\t\t\t\t\tMyspinner sp1 = (Myspinner)districtlist.getSelectedItem();\n\t\t\t\t\t\t\t\t\t\tMyspinner sp2 = (Myspinner)mandilist.getSelectedItem();\n\t\t\t\t\t\t\t\t\t\tMyspinner sp3 = (Myspinner)retailerslist.getSelectedItem();\n\t\t\t\t\t\t\t\t\t\tMyspinner sp4 = (Myspinner)activitieslist.getSelectedItem();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(districtlist.getSelectedItemPosition()!=0\n\t\t\t\t\t\t\t\t\t\t\t\t&& mandilist.getSelectedItemPosition()!=0\n\t\t\t\t\t\t\t\t\t\t\t\t\t&& retailerslist.getSelectedItemPosition()!=0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& activitieslist.getSelectedItemPosition()!=0){\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\tString date = new SimpleDateFormat(\"yyyy-MM-dd\").format(dt);\n\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> id = new GetData(context, db).getVillageId(villages.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tif(id.size()>0 && id.get(0).length()>0){\n\t\t\t\t\t\t\t\t\t\t\t\t\tnew CreateActivity().execute(sp1.getValue(),date,get.getAllLogin().get(0).get(\"empid\"),sp2.getValue(),sp3.getValue(),sp4.getValue(),remarks.getText().toString(), id.get(0), villages.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tnew CreateActivity().execute(sp1.getValue(),date,get.getAllLogin().get(0).get(\"empid\"),sp2.getValue(),sp3.getValue(),sp4.getValue(),remarks.getText().toString(), \"0\", villages.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\talert.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\t\t\t\t\t\t\te.getMessage();\n\t\t\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\telse{\n\t\t\t\t\t\t\t\t\t\t\tif(districtlist.getSelectedItemPosition()==0){\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(context, \"Please Select District\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tif(mandilist.getSelectedItemPosition()==0){\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(context, \"Please Select Mandi\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(retailerslist.getSelectedItemPosition()==0){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(context, \"Please Select Retailer\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(activitieslist.getSelectedItemPosition()==0){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(context, \"Please Select Activity\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\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}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tToast.makeText(context, \"No Network Found\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\talert.show();\n\t \t\t\t\t}\n\t \t\t\t\tcatch(Exception e){\n\t \t\t\t\t\te.getMessage();\n\t \t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \tView v = inflater.inflate(R.layout.lista_receta_fragment, container, false);\n \t\n if(v != null){\n \t\tsp_categoria = (Spinner)v.findViewById(R.id.spinner_categoria_receta);\n \t\tlv_recetas = (ListView)v.findViewById(R.id.lv_receta);\n \t\tlv_recetas.setEmptyView(v.findViewById(R.id.listvacia));\n \t\tsp_categoria.setAdapter(adaptadorSpinner);\n \t\t \t\t\n \t\t \t\t\n\t\t\tsp_categoria.setOnItemSelectedListener(new OnItemSelectedListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\tif(categorias[position]==\"Todas\"){\n\t\t\t\t\t\trecetasAdapter = new CustomAdapterRecetas(act);\n\t\t\t\t\t\tlv_recetas.setAdapter(recetasAdapter);\n\t\t\t\t\t\trecetasAdapter.loadObjects();\n\t\t\t\t\t}else{\n\t\t\t\t\t\trecetasAdapter = new CustomAdapterRecetas(act,categorias[position]);\n\t\t\t\t\t\tlv_recetas.setAdapter(recetasAdapter);\n\t\t\t\t\t\trecetasAdapter.loadObjects();\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n \t\t\t\n\t\t\t});\n \t}\n \n \treturn v;\n }",
"private void onCategorySelected(Category category) {\n et_category.setText(category.getName());\n et_category_id.setText(String.valueOf(category.getKey()));\n }",
"@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if(menuItem.isChecked()) menuItem.setChecked(false);\n else menuItem.setChecked(true);\n\n //Closing drawer on item click\n drawerLayout.closeDrawers();\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()){\n\n\n //Replacing the main content with ContentFragment Which is our Inbox View;\n\n\n // For rest of the options we just show a toast on click\n\n case R.id.location:\n Toolbar mtoolbar = (Toolbar) findViewById(R.id.toolbar);\n\n mtoolbar.setTitle(\"Home\");\n Toast.makeText(getApplicationContext(),\"Location Selected\",Toast.LENGTH_SHORT).show();\n Accessible_Category fragment1 = new Accessible_Category();\n android.support.v4.app.FragmentTransaction fragmentTransaction1 = getSupportFragmentManager().beginTransaction();\n fragmentTransaction1.replace(R.id.frame,fragment1);\n fragmentTransaction1.commit();\n return true;\n case R.id.profile:\n Toolbar mActionBarToolbar = (Toolbar) findViewById(R.id.toolbar);\n\n mActionBarToolbar.setTitle(\"Complete Profile\");\n\n CompleteProfile fragment = new CompleteProfile();\n android.support.v4.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame,fragment);\n fragmentTransaction.commit();\n return true;\n\n case R.id.location1:\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n\n toolbar.setTitle(\"Add Location\");\n AddLocFragment fragment3 = new AddLocFragment();\n android.support.v4.app.FragmentTransaction fragmentTransaction3 = getSupportFragmentManager().beginTransaction();\n fragmentTransaction3.replace(R.id.frame,fragment3);\n fragmentTransaction3.commit();\n return true;\n\n case R.id.search:\n Toolbar mToolbar = (Toolbar) findViewById(R.id.toolbar);\n\n mToolbar.setTitle(\"Filter\");\n AdvancedSearch fragment2 = new AdvancedSearch();\n android.support.v4.app.FragmentTransaction fragmentTransaction2 = getSupportFragmentManager().beginTransaction();\n fragmentTransaction2.replace(R.id.frame,fragment2);\n fragmentTransaction2.commit();\n return true;\n case R.id.access:\n Toolbar moolbar = (Toolbar) findViewById(R.id.toolbar);\n\n moolbar.setTitle(\"Accessibility\");\n AccessbilityFragment fragment4 = new AccessbilityFragment();\n android.support.v4.app.FragmentTransaction fragmentTransaction4 = getSupportFragmentManager().beginTransaction();\n fragmentTransaction4.replace(R.id.frame,fragment4);\n fragmentTransaction4.commit();\n\n return true;\n case R.id.share:\n Toolbar mlbar = (Toolbar) findViewById(R.id.toolbar);\n mlbar.setTitle(\"Share\");\n // Toast.makeText(getApplicationContext(),\"share Selected\",Toast.LENGTH_SHORT).show();\n Intent shareIntent = new Intent(Intent.ACTION_SEND);\n shareIntent.setType(\"text/html\");\nshareIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(\"<p>This is the text that will be shared.</p>\"));\n startActivity(Intent.createChooser(shareIntent,\"Share using\"));\n return true;\n case R.id.wish:\n Toolbar moolbar1 = (Toolbar) findViewById(R.id.toolbar);\n\n moolbar1.setTitle(\"Favourites\");\n\n return true;\n\n default:\n Toolbar mActionBarToolbar1 = (Toolbar) findViewById(R.id.toolbar);\n\n mActionBarToolbar1.setTitle(\"Home\");\n\n ContentFragment fragmentT = new ContentFragment();\n android.support.v4.app.FragmentTransaction fragmentTransactionn = getSupportFragmentManager().beginTransaction();\n fragmentTransactionn.replace(R.id.frame,fragmentT);\n fragmentTransactionn.commit();\n return true;\n\n\n }\n }",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n Fragment fragment3 = null;\n Fragment fragment1 = null;\n Fragment fragment2 = null;\n switch (tab.getPosition()) {\n case 0:\n // The first is Selected\n if(fragment1 == null) {\n fragment1 = new SelectedFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment1).commit();\n break;\n case 1:\n // The second is Search\n if(fragment2 == null){\n fragment2 = new AllFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment2).commit();\n break;\n case 2:\n // The third is My City\n if(fragment3 == null){\n fragment3 = new NearbyFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment3).commit();\n break;\n default:\n break;\n }\n }",
"@Override\n public void addCategory(Fragment targetFragment) {\n DialogFragment dialog = new AddEditCategoryDialog();\n Bundle bundle = new Bundle();\n bundle.putInt(MyConstants.DIALOGE_TYPE, MyConstants.DIALOGE_CATEGORY_ADD);\n dialog.setArguments(bundle);\n dialog.setTargetFragment(targetFragment, 0);\n dialog.show(getSupportFragmentManager(), \"Add_Category\");\n }",
"public void onGroupSelection(){\n getTimeList().clear();\n CycleTimeBean ctb = new CycleTimeBean();\n ctb.setGroupName(groupName);\n ctb.setCatName(catName);\n getTimeList().add(ctb);\n }",
"@Override\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\tView view, int position, long id) {\n\n\t\t\t\t\t\tfood_image\n\t\t\t\t\t\t\t\t.setImageResource(fooddrawableValues[position]);\n\t\t\t\t\t\tfood_calorie_text.setText(foodValues[position]);\n\n\t\t\t\t\t\tif (foodDropClick) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * food_image\n\t\t\t\t\t\t\t * .setImageResource(fooddrawableValues[position]);\n\t\t\t\t\t\t\t * food_calorie_text.setText(foodValues[position]);\n\t\t\t\t\t\t\t */\n\n\t\t\t\t\t\t\tFragmentTransaction transaction = getFragmentManager()\n\t\t\t\t\t\t\t\t\t.beginTransaction();\n\t\t\t\t\t\t\tFoodLoggingFragment foodLog = new FoodLoggingFragment();\n\t\t\t\t\t\t\tBundle bundle = new Bundle();\n\n\t\t\t\t\t\t\tswitch (position) {\n\t\t\t\t\t\t\tcase 0:\n\n\t\t\t\t\t\t\t\ttransaction.add(R.id.root_home_frame, foodLog,\n\t\t\t\t\t\t\t\t\t\t\"FoodLoggingFragment\");\n\t\t\t\t\t\t\t\ttransaction\n\t\t\t\t\t\t\t\t\t\t.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 1:\n\n\t\t\t\t\t\t\t\tbundle.putInt(\"mealid\", 1);\n\t\t\t\t\t\t\t\tbundle.putString(\"foodtype\", \"Breakfast\");\n\t\t\t\t\t\t\t\tbundle.putBoolean(\"replace\", false);\n\n\t\t\t\t\t\t\t\ttransaction.add(R.id.root_home_frame, foodLog,\n\t\t\t\t\t\t\t\t\t\t\"FoodLoggingFragment\");\n\t\t\t\t\t\t\t\tfoodLog.setArguments(bundle);\n\t\t\t\t\t\t\t\ttransaction\n\t\t\t\t\t\t\t\t\t\t.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\n\t\t\t\t\t\t\t\tbundle.putInt(\"mealid\", 2);\n\t\t\t\t\t\t\t\tbundle.putString(\"foodtype\", \"Lunch\");\n\t\t\t\t\t\t\t\tbundle.putBoolean(\"replace\", false);\n\n\t\t\t\t\t\t\t\ttransaction.add(R.id.root_home_frame, foodLog,\n\t\t\t\t\t\t\t\t\t\t\"FoodLoggingFragment\");\n\t\t\t\t\t\t\t\tfoodLog.setArguments(bundle);\n\t\t\t\t\t\t\t\ttransaction\n\t\t\t\t\t\t\t\t\t\t.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 3:\n\n\t\t\t\t\t\t\t\tbundle.putInt(\"mealid\", 3);\n\t\t\t\t\t\t\t\tbundle.putString(\"foodtype\", \"Dinner\");\n\t\t\t\t\t\t\t\tbundle.putBoolean(\"replace\", false);\n\n\t\t\t\t\t\t\t\ttransaction.add(R.id.root_home_frame, foodLog,\n\t\t\t\t\t\t\t\t\t\t\"FoodLoggingFragment\");\n\t\t\t\t\t\t\t\tfoodLog.setArguments(bundle);\n\t\t\t\t\t\t\t\ttransaction\n\t\t\t\t\t\t\t\t\t\t.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 4:\n\n\t\t\t\t\t\t\t\tbundle.putInt(\"mealid\", 4);\n\t\t\t\t\t\t\t\tbundle.putString(\"foodtype\", \"Snack\");\n\t\t\t\t\t\t\t\tbundle.putBoolean(\"replace\", false);\n\n\t\t\t\t\t\t\t\ttransaction.add(R.id.root_home_frame, foodLog,\n\t\t\t\t\t\t\t\t\t\t\"FoodLoggingFragment\");\n\t\t\t\t\t\t\t\tfoodLog.setArguments(bundle);\n\t\t\t\t\t\t\t\ttransaction\n\t\t\t\t\t\t\t\t\t\t.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\ttransaction.addToBackStack(null);\n\t\t\t\t\t\t\ttransaction.commit();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n Log.d(\"Hello\",\"hello\");\n String itemSelected = (String) parent.getItemAtPosition(position);\n MonthYear my = new MonthYear(0, 0);\n parseMonthYearFromString(my,itemSelected);\n\n Log.d(\"Month\",\"\" + my.getMonth());\n Log.d(\"Year\",\"\" + my.getYear());\n\n bedragListInkomst.clear();\n //categorieListInkomst.clear();\n bedragListUitgave.clear();\n //categorieListUitgave.clear();\n\n readUitInMonthYear(\"in\", bedragListInkomst, categorieListInkomst, my.getMonth(), my.getYear());\n readUitInMonthYear(\"uit\", bedragListUitgave, categorieListUitgave, my.getMonth(), my.getYear());\n fillCharts2(true);\n\n setupListView(listView, position);\n }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n setTitle(\"Month Selected = \" );\n monthSelected = spinMonths.getSelectedItem().toString();\n setTitle(\"Month Selected = \" + monthSelected);\n\n// Enumeration<String> keys = bedCache.keys();\n// int counter = 1;\n// while(keys.hasMoreElements()){\n// String key = keys.nextElement();\n// System.out.println(\"in OnSelected : counter: \" + counter + \", BedId: \" + key);\n// counter++;\n// }\n createOccupancyTotalsForMonth(monthSelected);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_services,container, false);\n tabs = (TabLayout)v.findViewById(R.id.tablayout);\n tabpager = (ViewPager)v.findViewById(R.id.view_pager);\n\n\n // fetch child categories from this category type\n this.fetchCategories(this.type);\n\n\n\n return v;\n }",
"private void startFragmentSelectAccount(TransactionEnum transactionType, int oldAccountId) {\n LogUtils.logEnterFunction(Tag, \"TransactionType = \" + transactionType.name() + \", oldAccountId = \" + oldAccountId);\n FragmentAccountsSelect nextFrag = new FragmentAccountsSelect();\n Bundle bundle = new Bundle();\n bundle.putInt(\"Tab\", mTab);\n bundle.putInt(\"AccountID\", oldAccountId);\n bundle.putSerializable(\"TransactionType\", transactionType);\n bundle.putSerializable(\"Callback\", this);\n nextFrag.setArguments(bundle);\n mActivity.addFragment(mTab, mContainerViewId, nextFrag, FragmentAccountsSelect.Tag, true);\n\n LogUtils.logLeaveFunction(Tag);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.category_catchange, container, false);\n progressDialog = new ProgressDialog(getActivity());\n // db = new DBHandler(getActivity());\n userPreferences = UserPreferences.getInstance(getActivity());\n\n sealUsed = new ArrayList<String>(6);\n sealUsed.add(\" \");\n sealUsed.add(\" \");\n sealUsed.add(\" \");\n sealUsed.add(\" \");\n sealUsed.add(\" \");\n sealUsed.add(\" \");\n\n ((AppCompatActivity) getActivity()).getSupportActionBar().setTitle(\"CATEGORY CHANGE+\");\n\n\n Bundle bundle = getArguments();\n //orderData = (McrOrederProxie) bundle.getSerializable(\"orderData\");\n if (userPreferences.getLocalMsgId().equalsIgnoreCase(\"U01\")) {\n mcrOrderProxie = (McrOrderProxie) bundle.getSerializable(\"orderData\");\n } else {\n mcrOrderProxieOtherConn = (McrOrderProxieOtherConn) bundle.getSerializable(\"orderData\");\n }\n\n\n // seva kendra\n\n\n spin_purpose = (Spinner) rootView.findViewById(R.id.spin_purpose);\n spin_usage = (Spinner) rootView.findViewById(R.id.spin_usage);\n\n\n spin_purpose.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n if (i == 0) {\n usageArr = getResources().getStringArray(R.array.usage_array0);\n usageArrSub = getResources().getStringArray(R.array.usage_array_sub0);\n\n } else if (i == 1) {\n usageArr = getResources().getStringArray(R.array.usage_array1);\n usageArrSub = getResources().getStringArray(R.array.usage_array_sub1);\n } else if (i == 2) {\n usageArr = getResources().getStringArray(R.array.usage_array2);\n usageArrSub = getResources().getStringArray(R.array.usage_array_sub2);\n } else if (i == 3) {\n usageArr = getResources().getStringArray(R.array.usage_array3);\n usageArrSub = getResources().getStringArray(R.array.usage_array_sub3);\n } else if (i == 4) {\n usageArr = getResources().getStringArray(R.array.usage_array4);\n usageArrSub = getResources().getStringArray(R.array.usage_array_sub4);\n } else if (i == 5) {\n usageArr = getResources().getStringArray(R.array.usage_array5);\n usageArrSub = getResources().getStringArray(R.array.usage_array_sub5);\n } else {\n usageArr = getResources().getStringArray(R.array.usage_array0);\n usageArrSub = getResources().getStringArray(R.array.usage_array_sub0);\n }\n\n spin_usage.setAdapter(new SpinnerAdapterFilter(getActivity(), R.layout.custom_spinner, usageArr, usageArrSub));\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n\n //usageArr = getResources().getStringArray(R.array.usage_array);\n //usageArrSub = getResources().getStringArray(R.array.usage_array_sub);\n // seva kendra\n\n usageArr = getResources().getStringArray(R.array.usage_array0);\n usageArrSub = getResources().getStringArray(R.array.usage_array_sub0);\n\n // seva kendra\n\n spin_usage.setAdapter(new SpinnerAdapterFilter(getActivity(), R.layout.custom_spinner, usageArr, usageArrSub));\n spin_usage.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n if (position != 0) {\n TextView pmTypeText = (TextView) view.findViewById(R.id.text_main_seen);\n TextView pmTypeID = (TextView) view.findViewById(R.id.sub_text_seen);\n\n spinUsageVal = pmTypeID.getText().toString();\n //String compID = String.valueOf(reqId.getText().toString());\n } else {\n spinUsageVal = \"0\";\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n description = (EditText) rootView.findViewById(R.id.description);\n\n\n scanmeter = (Button) rootView.findViewById(R.id.scanmeter);\n\n\n devicenumber = (EditText) rootView.findViewById(R.id.devicenumber);\n\n\n radiostickerinstall = (RadioGroup) rootView.findViewById(R.id.radiostickerinstall);\n valStickerinstall = ((RadioButton) rootView.findViewById(radiostickerinstall.getCheckedRadioButtonId())).getText().toString();\n\n final LinearLayout stickerll = (LinearLayout) rootView.findViewById(R.id.stickerll);\n stickernumber = (EditText) rootView.findViewById(R.id.stickernumber);\n\n radiostickerinstall.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n valStickerinstall = ((RadioButton) group.getRootView().findViewById(checkedId)).getText().toString();\n\n if (valStickerinstall.equalsIgnoreCase(\"Yes\")) {\n stickerll.setVisibility(View.VISIBLE);\n } else {\n stickerll.setVisibility(View.GONE);\n stickernumber.setText(\"\");\n }\n }\n });\n\n\n //devicenumber.setText(orderData.getDEVICENO());\n\n radioelcbinstall = (RadioGroup) rootView.findViewById(R.id.radioelcbinstall);\n valelcbinstall = ((RadioButton) rootView.findViewById(radioelcbinstall.getCheckedRadioButtonId())).getText().toString();\n\n final LinearLayout elcbbasedll = (LinearLayout) rootView.findViewById(R.id.elcbbasedll);\n\n radioelcbinstall.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n valelcbinstall = ((RadioButton) group.getRootView().findViewById(checkedId)).getText().toString();\n\n if (valelcbinstall.equalsIgnoreCase(\"Yes\")) {\n // elcbbasedll.setVisibility(View.VISIBLE);\n valelcbinstall = \"Yes\";\n } else {\n\n valelcbinstall = \"No\";\n\n }\n }\n });\n\n radioInstalledBus = (RadioGroup) rootView.findViewById(R.id.radioinstalledbus);\n\n final LinearLayout busbarmainll = (LinearLayout) rootView.findViewById(R.id.busbarinstalled_ll);\n final LinearLayout busbarll = (LinearLayout) rootView.findViewById(R.id.busbarll);\n\n dropbussize = (Spinner) rootView.findViewById(R.id.dropbussize);\n dropbussizecust = (Spinner) rootView.findViewById(R.id.dropbussizecust);\n\n busnumber = (EditText) rootView.findViewById(R.id.busnumber);\n busbarcablesize = (Spinner) rootView.findViewById(R.id.busbarcablesize);\n drumnumberbb = (EditText) rootView.findViewById(R.id.drumnumberbb); // new\n\n radiocableinstalltypebb = (RadioGroup) rootView.findViewById(R.id.radiocableinstalltypebb);\n valInstallTypebb = ((RadioButton) rootView.findViewById(radiocableinstalltypebb.getCheckedRadioButtonId())).getText().toString();\n\n radiocableinstalltypebb.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n valInstallTypebb = ((RadioButton) group.getRootView().findViewById(checkedId)).getText().toString();\n }\n });\n\n runninglengthfrombb = (EditText) rootView.findViewById(R.id.runninglengthfrombb); // new\n runninglengthtobb = (EditText) rootView.findViewById(R.id.runninglengthtobb); // new\n cablelengthbb = (EditText) rootView.findViewById(R.id.cablelengthbb);\n\n cablelengthbb.setEnabled(true);\n cablelengthbb.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n\n if (runninglengthfrombb.getText().toString().trim().isEmpty()) {\n return false;\n } else {\n if (!runninglengthtobb.getText().toString().trim().isEmpty()) {\n\n\n frombb = Integer.parseInt(runninglengthfrombb.getText().toString().trim());\n tobb = Integer.parseInt(runninglengthtobb.getText().toString().trim());\n\n if (frombb < tobb || frombb == tobb) {\n int result = tobb - frombb;\n if (result < 0) {\n // return false;\n } else {\n cablelengthbb.setText(Integer.toString(result));\n }\n } else {\n Snackbar.make(getView(), \"From length should be less than to length!!\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n cablelengthbb.setText(\"\");\n runninglengthtobb.setText(\"\");\n }\n }\n }\n\n return false;\n }\n });\n\n\n final LinearLayout busbarcablesize_layout = (LinearLayout) rootView.findViewById(R.id.busbarcablesize_layout);\n final LinearLayout busbarcustomerll = (LinearLayout) rootView.findViewById(R.id.busbarcustomerll);\n valInstalledBus = ((RadioButton) rootView.findViewById(radioInstalledBus.getCheckedRadioButtonId())).getText().toString();\n final LinearLayout radiocustomerbusll = (LinearLayout) rootView.findViewById(R.id.radiocustomerbusll);\n\n radioInstalledBus.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n valInstalledBus = ((RadioButton) group.getRootView().findViewById(checkedId)).getText().toString();\n\n if (valInstalledBus.equalsIgnoreCase(\"Yes\")) {\n radiocustomerbusll.setVisibility(View.GONE);\n\n busbarmainll.setVisibility(View.VISIBLE);\n dropbussizecustVal = \"\";\n } else if (valInstalledBus.equalsIgnoreCase(\"Old\")) {\n\n busbarmainll.setVisibility(View.VISIBLE);\n radiocustomerbusll.setVisibility(View.VISIBLE);\n\n } else {\n\n busbarmainll.setVisibility(View.GONE);\n radiocustomerbusll.setVisibility(View.GONE);\n dropbussizecustVal = \"\";\n }\n }\n });\n\n\n radiocustomerbus = (RadioGroup) rootView.findViewById(R.id.radiocustomerbus);\n radiocustomerbus.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n valcustomerinstall = ((RadioButton) group.getRootView().findViewById(checkedId)).getText().toString();\n\n if (valcustomerinstall.equalsIgnoreCase(\"BSES Bus-Bar\")) {\n // elcbbasedll.setVisibility(View.VISIBLE);\n dropbussizecustVal = \"\";\n busbarcustomerll.setVisibility(View.GONE);\n busbarll.setVisibility(View.VISIBLE);\n } else {\n dropbussizecustVal = dropbussizecust.getSelectedItem().toString();\n busbarcustomerll.setVisibility(View.VISIBLE);\n busbarll.setVisibility(View.GONE);\n }\n }\n });\n\n dropreason = (Spinner) rootView.findViewById(R.id.dropreason);\n dropreason.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position == 0) {\n valdropreason = \"01\";\n } else {\n valdropreason = \"01\";\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n dropreasonre = (Spinner) rootView.findViewById(R.id.dropreasonre);\n dropreasonre.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position == 0) {\n valdropreason = \"09\";\n } else {\n valdropreason = \"09\";\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n\n dropcablesize = (Spinner) rootView.findViewById(R.id.dropcablesize);\n\n drumnumber = (EditText) rootView.findViewById(R.id.drumnumber);\n\n outputcablelength = (EditText) rootView.findViewById(R.id.outputcablelength);\n\n radiocableinstalltype = (RadioGroup) rootView.findViewById(R.id.radiocableinstalltype);\n\n valInstallType = ((RadioButton) rootView.findViewById(radiocableinstalltype.getCheckedRadioButtonId())).getText().toString();\n\n radiocableinstalltype.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n valInstallType = ((RadioButton) group.getRootView().findViewById(checkedId)).getText().toString();\n }\n });\n\n runninglengthfrom = (EditText) rootView.findViewById(R.id.runninglengthfrom);\n runninglengthto = (EditText) rootView.findViewById(R.id.runninglengthto);\n cablelength = (EditText) rootView.findViewById(R.id.cablelength);\n\n cablelength.setEnabled(true);\n cablelength.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n\n if (runninglengthfrom.getText().toString().trim().isEmpty()) {\n return false;\n } else {\n if (!runninglengthto.getText().toString().trim().isEmpty()) {\n\n from = Integer.parseInt(runninglengthfrom.getText().toString().trim());\n to = Integer.parseInt(runninglengthto.getText().toString().trim());\n\n if (from < to || from == to) {\n int result = to - from;\n if (result < 0) {\n // return false;\n } else {\n cablelength.setText(Integer.toString(result));\n }\n } else {\n Snackbar.make(getView(), \"From length should be less than to length!!\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n cablelength.setText(\"\");\n runninglengthto.setText(\"\");\n }\n }\n }\n return false;\n }\n });\n\n\n validateseal = (Button) rootView.findViewById(R.id.validateseal);\n\n\n validateseal.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n punchDataWS task = new punchDataWS();\n //Call execute\n task.execute();\n }\n });\n\n\n Button button1 = (Button) rootView.findViewById(R.id.next2);\n\n button1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n\n mcrOrderProxieOtherConn.setStrPURPOSE_S5(spinUsageVal);\n mcrOrderProxieOtherConn.setStrDESC_S5(description.getText().toString());\n\n\n Fragment fragment = new PhotosAndID();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"orderData\", mcrOrderProxieOtherConn);\n fragment.setArguments(bundle);\n\n FragmentManager fm = getFragmentManager();\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n fragmentTransaction.replace(R.id.fragment_place, fragment, TAG_FRAGMENT);\n fragmentTransaction.addToBackStack(TAG_FRAGMENT);\n fragmentTransaction.commit();\n }\n });\n\n\n return rootView;\n }",
"@Override\n protected void onSelected(Category category) {\n setSelectedCategory(category);\n messageUtil.infoEntity(\"status_selected_ok\", getPart().getCategory());\n }",
"private void onCLick() {\n navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n int id = menuItem.getItemId();\n\n if (id == R.id.startTrade) {\n startActivity(new Intent(getApplicationContext(), StartActivity.class));\n drawerLayout.closeDrawer(Gravity.RIGHT);\n finish();\n }\n\n if (id == R.id.potential) {\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new MyPotentialFragment());\n transaction.addToBackStack(null);\n transaction.commit();\n drawerLayout.closeDrawer(Gravity.RIGHT);\n }\n\n if (id == R.id.Home) {\n //bottomNavigationView.setSelectedItemId(R.id.navigationHome);\n drawerLayout.closeDrawer(Gravity.RIGHT);\n Intent intent = new Intent(HomeActivity.this,HomeActivity.class);\n startActivity(intent);\n\n }\n\n if (id == R.id.Watch) {\n// Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.youtube.com/channel/UCzRRx1SBFGCVFBsDszTddWw/videos\"));\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// intent.setPackage(\"com.google.android.youtube\");\n// startActivity(intent);\n// drawerLayout.closeDrawer(Gravity.RIGHT);\n drawerLayout.closeDrawer(Gravity.RIGHT);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new WatchHowToFragment());\n transaction.addToBackStack(null);\n transaction.commit();\n\n }\n\n\n if (id == R.id.Refer) {\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new ReferFragment());\n transaction.addToBackStack(null);\n transaction.commit();\n drawerLayout.closeDrawer(Gravity.RIGHT);\n }\n\n\n if (id == R.id.myBank) {\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new EditBankFragment());\n transaction.addToBackStack(null);\n transaction.commit();\n drawerLayout.closeDrawer(Gravity.RIGHT);\n }\n\n if (id == R.id.Buy) {\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new SharePackageFragment());\n transaction.commit();\n drawerLayout.closeDrawer(Gravity.RIGHT);\n\n }\n if (id == R.id.Myproperty) {\n drawerLayout.closeDrawer(Gravity.RIGHT);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new MyPropertyFragment());\n transaction.commit();\n\n }\n if (id == R.id.Mycontact) {\n drawerLayout.closeDrawer(Gravity.RIGHT);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new ViewAllMandateFragment());\n transaction.addToBackStack(null);\n transaction.commit();\n }\n if (id == R.id.Terms) {\n drawerLayout.closeDrawer(Gravity.RIGHT);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new Terms_ConditionFragment());\n transaction.addToBackStack(null);\n transaction.commit();\n\n }\n if (id == R.id.Privacy) {\n drawerLayout.closeDrawer(Gravity.RIGHT);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new PrivacyPolicyFragment());\n transaction.addToBackStack(null);\n transaction.commit();\n }\n if (id == R.id.Art) {\n drawerLayout.closeDrawer(Gravity.RIGHT);\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.framelayout, new ArtStatementFragment());\n transaction.addToBackStack(null);\n transaction.commit();\n\n }\n if (id == R.id.Goto) {\n drawerLayout.closeDrawer(Gravity.RIGHT);\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.m8s.world\"));\n startActivity(browserIntent);\n }\n if (id == R.id.Logout) {\n\n getDilog();\n }\n\n return false;\n }\n });\n }",
"void onMainFragmentSelectListner(View view);",
"@Override\n public void onCategorySelected(Category category) {\n productList.clear();\n\n ArrayList<ProductHeader> tempList;\n if (notSelectedYet) {\n tempList = allProducts;\n } else if (isMaleSelected) {\n tempList = maleList;\n } else {\n tempList = femaleList;\n }\n\n for (ProductHeader product : tempList) {\n if (product.getCategory() == category.getId()) {\n productList.add(product);\n }\n }\n\n categoryText.setText(category.getName());\n\n checkAvailability();\n productAdapter.notifyDataSetChanged();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n view=inflater.inflate(R.layout.fragment_first_slide, container, false);\n\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(AppConstants.KEY_SIGN_UP, MODE_PRIVATE);\n if(sharedPreferences != null && sharedPreferences.getString(AppConstants.LANG_choose, Locale.getDefault().getLanguage()) != null){\n lang = sharedPreferences.getString(AppConstants.LANG_choose,Locale.getDefault().getLanguage());\n } else {\n lang = Locale.getDefault().getLanguage();\n }\n if(sharedPreferences != null && sharedPreferences.getString(AppConstants.token, Locale.getDefault().getLanguage()) != null){\n token = sharedPreferences.getString(AppConstants.token,\"\");\n }\n\n\n percent = view.findViewById(R.id.percent);\n profileimage = view.findViewById(R.id.profileimage);\n profile_name = view.findViewById(R.id.profile_name);\n profile_dsc = view.findViewById(R.id.profile_dsc);\n askasteschar=view.findViewById(R.id.askasteschar);\n cardview=view.findViewById(R.id.cardview);\n\n getConsultants(lang, token, ADVISOR_POSITION);\n\n askasteschar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n AdvisoeDeailsBottomDialog advisoeDeailsBottomDialog = new AdvisoeDeailsBottomDialog();\n Bundle bundle = new Bundle();\n bundle.putString(AppConstants.CATEGORY_ID, categoryId);\n bundle.putString(AppConstants.CATEGORY_TYPE, category);\n bundle.putString(AppConstants.ADVISOR_ID, id);\n advisoeDeailsBottomDialog.setArguments(bundle);\n advisoeDeailsBottomDialog.show(getFragmentManager(), advisoeDeailsBottomDialog.getTag());\n\n }\n });\n\n cardview.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment fragment = new CategoriesdetailsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(AppConstants.CATEGORY_ID, categoryId);\n bundle.putString(AppConstants.toolbartiltle, category);\n fragment.setArguments(bundle);\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.mainContainer, fragment, \"HomeFragment\").commit();\n\n\n }\n });\n\n profileimage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });\n\n return view;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragment_menu, container, false);\n\n //UI Declare\n search_box = v.findViewById(R.id.menu_search_et_box);\n\n //progress Dialog\n progressDialog=new Stables().showLoading(getContext());\n\n //MenuItem Recycle View\n menuslist = new ArrayList<>();\n categorieslist = new ArrayList<>();\n \n recyclerViewMenu=v.findViewById(R.id.menu_recycle);\n recyclerViewCategory=v.findViewById(R.id.menu_category_recycle);\n\n filter=\"0\";\n searchPrefix=\"\";\n\n LoadMenuItems();\n LoadCategoryItems();\n\n addSearchListener();\n\n\n\n return v;\n }",
"@Override\n\t\t\t\t\t\tpublic void onItemSelected(AdapterView<?> parent,\n\t\t\t\t\t\t\t\tView view, int position, long id) {\n\t\t\t\t\t\t\tif(position!=0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tMyspinner sp = (Myspinner)mandilist.getSelectedItem();\n\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\tencryptedgeoid = new Webservicerequest().Encrypt(sp.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\t\t\t\te.getMessage();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcategory3.addAll(get.getretailersList(encryptedgeoid));\t\n\t\t\t\t\t\t\t\tMyspinner[] redemo3 = new Myspinner[category3.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category3.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo3[i] = new Myspinner(category3.get(i).get(\"2\"), category3.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter3 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo3);\n\t\t\t\t \t\t\t\tretailerslist.setAdapter(adapter3);\n\t\t\t\t\t\t\t\tArrayAdapter<String> adaptervillages = new ArrayAdapter<String>(context, android.R.layout.simple_spinner_dropdown_item, get.getVillageNames(encryptedgeoid));\n\t\t\t\t\t\t\t\tvillages.setAdapter(adaptervillages);\n\t\t\t\t\t\t\t\tvillages.setThreshold(3);\n\t\t\t\t\t\t\t\tvillages.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t\t\t public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t\t\t\t\t\t InputMethodManager in = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t\t\t\t\t\t\t in.hideSoftInputFromWindow(villages.getWindowToken(), 0);\n\n\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tvillages.setAdapter(null);\n\t\t\t\t\t\t\t\tArrayList<HashMap<String, String>> category3=new ArrayList<HashMap<String,String>>();\n\t\t\t\t\t\t\t\tHashMap<String, String> map3=new HashMap<String, String>();\n\t\t\t\t \t\t\t\tmap3.put(\"1\",\"\");\n\t\t\t\t \t\t\t\tmap3.put(\"2\",\"Select Retailer\");\n\t\t\t\t \t\t\t\tcategory3.add(map3);\n\t\t\t\t \t\t\t\tMyspinner[] redemo3 = new Myspinner[category3.size()];\n\t\t\t\t \t\t\t\tfor(int i=0; i<category3.size(); i++){\n\t\t\t\t \t\t\t\t\tredemo3[i] = new Myspinner(category3.get(i).get(\"2\"), category3.get(i).get(\"1\"), \"\");\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t\t\tArrayAdapter<Myspinner> adapter3 = new ArrayAdapter<Myspinner>(context, android.R.layout.simple_spinner_dropdown_item, redemo3);\n\t\t\t\t \t\t\t\tretailerslist.setAdapter(adapter3); \t\t\t\t \t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_select_year, container, false);\n\n getFragmentManager().popBackStack();\n\n\n for (int i=0;i<Years.length;i++)\n {\n String current;\n current = Years[i%Years.length];\n data.add(current);\n }\n\n ProgressBar progress;\n progress=(ProgressBar)rootView.findViewById(R.id.progress);\n progress.setVisibility(View.GONE);\n\n\n\n\n mrecyclerView = (RecyclerView) rootView.findViewById(R.id.select_year_list);\n mrecyclerView.setHasFixedSize(true);\n mrecyclerView.setItemAnimator(new DefaultItemAnimator());\n mAdapter = new DownloadTTAdapter(getActivity(),data);\n mrecyclerView.setAdapter(mAdapter);\n\n mrecyclerView.addOnItemTouchListener(\n new RecyclerItemClickListener(getActivity(), new RecyclerItemClickListener.OnItemClickListener() {\n @Override public void onItemClick(View view, int position) {\n Fragment newFragment;\n if (position != 0)\n {\n\n newFragment = new SelectBranch();\n\n }\n else\n {\n\n newFragment = new SelectDiv();\n }\n String val = Integer.toString(position);\n bundle.putString(key, val);\n newFragment.setArguments(bundle);\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(android.R.id.content, newFragment);\n //transaction.addToBackStack(null);\n transaction.commit();\n\n }\n })\n );\n\n\n //Staggered Grid Layout Manager\n mrecyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));\n mrecyclerView.setItemAnimator(new DefaultItemAnimator());\n\n\n return rootView;\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n Category clickedItem = (Category) parent.getItemAtPosition(position);\n categoryIcon = clickedItem.getCategoryIcon();\n category = clickedItem.categoryName;\n }",
"@Override\n @SuppressWarnings(\"ConstantConditions\")\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bank2, container, false);\n ListView collectedListDOLR = view.findViewById(R.id.coinboxDOLR);\n ListView collectedListPENY = view.findViewById(R.id.coinboxPENY);\n ListView collectedListSHIL = view.findViewById(R.id.coinboxSHIL);\n ListView collectedListQUID = view.findViewById(R.id.coinboxQUID);\n\n TextView textDate = view.findViewById(R.id.textDate);\n TextView textMoney = view.findViewById(R.id.textMoney);\n TextView textDOLR = view.findViewById(R.id.textDOLRrate);\n TextView textPENY = view.findViewById(R.id.textPENYrate);\n TextView textSHIL = view.findViewById(R.id.textSHILrate);\n TextView textQUID = view.findViewById(R.id.textQUIDrate);\n\n textDate.setText(getDate(jsonString));\n textDOLR.setText(\"DOLR: \" + Double.toString(dolrRate).substring(0, Math.min(Double.toString(dolrRate).length(), 8)));\n textPENY.setText(\"PENY: \" + Double.toString(penyRate).substring(0, Math.min(Double.toString(penyRate).length(), 8)));\n textSHIL.setText(\"SHIL: \" + Double.toString(shilRate).substring(0, Math.min(Double.toString(shilRate).length(), 8)));\n textQUID.setText(\"QUID: \" + Double.toString(quidRate).substring(0, Math.min(Double.toString(quidRate).length(), 8)));\n\n loadCollectData();\n\n collectedListDOLR.setOnItemClickListener((parent, view1, position, id) -> {\n List<List<String>> temp = getCollected();\n dolrCollected = temp.get(0);\n penyCollected = temp.get(1);\n shilCollected = temp.get(2);\n quidCollected = temp.get(3);\n String selected = parent.getItemAtPosition(position).toString().trim();\n if (selected.equals(\"\") || selected.equals(\"None\") || !(isNumeric(selected))){\n Toast.makeText(getContext(), \"No coin of this currency exists\", Toast.LENGTH_SHORT).show();\n } else {\n money += Double.valueOf(selected) * dolrRate;\n dolrCollected.remove(position);\n if (dolrCollected.isEmpty()){\n dolrCollected = Arrays.asList(\"None\");\n }\n ArrayAdapter<String> arrayAdapterDOLR = new ArrayAdapter<>(getContext(), R.layout.simplerow, dolrCollected);\n collectedListDOLR.setAdapter(arrayAdapterDOLR);\n arrayAdapterDOLR.notifyDataSetChanged();\n textMoney.setText(String.valueOf(money));\n Toast.makeText(getContext(), \"Coin has been cashed out\", Toast.LENGTH_SHORT).show();\n updateCollectedCoins();\n }\n });\n\n collectedListPENY.setOnItemClickListener((parent, view12, position, id) -> {\n List<List<String>> temp = getCollected();\n dolrCollected = temp.get(0);\n penyCollected = temp.get(1);\n shilCollected = temp.get(2);\n quidCollected = temp.get(3);\n String selected = parent.getItemAtPosition(position).toString().trim();\n if (selected.equals(\"\") || selected.equals(\"None\") || !(isNumeric(selected))){\n Toast.makeText(getContext(), \"No coin of this currency exists\", Toast.LENGTH_SHORT).show();\n } else {\n money += Double.valueOf(selected) * penyRate;\n penyCollected.remove(position);\n if (penyCollected.isEmpty()){\n penyCollected = Arrays.asList(\"None\");\n }\n ArrayAdapter<String> arrayAdapterPENY = new ArrayAdapter<>(getContext(), R.layout.simplerow, penyCollected);\n collectedListPENY.setAdapter(arrayAdapterPENY);\n arrayAdapterPENY.notifyDataSetChanged();\n textMoney.setText(String.valueOf(money));\n Toast.makeText(getContext(), \"Coin has been cashed out\", Toast.LENGTH_SHORT).show();\n updateCollectedCoins();\n }\n });\n\n collectedListSHIL.setOnItemClickListener((parent, view13, position, id) -> {\n\n List<List<String>> temp = getCollected();\n dolrCollected = temp.get(0);\n penyCollected = temp.get(1);\n shilCollected = temp.get(2);\n quidCollected = temp.get(3);\n\n String selected = parent.getItemAtPosition(position).toString().trim();\n if (selected.equals(\"\") || selected.equals(\"None\") || !(isNumeric(selected))){\n Toast.makeText(getContext(), \"No coin of this currency exists\", Toast.LENGTH_SHORT).show();\n } else{\n money += Double.valueOf(selected) * shilRate;\n shilCollected.remove(position);\n if (shilCollected.isEmpty()){\n shilCollected = Arrays.asList(\"None\");\n }\n ArrayAdapter<String> arrayAdapterSHIL = new ArrayAdapter<>(getContext(), R.layout.simplerow, shilCollected);\n collectedListSHIL.setAdapter(arrayAdapterSHIL);\n arrayAdapterSHIL.notifyDataSetChanged();\n textMoney.setText(String.valueOf(money));\n Toast.makeText(getContext(), \"Coin has been cashed out\", Toast.LENGTH_SHORT).show();\n updateCollectedCoins();\n }\n });\n\n collectedListQUID.setOnItemClickListener((parent, view14, position, id) -> {\n List<List<String>> temp = getCollected();\n dolrCollected = temp.get(0);\n penyCollected = temp.get(1);\n shilCollected = temp.get(2);\n quidCollected = temp.get(3);\n String selected = parent.getItemAtPosition(position).toString().trim();\n if (selected.equals(\"\") || selected.equals(\"None\") || !(isNumeric(selected))){\n Toast.makeText(getContext(), \"No coin of this currency exists\", Toast.LENGTH_SHORT).show();\n } else{\n money += Double.valueOf(selected) * quidRate;\n quidCollected.remove(position);\n if (quidCollected.isEmpty()){\n quidCollected = Arrays.asList(\"None\");\n }\n ArrayAdapter<String> arrayAdapterQUID = new ArrayAdapter<>(getContext(), R.layout.simplerow, quidCollected);\n collectedListQUID.setAdapter(arrayAdapterQUID);\n arrayAdapterQUID.notifyDataSetChanged();\n textMoney.setText(String.valueOf(money));\n Toast.makeText(getContext(), \"Coin has been cashed out\", Toast.LENGTH_SHORT).show();\n updateCollectedCoins();\n }\n });\n\n textMoney.setText(\"Your Money: \" + Double.toString(money).substring(0, Math.min(Double.toString(money).length(), 8)));\n\n Button switchbtn = view.findViewById(R.id.switchtype);\n switchbtn.setVisibility(View.INVISIBLE);\n\n return view;\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_category);\n getSupportFragmentManager().beginTransaction().\n replace(R.id.container, new HistoricalHeritageFragment())\n .commit();\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n Category selectedCategory = (Category) categoryAdapter.getItem(position);\n // Here you can do the action you want to...\n selectedCategoryID = selectedCategory.getId();\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\r\n View rootviView = inflater.inflate(R.layout.category_layout, container, false);\r\n mContext = getActivity();\r\n initView(rootviView);\r\n Bundle bundle = this.getArguments();\r\n String kategori = bundle.getString(\"kategori\");\r\n\r\n loadData(kategori);\r\n return rootviView;\r\n }",
"@Override\n public void onClick(View v) {\n SelectedBorrowerForGroup selectedBorrowerForGroup = new SelectedBorrowerForGroup();\n selectedBorrowerForGroup.setBorrowersId(borrowersTableList.get(position).getBorrowersId());\n selectedBorrowerForGroup.setFirstName(borrowersTableList.get(position).getFirstName());\n selectedBorrowerForGroup.setLastName(borrowersTableList.get(position).getLastName());\n selectedBorrowerForGroup.setBusinessName(borrowersTableList.get(position).getBusinessName());\n selectedBorrowerForGroup.setImageThumbUri(borrowersTableList.get(position).getProfileImageThumbUri());\n selectedBorrowerForGroup.setImageUri(borrowersTableList.get(position).getProfileImageUri());\n selectedBorrowerForGroup.setBelongsToGroup(borrowersTableList.get(position).getBelongsToGroup());\n selectedBorrowerForGroup.setImageByteArray(borrowersTableList.get(position).getBorrowerImageByteArray());\n selectedBorrowerForGroup.setSelectedImageView(holder.addCheckMark);\n\n Boolean isBorrowerAlreadyAdded = false;\n for (SelectedBorrowerForGroup borrowerForGroup : ((AddGroupBorrower) context).selectedBorrowerList) {\n if (borrowerForGroup.getBorrowersId().equals(borrowersTableList.get(position).getBorrowersId())) {\n isBorrowerAlreadyAdded = true;\n selectedBorrower = borrowerForGroup;\n break;\n }\n }\n\n if (!isBorrowerAlreadyAdded) {\n holder.addCheckMark.setVisibility(View.VISIBLE);\n holder.addCheckMark.playAnimation();\n ((AddGroupBorrower) context).selectedBorrowerList.add(0, selectedBorrowerForGroup);\n ((AddGroupBorrower) context).selectedBorrowerForGroupRecyclerAdapter.notifyDataSetChanged();\n } else {\n holder.addCheckMark.setVisibility(View.GONE);\n ((AddGroupBorrower) context).selectedBorrowerList.remove(selectedBorrower);\n //hide next button when selected borrower list is empty\n if(((AddGroupBorrower) context).selectedBorrowerList.isEmpty()) ((AddGroupBorrower) context).register.setVisible(false);\n ((AddGroupBorrower) context).selectedBorrowerForGroupRecyclerAdapter.notifyDataSetChanged();\n }\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Fragment fragment = null;\n fragmentManager = getSupportFragmentManager();\n int popBackStackCount = fragmentManager.getBackStackEntryCount();\n fragmentTransaction = fragmentManager.beginTransaction();\n String CurrentFragment = fragmentManager.getBackStackEntryAt(popBackStackCount-1).getName();\n int id = item.getItemId();\n switch (id){\n case (R.id.Profile): {\n if(CurrentFragment != \"Profile\" && CurrentFragment != \"EditProfile\")\n {\n GraphRequest request = GraphRequest.newMeRequest(\n AccessToken.getCurrentAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n try {\n Fragment fragment = new ProfileFragment();\n ProfileContent.InitializeProfile(object);\n fragmentManager.beginTransaction().addToBackStack(\"Profile\")\n .replace(R.id.frame_container, fragment).commit();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,gender,birthday,picture.width(300).height(300)\");\n request.setParameters(parameters);\n request.executeAsync();\n }\n break;\n }\n case (R.id.Search): {\n if(CurrentFragment != \"Search\") {\n fragmentTransaction.addToBackStack(\"Search\");\n fragment = new SearchFragment();\n }\n break;\n }\n case (R.id.Music):\n {\n if(CurrentFragment != \"Music\") {\n fragmentTransaction.addToBackStack(\"Music\");\n fragment = new AudioRecorderFragment();\n }\n break;\n }\n case (R.id.CreateBand):\n {\n if(CurrentFragment != \"CreateBand\") {\n fragmentTransaction.addToBackStack(\"CreateBand\");\n fragment = new CreateBandFragment();\n }\n break;\n }\n default :\n {\n for(BandProfileContent userBand : UserBand)\n {\n if(id == userBand.BandName.hashCode() && CurrentFragment != userBand.BandName)\n {\n fragmentTransaction.addToBackStack(userBand.BandName);\n fragment = new BandProfileFragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"userBand\",userBand);\n fragment.setArguments(bundle);\n break;\n }\n }\n }\n }\n if (fragment != null && id != R.id.Profile) {\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n // Handle navigation view item clicks here.\n int id = item.getItemId();\n FragmentManager fragmentManager= getFragmentManager();\n FragmentTransaction fragmentTransaction= fragmentManager.beginTransaction();\n Fragment_My_Travels fragment_my_travels;\n\n FragmentSpinnerMyTravels fragmentSpinnerMyTravels;\n\n FragmentAvailable fragment_aviliable;\n if (id == R.id.nav_Travels) // selected my travels\n {\n fragmentTransaction.replace(R.id.container2,fragment_default2 );\n fragment_my_travels=new Fragment_My_Travels();\n\n fragmentSpinnerMyTravels=new FragmentSpinnerMyTravels();\n fragmentSpinnerMyTravels.setIdOfDriver(idOfDriver);\n\n fragmentTransaction.replace(R.id.fragment_Spinner,fragmentSpinnerMyTravels);\n\n fragment_my_travels.setId(idOfDriver);\n fragment_my_travels.setTravels(BackendFactory.getInstance(this).getAllMyTravels(idOfDriver));\n fragmentTransaction.replace(R.id.fragment_Main,fragment_my_travels );\n\n fragmentTransaction.commit();\n\n\n }\n else if (id == R.id.nav_Travel_available) // selected travel available\n {\n FragmentSpinner fragmentSpinner=new FragmentSpinner();\n fragmentManager= getFragmentManager();\n fragmentTransaction= fragmentManager.beginTransaction();\n fragmentSpinner.setIdOfDriver(idOfDriver);\n fragmentTransaction.replace(R.id.fragment_Spinner,fragmentSpinner);\n\n fragmentTransaction.replace(R.id.container2,fragment_default2 );\n fragment_aviliable=new FragmentAvailable();\n fragment_aviliable.setId(idOfDriver);\n fragmentTransaction.replace(R.id.fragment_Main,fragment_aviliable );\n fragmentTransaction.commit();\n }\n else if (id == R.id.nav_Exit) // selected exit\n {\n moveTaskToBack(true);\n android.os.Process.killProcess(android.os.Process.myPid());\n System.exit(1);\n }\n else if (id == R.id.nav_all_Dirver) //select show all drivers\n {\n try {\n\n FragmentDrivers2 fragmentDrivers = new FragmentDrivers2();\n fragmentManager = getFragmentManager();\n fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.fragment_Main, fragmentDrivers);\n fragmentTransaction.replace(R.id.container2, fragment_default2);\n\n fragmentTransaction.commit();\n } catch (Exception ex) {\n\n }\n }\n else if (id == R.id.nav_Website)//select go to web\n {\n Intent intent= new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://gett.com/il/about/\"));\n startActivity(intent);\n }\n\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_post, container, false);\r\n\r\n\r\n Button connect = view.findViewById(R.id.button3);\r\n Button sinscrire = view.findViewById(R.id.button);\r\n Button abonne = view.findViewById(R.id.button4);\r\n creer = view.findViewById(R.id.button5);\r\n titreChamp = view.findViewById(R.id.editText8);\r\n descriptionChamp = view.findViewById(R.id.editText7);\r\n categorieSpinner = view.findViewById(R.id.spinner2);\r\n categorieSpinner.setOnItemSelectedListener(this);\r\n\r\n\r\n abonne.setVisibility(view.INVISIBLE);\r\n\r\n checkInfo();\r\n\r\n sinscrire.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Intent i = new Intent(getActivity(),SignInActivity.class);\r\n startActivity(i);\r\n }\r\n });\r\n connect.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Intent i = new Intent(getActivity(),LogInActivity.class);\r\n startActivity(i);\r\n }\r\n });\r\n abonne.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n sendSubscription();\r\n }\r\n });\r\n\r\n\r\n\r\n\r\n\r\n //si l'utilisateur est déjà connecté\r\n if((SessionManager.getInstance(getActivity()).isLoggedIn())){\r\n\r\n\r\n connect.setVisibility(view.INVISIBLE);\r\n sinscrire.setVisibility(view.INVISIBLE);\r\n if((SessionManager.getInstance(getActivity()).isSubscribed()))\r\n { abonne.setVisibility(view.INVISIBLE);\r\n descriptionChamp.setVisibility(view.VISIBLE);\r\n categorieSpinner.setVisibility(view.VISIBLE);\r\n titreChamp.setVisibility(view.VISIBLE);\r\n creer.setVisibility(view.VISIBLE);\r\n\r\n creerAnnonce(view); }\r\n else {\r\n abonne.setVisibility(view.VISIBLE);\r\n descriptionChamp.setVisibility(view.INVISIBLE);\r\n categorieSpinner.setVisibility(view.INVISIBLE);\r\n titreChamp.setVisibility(view.INVISIBLE);\r\n creer.setVisibility(view.INVISIBLE);\r\n\r\n }\r\n\r\n }\r\n else {\r\n descriptionChamp.setVisibility(view.INVISIBLE);\r\n categorieSpinner.setVisibility(view.INVISIBLE);\r\n titreChamp.setVisibility(view.INVISIBLE);\r\n creer.setVisibility(view.INVISIBLE);\r\n\r\n if(SessionManager.getInstance(getActivity()).getToken() != null){\r\n //mettre à jour token\r\n token = SessionManager.getInstance(getActivity()).getToken().getToken();\r\n }\r\n }\r\n\r\n\r\n\r\n return view;\r\n\r\n\r\n\r\n }",
"private void setCategoryData(){\n ArrayList<Category> categories = new ArrayList<>();\n //add categories\n categories.add(new Category(\"Any Category\",0));\n categories.add(new Category(\"General Knowledge\", 9));\n categories.add(new Category(\"Entertainment: Books\", 10));\n categories.add(new Category(\"Entertainment: Film\", 11));\n categories.add(new Category(\"Entertainment: Music\", 12));\n categories.add(new Category(\"Entertainment: Musicals & Theaters\", 13));\n categories.add(new Category(\"Entertainment: Television\", 14));\n categories.add(new Category(\"Entertainment: Video Games\", 15));\n categories.add(new Category(\"Entertainment: Board Games\", 16));\n categories.add(new Category(\"Science & Nature\", 17));\n categories.add(new Category(\"Science: Computers\", 18));\n categories.add(new Category(\"Science: Mathematics\", 19));\n categories.add(new Category(\"Mythology\", 20));\n categories.add(new Category(\"Sport\", 21));\n categories.add(new Category(\"Geography\", 22));\n categories.add(new Category(\"History\", 23));\n categories.add(new Category(\"Politics\", 24));\n categories.add(new Category(\"Art\", 25));\n categories.add(new Category(\"Celebrities\", 26));\n categories.add(new Category(\"Animals\", 27));\n categories.add(new Category(\"Vehicles\", 28));\n categories.add(new Category(\"Entertainment: Comics\", 29));\n categories.add(new Category(\"Science: Gadgets\", 30));\n categories.add(new Category(\"Entertainment: Japanese Anime & Manga\", 31));\n categories.add(new Category(\"Entertainment: Cartoon & Animations\", 32));\n\n //fill data in selectCategory Spinner\n ArrayAdapter<Category> adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_dropdown_item, categories);\n selectCategory.setAdapter(adapter);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_product_list, container, false);\n Constants.mMainActivity.setToolBarName(\"Product List\");\n Constants.mMainActivity.setToolBar(VISIBLE,GONE,GONE,GONE);\n Constants.mMainActivity.setNotificationButton(GONE);\n Constants.mMainActivity.OpenProductListSetIcon();\n mSessionManager=new SessionManager(getActivity());\n Constants.mMainActivity.setToolBarPostEnquiryHide();\n\n //Check personal details and business details\n if (mSessionManager.getStringData(Constants.KEY_SELLER_USER_NAME).equals(\"\")||mSessionManager.getStringData(Constants.KEY_SELLER_COUNTRY).equals(\"\")){\n\n // UtilityMethods.showInfoToast(getActivity(),\"Please complete your profile details.\");\n\n\n /*PersonalDetailsFragment personalDetailsFragment=new PersonalDetailsFragment();\n Constants.mMainActivity.ChangeFragments(personalDetailsFragment,\"PersonalDetailsFragment\");*/\n\n Log.e(\"check==========>\",\"PersonalDetailsFragment\");\n\n }else if (mSessionManager.getStringData(Constants.KEY_SELLER_BUSINESS_NAME).equals(\"\")||mSessionManager.getStringData(Constants.KEY_SELLER_BUSINESS_COUNTY).equals(\"\")){\n\n UtilityMethods.showInfoToast(getActivity(),\"Please complete your business details first\");\n\n\n BusinessDetailsFragment businessDetailsFragment=new BusinessDetailsFragment();\n Constants.mMainActivity.ChangeFragments(businessDetailsFragment,\"BusinessDetailsFragment\");\n\n Log.e(\"check==========>\",\"BusinessDetailsFragment\");\n\n }\n\n Bundle bundle = this.getArguments();\n if (bundle != null) {\n\n try {\n Approved = bundle.getString(\"redirect_type\");\n } catch (Exception e) {\n Approved=\"default\";\n e.printStackTrace();\n\n }\n\n try {\n Rejected = bundle.getString(\"redirect_type\");\n } catch (Exception e) {\n Rejected=\"default\";\n e.printStackTrace();\n\n\n }\n\n\n }\n\n ViewPager viewPager = view.findViewById(R.id.viewpager);\n\n FragmentManager fragmentManager = getFragmentManager();\n\n try {\n\n if (Constants.mMainActivity.productListPendingFragment != null) {\n fragmentManager.beginTransaction().remove(Constants.mMainActivity.productListPendingFragment).commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n if (Constants.mMainActivity.productListApprovedFragment != null) {\n fragmentManager.beginTransaction().remove(Constants.mMainActivity.productListApprovedFragment).commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n if (Constants.mMainActivity.productListRejectedFragment != null) {\n fragmentManager.beginTransaction().remove(Constants.mMainActivity.productListRejectedFragment).commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n Log.e(\"BackStackEntryCount()\", \"fragmentManager.getBackStackEntryCount() \" + fragmentManager.getBackStackEntryCount());\n\n try {\n mFragmentList.clear();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n\n if (adapter != null) {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n adapter = new ViewPagerAdapter(getFragmentManager(), mFragmentList, mFragmentTitleList);\n viewPager.setSaveFromParentEnabled(false);\n\n setupViewPager(viewPager);\n\n TabLayout tabLayout = view.findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n\n Log.e(\"check\",\"Fragment\"+Constants.mMainActivity.WhichFragmentIsopen);\n\n if (Approved.equalsIgnoreCase(\"Approved\")){\n\n viewPager.setCurrentItem(1);\n\n\n }else if(Rejected.equalsIgnoreCase(\"Rejected\")){\n\n viewPager.setCurrentItem(2);\n }else if(Constants.mMainActivity.WhichFragmentIsopen.equals(\"Fragment Approved\")){\n\n viewPager.setCurrentItem(1);\n }else if(Constants.mMainActivity.WhichFragmentIsopen.equals(\"Fragment Pending\")){\n\n viewPager.setCurrentItem(0);\n }else if(Constants.mMainActivity.WhichFragmentIsopen.equals(\"Fragment Rejected\")){\n\n viewPager.setCurrentItem(2);\n }else {\n\n viewPager.setCurrentItem(0);\n }\n\n return view;\n }",
"@Override\n public void onItemSelected(SourceItem news_Channel) {\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"JsonObject\", news_Channel);\n Fragment detailFragment = new TheNews();\n detailFragment.setArguments(bundle);\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.replaceFragment, detailFragment).addToBackStack(\"home\").commit();\n\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n id_author = id;\n getLoaderManager().restartLoader(1, null, callbackTitres);\n }",
"void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);",
"@Override\n public void onFragmentVisible() {\n db = LegendsDatabase.getInstance(getContext());\n\n refreshCursor();\n\n if (emptyView.isShown()) {\n Crossfader.crossfadeView(emptyView, loadingView);\n }\n else {\n Crossfader.crossfadeView(listView, loadingView);\n }\n }",
"@Override\n public void onBindViewHolder(MyViewHolder holder, final int position) {\n\n if (RandomFeedFragment.category_history_array == null){\n// category_history_array = new ArrayList<>();\n// category_id_array = new ArrayList<>();\n// RandomFeedFragment.category_history_array = category_history_array;\n// RandomFeedFragment.category_id_history = category_id_array;\n RandomFeedFragment.category_history_array = new ArrayList<>();\n RandomFeedFragment.category_id_history = new ArrayList<>();\n\n }\n\n if (!RandomFeedFragment.category_history_array.isEmpty()) {\n String last_category_name = RandomFeedFragment.category_history_array.get(RandomFeedFragment.category_history_array.size() - 1);\n String cate_id = cate_Arr.get(position).getCate_title();\n if (cate_id.equals(last_category_name)) {\n holder.hidden_layout.setVisibility(View.VISIBLE);\n holder.main_layout.setVisibility(View.GONE);\n holder.feed_category_list_text_hidden.setText(cate_Arr.get(position).getCate_title());\n\n }\n else {\n\n holder.hidden_layout.setVisibility(View.GONE);\n holder.main_layout.setVisibility(View.VISIBLE);\n\n holder.feed_category_list_text.setText(cate_Arr.get(position).getCate_title());\n\n }\n\n }else {\n holder.feed_category_list_text.setText(cate_Arr.get(position).getCate_title());\n\n }\n\n holder.main_layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n RandomFeedFragment.category_history_array.add(cate_Arr.get(position).getCate_title());\n RandomFeedFragment.category_id_history.add(cate_Arr.get(position).getCate_id());\n\n Intent intt = new Intent(mContext, SelectFromSearchActivity.class);\n intt.putExtra(\"CAT_ID\",cate_Arr.get(position).getCate_id());\n intt.putExtra(\"CAT_NAME\",cate_Arr.get(position).getCate_title());\n mContext.startActivity(intt);\n if (RandomFeedFragment.category_history_array.size() != 1) {\n ((Activity) mContext).finish();\n }\n\n }\n });\n\n }",
"@Override\n\tpublic void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n\t\tBundle result = new Bundle();\n\t\tswitch (loader.getId()) {\n\t\t\tcase LOADER_MODULES_FRAGMENT:\n\t\t\t\tresult.putInt(\"cursorCount\", cursor.getCount());\n\t\t\t\t((ModulesCursorAdapter) mAdapter).swapCursor(cursor);\n\t\t\t\t((ModulesCursorAdapter) mAdapter).notifyDataSetChanged();\n\t\t\t\tbreak;\n\n\t\t\tcase LOADER_MODULE_INFO_FRAGMENT:\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\tresult.putString(\"courseName\", cursor.getString(cursor.getColumnIndex(ModulesContract.COURSE_NAME)));\n\t\t\t\tresult.putString(\"courseCode\", cursor.getString(cursor.getColumnIndex(ModulesContract.COURSE_CODE)));\n\t\t\t\tresult.putString(\"courseAcadYear\", cursor.getString(cursor.getColumnIndex(ModulesContract.COURSE_ACAD_YEAR)));\n\t\t\t\tresult.putString(\"courseSemester\", cursor.getString(cursor.getColumnIndex(ModulesContract.COURSE_SEMESTER)));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase LOADER_MODULE_INFO_FRAGMENT_DESCRIPTIONS:\n\t\t\t\tresult.putInt(\"cursorCount\", cursor.getCount());\n\t\t\t\t((CursorAdapter) mAdapter).swapCursor(cursor);\n\t\t\t\t((CursorAdapter) mAdapter).notifyDataSetChanged();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase LOADER_MODULE_ANNOUNCEMENTS_FRAGMENT:\n\t\t\tcase LOADER_NEW_ANNOUNCEMENTS_FRAGMENT:\n\t\t\t\tresult.putInt(\"cursorCount\", cursor.getCount());\n\t\t\t\t((CursorAdapter) mAdapter).swapCursor(cursor);\n\t\t\t\t((CursorAdapter) mAdapter).notifyDataSetChanged();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase LOADER_MODULE_WEBCASTS_FRAGMENT:\n\t\t\tcase LOADER_MODULE_WORKBINS_FRAGMENT:\n\t\t\t\tresult.putInt(\"cursorCount\", cursor.getCount());\n\t\t\t\t((SimpleCursorAdapter) mAdapter).swapCursor(cursor);\n\t\t\t\t((SimpleCursorAdapter) mAdapter).notifyDataSetChanged();\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase LOADER_VIEW_ANNOUNCEMENT_FRAGMENT:\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\tresult.putString(\"ivleId\", cursor.getString(cursor.getColumnIndex(AnnouncementsContract.IVLE_ID)));\n\t\t\t\tresult.putString(\"title\", cursor.getString(cursor.getColumnIndex(AnnouncementsContract.TITLE)));\n\t\t\t\tresult.putString(\"userName\", cursor.getString(cursor.getColumnIndex(UsersContract.NAME)));\n\t\t\t\tresult.putString(\"description\", cursor.getString(cursor.getColumnIndex(AnnouncementsContract.DESCRIPTION)));\n\t\t\t\tresult.putString(\"createdDate\", cursor.getString(cursor.getColumnIndex(AnnouncementsContract.CREATED_DATE)));\n\t\t\t\tresult.putString(\"expiryDate\", cursor.getString(cursor.getColumnIndex(AnnouncementsContract.EXPIRY_DATE)));\n\t\t\t\tresult.putString(\"url\", cursor.getString(cursor.getColumnIndex(AnnouncementsContract.URL)));\n\t\t\t\tresult.putBoolean(\"isRead\", cursor.getInt(cursor.getColumnIndex(AnnouncementsContract.IS_READ)) == 0 ? false : true);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase LOADER_VIEW_WEBCAST_ACTIVITY:\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\tresult.putString(\"title\", cursor.getString(cursor.getColumnIndex(WebcastsContract.TITLE)));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase LOADER_VIEW_WORKBIN_FRAGMENT:\n\t\t\tcase LOADER_VIEW_WEBCAST_FRAGMENT:\n\t\t\tcase LOADER_VIEW_WEBCAST_ITEM_GROUP_FRAGMENT:\n\t\t\t\t((SimpleCursorAdapter) mAdapter).swapCursor(cursor);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase LOADER_VIEW_WEBCAST_FILE_ACTIVITY:\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\tresult.putString(\"createDate\", cursor.getString(cursor.getColumnIndex(WebcastFilesContract.CREATE_DATE)));\n\t\t\t\tresult.putString(\"fileTitle\", cursor.getString(cursor.getColumnIndex(WebcastFilesContract.FILE_TITLE)));\n\t\t\t\tresult.putString(\"fileName\", cursor.getString(cursor.getColumnIndex(WebcastFilesContract.FILE_NAME)));\n\t\t\t\tresult.putString(\"fileDescription\", cursor.getString(cursor.getColumnIndex(WebcastFilesContract.FILE_DESCRIPTION)));\n\t\t\t\tresult.putString(\"mediaFormat\", cursor.getString(cursor.getColumnIndex(WebcastFilesContract.MEDIA_FORMAT)));\n\t\t\t\tresult.putString(\"MP3\", cursor.getString(cursor.getColumnIndex(WebcastFilesContract.MP3)));\n\t\t\t\tresult.putString(\"MP4\", cursor.getString(cursor.getColumnIndex(WebcastFilesContract.MP4)));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase LOADER_VIEW_WORKBIN_ACTIVITY:\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\tresult.putString(\"title\", cursor.getString(cursor.getColumnIndex(WorkbinsContract.TITLE)));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase LOADER_VIEW_WORKBIN_FILES_FRAGMENT:\n\t\t\t\tresult.putInt(\"cursorCount\", cursor.getCount());\n\t\t\t\t((SimpleCursorAdapter) mAdapter).swapCursor(cursor);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase LOADER_VIEW_WORKBIN_FOLDERS_FRAGMENT:\n\t\t\t\tresult.putInt(\"cursorCount\", cursor.getCount());\n\t\t\t\t((SimpleCursorAdapter) mAdapter).swapCursor(cursor);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"No such loader\");\n\t\t}\n\t\t\n\t\tif (mListener != null) {\n\t\t\t((DataLoaderListener) mListener).onLoaderFinished(loader.getId(), result);\n\t\t}\n\t}",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n final View view=inflater.inflate(R.layout.fragment_trending,container,false);\n heading=view.findViewById(R.id.head);\n heading.setText(\"Trending\");\n CategoryAdapter.last=0;\n\n final ProgressDialog progressDialogOut=new ProgressDialog(getContext());\n progressDialogOut.setMessage(\"Please Wait...\");\n progressDialogOut.show();\n addpost=view.findViewById(R.id.more);\n ImageButton imageButton=view.findViewById(R.id.profile);\n imageButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(view.getContext(),User_Profile.class));\n }\n });\n\n categoryList = new ArrayList<>();\n categoryList.clear();\n body.clear();\n user.clear();\n time.clear();\n body_url.clear();\n userhandle.clear();\n profile_resource_locater.clear();\n\n\n categoryRecyclerView = view.findViewById(R.id.idRecyclerViewHorizontalList);\n // add a divider after each item for more clarity\n categoryRecyclerView.addItemDecoration(new DividerItemDecoration(view.getContext(), LinearLayoutManager.HORIZONTAL));\n\n categoryAdapter = new CategoryAdapter2(categoryList, view.getContext());\n LinearLayoutManager horizontalLayoutManager = new LinearLayoutManager(view.getContext(), LinearLayoutManager.HORIZONTAL, false);\n categoryRecyclerView.setLayoutManager(horizontalLayoutManager);\n\n categoryRecyclerView.setAdapter(categoryAdapter);\n RecyclerView.SmoothScroller smoothScroller = new\n LinearSmoothScroller(view.getContext()) {\n @Override protected int getVerticalSnapPreference() {\n return LinearSmoothScroller.SNAP_TO_START;\n }\n };\n smoothScroller.setTargetPosition(CategoryAdapter2.last);\n horizontalLayoutManager.startSmoothScroll(smoothScroller);\n categoryRecyclerView.addOnItemTouchListener(new RecyclerTouchListener(view.getContext(),feed_recycler,new RecyclerTouchListener.ClickListener(){\n @Override\n public void onClick(View vv,int position){\n selected=categories.get(position);\n sess.set_home(false);\n Fragment_Trending f=new Fragment_Trending(selected);\n loadFragment(f);\n //startActivity(new Intent(getContext(),BottomNavigate1.class).putExtra(\"selected_category\",selected));\n }\n\n public boolean loadFragment( Fragment fragment) {\n //switching fragment\n //if (fragment != null) {\n getActivity().getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.fragment_container,fragment )\n .commit();\n System.out.println(\"jhsgfhsdhdfjsgfjdhsgcfbdhfchgf\");\n\n System.out.println(\"jhsgfhsdhdfjsgfjdhsgcfbdhfchgf\");\n\n System.out.println(\"jhsgfhsdhdfjsgfjdhsgcfbdhfchgf\");\n\n System.out.println(\"jhsgfhsdhdfjsgfjdhsgcfbdhfchgf\");\n\n System.out.println(\"jhsgfhsdhdfjsgfjdhsgcfbdhfchgf\");\n\n return true;\n //return false;\n }\n\n @Override\n public void onLongClick(View view, int position) {\n\n }\n }));\n sess=new session(view.getContext());\n mobile_no=sess.get_mobile();\n\n categoryAdapter.notifyDataSetChanged();\n\n populateCategoryList();\n mContext = view.getContext();\n JSONObject params = new JSONObject();\n try {\n params.put(\"mobile_no\", sess.get_mobile().toString());\n params.put(\"feature\", \"Trending stories\");\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n JsonObjectRequest jsonRequest = new JsonObjectRequest(url, params,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n System.out.println(\"REsponse successful........................................\");\n VolleyLog.v(\"Response:%n %s\", response.toString(4));\n System.out.println(response.toString());\n System.out.println(response.getJSONArray(\"trendingData\"));\n jar = new JSONArray();\n jar = response.getJSONArray(\"trendingData\");\n for (int i = 0; i <response.getJSONArray(\"trendingData\").length(); i++) {\n JSONObject job = new JSONObject();\n job = jar.getJSONObject(i);\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(BottomNavigate1.s+\"////////////////////88888888888/\");\n\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(BottomNavigate1.s+\"///////////////////////////////8888888888888888//////\");\n\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(BottomNavigate1.s+\"/////////////////////////////////////888888888888888888888\");\n\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(BottomNavigate1.s+\"///////////////////////////////////8888888888888//\");\n\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(CategoryAdapter.SelectedCategory+\"/////////////////////////////////////\");\n System.out.println(BottomNavigate1.s+\"///////////////////////////////////8888888888888//\");\n System.out.println(BottomNavigate1.s+\"///////////////////////////////////8888888888888//\");\n System.out.println(BottomNavigate1.s+\"///////////////////////////////////8888888888888//\");\n System.out.println(BottomNavigate1.s+\"///////////////////////////////////8888888888888//\");\n System.out.println(BottomNavigate1.s+\"///////////////////////////////////8888888888888//\");\n System.out.println(s+\"@#$%^&*()(*&^%$%^&*()(*&^%$%^&*(*&^%$#$%^&*(\");\n\n\n if(job.getString(\"category\").equalsIgnoreCase(s)) {\n\n if (job.getString(\"source_type\").equalsIgnoreCase(\"twitter\")) {\n //System.out.println(jar.get(i).toString()+\"/////////////////////////////////\");\n System.out.println(job.getString(\"author\") + \"...Author\");\n user.add(job.getString(\"author\"));\n System.out.println(job.getString(\"body\") + \".....body\");\n body.add(job.getString(\"body\"));\n System.out.println(job.getString(\"time_stamp\") + \"////////timestamp\");\n time.add(job.getString(\"created_at\"));\n userhandle.add(\"@\" + job.getString(\"author_screen_name\"));\n profile_resource_locater.add(job.getString(\"author_profile_image_url\"));\n System.out.println(job.getString(\"author_profile_image_url\"));\n// feed_recycler = view.findViewById(R.id.feed_recycler);\n// feed_recycler.setAdapter(feed_Adpater);\n if (job.getString(\"body_url\").isEmpty()) {\n body_url.add(\"null\");\n } else {\n body_url.add(job.getString(\"body_url\"));\n }\n\n } else {\n if ((job.getString(\"source\").isEmpty()))\n user.add(\"\");\n else\n user.add(job.getString(\"source\"));\n profile_resource_locater.add(job.getString(\"image_url\"));\n\n if ((job.getString(\"author\").isEmpty()))\n userhandle.add(\"\");\n else\n userhandle.add(job.getString(\"author\"));\n// userhandle.add(job.getString(\"author\"));\n time.add(job.getString(\"created_at\"));\n body.add(job.getString(\"body\"));\n if (job.getString(\"body_url\").isEmpty()) {\n body_url.add(\"null\");\n } else {\n body_url.add(job.getString(\"body_url\"));\n }\n }\n }\n else if( job.getString(\"category\").equalsIgnoreCase(categoryList.get(0).getCategoryName())){\n\n if (job.getString(\"source_type\").equalsIgnoreCase(\"twitter\")) {\n //System.out.println(jar.get(i).toString()+\"/////////////////////////////////\");\n System.out.println(job.getString(\"author\") + \"...Author\");\n user.add(job.getString(\"author\"));\n System.out.println(job.getString(\"body\") + \".....body\");\n body.add(job.getString(\"body\"));\n System.out.println(job.getString(\"time_stamp\") + \"////////timestamp\");\n time.add(job.getString(\"created_at\"));\n userhandle.add(\"@\" + job.getString(\"author_screen_name\"));\n profile_resource_locater.add(job.getString(\"author_profile_image_url\"));\n System.out.println(job.getString(\"author_profile_image_url\"));\n// feed_recycler = view.findViewById(R.id.feed_recycler);\n// feed_recycler.setAdapter(feed_Adpater);\n if (job.getString(\"body_url\").isEmpty()) {\n body_url.add(\"null\");\n } else {\n body_url.add(job.getString(\"body_url\"));\n }\n\n } else {\n if ((job.getString(\"source\").isEmpty()))\n user.add(\"\");\n else\n user.add(job.getString(\"source\"));\n profile_resource_locater.add(job.getString(\"image_url\"));\n\n if ((job.getString(\"author\").isEmpty()))\n userhandle.add(\"\");\n else\n userhandle.add(job.getString(\"author\"));\n time.add(job.getString(\"created_at\"));\n body.add(job.getString(\"body\"));\n if (job.getString(\"body_url\").isEmpty()) {\n body_url.add(\"null\");\n } else {\n body_url.add(job.getString(\"body_url\"));\n }\n }\n }\n else\n {\n\n\n if( job.getString(\"category\").equalsIgnoreCase(categoryList.get(0).getCategoryName())){\n\n\n System.out.println(job.getString(\"author\") + \"...Author\");\n user.add(job.getString(\"author\"));\n System.out.println(job.getString(\"body\") + \".....body\");\n body.add(job.getString(\"body\"));\n System.out.println(job.getString(\"time_stamp\") + \"////////timestamp\");\n time.add(job.getString(\"created_at\"));\n userhandle.add(\"@\" + job.getString(\"author_screen_name\"));\n profile_resource_locater.add(job.getString(\"author_profile_image_url\"));\n System.out.println(job.getString(\"author_profile_image_url\"));\n// feed_recycler = view.findViewById(R.id.feed_recycler);\n// feed_recycler.setAdapter(feed_Adpater);\n if (job.getString(\"body_url\").isEmpty()) {\n body_url.add(\"null\");\n } else {\n body_url.add(job.getString(\"body_url\"));\n }\n\n\n\n }\n }\n\n\n\n\n }\n\n progressDialogOut.dismiss();\n\n } catch (JSONException e) {\n progressDialogOut.dismiss();\n e.printStackTrace();\n System.out.println(\"JSON error/......................................\");\n }\n setfeed(view);\n }},new Response.ErrorListener(){\n @Override\n public void onErrorResponse (VolleyError error){\n progressDialogOut.dismiss();\n System.out.println(\"..............................................\" + error.toString());\n // startActivity(new Intent(getContext(),BottomNavigate1.class).putExtra(\"selected_category\",\"all\"));\n progressDialogOut.dismiss();\n }}\n\n );\n MySingleton.getInstance(mContext).addToRequestQueue(jsonRequest);\n\n return setfeed(view);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n page = getArguments().getInt(\"someInt\", 0);\n title = getArguments().getString(\"someTitle\");\n context=getActivity();\n isCitySelected=false;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_summary_stock, container, false);\r\n\r\n /*\r\n sets xml layout control to java controls\r\n */\r\n stockCategorySpinner = rootView.findViewById(R.id.stockCategorySpinner);\r\n etSearchStock = rootView.findViewById(R.id.etSearchStock);\r\n stockItemsHolder = rootView.findViewById(R.id.stockItemsHolder);\r\n\r\n stockCategorySpinner = rootView.findViewById(R.id.stockCategorySpinner);\r\n productArrayList = new ArrayList<>();\r\n stockProductAdapter = new StockProductAdapter(productArrayList);\r\n\r\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getContext(),\r\n R.array.stock_search_category, android.R.layout.simple_spinner_item);\r\n // Specify the layout to use when the list of choices appears\r\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n // Apply the adapter to the spinner\r\n stockCategorySpinner.setAdapter(adapter);\r\n stockCategorySpinner.setOnItemSelectedListener(this);\r\n\r\n\r\n loadStock();\r\n StockProductCardHolder.setListener(this);\r\n\r\n etSearchStock.addTextChangedListener(new TextWatcher() {\r\n @Override\r\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\r\n\r\n }\r\n\r\n @Override\r\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\r\n\r\n }\r\n\r\n @Override\r\n public void afterTextChanged(Editable editable) {\r\n if(etSearchStock.getText().length() < 1){\r\n loadStock();\r\n }else if(selectedCat.equalsIgnoreCase(\"product\")) {\r\n searchStockProduct(etSearchStock.getText().toString().toLowerCase().trim());\r\n }else if(selectedCat.equalsIgnoreCase(\"category\")) {\r\n searchProductByCategory(etSearchStock.getText().toString().toLowerCase().trim());\r\n }\r\n }\r\n });\r\n\r\n return rootView;\r\n }",
"public void LOAD_CUENTASXPAGAR() {\n\t\tFragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\r\n//\r\n//\t\tandroid.support.v4.app.Fragment prev = getSupportFragmentManager()\r\n//\t\t\t\t.findFragmentByTag(\"dialog\");\r\n//\t\tif (prev != null) {\r\n//\t\t\ttransaction.remove(prev);\r\n//\t\t}\r\n//\r\n//\t\tBundle msg = new Bundle();\r\n//\t\tmsg.putInt(CuentasPorCobrarFragment.ARG_POSITION, positioncache);\r\n//\t\tmsg.putLong(CuentasPorCobrarFragment.SUCURSAL_ID,\r\n//\t\t\t\titem_selected.getIdSucursal());\r\n//\r\n//\t\ttransaction.addToBackStack(null);\r\n//\t\tcuentasPorCobrar.setArguments(msg);\r\n//\t\tcuentasPorCobrar.show(transaction, \"dialog\");\r\n\t\t\r\n\t\t\r\n\t\tfragmentActive = FragmentActive.CONSULTAR_CUENTA_COBRAR;\r\n\t\tif (findViewById(R.id.fragment_container) != null) \r\n\t\t{\t\r\n\t\t\tcuentasPorCobrar = new CuentasPorCobrarFragment();\t\t\t\t\t\t\r\n\t\t\tBundle msg = new Bundle();\r\n\t\t\tmsg.putInt(CuentasPorCobrarFragment.ARG_POSITION, positioncache);\r\n\t\t\tmsg.putLong(CuentasPorCobrarFragment.SUCURSAL_ID, item_selected.getIdSucursal());\r\n\t\t\tcuentasPorCobrar.setArguments(msg);\t\r\n\t\t\ttransaction = getSupportFragmentManager().beginTransaction();\r\n\t\t\ttransaction.replace(R.id.fragment_container,cuentasPorCobrar);\r\n\t\t\ttransaction.addToBackStack(null);\r\n\t\t\ttransaction.commit();\t\r\n\t\t\tEstablecerMenu(fragmentActive);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public void onTabReselected(TabLayout.Tab tab) {\n switch (mTabLayout.getSelectedTabPosition()) {\n case TAB_SELECT:\n mFoodRecyclerView.setAdapter(mCategoryAdapter);\n mSelectedCategory = NO_CATEGORY_SELECTED;\n toolbarTitle.setText(mIsCalledByPickFoodActivity ? \"Select Food\":\"Food Database\");\n mIsCategoryOpen = false;\n searchView.setQueryHint(\"Search in all foods\");\n noSearchResultsTextView.setText(\"No results found\");\n break;\n }\n }",
"void onListFragmentInteraction(Holiday holiday);",
"private void loadCategories(CategoriesCallback callback) {\n CheckItemsActivity context = this;\n makeRestGetRequest(RestClient.CATEGORIES_URL, (success, response) -> {\n if (!success) {\n Toast.makeText(context, LOAD_CATEGORIES_FAIL, Toast.LENGTH_SHORT).show();\n // TODO: finish activity\n } else {\n try {\n categories = ModelsBuilder.getCategoriesFromJSON(response);\n // set categories list to spinner (common category spinner) and listener for it\n ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(context,\n android.R.layout.simple_spinner_item,\n categories);\n spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n categorySpinner.setAdapter(spinnerAdapter);\n categorySpinner.setOnItemSelectedListener(new OnCommonCategorySelected());\n } catch (JSONException e) {\n success = false;\n Log.d(DEBUG_TAG, \"Load categories parsing fail\");\n }\n }\n // inform waiting entities (e.g. waiting for items list loading start)\n callback.onLoadedCategories(success);\n });\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n brand_id = String.valueOf(brand_list.get(i).getBrandId());\n brandName = brand_list.get(i).getBrand_name();\n\n Log.d(\"fsdklj\", brand_id + brandName);\n\n hitSpinnerSeries(brand_id);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_bycategory_exp, container, false);\n\n\n\n showData(view);\n //TODO\n\n //CAT RECYCLERVIEW\n\n\n\n\n// AdapterByCategory_Expenses adapter_ByCategory_expenses =new AdapterByCategory_Expenses(getActivity());\n// recyclerViewCat_exp.setAdapter(adapter_ByCategory_expenses);\n\n\n //DIALOG RECYCLERVIEW\n\n return view;\n }",
"public void showCountrySelector(Activity act,ArrayList constParam)\n {\n if(act != null) {\n try {\n\n android.support.v4.app.FragmentManager fm = getActivity().getSupportFragmentManager();\n CountryListDialogFragment countryListDialogFragment = CountryListDialogFragment.newInstance(constParam);\n countryListDialogFragment.setTargetFragment(RegisterFragment.this, 0);\n countryListDialogFragment.show(fm, \"countryListDialogFragment\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void onBoomButtonClick(int index) {\n if (isNetworkAvailable(getActivity().getApplicationContext())) {\n fragment = null;\n fragmentClass = EbayFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"ebay\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_ebay_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }else {\n Toast.makeText(getActivity().getApplicationContext(),\"Aucune connexion Internet\",Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onClick(View v) {\n FragmentManager fragmentManager = getFragmentManager();\n AllRequestedColleges allRequestedColleges=AllRequestedColleges.newInstance();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(android.R.id.content,allRequestedColleges).addToBackStack(\"faf\").commit();\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n //getChildFragmentManager().beginTransaction().add(R.id.fragment_container, af).commit();\n // getActivity().startActivity(intent);\n // getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n //getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n // Seleciona o fragment do item\n Fragment fragment = null;\n if (id == R.id.menu_cat_widgets) {\n fragment = new CategoryWidgetsFragment();\n } else if (id == R.id.menu_cat_text_fields) {\n fragment = new CategoryTextFieldsFragment();\n } else if (id == R.id.menu_cat_layouts) {\n fragment = new CategoryLayoutsFragment();\n } else if (id == R.id.menu_cat_containers) {\n fragment = new CategoryContainersFragment();\n } else if (id == R.id.menu_cat_image_media) {\n fragment = new CategoryImagesFragment();\n } else if (id == R.id.menu_cat_date_time) {\n fragment = new CategoryDateTimeFragment();\n } else if (id == R.id.menu_home) {\n fragment = new StartFragment();\n } else if (id == R.id.menu_evaluate) {\n Util.showEvaluateDialog(this);\n } else if (id == R.id.menu_about) {\n new AlertDialog.Builder(this)\n .setTitle(R.string.title_about)\n .setMessage(R.string.text_about)\n .setPositiveButton(R.string.text_now, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Util.showEvaluateDialog(MainActivity.this);\n }\n })\n .setNegativeButton(R.string.text_after, null)\n .show();\n }\n\n // Exibe o fragment do item\n if (fragment != null) {\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.container, fragment)\n .addToBackStack(null)\n .commit();\n }\n\n // Fecha o drawer\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n\n return true;\n }",
"@Override\n public void onSelectedDayChange(@NonNull CalendarView view, int year, int month, int dayOfMonth) {\n final Trace myTrace1 = FirebasePerformance.getInstance().newTrace(\"coursesSupervisorsActivityShowFilteredCourses_trace\");\n myTrace1.start();\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, dayOfMonth);\n // formattage de la date pour le debut et la fin de journée\n DateFormat dateFormatEntree = new SimpleDateFormat(\"dd MM yyyy\", Locale.FRANCE);\n DateFormat dateFormatSortie = new SimpleDateFormat(\"dd MM yyyy HH:mm:ss\", Locale.FRANCE);\n String s = dateFormatEntree.format(calendar.getTime());\n String ss = s.concat(\" 00:00:00\");\n String sss = s.concat(\" 23:59:59\");\n try {\n calendrierClique = dateFormatSortie.parse(ss);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n try {\n calendrierFinJournee = dateFormatSortie.parse(sss);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n configureRecyclerViewSorted();\n myTrace1.stop();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_categories, container, false);\n\n Button women = (Button) view.findViewById(R.id.women);\n women.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), ProductActivity.class);\n intent.putExtra(\"some\", \"data\");\n startActivity(intent);\n\n\n }\n });\n\n\n Button men = (Button) view.findViewById(R.id.men);\n men.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), MenActivity.class);\n intent.putExtra(\"some\", \"data\");\n startActivity(intent);\n\n\n }\n });\n\n Button kids = (Button) view.findViewById(R.id. kids );\n kids .setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), KidsActivity.class);\n intent.putExtra(\"some\", \"data\");\n startActivity(intent);\n\n\n }\n });\n return view;\n\n\n }",
"public void onConnectionEstablished() {\n\t\tviewPager.setCurrentItem(Tabs.SCARY_CREEPER.index);\n\t}",
"@Override\n public void onClick(View v) {\n Log.i(\"CheeseSelectionFragment\",selectedCheeses+\" THIS IS THE SELECTED CHEESES\");\n BuildPizzaDialog dialog;\n dialog = new BuildPizzaDialog();\n dialog.show(getFragmentManager(), \"dialog\");\n\n // MAKE THIS CREATE THE PIZZA. GO TO LISTVIEW FRAGMENT.\n // activityCallback.changeFragment(\"SauceSelectionFragment\");\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_categories,container,false);\n view.findViewById(R.id.shimmerProducts_Categories).setVisibility(View.VISIBLE);\n ButterKnife.bind(this, view);\n stocksArrayList = new ArrayList<>();\n StockList = new ArrayList<>();\n productsArrayList = new ArrayList<>();\n ProductList = new ArrayList<>();\n ProductArrayList = new ArrayList<>();\n manager = new LinearLayoutManager(getActivity(),LinearLayoutManager.VERTICAL,false);\n getArgumentsForFragment();\n return view;\n }",
"public void addClubSelector() {\n\n if (clubSelectorTour == null) {\n clubSelectorTour = calendarMenu.addItem(\"Set Club\", command -> {\n\n Window window = new Window(\"Select Club for Calendar Events\");\n window.setWidth(\"400px\");\n window.setHeight(\"200px\");\n getUI().addWindow(window);\n window.center();\n window.setModal(true);\n C<Club> cs = new C<>(Club.class);\n ComboBox clubs = new ComboBox(\"Club\", cs.c());\n clubs.setItemCaptionMode(ItemCaptionMode.ITEM);\n clubs.setNullSelectionAllowed(false);\n\n clubs.setFilteringMode(FilteringMode.CONTAINS);\n Button done = new Button(\"Done\");\n done.addClickListener(listener -> {\n window.close();\n Object id = clubs.getValue();\n if (id != null) {\n calendar.filterEventOwnerId(id);\n setClubName(id);\n calendar.markAsDirty();\n }\n });\n\n EVerticalLayout l = new EVerticalLayout(clubs, done);\n\n window.setContent(l);\n });\n }\n }",
"@Override\r\n public View onCreateView(final LayoutInflater inflater, final ViewGroup container,\r\n Bundle savedInstanceState) {\n Bundle bundle = getArguments();\r\n if (bundle != null) {\r\n bank_id = bundle.getInt(\"BANK_ID\");//String bankNam=db.getBankName(bank_id);\r\n Log.e(\"Bank in af\", String.valueOf(bank_id));\r\n }\r\n\r\n\r\n // Inflate the layout for this fragment\r\n View view = inflater.inflate(R.layout.fragment_address, container, false);\r\n\r\n btnBranch = (Button) view.findViewById(R.id.btnBranch);\r\n btnATM = (Button) view.findViewById(R.id.btnATM);\r\n btnExchange = (Button) view.findViewById(R.id.btnExchange);\r\n\r\n\r\n displayView(R.id.btnBranch);\r\n\r\n btnBranch.setSelected(true);\r\n btnBranch.setOnClickListener(this);\r\n btnATM.setOnClickListener(this);\r\n btnExchange.setOnClickListener(this);\r\n // etSearch.setFocusableInTouchMode(true);\r\n //etSearch.requestFocus();\r\n\r\n\r\n return view;\r\n }",
"private void handleMergeSelectedItem(int position) {\r\n\r\n mergeItemListener = (OnMergeItemSelectedListener) fragment;\r\n mergeItemListener.onMergeItemSelected();\r\n startMerge(position);\r\n\r\n sendPersonMergedAnalytics(false);\r\n\r\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}",
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsetContentView(R.layout.saler_product_type_activity);\r\n\t\tmTitleTextView = (TextView) findViewById(R.id.product_type_title);\r\n\t\tmProductTypeList = (ListView) findViewById(R.id.product_type_List);\r\n\t\tmProductTypeList.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view,\r\n\t\t\t\t\tint position, long id) {\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(ID, mGoodsInfos.get(position).getId());\r\n\t\t\t\topenActivity(CopyOfBrandListActivity.class, bundle);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tDealer dealer = (Dealer) getIntent().getBundleExtra(\r\n\t\t\t\tFranchiserFragment.INFO).getSerializable(\r\n\t\t\t\tFranchiserFragment.TYPE);\r\n\t\tif (dealer != null) {\r\n\t\t\tmTitleTextView.setText(dealer.getName());\r\n\t\t\tmGoodsInfos = dealer.getGoodInfos();\r\n\t\t\tmAdapter = new DealerListAdapter(mGoodsInfos);\r\n\t\t\tmProductTypeList.setAdapter(mAdapter);\r\n\t\t\tmAdapter.notifyDataSetChanged();\r\n\t\t}\r\n\t}",
"@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n Class framentClass = null;\n switch (item.getItemId()) {\n case R.id.navigation_search:\n/* getSupportActionBar().setTitle(\"Catalog\");\n fragment = catalogFragment;\n framentClass = AdminHomePage.class;*/\n intent = new Intent(AdminHomePage.this, AdminHomePage.class);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_out, R.anim.slide_in);\n break;\n\n case R.id.navigation_master:\n showCustomLoadingDialog();\n intent = new Intent(AdminHomePage.this, AdminCategoryActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_out, R.anim.slide_in);\n break;\n\n case R.id.navigation_helpCenter:\n intent = new Intent(AdminHomePage.this, HelpCenterActivity.class);\n startActivity(intent);\n // generateRandomNumber();\n // overridePendingTransition(R.anim.slide_out, R.anim.slide_in);\n// getSupportActionBar().setTitle(\"Help Center\");\n// fragment = helpCenterFragment;\n// framentClass = HelpCenterFragment.class;\n break;\n }\n try {\n fragment = (Fragment) framentClass.newInstance();\n android.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.home_container, fragment).commit();\n setTitle(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }"
] | [
"0.66085505",
"0.5751635",
"0.57245225",
"0.5340211",
"0.5307621",
"0.5298958",
"0.52944297",
"0.5291248",
"0.5259723",
"0.5238961",
"0.5193279",
"0.5188447",
"0.5168549",
"0.51610655",
"0.5152532",
"0.5151943",
"0.51427287",
"0.5120661",
"0.5094565",
"0.50933874",
"0.50824857",
"0.508176",
"0.5076066",
"0.5065486",
"0.50510126",
"0.5039893",
"0.50397414",
"0.5038483",
"0.50382566",
"0.5032317",
"0.5027866",
"0.5025255",
"0.5020654",
"0.501175",
"0.50111324",
"0.5008888",
"0.50084877",
"0.49890226",
"0.49801508",
"0.49657378",
"0.4965324",
"0.49461928",
"0.49443233",
"0.4941942",
"0.49336538",
"0.49295658",
"0.4916165",
"0.491034",
"0.4901504",
"0.4899074",
"0.48986208",
"0.48960817",
"0.48921505",
"0.48813653",
"0.4876793",
"0.48736575",
"0.48587868",
"0.48575497",
"0.48559788",
"0.48538166",
"0.4851349",
"0.48425576",
"0.48337442",
"0.4833659",
"0.48297897",
"0.48256925",
"0.4821571",
"0.48189628",
"0.4812782",
"0.4812213",
"0.4811863",
"0.48018262",
"0.48009917",
"0.47904286",
"0.47877836",
"0.4787472",
"0.47804254",
"0.4777404",
"0.4777275",
"0.47769812",
"0.47693804",
"0.4766871",
"0.47561818",
"0.47547218",
"0.47537777",
"0.47531837",
"0.475316",
"0.4748715",
"0.47476974",
"0.4745079",
"0.47429225",
"0.47412202",
"0.47404233",
"0.47396654",
"0.47303805",
"0.47223625",
"0.47216797",
"0.4717757",
"0.47083867",
"0.47070062"
] | 0.6290835 | 1 |
Start fragment input description | private void startFragmentDescription(String oldDescription) {
FragmentDescription nextFrag = new FragmentDescription();
Bundle bundle = new Bundle();
bundle.putInt("Tab", mTab);
bundle.putString("Description", oldDescription);
bundle.putSerializable("Callback", this);
nextFrag.setArguments(bundle);
mActivity.addFragment(mTab, mContainerViewId, nextFrag, FragmentDescription.Tag, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startInfo(Document src);",
"public progFragment() {\n }",
"void fragment(String fragment);",
"void fragment(String fragment);",
"public MedicineHeadlineFragment() {\n\n }",
"private void readToStartFragment() throws XMLStreamException {\r\n\t\twhile (true) {\r\n\t\t\tXMLEvent nextEvent = eventReader.nextEvent();\r\n\t\t\tif (nextEvent.isStartElement()\r\n\t\t\t\t\t&& ((StartElement) nextEvent).getName().getLocalPart().equals(fragmentRootElementName)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public SummaryFragment() {\n }",
"private void challengeStartNew() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentNewChallenge newChallenge = FragmentNewChallenge.newInstance(\"Titel\");\n newChallenge.show(fm, \"fragment_start_new_challenge\");\n }",
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"void start(String meta);",
"public StintFragment() {\n }",
"public abstract void startDataField(String tag, char ind1, char ind2);",
"public static void begin() {\n Log.writeln(\"<xml-begin/> <!-- Everything until xml-end is now valid xml -->\");\n }",
"public TextFragment()\n\t{\n\t}",
"private void startWord(Attributes attributes) {\n\t\tinWord = true;\n\t\tcontentsField.addPropertyValue(\"hw\", attributes.getValue(\"l\"));\n\t\tcontentsField.addPropertyValue(\"pos\", attributes.getValue(\"p\"));\n\t\tcontentsField.addStartChar(getContentPosition());\n\t}",
"public Fragment_Tutorial() {}",
"public void start( )\n {\n // Implemented by student.\n }",
"public CuartoFragment() {\n }",
"public void start() {\r\n StringBuilder title = new StringBuilder();\r\n String name = getClass().getSimpleName();\r\n title.append(name.charAt(0));\r\n for (int i = 1, n = name.length(); i < n; ++i) {\r\n char c = name.charAt(i);\r\n if (Character.isUpperCase(c)) {\r\n title.append(' ');\r\n }\r\n title.append(c);\r\n }\r\n title.append(\"\");\r\n\r\n start(title.toString());\r\n }",
"public void startContent() {\n iTextContext.pageNumber().startMainMatter();\n }",
"public void startDataField(String tag, char ind1, char ind2) {\n \t datafield = new DataField(tag, ind1, ind2);\n }",
"public void startInfo() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter your name:\");\n\t\tString name = this.getInputString();\n\t\tSystem.out.println(\"Enter your mobile number:\");\n\t\tint number = this.getInputInteger();\n\t\tSystem.out.println(\"Enter your email:\");\n\t\tString email = this.getInputString();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_description, container, false);\n\n ImageView preview = view.findViewById(R.id.preview);\n TextView title = view.findViewById(R.id.title);\n TextView description = view.findViewById(R.id.description);\n\n title.setText(selectedMajor);\n\n int resource;\n\n switch (selectedMajor) {\n case \"Biology\":\n preview.setImageResource(R.drawable.biology);\n resource = R.raw.biology_description;\n break;\n case \"Chemistry\":\n preview.setImageResource(R.drawable.chemistry);\n resource = R.raw.chemistry_description;\n break;\n case \"Computer Science\":\n preview.setImageResource(R.drawable.computer_science);\n resource = R.raw.computer_science_description;\n break;\n case \"Economics\":\n preview.setImageResource(R.drawable.economics);\n resource = R.raw.economics_description;\n break;\n case \"Graphic Design\":\n preview.setImageResource(R.drawable.graphic_design);\n resource = R.raw.graphic_design_description;\n break;\n default:\n return view;\n }\n\n InputStream stream = getResources().openRawResource(resource);\n\n Scanner s = new Scanner(stream);\n StringBuilder descriptionBuilder = new StringBuilder();\n while (s.hasNextLine())\n descriptionBuilder.append(s.nextLine()).append(\"\\n\");\n String descriptionText = descriptionBuilder.toString();\n\n description.setText(descriptionText);\n\n return view;\n }",
"public void instruction() {\n gui.setUp();\n JLabel header = new JLabel(\"Vocabulary Quiz\");\n header.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 28));\n gui.getConstraints().gridx = 0;\n gui.getConstraints().gridy = 0;\n gui.getConstraints().insets = new Insets(10,0,100,0);\n gui.getPanel().add(header, gui.getConstraints());\n String instructionText = \"You can make sure how many vocabularies you remember \";\n instructionText += \"in your list.\\nThere are \\\"\" + VocabularyQuizList.MAX_NUMBER_QUIZ + \"\\\" questions. \";\n instructionText += \"Each question has \\\"\" + VocabularyQuiz.NUM_SELECT + \"\\\" choices.\\n\\n\";\n instructionText += \"LET'S START!!\";\n JTextArea instruction = new JTextArea(instructionText);\n instruction.setEditable(false);\n instruction.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 20));\n gui.getConstraints().gridy = 1;\n gui.getPanel().add(instruction, gui.getConstraints());\n JButton b = new JButton(\"start\");\n gui.getConstraints().gridy = 2;\n startQuestionListener(b);\n gui.getConstraints().insets = new Insets(10,300,10,300);\n gui.getPanel().add(b, gui.getConstraints());\n }",
"protected abstract int getFirstFrag();",
"public void createFragment() {\n\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tBundle extras = getIntent().getExtras();\n\t\tint id = extras.getInt(Intent.EXTRA_TEXT);\n\n\t\tswitch (id) {\n\t\tcase 0:\n\t\t\tFragment frag = new Fragment_PV();\n\t\t\tFragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n\t \t\tft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n\t \t\tft.replace(R.id.details1, frag);\n\t \t\tft.commit();\t\t\t\n\t \t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"private void buildMainFragment() {\n\t\tfinal List<Fragment> fragments = getFragments();\n\t\t//pageAdapter = new PageAdapter(getSupportFragmentManager(), fragments);\n\t\tfinal ViewPager pager = (ViewPager) findViewById(R.id.viewpager_program);\n\t\tpager.setAdapter(pageAdapter);\n\n\t\t// Set up ActionBar\n\t\tactionBar = getActionBar();\n\t\tactionBar.show();\n\t\tactionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);\n\t\t\n\t\tTab tab = actionBar\n\t\t\t\t.newTab()\n\t\t\t\t.setText(getIntent().getExtras().getString(\"pgr_name\"))\n\t\t\t\t.setTabListener(\n\t\t\t\t\t\tnew TabListener<ProgramExercisesFragment>(this,\n\t\t\t\t\t\t\t\tgetIntent().getExtras().getString(\"pgr_name\"),\n\t\t\t\t\t\t\t\tProgramExercisesFragment.class));\n\t\tactionBar.addTab(tab);\n\n\t\ttab = actionBar\n\t\t\t\t.newTab()\n\t\t\t\t.setText(\"Exercises\")\n\t\t\t\t.setTabListener(\n\t\t\t\t\t\tnew TabListener<ProgramAddExercisesFragment>(this, \"Exercises_Program\",\n\t\t\t\t\t\t\t\tProgramAddExercisesFragment.class));\n\t\tactionBar.addTab(tab);\n\t\t\n\t\t\n\t}",
"public PlaceholderFragment() {\n }",
"String getBegin();",
"private void startFileFragment(Bundle savedInstanceState) {\n if (mTopFragment != null) {\n return;\n }\n\n // Create an instance of the fragment\n mTopFragment = ImportKeysFileFragment.newInstance();\n\n // Add the fragment to the 'fragment_container' FrameLayout\n // NOTE: We use commitAllowingStateLoss() to prevent weird crashes!\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.import_keys_top_container, mTopFragment)\n .commitAllowingStateLoss();\n // do it immediately!\n getSupportFragmentManager().executePendingTransactions();\n }",
"public void start() {\n if (editor == null) {\n return;\n }\n \n DocumentManager.register(doc, styledText, documentManager);\n \n preCode = doc.get();\n \n super.start();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_description, container, false);\n titleEditText = ((EditText) v.findViewById(R.id.desc_ttl));\n //Sets the Listeners for the title edit text, to save the input of the user\n titleEditText.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n saveTitle(s);\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n descEditText = ((EditText) v.findViewById(R.id.desc_txt));\n //Sets the Listeners for the description edit text, to save the input of the user\n descEditText.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n saveDescription(s);\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_sales_out_input, container, false);\n\n textSN = (TextView) view.findViewById(R.id.textSN);\n\n Bundle bundle = getArguments();\n\n if(bundle != null) {\n String contentSN = bundle.getString(Protocol.CONTENT);\n outletID = bundle.getString(Protocol.OUTLETID);\n if(contentSN != null) {\n textSN.setText(contentSN);\n }\n }\n\n final Button btnSN = (Button) view.findViewById(R.id.btnInputSN);\n btnSN.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n String input = textSN.getText().toString();\n if( (input.matches(\"002[0-9A-Z]+\") && input.length() >= 17 && input.length() <= 20) ||\n (input.matches(\"3[0-9A-Z]+\") && input.length() == 15) ){\n inputSNButtonClicked(input);\n } else {\n Toast.makeText(getActivity(), Constant.wrongInput, Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n final Button scanSN =\n (Button) view.findViewById(R.id.scanSN);\n scanSN.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n scanButtonClicked();\n }\n });\n\n initialization();\n\n return view;\n }",
"private void defaultFragment() {\n\n Fragment fragment = new Helpline();\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n }",
"@Override\n public void add_content() {\n Scanner _thisText = new Scanner(System.in);\n System.out.println(\"Enter Ad text:\");\n _adContent = _thisText.nextLine();\n }",
"public HeaderFragment() {}",
"public void start() {\n\n\tSystem.out.println(\"Welcome on HW8\");\n\tSystem.out.println(\"Avaiable features:\");\n\tSystem.out.println(\"Press 1 for find the book titles by author\");\n\tSystem.out.println(\"Press 2 for find the number of book published in a certain year\");\n\tSystem.out.print(\"Which feature do you like to use?\");\n\n\tString input = sc.nextLine();\n\tif (input.equals(\"1\"))\n\t showBookTitlesByAuthor();\n\telse if (input.equals(\"2\"))\n\t showNumberOfBooksInYear();\n\telse {\n\t System.out.println(\"Input non recognized. Please digit 1 or 2\");\n\t}\n\n }",
"public DynamicDriveToolTipTagFragmentGenerator(String title, int style) {\n/* 75 */ this.title = title;\n/* 76 */ this.style = style;\n/* */ }",
"@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\r\n\t}",
"private void startFragmentEvent(String oldEvent) {\n FragmentEvent nextFrag = new FragmentEvent();\n Bundle bundle = new Bundle();\n bundle.putInt(\"Tab\", mTab);\n bundle.putString(\"Event\", oldEvent);\n bundle.putSerializable(\"Callback\", this);\n nextFrag.setArguments(bundle);\n mActivity.addFragment(mTab, mContainerViewId, nextFrag, \"FragmentEvent\", true);\n }",
"@Override\n //This will handle how the fragment will display content\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle saveInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_main, container, false);\n\n FeedListView mFeedListView = new FeedListView(getActivity());\n Log.d(TAG, \"MyFragment::onCreate\");\n mFeedListView.inflate(layout);\n\n //Getting a reference to the TextView (as defined in fragment_main) and set it to a value\n Bundle bundle = getArguments();\n\n switch (bundle.getInt(\"point\")){\n case 0:\n //TODO : add tag query\n break;\n case 1:\n //TODO : add tag query\n break;\n case 2:\n //TODO : add tag query\n break;\n case 3:\n //TODO : add tag query\n break;\n default:\n }\n\n return layout;\n }",
"public DynamicDriveToolTipTagFragmentGenerator() {}",
"public Title()\r\n {\r\n startTag=\"TITLE\";\r\n endTag=\"/TITLE\"; \r\n }",
"public Synopsis()\n\t{\n\n\t}",
"public RecipeStepsListFragment() {\n }",
"private void ProcesInput(String data) {\n String TabOfFragment1 = (this).getTabFragment1();\n FragmentTab1 fragment1 = (FragmentTab1)this\n .getSupportFragmentManager()\n .findFragmentByTag(TabOfFragment1);\n // opzoeken van fragment2\n String TabOfFragment2 = (this).getTabFragment2();\n FragmentTab2 fragment2 = (FragmentTab2)this\n .getSupportFragmentManager()\n .findFragmentByTag(TabOfFragment2);\n // opzoeken van fragment3\n String TabOfFragment3 = (this).getTabFragment3();\n FragmentTab3 fragment3 = (FragmentTab3)this\n .getSupportFragmentManager()\n .findFragmentByTag(TabOfFragment3);\n\n // eerst het ingelezen record opdelen in code en informatie\n int kode = 0;\n if (data.length() < 2) GeefFoutboodschap(data.substring(0)); // dit komt soms bij de start van een lopende Arduino\n String s = data.substring(0, 2); // eerste 2 posities bevat de kode\n String info = data.substring(2); // de recordinformatie\n // Log.d(TAG, \" M374 info = \" + info);\n try {\n kode = Integer.parseInt(s); // omzetten naar integer\n } catch (NumberFormatException ex) { // omzetten is niet gelukt\n GeefFoutboodschap(s);\n }\n\n switch (kode) {\n case 1:\n final ActionBar actionBar = getActionBar();\n actionBar.setSubtitle(info);\n connected = true;\n\n\n\n break;\n case 2: // geef de stand van de vlotter weer\n if (info.equals(\"L\") ) { // het niveau staat te laag\n fragment1.Niveau.setTextSize(14); // veld Niveau highlighted rood maken\n fragment1.Niveau.setBackgroundColor(0xFFFF0000);\n fragment1.Niveau.setText(\"LEEG\");\n }\n else {\n fragment1.Niveau.setTextSize(14);\n fragment1.Niveau.setBackgroundColor(0xFF00FF00);\n fragment1.Niveau.setText(\"VOLDOENDE\");\n }\n break;\n case 3: // Arduino send datum\n fragment1.ADatum.setText(info);\n writeData(\"s#\");\t \t// vraag om de gegevens van de schijf en file\n break;\n case 4: // set de humidity in het veld\n fragment1.Humidity.setText(info);\n break;\n case 5: // set de temperatuur in het veld\n fragment1.TempC.setText(info);\n break;\n case 6: // set de schijfinfo in het veld\n fragment1.Schijf.setText(info);\n break;\n case 7: // set de bestandsinfo in het veld\n fragment1.Bestand.setText(info);\n writeData(\"u#\"); // vraag om de Pompstatus\n break;\n case 8: // Arduino send tijd\n fragment1.ATijd.setText(info);\n break;\n case 9: // set de Light info in het veld\n fragment1.Lux.setText(info);\n break;\n case 10: // smscode\n fragment1.Sms.setText(info);\n break;\n case 11: // files\n\n break;\n case 12: // inhoud files\n\n break;\n case 13: // deleted filename\n\n break;\n case 14: // telefoonnummer\n fragment1.Telefoon.setText(info);\n break;\n case 15: // set de PompStatus\n Integer x = Integer.parseInt(info);\n // set alle velden op grijs\n\n fragment1.Status01.setBackgroundColor(0xE0E0E0E0);\n fragment1.Status02.setBackgroundColor(0xE0E0E0E0);\n fragment1.Status03.setBackgroundColor(0xE0E0E0E0);\n fragment1.Status04.setBackgroundColor(0xE0E0E0E0);\n fragment1.Status05.setBackgroundColor(0xE0E0E0E0);\n fragment1.Status06.setBackgroundColor(0xE0E0E0E0);\n fragment1.Status07.setBackgroundColor(0xE0E0E0E0);\n fragment1.Status08.setBackgroundColor(0xE0E0E0E0);\n\n // set alle opmerkingsvelden uit\n fragment1.Opm01.setVisibility(View.INVISIBLE);\n fragment1.Opm02.setVisibility(View.INVISIBLE);\n fragment1.Opm03.setVisibility(View.INVISIBLE);\n fragment1.Opm04.setVisibility(View.INVISIBLE);\n fragment1.Opm05.setVisibility(View.INVISIBLE);\n fragment1.Opm06.setVisibility(View.INVISIBLE);\n fragment1.Opm07.setVisibility(View.INVISIBLE);\n fragment1.Opm08.setVisibility(View.INVISIBLE);\n\n // set het x veld op groen\n switch (x) {\n case 1: fragment1.Status01.setBackgroundColor(0xFF00FF00);\n fragment1.Opm01.setVisibility(View.VISIBLE);\n break;\n case 2: fragment1.Status02.setBackgroundColor(0xFF00FF00);\n fragment1.Opm02.setVisibility(View.VISIBLE);\n break;\n case 3: fragment1.Status03.setBackgroundColor(0xFF00FF00);\n fragment1.Opm03.setVisibility(View.VISIBLE);\n break;\n case 4: fragment1.Status04.setBackgroundColor(0xFF00FF00);\n fragment1.Opm04.setVisibility(View.VISIBLE);\n String opm4 = \"Pomp \" + pompnr + \" in gebruik\";\n fragment1.Opm04.setText(opm4);\n break;\n case 5: fragment1.Status05.setBackgroundColor(0xFF00FF00);\n fragment1.Opm05.setVisibility(View.VISIBLE);\n break;\n case 6: fragment1.Status06.setBackgroundColor(0xFF00FF00);\n fragment1.Opm06.setVisibility(View.VISIBLE);\n break;\n case 7: fragment1.Status07.setBackgroundColor(0xFF00FF00);\n fragment1.Opm07.setVisibility(View.VISIBLE);\n break;\n case 8: fragment1.Status08.setBackgroundColor(0xFFFF0000);\n fragment1.Opm08.setVisibility(View.VISIBLE);\n break;\n }\n writeData(\"r#\"); // vraag het waterniveau op\n break;\n case 16: // set het Pompnummer\n pompnr = Integer.parseInt(info);\n break;\n case 17: // set de Sensor 1 info in het veld\n fragment1.Sensor1.setText(info);\n fragment2.sensor1 = Integer.parseInt (info);\n break;\n case 18: // set de Sensor 2 info in het veld\n fragment1.Sensor2.setText(info);\n fragment2.sensor2 = Integer.parseInt(info);\n break;\n case 19: // set de Sensor 3 info in het veld\n fragment1.Sensor3.setText(info);\n fragment2.sensor3 = Integer.parseInt (info);\n fragment2.onSensorChanged();\n break;\n case 20: // set de gem Sensor 1 info in het veld\n fragment1.Sensor1Gem.setText(info);\n break;\n case 21: // set de gem Sensor 2 info in het veld\n fragment1.Sensor2Gem.setText(info);\n break;\n case 22: // set de gem Sensor 3 info in het veld\n fragment1.Sensor3Gem.setText(info);\n break;\n case 23: // set de droog 1 info in het veld\n fragment1.Droog1.setText(info);\n break;\n case 24: // set de droog 2 info in het veld\n fragment1.Droog2.setText(info);\n break;\n case 25: // set de droog 3 info in het veld\n fragment1.Droog3.setText(info);\n break;\n // volgende case\n //\n default:\n // de rest is een onbekende kode\n GeefFoutboodschap(s);\n }\n\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 container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n\n mTextView = view.findViewById(R.id.minefragment_textView);\n mTextView.setText(mParam1 + \"_fragment\");\n\n return view;\n }",
"@Override\n\tpublic void startDocument() {\n\t\t\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_desc, null);\n\t\tinitView(view);\n\t\treturn view;\n\t}",
"private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }",
"private void setStartFragment() {\n Fragment startFragment = getFragment(APPLICATION_FRAGMENTS[0]);\n changeFragment(startFragment);\n }",
"@Override\n\tprotected void onStart()\n\t{\n\t\ttext_input.setPath(preference.getString(\"input\",FileUtils.getSDPath()));\n\t\ttext_output.setPath(preference.getString(\"output\",FileUtils.getSDPath()));\n\t\ttext_fileName.setText(preference.getString(\"name\",\"packer\"));\n\t\ttext_width.setText(preference.getString(\"width\",\"1024\"));\n\t\ttext_height.setText(preference.getString(\"height\",\"1024\"));\n\t\t\n\t\tsuper.onStart();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n\n tvID = view.findViewById(R.id.tvID);\n tvPoints = view.findViewById(R.id.tvPoints);\n tvEvents = view.findViewById(R.id.tvEvents);\n\n tvID.setText(\"Deine ID lautet: \\n\\n\" + StartActivity.data + \"\\n\");\n tvPoints.setText(\"Deine punkte: \\n\\n\" + s.getPoints() + \"\\n\");\n\n return view;\n }",
"public DisplayFragment() {\n\n }",
"protected void start() {\n\t\thellotv.setText(\"\");\n\t\tMap<String, Object> params = new LinkedHashMap<String, Object>();\n\t\tString event = null;\n\t\tevent = SpeechConstant.ASR_START;\n\t\t\n\t\tif (enableOffline) {\n params.put(SpeechConstant.DECODER, 2);\n }\n\t\t\n\t\tparams.put(SpeechConstant.ACCEPT_AUDIO_VOLUME, false);\n\t\t//params.put(SpeechConstant.PID, 1737);//English\n\t\t\n\t\tString json = null;\n\t\tjson = new JSONObject(params).toString();\n\t\tasr.send(event, json, null, 0, 0);\n\t\t\n\t\tprintresult(\"输入参数\"+ json);\n\t}",
"private void step1() {\n\t\tthis.demonstrationStep++;\n\t\tthis.getView()\n\t\t\t\t.getExplanations()\n\t\t\t\t.setText(\n\t\t\t\t\t\tthis.wrapHtml(CryptoDemonstrationController.i18n\n\t\t\t\t\t\t\t\t.tr(\"Because of your inferior intelligence you look at the first letter of your name: C.\"\n\t\t\t\t\t\t\t\t\t\t+ \" Then you look at the 3rd letter after C and take F. Great! Now you encrypted the\"\n\t\t\t\t\t\t\t\t\t\t+ \" first letter of your name. Touch proceed.\")));\n//\t\t setup the alphabet.\n\t\tthis.getView().setupAlphabet();\n\t\tthis.getView().getUserInput()[0].setBorder(BorderFactory\n\t\t\t\t.createLineBorder(Color.green));\n\t\tthis.getView().getUserOutput()[0].setBorder(BorderFactory\n\t\t\t\t.createLineBorder(Color.green));\n\t\tthis.getView().getUserOutput()[0].setText(\"F\");\n\t\tthis.getView().validate();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View mContentView = inflater.inflate(R.layout.fragment_simple, container, false);\n\n button = mContentView.findViewById(R.id.button);\n editText = mContentView.findViewById(R.id.editText);\n\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n in.sendTextToFragment(editText.getText().toString());\n }\n });\n\n return mContentView;\n }",
"public SectionDesc ()\r\n {\r\n }",
"public void init() {\n super.init();\n\n setDefaultInputNodes(1);\n setMinimumInputNodes(1);\n setMaximumInputNodes(1);\n\n setDefaultOutputNodes(1);\n setMinimumOutputNodes(1);\n setMaximumOutputNodes(Integer.MAX_VALUE);\n\n String guilines = \"\";\n guilines += \"Input your text string in the following box $title value TextField\\n\";\n setGUIBuilderV2Info(guilines);\n\n }",
"public CarModifyFragment() {\n }",
"void descriptionComplete();",
"public RickAndMortyFragment() {\n }",
"public TripNoteFragment() {\n }",
"public AddToCardFragment() {\n }",
"public void setBeginMarker(String beginMarker) {\n this.beginMarker = beginMarker;\n }",
"public void startDocument ()\n\t\t{\n\t\t\t//System.out.println(\"Start document\");\n\t\t}",
"public void addTag(ActionEvent e) {\n\t\tStringBuilder finalText = new StringBuilder();\n\t\tinputText = new StringBuilder();\n\t\tparameters = outputArea.getText().split(\", \");\n\t\t// Get InputArea Text\n\t\tinputText.append(MainController.oldInput);\n\t\tString[] lines = inputText.toString().split(\"\\\\n\");\n\t\t// For each line of inputText...\n\t\tfor (int i = 0; i < lines.length; i++) {\n\t\t\tfinalText.append(lines[i]);\n\t\t\tif (i == MainController.caretValue) {\n\t\t\t\tswitch(active) {\n\t\t\t\t\tcase \"character\": finalText.append(addCharacter()); break;\n\t\t\t\t\tcase \"mood\": finalText.append(addMood()); break;\n\t\t\t\t\tcase \"animation\": finalText.append(addAnimation()); break;\n\t\t\t\t\tcase \"background\": finalText.append(addBackground()); break;\n\t\t\t\t\tcase \"effect\": finalText.append(addEffect()); break;\n\t\t\t\t\tcase \"music\": finalText.append(addMusic()); break;\n\t\t\t\t\tcase \"display\": finalText.append(addDisplay()); break;\n\t\t\t\t\tcase \"options\": finalText.append(addOptions()); break;\n\t\t\t\t\tcase \"void\": finalText.append(addVoid()); break;\n\t\t\t\t\tcase \"end\": finalText.append(addEnd()); break;\n\t\t\t\t\tcase \"title\":\n\t\t\t\t\t\tfinalText.append(addTitle(finalText) + \"\\n\");\n\t\t\t\t\t\tfinalText.append(\"|endTitle:\" + parameters[0]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"goto\": finalText.append(addGoto()); break;\n\t\t\t\t\tcase \"extra\": finalText.append(addExtra()); break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinalText.append(\"\\n\");\n\n\t\t}\n\n\t\tif (MainController.caretValue == lines.length) {\n\t\t\tswitch(active) {\n\t\t\t\tcase \"character\": finalText.append(addCharacter()); break;\n\t\t\t\tcase \"mood\": finalText.append(addMood()); break;\n\t\t\t\tcase \"animation\": finalText.append(addAnimation()); break;\n\t\t\t\tcase \"background\": finalText.append(addBackground()); break;\n\t\t\t\tcase \"effect\": finalText.append(addEffect()); break;\n\t\t\t\tcase \"music\": finalText.append(addMusic()); break;\n\t\t\t\tcase \"display\": finalText.append(addDisplay()); break;\n\t\t\t\tcase \"options\": finalText.append(addOptions()); break;\n\t\t\t\tcase \"void\": finalText.append(addVoid()); break;\n\t\t\t\tcase \"end\": finalText.append(addEnd()); break;\n\t\t\t\tcase \"goto\": finalText.append(addGoto()); break;\n\t\t\t\tcase \"extra\": finalText.append(addExtra()); break;\n\t\t\t}\n\t\t}\n\n\t\tif (active == \"title\" && MainController.caretValue >= lines.length) {\n\t\t\tfinalText.append(addTitle(finalText) + \"\\n\");\n\t\t\tfinalText.append(\"|endTitle:\" + parameters[0]);\n\t\t}\n\n\t\t//\t Append the current line to finalText.\n\t\t//\t If the current line == the caret's paragraph value, go through the switch\n\t\t// Append to InputArea\n\t\tMainController.oldInput = finalText.toString();\n\t\tchangeView(e);\n\t}",
"public String getStart(){\n\t\treturn start;\n\t}",
"@Override\n\tpublic void inputStarted() {\n\n\t}",
"@Override\n\tprotected void initParamsForFragment() {\n\n\t}",
"public BlockStmt\ngetInitiationPart();",
"@Override\n public void onClick(View v) {\n FlagListFragment fragment = new FlagListFragment();\n fragment.switchToDescriptionPanel();\n }",
"void setStartSegment(int startSegment);",
"public FExDetailFragment() {\n \t}",
"public void startDocument ()\n {\n\tSystem.out.println(\"Start document\");\n }",
"public void start() {\n \tupdateHeader();\n }",
"public void startRecord() {\n\t\tcmd = new StartRecordCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"public LogFragment() {\n }",
"public void start() {\n\n System.out.println(\"Esto no debe salir por consola al sobreescribirlo\");\n\n }",
"public void startDocument() {\r\n lineBuffer = new StringBuffer(128); \r\n saxLevel = 0;\r\n charState = -1;\r\n }",
"@Override\n\tpublic void inputStarted() {\n\t\t\n\t}",
"@Override\r\n public void info() {\n System.out.println(\"开始介绍\");\r\n }",
"String getBeginSplited();",
"@Override\n protected String getInitialSourceFragment(PythonParseTree.PythonParser.FuncdefContext function) {\n int startWithDecorators;\n RuleContext parent = function.getParent();\n if (parent instanceof PythonParseTree.PythonParser.Class_or_func_def_stmtContext) {\n startWithDecorators = ((PythonParseTree.PythonParser.Class_or_func_def_stmtContext) parent).getStart().getLine();\n } else {\n startWithDecorators = getNameLineNumber();\n }\n String source = getSourceFileContent() + \"\\n<EOF>\";\n // TODO remove trailing whitespace lines\n return Utl.getTextFragment(source, startWithDecorators, getEndLineNumber());\n }",
"protected void previewStarted() {\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_create_store_set_name, container, false);\n editName = (EditText) v.findViewById(R.id.editName);\n buttonSetName = (Button) v.findViewById(R.id.buttonSetName);\n txtTitle = (TextView) v.findViewById(R.id.txtTitle);\n layoutSpecification = (LinearLayout) v.findViewById(R.id.layoutSpecification);\n layoutSpecification.setVisibility(View.GONE);\n txtTitle.setText(\"Leyenda o resúmen breve de tu tienda\");\n editName.setHint(\"Leyenda o resúmen breve de tu tienda\");\n\n buttonSetName.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ((CreateStoreActivity)getActivity()).store.setSummary(editName.getText().toString().trim());\n CreateStoreSetLogoFragment fragment = new CreateStoreSetLogoFragment();\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.content_frame, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }\n });\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_detail, container, false);\n TextView textViewWord=(TextView)view.findViewById(R.id.word);\n TextView textViewMeaning=(TextView)view.findViewById(R.id.wordmeaning);\n TextView textViewSample=(TextView)view.findViewById(R.id.wordsample);\n switch (mParam1){\n case \"1\":\n textViewWord.setText(\"apple\");\n textViewMeaning.setText(\"苹果\");\n textViewSample.setText(\"Apple hit Newton on the head.\");\n break;\n case \"2\":\n textViewWord.setText(\"Banana\");\n textViewMeaning.setText(\"香蕉\");\n textViewSample.setText(\"This orange is very nice.\");\n break;\n case \"3\":\n textViewWord.setText(\"Cral\");\n textViewMeaning.setText(\"螃蟹\");\n textViewSample.setText(\"Thousands of herring and crab are washed up on the beaches during every storm.\");\n break;\n case \"4\":\n textViewWord.setText(\"infer\");\n textViewMeaning.setText(\"推断,猜测\");\n textViewSample.setText(\"be inferred from context\");\n }\n return view;\n }",
"public void startDocument ()\n throws SAXException\n {\n\t System.out.println(\"Sandeep Jaisawal\");\n \n }",
"private void editorstart(int inputType) {\n canCompose = false;\n enterAsLineBreak = false;\n\n switch (inputType & InputType.TYPE_MASK_CLASS) {\n case InputType.TYPE_CLASS_TEXT:\n canCompose = true;\n int variation = inputType & InputType.TYPE_MASK_VARIATION;\n if (variation == InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE) {\n // Make enter-key as line-breaks for messaging.\n enterAsLineBreak = true;\n }\n break;\n }\n Rime.get();\n // Select a keyboard based on the input type of the editing field.\n mKeyboardSwitch.init(getMaxWidth()); //橫豎屏切換時重置鍵盤\n // mKeyboardSwitch.onStartInput(inputType);\n //setCandidatesViewShown(true);\n //escape();\n if (!onEvaluateInputViewShown()) setCandidatesViewShown(canCompose && !Rime.isEmpty()); //實體鍵盤\n if (display_tray_icon) showStatusIcon(R.drawable.status); //狀態欄圖標\n }",
"void startComplexContent(ComplexTypeSG type) throws SAXException;",
"String fragment();",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n fragmentView = view;\n boolean hasProfile = false;\n //check si on avait des erreur ou un phone et name a ajouter\n if(args != null && !args.isEmpty()){\n try {\n if(args.containsKey(\"msg\")){\n displayErrMsg(args.getInt(\"msg\"));\n }\n if(args.containsKey(\"name\")){\n String name = args.getString(\"name\");\n if(name!= null && !name.isEmpty()){\n ((EditText)fragmentView.findViewById(R.id.userName)).setText(name);\n hasProfile = true;\n }\n }\n if(args.containsKey(\"phone\")){\n String phone = args.getString(\"phone\");\n if(phone != null && !phone.isEmpty()){\n ((EditText)fragmentView.findViewById(R.id.userPhone)).setText(phone);\n hasProfile = true;\n }\n }\n //on set le focus sur le message\n if(hasProfile){\n ((EditText)fragmentView.findViewById(R.id.userMessage)).requestFocus();\n }\n\n }catch(Exception e){\n Tracer.log(TAG, \"onViewCreated.ARGS.exception: \", e);\n }\n\n }\n\n //\n Button buttNext = fragmentView.findViewById(R.id.buttNext);\n //butt create\n buttNext.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n checkMandatoryFieldsAndCreate();\n }\n });\n\n }",
"@Override\n protected void starting(Description description) {\n LOG.info(String.format(\"Starting test: %s()...\",\n description.getMethodName()));\n }",
"public void start(){\n this.speakerMessageScreen.printScreenName();\n mainPart();\n }",
"protected void addPreamble()\n {\n openStartTag(xmlType());\n addSpace();\n addKeyValuePair(VERSION, \"1.0\");\n addSpace();\n addKeyValuePair(PRS_ID, \"PRS\" + System.currentTimeMillis());\n addSpace();\n addKeyValuePair(LOCALE, getLocale());\n closeTag();\n }",
"public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }",
"public void setStartLine(final int startLine) {\n this.startLine = startLine;\n }",
"public PinEditFragment() {}"
] | [
"0.593122",
"0.5802256",
"0.57543224",
"0.57543224",
"0.573188",
"0.5670914",
"0.5637799",
"0.5611003",
"0.5573087",
"0.5568801",
"0.55607224",
"0.5536556",
"0.54576784",
"0.54380196",
"0.5317355",
"0.5308515",
"0.52709013",
"0.5270655",
"0.52690303",
"0.52623343",
"0.52567226",
"0.5249356",
"0.52458984",
"0.521279",
"0.5207882",
"0.52026826",
"0.5187231",
"0.5155989",
"0.5151226",
"0.51478493",
"0.514231",
"0.5138797",
"0.5130327",
"0.510946",
"0.50995433",
"0.5089201",
"0.50869745",
"0.5079881",
"0.5079325",
"0.5056547",
"0.5045937",
"0.50353646",
"0.5033723",
"0.5021486",
"0.50208765",
"0.5014876",
"0.500594",
"0.5003481",
"0.4998613",
"0.4996971",
"0.49833924",
"0.49820128",
"0.49806756",
"0.49801245",
"0.4979631",
"0.4974872",
"0.49708623",
"0.49703816",
"0.49674746",
"0.49666426",
"0.49641708",
"0.49631175",
"0.49616578",
"0.4961657",
"0.49477726",
"0.49463862",
"0.49447054",
"0.4941635",
"0.49360305",
"0.49340534",
"0.49307024",
"0.49288276",
"0.49284393",
"0.49280134",
"0.4922061",
"0.4920449",
"0.49135768",
"0.490185",
"0.4897171",
"0.48962006",
"0.48911142",
"0.48857206",
"0.48839736",
"0.4878729",
"0.48749277",
"0.48749244",
"0.4874335",
"0.4873894",
"0.48738822",
"0.48669285",
"0.48637193",
"0.48625454",
"0.48594752",
"0.48576847",
"0.48567843",
"0.4856535",
"0.4854685",
"0.48526987",
"0.4851491",
"0.48508403"
] | 0.70105046 | 0 |
End startFragmentDescription Start fragment to Select Account | private void startFragmentSelectAccount(TransactionEnum transactionType, int oldAccountId) {
LogUtils.logEnterFunction(Tag, "TransactionType = " + transactionType.name() + ", oldAccountId = " + oldAccountId);
FragmentAccountsSelect nextFrag = new FragmentAccountsSelect();
Bundle bundle = new Bundle();
bundle.putInt("Tab", mTab);
bundle.putInt("AccountID", oldAccountId);
bundle.putSerializable("TransactionType", transactionType);
bundle.putSerializable("Callback", this);
nextFrag.setArguments(bundle);
mActivity.addFragment(mTab, mContainerViewId, nextFrag, FragmentAccountsSelect.Tag, true);
LogUtils.logLeaveFunction(Tag);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AccountOptionalFragment()\n {\n super();\n }",
"@Override\n public void getStartedClicked() {\n startSignUpFragment();\n\n }",
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"public static Settings_MyAccount_Fragment newInstance () {return new Settings_MyAccount_Fragment();}",
"private void startFragmentDescription(String oldDescription) {\n FragmentDescription nextFrag = new FragmentDescription();\n Bundle bundle = new Bundle();\n bundle.putInt(\"Tab\", mTab);\n bundle.putString(\"Description\", oldDescription);\n bundle.putSerializable(\"Callback\", this);\n nextFrag.setArguments(bundle);\n mActivity.addFragment(mTab, mContainerViewId, nextFrag, FragmentDescription.Tag, true);\n }",
"private void setStartFragment() {\n Fragment startFragment = getFragment(APPLICATION_FRAGMENTS[0]);\n changeFragment(startFragment);\n }",
"@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}",
"@Override\n public void onStart() {\n super.onStart();\n\n if (mAuth.getCurrentUser() != null) {\n //finish();\n\n // Changed accountFragment to ProfileFragment, should rename account fragment to setup\n //SetupFragment accountFragment = new SetupSetupFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container,\n new SettingsFragment()).commit();\n }\n }",
"public ChooseLockPasswordFragment() {\n\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t\tBaseActivityticket.curFragmentTag = getString(R.string.four_group_6_name);\r\n\t}",
"@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 }",
"private void startAddBookFragment() {\n if (this.menu != null) {\n this.menu.findItem(R.id.menu_search).setVisible(false);\n this.menu.findItem(R.id.add_book).setVisible(false);\n }\n\n // Create new fragment and transaction\n AddBookFragment addBookFragment = new AddBookFragment();\n\n // consider using Java coding conventions (upper first char class names!!!)\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.activityAfterLoginId, addBookFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }",
"public String viewAccount() {\n ConversationContext<Account> ctx = AccountController.newEditContext(getPart().getAccount());\n ctx.setLabelWithKey(\"part_account\");\n getCurrentConversation().setNextContextSubReadOnly(ctx);\n return ctx.view();\n }",
"public void startRegisterFragment() {\n RegisterFragment registerFragment = new RegisterFragment();\n fragmentManager.beginTransaction().replace(R.id.fragment, registerFragment).commit();\n }",
"@Override\n public void setAccount(DataServices.Account account) {\n setTitle(R.string.account);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, AccountFragment.newInstance(account))\n .commit();\n\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t\tthreeDBaseActivityticket.curFragmentTag = getString(R.string.three_direct_sum_name);\r\n\t}",
"private void startValveFragment() {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n Fragment valveFragment = new vavlesFragment(mUser, ProfileActivity.this, dialogCallBack);\n ft.replace(R.id.fragment_container, valveFragment).commit();\n }",
"@Override\r\n\tpublic void onFragmentResume() {\n\t}",
"@Override\n public void onFinishedLoading(boolean success) {\n if (success){\n startMainActivity();\n finish();\n } else {\n loginFragment = CreateAccountFragment.newInstance();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.flLogin, loginFragment);\n transaction.commit();\n }\n }",
"public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n //Pass marker.getTitle();\n// AccountsFragment af = new AccountsFragment();\n// Bundle args = new Bundle();\n// args.putString(\"title\", marker.getTitle());\n// af.setArguments(args);\n// Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n// .show();\n//\n// getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, af).commit();\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n //getChildFragmentManager().beginTransaction().add(R.id.fragment_container, af).commit();\n // getActivity().startActivity(intent);\n // getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n //getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }",
"public WalletFragment(){}",
"@Override\n public void loginClickedSignUp() {\n startSignInFragment();\n }",
"@Override\n public void createNewAccount(String accountType) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.create_container, new CreateAccount().newInstance(accountType)).commit();\n }",
"private String select(int start, int end) {\n this.selection = null;\n\n if (start >= end) {\n //return sb.toString();\n return printList();\n }\n if (start < 0 || start > sb.length()) {\n //return sb.toString();\n return printList();\n }\n this.selection = new Selection(start, Math.min(end, sb.length()));\n\n //return sb.toString();\n return printList();\n }",
"void goToWalletTab(FragmentActivity activity);",
"private void selectItemFromDrawer(int position) {\n Fragment fragment = new RecipesActivity();\n\n if (ApplicationData.getInstance().accountType.equalsIgnoreCase(\"free\")) {\n switch (position) {\n case 0:\n goToHomePage();\n break;\n case 1: //decouvir\n fragment = new DiscoverActivity();\n break;\n case 2: //bilan\n fragment = new BilanMinceurActivity();\n break;\n case 3: //temoignages\n fragment = new TemoignagesActivity();\n break;\n case 4: //recetters\n fragment = new RecipesActivity();\n break;\n case 5: //mon compte\n fragment = new MonCompteActivity();\n break;\n default:\n fragment = new RecipesActivity();\n }\n } else {\n switch (position) {\n case 0:\n goToHomePage();\n break;\n case 1: //coaching\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Coaching;\n if (!ApplicationData.getInstance().fromArchive)\n ApplicationData.getInstance().selectedWeekNumber = AppUtil.getCurrentWeekNumber(Long.parseLong(ApplicationData.getInstance().dietProfilesDataContract.CoachingStartDate), new Date());\n fragment = new CoachingAccountFragment();\n break;\n case 2: //repas\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Repas;\n fragment = new RepasFragment();\n break;\n case 3: //recettes\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Recettes;\n fragment = new RecipesAccountFragment();\n break;\n case 4: //conseils\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Conseil;\n fragment = new WebinarFragment();\n break;\n case 5: //exercices\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Exercices;\n fragment = new ExerciceFragment();\n break;\n case 6: //suivi\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Suivi;\n fragment = new WeightGraphFragment();\n break;\n case 7: //mon compte\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_MonCompte;\n fragment = new MonCompteAccountFragment();\n break;\n case 8: //apropos\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Apropos;\n fragment = new AproposFragment();\n break;\n default:\n fragment = new CoachingAccountFragment();\n }\n }\n\n FragmentManager fragmentManager = getFragmentManager();\n if (getFragmentManager().findFragmentByTag(\"CURRENT_FRAGMENT\") != null) {\n fragmentManager.beginTransaction().remove(getFragmentManager().findFragmentByTag(\"CURRENT_FRAGMENT\")).commit();\n } else {\n }\n\n try {\n\n fragmentManager.beginTransaction().replace(R.id.mainContent, fragment, \"CURRENT_FRAGMENT\").commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n mDrawerList.setItemChecked(position, true);\n setTitle(mNavItems.get(position).mTitle);\n\n // Close the drawer\n mDrawerLayout.closeDrawer(mDrawerPane);\n }",
"public static Fragment Home_Tab_start(String Id, String section) {\n BodyTab_Sub fragment = new BodyTab_Sub();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, Id);\n args.putString(ARG_PARAM2, section);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n public void setRegisterFragment() {\n setTitle(R.string.register_account);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, new RegisterFragment())\n .commit();\n }",
"public void select(int start, int end) {\n\t\tcmd = new SelectCommand(start, end, editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"@Override\n public void onSuccess(Object object) {\n edtDes.setText(\"\");\n edtTitle.setText(\"\");\n MainUserActivity activity = (MainUserActivity) getCurrentActivity();\n activity.backFragment(new AccountFragment());\n }",
"void onFragmentInteraction(int cursorID);",
"@Override\n public void onClick(View view) {\n Fragment fragment = new GroupCustomizationFragment();\n mListener.navigate_to_fragment(fragment);\n }",
"public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n //Pass marker.getTitle();\n// AccountsFragment af = new AccountsFragment();\n// Bundle args = new Bundle();\n// args.putString(\"title\", marker.getTitle());\n// af.setArguments(args);\n// Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n// .show();\n//\n// getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, af).commit();\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }",
"@Override\n public void setUpdateFragment(DataServices.Account account) {\n setTitle(R.string.update_account);\n getSupportFragmentManager().beginTransaction()\n .addToBackStack(null)\n .replace(R.id.containerView, UpdateFragment.newInstance(account))\n .commit();\n }",
"private void addMoreAddress() {\n toolbar.setTitle(R.string.deliver_address);\n DeliveryAddressFragment deliveryAddressFragment = new DeliveryAddressFragment();\n displaySelectedFragment(deliveryAddressFragment);\n }",
"public ProfileFragment(){}",
"@Override\n\tpublic String getCurrentFragmentName() {\n\t\treturn \"IncomeFragment\";\n\t}",
"FragmentTypeSlot createFragmentTypeSlot();",
"@RequiresApi(api = Build.VERSION_CODES.O_MR1)\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=inflater.inflate(R.layout.fragment_accident, container, false);\n\n\n Spinner accident_type = (Spinner) v.findViewById(R.id.accident_type);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity(),\n R.array.accidents_array, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n accident_type.setAdapter(adapter);\n\n EditText autonumber= (EditText) v.findViewById(R.id.AF_autonumber);\n EditText definition = (EditText) v.findViewById(R.id.AF_definition);\n\n autonumber.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if(!hasFocus) {\n if(Pattern.matches(\"^[а-яА-Я]\\\\d{3}[а-яА-Я]{2}$\",autonumber.getText())){\n autonumber.setBackground(ContextCompat.getDrawable(getActivity(),R.drawable.border));\n\n }\n else{\n autonumber.setBackground(ContextCompat.getDrawable(getActivity(),R.drawable.border_red));\n }\n }\n }\n });\n\n\n AF_next = (Button) v.findViewById(R.id.AF_next);\n AF_next.setOnClickListener(v3 ->{\n if(autonumber.getText().equals(\"\")!=true&&Pattern.matches(\"^[а-яА-Я]\\\\d{3}[а-яА-Я]{2}(\\\\d{2}|\\\\d{3})$\",autonumber.getText())==true){\n if(accident_type.getSelectedItem().toString()!=\"Выберите тип\"){\n My f = (My) getActivity();\n f.addValue(MainActivity.definition_of_accident,(String) definition.getText().toString());\n f.addValue(MainActivity.autonumber_of_accident, (String) autonumber.getText().toString());\n\n f.addValue(MainActivity.type_of_accident, accident_type.getSelectedItem().toString() );\n\n Toast.makeText(getActivity(),accident_type.getSelectedItem().toString()+\" hnj\",Toast.LENGTH_LONG).show();\n\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragments_container,new MediaFragment()).addToBackStack(\"MediaFragment\").commit();}\n else{\n accident_type.setBackground(ContextCompat.getDrawable(getActivity(),R.drawable.border_red));\n }\n }\n else{\n if(accident_type.getSelectedItem().toString()==\"Выберите тип\"){\n accident_type.setBackgroundColor(Color.RED);\n }\n autonumber.setBackground(ContextCompat.getDrawable(getActivity(),R.drawable.border_red));\n autonumber.requestFocus();\n }\n\n });\n\n\n\n\n return v;\n\n }",
"@Override\n public void performNextStep(String type) {\n FirebaseUser mUser = FirebaseAuth.getInstance().getCurrentUser();\n\n // validate for null to make sure we are logged in\n if (mUser != null) {\n\n // depending on the type of account that was just created, perform the next step\n switch (type) {\n case \"tenant\":\n // send the new tenant to the verification screen to attach their UserID to their TenantID\n FragmentTransaction tenantVerification = getSupportFragmentManager().beginTransaction();\n tenantVerification.replace(R.id.create_container, new VerifyTenantFragment()).commit();\n break;\n case \"staff\":\n // send the new tenant to the verification screen to attach their UserID to their TenantID\n FragmentTransaction staffVerification = getSupportFragmentManager().beginTransaction();\n staffVerification.replace(R.id.create_container, new VerifyStaffFragment()).commit();\n break;\n case \"manager\":\n // send the new manager to the company creation screen\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.create_container, new NewCompanyCreation()).commit();\n break;\n }\n }\n }",
"public void createFragment() {\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my_account, container, false);\n btn_viewall_address = view.findViewById(R.id.btn_viewall_address_account);\n btn_sign_out = view.findViewById(R.id.btn_signout_account);\n profile_image = view.findViewById(R.id.profile_image_myaccount);\n fulname = view.findViewById(R.id.txt_username_account);\n email = view.findViewById(R.id.txt_email_account);\n layoutContainer = view.findViewById(R.id.layoutContainer);\n curent_order_image = view.findViewById(R.id.imv_status_order_myaccount);\n currentOrderStatus = view.findViewById(R.id.txt_current_order_status_account);\n settingAccount = view.findViewById(R.id.floatint_setting_account);\n\n orderedIndicator = view.findViewById(R.id.imv_ordered_indicator_myaccount);\n packedIndicator = view.findViewById(R.id.imv_packed_indocator_myaccount);\n shippedIndicator = view.findViewById(R.id.imv_shipped_indicator_myaccount);\n deliveriedIndicator = view.findViewById(R.id.imv_dilivered_indicator_myaccount);\n\n orderedProgress = view.findViewById(R.id.progress_ordered_packed_myaccount);\n packedProgress = view.findViewById(R.id.progress_packed_shipped_myaccount);\n shippedProgress = view.findViewById(R.id.progress_shipped_delivered_myaccount);\n\n recent_title = view.findViewById(R.id.txt_title_your_recent_order_account);\n layoutRecent = view.findViewById(R.id.liner_order_recent_account);\n\n fulname= view.findViewById(R.id.txt_full_name_address_account);\n address = view.findViewById(R.id.txt_address_account);\n phonenumber = view.findViewById(R.id.txt_phonenumber_account);\n fullname_address = view.findViewById(R.id.txt_full_name_address_account);\n\n\n\n loadingDialog = new Dialog(getContext());\n loadingDialog.setContentView(R.layout.loading_dialog);\n loadingDialog.setCancelable(false);\n loadingDialog.getWindow().setBackgroundDrawable(getContext().getDrawable(R.drawable.slider_main));\n loadingDialog.getWindow().setLayout(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n //loadingDialog.show();\n\n\n\n layoutContainer.getChildAt(1).setVisibility(View.GONE);\n\n loadingDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n\n for(MyOrderItemModel myOrderItemModel: DbQueries.myOrderItemModelList){\n if(!myOrderItemModel.isCancelationOrderRequest()){\n if(!myOrderItemModel.getOrderStatus().equals(\"Delivered\") && !myOrderItemModel.getOrderStatus().equals(\"Cancelled\")){\n layoutContainer.getChildAt(1).setVisibility(View.VISIBLE);\n Glide.with(getContext()).load(myOrderItemModel.getProductImage()).apply(new RequestOptions().placeholder(R.drawable.image_place)).into(curent_order_image);\n currentOrderStatus.setText(myOrderItemModel.getOrderStatus());\n switch (myOrderItemModel.getOrderStatus()){\n case \"Ordered\":\n orderedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n break;\n case \"Packed\":\n orderedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n packedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n orderedProgress.setProgress(100);\n break;\n case \"Shipped\":\n orderedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n packedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n shippedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n orderedProgress.setProgress(100);\n packedProgress.setProgress(100);\n break;\n case \"Out for delivery\":\n orderedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n packedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n shippedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n deliveriedIndicator.setImageTintList(ColorStateList.valueOf(getResources().getColor(R.color.colorGreenDark)));\n orderedProgress.setProgress(100);\n packedProgress.setProgress(100);\n shippedProgress.setProgress(100);\n break;\n }\n // for MyOrderItemModel\n\n }\n }\n }\n\n int i = 0;\n for(MyOrderItemModel orderItemModel: DbQueries.myOrderItemModelList) {\n if(i < 4) {\n if (orderItemModel.getOrderStatus().equals(\"Delivered\")) {\n Glide.with(getContext()).load(orderItemModel.getProductImage()).apply(new RequestOptions().placeholder(R.drawable.image_place)).into((CircleImageView) layoutRecent.getChildAt(i));\n i++;\n }\n }else {\n break;\n }\n }\n if(i == 0){\n recent_title.setText(\"Không có sản phẩm đặt hàng gần đây\");\n }\n if(i < 3){\n for (int x = i; x < 4; x++){\n layoutRecent.getChildAt(x).setVisibility(View.GONE);\n }\n }\n loadingDialog.show();\n loadingDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n loadingDialog.setOnDismissListener(null);\n if(DbQueries.addressModelList.size() == 0 ){\n address.setText(\"Đại Chỉ: Chưa có\");\n fullname_address.setText(\"Họ & Tên: Chưa có\");\n phonenumber.setText(\"Di Động: Chưa có\");\n }else {\n setAddress();\n }\n }\n });\n DbQueries.loadAddress(getContext(), loadingDialog, false);\n }\n });\n DbQueries.loadOrders(getContext(), null, loadingDialog);\n btn_viewall_address.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intentManage = new Intent(getContext(), MyAddressActivity.class);\n intentManage.putExtra(\"Mode\", MANAGE_ADDRESS);\n startActivity(intentManage);\n }\n });\n btn_sign_out.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n FirebaseAuth.getInstance().signOut();\n DbQueries.clearData();\n Intent intentRegis = new Intent(getContext(), RegisterActivity.class);\n startActivity(intentRegis);\n getActivity().finish();\n }\n });\n //loadingDialog.dismiss();\n settingAccount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent updateUserInfor = new Intent(getContext(), UpdateUserInforActivity.class);\n updateUserInfor.putExtra(\"username\", fullname_address.getText());\n updateUserInfor.putExtra(\"email\", email.getText());\n updateUserInfor.putExtra(\"profile\", DbQueries.profile);\n\n startActivity(updateUserInfor);\n }\n });\n return view;\n }",
"public static QuizStartFragment newInstance() {\n return new QuizStartFragment();\n }",
"public abstract String getFragmentName();",
"private void createAndAddWalletFragment() {\n WalletFragmentStyle walletFragmentStyle = new WalletFragmentStyle()\n .setBuyButtonText(BuyButtonText.BUY_WITH_GOOGLE)\n .setBuyButtonAppearance(BuyButtonAppearance.CLASSIC)\n .setBuyButtonWidth(Dimension.MATCH_PARENT);\n // class that handles WalletFragment configuration\n // on the checkout screen set Mode to BUY_BUTTON\n WalletFragmentOptions walletFragmentOptions = WalletFragmentOptions.newBuilder()\n .setEnvironment(WalletConstants.ENVIRONMENT_SANDBOX) // Environment to use when creating an instance of Wallet.WalletOptions\n .setFragmentStyle(walletFragmentStyle)\n .setTheme(WalletConstants.THEME_LIGHT)\n .setMode(WalletFragmentMode.BUY_BUTTON)\n .build();\n mWalletFragment = SupportWalletFragment.newInstance(walletFragmentOptions);\n\n // create MaskedWalletRequest\n maskedWalletRequest = createStripeMaskedWalletRequest();\n\n\n WalletFragmentInitParams.Builder startParamsBuilder = WalletFragmentInitParams.newBuilder()\n // pass in maskedWalletRequest so WalletFragment can launch Andriod Pay upon user click\n .setMaskedWalletRequest(maskedWalletRequest)\n // MaskedWallet will be passed back to onActivityResult by Android Pay once the user\n // selects their card\n .setMaskedWalletRequestCode(HomeActivity.REQUEST_CODE_MASKED_WALLET);\n mWalletFragment.initialize(startParamsBuilder.build());\n\n // add Wallet fragment to the UI\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.continueWithAndroidPayButton, mWalletFragment)\n .commit();\n }",
"private void checkToMyOrder() {\n toolbar.setTitle(R.string.my_order);\n MyOrderFragment myOrderFragment = new MyOrderFragment();\n displaySelectedFragment(myOrderFragment);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_profile_account, container, false);\n\n TextView statistic_data = (TextView) view.findViewById(R.id.account_link_to_statistic_data);\n statistic_data.setOnClickListener(this);\n\n TextView password_change = (TextView) view.findViewById(R.id.account_link_to_password_change);\n password_change.setOnClickListener(this);\n\n /*TextView notifications_settings = (TextView) view.findViewById(R.id.account_link_to_notifications_settings);\n notifications_settings.setOnClickListener(this);\n\n\n\n TextView help = (TextView) view.findViewById(R.id.account_link_to_help);\n help.setOnClickListener(this);\n\n TextView privacy = (TextView) view.findViewById(R.id.account_link_to_privacy);\n privacy.setOnClickListener(this);\n\n TextView terms_of_service = (TextView) view.findViewById(R.id.account_link_to_terms_of_service_title);\n terms_of_service.setOnClickListener(this);*/\n\n TextView recieved_rates = (TextView)view.findViewById(R.id.account_link_to_recieved_rates);\n recieved_rates.setOnClickListener(this);\n return view;\n }",
"protected void replaceLoginFragment() {\n\n\n }",
"@Override\n\tpublic Fragment createFragment() {\n\t\treturn new SelectDialogFragment();\n\t}",
"FragmentUserObject(StringBuilder name) {\n \t\t\n \t\tfragname = name;\n \t}",
"@Override\n public void onResultViewFinished() {\n MainFragment mainFragment = new MainFragment();\n\n createTransactionAndReplaceFragment(mainFragment, getString(R.string.frg_tag_main));\n }",
"public AddToCardFragment() {\n }",
"public CuartoFragment() {\n }",
"@Override\r\n public View onCreateView(final LayoutInflater inflater, final ViewGroup container,\r\n Bundle savedInstanceState) {\n Bundle bundle = getArguments();\r\n if (bundle != null) {\r\n bank_id = bundle.getInt(\"BANK_ID\");//String bankNam=db.getBankName(bank_id);\r\n Log.e(\"Bank in af\", String.valueOf(bank_id));\r\n }\r\n\r\n\r\n // Inflate the layout for this fragment\r\n View view = inflater.inflate(R.layout.fragment_address, container, false);\r\n\r\n btnBranch = (Button) view.findViewById(R.id.btnBranch);\r\n btnATM = (Button) view.findViewById(R.id.btnATM);\r\n btnExchange = (Button) view.findViewById(R.id.btnExchange);\r\n\r\n\r\n displayView(R.id.btnBranch);\r\n\r\n btnBranch.setSelected(true);\r\n btnBranch.setOnClickListener(this);\r\n btnATM.setOnClickListener(this);\r\n btnExchange.setOnClickListener(this);\r\n // etSearch.setFocusableInTouchMode(true);\r\n //etSearch.requestFocus();\r\n\r\n\r\n return view;\r\n }",
"private void startFragmentLenderBorrower(String oldPeople) {\n FragmentLenderBorrower nextFrag = new FragmentLenderBorrower();\n Bundle bundle = new Bundle();\n bundle.putInt(\"Tab\", mTab);\n bundle.putSerializable(\"Category\", mCategory);\n bundle.putString(\"People\", oldPeople);\n bundle.putSerializable(\"Callback\", this);\n nextFrag.setArguments(bundle);\n mActivity.addFragment(mTab, mContainerViewId, nextFrag, \"FragmentLenderBorrower\", true);\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my_account, container, false);\r\n }",
"public String customFragment() {\n return this.customFragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_product_list, container, false);\n Constants.mMainActivity.setToolBarName(\"Product List\");\n Constants.mMainActivity.setToolBar(VISIBLE,GONE,GONE,GONE);\n Constants.mMainActivity.setNotificationButton(GONE);\n Constants.mMainActivity.OpenProductListSetIcon();\n mSessionManager=new SessionManager(getActivity());\n Constants.mMainActivity.setToolBarPostEnquiryHide();\n\n //Check personal details and business details\n if (mSessionManager.getStringData(Constants.KEY_SELLER_USER_NAME).equals(\"\")||mSessionManager.getStringData(Constants.KEY_SELLER_COUNTRY).equals(\"\")){\n\n // UtilityMethods.showInfoToast(getActivity(),\"Please complete your profile details.\");\n\n\n /*PersonalDetailsFragment personalDetailsFragment=new PersonalDetailsFragment();\n Constants.mMainActivity.ChangeFragments(personalDetailsFragment,\"PersonalDetailsFragment\");*/\n\n Log.e(\"check==========>\",\"PersonalDetailsFragment\");\n\n }else if (mSessionManager.getStringData(Constants.KEY_SELLER_BUSINESS_NAME).equals(\"\")||mSessionManager.getStringData(Constants.KEY_SELLER_BUSINESS_COUNTY).equals(\"\")){\n\n UtilityMethods.showInfoToast(getActivity(),\"Please complete your business details first\");\n\n\n BusinessDetailsFragment businessDetailsFragment=new BusinessDetailsFragment();\n Constants.mMainActivity.ChangeFragments(businessDetailsFragment,\"BusinessDetailsFragment\");\n\n Log.e(\"check==========>\",\"BusinessDetailsFragment\");\n\n }\n\n Bundle bundle = this.getArguments();\n if (bundle != null) {\n\n try {\n Approved = bundle.getString(\"redirect_type\");\n } catch (Exception e) {\n Approved=\"default\";\n e.printStackTrace();\n\n }\n\n try {\n Rejected = bundle.getString(\"redirect_type\");\n } catch (Exception e) {\n Rejected=\"default\";\n e.printStackTrace();\n\n\n }\n\n\n }\n\n ViewPager viewPager = view.findViewById(R.id.viewpager);\n\n FragmentManager fragmentManager = getFragmentManager();\n\n try {\n\n if (Constants.mMainActivity.productListPendingFragment != null) {\n fragmentManager.beginTransaction().remove(Constants.mMainActivity.productListPendingFragment).commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n if (Constants.mMainActivity.productListApprovedFragment != null) {\n fragmentManager.beginTransaction().remove(Constants.mMainActivity.productListApprovedFragment).commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n if (Constants.mMainActivity.productListRejectedFragment != null) {\n fragmentManager.beginTransaction().remove(Constants.mMainActivity.productListRejectedFragment).commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n Log.e(\"BackStackEntryCount()\", \"fragmentManager.getBackStackEntryCount() \" + fragmentManager.getBackStackEntryCount());\n\n try {\n mFragmentList.clear();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n\n if (adapter != null) {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n adapter = new ViewPagerAdapter(getFragmentManager(), mFragmentList, mFragmentTitleList);\n viewPager.setSaveFromParentEnabled(false);\n\n setupViewPager(viewPager);\n\n TabLayout tabLayout = view.findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n\n Log.e(\"check\",\"Fragment\"+Constants.mMainActivity.WhichFragmentIsopen);\n\n if (Approved.equalsIgnoreCase(\"Approved\")){\n\n viewPager.setCurrentItem(1);\n\n\n }else if(Rejected.equalsIgnoreCase(\"Rejected\")){\n\n viewPager.setCurrentItem(2);\n }else if(Constants.mMainActivity.WhichFragmentIsopen.equals(\"Fragment Approved\")){\n\n viewPager.setCurrentItem(1);\n }else if(Constants.mMainActivity.WhichFragmentIsopen.equals(\"Fragment Pending\")){\n\n viewPager.setCurrentItem(0);\n }else if(Constants.mMainActivity.WhichFragmentIsopen.equals(\"Fragment Rejected\")){\n\n viewPager.setCurrentItem(2);\n }else {\n\n viewPager.setCurrentItem(0);\n }\n\n return view;\n }",
"void goToContactsTab(FragmentActivity activity);",
"@Override\n public void setAccountUpdate(DataServices.Account account) {\n setTitle(R.string.account);\n getSupportFragmentManager().popBackStack();\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.containerView, AccountFragment.newInstance(account))\n .commit();\n }",
"@SuppressLint(\"WrongConstant\")\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.fragment_account, container, false);\n // id = getArguments().getInt(\"id\");\n\n sharedpref = getActivity().getSharedPreferences(\"Education\", Context.MODE_PRIVATE);\n edt = sharedpref.edit();\n profile=view.findViewById(R.id.profile);\n logOut=view.findViewById(R.id.logOut);\n logOut.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n edt.putInt(\"id\",0);\n edt.putString(\"name\",\"\");\n edt.putString(\"image\",\"\");\n edt.putString(\"phone\",\"\");\n edt.putString(\"address\",\"\");\n edt.putString(\"password\",\"\");\n edt.putString(\"createdAt\",\"\");\n edt.putString(\"imageProfile\",\"\");\n edt.putInt(\"type\",0);\n edt.putFloat(\"wallet\",0);\n edt.putString(\"token\",\"\");\n edt.putString(\"remember\",\"no\");\n edt.apply();\n startActivity(new Intent(getContext(), Login.class));\n getActivity().finish();\n }\n });\n profile.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n startActivity(new Intent(getActivity(),account.class));\n }\n });\n address=view.findViewById(R.id.address);\n address.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n startActivity(new Intent(getActivity(),addresses.class));\n }\n });\n lang=view.findViewById(R.id.lang);\n lang.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n startActivity(new Intent(getActivity(),ChangeLang.class));\n }\n });\n order=view.findViewById(R.id.order);\n order.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n startActivity(new Intent(getActivity(),Order.class));\n }\n });\n\n return view;\n }",
"public client_settings_Fragment()\n {\n }",
"public void chooseAccount() {\n context.startActivityForResult(\n mCredential.newChooseAccountIntent(), REQUEST_ACCOUNT_PICKER);\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tMyUtilsContest.CUR_RFRAGTAG = MyUtilsContest.BottomTag.Tag_one;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_org_new, container, false);\n final EditText etOrgName = (EditText) view.findViewById(R.id.etOrgName);\n final EditText etOrgDesc = (EditText) view.findViewById(R.id.etOrgDesc);\n final CheckBox cbPublic = (CheckBox) view.findViewById(R.id.cbPublic);\n final CheckBox cbVolunteers = (CheckBox) view.findViewById(R.id.cbVolunteers);\n final CheckBox cbStaff = (CheckBox) view.findViewById(R.id.cbStaff);\n Button bNext = (Button) view.findViewById(R.id.bNext);\n bNext.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (etOrgName.getText().toString().equals(\"\") || etOrgDesc.getText().toString().equals(\"\")) {\n Toast.makeText(getActivity(), \"Please complete all fields\", Toast.LENGTH_SHORT).show();\n } else if (cbVolunteers.isChecked() == false && cbStaff.isChecked() == false) {\n Toast.makeText(getActivity(), \"Check at least one user type\", Toast.LENGTH_SHORT).show();\n } else {\n Organization newOrg = new Organization();\n newOrg.setDateReg(new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date()));\n newOrg.setName(etOrgName.getText().toString());\n newOrg.setDesc(etOrgDesc.getText().toString());\n newOrg.setListed(cbPublic.isChecked());\n newOrg.setOwner(getActivity().getSharedPreferences(\n getString(R.string.preference_file_key), Context.MODE_PRIVATE).getString(getString(R.string.preference_key_current_userID), \"0\"));\n if (mListener != null) {\n mListener.onAddOrganizationRequested(newOrg);\n }\n }\n }\n });\n return view;\n }",
"@Override\n\tpublic void onResume() {\n\t\tif (!isHidden()) {\n\t\t\tchangeviewbylogin();\n\t\t}\n\t\tsuper.onResume();\n\t\tif(ShopApplication.mainflag==3)\n\t\tStatService.onPageStart(getActivity(),\t\"会员卡模块\");\n\t}",
"@Override\n public void run() {\n bottomNavigationView.setSelectedItemId(R.id.home_item);\n\n getContentRefresher().switchFragment(FRAGMENT_LOGIN);\n }",
"@Override\n public void onClick(View v) {\n onResetPasswordFragment = true;\n setFragment(new ResetCodeFrag());\n }",
"@Override\n public void onResume() {\n super.onResume();\n updateUserAcount();\n showMainBottom();\n MobclickAgent.onPageStart(\"MyMainFragment\");\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Fragment fragment = null;\n fragmentManager = getSupportFragmentManager();\n int popBackStackCount = fragmentManager.getBackStackEntryCount();\n fragmentTransaction = fragmentManager.beginTransaction();\n String CurrentFragment = fragmentManager.getBackStackEntryAt(popBackStackCount-1).getName();\n int id = item.getItemId();\n switch (id){\n case (R.id.Profile): {\n if(CurrentFragment != \"Profile\" && CurrentFragment != \"EditProfile\")\n {\n GraphRequest request = GraphRequest.newMeRequest(\n AccessToken.getCurrentAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n try {\n Fragment fragment = new ProfileFragment();\n ProfileContent.InitializeProfile(object);\n fragmentManager.beginTransaction().addToBackStack(\"Profile\")\n .replace(R.id.frame_container, fragment).commit();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,gender,birthday,picture.width(300).height(300)\");\n request.setParameters(parameters);\n request.executeAsync();\n }\n break;\n }\n case (R.id.Search): {\n if(CurrentFragment != \"Search\") {\n fragmentTransaction.addToBackStack(\"Search\");\n fragment = new SearchFragment();\n }\n break;\n }\n case (R.id.Music):\n {\n if(CurrentFragment != \"Music\") {\n fragmentTransaction.addToBackStack(\"Music\");\n fragment = new AudioRecorderFragment();\n }\n break;\n }\n case (R.id.CreateBand):\n {\n if(CurrentFragment != \"CreateBand\") {\n fragmentTransaction.addToBackStack(\"CreateBand\");\n fragment = new CreateBandFragment();\n }\n break;\n }\n default :\n {\n for(BandProfileContent userBand : UserBand)\n {\n if(id == userBand.BandName.hashCode() && CurrentFragment != userBand.BandName)\n {\n fragmentTransaction.addToBackStack(userBand.BandName);\n fragment = new BandProfileFragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"userBand\",userBand);\n fragment.setArguments(bundle);\n break;\n }\n }\n }\n }\n if (fragment != null && id != R.id.Profile) {\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setSelectedAccount(android.accounts.Account param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_account, container, false);\r\n }",
"private void defaultFragment() {\n\n Fragment fragment = new Helpline();\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_account, container, false);\n }",
"public SummaryFragment() {\n }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n public MainPages_MyProfile_Fragment() {\n Log.i(\"Init\", \"Initialize profile fragment...\");\n this.selected = R.id.profile_info_item;\n this.infoFragment = Info_Profile_Fragment.getInstance();\n this.imageFragment = Image_Profile_Fragment.getInstance();\n }",
"void startTA() {\r\n ta_employeeAccount.appendText(\"Are you an employee with the shelter? \\n\" +\r\n \"enter your Last name and First Name \\n\" +\r\n \"Then enter a Password to create an account \\n\\n\" +\r\n \"P.S dont forget the employee code given \\n\" +\r\n \"by the shelter\");\r\n }",
"public MedicineHeadlineFragment() {\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_account_view, container, false);\n\n ArrayList<Fragment> pageList = new ArrayList<>();\n FeedPageFragment feedPageFragment = new FeedPageFragment();\n feedPageFragment.setFilter(PostRecyclerViewAdapter.POST_FILTER_TYPE.Profile);\n feedPageFragment.linkUser(mUser);\n pageList.add(feedPageFragment);\n\n UsersPageFragment followersPage = new UsersPageFragment();\n followersPage.setFilter(UserRecyclerViewAdapter.USER_FILTER_TYPE.Followers);\n followersPage.linkUser(mUser);\n UsersPageFragment followingPage = new UsersPageFragment();\n followingPage.setFilter(UserRecyclerViewAdapter.USER_FILTER_TYPE.Following);\n followingPage.linkUser(mUser);\n\n pageList.add(followersPage);\n pageList.add(followingPage);\n\n mEditProfileButton = (Button)view.findViewById(R.id.edit_profile_button);\n mTabLayout = (TabLayout)view.findViewById(R.id.profile_tabs_layout);\n mViewPager = (ViewPager)view.findViewById(R.id.profile_tabs_pager);\n mViewPagerAdapter = new CustomPagerAdapter(getFragmentManager(),pageList);\n mViewPager.setAdapter(mViewPagerAdapter);\n mTabLayout.setupWithViewPager(mViewPager);\n\n if (mUser.equals(ApplicationState.getInstance().getUser())) {\n mEditProfileButton.setVisibility(View.VISIBLE);\n mEditProfileButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Start profile edit activity\n startActivity(new Intent(getContext(), AccountModifyActivity.class));\n //BAD HACK: Close this activity and recreate it later\n getActivity().finish();\n }\n });\n } else {\n mEditProfileButton.setVisibility(View.GONE);\n mEditProfileButton.setOnClickListener(null);\n }\n\n mAccountViewUsername = (TextView) view.findViewById(R.id.account_view_username);\n mAccountViewFullName = (TextView) view.findViewById(R.id.account_view_full_name);\n mAccountViewLocation = (TextView) view.findViewById(R.id.account_view_location);\n mAccountViewBio = (TextView) view.findViewById(R.id.account_view_bio);\n mAccountViewImage = (ImageView) view.findViewById(R.id.account_view_image);\n\n return view;\n }",
"private void startCloudFragment(Bundle savedInstanceState, String query, boolean disableQueryEdit, String\n keyserver) {\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (mTopFragment != null) {\n return;\n }\n\n // Create an instance of the fragment\n mTopFragment = ImportKeysCloudFragment.newInstance(query, disableQueryEdit, keyserver);\n\n // Add the fragment to the 'fragment_container' FrameLayout\n // NOTE: We use commitAllowingStateLoss() to prevent weird crashes!\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.import_keys_top_container, mTopFragment)\n .commitAllowingStateLoss();\n // do it immediately!\n getSupportFragmentManager().executePendingTransactions();\n }",
"private void changeFragment() {\n TeacherAddNotificationFragment fragment = new TeacherAddNotificationFragment();\n // Put classIds to bundle and set bundle to fragment\n Bundle bundle = new Bundle();\n bundle.putString(\"ListIDs\", classesIds);\n fragment.setArguments(bundle);\n\n // Replace fragment\n getFragmentManager().beginTransaction().replace(R.id.main, fragment)\n .addToBackStack(null)\n .commit();\n }",
"private void readToStartFragment() throws XMLStreamException {\r\n\t\twhile (true) {\r\n\t\t\tXMLEvent nextEvent = eventReader.nextEvent();\r\n\t\t\tif (nextEvent.isStartElement()\r\n\t\t\t\t\t&& ((StartElement) nextEvent).getName().getLocalPart().equals(fragmentRootElementName)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void onFragmentStop() {\n\t}",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n Fragment fragment3 = null;\n Fragment fragment1 = null;\n Fragment fragment2 = null;\n switch (tab.getPosition()) {\n case 0:\n // The first is Selected\n if(fragment1 == null) {\n fragment1 = new SelectedFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment1).commit();\n break;\n case 1:\n // The second is Search\n if(fragment2 == null){\n fragment2 = new AllFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment2).commit();\n break;\n case 2:\n // The third is My City\n if(fragment3 == null){\n fragment3 = new NearbyFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment3).commit();\n break;\n default:\n break;\n }\n }",
"public ProfileFragment() {\n\n }",
"@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\r\n private void chooseAccount() {\r\n if (EasyPermissions.hasPermissions(\r\n getActivity(), Manifest.permission.GET_ACCOUNTS)) {\r\n String accountName = getActivity().getPreferences(Context.MODE_PRIVATE)\r\n .getString(PREF_ACCOUNT_NAME, null);\r\n\r\n if (accountName != null) {\r\n mCredential.setSelectedAccountName(accountName);\r\n Log.i(accountName,\"accountName:\");\r\n getResultsFromApi();\r\n } else {\r\n // Start a dialog from which the user can choose an account\r\n startActivityForResult(\r\n mCredential.newChooseAccountIntent(),\r\n REQUEST_ACCOUNT_PICKER);\r\n }\r\n } else {\r\n // Request the GET_ACCOUNTS permission via a user dialog\r\n EasyPermissions.requestPermissions(\r\n this,\r\n \"This app needs to access your Google account (via Contacts).\",\r\n REQUEST_PERMISSION_GET_ACCOUNTS,\r\n Manifest.permission.GET_ACCOUNTS);\r\n }\r\n }",
"public void createFirebaseAccountsUI() {\n mAccountsFragment.startActivityForResult(\n AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(providers)\n .build(),\n mAccountsFragment.RC_SIGN_IN);\n }",
"void onFragmentAddNewUser();",
"public void onEmployeeSelected(p035ru.unicorn.ujin.view.activity.navigation.p058ui.profile_my.kotlin.UserProfile r3) {\n /*\n r2 = this;\n if (r3 == 0) goto L_0x000d\n ru.unicorn.ujin.view.activity.navigation.ui.profile_my.kotlin.UserData r3 = r3.getUserdata()\n if (r3 == 0) goto L_0x000d\n java.lang.Integer r3 = r3.getId()\n goto L_0x000e\n L_0x000d:\n r3 = 0\n L_0x000e:\n ru.unicorn.ujin.view.fragments.employee.EmployeeListFragment r0 = r2.this$0\n ru.unicorn.ujin.view.activity.navigation.ui.mycompany.MyTeamPersonDetailFragment r3 = p035ru.unicorn.ujin.view.activity.navigation.p058ui.mycompany.MyTeamPersonDetailFragment.start(r3)\n androidx.fragment.app.Fragment r3 = (androidx.fragment.app.Fragment) r3\n r1 = 0\n r0.nextFragment(r3, r1)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p035ru.unicorn.ujin.view.fragments.employee.EmployeeListFragment$showUsers$1.onEmployeeSelected(ru.unicorn.ujin.view.activity.navigation.ui.profile_my.kotlin.UserProfile):void\");\n }",
"public RegisterFragment() {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n //getChildFragmentManager().beginTransaction().add(R.id.fragment_container, af).commit();\n // getActivity().startActivity(intent);\n // getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n //getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n }",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\n\t\tloginButton = fragmentContainer.findViewById(R.id.loginButton);\n\t\tloginButton.setOnClickListener(view1 -> loginAccount());\n\n\t\tetEmail = fragmentContainer.findViewById(R.id.loginEmailInput);\n\t\tetPassword = fragmentContainer.findViewById(R.id.loginPasswordInput);\n\n\t\ttvEmail = fragmentContainer.findViewById(R.id.loginEmailPrompt);\n\t\ttvPassword = fragmentContainer.findViewById(R.id.loginPasswordPrompt);\n\t\ttvError = fragmentContainer.findViewById(R.id.loginError);\n\t}",
"public Fragmentovistadeusuario() {\n // Required empty public constructor\n }",
"protected void appendSelectRange(SQLBuffer buf, long start, long end) {\n buf.append(\" FETCH FIRST \").append(Long.toString(end)).\r\n append(\" ROWS ONLY\");\r\n }",
"private void showSection(int position) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n\n\n }",
"@Override\n public void onSelection(MaterialDialog dialog, View view, int which, String text) {\n selectedFragmentFromFAB.passSelectedFragmentFromFAB(which);\n }",
"@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 }",
"private void challengeStartNew() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentNewChallenge newChallenge = FragmentNewChallenge.newInstance(\"Titel\");\n newChallenge.show(fm, \"fragment_start_new_challenge\");\n }",
"private void setFragment(Fragment fragment) {\n Log.d(\"setFragments\", \"setFragments: start\");\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"setFragments\", \"setFragments: begin\");\n Fragment hideFragment = getLast();\n fragmentTransaction.hide(hideFragment);\n fragmentTransaction.show(fragment);\n if (userHomeFragment.equals(fragment)) {\n lastFragment = \"userHomeFragment\";\n } else if (scheduleFragment.equals(fragment)) {\n lastFragment = \"scheduleFragment\";\n } else if (medicineFragment.equals(fragment)) {\n lastFragment = \"medicineFragment\";\n } else {\n lastFragment = \"calendarFragment\";\n }\n fragmentTransaction.commit();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.fragment_profile_setup);\n\n findUIElements();\n }"
] | [
"0.6339763",
"0.59475344",
"0.5612987",
"0.5456878",
"0.5416636",
"0.539097",
"0.5328321",
"0.53159547",
"0.53049684",
"0.52456856",
"0.52388847",
"0.5232712",
"0.51988155",
"0.51854974",
"0.5182891",
"0.5165407",
"0.5151538",
"0.512897",
"0.5123552",
"0.50919765",
"0.5091005",
"0.50834626",
"0.504452",
"0.50307703",
"0.5029091",
"0.5021393",
"0.5020209",
"0.5010238",
"0.500894",
"0.5001027",
"0.49967468",
"0.49832746",
"0.4980714",
"0.4972119",
"0.49663472",
"0.49582803",
"0.49577138",
"0.49468377",
"0.49432096",
"0.49006692",
"0.48904368",
"0.4887017",
"0.4863819",
"0.48620495",
"0.48519012",
"0.4844548",
"0.4834277",
"0.4831594",
"0.48267683",
"0.4821705",
"0.48190218",
"0.48055556",
"0.47954723",
"0.4783633",
"0.47697207",
"0.47682267",
"0.4762634",
"0.47535026",
"0.47475323",
"0.47432488",
"0.4741577",
"0.4732843",
"0.47312662",
"0.47312197",
"0.47278193",
"0.47259456",
"0.4723713",
"0.47209257",
"0.47202915",
"0.4715594",
"0.47154504",
"0.47114146",
"0.47053847",
"0.47042325",
"0.4704142",
"0.4703649",
"0.47011542",
"0.46995416",
"0.46973202",
"0.46957067",
"0.46921584",
"0.46899462",
"0.4685919",
"0.46859017",
"0.4682468",
"0.4679403",
"0.4669817",
"0.4666816",
"0.46611485",
"0.46594867",
"0.46577892",
"0.46566373",
"0.46528202",
"0.46467143",
"0.4644899",
"0.46422082",
"0.46402597",
"0.46383187",
"0.46377823",
"0.46370435"
] | 0.683285 | 0 |
End startFragmentSelectAccount Start fragment Event | private void startFragmentEvent(String oldEvent) {
FragmentEvent nextFrag = new FragmentEvent();
Bundle bundle = new Bundle();
bundle.putInt("Tab", mTab);
bundle.putString("Event", oldEvent);
bundle.putSerializable("Callback", this);
nextFrag.setArguments(bundle);
mActivity.addFragment(mTab, mContainerViewId, nextFrag, "FragmentEvent", true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void startFragmentSelectAccount(TransactionEnum transactionType, int oldAccountId) {\n LogUtils.logEnterFunction(Tag, \"TransactionType = \" + transactionType.name() + \", oldAccountId = \" + oldAccountId);\n FragmentAccountsSelect nextFrag = new FragmentAccountsSelect();\n Bundle bundle = new Bundle();\n bundle.putInt(\"Tab\", mTab);\n bundle.putInt(\"AccountID\", oldAccountId);\n bundle.putSerializable(\"TransactionType\", transactionType);\n bundle.putSerializable(\"Callback\", this);\n nextFrag.setArguments(bundle);\n mActivity.addFragment(mTab, mContainerViewId, nextFrag, FragmentAccountsSelect.Tag, true);\n\n LogUtils.logLeaveFunction(Tag);\n }",
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"@Override\r\n\tpublic void onFragmentStop() {\n\t}",
"@Override\r\n\tpublic void onFragmentResume() {\n\t}",
"@Override\n public void getStartedClicked() {\n startSignUpFragment();\n\n }",
"void onMainFragmentSelectListner(View view);",
"@Override\r\n\tpublic void onFragmentPaused() {\n\t}",
"Long onFragmentInteraction();",
"void onFragmentInteraction(int cursorID);",
"@Override\n public void onFinishedLoading(boolean success) {\n if (success){\n startMainActivity();\n finish();\n } else {\n loginFragment = CreateAccountFragment.newInstance();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.flLogin, loginFragment);\n transaction.commit();\n }\n }",
"@Override\n public void onStart() {\n super.onStart();\n\n if (mAuth.getCurrentUser() != null) {\n //finish();\n\n // Changed accountFragment to ProfileFragment, should rename account fragment to setup\n //SetupFragment accountFragment = new SetupSetupFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container,\n new SettingsFragment()).commit();\n }\n }",
"@Override\n public void onStop() {\n super.onStop();\n Log.i(sFragmentName, \"onStop()\");\n }",
"@Override\n\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\n\t\t}",
"@Override\n public void onPageSelected(int position) {\n if (position == 4) {\n // autenticacao.signOut();\n abrirTelaPrincipal();\n } else {\n //Remove a autenticação caso saia do slid\n // autenticacao.removeAuthStateListener(mAuthStateListener);\n }\n }",
"@Override\r\n\t\tpublic void onTabReselected(Tab tab, android.app.FragmentTransaction ft) {\n\t\t}",
"@Override\n public void onStop() {\n super.onStop();\n //this unregister this fragment to stop any EventBus messages\n EventBus.getDefault().unregister(this);\n }",
"public void onTabReselected(Tab tab, android.app.FragmentTransaction ft) {\n }",
"@Override\n protected void onResumeFragments() {\n\n Logger.INSTANCE.LogV(\"LifeCycle\", \"Main.onResumeFragments\");\n\n super.onResumeFragments();\n mOnResumeFragmentsCalled = true;\n\n if (mHandleOpenDocError) {\n handleOpenDocError();\n mHandleOpenDocError = false;\n } else if (mHandleLastTabClosed) {\n handleLastTabClosed();\n mHandleLastTabClosed = false;\n } else if (mTabbedHostBundle != null) {\n startTabHostFragment(mTabbedHostBundle);\n mTabbedHostBundle = null;\n } else if (mNavigationDrawerView != null && mNavigationDrawerView.getMenu() != null) {\n MenuItem menuItem = null;\n if (isFirstTimeRun()) {\n mIsFirstTimeRunConsumed = false; // consumed\n menuItem = mNavigationDrawerView.getMenu().findItem(R.id.item_file_list);\n } else if (mProcessedFragmentViewId != MENU_ITEM_NONE) {\n menuItem = mNavigationDrawerView.getMenu().findItem(mProcessedFragmentViewId);\n }\n if (menuItem != null) {\n selectNavigationItem(menuItem);\n }\n }\n\n if (mReturnFromSettings) {\n mReturnFromSettings = false;\n if (mProcessedFragmentViewId == R.id.item_viewer) {\n if (PdfViewCtrlTabsManager.getInstance().getLatestViewedTabTag(this) != null) {\n startTabHostFragment(null);\n }\n }\n }\n }",
"@Override\n public void loginClickedSignUp() {\n startSignInFragment();\n }",
"@Override\r\n\t\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\r\n\t\t\t}",
"@Override\n\tpublic void onTabReselected(Tab arg0, FragmentTransaction arg1) {\n\n\t}",
"@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\r\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}",
"public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n }",
"@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\r\n\t}",
"public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }",
"@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {\n }",
"@Override\r\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\r\n\t}",
"private void onClick_recargar(){\n this.onDestroy();\n ((principal)getActivity()).loadLastFragment();\n }",
"@Override\r\n\tpublic void onPageSelected(int newPosition) {\n\t\tLog.e(TAG, \"onpageselected=\" + newPosition);\r\n\t\tFragmentLifeCycle fragmentToShow = (FragmentLifeCycle) mAdapter\r\n\t\t\t\t.getItem(newPosition);\r\n\t\tfragmentToShow.onResumeFragment();\r\n\r\n\t\tFragmentLifeCycle fragmentToHide = (FragmentLifeCycle) mAdapter\r\n\t\t\t\t.getItem(currentPosition);\r\n\t\tfragmentToHide.onPauseFragment();\r\n\r\n\t\tcurrentPosition = newPosition;\r\n\t}",
"@Override\r\n\tpublic void onTabReselected(Tab arg0,\r\n\t\t\tandroid.support.v4.app.FragmentTransaction arg1) {\n\r\n\t}",
"@Override\r\n\t\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\t}",
"@Override\n\t\tpublic void onTabUnselected(Tab arg0, FragmentTransaction arg1) {\n\t\t\t\n\t\t}",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"@Override\n\tpublic void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t\treturn;\n\t}",
"@Override\n public void onDestroy() {\n super.onDestroy();\n Log.i(sFragmentName, \"onDestroy()\");\n }",
"@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tft.replace(R.id.fragment_container, fragment);\n\n\t}",
"@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n Fragment fragment3 = null;\n Fragment fragment1 = null;\n Fragment fragment2 = null;\n switch (tab.getPosition()) {\n case 0:\n // The first is Selected\n if(fragment1 == null) {\n fragment1 = new SelectedFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment1).commit();\n break;\n case 1:\n // The second is Search\n if(fragment2 == null){\n fragment2 = new AllFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment2).commit();\n break;\n case 2:\n // The third is My City\n if(fragment3 == null){\n fragment3 = new NearbyFragment();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, fragment3).commit();\n break;\n default:\n break;\n }\n }",
"public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {\n }",
"@Override\r\n\t\tpublic void onTabUnselected(Tab tab, android.app.FragmentTransaction ft) {\n\t\t}",
"@Override\n\tpublic void onTabReselected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\n\t}",
"@Override\n public void onPause() {\n super.onPause();\n Log.i(sFragmentName, \"onPause()\");\n }",
"@Override\r\n\tpublic void onTabUnselected(Tab arg0,\r\n\t\t\tandroid.support.v4.app.FragmentTransaction arg1) {\n\r\n\t}",
"public void onTabReselected(Tab tab, FragmentTransaction ft) {\n\t }",
"@Override\n\tpublic void onTabUnselected(Tab arg0, FragmentTransaction arg1) {\n\n\t}",
"@Override\n\tpublic void onTabUnselected(Tab arg0, FragmentTransaction arg1) {\n\n\t}",
"public void onUserLeaveHint() {\n\t\tsuper.onUserLeaveHint();\n\t\tfinish();\n\t}",
"@Override\n\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\n\t\t}",
"void onFragmentInteraction(int position);",
"public AccountOptionalFragment()\n {\n super();\n }",
"@Override\n public void onClick(View view) {\n Fragment fragment = new GroupCustomizationFragment();\n mListener.navigate_to_fragment(fragment);\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n Log.i(sFragmentName, \"onDetach()\");\n }",
"@Override\n public void onResultViewFinished() {\n MainFragment mainFragment = new MainFragment();\n\n createTransactionAndReplaceFragment(mainFragment, getString(R.string.frg_tag_main));\n }",
"public final void finishFragment() {\n android.support.v4.app.FragmentActivity activity = getActivity();\n\n if (activity == null) {\n throw new IllegalStateException(\"Fragment \" + this\n + \" not attached to Activity\");\n }\n\n activity.onBackPressed();\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t\tBaseActivityticket.curFragmentTag = getString(R.string.four_group_6_name);\r\n\t}",
"public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n }",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t\tadapter.stopAudio();\r\n\t\tMobclickAgent.onPageEnd(\"MyInvitationFragment\");\r\n\t}",
"@Override\r\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\r\n\t}",
"@Override\r\n\t\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\r\n\t\t\t}",
"private void startValveFragment() {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n Fragment valveFragment = new vavlesFragment(mUser, ProfileActivity.this, dialogCallBack);\n ft.replace(R.id.fragment_container, valveFragment).commit();\n }",
"@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}",
"@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\r\n\t}",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n // Handle navigation view item clicks here.\n int id = item.getItemId();\n FragmentManager fragmentManager= getFragmentManager();\n FragmentTransaction fragmentTransaction= fragmentManager.beginTransaction();\n Fragment_My_Travels fragment_my_travels;\n\n FragmentSpinnerMyTravels fragmentSpinnerMyTravels;\n\n FragmentAvailable fragment_aviliable;\n if (id == R.id.nav_Travels) // selected my travels\n {\n fragmentTransaction.replace(R.id.container2,fragment_default2 );\n fragment_my_travels=new Fragment_My_Travels();\n\n fragmentSpinnerMyTravels=new FragmentSpinnerMyTravels();\n fragmentSpinnerMyTravels.setIdOfDriver(idOfDriver);\n\n fragmentTransaction.replace(R.id.fragment_Spinner,fragmentSpinnerMyTravels);\n\n fragment_my_travels.setId(idOfDriver);\n fragment_my_travels.setTravels(BackendFactory.getInstance(this).getAllMyTravels(idOfDriver));\n fragmentTransaction.replace(R.id.fragment_Main,fragment_my_travels );\n\n fragmentTransaction.commit();\n\n\n }\n else if (id == R.id.nav_Travel_available) // selected travel available\n {\n FragmentSpinner fragmentSpinner=new FragmentSpinner();\n fragmentManager= getFragmentManager();\n fragmentTransaction= fragmentManager.beginTransaction();\n fragmentSpinner.setIdOfDriver(idOfDriver);\n fragmentTransaction.replace(R.id.fragment_Spinner,fragmentSpinner);\n\n fragmentTransaction.replace(R.id.container2,fragment_default2 );\n fragment_aviliable=new FragmentAvailable();\n fragment_aviliable.setId(idOfDriver);\n fragmentTransaction.replace(R.id.fragment_Main,fragment_aviliable );\n fragmentTransaction.commit();\n }\n else if (id == R.id.nav_Exit) // selected exit\n {\n moveTaskToBack(true);\n android.os.Process.killProcess(android.os.Process.myPid());\n System.exit(1);\n }\n else if (id == R.id.nav_all_Dirver) //select show all drivers\n {\n try {\n\n FragmentDrivers2 fragmentDrivers = new FragmentDrivers2();\n fragmentManager = getFragmentManager();\n fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.fragment_Main, fragmentDrivers);\n fragmentTransaction.replace(R.id.container2, fragment_default2);\n\n fragmentTransaction.commit();\n } catch (Exception ex) {\n\n }\n }\n else if (id == R.id.nav_Website)//select go to web\n {\n Intent intent= new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://gett.com/il/about/\"));\n startActivity(intent);\n }\n\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\r\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\r\n\t}",
"@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 }",
"@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}",
"private void setFragment(Fragment fragment) {\n Log.d(\"setFragments\", \"setFragments: start\");\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"setFragments\", \"setFragments: begin\");\n Fragment hideFragment = getLast();\n fragmentTransaction.hide(hideFragment);\n fragmentTransaction.show(fragment);\n if (userHomeFragment.equals(fragment)) {\n lastFragment = \"userHomeFragment\";\n } else if (scheduleFragment.equals(fragment)) {\n lastFragment = \"scheduleFragment\";\n } else if (medicineFragment.equals(fragment)) {\n lastFragment = \"medicineFragment\";\n } else {\n lastFragment = \"calendarFragment\";\n }\n fragmentTransaction.commit();\n }",
"public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) {\n }",
"public interface OnHomeFragmentListener {\n void OnEditAccountViewClick();\n }",
"@Override\n public boolean onNavigationItemSelected( @NonNull MenuItem item) {\n selectFragment(item);\n return false;\n }",
"@Override\n public void onItemSelectedListner(int position, int code) {\n /*Toast.makeText(this, \"Called By Fragment A: position - \"+ position, Toast.LENGTH_SHORT).show();*/\n Bundle args = new Bundle();\n args.putInt(\"position\", position);\n args.putInt(\"code\", code);\n ButtonsFragment buttonsFragment = new ButtonsFragment();\n buttonsFragment.setArguments(args);\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, buttonsFragment);\n fragmentTransaction.commit();\n }",
"@Override\n \t\t\tpublic void onTabUnselected(\n \t\t\t\t\tcom.actionbarsherlock.app.ActionBar.Tab tab,\n \t\t\t\t\tandroid.support.v4.app.FragmentTransaction ft) {\n \t\t\t}",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n DefaultLoginFragment fragment = (DefaultLoginFragment) getSupportFragmentManager()\n .findFragmentById(R.id.LoginActivity_fragment_container);\n fragment.onActivityResult(requestCode, resultCode, data);\n }",
"private void selectItemFromDrawer(int position) {\n Fragment fragment = new RecipesActivity();\n\n if (ApplicationData.getInstance().accountType.equalsIgnoreCase(\"free\")) {\n switch (position) {\n case 0:\n goToHomePage();\n break;\n case 1: //decouvir\n fragment = new DiscoverActivity();\n break;\n case 2: //bilan\n fragment = new BilanMinceurActivity();\n break;\n case 3: //temoignages\n fragment = new TemoignagesActivity();\n break;\n case 4: //recetters\n fragment = new RecipesActivity();\n break;\n case 5: //mon compte\n fragment = new MonCompteActivity();\n break;\n default:\n fragment = new RecipesActivity();\n }\n } else {\n switch (position) {\n case 0:\n goToHomePage();\n break;\n case 1: //coaching\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Coaching;\n if (!ApplicationData.getInstance().fromArchive)\n ApplicationData.getInstance().selectedWeekNumber = AppUtil.getCurrentWeekNumber(Long.parseLong(ApplicationData.getInstance().dietProfilesDataContract.CoachingStartDate), new Date());\n fragment = new CoachingAccountFragment();\n break;\n case 2: //repas\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Repas;\n fragment = new RepasFragment();\n break;\n case 3: //recettes\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Recettes;\n fragment = new RecipesAccountFragment();\n break;\n case 4: //conseils\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Conseil;\n fragment = new WebinarFragment();\n break;\n case 5: //exercices\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Exercices;\n fragment = new ExerciceFragment();\n break;\n case 6: //suivi\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Suivi;\n fragment = new WeightGraphFragment();\n break;\n case 7: //mon compte\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_MonCompte;\n fragment = new MonCompteAccountFragment();\n break;\n case 8: //apropos\n ApplicationData.getInstance().selectedFragment = ApplicationData.SelectedFragment.Account_Apropos;\n fragment = new AproposFragment();\n break;\n default:\n fragment = new CoachingAccountFragment();\n }\n }\n\n FragmentManager fragmentManager = getFragmentManager();\n if (getFragmentManager().findFragmentByTag(\"CURRENT_FRAGMENT\") != null) {\n fragmentManager.beginTransaction().remove(getFragmentManager().findFragmentByTag(\"CURRENT_FRAGMENT\")).commit();\n } else {\n }\n\n try {\n\n fragmentManager.beginTransaction().replace(R.id.mainContent, fragment, \"CURRENT_FRAGMENT\").commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n mDrawerList.setItemChecked(position, true);\n setTitle(mNavItems.get(position).mTitle);\n\n // Close the drawer\n mDrawerLayout.closeDrawer(mDrawerPane);\n }",
"@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t if (mFragment == null) {\r\n\t\t // If not, instantiate and add it to the activity\r\n\t\t mFragment = Fragment.instantiate(mActivity, mClass.getName());\r\n\t\t ft.add(android.R.id.content, mFragment, mTag);\r\n\t\t } else {\r\n\t\t // If it exists, simply attach it in order to show it\r\n\t\t ft.show(mFragment);//选择的时候,让之前隐藏的显示出来\r\n\t\t }\r\n\r\n\t}",
"protected void onEnd() {}",
"@Override\n protected void onViewCreatedFinish(Bundle saveInstanceState) {\n\n addFragments();\n addListener();\n mVpContent.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) {\n @Override\n public Fragment getItem(int position) {\n return mFragments.get(position);\n }\n\n @Override\n public int getCount() {\n return mFragments.size();\n }\n });\n mVpContent.setOffscreenPageLimit(4);\n mTbIndexTab.setTabItemSelected(R.id.ti_index_store);\n mVpContent.setCurrentItem(0);\n refreshMeDot(0);\n\n ActivityManager.getInstance().popOtherActivity(MainActivity.class);\n\n createFile();\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t\tthreeDBaseActivityticket.curFragmentTag = getString(R.string.three_direct_sum_name);\r\n\t}",
"@Override\n public void onFragmentDestroyed(@NonNull FragmentManager fm, @NonNull Fragment f) {\n }",
"@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager mFragmentManager = getSupportFragmentManager();\n\n\n\n switch (position) {\n case 0:\n\n\n if(fromClass){\n// isFromDrawer\n// mFragment = ClassesDetailFragment.newInstance();\n\n finish();\n// ClassFragment.relative_header.setVisibility(View.GONE);\n }else {\n NavigationDrawerStudent.imageView.setVisibility(View.GONE);\n mFragment = StudentLessonFragment.newInstance();\n\n }\n /* if(lessonselected==true){\n Log.e(\"lessonselected\",\"lessonselected\"+lessonselected);\n NavigationDrawerStudent.imageView.setVisibility(View.VISIBLE);\n mFragment = StudentLessonFragment.newInstance();\n }*/\n\n\n\n break;\n case 1:\n NavigationDrawerStudent.imageView.setVisibility(View.VISIBLE);\n mFragment = StudentLessonFragment.newInstance();\n\n\n break;\n\n case 2:\n NavigationDrawerStudent.imageView.setVisibility(View.GONE);\n mFragment = StudentResourceFragment.newInstance();\n\n\n break;\n\n case 3:\n NavigationDrawerStudent.imageView.setVisibility(View.GONE);\n mFragment = StudentQuizFragment.newInstance();\n\n\n break;\n\n case 4:\n NavigationDrawerStudent.imageView.setVisibility(View.GONE);\n mFragment = StudentEnroll.newInstance();\n\n\n break;\n\n case 5:\n\n new Student_Logout().execute(Sch_Mem_id,curdate);\n\n break;\n\n }\n\n\n if (mFragment != null) {\n mFragmentManager.beginTransaction().replace(R.id.container, mFragment).commit();\n }\n\n\n\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n Log.i(sFragmentName, \"onDestroyView()\");\n }",
"public void startRegisterFragment() {\n RegisterFragment registerFragment = new RegisterFragment();\n fragmentManager.beginTransaction().replace(R.id.fragment, registerFragment).commit();\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n Fragment fragment = null;\n Class fragmentClass = null;\n\n if (id == R.id.nav_consult) {\n\n fragmentClass = ConsultFragment.class;\n //Toast.makeText(getApplicationContext(),\"connssss\",Toast.LENGTH_LONG).show();\n\n\n } else if (id == R.id.nav_hist) {\n fragmentClass = HistoryFragment.class;\n\n } else if (id == R.id.nav_creer) {\n fragmentClass = CreateFragment.class;\n\n } else if (id == R.id.nav_valider) {\n fragmentClass = VerifFragment.class;\n\n\n } else if (id == R.id.nav_config) {\n\n fragmentClass = ConfigFragment.class;\n\n } else if (id == R.id.nav_disconnect) {\n\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putBoolean(\"connected\", false);\n editor.putString(\"Nom\", null);\n editor.putString(\"Prenom\", null);\n editor.putString(\"Password\", null);\n editor.putString(\"idUser\", null);\n editor.apply();\n Intent intent = new Intent(MainActivity.this,LoginActivity.class);\n startActivity(intent);\n finish();\n }\n\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_main, fragment).commit();\n\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tft.replace(R.id.stationsFragmentContainer, this.fragment);\n\t\treturn;\n\t}",
"@Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n FragmentManager FragmentManager = getSupportFragmentManager();\n\n\n if (id == R.id.inicio) {\n FragmentManager.beginTransaction().replace(R.id.contenedor, new InicioFragment()).commit();\n\n } else if (id == R.id.carnevip) {\n FragmentManager.beginTransaction().replace(R.id.contenedor, new CarnevipFragment()).commit();\n\n } else if (id == R.id.calendario) {\n FragmentManager.beginTransaction().replace(R.id.contenedor, new CalendarFragment()).commit();\n\n } else if (id == R.id.testcompatibilidad) {\n FragmentManager.beginTransaction().replace(R.id.contenedor, new TestFragment()).commit();\n\n } else if (id == R.id.contacto) {\n FragmentManager.beginTransaction().replace(R.id.contenedor, new ContactoFragment()).commit();\n\n } else if (id == R.id.ayuda) {\n FragmentManager.beginTransaction().replace(R.id.contenedor, new AyudaFragment()).commit();\n\n } else if (id == R.id.sign_out) {\n\n AuthUI.getInstance()\n .signOut(MenuActivity.this)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n public void onComplete(@NonNull Task<Void> task) {\n startActivity(new Intent(MenuActivity.this, LoginActivity.class));\n finish();\n }\n });\n }\n\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onPause() {\n super.onPause();\n MobclickAgent.onPause(mContext);\n MobclickAgent.onPageEnd(\"MallFragment\");\n }"
] | [
"0.67286634",
"0.65147597",
"0.6446075",
"0.6103904",
"0.6088824",
"0.5909538",
"0.587944",
"0.5875141",
"0.5836394",
"0.57774377",
"0.57628256",
"0.5685085",
"0.5673984",
"0.5673936",
"0.5653762",
"0.5642317",
"0.5614728",
"0.5610633",
"0.56086016",
"0.5585552",
"0.5584059",
"0.55802405",
"0.55802405",
"0.55767643",
"0.55767643",
"0.55767643",
"0.55701935",
"0.5563527",
"0.5560504",
"0.5548663",
"0.5548302",
"0.5548302",
"0.5548302",
"0.5548302",
"0.5548302",
"0.55461174",
"0.5544631",
"0.5541805",
"0.5540758",
"0.55274767",
"0.5502054",
"0.54990536",
"0.5483013",
"0.5483013",
"0.5483013",
"0.5472123",
"0.5469813",
"0.5463251",
"0.54544306",
"0.5453697",
"0.54496545",
"0.54330057",
"0.54263055",
"0.5424348",
"0.54176337",
"0.541564",
"0.541564",
"0.5407189",
"0.54035413",
"0.54010046",
"0.53946465",
"0.53945524",
"0.53921854",
"0.5390844",
"0.53871924",
"0.53854007",
"0.53839946",
"0.53740466",
"0.5367783",
"0.53537375",
"0.535126",
"0.53382254",
"0.53382254",
"0.5336596",
"0.5335124",
"0.53327686",
"0.5330682",
"0.532971",
"0.532971",
"0.532971",
"0.532971",
"0.53258467",
"0.5317688",
"0.52930486",
"0.52913046",
"0.5287828",
"0.5282472",
"0.52721417",
"0.52684635",
"0.5268462",
"0.52606493",
"0.5257069",
"0.5254775",
"0.52500933",
"0.5248721",
"0.5248171",
"0.52479523",
"0.5245893",
"0.5241323",
"0.52382386",
"0.52248484"
] | 0.0 | -1 |
End startFragmentEvent Get Date's String | private String getDateString(Calendar cal) {
Calendar current = Calendar.getInstance();
String date = "";
if (cal.get(Calendar.DAY_OF_YEAR) == current.get(Calendar.DAY_OF_YEAR)) {
date = getResources().getString(R.string.content_today) + String.format(" %02d:%02d", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));
} else if ((cal.get(Calendar.DAY_OF_YEAR) - 1) == current.get(Calendar.DAY_OF_YEAR)) {
date = getResources().getString(R.string.content_yesterday) + String.format(" %02d:%02d", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));
} else if ((cal.get(Calendar.DAY_OF_YEAR) - 2) == current.get(Calendar.DAY_OF_YEAR)
&& getResources().getConfiguration().locale.equals(new Locale("vn"))) {
date = getResources().getString(R.string.content_before_yesterday) + String.format(" %02d:%02d", cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));
} else {
date = String.format("%02d-%02d-%02d %02d:%02d", mCal.get(Calendar.DAY_OF_MONTH), mCal.get(Calendar.MONTH) + 1, mCal.get(Calendar.YEAR), cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE));
}
return date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String eventBeginString() {\n return DateUtils.formatExtDate(this.beginDate);\n }",
"java.lang.String getStartDate();",
"String getStartDate();",
"public String eventEndString() {\n return DateUtils.formatExtDate(this.endDate);\n }",
"public String getEventDate()\n {\n EventDate = createEvent.getText();\n return EventDate;\n }",
"String getEndDate();",
"public String getEventDate() {\n\t\treturn date;\n\t}",
"private static Date dateToString(Date start) {\n\t\treturn start;\n\t}",
"public String getDate(){ return this.start_date;}",
"public String getStartDayEndString() {\n return startDayEndString;\n }",
"private String makeEventEnd(LocalDateTime date) {\n String name = \"DTEND\";\n return formatTimeProperty(date, name) + \"\\n\";\n }",
"java.lang.String getFoundingDate();",
"public String getEventDate() {\n return eventDate.format(INPUT_FORMATTER);\n }",
"public String getDateString(){\n return Utilities.dateToString(date);\n }",
"public String getStartDate();",
"java.lang.String getDate();",
"public String getEndDate();",
"public final String getEnddate() {\n\t\treturn enddate;\n\t}",
"public java.lang.String getBegDate() {\n return begDate;\n }",
"long getBeginDate();",
"public String Get_date() \n {\n \n return date;\n }",
"protected String getDateString() {\n String result = null;\n if (!suppressDate) {\n result = currentDateStr;\n }\n return result;\n }",
"public java.lang.String getBegDate() {\n return begDate;\n }",
"String getSourceUsageDateTime();",
"java.lang.String getStartDateYYYYMMDD();",
"public String getEndDateString() {\n SimpleDateFormat format = new SimpleDateFormat(DpdInputForm.DATA_FORMAT, Locale.ENGLISH);\n return format.format(new Date(this.endDate));\n }",
"private String makeEventStart(LocalDateTime date) {\n String name = \"DTSTART\";\n return formatTimeProperty(date, name) + \"\\n\";\n }",
"String getDate();",
"String getDate();",
"public String getDate(){\n\t\treturn toString();\n\t}",
"public String getStartDateString() {\n SimpleDateFormat format = new SimpleDateFormat(DpdInputForm.DATA_FORMAT, Locale.ENGLISH);\n return format.format(new Date(this.startDate));\n }",
"public Date getEnddate() {\r\n return enddate;\r\n }",
"public String getEndDate() {\n\t\treturn endDate.getText();\n\t}",
"private String getDate(Calendar c) {\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(EventHelper.getMonth(c));\n\t\tsb.append(\" \");\n\t\tsb.append(EventHelper.getDate(c));\n\t\t\n\t\treturn sb.toString();\n\t\t\n\t}",
"java.lang.String getToDate();",
"public String getStartDate() {\n\t\treturn startDate.getText();\n\t}",
"public String toString() {\n String eventString = \"\";\n DateTimeFormatter ft = DateTimeFormatter.ofPattern(\"ddMMyyyy\");\n String date = this.getDue().format(ft);\n eventString += (\"e,\" + this.getName() + \",\" + this.getDetails() + \",\" +\n date + \";\");\n return eventString;\n }",
"java.lang.String getFromDate();",
"public String getBeginTime(){return beginTime;}",
"@Override\n public String getEndInfo() {\n return null;\n //return dateFormatter.stringFromDate(checkOutTime!)\n }",
"@Override\n public String getBeginTimeString() {\n if(beginTime != null)\n return (ShortDateFormat.format(beginTime));\n else\n return \"\";\n }",
"org.apache.xmlbeans.XmlString xgetFoundingDate();",
"public String getDayStartString() {\n return dayStartString;\n }",
"public String getDateString() {\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH); // month is stored from 0-11 so adjust +1 for final display\n int day_of_month = date.get(Calendar.DAY_OF_MONTH);\n return String.valueOf(month + 1) + '/' + String.valueOf(day_of_month) + '/' + year;\n }",
"@Override\n public void onDateRangeSelected(int startDay, int startMonth, int startYear, int endDay, int endMonth, int endYear) {\n DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault());\n Calendar c = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c.set(startYear,startMonth,startDay);\n c2.set(endYear, endMonth,endDay);\n\n String dataInicio = \"Start \" + df.format(c.getTime()) + \"\\n\";\n String dataFim = \" End \" + df.format(c2.getTime()) ;\n\n txt_inform.setText(dataInicio);\n txt_inform.append(dataFim);\n\n }",
"private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}",
"@Override\n public String getEndTimeString() {\n if(endTime != null)\n return (ShortDateFormat.format(endTime));\n else\n return \"\";\n }",
"private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }",
"public String getEndDate() {\n return endDate;\n }",
"public String getDateAsString(){\n\t\t//\tGet Date\n Date date = getDate();\n if(date != null)\n \treturn backFormat.format(date);\n\t\treturn null;\n\t}",
"public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }",
"public String toString() {\n\n if(!allDay){\n return event + \": \" + startTime + \" to \" + endTime;\n } else {\n return event + \": All Day\";\n }\n }",
"public String getDate() {\n\t\treturn logInfoSplit[0] + \"_\" + logInfoSplit[1];\n\t}",
"String getSpokenDateString(Context context) {\n int flags = DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE;\n return DateUtils.formatDateTime(context, mDeliveryTime, flags);\n }",
"@Override\n public String toString() {\n DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;\n assert dtfDate instanceof DateTimeFormatter : \"date formatter has to be of type DateTimeFormatter\";\n assert dtfTime instanceof DateTimeFormatter : \"time formatter has to be of type DateTimeFormatter\";\n final String EVENT_STRING_SHOWED_TO_USER =\n \"[E]\" + super.toString() + this.stringOfTags + \" \" + \"(at: \" + this.date.format(dtfDate) +\n \" \" + this.time.format(dtfTime) + \")\";\n return EVENT_STRING_SHOWED_TO_USER;\n }",
"public String getEntryDateString() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy MMM dd\");\n return sdf.format(entryDate.getTime());\n }",
"public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}",
"public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}",
"java.lang.String getEndDateYYYY();",
"public String getStartDate() {\n return startDate;\n }",
"Date getStartDate();",
"Date getStartDate();",
"Date getStartDate();",
"@Override\n public String toString() {\n return (\"[E]\" + super.toString() + String.format(\"(at:%s)\", this.date));\n }",
"public String getEndDate(){\n\t\treturn this.endDate;\n\t}",
"public long getBeginDate() {\n return beginDate_;\n }",
"long getStartDate();",
"public static String getBaseDate() {\n\t\tif (xml == null) return null;\n\t\treturn basedate;\n\t}",
"public String getDate() {\r\n return date;\r\n }",
"public String getdate() {\n\t\treturn date;\n\t}",
"public String getStartDate() {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(fecha);\n }",
"public Date get_end() {\n\t\treturn this.end;\n\t}",
"public Date getBeginnDate() {\n\t\treturn beginnDate;\n\t}",
"public long getBeginDate() {\n return beginDate_;\n }",
"public String getDate(){\n return date;\n }",
"public abstract java.lang.String getFecha_inicio();",
"private String getOutputString() {\n \tStringBuilder ret = new StringBuilder();\r\n \tCalendar cal = Calendar.getInstance();\r\n \t\r\n \tExportEventLineView eventLine;\r\n \tEventType eventType;\r\n \t\r\n \tint count = _exportEventLines.getChildCount();\r\n \tfor (int i = 0; i < count; i++) {\r\n \t\teventLine = (ExportEventLineView) _exportEventLines.getChildAt( i );\r\n \t\teventType = eventLine.getEventType();\r\n \t\t\r\n \t\tif ( eventLine.isSelected() ) {\r\n \t\t\t\r\n \t\t\tEventIterator iterator = _dbHelper.eventHandler.fetchByType( i+1 );\r\n \t\t\tfor ( Event event : iterator ) {\r\n\t\t\t\t\tcal.setTimeInMillis( event.getTimeStamp() * 1000 );\r\n\t\t\t\t\t\r\n\t\t\t\t\tret.append(\r\n\t\t\t\t\t\t\t'\"' + this.getDateString( cal )\r\n\t\t\t\t\t\t\t+ \"\\\",\\\"\" + this.getTimeString( cal )\r\n\t\t\t\t\t\t\t+ \"\\\",\\\"\" + eventType.getName()\r\n\t\t\t\t\t\t\t+ \"\\\"\\n\"\r\n\t\t\t\t\t\t);\r\n \t\t\t} // if\r\n\t\t\t\tret.append('\\n');\r\n \t\t} // if\r\n \t} // for\r\n \t\r\n \treturn ret.toString();\r\n }",
"public String getDate() {\n return date;\n }",
"@Override\n public String getStartInfo() {\n\n return startTime(null, DateFormat.SHORT);\n }",
"public String getDate(){\n return date;\n }",
"public final native String toDateString() /*-{\n return this.toDateString();\n }-*/;",
"@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }",
"public String getStartDate(){\n\t\treturn this.startDate;\n\t}",
"public static String getDateString(){\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd__HH-mm-ss\");\n\t\t\treturn sdf.format(now.getTime());\n\t }",
"public java.lang.String getEndDate() {\n return endDate;\n }",
"public java.lang.String getEndDay() {\r\n return localEndDay;\r\n }",
"java.lang.String getDatesEmployedText();",
"String getDateString(Context context) {\n int flags = DateUtils.FORMAT_NO_NOON_MIDNIGHT | DateUtils.FORMAT_SHOW_TIME |\n DateUtils.FORMAT_ABBREV_ALL | DateUtils.FORMAT_SHOW_DATE |\n DateUtils.FORMAT_CAP_AMPM;\n return DateUtils.formatDateTime(context, mDeliveryTime, flags);\n }",
"public String getStartDate() {\n return startDate;\n }",
"Date getEventFiredAt();",
"ButEnd getStart();",
"public String getStringRepresentation() {\n StringJoiner joiner = new StringJoiner(STRING_FORMAT_DELIMITER);\n\n joiner.add(this.getCaller())\n .add(this.getCallee())\n .add(SIMPLE_DATE_FORMAT.format(startTime))\n .add(SIMPLE_DATE_FORMAT.format(endTime));\n\n return joiner.toString();\n }",
"private void getDateStartEnd(BudgetRecyclerView budget) {\n String viewByDate = budget.getDate();\n String[] dateArray = viewByDate.split(\"-\");\n for (int i = 0; i < dateArray.length; i++) {\n dateArray[i] = dateArray[i].trim();\n }\n startDate = CalendarSupport.convertStringToDate(dateArray[0]);\n endDate = CalendarSupport.convertStringToDate(dateArray[1]);\n }",
"@Override\n public String toString() {\n\treturn Slot.DAYS[day] + start.toString() + \"-\" + end.toString() + \":\" + venue;\n }",
"public String getDate() {\r\n\t\treturn date;\r\n\t}",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate()\n\t\t{\n\t\t\treturn date;\n\t\t}"
] | [
"0.67820376",
"0.667193",
"0.6593466",
"0.6574227",
"0.65541923",
"0.6514913",
"0.64839464",
"0.647181",
"0.6469775",
"0.6447377",
"0.6430721",
"0.6384601",
"0.6354591",
"0.62812024",
"0.62569124",
"0.62399626",
"0.6213342",
"0.62110555",
"0.62005097",
"0.6193079",
"0.61655927",
"0.61605966",
"0.6134576",
"0.6068013",
"0.60651284",
"0.60367846",
"0.6025271",
"0.6020951",
"0.6020951",
"0.60027367",
"0.60016793",
"0.5983317",
"0.5977989",
"0.5955864",
"0.5944932",
"0.58835673",
"0.5882856",
"0.58808583",
"0.580785",
"0.5801417",
"0.5796587",
"0.5782293",
"0.57802963",
"0.5774187",
"0.5771377",
"0.57705283",
"0.57677513",
"0.576407",
"0.57576084",
"0.57574135",
"0.5756707",
"0.57504606",
"0.5734981",
"0.57341605",
"0.5732096",
"0.5732039",
"0.5729543",
"0.5729543",
"0.5724972",
"0.5722616",
"0.5721809",
"0.5721809",
"0.5721809",
"0.5719774",
"0.5719747",
"0.57164955",
"0.57155937",
"0.57137537",
"0.5705318",
"0.5702487",
"0.5686672",
"0.5685134",
"0.56785303",
"0.56761944",
"0.56740254",
"0.567375",
"0.5672477",
"0.56669486",
"0.56630826",
"0.5662158",
"0.56620485",
"0.5659974",
"0.56557155",
"0.56547034",
"0.56480896",
"0.5646925",
"0.5644828",
"0.56428975",
"0.5642166",
"0.5635499",
"0.5635209",
"0.56346685",
"0.56341213",
"0.5624775",
"0.5623891",
"0.56204057",
"0.56204057",
"0.56204057",
"0.56204057",
"0.56204057",
"0.56115043"
] | 0.0 | -1 |
Cambia el estado del permiso | @Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
ref = database.getReference("Permisos/" + permisos.getID() + "/habilitado");
ref.setValue(isChecked);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"public int getAccessLevel() {\n return 0;\r\n }",
"public Boolean isPrivado() {\n return privado;\n }",
"public boolean estaEnModoAvion();",
"public void getStoragePermission(){\n if(ContextCompat.checkSelfPermission(this,Ubicacion.EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\n mStoragePermissionsGranted = true;\n Log.i(\"STORAGEPERMISSION\",\"permisos aceptados\");\n }else{\n Log.i(\"STORAGEPERMISSION\",\"permisos aun no se aceptan\");\n ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},Ubicacion.EXTERNAL_STORAGE_CODE);\n\n }\n }",
"@Override\n public void checkPermission(Permission perm) {\n }",
"static public int getADMIN() {\n return 1;\n }",
"public boolean isPermisoAgendaPersonal() {\n for(Rolpermiso rp : LoginController.getUsuarioLogged().getRol1().getRolpermisoList()){\n if(rp.getPermiso().getDescripcion().equals(\"AAgenda\")){\n return true;\n }\n }\n return false;\n }",
"private void activarControles(boolean estado) {\n this.panPrincipioActivo.setEnabled(estado);\n this.lblNombre.setEnabled(estado);\n this.txtNombre.setEditable(estado);\n this.lblDescripcion.setEnabled(estado);\n this.txtDescripcion.setEditable(estado);\n this.chkVigente.setEnabled(estado);\n this.btnAceptar.setEnabled(estado);\n this.btnCancelar.setEnabled(estado);\n \n this.panListadoPA.setEnabled(! estado);\n this.tblListadoPA.setEnabled(! estado);\n this.btnNuevo.setEnabled(! estado);\n this.btnModificar.setEnabled(! estado);\n \n if(estado == true){\n this.txtNombre.requestFocusInWindow();\n }else{\n this.tblListadoPA.requestFocusInWindow();\n }\n }",
"public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }",
"@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}",
"abstract public void getPermission();",
"Map<String, Object> getPermStorage();",
"Object getPerm(String name);",
"int getPermissionWrite();",
"public void verAsignarPermiso(Administrador adminactual)\r\n\t{\r\n\t\tasignarpermiso = new AsignarPermiso(this, adminactual);\r\n\t\tasignarpermiso.setVisible(true);\r\n\t}",
"public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }",
"private void setearPermisosMenu()\r\n\t{\r\n\t\t/*Permisos del usuario para los mantenimientos*/\r\n\t\tthis.setearOpcionesMenuMantenimientos();\r\n\t\tthis.setearOpcionesMenuFacturacion();\r\n\t\tthis.setearOpcionesMenuCobros();\r\n\t\tthis.setearOpcionesMenuProcesos();\r\n\t\tthis.setearOpcionesReportes();\r\n\t\tthis.setearOpcionesMenuAdministracion();\r\n\t}",
"public Enumeration permissions();",
"public void AsignarPermiso(Permiso p){\n\t\tPermisoRol pr = new PermisoRol(p,this);\n\t\tpermisos.add(pr);\n\t}",
"private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }",
"@Override\n\tpublic int getIsActive() {\n\t\treturn _permissionType.getIsActive();\n\t}",
"public boolean granted(){\n\t\treturn this.granted;\n\t}",
"@Override\n public void checkPermission(Permission perm, Object context) {\n }",
"private PermissionHelper() {}",
"public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }",
"@Override\n public boolean hasPermission(Permission permission) {\n // FacesContext context = FacesContext.getCurrentInstance();\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n// String imp = (String)context.getExternalContext().getSessionMap().get(\"isImpersonationOn\");\n if(imp == null || !imp.equals(\"Y\")){\n return super.hasPermission(permission);\n }\n else{\n return true;\n \n }\n \n }",
"@Override\n\tpublic int getAccessible() {\n\t\treturn _userSync.getAccessible();\n\t}",
"Privilege getPrivilege();",
"boolean getMovimentoPassante();",
"public boolean esmenor(){\n //este metodo no aplica en la resolución del caso de uso planteado\n //sólo sirve para determinar si el participante es menor de edad para \n //poner como obligatorio el campo nombreTutor de acuerdo a las reglas\n //del negocio.\n return false;\n }",
"String getPermission();",
"private static void privilegio(int tipo) {\n String nome;\r\n Scanner sc = new Scanner(System.in);\r\n if (tipo == 1)\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n else\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n nome = sc.nextLine();\r\n PreparedStatement stmt;\r\n if (verificaUser(nome)) {\r\n try {\r\n c.setAutoCommit(false);\r\n if (tipo == 1)\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = true WHERE nome=?\");\r\n else\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = false WHERE nome=?\");\r\n stmt.setString(1, nome);\r\n stmt.executeUpdate();\r\n\r\n stmt.close();\r\n c.commit();\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Privilégios atualizados\");\r\n } else {\r\n System.out.println(\"Utilizador não encontrado\");\r\n }\r\n }",
"public void setPrivado(Boolean privado) {\n this.privado = privado;\n }",
"public int getMetaPrivileges();",
"public String getFloodPerm() throws PermissionDeniedException;",
"public boolean isActivo()\r\n/* 173: */ {\r\n/* 174:318 */ return this.activo;\r\n/* 175: */ }",
"@Override\n public int getProcessgetCapabilitie() {\n return 0;\n }",
"public boolean isActivo()\r\n/* 144: */ {\r\n/* 145:245 */ return this.activo;\r\n/* 146: */ }",
"int getPermissionRead();",
"public IEstadoLectura crearEstado();",
"private void setearOpcionesMenuAdministracion()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuAdmin = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_USUARIO)\r\n\t\t\t\t|| formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GRUPO))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuAdmin.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuAdmin.size()> 0)\r\n\t\t{\r\n\t\t\t//TODO\r\n\t\t\t//this.tabAdministracion = new VerticalLayout();\r\n\t\t\t//this.tabAdministracion.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbAdministracion.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbAdministracion);\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuAdmin) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_USUARIO : \r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_USUARIO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarUserButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.userButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GRUPO :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GRUPO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGrupoButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gruposButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//TODO\r\n\t\t\t//this.acordion.addTab(tabAdministracion, \"Administración\", null);\r\n\t\t\t\r\n\t\t}\r\n\t\t//TODO\r\n\t\t//acordion.setHeight(\"75%\"); /*Seteamos alto del accordion*/\r\n\t}",
"public int getPermission() {\r\n\t\treturn nPermission;\r\n\t}",
"void setPermission(String perm, boolean add);",
"private boolean requrstpermission(){\r\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\r\n return true;\r\n }\r\n else {\r\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, IMAGEREQUESTCODE);\r\n return false;\r\n }\r\n }",
"public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }",
"public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }",
"public void verificarNivel (int nivel) {\n this.nivelUsuario = nivel;\n }",
"boolean isAdmin();",
"boolean isExecuteAccess();",
"public boolean isActivo()\r\n/* 110: */ {\r\n/* 111:138 */ return this.activo;\r\n/* 112: */ }",
"@Override\n\tpublic int canalMais() {\n\t\treturn 0;\n\t}",
"public String getAccess();",
"int getActivacion();",
"boolean isAutorisationUtilisation();",
"@Override\r\n public void onClick() {\r\n if (!permissionsGranted()) {\r\n if (isNull(MainActivity.active) || !MainActivity.active) {\r\n requestPermissions();\r\n }\r\n }\r\n else{\r\n toggleLTE();\r\n }\r\n }",
"public void actualizarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setIdGrado(7);\n \tgrado.setDescripcionSeccion(\"Secundaria\");\n \tgrado.setNumGrado(6);\n \tgrado.setDescripcionUltimoGrado(\"SI\");\n \tString respuesta = negocio.actualizarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }",
"@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }",
"@Override\n\tpublic boolean estaVivo() {\n\t\treturn estadoVida;\t\t\n\t}",
"@Override\n\tpublic int canalMenos() {\n\t\treturn 0;\n\t}",
"public boolean handlePerm(Player player, String perm);",
"int getPants();",
"public Integer getIsadmin() {\r\n return isadmin;\r\n }",
"@Override\n\tpublic String checkPermision(String user, String userType) {\n\t\treturn null;\n\t}",
"public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }",
"public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }",
"public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }",
"@Override\r\n\tpublic String permission() {\n\t\treturn Permissions.DEFAULT;\r\n\t}",
"String getAccess();",
"String getAccess();",
"protected void doGetPermissions() throws TmplException {\r\n try {\r\n GlbPerm perm = (GlbPerm)TmplEJBLocater.getInstance().getEJBRemote(\"pt.inescporto.permissions.ejb.session.GlbPerm\");\r\n\r\n perms = perm.getFormPerms(MenuSingleton.getRole(), permFormId);\r\n }\r\n catch (java.rmi.RemoteException rex) {\r\n //can't get form perms\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(rex);\r\n throw tmplex;\r\n }\r\n catch (javax.naming.NamingException nex) {\r\n //can't find GlbPerm\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(nex);\r\n throw tmplex;\r\n }\r\n }",
"boolean estaAcabado();",
"Object getPerm(String name, Object def);",
"public int getEstadoPareja() {\n return estadoPareja;\n }",
"public boolean isGranted(){\n\n// if (BallotBoxState.Granted.equals(getBallotBoxState()) || this.quorum.get() <= 0) {\n// setBallotBoxState(BallotBoxState.Granted);\n// return true;\n// }\n// return false;\n\n return this.quorum.get() <= 0;\n }",
"boolean hasUserManaged();",
"Permeability getPermeability();",
"@Test\r\n public void testVerificaPossibilidade2() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }",
"private void setPerms() {\n int oPerm = 0; // Owner permissions\n int gPerm = 0; // Group permissions\n int aPerm = 0; // All (other) permissions\n\n // Set owner permissions digit\n if (ownerRead.isSelected()) oPerm += 4; // Read\n if (ownerWrite.isSelected()) oPerm += 2; // Write\n if (ownerExe.isSelected()) oPerm += 1; // Execute\n\n // Set group permissions digit\n if (groupRead.isSelected()) gPerm += 4; // Read\n if (groupWrite.isSelected()) gPerm += 2; // Write\n if (groupExe.isSelected()) gPerm += 1; // Execute\n\n // Set all permissions digit\n if (allRead.isSelected()) aPerm += 4; // Read\n if (allWrite.isSelected()) aPerm += 2; // Write\n if (allExe.isSelected()) aPerm += 1; // Execute\n\n // Concatenate digits into chmod code\n String perms = Integer.toString(oPerm) + Integer.toString(gPerm) + Integer.toString(aPerm);\n //System.out.println(perms); // just for testing\n\n FTPReply chmodReply;\n try {\n // Set file permissions\n chmodReply = client.sendSiteCommand(\"chmod \" + perms + \" \" + theFile);\n System.out.println(chmodReply.toString());\n }\n catch (FTPIllegalReplyException | IOException e) {\n e.printStackTrace();\n }\n }",
"protected void setPrivileges(PrivilegeSet ps) { this.privileges = ps; }",
"public boolean getEstado(){\n return estado;\n }",
"@Override\n public RspPermiso listPermiso() {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n List<Permiso> todosLosPermisos = new ArrayList<Permiso>();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"listPermiso()\", this.getClass().toString()));\n while (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n todosLosPermisos.add(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"listPermiso()\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n rspPermiso.setAllPermisos(todosLosPermisos);\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }",
"private void armarGrupoEstado() {\n //se le agrega la logica para que solo se pueda seleccionar de a uno\n grupoEstado= new ToggleGroup();\n grupoEstado.getToggles().addAll(radSoltero,radCasado,radViudo,radDivorciado);\n grupoEstado.selectToggle(radSoltero);\n }",
"public boolean isAdmin();",
"void setPerm(String name,\n Object value);",
"protected void accionUsuario() {\n\t\t\r\n\t}",
"@Override\n public boolean userCanAccess(int id) {\n return true;\n }",
"public SetPermission() {\n initComponents();\n }",
"public void verDatosAdministrador()\r\n\t{\r\n\t\tcrearadmin = new CrearAdministrador(this);\r\n\t\tcrearadmin.setVisible(true);\r\n\t}",
"@Override\n public RspPermiso getPermisoPorTraza(String traza) {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1 AND traza = '\" + traza + \"'\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"getPermisoPorTraza(String traza)\", this.getClass().toString()));\n if (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n rspPermiso.setPermiso(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"getPermisoPorTraza(String traza)\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }",
"public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }",
"private boolean isAdmin() {\n\t\tString name = (String) session.getAttribute(\"name\");\n\t\tif (name.equals(ADMIN)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public String getPermissionAdmin() {\n return permissionAdmin;\n }",
"@Test\n public void test34(){\n Tree<PermissionDO> tree = permissionService.getTree(16);\n for (Tree<PermissionDO> permissionDOTree : tree.getChildren()) {\n if((boolean)(permissionDOTree.getState().get(\"selected\"))){\n System.out.println(permissionDOTree.getText());\n }\n System.out.println(\"--------------------\");\n }\n }",
"public int getUserModificationPermission() {\n return permission;\n }",
"private native boolean setModoEnfoque(int modo);",
"@Override\n public RspPermiso getPermisoPorIdPermiso(int idPermiso) {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1 AND id_permiso = '\" + idPermiso + \"'\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"getPermisoPorIdPermiso(int idPermiso)\", this.getClass().toString()));\n if (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n rspPermiso.setPermiso(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"getPermisoPorIdPermiso(int idPermiso)\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }",
"public void setEnabledGeneral(boolean estado) {\r\n\t\tthis.partidasList.setEnabled(estado);\r\n\t\tthis.btnCambiarNick.setEnabled(estado);\r\n\t\tthis.btnCambiarPassword.setEnabled(estado);\r\n\t\tthis.btnCerrarSesion.setEnabled(estado);\r\n\t\tthis.btnUnirse.setEnabled(estado);\r\n\t}",
"public int getAccess() {\n\t\treturn access;\n\t}",
"@Override\n\tpublic boolean getEnableDataPerm() {\n\t\treturn false;\n\t}",
"public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }"
] | [
"0.6238186",
"0.592995",
"0.58789116",
"0.5862129",
"0.5828621",
"0.57854754",
"0.57671756",
"0.5738437",
"0.57181203",
"0.5702048",
"0.5686673",
"0.5674889",
"0.5654686",
"0.5652761",
"0.5647061",
"0.5642456",
"0.5628518",
"0.56127554",
"0.56119454",
"0.55793786",
"0.5568514",
"0.55638313",
"0.55133206",
"0.55087173",
"0.55000025",
"0.54828703",
"0.54751635",
"0.5469852",
"0.5469781",
"0.5451128",
"0.5447858",
"0.54471594",
"0.543631",
"0.54317224",
"0.54296654",
"0.5423501",
"0.54180497",
"0.5411626",
"0.541007",
"0.5404023",
"0.53859144",
"0.5378314",
"0.536594",
"0.5361152",
"0.53562427",
"0.5343815",
"0.5342641",
"0.5338524",
"0.5314236",
"0.5311668",
"0.53106236",
"0.530089",
"0.5279135",
"0.5278615",
"0.5276174",
"0.52748317",
"0.5257114",
"0.5246788",
"0.5245449",
"0.5238474",
"0.52364016",
"0.52361774",
"0.5235579",
"0.523337",
"0.5230276",
"0.52245694",
"0.52245694",
"0.52213395",
"0.5218419",
"0.5218419",
"0.5216004",
"0.52060276",
"0.5204107",
"0.5197749",
"0.5196992",
"0.51954776",
"0.51934516",
"0.5189422",
"0.51891565",
"0.5186415",
"0.51856834",
"0.5181399",
"0.5180018",
"0.5176871",
"0.51751494",
"0.5168846",
"0.5162975",
"0.51626617",
"0.5150914",
"0.51489395",
"0.5144413",
"0.51397204",
"0.51317596",
"0.5129108",
"0.5127362",
"0.5120239",
"0.5120192",
"0.5118868",
"0.51184416",
"0.51180816",
"0.51131886"
] | 0.0 | -1 |
Get the user for this restaurant Get the menu items for this user | public void getMenuItems(){
ParseUser user = ParseUser.getCurrentUser();
menu = user.getParseObject("menu");
ParseQuery<ParseObject> query = ParseQuery.getQuery("Item");
query.whereEqualTo("menu", menu);
query.findInBackground(new FindCallback<ParseObject>() {
public void done(List<ParseObject> menuItems, ParseException e) {
if (e == null) {
listMenuItems(menuItems);
} else {
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static RawMenuItem getMenuForRestaurant() {\n\n AmazonDynamoDBClient ddb = SplashActivity.clientManager\n .ddb();\n DynamoDBMapper mapper = new DynamoDBMapper(ddb);\n\n try {\n RawMenuItem menuItem = mapper.load(RawMenuItem.class,\n Globals.getInstance().getBusinessName());\n\n return menuItem;\n\n } catch (AmazonServiceException ex) {\n SplashActivity.clientManager\n .wipeCredentialsOnAuthError(ex);\n }\n\n return null;\n }",
"@Override\n\tpublic List<Function> findMenu() {\n\t\tUser user = BosContext.getLoginUser();\n\t\tif(user.getUsername().equals(\"admin\")){\n\t\t\treturn functionDao.findAllMenu();\n\t\t}else{\n\t\t\treturn functionDao.findMenuByUserId(user.getId());\n\t\t}\n\t\t\n\t}",
"public UserItem getUserItem() {\n return userItem;\n }",
"public List<Menu> findMenus(User user) {\n\n List<Resource> resources = findAll(new Sort(Sort.Direction.DESC,\"parentId\",\"weight\"));\n Set<String> userPermissions = userAuthService.findStringPermissions(user);\n Iterator<Resource> iter = resources.iterator();\n while (iter.hasNext()) {\n if (!hasPermission(iter.next(), userPermissions)) {\n iter.remove();\n }\n }\n return convertToMenus(resources);\n }",
"public UserItem getUserItemByIds(UserItem ui);",
"UmsMenu getItem(Long id);",
"@RequestMapping(value = \"/getPermissionForUserMenu\", method = RequestMethod.GET)\n\tpublic ResponseEntity<?> getPermissionForUserMenu() throws JsonParseException, JsonMappingException, IOException {\n\t\tMap<String, Object> result = permissionAuthorize.getPermissionForUserMenu(SecurityUtil.getIdUser());\n\t\t// return.\n\t\treturn new ResponseEntity<Map<String, Object>>(result, HttpStatus.OK);\n\t}",
"public List<MenuItem> getMenuItems(){\n return menuItems;\n }",
"public String choosenMenu() {\n String value = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(value);\n String user = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n if (user == null) {\n return \"choosenMenu\";\n } else {\n return \"chooseMenuUser\";\n }\n }",
"@Override\n\tpublic List<MenuItem> getMenuItemListAdmin() {\n\t\treturn this.menuItemList ;\n\t}",
"@Override\n\tpublic List<User> getAllItem() {\n\t\treturn userRepository.findAll();\n\t}",
"public List getMenu() {\n createMenuGroupError = false;\n menulist = new Menus_List();\n return menulist.getMenu();\n }",
"@Override\n\tpublic List<Tmenu> selectMenuByUser(Tadmin admin) {\n\t\treturn menuMapper.selectMenuByUser(admin);\n\t}",
"public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private List<DrawerItem> getDrawerMenuItems() {\n List<DrawerItem> items = new ArrayList<DrawerItem>();\n items.add(new DrawerItem().setTitle(\"all\").setFeedStrategy(_personalKeyStrategyProvider.create()));\n items.add(new DrawerItem().setTitle(\"shared\").setFeedStrategy(_sharedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"recommended\").setFeedStrategy(_recommendedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"saved\").setFeedStrategy(_savedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"read\").setFeedStrategy(_readFeedStrategyProvider.create(0)));\n return items;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n\n //Reading the Preferences File\n SharedPreferences userDetails = this.getSharedPreferences(\"userdetails\", MODE_PRIVATE);\n String Uname = userDetails.getString(\"username\", \"\");\n String Utype = userDetails.getString(\"usertype\", \"\");\n\n TextView user_email = (TextView) findViewById(R.id.user_email);\n user_email.setText(Uname);\n\n if(Utype.equalsIgnoreCase(\"customer\")) {\n navigationView.getMenu().findItem(R.id.cook_home).setVisible(false);\n navigationView.getMenu().findItem(R.id.cook_profile).setVisible(false);\n navigationView.getMenu().findItem(R.id.view_customers).setVisible(false);\n navigationView.getMenu().findItem(R.id.add_food).setVisible(false);\n navigationView.getMenu().findItem(R.id.cook_bookings).setVisible(false);\n return true;\n }\n else {\n navigationView.getMenu().findItem(R.id.customer_home).setVisible(false);\n navigationView.getMenu().findItem(R.id.customer_profile).setVisible(false);\n navigationView.getMenu().findItem(R.id.make_booking).setVisible(false);\n navigationView.getMenu().findItem(R.id.view_bookings).setVisible(false);\n navigationView.getMenu().findItem(R.id.view_cooks).setVisible(false);\n return true;\n }\n }",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn users.get(arg0);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n //Reading the Preferences File\n SharedPreferences userDetails = this.getSharedPreferences(\"userdetails\", MODE_PRIVATE);\n String Uname = userDetails.getString(\"username\", \"\");\n String Utype = userDetails.getString(\"usertype\", \"\");\n\n TextView user_email = (TextView) findViewById(R.id.user_email);\n user_email.setText(Uname);\n\n if(Utype.equalsIgnoreCase(\"customer\")) {\n navigationView.getMenu().findItem(R.id.cook_home).setVisible(false);\n navigationView.getMenu().findItem(R.id.cook_profile).setVisible(false);\n navigationView.getMenu().findItem(R.id.view_customers).setVisible(false);\n navigationView.getMenu().findItem(R.id.add_food).setVisible(false);\n navigationView.getMenu().findItem(R.id.cook_bookings).setVisible(false);\n return true;\n }\n else {\n navigationView.getMenu().findItem(R.id.customer_home).setVisible(false);\n navigationView.getMenu().findItem(R.id.customer_profile).setVisible(false);\n navigationView.getMenu().findItem(R.id.make_booking).setVisible(false);\n navigationView.getMenu().findItem(R.id.view_bookings).setVisible(false);\n navigationView.getMenu().findItem(R.id.view_cooks).setVisible(false);\n return true;\n }\n }",
"public List<Menu> getMenu() {\n return mMenu;\n }",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn users.get(arg0);\r\n\t}",
"public UserItem getUserItem() {\n return (attributes.containsKey(KEY_USER_ITEM) ? (UserItem) attributes\n .get(KEY_USER_ITEM) : null);\n }",
"@Override\n public List<UserPanelItem> getItems(User user)\n {\n return Collections.emptyList();\n }",
"@Override\n\t\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\t\tint id = item.getItemId();\n\t\t\t\t\tIntent i;\n\t\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\t\tcase R.id.menu_add_new_list:\n\t\t\t\t\t\tif (task.getString(\"user_id\", null) != null) {\n\t\t\t\t\t\t\ti = new Intent(getBaseContext(), MyMap.class);\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(MyMap.this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase R.id.menu_dashboard:\n\t\t\t\t\t\tif (task.getString(\"user_id\", null) != null) {\n\t\t\t\t\t\t\ti = new Intent(MyMap.this, dashboard_main.class);\n\t\t\t\t\t\t\ti.putExtra(\"edit\", \"12344\");\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(MyMap.this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase R.id.menu_login:\n\t\t\t\t\t\tif (bedMenuItem.getTitle().equals(\"Logout\")) {\n\t\t\t\t\t\t\tSharedPreferences.Editor editor = getSharedPreferences(\"user\", MODE_PRIVATE).edit();\n\t\t\t\t\t\t\teditor.clear();\n\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\tbedMenuItem.setTitle(\"Login/Register\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tIntent i_user = new Intent(getBaseContext(), user_login.class);\n\t\t\t\t\t\t\tstartActivity(i_user);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public String getUserSubMenuRole() {\n return sessionData.getUserSubMenuRole();\n }",
"List<Menu> listarMenuPorUsuario(String nombre);",
"private void fetchMenu(){\n menu.clear();\n DatabaseReference reference = FirebaseDatabase.getInstance().getReference(\"menus/\"+partner.getRestaurant_id());\n\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n for (DataSnapshot ds: snapshot.getChildren()){\n ////Log.d(TAG, \"onDataChange: \"+ds.toString());\n MenuItem menuItem = ds.getValue(MenuItem.class);\n Log.d(TAG, \"onDataChange: Menu Icon: \"+ds.toString());\n menu.add(menuItem);\n // Log.d(TAG, \"onDataChange: Menu Icon: \"+menuItem.getCategory_icon());\n\n }\n fetchFeaturedFoodItems();\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n }",
"public JSONObject selectUserMenus(String token ){\n return null;\n }",
"public MenuItem getMenuItem() {\n return menuItem;\n }",
"@Override\n\tpublic List<Privilege> getAllBtn(User user) {\n\t\tint roleid= user.getRoleid();\n\t\tRole role=new Role();\n\t\trole.setId(roleid);\n\t\t\n\t\tList<Privilege> privileges = privilegeMapper.listUserRoleBtn(role);\n\t\t\n\t\treturn privileges;\n\t}",
"private static void userMenuLogic() {\n\n\t\tboolean onMenu = true;\n\n\t\twhile(onMenu) {\n\n\t\t\tmenuHandler.clrscr();\n\t\t\tint maxChoice = menuHandler.userMenu();\n\t\t\t\n\t\t\tint intChoice = menuHandler.intRangeInput(\"Please input a number in range [1, \" + maxChoice + \"]\", 1, maxChoice);\n\n\t\t\tswitch(intChoice) {\n\t\t\tcase 1:\n\t\t\t\t// Create user\n\t\t\t\tdouble initBalance = menuHandler.doubleGTEInput(\"Please input an initial balance for the user (must be >= 0.0)\", 0);\n\t\t\t\tusers.put(\"User\" + users.size(), objectHandler.createUser(initBalance));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t// List users\n\t\t\t\t\n\t\t\t\t// Check users exist\n\t\t\t\tif(users.size() == 0) {\n\t\t\t\t\tSystem.out.println(\"No users created! Please create one before using this menu.\");\n\t\t\t\t} else {\n\t\t\t\t\tmenuHandler.prettyPrintUsers(users, numColumns);\n\t\t\t\t}\n\t\t\t\tmenuHandler.waitOnKey(keyMsg);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t// Add balance to user\n\t\t\t\t\n\t\t\t\t// Check users exist\n\t\t\t\tif(users.size() == 0) {\n\t\t\t\t\tSystem.out.println(\"No users created! Please create one before using this menu.\");\n\t\t\t\t\tmenuHandler.waitOnKey(keyMsg);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tmenuHandler.prettyPrintUsers(users, numColumns);\n\t\t\t\t\tint userChoice = menuHandler.intRangeInput(\"Please input a number in range [0, \" + (users.size() - 1) + \"]\", 0, users.size() - 1);\n\t\t\t\t\t\n\t\t\t\t\tdouble addBal = menuHandler.doubleGTInput(\"Please input balance to add (must be > 0.0)\", 0);\n\t\t\t\t\t\n\t\t\t\t\t// Add balance to chosen user\n\t\t\t\t\tusers.get(\"User\" + userChoice).deposit(addBal);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t// List user documents\n\t\t\t\t\n\t\t\t\tint userChoice;\n\t\t\t\t// Check users exist\n\t\t\t\tif(users.size() == 0) {\n\t\t\t\t\tSystem.out.println(\"No users created! Please create one before using this menu.\");\n\t\t\t\t\tmenuHandler.waitOnKey(keyMsg);\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tmenuHandler.prettyPrintUsers(users, numColumns);\n\t\t\t\t\tuserChoice = menuHandler.intRangeInput(\"Please input a number in range [0, \" + (users.size() - 1) + \"]\", 0, users.size() - 1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tVDMSet documentSet = users.get(\"User\" + userChoice).getDocumentList();\n\t\t\t\tif(documentSet.size() == 0) {\n\t\t\t\t\tSystem.out.println(\"User selected has no documents! Please select another user.\");\n\t\t\t\t} else {\n\t\t\t\t\tmenuHandler.prettyPrintDocumentsSet(documents, users.get(\"User\" + userChoice).getDocumentList(), numColumns);\n\t\t\t\t}\n\t\t\t\tmenuHandler.waitOnKey(keyMsg);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t// Add document to user\n\n\t\t\t\t// Check users exist\n\t\t\t\tif(users.size() == 0) {\n\t\t\t\t\tSystem.out.println(\"No users created! Please create one before using this menu.\");\n\t\t\t\t\tmenuHandler.waitOnKey(keyMsg);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmenuHandler.prettyPrintUsers(users, numColumns);\n\t\t\t\tuserChoice = menuHandler.intRangeInput(\"Please input a number in range [0, \" + (users.size() - 1) + \"]\", 0, users.size() - 1);\n\t\t\t\t\n\t\t\t\t// Create document to add\n\t\t\t\tDocument toAdd = createDocumentMenuLogic(users.get(\"User\" + userChoice));\n\t\t\t\t\n\t\t\t\t// User backed out of menu\n\t\t\t\tif(toAdd == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tusers.get(\"User\" + userChoice).addDocument(toAdd);\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tonMenu = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic List<VAdmFoncUtilisateur> getListFoncForMenu(Long idUser) {\n\t\tQuery query = null;\n\t\tquery = createQuery(\"from VAdmFoncUtilisateur where FAdmin=1 and idUser=:idUser and FAffMenu=1 order by cod asc\");\n\t\tquery.setLong(\"idUser\", idUser != null ? idUser : null);\n\t\treturn findMany(query);\n\t}",
"private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\r\n FirebaseUser currentUser = mAuth.getCurrentUser();\r\n MenuItem itemLogin = menu.findItem(R.id.login);\r\n MenuItem itemLogout = menu.findItem(R.id.logout);\r\n if (currentUser != null) {\r\n itemLogin.setVisible(false);\r\n itemLogout.setVisible(true);\r\n } else {\r\n itemLogin.setVisible(true);\r\n itemLogout.setVisible(false);\r\n }\r\n return true;\r\n }",
"public MenuItem getMenuItem() {\r\n\t\treturn menuItem;\r\n\t}",
"private void setMenu(String user_id) {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n Log.d(\"User id\", user_id);\n final String[] user_type = new String[1];\n DatabaseReference databaseReference = database.getReference(\"Users\").child(user_id).child(\"type\");\n databaseReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n user_type[0] = snapshot.getValue().toString();\n Log.d(\"User Type \", user_type[0]);\n //done.set(true);\n switch (user_type[0]) {\n case \"residente\":\n navView.getMenu().findItem(R.id.navigation_notifications).setVisible(false);\n navView.getMenu().findItem(R.id.historyFragment).setVisible(false);\n navView.getMenu().findItem(R.id.userManagementFragment).setVisible(false);\n navView.getMenu().findItem(R.id.navigation_dashboard).setVisible(true);\n return;\n case \"admin\":\n navView.getMenu().findItem(R.id.navigation_notifications).setVisible(true);\n navView.getMenu().findItem(R.id.historyFragment).setVisible(true);\n navView.getMenu().findItem(R.id.userManagementFragment).setVisible(false);\n navView.getMenu().findItem(R.id.navigation_dashboard).setVisible(true);\n return;\n case \"guardia\":\n navView.getMenu().findItem(R.id.navigation_dashboard).setVisible(false);\n navView.getMenu().findItem(R.id.userManagementFragment).setVisible(false);\n navView.getMenu().findItem(R.id.navigation_notifications).setVisible(true);\n navView.getMenu().findItem(R.id.historyFragment).setVisible(true);\n return;\n case \"\":\n navView.getMenu().findItem(R.id.navigation_notifications).setVisible(false);\n navView.getMenu().findItem(R.id.historyFragment).setVisible(false);\n navView.getMenu().findItem(R.id.userManagementFragment).setVisible(false);\n navView.getMenu().findItem(R.id.navigation_dashboard).setVisible(true);\n return;\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n //while (user_type[0].isEmpty());\n //return user_type[0];\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n TextView navTitle = findViewById(R.id.nav_title);\n TextView navSubtitle = findViewById(R.id.nav_subtitle);\n User user = new CloudPreferences(mainActivity).getUser();\n navTitle.setText(user.getUsername());\n navSubtitle.setText(user.getEmail());\n return true;\n }",
"@Override\n public MenuMovilUserAPI getMenuMovilUserAPI() {\n return menuMovilUserFacade;\n }",
"@Override\n\tpublic List<Menu> getAllMainMenu() {\n\t\treturn this.menuDao.getAllMainMenu();\n\t}",
"@GET(\"api/Kategori/tampil\")\n Call<GetMenu> listMenu(@Query(\"id_user\") String id_user);",
"public Menu getMenu() { return this.menu; }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (user.getUserType().equals(\"admin\"))\n {\n getMenuInflater().inflate(R.menu.menu_new_feeds, menu);\n return true;\n }else\n {\n\n return false;\n }\n\n\n }",
"abstract void menu(User theUser);",
"public String getFoodMenu() {\n\t\treturn mFoodMenu;\n\t}",
"UmsMenu selectByPrimaryKey(String menuId);",
"Object getMenu() {\n return game.r;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_user_detail, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_user_detail, menu);\n return true;\n }",
"public ArrayList<MenuItem> getMenuItems() {\n return this.menuItems;\n }",
"@Override\n\tpublic List<Menu> getOneMenuInfo(Menu menu) {\n\t\treturn this.menuDao.getOneMenuInfo(menu);\n\t}",
"public Restaurant getSelectedRestaurant () {\n return restaurants.get(selectedRestaurant);\n }",
"@Override\n\tpublic List<Menu> getMenuPerById(Menu menu,Integer roleId) {\n\t\treturn this.menuDao.getMenuPerById(menu,roleId);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_user_list, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.user_menu, menu);\n return true;\n }",
"@Override\r\n\tpublic List<Tree> queryListMenu(String uiId) {\n\t\treturn permissionDao.queryListMenu(uiId);\r\n\t}",
"@Override\n\tpublic List<MenuItem> getMenuItemListCustomer() {\n\t\tList<MenuItem> menuItemListCustomer=new ArrayList<>();\n\t\tDate date =new Date();\n\t\tSimpleDateFormat simpleDateFormat=new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString ds=simpleDateFormat.format(date);\n\t\tDate ds1=DateUtil.convertToDate(ds);\n\t\t\n\t\tList<MenuItem> list=this.menuItemList;\n\t\tfor(MenuItem m:list)\n\t\t{\n\t\t\tDate d1=m.getDateOfLaunch();\n\t\t\tif((d1.before(ds1)||d1.equals(ds1))&& m.isActive())\n\t\t\t{\n\t\t\t\tmenuItemListCustomer.add(m);\n\t\t\t}\n\t\t}\n\t\treturn menuItemListCustomer;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n MenuItem menuItem = menu.findItem(R.id.action_room_users);\n menuItem.setIcon(\n new IconicsDrawable(this, FontAwesome.Icon.faw_users).actionBar().color(Color.WHITE));\n\n return true;\n }",
"public List<Categoria> getMenuPrincipal(){\n this.menuPrincipal = categoriaService.findAllMenu();\n System.out.println(\" ssss *********\"+menuPrincipal.toString());\n return menuPrincipal;\n }",
"public ArrayList<AlacarteMenu> getAlacarteMenu() {\n\t\tArrayList<AlacarteMenu> mmForOrders = new ArrayList<AlacarteMenu>();\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tmmForOrders.clear();\n\t\t\tmmForOrders = (ArrayList<AlacarteMenu>) ois.readObject();\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (IOException e) {\n\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t}\n\t\treturn mmForOrders;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.user_find, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.user_menu, menu);\n return true;\n }",
"public MenuItem getMenuItemByName(String name){\n for (MenuItem item: menuItems){\n if (item.getFoodName().equals(name)){\n return item;\n }\n }\n return null;\n }",
"UsrMmenus selectByPrimaryKey(String menuid);",
"public interface MenuItem {\n\tpublic int getBasePrice();\n\tpublic int getAddOnPrice();\n\tpublic int getTotalGuestPrice(int additionalGuestTotal);\n\tpublic String getName();\n\tpublic String getDetails();\n}",
"public Map<Long, Menu> fetchMenu() {\n\t\tlogger.info(\"fetching menu details from h2 database\");\n\t\tList<Menu> menuList = menuDaoImpl.getMenuDetails();\n\t\tMap<Long, Menu> map = menuList.stream().collect(Collectors.toMap(Menu::getId, menu -> menu));\n\t\treturn map;\n\t}",
"@Override\n\tpublic MenuItem getMenuItem(long menuItemId) \n\t{\n\t\tList<MenuItem> list=this.menuItemList;\n\t\tfor(MenuItem m:list)\n\t\t{\n\t\t\tif(m.getId()==menuItemId)\n\t\t\t{\n\t\t\t\treturn m;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_get_user_tasks, menu);\n return true;\n }",
"@Test\r\n\tpublic void testSelectUser() throws Exception{\n\t\tFinder finder=Finder.getSelectFinder(User.class).append(\"WHERE id=:userId \");\r\n\t\t\r\n\t\tfinder.setParam(\"userId\", \"admin\");\r\n\t\tPage page=new Page(1);\r\n\t\tpage.setOrder(\"name dsf\");\r\n\t\tpage.setSort(\"sdfsd\");\r\n\t\t List<User> list = menuService.queryForList(finder,User.class,page);\r\n\t\tSystem.out.println(list);\r\n\t}",
"@Override\n\tpublic List<Menu> getListByUsername(String username) {\n\t\tString hql = \" from Menu where enable=1 and autoId in(select menuId from GroupMenu where groupId in(SELECT groupId FROM UserMenuGroup where username='\"\n\t\t\t\t+ username + \"'))\";\n\t\thql+=\" order by menuOrder asc\";\n\t\tQuery query = getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}",
"public MainMenu getMainMenu() {\n return mainMenu;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.user_details_menu, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_user_details, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.user_info, menu);\n return true;\n }",
"public Object getMenuListV2(String appUserId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tlogger.info(\":::inside getMenuListV2\"+appUserId);\r\n\t\tif(appUserId!=null && !appUserId.equalsIgnoreCase(\"\")){\r\n\t\t\tObject menuList=getMenuListResponce(appUserId);\r\n\t\t\tif(menuList!=null){\r\n\t\t\t\treturn menuList;\r\n\t\t\t}else{\r\n\t\t\t\terrorCode=\"500\";\r\n\t\t\t\treturn ErrorMessage.getInstance().getErrorResponse(errorCode);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\terrorCode=\"1002\";\r\n\t\t\treturn ErrorMessage.getInstance().getErrorResponse(errorCode);\r\n\r\n\t\t}\r\n\t}",
"@Override\n\tpublic List<MenuDto> menuInfo() {\n\t\tList<MenuDto> menuByParent = mapper.menuByParent(0);\n\t\treturn menuByParent;\n\t}",
"public String getMenuids() {\n return menuids;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n try {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.finish();\n return true;\n case R.id.show_all_users:\n fab.setVisibility(View.INVISIBLE);\n showingSprints = false;\n\n if (users.size() == 0) {\n GetUsersOfProjectTask getUsersOfProjectTask = new GetUsersOfProjectTask(this);\n getUsersOfProjectTask.execute(\"projects/users\", currentProject.getProjectid());\n } else {\n initList();\n }\n\n allSprints.setVisible(true);\n allUsers.setVisible(false);\n\n setTitle(\"Users of \" + currentProject);\n\n return true;\n\n case R.id.show_all_sprints:\n fab.setVisibility(View.VISIBLE);\n showingSprints = true;\n setTitle(\"Sprints of \" + currentProject);\n\n initList(); //Showing sprints\n allSprints.setVisible(false);\n allUsers.setVisible(true);\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n } catch (Exception ex) {\n Toast.makeText(this, \"Error: \" + ex.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tIntent i;\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.menu_add_feed:\n\t\t\ti = new Intent(this, CreateContent.class);\n\t\t\tstartActivity(i);\n\t\t\tbreak;\n//\t\tcase R.id.menu_dummy:\n//\t\t\ti = new Intent(this, Dummy.class);\n//\t\t\tstartActivity(i);\n//\t\t\tbreak;\n\t\tcase R.id.menu_circles:\n\t\t\ti = new Intent(this, UserCircles.class);\n\t\t\tstartActivity(i);\n\t\t\tbreak;\n\t\tcase R.id.menu_users:\n\t\t\ti = new Intent(this, UserList.class);\n\t\t\ti.putExtra(\"url\", \"http://rasp.jatinhariani.com/final/random_users.php\");\n\t\t\tstartActivity(i);\n\t\t\tbreak;\n\t\tcase R.id.menu_logout:\n\t\t\ti = new Intent(this, Login.class);\n\t\t\tstartActivity(i);\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"private Select getMenu() {\n updateMenu();\n mainMenu.setSelectedItemCode(MENU_STATUS);\n return mainMenu;\n }",
"List<User> getActivatedUserList();",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_info_user,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"public void showMenuforUser(String path, Storage s) {\n\t\tint cnt;\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\t\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\tsb.append(\"**********Trenutna lokacija:\" + path+\"**********\\n\");\n\t\tif(privileges.contains(\"add_user\")) {\n\t\t\tcnt=1;\n\t\t\t\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za dodavanje novog korisnika\");\n\t\t\t\n\t\t}\n\t\tif(privileges.contains(\"add_directory\")) {\n\t\t\tcnt=2;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za dodavanje novog foldera\");\n\t\t}\n\t\tif(privileges.contains(\"add_file\")) {\n\t\t\tcnt=3;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za dodavanje novog fajla\");\n\t\t}\n\t\tif(privileges.contains(\"download\")) {\n\t\t\tcnt=4;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za preuzimanje fajla\");\n\t\t}\n\t\tif(privileges.contains(\"upload\")) {\n\t\t\tcnt=5;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+ \" za upload fajla\");\n\t\t}\n\t\tif(privileges.contains(\"search_repository\")) {\n\t\t\tcnt=6;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za pretragu repozitorijuma\");\n\t\t}\n\t\tif(privileges.contains(\"delete_file\")) {\n\t\t\tcnt=7;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za brisanje fajla\");\n\t\t}\n\t\tif(privileges.contains(\"add_user\")) {\n\t\t\tcnt=8;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za dodavanje zabranjenih ekstenzija\");\n\t\t}\n\t\tif(privileges.contains(\"download\") && s.getType().equals(\"local\")) {\n\t\t\tcnt=9;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za zipovnje fajlova\");\n\t\t}\n\t\tif(privileges.contains(\"upload\") && s.getType().equals(\"local\")) {\n\t\t\tcnt=10;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za anzipovanje fajlova\");\n\t\t}\n\t\t\n\t\tsb.append(\"\\n\");\n\t\tsb.append(\"Izaberite 'ls' za prikaz sadrzine trenutnog foldera\");\n\t\tsb.append(\"\\n\");\n\t\tsb.append(\"Izaberite 'cd' <folder name> ili <..> za kretanje po fajlu\");\n\t\t//sb.append(\"\\n\"+path+\" >\");\n\t\tSystem.out.print(sb.toString());\n\t\t\n\t}",
"@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }",
"@Override\n\tpublic List<MenuRoleDto> getMenu(String roleId) {\n\t\tList<MenuRoleDto> menu = mapper.getMenu(roleId);\n\t\treturn menu;\n\t}",
"@Transactional\r\n\tpublic List<Menu> getMenu() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\r\n\t\t// create a query\r\n\t\tQuery<Menu> theQuery = currentSession.createQuery(\"from Menu\", Menu.class);\r\n\r\n\t\t// execute query and get result list\r\n\t\tList<Menu> m = theQuery.getResultList();\r\n\t\t// return the results\r\n\t\treturn m;\r\n\r\n\t}",
"public int displayMainMenu() {\n while (true) {\n int index = requestFromList(guestPresenter.getMenu(), true);\n if (index == -1) {\n return -1;\n }\n if (index == 0) {\n int id = logIn();\n if (id != -1) {\n return id;\n }\n }\n if (index == 1) {\n register();\n }\n }\n }",
"Restaurant getRestaurant();",
"public String getActivationMenu();",
"public boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);// Menu Resource, Menu\n\t\tMenuItem item_logout = menu.findItem(R.id.menu_logout);\n\t\tMenuItem item_login = menu.findItem(R.id.menu_login);\n\n\t\tif (AadhaarUtil.mCurrentUser == AadhaarUtil.USER_CUSTOMER) {\n\t\t\titem_login.setVisible(false);\n\t\t\titem_logout.setVisible(true);\n\t\t} else if (AadhaarUtil.mCurrentUser == AadhaarUtil.USER_PARTNER) {\n\t\t\titem_logout.setVisible(false);\n\t\t\titem_login.setVisible(true);\n\t\t}\n\t\t\n\t\tMenuItem item_my_profile = menu.findItem(R.id.menu_my_profile);\n\t\tif (null != AadhaarUtil.photo) {\n\t\t\titem_my_profile.setIcon(new BitmapDrawable(getResources(),BitmapFactory.decodeByteArray(AadhaarUtil.photo, 0, AadhaarUtil.photo.length)));\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n\tpublic List<Menu> findAllMenuList() {\n\t\treturn (List<Menu>) menuDao.findAll();\n\t}",
"private int mainMenu(){\n System.out.println(\" \");\n System.out.println(\"Select an option:\");\n System.out.println(\"1 - See all transactions\");\n System.out.println(\"2 - See all transactions for a particular company\");\n System.out.println(\"3 - Detailed information about a company\");\n System.out.println(\"0 - Exit.\");\n\n return getUserOption();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n //Localizes the preferences and grabs the one needed based on key\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n\n //Finds and pulls the users name\n final String userName = preferences.getString(\"user_name\", \"user\");\n String nameOfUser = userName;\n\n\n TextView displayUsersName = findViewById(R.id.usersName);\n displayUsersName.setText(nameOfUser);\n\n //Finds and pulls the users image\n String usersImage = preferences.getString(\"ImageOfUser\", \"ic_baseline_tag_faces_24\");\n String stringOfUsersImage = usersImage;\n\n //Gets the id of the image entered\n int imgId = this.getResources().getIdentifier(stringOfUsersImage, \"drawable\", this.getPackageName());\n\n //Grabs the placement for the users image\n ImageView imageUser = findViewById(R.id.usersImage);\n imageUser.setImageResource(imgId);\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n cadastro = menu.findItem(R.id.action_cadastrar);\n vinte = menu.findItem(R.id.action_vinte_mais);\n mDataUser = FirebaseDatabase.getInstance().getReference().child(\"usuario\");\n\n if (mAuth.getCurrentUser() != null) {\n\n mDataUser.child(user.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String codi = dataSnapshot.getKey();\n String NomeMenu = dataSnapshot.child(\"nome\").getValue().toString();\n String EmailMenu = dataSnapshot.child(\"email\").getValue().toString();\n String imgMenu = dataSnapshot.child(\"imagem\").getValue().toString();\n String func = dataSnapshot.child(\"funcao\").getValue().toString();\n\n txtNome.setText(NomeMenu);\n if (func.toString().equals(\"vendedor\")){\n Intent intent = new Intent(MainActivity.this, TelaInicial.class);\n intent.putExtra(\"idForne\", NomeMenu);\n intent.putExtra(\"user_id\", codi);\n startActivity(intent);\n finish();\n //carregar(NomeMenu);\n //carregarDialog(NomeMenu);\n }\n\n if (func.toString().equals(\"admin\")){\n cadastro.setVisible(true);\n vinte.setVisible(true);\n carregarUsuarios();\n\n }else {\n cadastro.setVisible(false);\n vinte.setVisible(false);\n }\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }\n\n return true;\n }",
"String getMenuName();",
"public String getUser(int id){\n\t\treturn listePseudo.get(id);\n\t}",
"private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"ar <reponame> : To add a new repo \\n\"\n\t\t\t\t+ \"dr <reponame> : To delete a repo \\n\"\n\t\t\t\t+ \"or <reponame> : To open repo \\n\"\n\t\t\t\t+ \"lr : To list repo \\n\"\n\t\t\t\t+ \"lo : To logout \\n\"\n\t\t\t\t+ \"====================================\\n\");\n\t}",
"public ArrayList<MenuItem> getMenuItems() throws SQLException\r\n {\r\n ArrayList<MenuItem> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM menuitems\";\r\n myRs = myStmt.executeQuery(sqlQuery);\r\n while (myRs.next()) {\r\n result.add(new MenuItem(\r\n myRs.getString(1), \r\n myRs.getString(2), \r\n myRs.getString(3), \r\n Integer.parseInt(myRs.getString(4)), \r\n Integer.parseInt(myRs.getString(5)), \r\n Float.parseFloat(myRs.getString(6)), \r\n Float.parseFloat(myRs.getString(7)), \r\n Float.parseFloat(myRs.getString(8)), \r\n Float.parseFloat(myRs.getString(9)), \r\n Integer.parseInt(myRs.getString(10))\r\n ));\r\n }\r\n return result;\r\n }",
"@Override\n\tpublic List<Menu> getAllMenu() {\n\t\treturn this.menuDao.getAllMenu();\n\t}",
"public static ArrayList<Restaurant> getFav(Long idUser) {\n\t\tArrayList<Favourite> allFav=loadFavourite();\n\t\tArrayList<Restaurant> allRes=RestaurantDao.loadRestaurants();\n\t\tArrayList<Restaurant> returnFavRes=new ArrayList<>();\n\t\tfor(Favourite f:allFav) {\n\t\t\tif(f.getUserId().equals(idUser)) {\n\t\t\t\tfor(Restaurant r:allRes) {\n\t\t\t\t\tif(f.getIdRes().equals(r.getId())) {\n\t\t\t\t\t\treturnFavRes.add(r);\n\t\t\t\t\t\tSystem.out.println(\"restoran\"+r.getName() +\"\" +r.getAddress());\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn returnFavRes;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Bundle extras = getIntent().getExtras();\n\n if (extras != null) {\n\n int Value = extras.getInt(\"id\");\n if (Value > 0) {\n\n getMenuInflater().inflate(R.menu.menu_displayfriend, menu);\n }\n else {\n\n getMenuInflater().inflate(R.menu.menu_main, menu);\n }\n\n }\n return true;\n }",
"@Override\n\tpublic List<ReservationDetails> getMyReservations(User user) {\n\t\t\n\t\t\n\t\treturn rdDAO.getMyReservations(user);\n\t}"
] | [
"0.6852935",
"0.6506414",
"0.6250721",
"0.6188384",
"0.6055948",
"0.60550064",
"0.59995544",
"0.5962889",
"0.58939105",
"0.5857138",
"0.5854863",
"0.58291405",
"0.5802436",
"0.5778041",
"0.5774665",
"0.57577825",
"0.5741949",
"0.57352823",
"0.57139826",
"0.5706019",
"0.57040524",
"0.5689633",
"0.5682144",
"0.56767505",
"0.5672822",
"0.56519824",
"0.56468284",
"0.564531",
"0.56446934",
"0.564427",
"0.5627717",
"0.56207496",
"0.561664",
"0.5602872",
"0.55885136",
"0.5578228",
"0.5563994",
"0.5551074",
"0.55462205",
"0.55378705",
"0.55289954",
"0.550692",
"0.549629",
"0.5481499",
"0.5480666",
"0.5478795",
"0.5478795",
"0.547858",
"0.5478334",
"0.54681367",
"0.5451454",
"0.544598",
"0.5441344",
"0.54318845",
"0.5428438",
"0.5428434",
"0.5417732",
"0.5417237",
"0.5380172",
"0.536635",
"0.5355259",
"0.5353498",
"0.53528553",
"0.53476965",
"0.5340182",
"0.5337556",
"0.5336159",
"0.53342485",
"0.5321223",
"0.5320972",
"0.53197336",
"0.53189814",
"0.53104043",
"0.53100693",
"0.5304862",
"0.5302035",
"0.53015304",
"0.5295931",
"0.5292307",
"0.52867275",
"0.5286399",
"0.5284597",
"0.5279872",
"0.5273366",
"0.5270627",
"0.5267225",
"0.52669185",
"0.5266738",
"0.5263443",
"0.52565485",
"0.5256017",
"0.52471757",
"0.5243518",
"0.52403045",
"0.52294207",
"0.52281153",
"0.5227143",
"0.5223236",
"0.5221198",
"0.5220803"
] | 0.7435136 | 0 |
List menu items and add them to the adapter to be displayed. | public void listMenuItems(List<ParseObject> menuItems) {
for(ParseObject item : menuItems) {
String price = "[$" + item.getInt("price") + ".00]";
orderItems.add(item.getString("name") + " " + price);
}
this.itemObjects = menuItems;
adapter.notifyDataSetChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createmenu(){\n\n\n Context context = getApplicationContext();\n menuadpater = new MenuAdapter(context);\n\n MENULIST.setAdapter(menuadpater);\n\n\n }",
"private void updateMenuItems()\r\n\t {\r\n\t\t setListAdapter(new ArrayAdapter<String>(this,\r\n\t\t android.R.layout.simple_list_item_1, home_menu));\r\n\t\t \t \r\n\t }",
"public void getMenuItems(){ \n\t\tParseUser user = ParseUser.getCurrentUser();\n\t\tmenu = user.getParseObject(\"menu\");\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"Item\");\n\t\tquery.whereEqualTo(\"menu\", menu);\n\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\t\t\tpublic void done(List<ParseObject> menuItems, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tlistMenuItems(menuItems);\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void addDrawerItems() {\n String[] osArray = { \"Profile\", \"Email\", \"Payments\", \"Settings\", \"Help\" };\n mAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, osArray);\n mDrawerList.setAdapter(mAdapter);\n }",
"private void setUpDrawerList() {\n itemList = new ArrayList<>();\n\n itemList.add(new ItemSlideMenu(\"Roll\"));\n itemList.add(new ItemSlideMenu(\"About\"));\n itemList.add(new ItemSlideMenu(\"Log In\"));\n\n\n adapter = new SlidingMenuAdapter(this, itemList);\n listView.setAdapter(adapter);\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\n public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { // Add Items to menu\n if (v.getId() == R.id.listView) {\n String[] menuItems = getResources().getStringArray(R.array.menu);\n for (int i = 0; i < menuItems.length; i++) {\n menu.add(Menu.NONE, i, i, menuItems[i]);\n }\n }\n }",
"protected void getViewMenuItems(List items, boolean forMenuBar) {\n super.getViewMenuItems(items, forMenuBar);\n items.add(GuiUtils.MENU_SEPARATOR);\n List paramItems = new ArrayList();\n paramItems.add(GuiUtils.makeCheckboxMenuItem(\"Show Parameter Table\",\n this, \"showTable\", null));\n paramItems.add(doMakeChangeParameterMenuItem());\n List choices = getDataChoices();\n for (int i = 0; i < choices.size(); i++) {\n paramItems.addAll(getParameterMenuItems(i));\n }\n\n items.add(GuiUtils.makeMenu(\"Parameters\", paramItems));\n\n JMenu chartMenu = new JMenu(\"Chart\");\n chartMenu.add(\n GuiUtils.makeCheckboxMenuItem(\n \"Show Thumbnail in Legend\", getChart(), \"showThumb\", null));\n List chartMenuItems = new ArrayList();\n getChart().addViewMenuItems(chartMenuItems);\n GuiUtils.makeMenu(chartMenu, chartMenuItems);\n items.add(chartMenu);\n items.add(doMakeProbeMenu(new JMenu(\"Probe\")));\n\n }",
"@Override\n\tpublic int getCount() {\n\t\t return menuItems.size();\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adapters, menu);\n\t\treturn true;\n\t}",
"public void list_of_menu_items() {\n\t\tdriver.findElement(open_menu_link).click();\n\t}",
"private void createMenuList() {\n SlideMenuItem menuItem0 = new SlideMenuItem(ContentFragment.CLOSE, R.drawable.ic_action_remove);\n list.add(menuItem0);\n SlideMenuItem menuItem = new SlideMenuItem(ContentFragment.GAMES, R.drawable.ic_action_gamepad);\n list.add(menuItem);\n\n SlideMenuItem menuItem3 = new SlideMenuItem(ContentFragment.FRIENDS, R.drawable.ic_action_person);\n list.add(menuItem3);\n SlideMenuItem menuItem4 = new SlideMenuItem(ContentFragment.SETTINGS, R.drawable.ic_action_settings);\n list.add(menuItem4);\n }",
"public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.lab03_list, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_display_item_list, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.list_view, menu);\n\t\treturn true;\n\t}",
"private void setUpLoggedInDrawerList() {\n itemList = new ArrayList<>();\n\n itemList.add(new ItemSlideMenu(\"Roll\"));\n //itemList.add(new ItemSlideMenu(\"Profile\"));\n itemList.add(new ItemSlideMenu(\"About\"));\n itemList.add(new ItemSlideMenu(\"Log Out\"));\n\n adapter = new SlidingMenuAdapter(this, itemList);\n listView.setAdapter(adapter);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.bookmarks_menu, menu);\n\n ArrayAdapter<String> bookmarkAdapter = new ArrayAdapter<String>(this,R.id.bookmarks_list,)\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.list, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.list, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_item_list, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_item_list, menu);\n return true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"protected abstract void addMenuOptions();",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t// Handle presses on the action bar items\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.refresh:\n\t\t\t((MainActivity)getActivity()).refreshNewsArticles();\n\t\t\tnewsArticles = ((MainActivity) getActivity()).getNewsArticles();\n\t\t\tadapter = new NewsListAdapter(getActivity(), newsArticles);\n\t\t\t// fill listview\n\t\t\tsetListAdapter(adapter);\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"public interface ChooseMenuAdapter {\n\n int getMenuCount();\n\n String getMenuTitleByPosition(int position);\n\n View getView(int position);\n}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = convertView;\n if (view == null) {\n LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n view = vi.inflate(R.layout.menu_list, null);\n }\n\n ControlsMenuOptions menuItem = items.get(position);\n\n if (menuItem != null) {\n TextView header = (TextView) view.findViewById(R.id.tvMenuItem);\n header.setText(menuItem.getMenuDescription());\n }\n return view;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_list, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_list, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.list_view_demo, menu);\n\t\treturn true;\n\t}",
"public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}",
"@Override\n\t\t\tpublic int getCount(){\n\t\t\t\treturn menus.size();\n\t\t\t}",
"private void getMenu() {\n compositeDisposable.add(mcApi.getMenu()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Consumer<List<Category>>() {\n @Override\n public void accept(List<Category> categories) throws Exception {\n displayMenu(categories);\n }\n\n }));\n }",
"public void viewMenu() {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\tmm.clear();\n\n\t\t\tmm = (ArrayList<AlacarteMenu>) ois.readObject();\n\n\t\t\tString leftAlignFormat = \"| %-10s | %-37s | %-5s | %-12s | %n\";\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\n\t\t\t\n\t\t\tCollections.sort(mm); \n\t\t\tfor (AlacarteMenu item : mm) {\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\n\t\t\t\tSystem.out.format(leftAlignFormat, item.getMenuName(), item.getMenuDesc(), item.getMenuPrice(),\n\t\t\t\t\t\titem.getMenuType());\n\t\t\t}\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (IOException e) {\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"private void initializeMenuForListView() {\n\t\tMenuItem sItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_S_MENU));\n\t\tsItem.setOnAction(event ->\n\t\t\taddSAction()\n\t\t);\n\t\t\n\t\tMenuItem scItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_SC_MENU));\n\t\tscItem.setOnAction(event ->\n\t\t\t\taddScAction()\n\t\t);\n\t\t\n\t\tContextMenu menu = new ContextMenu(sItem, scItem);\n\t\tfirstListView.setContextMenu(menu);\n\t\tsecondListView.setContextMenu(menu);\n\t}",
"public void refreshMenu() {\n ObservableList list = FXCollections.observableArrayList();\n FileParser_Interface[] parsers = {new FileParser_DHCPnetworks(), new FileParser_RouterVlanNetwork(), new FileParser_SwitchConfigs(), new FileParser_VlanTagsOther()};\n list.addAll(Arrays.asList(parsers));\n this.setItems(list);\n //this.getSelectionModel().selectFirst(); // causes NullPointerExceptions when used, thou are warned\n this.setConverter(new ParserConverter());\n }",
"public List<MenuItem> getMenuItems(){\n return menuItems;\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\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n //Add any device elements we've discovered to the overflow menu\n for (int i=0; i < mDevices.size(); i++) {\n BluetoothDevice device = mDevices.valueAt(i);\n menu.add(0, mDevices.keyAt(i), 0, device.getName());\n }\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n navItems = getResources().getStringArray(R.array.navItems_array);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n mDrawerList = (ListView) findViewById(R.id.left_drawer);\n // Set the adapter for the list view\n mDrawerList.setAdapter(new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, navItems));\n // Set the list's click listener\n mDrawerList.setOnItemClickListener(new DrawerItemClickListener());\n return true;\n }",
"public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.expandable_list_view_test, menu);\r\n\t\treturn true;\r\n\t}",
"private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_weacon_list, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_beer_list, menu);\n return true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.sms_list, menu);\r\n\t\treturn true;\r\n\t}",
"private void setItemMenu() {\n choices = new ArrayList<>();\n \n choices.add(Command.INFO);\n if (item.isUsable()) {\n choices.add(Command.USE);\n }\n if (item.isEquipped()) {\n choices.add(Command.UNEQUIP);\n } else {\n if (item.isEquipable()) {\n choices.add(Command.EQUIP);\n }\n }\n \n if (item.isActive()) {\n choices.add(Command.UNACTIVE);\n } else {\n if (item.isActivable()) {\n choices.add(Command.ACTIVE);\n }\n }\n if (item.isDropable()) {\n choices.add(Command.DROP);\n }\n if (item.isPlaceable()) {\n choices.add(Command.PLACE);\n }\n choices.add(Command.DESTROY);\n choices.add(Command.CLOSE);\n \n this.height = choices.size() * hItemBox + hGap * 2;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.chat_list, menu);\n return true;\n }",
"private List<DrawerItem> getDrawerMenuItems() {\n List<DrawerItem> items = new ArrayList<DrawerItem>();\n items.add(new DrawerItem().setTitle(\"all\").setFeedStrategy(_personalKeyStrategyProvider.create()));\n items.add(new DrawerItem().setTitle(\"shared\").setFeedStrategy(_sharedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"recommended\").setFeedStrategy(_recommendedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"saved\").setFeedStrategy(_savedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"read\").setFeedStrategy(_readFeedStrategyProvider.create(0)));\n return items;\n }",
"@Override\n\tpublic Object getItem(int position) {\n\t\t return menuItems.get(position);\n\t}",
"private void populateListView() {\n String[] myItems = {\"Blue\", \"green\", \"Purple\", \"red\"};\n\n //creating listviewadapter which is an array for storing the data and linking it according to the\n //custom listview\n\n ArrayAdapter<String> listViewAdapter = new ArrayAdapter<String>(this, R.layout.da_items, myItems);\n //linking the listview with our adapter to present data\n ListView Lv = (ListView)findViewById(R.id.listView_data);\n Lv.setAdapter(listViewAdapter);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_note_list, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.playlist_contents, menu);\n return true;\n }",
"public void addMenu(Menu menu) {\r\n\t\titems.add(menu);\r\n\t}",
"List<ViewDefinition> listForMenu();",
"private void setupMenuItems() {\n\t\taboutMenu.setOnAction(event -> {\n\t\t\tAnchorPane root;\n\t\t\ttry {\n\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"about.fxml\"));\n\n\t\t\t\tStage stage = new Stage();\n\t\t\t\tstage.setScene(new Scene(root));\n\t\t\t\tstage.setTitle(\"About\");\n\t\t\t\tstage.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Error loading About Window - \" + e.getMessage());\n\t\t\t}\n\t\t});\n\n\t\texitMenu.setOnAction(event -> {\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\tPlatform.exit();\n\t\t\t\t\tlog.debug(\"Window closed\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tloadMenu.setOnAction(event -> loadFile(true));\n\n\t\tsaveMenu.setOnAction(event -> Main.serializeItems());\n\n\t\tgroupByMenu.setOnAction(event -> {\n\t\t\tOptional<String> sortOption = Alerter.getChoiceDialog(\"Sorting\", null, \"Select how you want to group: \");\n\t\t\tsortOption.ifPresent(letter -> groupItems(letter));\n\t\t});\n\n\t\tupdateAllMenu.setOnAction(event -> {\n\t\t\tnew Thread(new Task<Void>() {\n\t\t\t\t@Override\n\t\t\t\tprotected Void call() throws Exception {\n\t\t\t\t\tlog.debug(\"UpdateAll Thread Triggered\");\n\n\t\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\t\tupdateItem(b);\n\t\t\t\t\t});\n\n\t\t\t\t\tupdateList();\n\t\t\t\t\tMain.serializeItems();\n\n\t\t\t\t\tlog.debug(\"UpdateAll Thread terminated successfully\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}).start();\n\t\t});\n\n\t\tupdateMenu.setOnAction(event -> {\n\t\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\t\t\t\tupdateItem(itemBox);\n\t\t\t} else {\n\t\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"No Item selected\", null,\n\t\t\t\t\t\t\"Please select the Item you want to update!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\tlog.debug(\"Info Popup triggered, No item selected\");\n\t\t\t}\n\t\t});\n\n\t\tdeleteMenu.setOnAction(event -> {\n\t\t\tItemBox rem = itemsMap.remove(listView.getSelectionModel().getSelectedItem().getGtin());\n\t\t\tlog.info(\"Item: \" + rem.getName() + \" removed\");\n\t\t\tupdateList();\n\t\t});\n\n\t\trepeatMenu.setOnAction(event -> {\n\t\t\tif (lastCommand != null) {\n\t\t\t\tString[] props = lastCommand.split(\" \");\n\t\t\t\tlog.info(\"Repeat called with: \" + lastCommand);\n\n\t\t\t\tswitch (props[0]) {\n\t\t\t\tcase \"ADD\":\n\t\t\t\t\taddItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RM\":\n\t\t\t\t\tremoveItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tprintMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.OVERVIEW);\n\t\t});\n\n\t\tprintShoppingMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.SHOPPING);\n\t\t});\n\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.collection, menu);\n\t\treturn true;\n\t}",
"@Override\n public void showMenus(List<Menu> menus) {\n mMenusAdapter.setMenus(menus);\n mMenusAdapter.notifyDataSetChanged();\n hideProgressDialog();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.select_items, menu);\n return true;\n }",
"public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.play_list, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_chat_list, menu);\n return true;\n }",
"private void setupListView() {\n //Main and Description are located in the strings.xml file\n String[] title = getResources().getStringArray(R.array.Main);\n String[] description = getResources().getStringArray(R.array.Description);\n SimpleAdapter simpleAdapter = new SimpleAdapter(this, title, description);\n listview.setAdapter(simpleAdapter);\n\n listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n switch(position){\n case 0: {\n //Intent means action (communication between two components of the app)\n Intent intent = new Intent(MainActivity.this, WeekActivity.class);\n startActivity(intent);\n break;\n }\n case 1: {\n Intent intent = new Intent(MainActivity.this, SubjectActivity.class);\n startActivity(intent);\n break;\n }\n case 2: {\n Intent intent = new Intent(MainActivity.this, FacultyActivity.class);\n startActivity(intent);\n break;\n }\n case 3: {\n break;\n }\n default:{\n break;\n }\n }\n }\n });\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_list_urls, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_user_list, menu);\n return true;\n }",
"public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }",
"private void loadAdapter(){\n choices = contacts.getContacts();\n mAdapter = new MyListAdapter(this, choices);\n mListView.setAdapter(mAdapter);\n mListView.setClickListener(ContactListActivity.this);\n }",
"private void setUpList() {\n\t\tRoomItemAdapter adapter = new RoomItemAdapter(getApplicationContext(),\n\t\t\t\trName, rRate);\n\t\tlistView.setAdapter(adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\thandleClick(position);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.cards_list, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.product_list_view, menu);\n return true;\n }",
"public static void registerMenuItems(SIPCommMenu parentMenu)\n {\n if(protocolProviderListener == null)\n {\n protocolProviderListener = new ProtocolProviderListener(parentMenu);\n GuiActivator.bundleContext\n .addServiceListener(protocolProviderListener);\n }\n\n for (ProtocolProviderFactory providerFactory : GuiActivator\n .getProtocolProviderFactories().values())\n {\n for (AccountID accountID : providerFactory.getRegisteredAccounts())\n {\n ServiceReference<ProtocolProviderService> serRef\n = providerFactory.getProviderForAccount(accountID);\n ProtocolProviderService protocolProvider\n = GuiActivator.bundleContext.getService(serRef);\n\n addAccountInternal(protocolProvider, parentMenu);\n }\n }\n\n // if we are in disabled menu mode and we have only one item\n // change its name (like global auto answer)\n if( ConfigurationUtils.isAutoAnswerDisableSubmenu()\n && getAutoAnswerItemCount(parentMenu) == 1)\n {\n updateItem(getAutoAnswerItem(parentMenu, 0), true);\n }\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_list_artist, menu);\n return true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add_item, menu);\r\n\t\treturn true;\r\n\t}",
"public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }",
"public MenuAdapter(ArrayList<MenuModel> menu /*, ListItemClickListener listener*/, Context context) {\n this.menu = menu;\n// mOnClickListener = listener;\n this.context = context;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ll, menu);\n\t\t\n\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.friend_list, menu);\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n drawerItems.clear();\n for (Source s : sourcesByCategory.get(item.getTitle())) {\n drawerItems.add(s.getName());\n }\n\n ((ArrayAdapter) drawerList.getAdapter()).notifyDataSetChanged();\n\n return true;\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.list_details, menu);\n return true;\n }",
"private void createListView()\n {\n itens = new ArrayList<ItemListViewCarrossel>();\n ItemListViewCarrossel item1 = new ItemListViewCarrossel(\"Guilherme Biff\");\n ItemListViewCarrossel item2 = new ItemListViewCarrossel(\"Lucas Volgarini\");\n ItemListViewCarrossel item3 = new ItemListViewCarrossel(\"Eduardo Ricoldi\");\n\n\n ItemListViewCarrossel item4 = new ItemListViewCarrossel(\"Guilh\");\n ItemListViewCarrossel item5 = new ItemListViewCarrossel(\"Luc\");\n ItemListViewCarrossel item6 = new ItemListViewCarrossel(\"Edu\");\n ItemListViewCarrossel item7 = new ItemListViewCarrossel(\"Fe\");\n\n ItemListViewCarrossel item8 = new ItemListViewCarrossel(\"iff\");\n ItemListViewCarrossel item9 = new ItemListViewCarrossel(\"Lucini\");\n ItemListViewCarrossel item10 = new ItemListViewCarrossel(\"Educoldi\");\n ItemListViewCarrossel item11 = new ItemListViewCarrossel(\"Felgo\");\n\n itens.add(item1);\n itens.add(item2);\n itens.add(item3);\n itens.add(item4);\n\n itens.add(item5);\n itens.add(item6);\n itens.add(item7);\n itens.add(item8);\n\n itens.add(item9);\n itens.add(item10);\n itens.add(item11);\n\n //Cria o adapter\n adapterListView = new AdapterLsitView(this, itens);\n\n //Define o Adapter\n listView.setAdapter(adapterListView);\n //Cor quando a lista é selecionada para ralagem.\n listView.setCacheColorHint(Color.TRANSPARENT);\n }",
"private void LoadComponents() {\n MenuBaseAdapter adapter = new MenuBaseAdapter(this.getActivity(), DataApp.LISTDATA);\n // list.setAdapter(adapter);\n this.event.OnLodCompleteDataResult();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.quest_list, menu);\n return true;\n }",
"private void setUpMenu() {\n\t\tresideMenu = new ResideMenu(this);\n\t\tresideMenu.setBackground(R.drawable.menu_background);\n\t\tresideMenu.attachToActivity(this);\n\t\tresideMenu.setMenuListener(menuListener);\n\t\t// valid scale factor is between 0.0f and 1.0f. leftmenu'width is\n\t\t// 150dip.\n\t\tresideMenu.setScaleValue(0.6f);\n\n\t\t// create menu items;\n\t\titemGame = new ResideMenuItem(this, R.drawable.icon_game,\n\t\t\t\tgetResources().getString(R.string.strGame));\n\t\titemBook = new ResideMenuItem(this, R.drawable.icon_book,\n\t\t\t\tgetResources().getString(R.string.strBook));\n\t\titemNews = new ResideMenuItem(this, R.drawable.icon_news,\n\t\t\t\tgetResources().getString(R.string.strNews));\n\t\t// itemSettings = new ResideMenuItem(this, R.drawable.icon_setting,\n\t\t// getResources().getString(R.string.strSetting));\n\t\titemLogin = new ResideMenuItem(this, R.drawable.icon_share,\n\t\t\t\tgetResources().getString(R.string.strShare));\n\t\titemBookPDF = new ResideMenuItem(this, R.drawable.icon_bookpdf,\n\t\t\t\tgetResources().getString(R.string.strBookPDF));\n\t\titemMore = new ResideMenuItem(this, R.drawable.icon_more,\n\t\t\t\tgetResources().getString(R.string.strMore));\n\n\t\titemGame.setOnClickListener(this);\n\t\titemBook.setOnClickListener(this);\n\t\titemNews.setOnClickListener(this);\n\t\t// itemSettings.setOnClickListener(this);\n\t\titemBookPDF.setOnClickListener(this);\n\t\titemMore.setOnClickListener(this);\n\t\titemLogin.setOnClickListener(this);\n\n\t\tresideMenu.addMenuItem(itemBookPDF, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemBook, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemNews, ResideMenu.DIRECTION_LEFT);\n\t\t// resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n\n\t\tresideMenu.addMenuItem(itemGame, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemLogin, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemMore, ResideMenu.DIRECTION_RIGHT);\n\n\t\t// You can disable a direction by setting ->\n\t\t// resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n\t\tfindViewById(R.id.title_bar_left_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tfindViewById(R.id.title_bar_right_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"void addSampleModelMenus(Iterable<? extends JMenu> menus)\r\n {\r\n ActionListener actionListener = getSampleModelsMenuActionListener();\r\n for (JMenu menu : menus)\r\n {\r\n attachActionListener(menu, actionListener);\r\n menuBar.add(menu);\r\n }\r\n }",
"private void populateListView() {\n\t\tappList = getPackages();\n\t\tListView lv = (ListView) findViewById(R.id.TheListView);\n\t\tList<String> appNames = new ArrayList<String>();\n\t\tList<Drawable> appIcons = new ArrayList<Drawable>();\n\t\tfor(PInfo pi : appList){\n\t\t\tappNames.add(pi.getAppname());\n\t\t\tappIcons.add(pi.getIcon());\n\t\t}\n\t\tCustomListViewAdapter adapter = new CustomListViewAdapter(this, R.layout.app_name_icon, appNames.toArray(new String[appNames.size()]),appIcons.toArray(new Drawable[appIcons.size()]));\n\t\tlv.setAdapter(adapter);\n\t\tlv.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View view, int position,\n\t\t\t\t\tlong id) {\n\t\t\t\tToast.makeText(GetAppActivity.this, \"You Chose\"+appList.get(position).appname, Toast.LENGTH_SHORT).show();\n\t\t\t\tif(appList.get(position).toOpen!=null){\n\t\t\t\tgridModel.addIntent(appList.get(position).toOpen);\n\t\t\t\tstartActivity(appList.get(position).toOpen);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t}",
"private void addDrawerItems(){\n\n String[] listArr = getResources().getStringArray(R.array.navItems);\n navAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, listArr);\n drawerList.setAdapter(navAdapter);\n\n drawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n drawerList.setItemChecked(position, true);\n switch(position){\n case 0:\n intent = new Intent(ItemList.this, AddGoal.class);\n startActivity(intent);\n break;\n case 1:\n intent = new Intent(ItemList.this, GoalsList.class);\n startActivity(intent);\n break;\n case 2:\n intent = new Intent(ItemList.this, CompletedGoalsList.class);\n startActivity(intent);\n break;\n case 3:\n intent = new Intent(ItemList.this, AddWeight.class);\n startActivity(intent);\n break;\n case 4:\n intent = new Intent(ItemList.this, WeightHistory.class);\n startActivity(intent);\n break;\n case 5:\n intent = new Intent(ItemList.this, SelectItem.class);\n startActivity(intent);\n break;\n case 6:\n intent = new Intent(ItemList.this, ItemsHistory.class);\n startActivity(intent);\n break;\n default:\n break;\n }\n }\n });\n }",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n if (getUserVisibleHint()) {\n menu.findItem(R.id.menuSort).setVisible(true);\n if (adapter != null)\n set_menu_items(menu, adapter_order, adapter_reverse);\n }\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\r\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_log_list, menu);\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.sticker_list, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu_paper_list, menu);\n\t\treturn true;\n\t}",
"@Override\n\t public boolean onCreateOptionsMenu(Menu menu) {\n\t getMenuInflater().inflate(R.menu.main, menu);\n\t Contact = menu;\n\t ListOfArtist = menu;\n\t ListOfAlbum = menu;\n\t return true;\n\t }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.secret_list, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.customers_list, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_book_list, menu);\n return true;\n }",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"private void initListView() {\n\t\trefreshListItems();\n\n\t\t/* Add Context-Menu listener to the ListView. */\n\t\tlv.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCreateContextMenu(ContextMenu menu, View v,\n\t\t\t\t\tContextMenu.ContextMenuInfo menuInfo) {\n\t\t\t\tmenu.setHeaderTitle(((TextView) ((AdapterView.AdapterContextMenuInfo) menuInfo).targetView)\n\t\t\t\t\t\t.getText());\n\t\t\t\tmenu.add(0, CONTEXTMENU_EDITITEM, 0, \"Edit this VDR!\");\n\t\t\t\tmenu.add(0, CONTEXTMENU_DELETEITEM, 0, \"Delete this VDR!\");\n\t\t\t\t/* Add as many context-menu-options as you want to. */\n\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tmenu.add(0, MENU_ID_CARD_LIST, 1, getResources().getString(R.string.title_activity_card_list_activitytitle));\n\t\tmenu.add(0, MENU_ID_SETTING, 2, getResources().getString(R.string.title_activity_setting_activitytitle));\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_todolist, menu);\n return true;\n }"
] | [
"0.72694886",
"0.7198866",
"0.68044776",
"0.6647421",
"0.6635616",
"0.6579418",
"0.6568662",
"0.654176",
"0.6539475",
"0.6492935",
"0.64377403",
"0.6407277",
"0.63666034",
"0.6361132",
"0.636031",
"0.6337693",
"0.6269791",
"0.62541217",
"0.6251665",
"0.62372166",
"0.6232852",
"0.6232852",
"0.6227539",
"0.62239116",
"0.6132878",
"0.61230946",
"0.6121465",
"0.61167467",
"0.61167467",
"0.61125183",
"0.6102764",
"0.60887676",
"0.6084451",
"0.60833",
"0.6074127",
"0.6064028",
"0.6061895",
"0.60424143",
"0.6034442",
"0.6016219",
"0.59958327",
"0.59940004",
"0.59899044",
"0.598616",
"0.5975234",
"0.5968772",
"0.5963167",
"0.5953037",
"0.5951569",
"0.5950256",
"0.59498584",
"0.5948868",
"0.5943009",
"0.5938761",
"0.5937627",
"0.59257257",
"0.5920169",
"0.5913001",
"0.5910162",
"0.59033865",
"0.5901629",
"0.58978873",
"0.5896603",
"0.5885611",
"0.5883994",
"0.58785456",
"0.5862346",
"0.5859122",
"0.5857478",
"0.5855953",
"0.58558786",
"0.58513254",
"0.58507454",
"0.5849253",
"0.5843195",
"0.5835241",
"0.58286464",
"0.58255756",
"0.5822455",
"0.58199525",
"0.58192235",
"0.5812764",
"0.58120817",
"0.58075583",
"0.5807026",
"0.58055764",
"0.580483",
"0.5804557",
"0.5796857",
"0.579426",
"0.57916874",
"0.57867146",
"0.57841957",
"0.5776333",
"0.5775435",
"0.5772996",
"0.5769572",
"0.57655233",
"0.57598525",
"0.5755572"
] | 0.68078494 | 2 |
Update the total with all the selected items. | public void updatePrice(){
price = 0;
for (ParseObject selectedItem : selectedItems){
price += selectedItem.getInt("price");
}
TextView orderTotal = (TextView) findViewById(R.id.orderTotal);
orderTotal.setText("$" + price + ".00");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateTotal()\n {\n if(saleItems != null)\n {\n double tempVal = 0;\n\n for(int i = 0; i < saleItems.size(); i++)\n {\n if(saleItems.get(i) != null)\n {\n tempVal += saleItems.get(i).getPrice() * saleItems.get(i).getQuantity();\n }\n }\n totalText.setText(moneyFormat(String.valueOf(tempVal)));\n }\n }",
"public static void calculateTotal(){\n int i=0;\n total=0;\n while(i<CustomAdapter.selecteditems.size()){\n total+= CustomAdapter.selecteditems.get(i).getPrice() * CustomAdapter.selecteditems.get(i).getQuantity();\n i++;\n }\n String s=\"Rs \"+String.valueOf(total);\n tv_total.setText(s);\n }",
"private void updateTotal() {\r\n\t\t// We get the size of the model containing all the modules in the list.\r\n\t\tlabelTotal.setText(\"Total Modules: \" + String.valueOf(helperInstMod.model.size()));\r\n\t}",
"@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }",
"private void updateTotal() {\n int total = table.getTotal();\n vip.setConsumption(total);\n if (total > 0)\n payBtn.setText(PAY + RMB + total);\n else if (total == 0)\n payBtn.setText(PAY);\n }",
"public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}",
"public void itemsSelected() {\n getEntitySelect().close();\n Collection<T> selectedValues = getEntitySelect().getResults().getSelectedValues();\n setReferencesToParentAndPersist((T[]) selectedValues.toArray());\n showAddSuccessful();\n }",
"private static void updateTotals()\r\n\t{\r\n\t\ttaxAmount = Math.round(subtotalAmount * salesTax / 100.0);\r\n\t\ttotalAmount = subtotalAmount + taxAmount;\r\n\t}",
"public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }",
"public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelectedItem().toString();\n switch(servico) {\n case \"Consulta\":\n valor += 100;\n break;\n case \"Limpeza\":\n valor += 130;\n break;\n case \"Clareamento\":\n valor += 450;\n break;\n case \"Aparelho\":\n valor += 100;\n break;\n case \"Raio-x\":\n valor += 80;\n break;\n case \"Cirurgia\":\n valor += 70;\n break;\n }\n Total.setText(String.valueOf(valor));\n }",
"public void updateTotalSpentLabel() {\n totalSpentLabel.setText(\"Total: $\" + duke.expenseList.getTotalAmount());\n }",
"public void updateTotals(ShoppingCartModel shoppingCart)\n {\n Global.CURRENT_ORDER.updateAllPriceTotals();\n }",
"public void totalPrice(){\n int total = 0;\n\n if (list_order.isEmpty()) {\n totalHarga.setText(\"Rp. \" + 0);\n }\n else {\n for (int i = 0; i < list_order.size(); i++) {\n total += list_order.get(i).getHarga();\n }\n totalHarga.setText(\"Rp. \" + total);\n }\n }",
"private void updateSubtotal() {\n subtotal = entreePrice + drinkPrice + dessertPrice;\n subtotalEdtTxt.setText(String.format(\"$%.2f\", subtotal));\n }",
"@Override\r\n\tpublic void addTotal() {\n\t\ttotalPrice += myPrice;\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(OBSERVABLE_EVENT_ADD_TOTAL);\r\n\t}",
"public void updateTotalUnitAmmount(String totalUnits){\n\t\titem.setText(5, totalUnits);\n\t}",
"void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }",
"public void updateTotalsTotal(BigDecimal inTotal)\n\t{\n\t\t//sets text on the label to a big decimal\n\t\tjLTotalForDay.setText(\"Total for the day: £\" + new DecimalFormat(\"#0.00\").format(inTotal.doubleValue()));\n\t}",
"public void addExtras() {\n ObservableList<Extra> selected = extraOptions.getSelectionModel().getSelectedItems();\n if(extraSelected.getItems().size() > 5 || selected.size() > 6){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Warning!!\");\n alert.setHeaderText(\"No more than 6 toppings allowed!\");\n alert.setContentText(\"Please select 6 or less toppings.\");\n alert.showAndWait();\n } else {\n sandwhich.add(selected);\n extraSelected.getItems().addAll(selected);\n extraOptions.getItems().removeAll(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n }\n }",
"public void setTotal(int total) {\n this.total = total;\n }",
"private void updatePriceView() {\n int subTotal = 0;\n int cartQuantity = 0;\n int calculatedDiscount = 0;\n\n DecimalFormat decimalFormatter = new DecimalFormat(\"₹#,##,###.##\");\n\n for (CartItem cartItem : cartList) {\n cartQuantity += cartItem.getQuantity();\n subTotal += cartItem.getQuantity() * cartItem.getPrice();\n }\n\n switch (discountType) {\n case AMOUNT:\n calculatedDiscount = discount;\n break;\n case PERCENTAGE:\n calculatedDiscount = (subTotal * discount) / 100;\n break;\n }\n\n subTotalView.setText(decimalFormatter.format(subTotal));\n\n String count = \"(\" + cartQuantity;\n\n if (cartQuantity < 2) {\n count += \" Item)\";\n } else {\n count += \" Items)\";\n }\n\n textNumberItems.setText(count);\n discountView.setText(decimalFormatter.format(calculatedDiscount));\n total = subTotal - calculatedDiscount;\n totalView.setText(decimalFormatter.format(total));\n updateCartNotification(cartQuantity);\n }",
"public void setTotal(int value) {\n this.total = value;\n }",
"public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}",
"public void updateTotalQuestions() {\n\t\ttotalQuestionsNum.setText(Integer.toString(noOfQuestions));\n\t}",
"private void updateCurrentCalories() {\n currentCalories = 0;\n currentFats = 0;\n currentCarbs = 0;\n currentProteins = 0;\n for (Food food : foodListView.getItems()) {\n currentCalories += food.getCalories();\n currentFats += food.getFat().getAmount();\n currentCarbs += food.getCarbs().getAmount();\n currentProteins += food.getProtein().getAmount();\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}",
"public void update(){\n label = tag.getSelectedItemPosition() == 0 ? \"all\" : mLabel[tag.getSelectedItemPosition()];\n Refresh();\n }",
"public void total() {\n\t\t\n\t}",
"public void count() \r\n\t{\r\n\t\tcountItemsLabel.setText(String.valueOf(listView.getSelectionModel().getSelectedItems().size()));\r\n\t}",
"boolean updateItems() {\n return updateItems(selectedIndex);\n }",
"private void updateItemQuantityAndTotal(Item item){\r\n\t\tItem oldItem = items.get(item.getItemIdentifier());\r\n\t\toldItem.increaseQuantity(new Amount(1));\r\n\t\titems.put(oldItem.getItemIdentifier(), oldItem);\r\n\t\ttotal.updateTotal(item);\r\n\t}",
"public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}",
"public void totalDaysNutrition(){\n\n //if no meals are set clear the daily nutritional information\n if (breakfastCombo.getSelectionModel().isEmpty() && lunchCombo.getSelectionModel().isEmpty() &&\n dinnerCombo.getSelectionModel().isEmpty()){\n clearTotalNutrition();\n return;\n }\n\n double totalCalories = 0;\n double totalSugar = 0;\n double totalProtein = 0;\n double totalFibre = 0;\n double totalCarbs = 0;\n double totalFat = 0;\n\n //get breakfast nutritional information\n //if there is a selection priorities over saved meal\n if (!breakfastCombo.getSelectionModel().isEmpty()){\n Recipe breakfast = breakfastCombo.getSelectionModel().getSelectedItem();\n totalCalories = breakfast.getTotalCalories();\n totalCarbs = breakfast.getTotalCarbs();\n totalSugar = breakfast.getTotalSugar();\n totalProtein = breakfast.getTotalProtein();\n totalFibre = breakfast.getTotalFibre();\n totalFat = breakfast.getTotalFat();\n }\n\n //get lunch nutritional information\n //if there is a selection priorities over saved meal\n if (!lunchCombo.getSelectionModel().isEmpty()){\n Recipe lunch = lunchCombo.getSelectionModel().getSelectedItem();\n totalCalories += lunch.getTotalCalories();\n totalCarbs += lunch.getTotalCarbs();\n totalSugar += lunch.getTotalSugar();\n totalProtein += lunch.getTotalProtein();\n totalFibre += lunch.getTotalFibre();\n totalFat += lunch.getTotalFat();\n }\n\n //get dinner nutritional information\n //if there is a selection priorities over saved meal\n if (!dinnerCombo.getSelectionModel().isEmpty()){\n Recipe dinner = dinnerCombo.getSelectionModel().getSelectedItem();\n totalCalories += dinner.getTotalCalories();\n totalCarbs += dinner.getTotalCarbs();\n totalSugar += dinner.getTotalSugar();\n totalProtein += dinner.getTotalProtein();\n totalFibre += dinner.getTotalFibre();\n totalFat += dinner.getTotalFat();\n }\n\n //round the totals\n int calories = (int) Math.round(totalCalories);\n int sugar = (int) Math.round(totalSugar);\n int protein = (int) Math.round(totalProtein);\n int fibre = (int) Math.round(totalFibre);\n int carbs = (int) Math.round(totalCarbs);\n int fat = (int) Math.round(totalFat);\n\n //format information into strings\n String lineOne = \"Calories \" + calories + \"KCal\\t Sugar \" + sugar + \" g\\t\\t Protein \" + protein + \" g\";\n String lineTwo = \"Fibre \" + fibre + \" g\\t\\t\\t Carbs \" + carbs + \" g\\t\\t Fat \" + fat + \" g\";\n\n //format and display the information in labels\n setUpNutritionLabel(totalNutritionOne, plannerColor, lineOne);\n setUpNutritionLabel(totalNutritionTwo, plannerColor, lineTwo);\n\n }",
"public void setTotalItemCount(Integer totalItemCount) {\n this.totalItemCount = totalItemCount;\n }",
"@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}",
"public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }",
"public void clearSelected() {\n ObservableList<Extra> selected = extraSelected.getItems();\n for(int i =0; i < selected.size(); i++){\n sandwhich.remove(selected.get(i));\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n\n\n }",
"void setSelectedItems(ValueType selectedItems);",
"public void generarTotal(){\n\n\t\tfloat total = 0;\n\n\t\tfor (int con = 0; con < modelo.getRowCount(); con++) {\n\n\t\t\ttotal += (float) tabla.getValueAt(con, 3);\n\t\t\t\n\t\t}\n\n\t\tcampoTotal.setText(formato.format(total));\n\n\t\tlimpiarCampos();\n\n\t}",
"private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}",
"public void updateQuestionComboBox(int previousTotal) {\n\t\t//set up list box with question numbers\n\t\tfor (int n = previousTotal; n < noOfQuestions; n++) {\n\t\t\tquestionNoList.addItem(\"\" + (n + 1));\n\t\t}\n\t}",
"public void setTotal(float total) {\n this.total = total;\n }",
"public void clearItemSelections() {\n mQuantityOrdered = new int[EMOJI_DOLLARSIGN.length];\n notifyDataSetChanged();\n if (mTotalItemsChangedListener != null) {\n mTotalItemsChangedListener.onTotalItemsChanged(0);\n }\n }",
"private void onUpdateSelected() {\r\n mUpdaterData.updateOrInstallAll_WithGUI(\r\n null /*selectedArchives*/,\r\n false /* includeObsoletes */,\r\n 0 /* flags */);\r\n }",
"private void onBasketTotalChanged(String total){\n binding.textViewTotalValue.setText(String.format(\"$%s\", total));\n }",
"@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}",
"public void setTotal(int total) {\n\t\tthis.total = total;\n\t}",
"public interface TotalItemsChangedListener {\n void onTotalItemsChanged(int totalItems);\n }",
"private double calculateTotal() {\n Log.d(\"Method\", \"calculateTotal()\");\n\n double extras = 0;\n CheckBox cb = (CheckBox) findViewById(R.id.whipped_checkbox_view);\n\n if (cb.isChecked()) {\n extras = coffeeCount * 0.75;\n }\n return (coffeeCount * coffeePrice) + extras;\n }",
"public void incrementTotal(){\n total++;\n }",
"public static void updateTotal(Label totalPacketsCaptured) {\n //Set total number of packets captured\n int totalNumPackets = DatabaseInteraction.getTotalPackets();\n totalPacketsCaptured.setText(String.valueOf(totalNumPackets));\n }",
"@Override\n public void update() {\n selectedLevel.update();\n }",
"@JsonProperty(\"total_items\")\n public void setTotalItems(Long totalItems) {\n this.totalItems = totalItems;\n }",
"private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}",
"public void setTotal(Double total);",
"public void updateSelection() {\n\t\t\n\t}",
"public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}",
"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 void totalBill(){\r\n\t\tint numOfItems = ItemsList.size();\r\n\t\t\r\n\t\tBigDecimal runningSum = new BigDecimal(\"0\");\r\n\t\tBigDecimal runningTaxSum = new BigDecimal(\"0\");\r\n\t\t\r\n\t\tfor(int i = 0;i<numOfItems;i++){\r\n\t\t\t\r\n\t\t\trunningTaxSum = BigDecimal.valueOf(0);\r\n\t\t\t\r\n\t\t\tBigDecimal totalBeforeTax = new BigDecimal(String.valueOf(this.ItemsList.get(i).getPrice()));\r\n\t\t\t\r\n\t\t\trunningSum = runningSum.add(totalBeforeTax);\r\n\t\t\t\r\n\t\t\tif(ItemsList.get(i).isSalesTaxable()){\r\n\t\t\t\r\n\t\t\t BigDecimal salesTaxPercent = new BigDecimal(\".10\");\r\n\t\t\t BigDecimal salesTax = salesTaxPercent.multiply(totalBeforeTax);\r\n\t\t\t \r\n\t\t\t salesTax = round(salesTax, BigDecimal.valueOf(0.05), RoundingMode.UP);\r\n\t\t\t runningTaxSum = runningTaxSum.add(salesTax);\r\n\t\t\t \r\n \r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(ItemsList.get(i).isImportedTaxable()){\r\n\r\n\t\t\t BigDecimal importTaxPercent = new BigDecimal(\".05\");\r\n\t\t\t BigDecimal importTax = importTaxPercent.multiply(totalBeforeTax);\r\n\t\t\t \r\n\t\t\t importTax = round(importTax, BigDecimal.valueOf(0.05), RoundingMode.UP);\r\n\t\t\t runningTaxSum = runningTaxSum.add(importTax);\r\n\t\t\t \r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tItemsList.get(i).setPrice(runningTaxSum.floatValue() + ItemsList.get(i).getPrice());\r\n\t\t\r\n\t\t\ttaxTotal += runningTaxSum.doubleValue();\r\n\t\t\t\r\n\t\t\trunningSum = runningSum.add(runningTaxSum);\r\n\t\t}\r\n\t\t\ttaxTotal = roundTwoDecimals(taxTotal);\r\n\t\t\ttotal = runningSum.doubleValue();\r\n\t}",
"private void updateOverview() {\n\t\t\n\t\t//check if anything is selected\n\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\n\t\t\tnameLabel.setText(itemBox.getName());\n\t\t\tamountLabel.setText(String.valueOf(itemBox.getAmount()) + \"x\");\n\t\t\tgtinLabel.setText(itemBox.getGtin());\n\t\t\tcategoriesLabel.setText(itemBox.getCategoriesText(\"long\"));\n\t\t\tattributesLabel.setText(itemBox.getAttributes());\n\t\t\tlog.info(\"Overview set to \" + itemBox.getName());\n\t\t}\t\n\t}",
"@Override\r\n public void update() {\r\n this.highestRevenueRestaurant = findHighestRevenueRestaurant();\r\n this.total = calculateTotal();\r\n }",
"private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }",
"private void calcTotalAmount(){\n\t totalAmount = 0;\n\t\tfor(FlightTicket ft : tickets)\n\t\t{\n\t\t\ttotalAmount += ft.getClassType().getFee() * getFlight().getFlightCost();\n\t\t}\n\t\tsetTotalAmount(totalAmount);\n\t}",
"public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }",
"void setTotal(BigDecimal total);",
"private void calcFinanceTotals() {\n System.out.println(\"calcFinanceTotals\");\n financeWindow.clear();\n for (int i = 0; i < clubEventList.totalSize(); i++) {\n financeWindow.calcPlus(clubEventList.getUnfiltered(i));\n }\n financeWindow.display();\n }",
"void populateItemQuantity() {\n for (int i = 0; i < 10; i++) {\n String number = String.valueOf(i + 1);\n comboQuantity.getItems().add(i, number);\n }\n comboQuantity.setEditable(true);\n comboQuantity.getSelectionModel().selectFirst();\n }",
"public void setTotal(Double total) {\n this.total = total;\n }",
"public void setTotal(Double total) {\n this.total = total;\n }",
"public void setTotal(Double total) {\n this.total = total;\n }",
"private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }",
"protected void updateCartInfoUI() {\n SharedPref.putCartitesmQty(getContext(), mCartInfo.getSummaryQty());\n this.updateCartTotal();\n// updateMenu();\n }",
"private void itemSelected(){\n \t//* count selected items\n \tint c=0;\n \tfor (int i = 0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\tc++;\n \t\t}\n \t}\n \tif(c==0){\n \t\treturn; //* if no item selected then do nothing\n \t}\n \t\n \t//* get the new selected items\n \tString[][] tmp1=new String[c][2];\n \tfor (int i = 0, j=0; i<jTable4.getRowCount(); i++){\n \t\tif((Boolean)jTable4.getModel().getValueAt(i, 0)){\n \t\t\ttmp1[j]=new String[2];\n \t\t\ttmp1[j][0]=jTable4.getModel().getValueAt(i, 1).toString();\n \t\t\ttmp1[j++][1]=\"0\";\n \t\t}\n \t}\n \t\n \t//* get the previously selected items\n \tString[][] tmp2=new String[jTable3.getModel()==null? 0: jTable3.getModel().getRowCount()][9];\n \tfor (int i = 0; i<tmp2.length; i++){\n \t\ttmp2[i]=new String[9];\n \t\ttmp2[i][0]=jTable3.getModel().getValueAt(i, 1).toString();\n \t\ttmp2[i][1]=jTable3.getModel().getValueAt(i, 2).toString();\n \t\ttmp2[i][2]=jTable3.getModel().getValueAt(i, 3).toString();\n \t\ttmp2[i][3]=jTable3.getModel().getValueAt(i, 5).toString();\n \t\ttmp2[i][4]=jTable3.getModel().getValueAt(i, 7).toString();\n \t\ttmp2[i][5]=jTable3.getModel().getValueAt(i, 9).toString();\n \t\ttmp2[i][6]=jTable3.getModel().getValueAt(i, 11).toString();\n \t\ttmp2[i][7]=jTable3.getModel().getValueAt(i, 13).toString();\n \t\ttmp2[i][8]=jTable3.getModel().getValueAt(i, 15).toString();\n \t}\n \tfillPoDet(tmp2, tmp1); //* reconstruct PO table\n \tjTabbedPane1.setSelectedIndex(0);\n }",
"private int getSelectedCount() {\r\n\t int count = 0;\r\n\t for (int i = 0; i < _selectedList.size(); ++i) {\r\n\t count += _selectedList.get(i) ? 1 : 0;\r\n\t }\r\n\t return count;\r\n\t}",
"@Override\n public void onClick(View view) {\n helper.increaseQty(item);\n holder.mQuantity.setText(String.valueOf(String.valueOf(helper.getQuantityFromTable(item))));\n holder.mPrice.setText(\"$\" + getNewPrice(item, holder));\n// holder.mTotal.setText(\"$\"+total);\n\n }",
"@Override\n public double getTotal() {\n return total;\n }",
"private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {\n if(drum_one.isSelected() == true){\n drum_capacity = \"50 Litres Drum\";\n price = 100;\n }\n else if(drum_two.isSelected() == true){\n drum_capacity = \"100 Litres Drum\";\n price = 200;\n }\n else if(drum_three.isSelected() == true){\n drum_capacity = \"150 Litres Drum\";\n price = 250;\n }\n else if(drum_four.isSelected() == true){\n drum_capacity = \"200 Litres Drum\";\n price = 400;\n }\n int quantity = Integer.parseInt(text_quantity.getValue().toString());\n int total = quantity * price;\n \n model = (DefaultTableModel)jTable1.getModel();\n model.addRow(new Object[]{\n drum_capacity,\n price,\n quantity,\n total\n });\n \n int tot_amount = 0;\n for(int i = 0; i < jTable1.getRowCount(); i++){\n tot_amount += Integer.parseInt(jTable1.getValueAt(i, 3).toString());\n }\n text_amount.setText(Integer.toString(tot_amount));\n }",
"public void Loadata(){ // fill the choice box\n stats.removeAll(stats);\n String seller = \"Seller\";\n String customer = \"Customer\";\n stats.addAll(seller,customer);\n Status.getItems().addAll(stats);\n }",
"private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }",
"public void defaultSetup() {\n\t\tthis.cart = this.endUser.getCart();\n\t\tLinkedList<Integer> prices = cart.getPrices();\n\t\tLinkedList<Integer> units = cart.getUnits();\n\t\tallProducts = FXCollections.observableList(cart.getProducts());\n\t\tallPrices = FXCollections.observableList(cart.getPrices());\n\t\tallUnits = FXCollections.observableList(cart.getUnits());\n\t\tlsvProduct.setItems(allProducts);\n\t\tlsvPrice.setItems(allPrices);\n\t\tlsvUnit.setItems(allUnits);\n\t\tint total_value = 0;\n\t\tfor (int i=0; i<prices.size();i++) {\n\t\t\ttotal_value += prices.get(i)*units.get(i);\n\t\t}\n\t\tlblTotal.setText(Integer.toString(total_value));\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t\tload(CustomersList.table);\n\t\t\t\tCustomersList.setTotalCompanyDemand();\n\t\t\t\tCustomersList.setTotalResive();\n\t\t\t\tCustomersList.setTotalShopping();\n\t\t\t\tCustomerPaidCheck();\n\t\t\t\tdispose();\n\n\t\t\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic <I extends ResourceCollectionTransformation<S, T>> I total(Long totalCount) {\n\t\ttarget.setTotal(totalCount);\n\t\treturn (I) this;\n\t}",
"private void calcPrice() {\n double itemPrice = 0;\n \n //get price of burger (base)\n if (singleRad.isSelected())\n {\n itemPrice = 3.50;\n }\n else \n {\n itemPrice = 4.75;\n }\n \n //check options add to item price\n if(cheeseCheckbox.isSelected())\n itemPrice = itemPrice += 0.50;\n if(baconCheckbox.isSelected())\n itemPrice = itemPrice += 1.25;\n if(mealCheckbox.isSelected())\n itemPrice = itemPrice += 4.00;\n \n //include the quantity for the item price\n int quantity= 1;\n if (quantityTextField.getText().equals(\"\"))\n quantityTextField.setText(\"1\");\n quantity = Integer.parseInt(quantityTextField.getText());\n itemPrice = itemPrice * quantity;\n\n \n //show the price no $ symbol\n \n itemPriceTextField.setText(d2.format(itemPrice));\n }",
"public void selectAll() {\n setSelectedFurniture(this.home.getFurniture());\n }",
"public int getNumTotal() {\n return nucleiSelected.size();\n }",
"public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}",
"public int getTotalItems()\n {\n return totalItems;\n }",
"public void setTotal(BigDecimal total) {\n this.total = total;\n }",
"public void setTotal(BigDecimal total) {\n this.total = total;\n }",
"private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}",
"public void setTotalCount(int totalCount) {\n this.totalCount = totalCount;\n }",
"public void prepare(View view, int position){\n double amount = 0,freeAmount=0,itemVatAmount=0;\n\n if(((CheckBox)view).isChecked()){\n reviseSalesOrderList = selectedArrayList.get(position);\n reviseSalesOrderList.setISCheckedItem(true);\n reviseSalesOrderList.setQuantity(1);\n selectedArrayList.add(reviseSalesOrderList);\n adapterForReviseSelected.notifyDataSetChanged();\n setTotalAmounts(selectedArrayList);\n\n }else {\n\n reviseSalesOrderList = selectedArrayList.get(position);\n reviseSalesOrderList.setISCheckedItem(false);\n selectedArrayList.remove(reviseSalesOrderList);\n netTotalAmount = netTotalAmount -reviseSalesOrderList.getAmount();\n totalFreeAmount = totalFreeAmount-(reviseSalesOrderList.getFreeQuantity()*reviseSalesOrderList.getUnitSellingPrice());\n\n tvTotal.setText(String.format(\"Rs. %.2f\", netTotalAmount));\n tvTotalDiscountAmount.setText(String.format(\"Rs. %.2f\", totalFreeAmount));\n tvTotalAmount.setText(String.format(\"Rs. %.2f\", totalFreeAmount+netTotalAmount));\n\n\n }\n\n }",
"public void setTotalAvailable(Double totalAvailable){\n this.totalAvailable = totalAvailable;\n }",
"public void setTotalAbonos() {\n String totalAbonos = this.costoAbono.getText();\n int total = Integer.parseInt(totalAbonos.substring(1,totalAbonos.length()));\n this.tratamientotoSelected.setTotalAbonos(total);\n \n PlanTratamientoDB.editarPlanTratamiento(tratamientotoSelected);\n }",
"public native int getTotal() /*-{\n\t\treturn this.total;\n\t}-*/;",
"public void selectAll (){\r\n\t\tboolean noNeedNotification = (modeSelectAll && unselectedDataIds.isEmpty());\r\n\t\t\r\n\t\tunselectedDataIds.clear(); \r\n\t\tselectedDataIds.clear();\r\n\t\tmodeSelectAll = true ;\r\n\t\tif (! noNeedNotification)\r\n\t\t\tfireSelectionChangeNotification();\r\n\t}",
"@Override\n public void onItemSelected(AdapterView parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n paymentMethode = item;\n\n Mix mix = mdb.getMix(1);\n\n feeTotal = 0;\n fee.setText(\"\");\n\n// if((paymentMethode.matches(\"Cash\") || paymentMethode.matches(\"MPESA\")\n// || paymentMethode.matches(\"Bank Transfer\"))\n// && (getIntent().getStringExtra(\"FROM\").matches(\"MIX\"))){\n// total.setText(\"\" + globalTotal);\n// fromMix = true;\n// }\n\n LinearLayout.LayoutParams show =\n new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.WRAP_CONTENT, 1);\n LinearLayout.LayoutParams hide =\n new LinearLayout.LayoutParams(0, 0, 0);\n\n if((paymentMethode.matches(\"MPESA\") || paymentMethode.matches(\"Bank Transfer\"))\n && !(getIntent().getStringExtra(\"WHAT\").matches(\"PAY\")) ){\n feeLL.setLayoutParams(show);\n feeTotal = 0;\n\n } else {\n feeLL.setLayoutParams(hide);\n\n }\n\n if (paymentMethode.matches(\"Mix\")) {\n if((total.getText().toString()).matches(\"\") || (globalTotal <= 0)){\n Log.d(TAG, \"totals was null..\");\n total.setError(\"No amount set\");\n total.requestFocus();\n payment.setSelection(0);\n\n } else {\n Intent intent = new Intent(getApplicationContext(), MixPaymentActivity.class);\n\n if ((getIntent().getStringExtra(\"WHAT\").matches(\"PAY\"))) {\n intent.putExtra(\"FROM\", \"REC\");\n intent.putExtra(\"CREDIT\", \"NO\");\n\n } else {\n intent.putExtra(\"FROM\", \"PAY\");\n intent.putExtra(\"CREDIT\", \"NO\");\n\n }\n\n intent.putExtra(\"TOTAL\", \"\" + (globalTotal + savingsTotals));\n\n startActivity(intent);\n }\n } else {\n mix.setFlag(\"false\");\n mix.setCredit(0);\n mix.setCash(0);\n mix.setMpesa(0);\n mix.setBank(0);\n mix.setMpesaFee(0);\n mix.setBankFee(0);\n\n mdb.updateMix(mix);\n\n total.setText(\"\" + numberFormat.format(globalTotal));\n\n if (paymentMethode.matches(\"MPESA\") && !(getIntent().getStringExtra(\"WHAT\").matches(\"PAY\"))) {\n int feeSuj = mpesaFee(globalTotal);\n\n fee.setText(\"\" + feeSuj);\n feeTotal = feeSuj;\n }\n\n fromMix = true;\n\n }\n\n // Showing selected spinner item\n //Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n }",
"private void refreshData() {\n\t\tif (error == null) {\n\t\t\terror = \"\";\n\t\t}\n\t\terrorLabel.setText(error);\n\t\tif (error.trim().length() > 0) {\n\t\t\terror = \"\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get instance of system\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t\n\t\t// Populate info\n\t\tlblItemname.setText(item.getName());\n\t\tlblItemPrice.setText(String.format(\"$%.2f\", item.getPrice()/100.0));\n\t\t\n\t\t\n\t\t// Populate list\n\t\tString prev = supplyList.getSelectedValue();\n\t\tlistModel.clear();\n\t\tIterator<Supply> its = item.getSupplies().iterator();\n\t\tSupply current;\n\t\twhile(its.hasNext()) {\n\t\t\tcurrent = its.next();\n\t\t\tlistModel.addElement(String.format(\"%.20s %.2f\", current.getSupplyType().getName(), current.getQuantity()));\n\t\t}\n\t\tif(prev != null) supplyList.setSelectedValue(prev, true);\n\t\t\n\t\t// Populate combo box\n\t\tprev = (String) ingredientsComboBox.getSelectedItem();\n\t\tingredientsComboBox.removeAllItems();\n\t\tIterator<SupplyType> itst = ftms.getSupplyTypes().iterator();\n\t\twhile(itst.hasNext()) {\n\t\t\tingredientsComboBox.addItem(itst.next().getName());\n\t\t}\n\t\tif(prev != null) ingredientsComboBox.setSelectedItem(prev);\n\t\t\n\t\t// Reset text field\n\t\tqtyTextField.setText(\"\");\n\t}"
] | [
"0.7444816",
"0.73487014",
"0.70391876",
"0.68250066",
"0.64205605",
"0.6373534",
"0.63409245",
"0.6266258",
"0.62365866",
"0.62062925",
"0.6196094",
"0.618609",
"0.6183222",
"0.61414003",
"0.61251515",
"0.6069151",
"0.60061115",
"0.60046434",
"0.59465116",
"0.59442514",
"0.594339",
"0.5939285",
"0.5918768",
"0.5913544",
"0.5912589",
"0.5911032",
"0.5911032",
"0.5911032",
"0.5893736",
"0.58851355",
"0.58741975",
"0.5864694",
"0.5850473",
"0.583613",
"0.5810823",
"0.5801079",
"0.5780701",
"0.57791126",
"0.57672733",
"0.57630056",
"0.57578605",
"0.5718062",
"0.5710873",
"0.5694376",
"0.56809866",
"0.56683534",
"0.56531304",
"0.5652105",
"0.56500447",
"0.5622674",
"0.5622375",
"0.56202084",
"0.56072724",
"0.5605278",
"0.55912966",
"0.5587421",
"0.55799526",
"0.55731773",
"0.55593365",
"0.55508965",
"0.55413777",
"0.554059",
"0.55377305",
"0.55295736",
"0.55267686",
"0.552466",
"0.5509626",
"0.5492872",
"0.5466866",
"0.54654294",
"0.54654294",
"0.54654294",
"0.5452366",
"0.54408836",
"0.54361254",
"0.54303724",
"0.54217595",
"0.54194766",
"0.54171807",
"0.5404244",
"0.5403395",
"0.53996074",
"0.5389912",
"0.5381514",
"0.5380109",
"0.53613234",
"0.5357442",
"0.5353775",
"0.5344068",
"0.53306395",
"0.53306395",
"0.5313941",
"0.53009737",
"0.52917653",
"0.52844936",
"0.5283769",
"0.5275962",
"0.5266822",
"0.5266141",
"0.5265315"
] | 0.7301872 | 2 |
Create an order with our table number from settings Add our items to the order If there is an error, show an error toast Submit order. | public void submitOrder(){
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
int tableNumber = Integer.parseInt(sharedPref.getString("table_num", ""));
if(menu != null){
ParseUser user = ParseUser.getCurrentUser();
ParseObject order = new ParseObject("Order");
order.put("user", user);
order.put("paid", false);
order.put("tableNumber", tableNumber); // Fix this -- currently hard coding table number
ParseRelation<ParseObject> items = order.getRelation("items");
for(ParseObject item : selectedItems) {
items.add(item);
}
order.saveInBackground(new SaveCallback(){
@Override
public void done(ParseException e) {
if(e == null){
Toast.makeText(getApplicationContext(), "Order Submitted!", 5).show();
finish();
}
else{
Toast.makeText(getApplicationContext(), "Submitting Order Failed!", 5).show();
}
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n if(!tableField.getText().toString().isEmpty())\n tableID = Integer.parseInt(tableField.getText().toString());\n\n if(tableID == 0)\n tableID = Integer.parseInt(tableField.getText().toString());\n\n OrderDatabase orderDatabase = new OrderDatabase(order.getOrdered(), String.valueOf(tableID));\n\n //save the order to the database if table is not 0\n if(tableID != 0){\n if(order.getOrdered().size() != 0){\n orderRef.child(storeID)\n .push()\n .setValue(orderDatabase)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n updateTableStatus(tableID);\n Toast.makeText(getContext(), \"Order successfully sent!\", Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(getContext(), \"Order can't be sent!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n verificationDialog.dismiss();\n }\n else\n Toast.makeText(getContext(), \"Can't send empty order\", Toast.LENGTH_SHORT).show();\n }\n else\n Toast.makeText(getContext(), \"Select a table!\", Toast.LENGTH_SHORT).show();\n\n clearOrderView();\n }",
"public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }",
"public static void addOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Adding ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tItemManager itemManager = new ItemManager();\n\t\tList listOfItems = itemManager.onStartUp();\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tItem item = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (listOfItems.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no items!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to add the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tdo {\n\t\t\t\tfor (i = 0; i < listOfItems.size(); i++) {\n\t\t\t\t\titem = (Item) listOfItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \" + item.getId()\n\t\t\t\t\t\t\t+ \" | Name: \" + item.getName() + \" | Price: $\"\n\t\t\t\t\t\t\t+ item.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.print(\"Select an item to add into order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\titem = (Item) listOfItems.get(choice - 1);\n\n\t\t\t\t\torderedItem = new OrderedItem();\n\t\t\t\t\torderedItem.setItem(item);\n\t\t\t\t\torderedItem.setOrder(order);\n\t\t\t\t\torderedItem.setPrice(item.getPrice());\n\n\t\t\t\t\torder.addOrderedItem(orderedItem);\n\n\t\t\t\t\tcheck = orderedItemManager.createOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK UPDATE\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Item added into order successfully!\");\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out.println(\"Failed to add item into order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of adding items************\");\n\t}",
"public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}",
"void createOrders(int orderNum) throws OrderBookOrderException;",
"public void insertOrder(String food_id, String rest_id, String status) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"food_id\", food_id);\n contentValues.put(\"rest_id\", rest_id);\n contentValues.put(\"status\", status);\n long isInsert = database.insert(AppConstant.ORDER_TABLE_NAME, null, contentValues);\n if (isInsert != -1) {\n Toast.makeText(context, \"Order Created Successfully.\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(context, \"Order failed to create.\", Toast.LENGTH_SHORT).show();\n }\n }",
"public static void createOrder(Staff staff) {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Creating a new order************\");\n\t\t// TODO - implement RRPSS.createOrder\n\t\tTableManager tableManager = new TableManager();\n\t\tList listOfTables = tableManager.onStartUp();\n\n\t\tOrderManager orderManager = new OrderManager();\n\t\tTable table = null;\n\t\tOrder order = null;\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\ttry {\n\t\t\t// print the list of tables for the user to select from.\n\t\t\tfor (i = 0; i < listOfTables.size(); i++) {\n\t\t\t\ttable = (Table) listOfTables.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Table \" + table.getId()\n\t\t\t\t\t\t+ \" | Size: \" + table.getCapacity());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.print(\"Select a table to create an order: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\ttable = (Table) listOfTables.get(choice - 1);\n\n\t\t\torder = new Order();\n\t\t\torder.setStaff(staff);\n\t\t\torder.setTable(table);\n\t\t\torder.setClosed(false);\n\n\t\t\tcheck = orderManager.createOrder(order);\n\n\t\t\tif (check) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK UPDATE\");\n\t\t\t\tSystem.out.println(\"Order is created successfully!\");\n\n\t\t\t\tcheck = tableManager.updateTable(table);\n\n\t\t\t\tif (check) {\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\tSystem.out.println(\"Added order to table!\");\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\tSystem.out.println(\"Failed to add order to table!\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\tSystem.out.println(\"Failed to created order!\");\n\t\t\t}\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of creating new order************\");\n\t}",
"public void buildOrders() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT\"\n + \" EXISTS orders (id TEXT, orderer_id TEXT, deliverer_id TEXT,\"\n + \" pickup_time REAL, dropoff_time REAL, pickup_location TEXT,\"\n + \" dropoff_location TEXT, price REAL, pickup_phone TEXT,\"\n + \" PRIMARY KEY (id),\" + \" FOREIGN KEY (orderer_id)\"\n + \" REFERENCES users(id), FOREIGN KEY (deliverer_id) REFERENCES\"\n + \" users(id), FOREIGN KEY (pickup_location) REFERENCES\"\n + \" locations(id),\"\n + \" FOREIGN KEY (dropoff_location) REFERENCES locations(id)\"\n + \" ON DELETE CASCADE ON UPDATE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }",
"@Override\n\t\tprotected String doInBackground(String... params)\n\t\t{\n\n\t\t\tint id = mDatabaseService.createOrder(Utils.getCurrentDateTime(), \"\"+tableId, \"1\");\n\t\t\tLog.d(TAG, \"order created id:\" + id);\n\t\t\treturn \"\" + id;\n\t\t}",
"public void addToOrder()\n {\n\n if ( donutTypeComboBox.getSelectionModel().isEmpty() || flavorComboBox.getSelectionModel().isEmpty() )\n {\n Popup.DisplayError(\"Must select donut type AND donut flavor.\");\n return;\n } else\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity must be greater than 0.\");\n return;\n } else\n {\n for ( int i = 0; i < quantity; i++ )\n {\n Donut donut = new Donut(donutTypeComboBox.getSelectionModel().getSelectedIndex(), flavorComboBox.getSelectionModel().getSelectedIndex());\n mainMenuController.getCurrentOrder().add(donut);\n }\n if ( quantity == 1 )\n {\n Popup.Display(\"Donuts\", \"Donut has been added to the current order.\");\n } else\n {\n Popup.Display(\"Donuts\", \"Donuts have been added to the current order.\");\n }\n\n\n donutTypeComboBox.getSelectionModel().clearSelection();\n flavorComboBox.getSelectionModel().clearSelection();\n quantityTextField.setText(\"0\");\n subtotalTextField.setText(\"$0.00\");\n }\n }\n\n\n }",
"@Test (priority = 3)\n\t@Then(\"^Create Order$\")\n\tpublic void create_Order() throws Throwable {\n\t\tCommonFunctions.clickButton(\"wlnk_Home\", \"Sheet1\", \"Home\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLNK_OrderNewServices\", \"Sheet1\", \"Oreder New Service\", \"CLICK\");\n\t\t//Thread.sleep(3000);\n\t\tCommonFunctions.clickButton(\"WRD_complete\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Contine\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WCB_Additional\", \"Sheet1\", \"Additional\", \"CLICK\");\n\t\t//Thread.sleep(2000);\n\t\tCommonFunctions.clickButton(\"WLK_continue\", \"Sheet1\", \"Complete\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_checkout\", \"Sheet1\", \"Checkout\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_completeOrder\", \"Sheet1\", \"complete order\", \"CLICK\");\n\t\tCommonFunctions.clickButton(\"WBT_PayNow\", \"Sheet1\", \"Pay Now\", \"CLICK\");\n\t\tCommonFunctions.checkObjectExist(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"NO\");\n\t\tCommonFunctions.clickButton(\"WBT_PayPal\", \"Sheet1\", \"Pay pal\", \"CLICK\");\n\t}",
"private void showVerification(View v){\n Button addBtn, closeBtn;\n final EditText tableField;\n\n verificationDialog.setContentView(R.layout.verify_order);\n\n addBtn = verificationDialog.findViewById(R.id.send_btn);\n closeBtn = verificationDialog.findViewById(R.id.close_btn);\n tableField = verificationDialog.findViewById(R.id.tableField);\n tableField.setText(String.valueOf(tableID));\n\n //listener when user sends an order\n addBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n //if field is not empty keeps the id from the input\n if(!tableField.getText().toString().isEmpty())\n tableID = Integer.parseInt(tableField.getText().toString());\n\n if(tableID == 0)\n tableID = Integer.parseInt(tableField.getText().toString());\n\n OrderDatabase orderDatabase = new OrderDatabase(order.getOrdered(), String.valueOf(tableID));\n\n //save the order to the database if table is not 0\n if(tableID != 0){\n if(order.getOrdered().size() != 0){\n orderRef.child(storeID)\n .push()\n .setValue(orderDatabase)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n updateTableStatus(tableID);\n Toast.makeText(getContext(), \"Order successfully sent!\", Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(getContext(), \"Order can't be sent!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n verificationDialog.dismiss();\n }\n else\n Toast.makeText(getContext(), \"Can't send empty order\", Toast.LENGTH_SHORT).show();\n }\n else\n Toast.makeText(getContext(), \"Select a table!\", Toast.LENGTH_SHORT).show();\n\n clearOrderView();\n }\n });\n\n closeBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n verificationDialog.dismiss();\n }\n });\n\n verificationDialog.show();\n }",
"void prepareOrder(int orderId);",
"public SMplace_order() {\n initComponents();\n table();\n }",
"private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }",
"void create(Order order);",
"public static void createOrders() {\n Connection con = getConnection();\n\n String createString;\n createString = \"create table Orders (\" +\n \"Prod_ID INTEGER, \" +\n \"ProductName VARCHAR(20), \" +\n \"Employee_ID INTEGER )\";\n\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(createString);\n\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Orders Table Created\");\n }",
"private void addOrderDB(){\n OrganiseOrder organiser = new OrganiseOrder();\n Order finalisedOrder = organiser.Organise(order);\n // Generate the order id\n String id = UUID.randomUUID().toString();\n // Set the name of the order to the generated id\n finalisedOrder.setName(id);\n\n // Get the firebase reference\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"Orders\").child(id);\n\n // Update the order\n ref.setValue(finalisedOrder);\n }",
"public void buildItems() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT\"\n + \" EXISTS items (order_id TEXT, item TEXT, FOREIGN KEY (order_id)\"\n + \" REFERENCES orders(id) ON DELETE CASCADE ON UPDATE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }",
"static void addOrder(orders orders) {\n }",
"Order placeNewOrder(Order order, Project project, User user);",
"public static int insert(OrderItems o) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n System.out.println(\"DBSetup @ LINE 101\");\n String query\n = \"INSERT INTO orderItem (orderNumber, productCode, quantity) \"\n + \"VALUES (?, ?, ?)\";\n try {\n ps = connection.prepareStatement(query);\n ps.setInt(1, o.getOrderNumber());\n ps.setString(2, o.getProduct().getProductCode());\n ps.setInt(3, o.getQuantity());\n return ps.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e);\n return 0;\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }",
"public void addSimpleOrder(Order o) {\n DatabaseConnection connection = new DatabaseConnection();\r\n if(connection.openConnection())\r\n {\r\n if(o.getType() == 1) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO drank_order (`TafelID`, `DrankID`) VALUES(\" + o.getTafelID() + \",\" + o.getID() + \");\");\r\n }\r\n\r\n else if(o.getType() == 0) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO gerecht_order (`TafelID`, `GerechtID`) VALUES(\" + o.getTafelID() + \",\" + o.getID() + \");\");\r\n }\r\n }\r\n\r\n connection.closeConnection();\r\n }",
"private void addOrder(String orderNumber, String barcodeNumber, String customNumber, String customerName, String orderDate) {\n\t\t_database = this.getWritableDatabase();\n\t \n\t ContentValues values = new ContentValues();\n\t \n\t values.put(ORDER_NUMBER, orderNumber); \n\t \n\t if(barcodeNumber.length()>0) {\n\t \tvalues.put(BARCODE_NUMBER, barcodeNumber); \n\t }\n\t \n\t values.put(CUSTOMER_NUMBER, customNumber); \n\t values.put(CUSTOMER_NAME, customerName); \n\t values.put(ORDER_DATE, orderDate); \n\t \n\t // Inserting Row\n\t _database.insertOrThrow(ORDER_RECORDS_TABLE, null, values);\n\t}",
"public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }",
"public void createOrderItem() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tRestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Which item would you like to order?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif (menuIndex <= 0 || menuIndex > RestaurantApp.globalMenuManager.getSizeOfMenu()){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+RestaurantApp.globalMenuManager.getSizeOfMenu());\r\n\t\t\t}\r\n\t\t\tthis.menuItem = RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1);\r\n\t\t\tSystem.out.println(\"How many of this are you ordering?\");\r\n\t\t\tthis.quantity = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tSystem.out.println(\"Order item added. printing details...\");\r\n\t\t\tthis.printOrderItem();\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage()); \r\n\t\t\tSystem.out.println(\"program exiting ...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"public void saveDate(View view) {\n// create an object of order\n Order order = new Order(name, Integer.parseInt(price));\n dbHandler.addOrder(order);\n Toast.makeText(getApplicationContext(), \"Hooray! Data Saved in DB\", Toast.LENGTH_SHORT).show();\n }",
"public void addOrder(Order o) throws SQLException\r\n {\r\n String sqlQuery = \r\n \"INSERT INTO orders (custname, tablenumber, foodname, beveragename, served, billed) VALUES (\" +\r\n \"'\" + o.getCustomerName() + \"', \" + \r\n o.getTable() + \", \" + \r\n \"'\" + o.getFood() + \"', \" +\r\n \"'\" + o.getBeverage() + \"', \" + \r\n o.isServed() + \", \" +\r\n o.isBilled() + \")\";\r\n myStmt.executeUpdate(sqlQuery);\r\n }",
"public void placeOrder(String custID) {\r\n //creates Order object based on current cart\r\n Order order = new Order(custID, getItems());\r\n //inserts new order into DB\r\n order.insertDB();\r\n }",
"@Test\n public void testOrderFactoryCreate() {\n OrderController orderController = orderFactory.getOrderController();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n // add a menu item to the menu\n menuFactory.getMenu().addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n\n // order 3 of the menu item\n HashMap<MenuItem, Integer> orderItems = new HashMap<>();\n HashMap<SetItem, Integer> setOrderItems = new HashMap<>();\n orderItems.put(menuFactory.getMenu().getMenuItem(1), 3);\n\n // create the order\n orderController.addOrder(STAFF_NAME, 1, false, orderItems, setOrderItems);\n assertEquals(1, orderController.getOrders().size());\n }",
"@Override\r\n\tpublic Order create(Order order) {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();) {\r\n\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders(customer_id) values(%d)\",\r\n\t\t\t\t\torder.getCustomer().getId()));\r\n\t\t\t\tHashMap<Item, Long> items = order.getItems();\r\n\t\t\t\tfor (Entry<Item, Long> entry : items.entrySet()) {\r\n\t\t\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders_items(order_id, item_id, quantity) \"\r\n\t\t\t\t\t\t\t+ \"values(last_insert_id(), %d, %d)\", entry.getKey().getId(), entry.getValue()));\r\n\t\t\t\t}\r\n\t\t\treturn readLatest();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public void insertDB() {\n sql = \"Insert into Order (OrderID, CustomerID, Status) VALUES ('\"+getCustomerID()+\"','\"+getCustomerID()+\"', '\"+getStatus()+\"')\";\n db.insertDB(sql);\n \n }",
"private void InsertKOTItems(int KOTNo) {\r\n // Inserted Row Id in database table\r\n long lResult = 0;\r\n // PendingKOT object\r\n PendingKOT objPendingKOT;\r\n objPendingKOT = new PendingKOT();\r\n // Token number variable\r\n /*if(KOTNo<=0) {\r\n //int iTokenNumber = dbBillScreen.getKOTNo();\r\n objPendingKOT.setTokenNumber(dbBillScreen.getKOTNo());\r\n long iResult = dbBillScreen.updateKOTNo(dbBillScreen.getKOTNo());\r\n } else {\r\n objPendingKOT.setTokenNumber(iKOTNo);\r\n }*/\r\n objPendingKOT.setTokenNumber(KOTNo);\r\n String strTime = new SimpleDateFormat(\"kk:mm:ss\").format(Time.getTime());\r\n //String strTime = String.format(\"%tR\", Time);\r\n String msg = \"Time:\" + strTime+\" No : \"+KOTNo;\r\n Log.v(\"KOT Time, No\",msg);\r\n\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n TableRow RowKOTItem = (TableRow) tblOrderItems.getChildAt(iRow);\r\n CheckBox ItemNumber = (CheckBox) RowKOTItem.getChildAt(0);\r\n TextView ItemName = (TextView) RowKOTItem.getChildAt(1);\r\n TextView hsn = (TextView) RowKOTItem.getChildAt(2);\r\n EditText Quantity = (EditText) RowKOTItem.getChildAt(3);\r\n EditText Rate = (EditText) RowKOTItem.getChildAt(4);\r\n TextView Amount = (TextView) RowKOTItem.getChildAt(5);\r\n TextView SalesTaxPercent = (TextView) RowKOTItem.getChildAt(6);\r\n TextView SalesTaxAmount = (TextView) RowKOTItem.getChildAt(7);\r\n TextView DiscountPercent = (TextView) RowKOTItem.getChildAt(8);\r\n TextView DiscountAmount = (TextView) RowKOTItem.getChildAt(9);\r\n TextView DeptCode = (TextView) RowKOTItem.getChildAt(10);\r\n TextView CategCode = (TextView) RowKOTItem.getChildAt(11);\r\n TextView KitchenCode = (TextView) RowKOTItem.getChildAt(12);\r\n TextView TaxType = (TextView) RowKOTItem.getChildAt(13);\r\n TextView ModifierAmount = (TextView) RowKOTItem.getChildAt(14);\r\n TextView ServiceTaxPercent = (TextView) RowKOTItem.getChildAt(15);\r\n TextView ServiceTaxAmount = (TextView) RowKOTItem.getChildAt(16);\r\n TextView SupplyType = (TextView) RowKOTItem.getChildAt(17);\r\n TextView printstatus = (TextView) RowKOTItem.getChildAt(21);\r\n String printStatus_str = printstatus.getText().toString();\r\n TextView UOM = (TextView) RowKOTItem.getChildAt(22);\r\n TextView IGSTRate = (TextView) RowKOTItem.getChildAt(23);\r\n TextView IGSTAmt = (TextView) RowKOTItem.getChildAt(24);\r\n TextView cessRate = (TextView) RowKOTItem.getChildAt(25);\r\n TextView cessAmtPerUnit = (TextView) RowKOTItem.getChildAt(26);\r\n TextView originalRate = (TextView) RowKOTItem.getChildAt(27);\r\n TextView OriginalRate = (TextView) RowKOTItem.getChildAt(27);\r\n TextView TaxableValue = (TextView) RowKOTItem.getChildAt(28);\r\n TextView tvAdditionalcessAmount = (TextView) RowKOTItem.getChildAt(30);\r\n TextView tvTotalCessAmount = (TextView) RowKOTItem.getChildAt(31);\r\n\r\n objPendingKOT.setTableNumber(0);\r\n\r\n // SubUdfNumber\r\n objPendingKOT.setSubUdfNumber(0);\r\n\r\n // WaiterId\r\n objPendingKOT.setEmployeeId(0);\r\n\r\n\r\n\r\n\r\n // Customer Id\r\n objPendingKOT.setCusId(Integer.valueOf(edtCustId.getText().toString()));\r\n\r\n\r\n // Time\r\n objPendingKOT.setTime(strTime);\r\n\r\n // Item Number\r\n if (RowKOTItem.getChildAt(0) != null) {\r\n objPendingKOT.setItemNumber(Integer.parseInt(ItemNumber.getText().toString()));\r\n }\r\n\r\n // Item Name\r\n if (RowKOTItem.getChildAt(1) != null) {\r\n objPendingKOT.setItemName(ItemName.getText().toString());\r\n }\r\n\r\n // Item Name\r\n if (RowKOTItem.getChildAt(2) != null) {\r\n objPendingKOT.setHSNCode(hsn.getText().toString());\r\n }\r\n\r\n // Quantity\r\n if (RowKOTItem.getChildAt(3) != null) {\r\n String qty_str = Quantity.getText().toString();\r\n double qty_d = 0.00;\r\n if(qty_str.equals(\"\")) {\r\n Quantity.setText(\"0.00\");\r\n }else\r\n {\r\n qty_d = Double.parseDouble(qty_str);\r\n }\r\n\r\n objPendingKOT.setQuantity(Float.parseFloat(String.format(\"%.2f\",qty_d)));\r\n }\r\n\r\n // Rate\r\n if (RowKOTItem.getChildAt(4) != null) {\r\n String rate_str = Rate.getText().toString();\r\n double rate_d = 0.00;\r\n if(rate_str.equals(\"\")) {\r\n Rate.setText(\"0.00\");\r\n }else\r\n {\r\n rate_d = Double.parseDouble(rate_str);\r\n }\r\n objPendingKOT.setRate(Float.parseFloat(String.format(\"%.2f\",rate_d)));\r\n }\r\n\r\n // OrigibalRate\r\n if (RowKOTItem.getChildAt(27) != null) {\r\n String orirate_str = originalRate.getText().toString();\r\n double orirate_d = 0.00;\r\n if(orirate_str.equals(\"\")) {\r\n originalRate.setText(\"0.00\");\r\n }else\r\n {\r\n orirate_d = Double.parseDouble(orirate_str);\r\n }\r\n objPendingKOT.setOriginalrate(Double.parseDouble(String.format(\"%.2f\",orirate_d)));\r\n }\r\n\r\n // Amount\r\n if (RowKOTItem.getChildAt(5) != null) {\r\n objPendingKOT.setAmount(Double.parseDouble(Amount.getText().toString()));\r\n }\r\n\r\n // Sales Tax %\r\n if (RowKOTItem.getChildAt(6) != null) {\r\n objPendingKOT.setTaxPercent(Float.parseFloat(SalesTaxPercent.getText().toString()));\r\n }\r\n\r\n // Sales Tax Amount\r\n if (RowKOTItem.getChildAt(7) != null) {\r\n objPendingKOT.setTaxAmount(Double.parseDouble(SalesTaxAmount.getText().toString()));\r\n }\r\n\r\n // Discount %\r\n if (RowKOTItem.getChildAt(8) != null) {\r\n objPendingKOT.setDiscountPercent(Float.parseFloat(DiscountPercent.getText().toString()));\r\n }\r\n\r\n // Discount Amount\r\n if (RowKOTItem.getChildAt(9) != null) {\r\n objPendingKOT.setDiscountAmount(Float.parseFloat(DiscountAmount.getText().toString()));\r\n }\r\n\r\n // Department Code\r\n if (RowKOTItem.getChildAt(10) != null) {\r\n objPendingKOT.setDeptCode(Integer.parseInt(DeptCode.getText().toString()));\r\n }\r\n\r\n // Category Code\r\n if (RowKOTItem.getChildAt(11) != null) {\r\n objPendingKOT.setCategCode(Integer.parseInt(CategCode.getText().toString()));\r\n }\r\n\r\n // Kitchen Code\r\n if (RowKOTItem.getChildAt(12) != null) {\r\n objPendingKOT.setKitchenCode(Integer.parseInt(KitchenCode.getText().toString()));\r\n }\r\n\r\n // Tax Type\r\n if (RowKOTItem.getChildAt(13) != null) {\r\n objPendingKOT.setTaxType(Integer.parseInt(TaxType.getText().toString()));\r\n }\r\n\r\n // Modifier Amount\r\n if (RowKOTItem.getChildAt(14) != null) {\r\n objPendingKOT.setModifierAmount(Float.parseFloat(ModifierAmount.getText().toString()));\r\n }\r\n\r\n // Service Tax Percent\r\n if (RowKOTItem.getChildAt(15) != null) {\r\n objPendingKOT.setServiceTaxPercent(Float.parseFloat(ServiceTaxPercent.getText().toString()));\r\n }\r\n\r\n // Service Tax Amount\r\n if (RowKOTItem.getChildAt(16) != null) {\r\n objPendingKOT.setServiceTaxAmount(Double.parseDouble(ServiceTaxAmount.getText().toString()));\r\n }\r\n\r\n // SupplyType - G/S\r\n if (RowKOTItem.getChildAt(17) != null) {\r\n objPendingKOT.setSupplyType(SupplyType.getText().toString());\r\n }\r\n if(RowKOTItem.getChildAt(22)!=null)\r\n {\r\n objPendingKOT.setUOM(UOM.getText().toString());\r\n }\r\n if(RowKOTItem.getChildAt(23)!=null)\r\n {\r\n objPendingKOT.setIGSTRate(Float.parseFloat(IGSTRate.getText().toString()));\r\n }\r\n if(RowKOTItem.getChildAt(24)!=null)\r\n {\r\n objPendingKOT.setIGSTAmount(Float.parseFloat(IGSTAmt.getText().toString()));\r\n }\r\n if(RowKOTItem.getChildAt(25)!=null)\r\n {\r\n objPendingKOT.setCessRate(Float.parseFloat(cessRate.getText().toString()));\r\n }\r\n if(RowKOTItem.getChildAt(26)!=null)\r\n {\r\n objPendingKOT.setDblCessAmountPerUnit(Double.parseDouble(cessAmtPerUnit.getText().toString()));\r\n }\r\n if(RowKOTItem.getChildAt(27)!=null)\r\n {\r\n objPendingKOT.setOriginalrate(Double.parseDouble(OriginalRate.getText().toString()));\r\n }\r\n if(RowKOTItem.getChildAt(28)!=null)\r\n {\r\n objPendingKOT.setTaxableValue(Double.parseDouble(TaxableValue.getText().toString()));\r\n }\r\n if (RowKOTItem.getChildAt(30) !=null)\r\n {\r\n objPendingKOT.setDblAdditionalCessAmount(Double.parseDouble(tvAdditionalcessAmount.getText().toString())/objPendingKOT.getQuantity());\r\n objPendingKOT.setDblTotalAdditionalCessAmount(Double.parseDouble(tvAdditionalcessAmount.getText().toString()));\r\n }\r\n if (RowKOTItem.getChildAt(31) !=null)\r\n {\r\n objPendingKOT.setCessAmount(Double.parseDouble(tvTotalCessAmount.getText().toString()));\r\n }\r\n\r\n // Order Mode\r\n objPendingKOT.setOrderMode(jBillingMode);\r\n\r\n // KOT No\r\n // objPendingKOT.setTokenNumber(iTokenNumber);\r\n\r\n // Print KOT STatus\r\n objPendingKOT.setPrintKOTStatus(iPrintKOTStatus);\r\n\r\n int tblno, subudfno, tblsplitno, itemno, Status;\r\n tblno = 0;\r\n subudfno = Integer.valueOf(tvSubUdfValue.getText().toString());\r\n tblsplitno = 0;\r\n itemno = Integer.valueOf(ItemNumber.getText().toString());\r\n Status = Integer.valueOf(printstatus.getText().toString());\r\n\r\n Cursor crsrItemsUpdate = db.getItemsForUpdatingKOT_new(tblno, subudfno, tblsplitno, itemno, jBillingMode);\r\n if (crsrItemsUpdate!= null && crsrItemsUpdate.moveToFirst()) {\r\n float Qty = 0;\r\n double Amt = 0, TaxAmt = 0, SerTaxAmt = 0;\r\n float qty_temp = Float.valueOf(crsrItemsUpdate.getString(crsrItemsUpdate.getColumnIndex(\"Quantity\")));\r\n Qty = Float.valueOf(Quantity.getText().toString()) + Float.valueOf(crsrItemsUpdate.getString(crsrItemsUpdate.getColumnIndex(\"Quantity\")));\r\n Amt = Double.valueOf(Amount.getText().toString()) + (crsrItemsUpdate.getDouble(crsrItemsUpdate.getColumnIndex(\"Amount\")));\r\n TaxAmt = Double.valueOf(SalesTaxAmount.getText().toString()) + Double.valueOf(crsrItemsUpdate.getString(crsrItemsUpdate.getColumnIndex(\"TaxAmount\")));\r\n SerTaxAmt = Double.valueOf(ServiceTaxAmount.getText().toString()) + Double.valueOf(crsrItemsUpdate.getString(crsrItemsUpdate.getColumnIndex(\"ServiceTaxAmount\")));\r\n float IAmt = Float.valueOf(IGSTAmt.getText().toString()) + Float.valueOf(crsrItemsUpdate.getString(crsrItemsUpdate.getColumnIndex(\"IGSTAmount\")));\r\n double cessAmount = Double.valueOf(tvTotalCessAmount.getText().toString()) + Double.valueOf(crsrItemsUpdate.getString(crsrItemsUpdate.getColumnIndex(\"cessAmount\")));\r\n double taxableValue = Double.valueOf(TaxableValue.getText().toString()) +\r\n Double.valueOf(crsrItemsUpdate.getString(crsrItemsUpdate.getColumnIndex(\"TaxableValue\")));\r\n\r\n lResult = dbBillScreen.updateKOT(itemno, Qty, Amt, TaxAmt, SerTaxAmt, jBillingMode, Status,IAmt,cessAmount,taxableValue);\r\n Log.d(\"UpdateKOT\", \"KOT item updated at position:\" + lResult);\r\n } else {\r\n\r\n lResult = dbBillScreen.addKOT(objPendingKOT);\r\n Log.d(\"InsertKOT\", \"KOT item inserted at position:\" + lResult);\r\n }\r\n\r\n\r\n }\r\n }",
"public static void insertOrders() {\n Connection con = getConnection();\n\n String insertString1, insertString2, insertString3, insertString4;\n insertString1 = \"insert into Orders values(543, 'Belt', 6323)\";\n insertString2 = \"insert into Orders values(432, 'Bottle', 1234)\";\n insertString3 = \"insert into Orders values(876, 'Ring', 5678)\";\n\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(insertString1);\n stmt.executeUpdate(insertString2);\n stmt.executeUpdate(insertString3);\n\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Data Inserted into Orders Table\");\n }",
"@Override\r\n\tpublic void insertOrder(OrderVO vo) throws Exception {\n\t\tsqlSession.insert(namespaceOrder+\".createOrder\",vo);\r\n\t}",
"public void addOrder(Order order) {\n\t\tPreparedStatement addSQL = null;\n\t\tSystem.out.println(\"Creating order..\");\n\t\ttry {\n\n\t\t\taddSQL = getConnection()\n\t\t\t\t\t.prepareStatement(\"INSERT INTO orders(code, name, quantity) values(?,?,?);\",\n\t\t\t\t\t\t\tStatement.RETURN_GENERATED_KEYS);\n\n\t\t\taddSQL.setInt(1, order.getCode());\n\t\t\taddSQL.setString(2, order.getName());\n\t\t\taddSQL.setInt(3, order.getQuantity());\n\n\t\t\tint rows = addSQL.executeUpdate();\n\n\t\t\tif (rows == 0) {\n\t\t\t\tSystem.out.println(\"Failed to insert order into database\");\n\t\t\t}\n\n\t\t\ttry (ResultSet generatedID = addSQL.getGeneratedKeys()) {\n\t\t\t\tif (generatedID.next()) {\n\t\t\t\t\torder.setID(generatedID.getInt(1));\n\t\t\t\t\tSystem.out.println(\"Order created with id: \" + order.getID());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Failed to create order.\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (addSQL != null) {\n\t\t\t\ttry {\n\t\t\t\t\taddSQL.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void createOrder(Shop shop, FileManager fileManager, ArrayList<Tool> toolList,\n ArrayList<Integer> quantityList) {\n if (toolList.size() != 0) {\n if (shop.createOrderOrAppendOrder(shop, toolList, quantityList, fileManager)) {\n System.out.println(\"Successfully added and/or appended order to orders.txt!\");\n } else {\n System.out.println(\"ERROR: Could not edit orders.txt.\");\n }\n }\n }",
"Order addOrder(String orderId, Order order) throws OrderBookOrderException;",
"List<Inventory> executeOrder(OrderForm orderForm) throws Exception;",
"@Test(dependsOnMethods = \"checkSiteVersion\")\n public void createNewOrder() {\n actions.openRandomProduct();\n\n // save product parameters\n actions.saveProductParameters();\n\n // add product to Cart and validate product information in the Cart\n actions.addToCart();\n actions.goToCart();\n actions.validateProductInfo();\n\n // proceed to order creation, fill required information\n actions.proceedToOrderCreation();\n\n // place new order and validate order summary\n\n // check updated In Stock value\n }",
"@Override\n\tpublic int insertOrderTrading(Order_TradingVO otvo) {\n\t\treturn sql.insert(\"insertOrderTrading\", otvo);\n\t}",
"public void submitOrder(View view) {\n\n CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.whipped_cream_checkbox);\n boolean hasWhippedCream = whippedCreamCheckBox.isChecked();\n\n CheckBox chocolateCheckBox = (CheckBox) findViewById(R.id.chocolate);\n boolean hasChocolateChecked = chocolateCheckBox.isChecked();\n EditText editText = (EditText) findViewById(R.id.name);\n String name = editText.getText().toString();\n createOrderSummary(quantity, hasWhippedCream, hasChocolateChecked, name);\n\n\n }",
"public APIResponse placeOrder(@NotNull Order order){\n try {\n validateOrder(order);\n \n order.getItems().addAll(\n orderItemRepository.saveAll(order.getItems())\n );\n orderRepository.save( order );\n return APIResponse.builder()\n .success( true)\n .data( true )\n .error( null )\n .build();\n }catch (Exception exception){\n\n log.error(exception.getMessage());\n return APIResponse.builder()\n .success( true)\n .data( false )\n .error( exception.getMessage() )\n .build();\n }\n }",
"public void insertOrderedItems(TireList orderedItems){\n for(int i=0; i<orderedItems.listSize(); i++){\n int temp = Integer.parseInt(orderedItems.getTire(i).getStock()) - orderedItems.getTire(i).getQuantity();\n orderedItems.getTire(i).setStock(temp + \"\");\n orderedItems.getTire(i).updateTire();\n sql=\"Insert into OrderedItems (OrderID, TireID, Quantity) VALUES ('\"+newID+\"','\"+orderedItems.getTire(i).getStockID()+\"',\"+orderedItems.getTire(i).getQuantity()+\")\";\n db.insertDB(sql); \n }\n }",
"public void create(Order order) {\n order_dao.create(order);\n }",
"public void submitOrder() throws BackendException;",
"private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }",
"public void submitOrder(View view) {\n\n EditText nameField = (EditText) findViewById(R.id.name_field);\n String name = nameField.getText().toString();\n //Figure out if you want to add whipped cream\n CheckBox whippedCream = (CheckBox) findViewById(R.id.whipped_cream_checkbox);\n Boolean hasWhippedCream = whippedCream.isChecked();\n //Figure out if you want to add chocolate\n CheckBox chocolate = (CheckBox) findViewById(R.id.chocolate_checkbox);\n Boolean hasChocolate = chocolate.isChecked();\n\n int price = calculatePrice(hasWhippedCream, hasChocolate);\n\n// // Log.v(\"MainActivity\", \"This price is \" + price);\n\n String priceMessage = createOrderSummary(name, price, hasWhippedCream, hasChocolate);\n\n\n// composeEmail(\"jsbaidwan@gmail.com\", name, priceMessage);\n displayText(priceMessage);\n }",
"@GetMapping(\"/createorders\")\n\tpublic void generateOrderRequest(){\n\t\tSystem.out.println(\" == generateOrderRequest == \");\n\t\tfor(int i=0;i<150;i++) {\n\t\t\t// create new order\n\t\t\tOrderRequest order = new OrderRequest();\n\t\t\torder.setOrderReqId(\n\t\t\t\t\tInteger.parseInt(new RandomStringGenerator.Builder().withinRange('1', '9').build().generate(5))\n\t\t\t\t\t);\n\t\t\torder.setName(new RandomStringGenerator.Builder().withinRange('a', 'z').build().generate(5));\n\t\t\t// create status row for this order\n\t\t\tOrderRequestStatus orderStatus = new OrderRequestStatus();\n\t\t\torderStatus.setStatus(\"new\");\n\t\t\torderStatus.setOrderRequest(order);\n\t\t\torderStateRepository.save(orderStatus);\n\t\t}\n\t}",
"public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }",
"private void InsertBillItems() {\n\n // Inserted Row Id in database table\n long lResult = 0;\n\n // Bill item object\n BillItem objBillItem;\n\n // Reset TotalItems count\n iTotalItems = 0;\n\n Cursor crsrUpdateItemStock = null;\n\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\n objBillItem = new BillItem();\n\n TableRow RowBillItem = (TableRow) tblOrderItems.getChildAt(iRow);\n\n // Increment Total item count if row is not empty\n if (RowBillItem.getChildCount() > 0) {\n iTotalItems++;\n }\n\n // Bill Number\n objBillItem.setBillNumber(tvBillNumber.getText().toString());\n Log.d(\"InsertBillItems\", \"InvoiceNo:\" + tvBillNumber.getText().toString());\n\n // richa_2012\n //BillingMode\n objBillItem.setBillingMode(String.valueOf(jBillingMode));\n Log.d(\"InsertBillItems\", \"Billing Mode :\" + String.valueOf(jBillingMode));\n\n // Item Number\n if (RowBillItem.getChildAt(0) != null) {\n CheckBox ItemNumber = (CheckBox) RowBillItem.getChildAt(0);\n objBillItem.setItemNumber(Integer.parseInt(ItemNumber.getText().toString()));\n Log.d(\"InsertBillItems\", \"Item Number:\" + ItemNumber.getText().toString());\n\n crsrUpdateItemStock = db.getItemss(Integer.parseInt(ItemNumber.getText().toString()));\n }\n\n // Item Name\n if (RowBillItem.getChildAt(1) != null) {\n TextView ItemName = (TextView) RowBillItem.getChildAt(1);\n objBillItem.setItemName(ItemName.getText().toString());\n Log.d(\"InsertBillItems\", \"Item Name:\" + ItemName.getText().toString());\n }\n\n if (RowBillItem.getChildAt(2) != null) {\n TextView HSN = (TextView) RowBillItem.getChildAt(2);\n objBillItem.setHSNCode(HSN.getText().toString());\n Log.d(\"InsertBillItems\", \"Item HSN:\" + HSN.getText().toString());\n }\n\n // Quantity\n double qty_d = 0.00;\n if (RowBillItem.getChildAt(3) != null) {\n EditText Quantity = (EditText) RowBillItem.getChildAt(3);\n String qty_str = Quantity.getText().toString();\n if(qty_str==null || qty_str.equals(\"\"))\n {\n Quantity.setText(\"0.00\");\n }else\n {\n qty_d = Double.parseDouble(qty_str);\n }\n\n objBillItem.setQuantity(Float.parseFloat(String.format(\"%.2f\",qty_d)));\n Log.d(\"InsertBillItems\", \"Quantity:\" + Quantity.getText().toString());\n\n if (crsrUpdateItemStock!=null && crsrUpdateItemStock.moveToFirst()) {\n // Check if item's bill with stock enabled update the stock\n // quantity\n if (BillwithStock == 1) {\n UpdateItemStock(crsrUpdateItemStock, Float.parseFloat(Quantity.getText().toString()));\n }\n\n\n }\n }\n\n // Rate\n double rate_d = 0.00;\n if (RowBillItem.getChildAt(4) != null) {\n EditText Rate = (EditText) RowBillItem.getChildAt(4);\n String rate_str = Rate.getText().toString();\n if((rate_str==null || rate_str.equals(\"\")))\n {\n Rate.setText(\"0.00\");\n }else\n {\n rate_d = Double.parseDouble(rate_str);\n }\n\n objBillItem.setValue(Float.parseFloat(String.format(\"%.2f\",rate_d)));\n Log.d(\"InsertBillItems\", \"Rate:\" + Rate.getText().toString());\n }\n // oRIGINAL rate in case of reverse tax\n\n if (RowBillItem.getChildAt(27) != null) {\n TextView originalRate = (TextView) RowBillItem.getChildAt(27);\n objBillItem.setOriginalRate(Double.parseDouble(originalRate.getText().toString()));\n Log.d(\"InsertBillItems\", \"Original Rate :\" + objBillItem.getOriginalRate());\n }\n if (RowBillItem.getChildAt(28) != null) {\n TextView TaxableValue = (TextView) RowBillItem.getChildAt(28);\n objBillItem.setTaxableValue(Double.parseDouble(TaxableValue.getText().toString()));\n Log.d(\"InsertBillItems\", \"TaxableValue :\" + objBillItem.getTaxableValue());\n }\n\n // Amount\n if (RowBillItem.getChildAt(5) != null) {\n TextView Amount = (TextView) RowBillItem.getChildAt(5);\n objBillItem.setAmount(Double.parseDouble(Amount.getText().toString()));\n String reverseTax = \"\";\n if (!(crsrSettings.getInt(crsrSettings.getColumnIndex(\"Tax\")) == 1)) { // forward tax\n reverseTax = \" (Reverse Tax)\";\n objBillItem.setIsReverTaxEnabled(\"YES\");\n }else\n {\n objBillItem.setIsReverTaxEnabled(\"NO\");\n }\n Log.d(\"InsertBillItems\", \"Amount :\" + objBillItem.getAmount()+reverseTax);\n }\n\n // oRIGINAL rate in case of reverse tax\n\n\n // Discount %\n if (RowBillItem.getChildAt(8) != null) {\n TextView DiscountPercent = (TextView) RowBillItem.getChildAt(8);\n objBillItem.setDiscountPercent(Float.parseFloat(DiscountPercent.getText().toString()));\n Log.d(\"InsertBillItems\", \"Disc %:\" + DiscountPercent.getText().toString());\n }\n\n // Discount Amount\n if (RowBillItem.getChildAt(9) != null) {\n TextView DiscountAmount = (TextView) RowBillItem.getChildAt(9);\n objBillItem.setDiscountAmount(Float.parseFloat(DiscountAmount.getText().toString()));\n Log.d(\"InsertBillItems\", \"Disc Amt:\" + DiscountAmount.getText().toString());\n // fTotalDiscount += Float.parseFloat(DiscountAmount.getText().toString());\n }\n\n // Service Tax Percent\n float sgatTax = 0;\n if (RowBillItem.getChildAt(15) != null) {\n TextView ServiceTaxPercent = (TextView) RowBillItem.getChildAt(15);\n sgatTax = Float.parseFloat(ServiceTaxPercent.getText().toString());\n if (chk_interstate.isChecked()) {\n objBillItem.setSGSTRate(0);\n Log.d(\"InsertBillItems\", \"SGST Tax %: 0\");\n\n } else {\n objBillItem.setSGSTRate(Float.parseFloat(ServiceTaxPercent.getText().toString()));\n Log.d(\"InsertBillItems\", \"SGST Tax %: \" + objBillItem.getSGSTRate());\n }\n }\n\n // Service Tax Amount\n double sgstAmt = 0;\n if (RowBillItem.getChildAt(16) != null) {\n TextView ServiceTaxAmount = (TextView) RowBillItem.getChildAt(16);\n sgstAmt = Double.parseDouble(ServiceTaxAmount.getText().toString());\n if (chk_interstate.isChecked()) {\n objBillItem.setSGSTAmount(0.00f);\n Log.d(\"InsertBillItems\", \"SGST Amount : 0\" );\n\n } else {\n objBillItem.setSGSTAmount(Double.parseDouble(String.format(\"%.2f\", sgstAmt)));\n Log.d(\"InsertBillItems\", \"SGST Amount : \" + objBillItem.getSGSTAmount());\n }\n }\n\n // Sales Tax %\n if (RowBillItem.getChildAt(6) != null) {\n TextView SalesTaxPercent = (TextView) RowBillItem.getChildAt(6);\n float cgsttax = (Float.parseFloat(SalesTaxPercent.getText().toString()));\n if (chk_interstate.isChecked()) {\n //objBillItem.setIGSTRate(Float.parseFloat(String.format(\"%.2f\", cgsttax + sgatTax)));\n //Log.d(\"InsertBillItems\", \" IGST Tax %: \" + objBillItem.getIGSTRate());\n objBillItem.setCGSTRate(0.00f);\n Log.d(\"InsertBillItems\", \" CGST Tax %: 0.00\");\n }else{\n //objBillItem.setIGSTRate(0.00f);\n //Log.d(\"InsertBillItems\", \" IGST Tax %: 0.00\");\n objBillItem.setCGSTRate(Float.parseFloat(String.format(\"%.2f\",Float.parseFloat(SalesTaxPercent.getText().toString()))));\n Log.d(\"InsertBillItems\", \" CGST Tax %: \" + SalesTaxPercent.getText().toString());\n }\n }\n // Sales Tax Amount\n if (RowBillItem.getChildAt(7) != null) {\n TextView SalesTaxAmount = (TextView) RowBillItem.getChildAt(7);\n double cgstAmt = (Double.parseDouble(SalesTaxAmount.getText().toString()));\n if (chk_interstate.isChecked()) {\n //objBillItem.setIGSTAmount(Float.parseFloat(String.format(\"%.2f\",cgstAmt+sgstAmt)));\n //Log.d(\"InsertBillItems\", \"IGST Amt: \" + objBillItem.getIGSTAmount());\n objBillItem.setCGSTAmount(0.00f);\n Log.d(\"InsertBillItems\", \"CGST Amt: 0\");\n } else {\n //objBillItem.setIGSTAmount(0.00f);\n //Log.d(\"InsertBillItems\", \"IGST Amt: 0\");\n objBillItem.setCGSTAmount(Double.parseDouble(String.format(\"%.2f\", cgstAmt)));\n Log.d(\"InsertBillItems\", \"CGST Amt: \" + SalesTaxAmount.getText().toString());\n }\n }\n\n // IGST Tax %\n if (RowBillItem.getChildAt(23) != null) {\n TextView IGSTTaxPercent = (TextView) RowBillItem.getChildAt(23);\n float igsttax = (Float.parseFloat(IGSTTaxPercent.getText().toString()));\n if (chk_interstate.isChecked()) {\n objBillItem.setIGSTRate(Float.parseFloat(String.format(\"%.2f\", igsttax)));\n Log.d(\"InsertBillItems\", \" IGST Tax %: \" + objBillItem.getIGSTRate());\n }else{\n objBillItem.setIGSTRate(0.00f);\n Log.d(\"InsertBillItems\", \" IGST Tax %: 0.00\");\n }\n }\n // IGST Tax Amount\n if (RowBillItem.getChildAt(24) != null) {\n TextView IGSTTaxAmount = (TextView) RowBillItem.getChildAt(24);\n float igstAmt = (Float.parseFloat(IGSTTaxAmount.getText().toString()));\n if (chk_interstate.isChecked()) {\n objBillItem.setIGSTAmount(Float.parseFloat(String.format(\"%.2f\",igstAmt)));\n Log.d(\"InsertBillItems\", \"IGST Amt: \" + objBillItem.getIGSTAmount());\n } else {\n objBillItem.setIGSTAmount(0.00f);\n Log.d(\"InsertBillItems\", \"IGST Amt: 0\");\n }\n }\n\n // cess Tax %\n if (RowBillItem.getChildAt(25) != null) {\n TextView cessTaxPercent = (TextView) RowBillItem.getChildAt(25);\n float cesstax = (Float.parseFloat(cessTaxPercent.getText().toString()));\n objBillItem.setCessRate(Float.parseFloat(String.format(\"%.2f\", cesstax)));\n Log.d(\"InsertBillItems\", \" cess Tax %: \" + objBillItem.getCessRate());\n }\n // cessTax Amount\n if (RowBillItem.getChildAt(26) != null) {\n TextView cessTaxAmount = (TextView) RowBillItem.getChildAt(26);\n double cessAmt = (Double.parseDouble(cessTaxAmount.getText().toString()));\n objBillItem.setCessAmount(Double.parseDouble(String.format(\"%.2f\",cessAmt)));\n Log.d(\"InsertBillItems\", \"cess Amt: \" + objBillItem.getCessAmount());\n }\n\n\n\n // Department Code\n if (RowBillItem.getChildAt(10) != null) {\n TextView DeptCode = (TextView) RowBillItem.getChildAt(10);\n objBillItem.setDeptCode(Integer.parseInt(DeptCode.getText().toString()));\n Log.d(\"InsertBillItems\", \"Dept Code:\" + DeptCode.getText().toString());\n }\n\n // Category Code\n if (RowBillItem.getChildAt(11) != null) {\n TextView CategCode = (TextView) RowBillItem.getChildAt(11);\n objBillItem.setCategCode(Integer.parseInt(CategCode.getText().toString()));\n Log.d(\"InsertBillItems\", \"Categ Code:\" + CategCode.getText().toString());\n }\n\n // Kitchen Code\n if (RowBillItem.getChildAt(12) != null) {\n TextView KitchenCode = (TextView) RowBillItem.getChildAt(12);\n objBillItem.setKitchenCode(Integer.parseInt(KitchenCode.getText().toString()));\n Log.d(\"InsertBillItems\", \"Kitchen Code:\" + KitchenCode.getText().toString());\n }\n\n // Tax Type\n if (RowBillItem.getChildAt(13) != null) {\n TextView TaxType = (TextView) RowBillItem.getChildAt(13);\n objBillItem.setTaxType(Integer.parseInt(TaxType.getText().toString()));\n Log.d(\"InsertBillItems\", \"Tax Type:\" + TaxType.getText().toString());\n }\n\n // Modifier Amount\n if (RowBillItem.getChildAt(14) != null) {\n TextView ModifierAmount = (TextView) RowBillItem.getChildAt(14);\n objBillItem.setModifierAmount(Float.parseFloat(ModifierAmount.getText().toString()));\n Log.d(\"InsertBillItems\", \"Modifier Amt:\" + ModifierAmount.getText().toString());\n }\n\n if (RowBillItem.getChildAt(17) != null) {\n TextView SupplyType = (TextView) RowBillItem.getChildAt(17);\n objBillItem.setSupplyType(SupplyType.getText().toString());\n Log.d(\"InsertBillItems\", \"SupplyType:\" + SupplyType.getText().toString());\n\n }\n if (RowBillItem.getChildAt(22) != null) {\n TextView UOM = (TextView) RowBillItem.getChildAt(22);\n objBillItem.setUom(UOM.getText().toString());\n Log.d(\"InsertBillItems\", \"UOM:\" + UOM.getText().toString());\n\n }\n\n // subtotal\n double subtotal = objBillItem.getAmount() + objBillItem.getIGSTAmount() + objBillItem.getCGSTAmount() + objBillItem.getSGSTAmount();\n\n objBillItem.setSubTotal(subtotal);\n Log.d(\"InsertBillItems\", \"Sub Total :\" + subtotal);\n\n // Date\n String date_today = tvDate.getText().toString();\n //Log.d(\"Date \", date_today);\n try {\n Date date1 = new SimpleDateFormat(\"dd-MM-yyyy\").parse(date_today);\n objBillItem.setInvoiceDate(String.valueOf(date1.getTime()));\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n\n // cust name\n String custname = editTextName.getText().toString();\n objBillItem.setCustName(custname);\n Log.d(\"InsertBillItems\", \"CustName :\" + custname);\n\n String custGstin = etCustGSTIN.getText().toString().trim().toUpperCase();\n objBillItem.setGSTIN(custGstin);\n Log.d(\"InsertBillItems\", \"custGstin :\" + custGstin);\n\n // cust StateCode\n if (chk_interstate.isChecked()) {\n String str = spnr_pos.getSelectedItem().toString();\n int length = str.length();\n String sub = \"\";\n if (length > 0) {\n sub = str.substring(length - 2, length);\n }\n objBillItem.setCustStateCode(sub);\n Log.d(\"InsertBillItems\", \"CustStateCode :\" + sub+\" - \"+str);\n } else {\n objBillItem.setCustStateCode(db.getOwnerPOS_counter());// to be retrieved from database later -- richa to do\n Log.d(\"InsertBillItems\", \"CustStateCode :\"+objBillItem.getCustStateCode());\n }\n\n // BusinessType\n if (etCustGSTIN.getText().toString().equals(\"\")) {\n objBillItem.setBusinessType(\"B2C\");\n } else // gstin present means b2b bussiness\n {\n objBillItem.setBusinessType(\"B2B\");\n }\n Log.d(\"InsertBillItems\", \"BusinessType : \" + objBillItem.getBusinessType());\n objBillItem.setBillStatus(1);\n Log.d(\"InsertBillItems\", \"Bill Status:1\");\n // richa to do - hardcoded b2b bussinies type\n //objBillItem.setBusinessType(\"B2B\");\n lResult = db.addBillItems(objBillItem);\n Log.d(\"InsertBillItem\", \"Bill item inserted at position:\" + lResult);\n }\n }",
"public void provideOrderAccess() {\n\t\tint choiceOrder = View.NO_CHOICE;\n\t\t// get customer id and date for the order\n\t\tLong customerId = view.readIDWithPrompt(\"Enter Customer ID for Order: \");\n\t\tif (customerId == null) {\n\t\t\tSystem.out.println(\"Error: Customer Not Found.\");\n\t\t}\n\t\tLong orderId = view.readIDWithPrompt(\"Enter new Unique ID for Order: \");\n\t\tDate currDate = new Date();\n\n\t\t// create the order,\n\t\t// add the orderID to Customer\n\t\tatMyService.placeOrder(customerId, orderId, currDate);\n\n\t\t// enter loop to add items to the order\n\t\tArrayList<Long[]> items = new ArrayList<Long[]>();\n\t\twhile (choiceOrder != View.ENDORDER) {\n\t\t\t// display the order menu\n\t\t\tview.menuOrder();\n\t\t\tchoiceOrder = view.readIntWithPrompt(\"Enter choice: \");\n\t\t\tswitch (choiceOrder) {\n\t\t\t\tcase View.ADD_ORDER_ITEM:\n\t\t\t\t\tLong itemID = view.readIDWithPrompt(\"Enter Item ID: \");\n\t\t\t\t\t// note: Needs to be Long for Long[] below. \n\t\t\t\t\t//Also, i DO want to use readID rather than readInt then convert to long,\n\t\t\t\t\t// because I do not want amt to be negative. \n\t\t\t\t\tLong amt = view.readIDWithPrompt(\"Enter Amount: \");\n\t\t\t\t\t// check to see if the item exists and is in stock\n\t\t\t\t\tItem temp = atMyService.findItem(itemID);\n\t\t\t\t\tif (temp == null) {\n\t\t\t\t\t\tSystem.out.println(\"Item '\" + itemID + \"' not found. Item skipped.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((temp.getStock() - amt) < 0) {\n\t\t\t\t\t\t\tSystem.out.println(\"There is only '\" + temp.getStock() + \"' of this item left. Please try again.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// add the items to the arrayList\n\t\t\t\t\t\t\tLong[] toAdd = { itemID, amt };\n\t\t\t\t\t\t\titems.add(toAdd);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase View.ENDORDER:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// convert arrayList to array, add to orders.\n\t\tif (!(items.isEmpty())) {\n\t\t\tLong[][] array = new Long[items.size()][2];\n\t\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\t\tarray[i][0] = items.get(i)[0];\n\t\t\t\tarray[i][1] = items.get(i)[1];\n\t\t\t}\n\t\t\tatMyService.addOrderItems(orderId, array);\n\t\t}\n\t}",
"private void receiveOrder() {\n Intent intent = getIntent();\n MyOrder order = (MyOrder) intent.getSerializableExtra(getResources().getString(R.string.intentMesOrder));\n String help;\n final ArrayList<String> listing = new ArrayList<String>();\n ArrayAdapter<String> adap = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, listing);\n tableSauceString = order.findTableSauce();\n\n switch (intent.getExtras().getInt(getResources().getString(R.string.intentMesOrderType))) { // depending on the order type the received information are displayed\n case 1:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption) +\" \" +\n getResources().getString(R.string.rdbtPizzeria).toString());\n firstInfo.setText(getResources().getString(R.string.stringPartTable) + \" \" +\n String.valueOf(intent.getExtras().getInt(getResources()\n .getString(R.string.intentMesTable))));\n break;\n case 2:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption)+ \" \" +\n getResources().getString(R.string.rdbtTakeaway).toString());\n firstInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesPacking)));\n secondInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesTime)));\n break;\n case 3:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption)+ \" \" +\n getResources().getString(R.string.rdbtDelivery).toString());\n firstInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesAddress)));\n secondInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesPhone)));\n break;\n }\n help = String.format(\"%.2f\", order.getTotal());\n txtMoney.setText(help + getResources()\n .getString(R.string.currency));\n\n if(!(tableSauceString.equals(getResources().getString(R.string.stringNone)))){\n help = String.format(\"%.2f\", order.getTableSaucePrice());\n txtTableSauce.setText(getResources().getString(R.string.stringPartSauce)+\" \"\n + tableSauceString + \"(\" + help+ getResources().getString(R.string.currency) +\" )\");\n }\n\n helpTitle = order.writeOrder();\n helpInfo = order.getMoreOrder();\n for (int i = 0; i < helpTitle.length; i++) {\n if (helpTitle[i] != null) {\n listing.add(helpTitle[i]);\n }\n }\n list.setAdapter(adap);\n list.setOnItemLongClickListener(this);\n }",
"@Override\n public void onClick(View view) {\n String location = \"\";\n boolean met = false;\n if(method == 0){\n location = spTableChoice.getSelectedItem().toString();\n met = true;\n }else if(method == 1 && !etPickupName.getText().toString().isEmpty()){\n met = true;\n location = etPickupName.getText().toString();\n }else{\n Toast.makeText(getApplicationContext(), \"Please enter a pickup name!\", Toast.LENGTH_SHORT).show();\n }\n\n if(met){\n // Finalise the order as an order object\n order.setDestination(location);\n order.setOrderItems(orderHeld);\n order.setTotalPrice(totalPrice);\n\n addOrderDB();\n Toast.makeText(getApplicationContext(), \"Placed!\", Toast.LENGTH_SHORT).show();\n\n // Move to payment now\n //PayPalPay(totalPrice);\n }\n\n }",
"public void createOrder() throws FlooringDaoException {\n boolean validData = true;\n do {\n try {\n Order newOrder = view.getNewOrderInfo();\n service.createOrder(newOrder);\n validData = true;\n } catch (InvalidDataException ex) {\n view.displayError(ex.getMessage());\n validData = false;\n } catch (NumberFormatException ex) {\n view.displayError(\"Area must consist of digits 0-9 with or without a decimal point.\");\n validData = false;\n }\n } while (!validData);\n }",
"private void submitOrder(HttpServletRequest request, HttpServletResponse response) {\n User authUser = (User) request.getSession().getAttribute(REQUEST_USER.toString());\n OrderDAO orderDao = (OrderDAO) DAOFactory.getFactory(DB_MYSQL).createOrderDAO();\n Order myOrder = new Order(0, authUser.getId(), order, 0, 0);\n Integer orderNumber = orderDao.insert(myOrder);\n orderDishList = orderDao.fillOrderDishList(order);\n request.getSession().setAttribute(REQUEST_ORDER_NUMBER.toString(), orderNumber);\n request.setAttribute(REQUEST_DISH_LIST.toString(), orderDishList);\n\n }",
"public int addOrderDetail(List<OrderDetail> lOrderDetails, Order order);",
"public void submitOrder(View view) {\n EditText getName = (EditText)findViewById(R.id.name_field);\n String nameValue = getName.getText().toString();\n\n CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.Whipped_cream_checkbox);\n boolean hasWhippedCream = whippedCreamCheckBox.isChecked();\n\n CheckBox chocolateCheckBox = (CheckBox) findViewById(R.id.Chocolate_checkbox);\n boolean hasChocolate = chocolateCheckBox.isChecked();\n\n CheckBox CinnamonCheckBox = (CheckBox) findViewById(R.id.Cinnamon_checkbox);\n boolean hasCinnamon = CinnamonCheckBox.isChecked();\n\n CheckBox MarshmallowsCheckBox = (CheckBox) findViewById(R.id.Marshmallows_checkbox);\n boolean hasMarshmallows = MarshmallowsCheckBox.isChecked();\n\n int price = calculatePrice(hasWhippedCream, hasChocolate, hasMarshmallows, hasCinnamon);\n String priceMessage = createOrderSummary(nameValue, price, hasWhippedCream,hasChocolate, hasCinnamon, hasMarshmallows);\n /*displayMessage(priceMessage);*/\n // Use an intent to launch an email app.\n // Send the order summary in the email body.\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_SUBJECT, \"JustJava order for \" + nameValue);\n intent.putExtra(Intent.EXTRA_TEXT, priceMessage);\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"private void InsertBillItems() {\r\n\r\n // Inserted Row Id in database table\r\n long lResult = 0;\r\n\r\n // Bill item object\r\n BillItem objBillItem;\r\n\r\n // Reset TotalItems count\r\n iTotalItems = 0;\r\n\r\n Cursor crsrUpdateItemStock = null;\r\n\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n objBillItem = new BillItem();\r\n\r\n TableRow RowBillItem = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n // Increment Total item count if row is not empty\r\n if (RowBillItem.getChildCount() > 0) {\r\n iTotalItems++;\r\n }\r\n\r\n\r\n\r\n // Bill Number\r\n objBillItem.setBillNumber(tvBillNumber.getText().toString());\r\n Log.d(\"InsertBillItems\", \"InvoiceNo:\" + tvBillNumber.getText().toString());\r\n\r\n // richa_2012\r\n //BillingMode\r\n objBillItem.setBillingMode(String.valueOf(jBillingMode));\r\n Log.d(\"InsertBillItems\", \"Billing Mode :\" + String.valueOf(jBillingMode));\r\n\r\n // Item Number\r\n if (RowBillItem.getChildAt(0) != null) {\r\n CheckBox ItemNumber = (CheckBox) RowBillItem.getChildAt(0);\r\n objBillItem.setItemNumber(Integer.parseInt(ItemNumber.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Item Number:\" + ItemNumber.getText().toString());\r\n\r\n crsrUpdateItemStock = dbBillScreen.getItem(Integer.parseInt(ItemNumber.getText().toString()));\r\n }\r\n\r\n // Item Name\r\n if (RowBillItem.getChildAt(1) != null) {\r\n TextView ItemName = (TextView) RowBillItem.getChildAt(1);\r\n objBillItem.setItemName(ItemName.getText().toString());\r\n Log.d(\"InsertBillItems\", \"Item Name:\" + ItemName.getText().toString());\r\n }\r\n\r\n if (RowBillItem.getChildAt(2) != null) {\r\n TextView HSN = (TextView) RowBillItem.getChildAt(2);\r\n objBillItem.setHSNCode(HSN.getText().toString());\r\n Log.d(\"InsertBillItems\", \"Item HSN:\" + HSN.getText().toString());\r\n }\r\n\r\n // Quantity\r\n double qty_d = 0.00;\r\n if (RowBillItem.getChildAt(3) != null) {\r\n EditText Quantity = (EditText) RowBillItem.getChildAt(3);\r\n String qty_str = Quantity.getText().toString();\r\n if(qty_str==null || qty_str.equals(\"\"))\r\n {\r\n Quantity.setText(\"0.00\");\r\n }else\r\n {\r\n qty_d = Double.parseDouble(qty_str);\r\n }\r\n\r\n objBillItem.setQuantity(Float.parseFloat(String.format(\"%.2f\",qty_d)));\r\n Log.d(\"InsertBillItems\", \"Quantity:\" + Quantity.getText().toString());\r\n\r\n if (crsrUpdateItemStock!=null && crsrUpdateItemStock.moveToFirst()) {\r\n // Check if item's bill with stock enabled update the stock\r\n // quantity\r\n if (BillwithStock == 1) {\r\n UpdateItemStock(crsrUpdateItemStock, Float.parseFloat(Quantity.getText().toString()));\r\n }\r\n\r\n\r\n }\r\n }\r\n\r\n // Rate\r\n double rate_d = 0.00;\r\n if (RowBillItem.getChildAt(4) != null) {\r\n EditText Rate = (EditText) RowBillItem.getChildAt(4);\r\n String rate_str = Rate.getText().toString();\r\n if((rate_str==null || rate_str.equals(\"\")))\r\n {\r\n Rate.setText(\"0.00\");\r\n }else\r\n {\r\n rate_d = Double.parseDouble(rate_str);\r\n }\r\n\r\n objBillItem.setValue(Float.parseFloat(String.format(\"%.2f\",rate_d)));\r\n Log.d(\"InsertBillItems\", \"Rate:\" + Rate.getText().toString());\r\n }\r\n\r\n\r\n // oRIGINAL rate in case of reverse tax\r\n if (RowBillItem.getChildAt(27) != null) {\r\n TextView originalRate = (TextView) RowBillItem.getChildAt(27);\r\n objBillItem.setOriginalRate(Double.parseDouble(originalRate.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Original Rate :\" + objBillItem.getOriginalRate());\r\n }\r\n if (RowBillItem.getChildAt(28) != null) {\r\n TextView TaxableValue = (TextView) RowBillItem.getChildAt(28);\r\n objBillItem.setTaxableValue(Double.parseDouble(TaxableValue.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"TaxableValue :\" + objBillItem.getTaxableValue());\r\n }\r\n\r\n // Amount\r\n if (RowBillItem.getChildAt(5) != null) {\r\n TextView Amount = (TextView) RowBillItem.getChildAt(5);\r\n objBillItem.setAmount(Double.parseDouble(Amount.getText().toString()));\r\n String reverseTax = \"\";\r\n if (!(crsrSettings.getInt(crsrSettings.getColumnIndex(\"Tax\")) == 1)) { // reverse tax\r\n reverseTax = \" (Reverse Tax)\";\r\n objBillItem.setIsReverTaxEnabled(\"YES\");\r\n }else\r\n {\r\n objBillItem.setIsReverTaxEnabled(\"NO\");\r\n }\r\n Log.d(\"InsertBillItems\", \"Amount :\" + objBillItem.getAmount()+reverseTax);\r\n }\r\n\r\n // oRIGINAL rate in case of reverse tax\r\n if (RowBillItem.getChildAt(27) != null) {\r\n TextView originalRate = (TextView) RowBillItem.getChildAt(27);\r\n objBillItem.setOriginalRate(Double.parseDouble(originalRate.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Original Rate :\" + objBillItem.getOriginalRate());\r\n }\r\n\r\n // Discount %\r\n if (RowBillItem.getChildAt(8) != null) {\r\n TextView DiscountPercent = (TextView) RowBillItem.getChildAt(8);\r\n objBillItem.setDiscountPercent(Float.parseFloat(DiscountPercent.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Disc %:\" + DiscountPercent.getText().toString());\r\n }\r\n\r\n // Discount Amount\r\n if (RowBillItem.getChildAt(9) != null) {\r\n TextView DiscountAmount = (TextView) RowBillItem.getChildAt(9);\r\n objBillItem.setDiscountAmount(Float.parseFloat(DiscountAmount.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Disc Amt:\" + DiscountAmount.getText().toString());\r\n // dblTotalDiscount += Float.parseFloat(DiscountAmount.getText().toString());\r\n }\r\n\r\n\r\n // Service Tax Percent\r\n float sgatTax = 0;\r\n if (RowBillItem.getChildAt(15) != null) {\r\n TextView ServiceTaxPercent = (TextView) RowBillItem.getChildAt(15);\r\n sgatTax = Float.parseFloat(ServiceTaxPercent.getText().toString());\r\n if (chk_interstate.isChecked()) {\r\n objBillItem.setSGSTAmount(0.00f);\r\n Log.d(\"InsertBillItems\", \"SGST Tax %: 0\");\r\n\r\n } else {\r\n objBillItem.setSGSTRate(Float.parseFloat(ServiceTaxPercent.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"SGST Tax %: \" + objBillItem.getSGSTRate());\r\n }\r\n }\r\n\r\n // Service Tax Amount\r\n double sgstAmt = 0;\r\n if (RowBillItem.getChildAt(16) != null) {\r\n TextView ServiceTaxAmount = (TextView) RowBillItem.getChildAt(16);\r\n sgstAmt = Double.parseDouble(ServiceTaxAmount.getText().toString());\r\n if (chk_interstate.isChecked()) {\r\n objBillItem.setSGSTAmount(0);\r\n Log.d(\"InsertBillItems\", \"SGST Amount : 0\" );\r\n\r\n } else {\r\n objBillItem.setSGSTAmount(Double.parseDouble(String.format(\"%.2f\", sgstAmt)));\r\n Log.d(\"InsertBillItems\", \"SGST Amount : \" + objBillItem.getSGSTAmount());\r\n }\r\n }\r\n\r\n // Sales Tax %\r\n if (RowBillItem.getChildAt(6) != null) {\r\n TextView SalesTaxPercent = (TextView) RowBillItem.getChildAt(6);\r\n float cgsttax = (Float.parseFloat(SalesTaxPercent.getText().toString()));\r\n if (chk_interstate.isChecked()) {\r\n //objBillItem.setIGSTRate(Float.parseFloat(String.format(\"%.2f\", cgsttax + sgatTax)));\r\n // Log.d(\"InsertBillItems\", \" IGST Tax %: \" + objBillItem.getIGSTRate());\r\n objBillItem.setCGSTRate(0.00f);\r\n Log.d(\"InsertBillItems\", \" CGST Tax %: 0.00\");\r\n }else{\r\n // objBillItem.setIGSTRate(0.00f);\r\n // Log.d(\"InsertBillItems\", \" IGST Tax %: 0.00\");\r\n objBillItem.setCGSTRate(Float.parseFloat(String.format(\"%.2f\",Float.parseFloat(SalesTaxPercent.getText().toString()))));\r\n Log.d(\"InsertBillItems\", \" CGST Tax %: \" + SalesTaxPercent.getText().toString());\r\n }\r\n }\r\n // Sales Tax Amount\r\n if (RowBillItem.getChildAt(7) != null) {\r\n TextView SalesTaxAmount = (TextView) RowBillItem.getChildAt(7);\r\n double cgstAmt = (Double.parseDouble(SalesTaxAmount.getText().toString()));\r\n if (chk_interstate.isChecked()) {\r\n //objBillItem.setIGSTAmount(Float.parseFloat(String.format(\"%.2f\",cgstAmt+sgstAmt)));\r\n //Log.d(\"InsertBillItems\", \"IGST Amt: \" + objBillItem.getIGSTAmount());\r\n objBillItem.setCGSTAmount(0);\r\n Log.d(\"InsertBillItems\", \"CGST Amt: 0\");\r\n } else {\r\n // objBillItem.setIGSTAmount(0.00f);\r\n //Log.d(\"InsertBillItems\", \"IGST Amt: 0\");\r\n objBillItem.setCGSTAmount(Double.parseDouble(String.format(\"%.2f\", cgstAmt)));\r\n Log.d(\"InsertBillItems\", \"CGST Amt: \" + SalesTaxAmount.getText().toString());\r\n }\r\n }\r\n // IGST Tax %\r\n if (RowBillItem.getChildAt(23) != null) {\r\n TextView IGSTTaxPercent = (TextView) RowBillItem.getChildAt(23);\r\n float igsttax = (Float.parseFloat(IGSTTaxPercent.getText().toString()));\r\n if (chk_interstate.isChecked()) {\r\n objBillItem.setIGSTRate(Float.parseFloat(String.format(\"%.2f\", igsttax)));\r\n Log.d(\"InsertBillItems\", \" IGST Tax %: \" + objBillItem.getIGSTRate());\r\n }else{\r\n objBillItem.setIGSTRate(0.00f);\r\n Log.d(\"InsertBillItems\", \" IGST Tax %: 0.00\");\r\n }\r\n }\r\n // IGST Tax Amount\r\n if (RowBillItem.getChildAt(24) != null) {\r\n TextView IGSTTaxAmount = (TextView) RowBillItem.getChildAt(24);\r\n float igstAmt = (Float.parseFloat(IGSTTaxAmount.getText().toString()));\r\n if (chk_interstate.isChecked()) {\r\n objBillItem.setIGSTAmount(Double.parseDouble(String.format(\"%.2f\",igstAmt)));\r\n Log.d(\"InsertBillItems\", \"IGST Amt: \" + objBillItem.getIGSTAmount());\r\n } else {\r\n objBillItem.setIGSTAmount(0);\r\n Log.d(\"InsertBillItems\", \"IGST Amt: 0\");\r\n }\r\n }\r\n\r\n // cess Tax %\r\n if (RowBillItem.getChildAt(25) != null) {\r\n TextView cessTaxPercent = (TextView) RowBillItem.getChildAt(25);\r\n float cesstax = (Float.parseFloat(cessTaxPercent.getText().toString()));\r\n objBillItem.setCessRate(Float.parseFloat(String.format(\"%.2f\", cesstax)));\r\n Log.d(\"InsertBillItems\", \" cess Tax %: \" + objBillItem.getCessRate());\r\n }\r\n // cess amount per unit\r\n if (RowBillItem.getChildAt(26) != null) {\r\n TextView cessPerUnitAmt = (TextView) RowBillItem.getChildAt(26);\r\n double cessPerunit = (Double.parseDouble(cessPerUnitAmt.getText().toString()));\r\n if (objBillItem.getCessRate() > 0)\r\n objBillItem.setDblCessAmountPerUnit(0.00);\r\n else\r\n objBillItem.setDblCessAmountPerUnit(Double.parseDouble(String.format(\"%.2f\", cessPerunit)));\r\n objBillItem.setCessAmount(Double.parseDouble(String.format(\"%.2f\", cessPerunit * objBillItem.getQuantity())));\r\n Log.d(\"InsertBillItems\", \"cess Amt: \" + objBillItem.getDblCessAmountPerUnit());\r\n }\r\n // additional cess amount\r\n if (RowBillItem.getChildAt(29) != null) {\r\n TextView tvadditionalcess = (TextView) RowBillItem.getChildAt(29);\r\n double additionalCess = (Double.parseDouble(tvadditionalcess.getText().toString()));\r\n objBillItem.setDblAdditionalCessAmount(additionalCess);\r\n objBillItem.setDblTotalAdditionalCessAmount(Double.parseDouble(String.format(\"%.2f\", additionalCess * objBillItem.getQuantity())));\r\n Log.d(\"InsertBillItems\", \"cess Amt: \" + objBillItem.getDblAdditionalCessAmount());\r\n }\r\n\r\n // Discount %\r\n if (RowBillItem.getChildAt(8) != null) {\r\n TextView DiscountPercent = (TextView) RowBillItem.getChildAt(8);\r\n objBillItem.setDiscountPercent(Float.parseFloat(DiscountPercent.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Disc %:\" + DiscountPercent.getText().toString());\r\n }\r\n\r\n // Discount Amount\r\n if (RowBillItem.getChildAt(9) != null) {\r\n TextView DiscountAmount = (TextView) RowBillItem.getChildAt(9);\r\n objBillItem.setDiscountAmount(Float.parseFloat(DiscountAmount.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Disc Amt:\" + DiscountAmount.getText().toString());\r\n\r\n // dblTotalDiscount += Float.parseFloat(DiscountAmount.getText().toString());\r\n }\r\n\r\n // Department Code\r\n if (RowBillItem.getChildAt(10) != null) {\r\n TextView DeptCode = (TextView) RowBillItem.getChildAt(10);\r\n objBillItem.setDeptCode(Integer.parseInt(DeptCode.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Dept Code:\" + DeptCode.getText().toString());\r\n }\r\n\r\n // Category Code\r\n if (RowBillItem.getChildAt(11) != null) {\r\n TextView CategCode = (TextView) RowBillItem.getChildAt(11);\r\n objBillItem.setCategCode(Integer.parseInt(CategCode.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Categ Code:\" + CategCode.getText().toString());\r\n }\r\n\r\n // Kitchen Code\r\n if (RowBillItem.getChildAt(12) != null) {\r\n TextView KitchenCode = (TextView) RowBillItem.getChildAt(12);\r\n objBillItem.setKitchenCode(Integer.parseInt(KitchenCode.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Kitchen Code:\" + KitchenCode.getText().toString());\r\n }\r\n\r\n // Tax Type\r\n if (RowBillItem.getChildAt(13) != null) {\r\n TextView TaxType = (TextView) RowBillItem.getChildAt(13);\r\n objBillItem.setTaxType(Integer.parseInt(TaxType.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Tax Type:\" + TaxType.getText().toString());\r\n }\r\n\r\n // Modifier Amount\r\n if (RowBillItem.getChildAt(14) != null) {\r\n TextView ModifierAmount = (TextView) RowBillItem.getChildAt(14);\r\n objBillItem.setModifierAmount(Float.parseFloat(ModifierAmount.getText().toString()));\r\n Log.d(\"InsertBillItems\", \"Modifier Amt:\" + ModifierAmount.getText().toString());\r\n }\r\n\r\n\r\n\r\n if (RowBillItem.getChildAt(17) != null) {\r\n TextView SupplyType = (TextView) RowBillItem.getChildAt(17);\r\n objBillItem.setSupplyType(SupplyType.getText().toString());\r\n Log.d(\"InsertBillItems\", \"SupplyType:\" + SupplyType.getText().toString());\r\n /*if (GSTEnable.equals(\"1\")) {\r\n objBillItem.setSupplyType(SupplyType.getText().toString());\r\n Log.d(\"InsertBillItems\", \"SupplyType:\" + SupplyType.getText().toString());\r\n } else {\r\n objBillItem.setSupplyType(\"\");\r\n }*/\r\n }\r\n if (RowBillItem.getChildAt(22) != null) {\r\n TextView UOM = (TextView) RowBillItem.getChildAt(22);\r\n objBillItem.setUom(UOM.getText().toString());\r\n Log.d(\"InsertBillItems\", \"UOM:\" + UOM.getText().toString());\r\n\r\n }\r\n\r\n // subtotal\r\n double subtotal = objBillItem.getAmount() + objBillItem.getIGSTAmount() + objBillItem.getCGSTAmount() + objBillItem.getSGSTAmount();\r\n objBillItem.setSubTotal(subtotal);\r\n Log.d(\"InsertBillItems\", \"Sub Total :\" + subtotal);\r\n\r\n // Date\r\n String date_today = tvDate.getText().toString();\r\n //Log.d(\"Date \", date_today);\r\n try {\r\n Date date1 = new SimpleDateFormat(\"dd-MM-yyyy\").parse(date_today);\r\n objBillItem.setInvoiceDate(String.valueOf(date1.getTime()));\r\n }catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n // cust name\r\n String custname = edtCustName.getText().toString();\r\n objBillItem.setCustName(custname);\r\n Log.d(\"InsertBillItems\", \"CustName :\" + custname);\r\n\r\n String custgstin = etCustGSTIN.getText().toString().trim().toUpperCase();\r\n objBillItem.setGSTIN(custgstin);\r\n Log.d(\"InsertBillItems\", \"custgstin :\" + custgstin);\r\n\r\n if (chk_interstate.isChecked()) {\r\n String str = spnr_pos.getSelectedItem().toString();\r\n int length = str.length();\r\n String sub = \"\";\r\n if (length > 0) {\r\n sub = str.substring(length - 2, length);\r\n }\r\n objBillItem.setCustStateCode(sub);\r\n Log.d(\"InsertBillItems\", \"CustStateCode :\" + sub+\" - \"+str);\r\n } else {\r\n objBillItem.setCustStateCode(db.getOwnerPOS());// to be retrieved from database later -- richa to do\r\n Log.d(\"InsertBillItems\", \"CustStateCode :\"+objBillItem.getCustStateCode());\r\n }\r\n\r\n\r\n // BusinessType\r\n if (etCustGSTIN.getText().toString().equals(\"\")) {\r\n objBillItem.setBusinessType(\"B2C\");\r\n } else // gstin present means b2b bussiness\r\n {\r\n objBillItem.setBusinessType(\"B2B\");\r\n }\r\n\r\n Log.d(\"InsertBillItems\", \"BusinessType : \" + objBillItem.getBusinessType());\r\n\r\n // richa to do - hardcoded b2b bussinies type\r\n //objBillItem.setBusinessType(\"B2B\");\r\n if (jBillingMode == 4) {\r\n objBillItem.setBillStatus(2);\r\n Log.d(\"InsertBillItem\", \"Bill Status:2\");\r\n } else {\r\n objBillItem.setBillStatus(1);\r\n Log.d(\"InsertBillItem\", \"Bill Status:1\");\r\n }\r\n\r\n if(jBillingMode == 3){\r\n if(etOnlineOrderNo != null && !etOnlineOrderNo.getText().toString().isEmpty()){\r\n objBillItem.setStrOnlineOrderNo(etOnlineOrderNo.getText().toString());\r\n }\r\n }\r\n\r\n lResult = db.addBillItems(objBillItem);\r\n Log.d(\"InsertBillItem\", \"Bill item inserted at position:\" + lResult);\r\n }\r\n }",
"public void submitOrder(View view) {\n EditText nameText = (EditText) findViewById(R.id.edt_Name);\n String name = nameText.getText().toString();\n\n CheckBox whippedCream = (CheckBox) findViewById(R.id.chx_WhippedCream);\n boolean cream = whippedCream.isChecked();\n\n CheckBox hasChocolate = (CheckBox) findViewById(R.id.chx_Chocolate);\n boolean chocolate = hasChocolate.isChecked();\n\n int price = calculatePrice(cream, chocolate);\n displayMessage(createOrderSummary(price, cream, chocolate, name));\n sendReceipt(name, createOrderSummary(price,cream,chocolate,name));\n }",
"@Override\n\tpublic void cr_Order(String id, String name, String dizi, String date,\n\t\t\tFloat cost, int status, int type, String serilNumber) {\n\t\tConnection lianjie = super.lianjie();\n\t\tString sql=\"insert into easybuy_order values(null,?,?,?,?,?,?,?,?)\";\n\t\tPreparedStatement pr=null;\n\t\ttry {\n\t\t\tpr=lianjie.prepareStatement(sql);\n\t\t\tpr.setString(1, id);\n\t\t\tpr.setString(2, name);\n\t\t\tpr.setString(3, dizi);\n\t\t\tpr.setString(4, date);\n\t\t\tpr.setFloat(5, cost);\n\t\t\tpr.setInt(6, status);\n\t\t\tpr.setInt(7, type);\n\t\t\tpr.setString(8, serilNumber);\n\t\t\tpr.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsuper.guanbi(null, pr, lianjie);\n\t}",
"void newOrder();",
"Order addOrder(String orderNumber, Order order)\n throws FlooringMasteryPersistenceException;",
"public void create(Order order) {\n\t\torderDao.create(order);\n\t}",
"@FormUrlEncoded\n @POST(\"UserData/create_order\")\n public Observable<UserDataResponse> CreateOrder(@Field(\"ord_slm_id\") String ord_slm_id,\n @Field(\"ord_dl_id\") String dealer_id,\n @Field(\"sord_prd_id\") String sord_prd_id,\n @Field(\"sord_qty\") String sord_qty,\n @Field(\"sord_price\") String sord_price,\n @Field(\"ord_total\") String ord_total,\n @Field(\"ord_point\") String ord_point,\n @Field(\"sord_point\") String sord_point,\n @Field(\"sord_total\") String sord_total,\n @Field(\"ord_type\") String ord_type,\n @Field(\"ord_dstr_id\") String ord_dstr_id,\n @Field(\"ord_dl_id\") String ord_dl_id);",
"private void addOrder() {\r\n // Variables\r\n String date = null, cust_email = null, cust_location = null, product_id = null;\r\n int quantity = 0;\r\n\r\n // Date-Time Format \"YYYY-MM-DD\"\r\n DateTimeFormatter dateFormatter = DateTimeFormatter.ISO_LOCAL_DATE;\r\n boolean date_Valid = false;\r\n\r\n // Separator for user readability\r\n String s = \"----------------------------------------\"; // separator\r\n\r\n boolean user_confirmed = false;\r\n while (!user_confirmed) {\r\n\r\n // module header\r\n System.out.println(s);\r\n System.out.println(\"Adding Order: \");\r\n System.out.println(s);\r\n\r\n // Getting the user date for entry\r\n System.out.print(\"Enter Date(YYYY-MM-DD): \");\r\n date = console.next();\r\n //This while loop will check if the date is valid\r\n while (!date_Valid) {\r\n try {\r\n LocalDate.parse(date, dateFormatter);\r\n System.out.println(\"Validated Date\");\r\n date_Valid = true;\r\n } catch (DateTimeParseException e) {\r\n date_Valid = false;\r\n System.out.println(\"Invalid Date\");\r\n System.out.print(\"Enter valid date(YYYY-MM-DD):\");\r\n date = console.next();\r\n }\r\n }\r\n\r\n // Getting user email\r\n System.out.print(\"Enter customer email: \");\r\n cust_email = console.next();\r\n boolean flag = false;\r\n int countr = 0, countd = 0;\r\n while(!flag) {\r\n //This loop will check if the email is valid\r\n for (int i = 0; i < cust_email.length(); i++) {\r\n if (cust_email.charAt(i) == '@') {\r\n countr++;\r\n if (countr > 1) {\r\n flag = false;\r\n break;\r\n }\r\n if (i >= 1) flag = true;\r\n else {\r\n flag = false;\r\n break;\r\n }\r\n\r\n }\r\n if (cust_email.charAt(i) == '.') {\r\n countd++;\r\n if (countd > 1) {\r\n flag = false;\r\n break;\r\n }\r\n if (i >= 3) flag = true;\r\n else {\r\n flag = false;\r\n break;\r\n }\r\n }\r\n if (cust_email.indexOf(\".\") - cust_email.indexOf(\"@\") >= 2) {\r\n flag = true;\r\n }\r\n if (!flag) break;\r\n }\r\n if (flag && cust_email.length() >= 5) {\r\n System.out.println(\"Validated Email\");\r\n break;\r\n } else {\r\n System.out.println(\"Invalid Email\");\r\n }\r\n }\r\n\r\n //Validate the customer ZIP code\r\n System.out.print(\"Enter ZIP Code: \");\r\n cust_location = console.next();\r\n while((cust_location.length()) != 5){\r\n System.out.println(\"ZIP Code must be 5 characters long\");\r\n System.out.print(\"Enter ZIP Code: \");\r\n cust_location = console.next();\r\n }\r\n\r\n // Validate product id\r\n System.out.print(\"Enter Product ID: \");\r\n product_id = console.next();\r\n while ((product_id.length()) != 12) {\r\n System.out.println(\"Product ID must be 12 characters long!\");\r\n System.out.print(\"Enter Product ID: \");\r\n product_id = console.next();\r\n }\r\n\r\n // Validate quantity\r\n System.out.print(\"Enter Quantity: \");\r\n while (!console.hasNextInt()) {\r\n System.out.println(\"Quantity must be a whole number!\");\r\n System.out.print(\"Enter Quantity: \");\r\n console.next();\r\n }\r\n quantity = console.nextInt();\r\n\r\n //Confirming Entries\r\n System.out.println(s);\r\n System.out.println(\"You entered the following values:\");\r\n System.out.println(s);\r\n System.out.printf(\"%-11s %-20s %-20s %-18s %-11s\\n\", \"|DATE:|\", \"|CUSTOMER EMAIL:|\", \"|CUSTOMER LOCATION:|\", \"|PRODUCT ID:|\", \"|QUANTITY:|\");\r\n System.out.printf(\"%-11s %-20s %-20s %-18s %11s\\n\", date, cust_email, cust_location, product_id, quantity);\r\n System.out.println(s);\r\n System.out.println(\"Is this correct?\");\r\n System.out.print(\"Type 'yes' to add this record, type 'no' to start over: \");\r\n String inp = console.next();\r\n boolean validated = false;\r\n while (validated == false) {\r\n if (inp.toLowerCase().equals(\"yes\")) {\r\n validated = true;\r\n user_confirmed = true;\r\n }\r\n else if (inp.toLowerCase().equals(\"no\")) {\r\n validated = true;\r\n\r\n }\r\n else {\r\n System.out.print(\"Invalid response. Please type 'yes' or 'no': \");\r\n inp = console.next();\r\n }\r\n }\r\n }\r\n OrderItem newItem = new OrderItem(date, cust_email, cust_location, product_id, quantity);\r\n orderInfo.add(newItem);\r\n\r\n // alert user and get next step\r\n System.out.println(s);\r\n System.out.println(\"Entry added to Data Base!\");\r\n System.out.println(s);\r\n System.out.println(\"Do you want to add another entry?\");\r\n System.out.print(\"Type 'yes' to add another entry, or 'no' to exit to main menu: \");\r\n String inp = console.next();\r\n boolean valid = false;\r\n while (valid == false) {\r\n if (inp.toLowerCase().equals(\"yes\")) {\r\n valid = true;\r\n addOrder();\r\n } else if (inp.toLowerCase().equals(\"no\")) {\r\n valid = true; // possibly direct to main menu later\r\n } else {\r\n System.out.print(\"Invalid response. Please type 'yes' or 'no': \");\r\n inp = console.next();\r\n }\r\n }\r\n }",
"@Test\n public void testAddOrder() {\n Order addedOrder = new Order();\n\n addedOrder.setOrderNumber(1);\n addedOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n addedOrder.setCustomer(\"Add Test\");\n addedOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n addedOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n addedOrder.setArea(new BigDecimal(\"100.00\"));\n addedOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n addedOrder.setLaborCost(new BigDecimal(\"475.00\"));\n addedOrder.setTaxCost(new BigDecimal(\"61.88\"));\n addedOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n dao.addOrder(addedOrder);\n\n Order daoOrder = dao.getAllOrders().get(0);\n\n assertEquals(addedOrder, daoOrder);\n }",
"public void createOrderInDB() {\n if (newCustomer.isSelected()) {\n\n if(customerPhone.getText().isEmpty() ) {\n customerPhone.setStyle(\"-fx-focus-color: RED\");\n customerPhone.requestFocus();\n } else if(customerName.getText().isEmpty()) {\n customerName.setStyle(\"-fx-focus-color: RED\");\n customerName.requestFocus();\n } else {\n ControllerPartner controller = new ControllerPartner();\n controller.createOrderNewCustomer(customerPhone.getText(), customerName.getText(), totalPrice.getText());\n Label successMessage = new Label(\"Order is created, an sms with invoice is sent to the customer\");\n successMessage.setLayoutX(305);\n successMessage.setLayoutY(800);\n successMessage.setTextFill(Color.CORAL);\n root.getChildren().add(successMessage);\n content();\n\n customerName.clear();\n customerPhone.clear();\n\n }\n\n\n\n\n } else if (existingCustomer.isSelected()) {\n }\n }",
"public void insertNewOrderDB(String customerID, String status) {\n newID = countOrders() + 1;\n sql = \"Insert into Order (OrderID, CustomerID, Status) VALUES ('\"+newID+\"','\"+customerID+\"', '\"+status+\"')\";\n System.out.println(sql + \"\\n\" + newID);\n db.insertDB(sql);\n \n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n compoundListDropDown = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n quantityField = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n orderTable = new javax.swing.JTable();\n backBtn = new javax.swing.JButton();\n submitBtn = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel1.setText(\"Manage Compound Synthesis\");\n\n jLabel2.setText(\"Compound\");\n\n jLabel3.setText(\"Quantity\");\n\n orderTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Name\", \"Quantity\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n true, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(orderTable);\n\n backBtn.setText(\"back\");\n backBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backBtnActionPerformed(evt);\n }\n });\n\n submitBtn.setText(\"save order\");\n submitBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n submitBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(compoundListDropDown, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(quantityField, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 9, Short.MAX_VALUE)))))\n .addGap(101, 101, 101))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(backBtn)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(submitBtn)\n .addGap(72, 72, 72))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(jLabel1)\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(compoundListDropDown, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(quantityField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(submitBtn)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(backBtn)\n .addContainerGap(45, Short.MAX_VALUE))\n );\n }",
"public static Result confirmOrder(Orders orderObj){\n \n Result result = Result.FAILURE_PROCESS;\n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceBundle rs = ResourceBundle.getBundle(\"com.generic.resources.mysqlQuery\");\n Connection conn = mysql.getConnection();\n PreparedStatement preStat;\n boolean isSuccessInsertion;\n \n// if(!Checker.isValidDate(date))\n// return Result.FAILURE_CHECKER_DATE;\n\n try{ \n String order_id = Util.generateID();\n \n preStat = conn.prepareStatement(rs.getString(\"mysql.order.update.insert.1\"));\n preStat.setString(1, order_id);\n preStat.setString(2, \"1\" );\n preStat.setInt(3, 0);\n preStat.setLong(4, orderObj.getDate());\n preStat.setLong(5, orderObj.getDelay());\n preStat.setString(6, orderObj.getNote());\n preStat.setDouble(7, -1);\n preStat.setString(8, orderObj.getUserAddressID());\n preStat.setString(9, orderObj.getDistributerAddressID());\n \n \n if(preStat.executeUpdate()==1){\n List<OrderProduct> orderProductList = orderObj.getOrderProductList();\n isSuccessInsertion = orderProductList.size()>0;\n\n // - * - If process fail then break operation\n insertionFail:\n for(OrderProduct orderProduct:orderProductList){\n preStat = conn.prepareStatement(rs.getString(\"mysql.orderProduct.update.insert.1\"));\n preStat.setString(1, order_id);\n preStat.setString(2, orderProduct.getCompanyProduct_id());\n preStat.setDouble(3, orderProduct.getQuantity());\n\n if(preStat.executeUpdate()!=1){\n isSuccessInsertion = false;\n break insertionFail;\n }\n }\n\n // - * - Return success\n if(isSuccessInsertion){\n mysql.commitAndCloseConnection();\n return Result.SUCCESS.setContent(\"Siparişiniz başarılı bir şekilde verilmiştir...\");\n }\n\n // - * - If operation fail then rollback \n mysql.rollbackAndCloseConnection();\n }\n\n } catch (Exception ex) {\n mysql.rollbackAndCloseConnection();\n Logger.getLogger(DBOrder.class.getName()).log(Level.SEVERE, null, ex);\n return Result.FAILURE_PROCESS.setContent(ex.getMessage());\n } finally {\n mysql.closeAllConnection();\n } \n\n return result;\n }",
"public void onClick(DialogInterface dialog, int whichButton) {\n String text = input.getText().toString();\r\n if (text.trim().equals(\"\")) {\r\n text = getString(R.string.default_shoppinglist_title) + mTableNum;\r\n }\r\n addNewButton(MainActivity.this, text, mTableNum);\r\n mMyCreateDBTable.createTable(mTableNum, TABLE_NAME + mTableNum, text);\r\n\r\n //copy table's item to database from mCheckedList\r\n Cursor cursor = mMyCreateDBTable.getTableList();\r\n int i = 0;\r\n if (cursor.getCount() > 0) {\r\n cursor.moveToFirst();\r\n do {\r\n if (i < mCheckedList.length && mCheckedList[i] == true) {\r\n mMyCreateDBTable.openTable(TABLE_NAME + cursor.getInt(1));\r\n Cursor cursorInList = mMyCreateDBTable.getData();\r\n if (cursorInList.getCount() > 0) {\r\n cursorInList.moveToFirst();\r\n do {\r\n mMyCreateDBTable.insertToTable(TABLE_NAME + mTableNum, cursorInList.getString(1), cursorInList.getInt(2), cursorInList.getString(3), cursorInList.getFloat(4), cursorInList.getString(5), cursor.getString(3) + \"\\n\" + cursorInList.getString(7), cursorInList.getString(8));\r\n } while (cursorInList.moveToNext());\r\n }\r\n cursorInList.close();\r\n }\r\n i++;\r\n } while (cursor.moveToNext());\r\n }\r\n cursor.close();\r\n mTableNum++;\r\n }",
"public static String sendOrder(ArrayList<MenuItem> orders) {\n try {\n JSONObject obj = new JSONObject();\n obj.put(\"name\", new String(\"Person1\"));\n obj.put(\"storeId\", storeId);\n JSONArray array = new JSONArray(); //array of items ordered\n JSONObject orderDetails = new JSONObject(); //for each item ordered\n\n int orderSize = orders.size();\n for (int i = 0; i < orderSize; i++) {\n //add order details\n orderDetails.put(\"itemId\", orders.get(i).getId());\n orderDetails.put(\"quantity\", orders.get(i).getQuantity());\n //put order details into this array\n array.put(orderDetails);\n orderDetails = new JSONObject(); //reset the orderDetail for a new item.\n }\n obj.put(\"order\", array);\n// obj.put(\"name\", new String(\"John\")); //name on the order\n// obj.put(\"storeId\", storeId);\n\n// LinkedHashMap<String, String> jsonOrderedMap = new LinkedHashMap<String, String>();\n//\n// jsonOrderedMap.put(\"name\",new String(\"John\"));\n// jsonOrderedMap.put(\"storeId\", storeId);\n// jsonOrderedMap.put(\"order\", array);\n//\n// JSONObject orderedJson = new JSONObject(jsonOrderedMap);\n//\n// JSONArray jsonArray = new JSONArray(Arrays.asList(orderedJson));\n\n return obj.toString();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }",
"@Override\n\tpublic int add(Forge_Order_Detail t) {\n\t\treturn 0;\n\t}",
"@POST\r\n\t@Produces({\"application/xml\" , \"application/json\"})\r\n\t@Path(\"/order\")\r\n\tpublic String addOrder(OrderRequest orderRequest) {\n\t\tOrderActivity ordActivity = new OrderActivity();\r\n\t\treturn ordActivity.addOrder(orderRequest.getOrderDate(),orderRequest.getTotalPrice(), orderRequest.getProductOrder(),orderRequest.getCustomerEmail());\r\n\t}",
"public void buildOrderStatus() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS order_status (order_id TEXT, status INT,\"\n + \" time REAL, \"\n + \" FOREIGN KEY (order_id) REFERENCES orders(id)\"\n + \" ON DELETE CASCADE ON\"\n + \" UPDATE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String deliveryOrder=order+\"\\t\"+noOfPlates;\n arrayList.add(deliveryOrder);\n Intent intent=new Intent(Confirm.this,DeliveryAddress.class);\n intent.putExtra(\"mylist\",arrayList);\n startActivity(intent);\n }",
"@Test\n public void testOrderFactoryGetOrder() {\n OrderController orderController = orderFactory.getOrderController();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n // add a menu item to the menu\n menuFactory.getMenu().addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n\n // order 3 of the menu item\n HashMap<MenuItem, Integer> orderItems = new HashMap<>();\n HashMap<SetItem, Integer> setOrderItems = new HashMap<>();\n orderItems.put(menuFactory.getMenu().getMenuItem(1), 3);\n\n // create the order\n orderController.addOrder(STAFF_NAME, 1, false, orderItems, setOrderItems);\n assertEquals(1, orderController.getOrders().size());\n assertEquals(STAFF_NAME, orderController.getOrder(1).getStaffName());\n assertEquals(1, orderController.getOrder(1).getTableId());\n assertEquals(3, orderController.getOrder(1).getOrderedMenuItems().get(menuFactory.getMenu().getMenuItem(1)));\n }",
"void createOrder(List<Product> products, Customer customer);",
"@SuppressWarnings(\"unchecked\")\n \n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n orderIdText = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n dateText = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtCustomerName = new javax.swing.JTextField();\n custIdCombo = new javax.swing.JComboBox();\n jPanel3 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n txtDescription = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n txtUnitPrice = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtQtyOnHand = new javax.swing.JTextField();\n txtQty = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n itemCodeCombo = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n itemTable = new javax.swing.JTable();\n removeButton = new javax.swing.JButton();\n addButton = new javax.swing.JButton();\n cancelButton = new javax.swing.JButton();\n saveButton = new javax.swing.JButton();\n txtAmount = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 24)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Place Order\");\n\n jLabel2.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel2.setText(\"Order ID : \");\n\n orderIdText.setEditable(false);\n orderIdText.setFont(new java.awt.Font(\"DejaVu Serif\", 0, 14)); // NOI18N\n\n jLabel3.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel3.setText(\"Date : \");\n\n dateText.setEditable(false);\n dateText.setFont(new java.awt.Font(\"DejaVu Serif\", 0, 14)); // NOI18N\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 204, 204)), \"Customer Info\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"DejaVu Serif\", 1, 14), new java.awt.Color(0, 204, 204))); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel4.setText(\"ID : \");\n\n jLabel5.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel5.setText(\"Name : \");\n\n txtCustomerName.setEditable(false);\n txtCustomerName.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n\n custIdCombo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n custIdComboItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addGap(41, 41, 41)\n .addComponent(custIdCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtCustomerName, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(txtCustomerName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(custIdCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 204, 204)), \"Item Info\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"DejaVu Serif\", 1, 14), new java.awt.Color(0, 204, 204))); // NOI18N\n\n jLabel6.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel6.setText(\"Code : \");\n\n jLabel7.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel7.setText(\"Description : \");\n\n txtDescription.setEditable(false);\n txtDescription.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n\n jLabel8.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel8.setText(\"Unit Price : \");\n\n txtUnitPrice.setEditable(false);\n txtUnitPrice.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n\n jLabel9.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel9.setText(\"Qty On Hand : \");\n\n txtQtyOnHand.setEditable(false);\n txtQtyOnHand.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n\n txtQty.setFont(new java.awt.Font(\"DejaVu Serif\", 0, 14)); // NOI18N\n txtQty.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtQtyActionPerformed(evt);\n }\n });\n txtQty.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtQtyKeyPressed(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel10.setText(\"Qty : \");\n\n itemCodeCombo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n itemCodeComboItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addGap(28, 28, 28)\n .addComponent(txtUnitPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(itemCodeCombo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGap(27, 27, 27)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDescription))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(txtQtyOnHand, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(txtQty, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(txtDescription, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(itemCodeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txtUnitPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9)\n .addComponent(txtQtyOnHand, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(txtQty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n itemTable.setFont(new java.awt.Font(\"DejaVu Serif\", 0, 12)); // NOI18N\n itemTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Code\", \"Description\", \"Unit Price\", \"Qty\", \"Amount\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(itemTable);\n\n removeButton.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n removeButton.setText(\"Remove\");\n removeButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n removeButtonActionPerformed(evt);\n }\n });\n\n addButton.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n\n cancelButton.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n cancelButton.setText(\"Cancel\");\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelButtonActionPerformed(evt);\n }\n });\n\n saveButton.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n saveButton.setText(\"Save\");\n saveButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n saveButtonActionPerformed(evt);\n }\n });\n\n txtAmount.setEditable(false);\n txtAmount.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 16)); // NOI18N\n txtAmount.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n txtAmount.setText(\"0.0\");\n\n jLabel11.setFont(new java.awt.Font(\"DejaVu Serif\", 1, 14)); // NOI18N\n jLabel11.setText(\"Total Amount : \");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(orderIdText, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)\n .addComponent(jLabel3)\n .addGap(44, 44, 44)\n .addComponent(dateText, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(43, 43, 43))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(addButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(removeButton))\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtAmount, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(saveButton)\n .addGap(18, 18, 18)\n .addComponent(cancelButton)))))\n .addGap(20, 20, 20))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(orderIdText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(dateText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(removeButton)\n .addComponent(addButton))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cancelButton)\n .addComponent(saveButton))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"Order sendNotificationNewOrder(Order order);",
"private void orderCompleted(ArrayList<Transaction> transactionList) {\n String customerName = studentDetails[0].getName();\n String customerMobile = studentDetails[0].getMobile();\n String customerEmail = studentDetails[0].getEmail();\n Order order = new Order(-1, customerName, customerMobile, customerEmail\n , \"\",\n total, discount, false);\n\n ArrayList<SubOrder> subOrderList = new ArrayList<>();\n\n for (CartItem cartItem : cartList) {\n ProductHeader product = cartItem.getProductHeader();\n subOrderList.add(new SubOrder(product.getName(), product.getId(),\n product.getSku(), cartItem.getPrice(), cartItem.getQuantity(),\n 0, 0, 0, 0, false));\n }\n\n ProductAPI.saveAndSyncOrder(getContext(), db, order, subOrderList, transactionList);\n\n Toast.makeText(getContext(), \"Order completed\", Toast.LENGTH_SHORT).show();\n cartList.clear();\n cartAdapter.notifyDataSetChanged();\n updatePriceView();\n\n cartRecyclerView.setVisibility(View.GONE);\n emptyCartView.setVisibility(View.VISIBLE);\n dismissDialog();\n }",
"public void insertOrdertable(int rorderId, java.util.Date rorderDate, int clientId, double totalPrice, String paymentMethod, String transactionId, String pinNumber, String address) throws SQLException {\r\n\r\n connection = Database.getConnection();\r\n String queryRo = \"insert into order_table (order_id, order_date, client_id, total_price, payment_method, transaction_id, pin_number, delivery_address, order_status)\"\r\n + \" values (?,?,?,?,?,?,?,?,?)\";\r\n PreparedStatement pstm1 = connection.prepareStatement(queryRo);\r\n pstm1.setInt(1, rorderId);\r\n pstm1.setDate(2, (Date) rorderDate);\r\n pstm1.setInt(3, clientId);\r\n pstm1.setDouble(4, totalPrice);\r\n pstm1.setString(5, paymentMethod);\r\n pstm1.setString(6, transactionId);\r\n pstm1.setString(7, pinNumber);\r\n pstm1.setString(8, address);\r\n pstm1.setString(9, \"Accepted\");\r\n\r\n int addRo = pstm1.executeUpdate();\r\n\r\n String qureyRol = \"INSERT INTO order_line (order_serial, order_id, client_id, product_id, quantity, total, date )\"\r\n + \"SELECT rorder_serial, rorder_id, client_id, product_id, quantity, total, date \\n\"\r\n + \"FROM requested_orderline\\n\"\r\n + \"WHERE (rorder_id=\" + rorderId + \")\";\r\n PreparedStatement pstm2 = connection.prepareStatement(qureyRol);\r\n int q = pstm2.executeUpdate();\r\n\r\n String update = \"update requested_order set order_status='Accepted' where rorderid=\"+rorderId+\"\";\r\n PreparedStatement pstm3 = connection.prepareStatement(update);\r\n int u = pstm3.executeUpdate();\r\n\r\n pstm1.close();\r\n pstm2.close();\r\n pstm3.close();\r\n\r\n Database.close(connection);\r\n //return arr2;\r\n }",
"String registerOrder(int userId, int quantity, int pricePerUnit, OrderType orderType);",
"public void addOrders() {\n\t\torders.stream()\n\t\t\t.forEach(db::store);\n\t}",
"public void onClickOrder(View view) {\n\n //The Functions bellow are converting intiger values into strings which can then be written to the arduino via a Serial Connection\n String VodkaOrder = Integer.toString(Vodka_Measure);\n String RumOrder = Integer.toString(Rum_Measure);\n String GinOrder = Integer.toString(Gin_Measure);\n String WhiskeyOrder = Integer.toString(Whiskey_Measure);\n String TonicWaterOrder = Integer.toString(TonicWater_Measure);\n String CranberryJuiceOrder = Integer.toString(CranberryJuice_Measure);\n String OrangeJuiceOrder = Integer.toString(OrangeJuice_Measure);\n String PineappleJuiceOrder = Integer.toString(Pineapple_Measure);\n String MintOrder = Integer.toString(Mint_Measure);\n String SugarOrder = Integer.toString(Sugar_Measure);\n String LimeJuiceOrder = Integer.toString(Lime_Measure);\n String LimeSliceOrder = Integer.toString(Lime_Slice);\n String StirOrder = Integer.toString(Stir);\n String MashOrder = Integer.toString(Mash);\n String ShakeOrder = Integer.toString(Shake);\n String IceOrder = Integer.toString(Ice_Measure);\n String KaluaOrder = Integer.toString(Kalua);\n String CointreauOrder = Integer.toString(Cointreau);\n String VermouthOrder = Integer.toString(Vermouth);\n String PeachSchnappsOrder = Integer.toString(Peach_Schnapps);\n String CreamDeCacoOrder = Integer.toString(Cream_De_Cacao);\n String DrinkSizeOrder = Integer.toString(DrinkSize);\n\n //Actually writing the data to the arduino using the new strings created above\n serialPort.write(VodkaOrder.getBytes());\n serialPort.write(RumOrder.getBytes());\n serialPort.write(GinOrder.getBytes());\n serialPort.write(WhiskeyOrder.getBytes());\n serialPort.write(TonicWaterOrder.getBytes());\n serialPort.write(CranberryJuiceOrder.getBytes());\n serialPort.write(OrangeJuiceOrder.getBytes());\n serialPort.write(PineappleJuiceOrder.getBytes());\n serialPort.write(MintOrder.getBytes());\n serialPort.write(SugarOrder.getBytes());\n serialPort.write(LimeJuiceOrder.getBytes());\n serialPort.write(LimeSliceOrder.getBytes());\n serialPort.write(StirOrder.getBytes());\n serialPort.write(MashOrder.getBytes());\n serialPort.write(ShakeOrder.getBytes());\n serialPort.write(IceOrder.getBytes());\n serialPort.write(KaluaOrder.getBytes());\n serialPort.write(CointreauOrder.getBytes());\n serialPort.write(VermouthOrder.getBytes());\n serialPort.write(PeachSchnappsOrder.getBytes());\n serialPort.write(CreamDeCacoOrder.getBytes());\n serialPort.write(DrinkSizeOrder.getBytes());\n\n //A small text so the user knows what he/she ordered!\n\n tvAppend(textView, \"\\nYour Drink Order is one \" + DrinkSizeText + \" \" + DrinkName + \" (\" + DrinkType + \")\" + \"\\n\");\n\n\n\n\n myDialog.dismiss(); //Closes the popup after the order button is pressed, and order data is sent\n\n\n\n }",
"@Override\n protected Order doInBackground(Order... params) {\n DBService dbService = new DBService(mContext, DBService.DB_NAME, null, DBService.DATABASE_VERSION);\n Order order = (Order) params[0];\n dbService.insertOrderIntoDatabase(order);\n return order;\n }",
"@Override\n\tpublic ResultBO addOrder(OrderInfoVO orderInfo) throws Exception {\n\t\tOrderInfoPO po = new OrderInfoPO();\n\t\tBeanUtils.copyProperties(orderInfo, po);\n\t\tpo.setUserId(orderInfo.getUserId());\n\t\tint rs = orderInfoDaoMapper.addOrder(po);\n\t\tif(orderInfo.getOrderDetailList().size() > 0){//根据明细如入库\n\t\t\t//订单明细\n\t\t\tList<OrderDetailPO> orderDetails = new ArrayList<OrderDetailPO>();\n\t\t\tOrderDetailPO odPo = null;\n\t\t\tList<OrderDetailVO> listOrderDetailVO = orderInfo.getOrderDetailList();\n\t\t\tfor(int i = 0 ; i < listOrderDetailVO.size() ; i++){\n\t\t\t\todPo = new OrderDetailPO();\n\t\t\t\tBeanUtils.copyProperties(listOrderDetailVO.get(i), odPo);\n\t\t\t\todPo.setBuyNumber(listOrderDetailVO.get(i).getBuyNumber());\n\t\t\t\torderDetails.add(odPo);\n\t\t\t}\n\t\t\torderInfoDaoMapper.addOrderDetail(orderDetails);\n\t\t}else{//如果明细为空,则根据投注内容\n\t\t\tif(orderInfo.getBetContent().lastIndexOf(SymbolConstants.SEMICOLON) > -1){//存在分号分割\n\t\t\t\tList<OrderDetailPO> orderDetails = new ArrayList<OrderDetailPO>();\n\t\t\t\tString content = orderInfo.getBetContent().substring(orderInfo.getBetContent().lastIndexOf(SymbolConstants.UP_CAP)+1);\n\t\t\t\tOrderDetailPO odPo = null;\n\t\t\t\tfor(String numStr : content.split(SymbolConstants.SEMICOLON)){\n\t\t\t\t\todPo = new OrderDetailPO();\n\t\t\t\t\todPo.setBuyNumber(Integer.parseInt(numStr));\n\t\t\t\t\torderDetails.add(odPo);\n\t\t\t\t}\n\t\t\t\torderInfoDaoMapper.addOrderDetail(orderDetails);\n\t\t\t}\n\t\t}\n\t\treturn ResultBO.ok(rs);\n\t}",
"public void submitOrder(BeverageOrder order);",
"public static void viewOrder() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Viewing existing orders************\");\n\t\t// TODO - implement RRPSS.viewOrder\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\t\tOrderedPackageManager orderedPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackage = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to view the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\t\t\tlistOfOrderedPromotionalPackage = orderedPackageManager\n\t\t\t\t\t.retrieveOrderedPackageByOrderID(order.getId());\n\n\t\t\tif (listOfOrderedItems.size() == 0\n\t\t\t\t\t&& listOfOrderedPromotionalPackage.size() == 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\tSystem.out.println(\"Order is empty!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif (listOfOrderedItems.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"All Cart Items Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedItems.size(); j++) {\n\t\t\t\t\tOrderedItem orderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tif (listOfOrderedPromotionalPackage.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"Promotional Packages Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedPromotionalPackage.size(); j++) {\n\t\t\t\t\tOrderedPackage orderedPackage = (OrderedPackage) listOfOrderedPromotionalPackage\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedPackage.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of viewing orders************\");\n\t}",
"public Order createOrder() throws SQLException {\n\t\tOrder order = new Order();\n\t\tfor (Object object : Cart.getCart().getListMedia()) {\n\t\t\tCartMedia cartMedia = (CartMedia) object;\n\t\t\tOrderMedia orderMedia = new OrderMedia(cartMedia.getMedia(), cartMedia.getQuantity(), cartMedia.getPrice());\n\t\t\torder.getlstOrderMedia().add(orderMedia);\n\t\t}\n\t\treturn order;\n\t}",
"public void createSourceOrderItemTable() throws SQLException {\n sourceExecuteWithLog(extraSQLCommand.getCreateTableOrderItem());\n }",
"public static void createExampleOrders(DatabaseReference myRef) {\n for (int i = 1; i <= 3; i++) {\r\n myRef.child(\"example\" + i).child(\"status\").setValue(\"ACTIVE\");\r\n myRef.child(\"example\" + i).child(\"food\").setValue(\"Example Order \" + i);\r\n myRef.child(\"example\" + i).child(\"table\").setValue(i);\r\n myRef.child(\"example\" + i).child(\"timestamp\").setValue(\"0000000000000\");\r\n }\r\n }",
"public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }",
"public void submitOrder(View view) {\r\n\r\n CheckBox Coffee=(CheckBox)findViewById(R.id.coffee_checkbox);\r\n coffee= Coffee.isChecked();\r\n\r\n CheckBox Icecream=(CheckBox)findViewById(R.id.icecream_checkbox);\r\n icecream=Icecream.isChecked();\r\n\r\n EditText namefield=(EditText)findViewById(R.id.name_edittext);\r\n String name=namefield.getText().toString();\r\n\r\n int price=calculatePrice(coffee,icecream);\r\n createOrderSummary(name,price,coffee,icecream);\r\n\r\n\r\n }",
"public int createPurchaseOrder(PurchaseOrder purchaseOrder){\n try {\n session.save(purchaseOrder);\n tx.commit();\n } catch (Exception e) {\n e.printStackTrace();\n tx.rollback();\n return 0 ;\n }\n return 0;\n }",
"public MOrder createTransferOrder(Integer newDocTypeID) throws Exception{\n\t\t// Crear el pedido idéntico\n\t\tMOrder newOrder = new MOrder(getCtx(), 0, get_TrxName());\n\t\tMOrder.copyValues(this, newOrder);\n\t\tnewOrder.setC_DocTypeTarget_ID(newDocTypeID);\n\t\tnewOrder.setC_DocType_ID(newDocTypeID);\n\t\t// Intercambiar el depósito y organización origen por destino \n\t\tnewOrder.setAD_Org_ID(getAD_Org_Transfer_ID());\n\t\tnewOrder.setAD_Org_Transfer_ID(getAD_Org_ID());\n\t\tnewOrder.setM_Warehouse_ID(getM_Warehouse_Transfer_ID());\n\t\tnewOrder.setM_Warehouse_Transfer_ID(getM_Warehouse_ID());\n\t\tnewOrder.setRef_Order_ID(getID());\n\t\tnewOrder.setDocStatus(DOCSTATUS_Drafted);\n\t\tnewOrder.setDocAction(DOCACTION_Complete);\n\t\tnewOrder.setProcessed(false);\n\t\t// Guardar\n\t\tif(!newOrder.save()){\n\t\t\tthrow new Exception(CLogger.retrieveErrorAsString());\n\t\t}\n\t\t// Copiar las líneas\n\t\tMOrderLine newOrderLine;\n\t\tBigDecimal pendingQty;\n\t\tfor (MOrderLine orderLine : getLines(true)) {\n\t\t\tnewOrderLine = new MOrderLine(getCtx(), 0, get_TrxName());\n\t\t\tMOrderLine.copyValues(orderLine, newOrderLine);\n\t\t\tpendingQty = orderLine.getQtyOrdered().subtract(orderLine.getQtyDelivered());\n\t\t\t\n\t\t\tnewOrderLine.setC_Order_ID(newOrder.getID());\n\t\t\tnewOrderLine.setQty(pendingQty);\n\t\t\tnewOrderLine.setQtyReserved(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setQtyInvoiced(pendingQty);\n\t\t\tnewOrderLine.setQtyDelivered(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setQtyTransferred(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setPrice(orderLine.getPriceEntered());\n\t\t\tnewOrderLine.setRef_OrderLine_ID(orderLine.getID());\n\t\t\tnewOrderLine.setProcessed(false);\n\t\t\tnewOrderLine.setM_Warehouse_ID(newOrder.getM_Warehouse_ID());\n\t\t\tnewOrderLine.setAD_Org_ID(newOrder.getAD_Org_ID());\n\t\t\tif(!newOrderLine.save()){\n\t\t\t\tthrow new Exception(CLogger.retrieveErrorAsString());\n\t\t\t}\n\t\t}\n\t\treturn newOrder;\n\t}",
"@PostMapping(\"/order\")\r\n\tprivate ResponseEntity<Object> saveOrder(@RequestBody OrderDetailsRequest order)\r\n\t{\r\n\t\tOrderDetailsResponse response = new OrderDetailsResponse();\r\n\t\tOrderDetails details = new OrderDetails();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tList<OrderItemDetails> orderItems = order.getProductDetails();\r\n\t\t\tif(orderItems.size() > 0) {\r\n\t\t\t\torderItems.forEach(orderItem ->{orderItem.setOrderid( order.getId());});\r\n\t\t\t}else {\r\n\t\t\t\tlogger.info(\"Item list can not be empty\");\r\n\t\t\t\tresponse.setMessage(\"FAILED : No items selected\");\r\n\t\t\t\tresponse.setStatus((long) 400);\r\n\t\t\t\treturn new ResponseEntity<Object>(response, HttpStatus.OK);\r\n\t\t\t}\r\n\t\t\tdetails.setCustomername(order.getCustomername());\r\n\t\t\tdetails.setId(order.getId());\r\n\t\t\tdetails.setOrderdate(order.getOrderdate());\r\n\t\t\tdetails.setOrderitems(order.getOrderitems());\r\n\t\t\tdetails.setShippingaddress(order.getShippingaddress());\r\n\t\t\tdetails.setTotal(order.getTotal());\r\n\t\t\torderService.saveOrUpdate(details);\r\n\t\t\trestClientService.saveOrder(orderItems);\r\n\t\t\tresponse.setMessage(\"SUCCESS\");\r\n\t\t\tresponse.setStatus((long) 200);\r\n\t\t\tresponse.setOrderid(order.getId());\r\n\t\t\treturn new ResponseEntity<Object>(response, HttpStatus.OK);\r\n\t\t}catch(Exception e) {\r\n\t\t\tlogger.error(\"error occured while inserting record\");\r\n\t\t\tresponse.setMessage(\"FAILED : error occured while inserting record\");\r\n\t\t\tresponse.setStatus((long) 400);\r\n\t\t\treturn new ResponseEntity<Object>(response, HttpStatus.OK);\r\n\t}\r\n\t}",
"public long insertOrderDetail(OrderDetail orderDetail) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues contentValues = new ContentValues();\n contentValues.putNull(CoffeeShopDatabase.OrderDetailTable._ID);\n contentValues.put(CoffeeShopDatabase.OrderDetailTable.COLUMN_NAME_ORDER_ID, orderDetail.getOrder_id());\n contentValues.put(CoffeeShopDatabase.OrderDetailTable.COLUMN_NAME_DRINK_ID, orderDetail.getDrink_id());\n contentValues.put(CoffeeShopDatabase.OrderDetailTable.COLUMN_NAME_QUANTITY, orderDetail.getQuantity());\n\n // insert row\n long index = db.insert(CoffeeShopDatabase.OrderDetailTable.TABLE_NAME, null, contentValues);\n db.close();\n return index;\n }",
"public void saveOrder(Order order) {\n Client client = clientService.findBySecurityNumber(order.getClient().getSecurityNumber());\n Product product = productService.findByBarcode(order.getProduct().getBarcode());\n order.setClient(client);\n order.setProduct(product);\n if (isClientPresent(order) && isProductPresent(order)) {\n do {\n currencies = parseCurrencies();\n } while (currencies.isEmpty());\n\n generateTransactionDate(order);\n\n// Client client = ClientServiceImpl.getClientRepresentationMap().get(order.getClient());\n// Product product = ProductServiceImpl.getProductRepresentationMap().get(order.getProduct());\n convertPrice(order);\n orders.add(order);\n orderedClients.add(client);\n orderedProducts.add(product);\n }\n }"
] | [
"0.708682",
"0.69885486",
"0.67471784",
"0.6645234",
"0.66375136",
"0.6466281",
"0.64604145",
"0.6373845",
"0.6373474",
"0.6361788",
"0.6259623",
"0.6218955",
"0.6216201",
"0.61993545",
"0.6187745",
"0.6152479",
"0.614878",
"0.6145978",
"0.6144828",
"0.613747",
"0.61164397",
"0.6096659",
"0.60955817",
"0.60826707",
"0.60727304",
"0.60495305",
"0.60391",
"0.60325927",
"0.6010854",
"0.60103846",
"0.5975225",
"0.59678596",
"0.59651184",
"0.595581",
"0.5951936",
"0.59376216",
"0.5935954",
"0.59346855",
"0.59294486",
"0.59266335",
"0.59145",
"0.5908798",
"0.59080935",
"0.58870757",
"0.58798754",
"0.5874549",
"0.584236",
"0.58159065",
"0.579413",
"0.57932067",
"0.5785394",
"0.5784789",
"0.57803947",
"0.577647",
"0.5765075",
"0.5764688",
"0.5752529",
"0.575242",
"0.5750367",
"0.57460505",
"0.57459587",
"0.57369334",
"0.57285833",
"0.57253957",
"0.5718463",
"0.5716826",
"0.57152337",
"0.57011837",
"0.56973445",
"0.5688298",
"0.56721836",
"0.5665774",
"0.5660891",
"0.5655822",
"0.5640919",
"0.5640298",
"0.56400913",
"0.5635857",
"0.5634405",
"0.56255",
"0.5613633",
"0.5611928",
"0.5606169",
"0.559955",
"0.55931866",
"0.55904186",
"0.5582471",
"0.5572511",
"0.55700177",
"0.55694175",
"0.5563975",
"0.5558823",
"0.5550999",
"0.55474734",
"0.5547397",
"0.5545873",
"0.55422574",
"0.55417544",
"0.5541337",
"0.55394167"
] | 0.72974527 | 0 |
Gets the name of the mod used in lookups. | public String getIndexingName()
{
return mcVersion.name() +'-'+ name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getModuleName() {\n if (repository == null) {\n return baseName;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(baseName);\n return b.toString();\n }\n }",
"private String name(String module)\n {\n return module.split(\"%%\")[1];\n }",
"private String getModuleName() {\n \t\t// If there is an autoconnect page then it has the module name\n \t\tif (autoconnectPage != null) {\n \t\t\treturn autoconnectPage.getSharing().getRepository();\n \t\t}\n \t\tString moduleName = modulePage.getModuleName();\n \t\tif (moduleName == null) moduleName = project.getName();\n \t\treturn moduleName;\n \t}",
"public String getName()\r\n \t{\n \t\treturn (explicit ? (module.length() > 0 ? module + \"`\" : \"\") : \"\")\r\n \t\t\t\t+ name + (old ? \"~\" : \"\"); // NB. No qualifier\r\n \t}",
"public String getName()\n {\n return MODULE_NAME;\n }",
"public String getModuleName ()\n\n {\n\n // Returns moduleName when called.\n return moduleName;\n\n }",
"public String toString(){\n\t\treturn modulname;\n\t}",
"public final String getModuleName() {\n return MODULE_NAME;\n }",
"public abstract String getModuleName( );",
"String getModID();",
"String getModID();",
"String getFriendlyName(YAPIContext ctx) throws YAPI_Exception\n {\n if (_classname.equals(\"Module\")) {\n if (_logicalName.equals(\"\"))\n return _serial + \".module\";\n else\n return _logicalName + \".module\";\n } else {\n YPEntry moduleYP = ctx._yHash.resolveFunction(\"Module\", _serial);\n String module = moduleYP.getFriendlyName(ctx);\n int pos = module.indexOf(\".\");\n module = module.substring(0, pos);\n if (_logicalName.equals(\"\"))\n return module + \".\" + _funcId;\n else\n return module + \".\" + _logicalName;\n }\n }",
"String getModuleDisplayName();",
"public String module(String name)\n {\n return modules.get(name);\n }",
"public String getMod() {\n\t\treturn this.mod;\n\t}",
"public String getModuleName() {\n return moduleNameString;\n }",
"public java.lang.String getModId() {\r\n return modId;\r\n }",
"public String getmoduleName() {\t\r\n\treturn ModuleName;\t\r\n}",
"public String getModuleName() {\n\t\treturn \"university-module-controller>TStaff\";\r\n\t}",
"public String getName() {\n return Utility.getInstance().getPackageName();\n }",
"@Override\n public String toString() {\n return String.format(\"Module '%s'\", getName());\n }",
"public String getModuleName() {\r\n\t\treturn moduleName;\r\n\t}",
"public String getModuleName() {\r\n\t\treturn moduleName;\r\n\t}",
"public Token getName()\n {\n if (isVersion())\n {\n return getVersion();\n }\n\n return getModule();\n }",
"public java.lang.CharSequence getModule() {\n return module;\n }",
"public String getName() {\n return m_module.getConfiguration().getName();\n }",
"public java.lang.CharSequence getModule() {\n return module;\n }",
"private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }",
"@Override\n public String getApiWrapperModuleName() {\n List<String> names = Splitter.on(\".\").splitToList(packageName);\n return names.get(0);\n }",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"public java.lang.String getName();",
"public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }",
"java.lang.String getInstanceName();",
"String getModuleId();",
"public String getLocallyAccessibleName( String name );",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();"
] | [
"0.72800124",
"0.71863264",
"0.7057246",
"0.70371455",
"0.7017477",
"0.67345876",
"0.67258006",
"0.6699551",
"0.66421807",
"0.66204125",
"0.66204125",
"0.6591291",
"0.6564905",
"0.6411314",
"0.63906753",
"0.63417584",
"0.62643886",
"0.6226444",
"0.61953723",
"0.6134781",
"0.61199826",
"0.60959697",
"0.60959697",
"0.6091894",
"0.60603577",
"0.6051876",
"0.6044269",
"0.6031015",
"0.601635",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59958094",
"0.59755373",
"0.5974324",
"0.59481347",
"0.59258074",
"0.591026",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596",
"0.5904596"
] | 0.0 | -1 |
Gets the name of the mod used for writing jarfile descriptors. Includes mod version so that updates can be performed. | public String getJarfileName()
{
return mcVersion.name() +'-'+name+'-'+modVersion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMod() {\n\t\treturn this.mod;\n\t}",
"public String toString(){\n\t\treturn modulname;\n\t}",
"public String getName()\n {\n return MODULE_NAME;\n }",
"public String getJarName()\r\n {\r\n return sJarName;\r\n }",
"public String getName()\r\n \t{\n \t\treturn (explicit ? (module.length() > 0 ? module + \"`\" : \"\") : \"\")\r\n \t\t\t\t+ name + (old ? \"~\" : \"\"); // NB. No qualifier\r\n \t}",
"public String getModuleName() {\n if (repository == null) {\n return baseName;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(baseName);\n return b.toString();\n }\n }",
"public String toString() {\n return \"Module Dependency : \" + getName() + \":\" + getVersion();\n }",
"public String getModuleName ()\n\n {\n\n // Returns moduleName when called.\n return moduleName;\n\n }",
"private ModuleDescriptor deriveModuleDescriptor(JarFile jf)\n throws IOException\n {\n // Read Automatic-Module-Name attribute if present\n Manifest man = jf.getManifest();\n Attributes attrs = null;\n String moduleName = null;\n if (man != null) {\n attrs = man.getMainAttributes();\n if (attrs != null) {\n moduleName = attrs.getValue(AUTOMATIC_MODULE_NAME);\n }\n }\n\n // Derive the version, and the module name if needed, from JAR file name\n String fn = jf.getName();\n int i = fn.lastIndexOf(File.separator);\n if (i != -1)\n fn = fn.substring(i + 1);\n\n // drop \".jar\"\n String name = fn.substring(0, fn.length() - 4);\n String vs = null;\n\n // find first occurrence of -${NUMBER}. or -${NUMBER}$\n Matcher matcher = Patterns.DASH_VERSION.matcher(name);\n if (matcher.find()) {\n int start = matcher.start();\n\n // attempt to parse the tail as a version string\n try {\n String tail = name.substring(start + 1);\n ModuleDescriptor.Version.parse(tail);\n vs = tail;\n } catch (IllegalArgumentException ignore) { }\n\n name = name.substring(0, start);\n }\n\n // Create builder, using the name derived from file name when\n // Automatic-Module-Name not present\n Builder builder;\n if (moduleName != null) {\n try {\n builder = ModuleDescriptor.newAutomaticModule(moduleName);\n } catch (IllegalArgumentException e) {\n throw new FindException(AUTOMATIC_MODULE_NAME + \": \" + e.getMessage());\n }\n } else {\n builder = ModuleDescriptor.newAutomaticModule(cleanModuleName(name));\n }\n\n // module version if present\n if (vs != null)\n builder.version(vs);\n\n // scan the names of the entries in the JAR file\n Map<Boolean, Set<String>> map = jf.versionedStream()\n .filter(e -> !e.isDirectory())\n .map(JarEntry::getName)\n .filter(e -> (e.endsWith(\".class\") ^ e.startsWith(SERVICES_PREFIX)))\n .collect(Collectors.partitioningBy(e -> e.startsWith(SERVICES_PREFIX),\n Collectors.toSet()));\n\n Set<String> classFiles = map.get(Boolean.FALSE);\n Set<String> configFiles = map.get(Boolean.TRUE);\n\n // the packages containing class files\n Set<String> packages = classFiles.stream()\n .map(this::toPackageName)\n .flatMap(Optional::stream)\n .collect(Collectors.toSet());\n\n // all packages are exported and open\n builder.packages(packages);\n\n // map names of service configuration files to service names\n Set<String> serviceNames = configFiles.stream()\n .map(this::toServiceName)\n .flatMap(Optional::stream)\n .collect(Collectors.toSet());\n\n // parse each service configuration file\n for (String sn : serviceNames) {\n JarEntry entry = jf.getJarEntry(SERVICES_PREFIX + sn);\n List<String> providerClasses = new ArrayList<>();\n try (InputStream in = jf.getInputStream(entry)) {\n BufferedReader reader\n = new BufferedReader(new InputStreamReader(in, UTF_8.INSTANCE));\n String cn;\n while ((cn = nextLine(reader)) != null) {\n if (!cn.isEmpty()) {\n String pn = packageName(cn);\n if (!packages.contains(pn)) {\n String msg = \"Provider class \" + cn + \" not in JAR file \" + fn;\n throw new InvalidModuleDescriptorException(msg);\n }\n providerClasses.add(cn);\n }\n }\n }\n if (!providerClasses.isEmpty())\n builder.provides(sn, providerClasses);\n }\n\n // Main-Class attribute if it exists\n if (attrs != null) {\n String mainClass = attrs.getValue(Attributes.Name.MAIN_CLASS);\n if (mainClass != null) {\n mainClass = mainClass.replace('/', '.');\n if (Checks.isClassName(mainClass)) {\n String pn = packageName(mainClass);\n if (packages.contains(pn)) {\n builder.mainClass(mainClass);\n }\n }\n }\n }\n\n return builder.build();\n }",
"public String getFileName()\n {\n return getJarfileName();\n }",
"public static String getVersionInfo() {\n return getCommonManifestEntry(getJarPathFromClassPath(getAppJarName()),null);\n }",
"@Override\n public String toString() {\n return String.format(\"Module '%s'\", getName());\n }",
"public java.lang.String getModId() {\r\n return modId;\r\n }",
"String getModuleVersionNumber();",
"public String getJarName() {\r\n\t\tURL clsUrl = getClass().getResource(getClass().getSimpleName() + \".class\");\r\n\t\tif (clsUrl != null) {\r\n\t\t\ttry {\r\n\t\t\t\tjava.net.URLConnection conn = clsUrl.openConnection();\r\n\t\t\t\tif (conn instanceof java.net.JarURLConnection) {\r\n\t\t\t\t\tjava.net.JarURLConnection connection = (java.net.JarURLConnection) conn;\r\n\t\t\t\t\tString path = connection.getJarFileURL().getPath();\r\n\t\t\t\t\t// System.out.println (\"Path = \"+path);\r\n\t\t\t\t\tint index = path.lastIndexOf('/');\r\n\t\t\t\t\tif (index >= 0)\r\n\t\t\t\t\t\tpath = path.substring(index + 1);\r\n\t\t\t\t\treturn path;\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private String getModuleName() {\n \t\t// If there is an autoconnect page then it has the module name\n \t\tif (autoconnectPage != null) {\n \t\t\treturn autoconnectPage.getSharing().getRepository();\n \t\t}\n \t\tString moduleName = modulePage.getModuleName();\n \t\tif (moduleName == null) moduleName = project.getName();\n \t\treturn moduleName;\n \t}",
"private String jarName(){\n // determine the name of this class\n String className=\"/\"+this.getClass().getName().replace('.','/')+\".class\";\n // find out where the class is on the filesystem\n String classFile=this.getClass().getResource(className).toString();\n\n if( (classFile==null) || !(classFile.startsWith(\"jar:\")) ) return null;\n \n // trim out parts and set this to be forwardslash\n classFile=classFile.substring(5,classFile.indexOf(className));\n classFile=FilenameUtil.setForwardSlash(classFile);\n\n // chop off a little bit more\n classFile=classFile.substring(4,classFile.length()-1);\n \n return FilenameUtil.URLSpacetoSpace(classFile);\n }",
"public final String getModuleName() {\n return MODULE_NAME;\n }",
"private String getVersionName() {\n\n\t\tString versionName = \"\";\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager\n\t\t\t\t\t.getPackageInfo(getPackageName(), 0);// 获取包的内容\n\t\t\t// int versionCode = packageInfo.versionCode;\n\t\t\tversionName = packageInfo.versionName;\n\t\t\tSystem.out.println(\"versionName = \" + versionName);\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn versionName;\n\t}",
"public String getName() {\n return m_module.getConfiguration().getName();\n }",
"private static String getVersion() throws IOException {\n URL res = Main.class.getResource(\"/META-INF/MANIFEST.MF\");\n if(res!=null) {\n Manifest manifest = new Manifest(res.openStream());\n String v = manifest.getMainAttributes().getValue(\"Implementation-Version\");\n if(v!=null)\n return v;\n }\n return \"?\";\n }",
"String getModID();",
"String getModID();",
"public String getVersionname() {\r\n return versionname;\r\n }",
"private String name(String module)\n {\n return module.split(\"%%\")[1];\n }",
"public abstract String getModuleName( );",
"public String getName(){\n return(hackerFile.getName());\n }",
"public String getmoduleName() {\t\r\n\treturn ModuleName;\t\r\n}",
"public static String getImplementationVersion() {\r\n return getJarInfo(\"Implementation-Version\");\r\n }",
"public Token getName()\n {\n if (isVersion())\n {\n return getVersion();\n }\n\n return getModule();\n }",
"private String getExportPackage() {\n boolean hasSharedPackages = false;\n StringBuilder exportPackage = new StringBuilder();\n // XXX: Because of issue #1517, root package is returned more than once\n // I wrap packages in the LinkedHashSet, that elliminates duplicates \n // while retaining the insertion order. \n // (see https://github.com/ceylon/ceylon-compiler/issues/1517)\n for (Package pkg : new LinkedHashSet<>(module.getPackages())) {\n if (pkg.isShared()) {\n if (hasSharedPackages) {\n exportPackage.append(\";\");\n }\n exportPackage.append(pkg.getNameAsString());\n //TODO : should we analyze package uses as well?\n hasSharedPackages = true;\n }\n }\n if (hasSharedPackages) {\n // Ceylon has no separate versioning of packages, so all\n // packages implicitly inherit their respective module version\n exportPackage.append(\";version=\").append(module.getVersion());\n }\n return exportPackage.toString();\n }",
"@Override\n public String getApiWrapperModuleName() {\n List<String> names = Splitter.on(\".\").splitToList(packageName);\n return names.get(0);\n }",
"public String getVersionName() {\n return versionName;\n }",
"public String getModuleName() {\n return moduleNameString;\n }",
"public String getVersionName() {\n return this.versionName;\n }",
"String getFriendlyName(YAPIContext ctx) throws YAPI_Exception\n {\n if (_classname.equals(\"Module\")) {\n if (_logicalName.equals(\"\"))\n return _serial + \".module\";\n else\n return _logicalName + \".module\";\n } else {\n YPEntry moduleYP = ctx._yHash.resolveFunction(\"Module\", _serial);\n String module = moduleYP.getFriendlyName(ctx);\n int pos = module.indexOf(\".\");\n module = module.substring(0, pos);\n if (_logicalName.equals(\"\"))\n return module + \".\" + _funcId;\n else\n return module + \".\" + _logicalName;\n }\n }",
"public static String getAppJarName() {\n try {\n String r = (String)Class.forName(\"hr.restart.util.IntParam\")\n .getMethod(\"getTag\", new Class[] {String.class})\n .invoke(null, new Object[] {\"appjarname\"});\n System.out.println(\"appjarname = \"+r);\n return r.equals(\"\")?\"ra-spa.jar\":r;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"ra-spa.jar\";\n }",
"private static String getVersionFromManifest() {\n return ChronicleMapBuilder.class.getPackage().getImplementationVersion();\n }",
"String getOutputName();",
"String getDescriptor();",
"public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }",
"public static String getBuiltBy() {\r\n return getJarInfo(\"Built-By\");\r\n }",
"public String getName() {\r\n return getDef().getName();\r\n }",
"public String getImplementationName();",
"public static String getName() {\n\t\treturn _asmFileStr;\n\t}",
"public static String getBukkitPackage() {\n return Bukkit.getServer().getClass().getPackage().getName().split(\"\\\\.\")[3];\n }",
"public static String getJarComment() {\n return YGUARD_REL_JAR_COMMENT;\n }",
"java.lang.String getOutputjar();",
"@Override\n public String moduleName() {\n return MODULE_NAME;\n }",
"private String m5297b() {\n String str = \"\";\n try {\n return getPackageManager().getPackageInfo(getPackageName(), 0).versionName;\n } catch (NameNotFoundException e) {\n e.printStackTrace();\n return str;\n }\n }",
"public String getOctaveInJavaVersion() {\n\t//System.out.println(\"MANIFEST_INFO: \"+MANIFEST_INFO);\n\t//return MANIFEST_INFO.getImplVersion();\n\treturn this.getClass().getPackage().getImplementationVersion();\n }",
"public String getName() {\n\t\treturn JWLC.nativeHandler().wlc_output_get_name(this.to());\n\t}",
"public static String getFormattedBukkitPackage() {\n final String version = getBukkitPackage().replace(\"v\", \"\").replace(\"R\", \"\");\n return version.substring(2, version.length() - 2);\n }",
"public static String getBuildVersionMF(String jarFile) {\n \treturn getCommonManifestEntry(jarFile, \"Version\");\n }",
"private String getJarSimpleName( String jarFullPath ) {\n\n String jarName = jarFullPath.substring(jarFullPath.lastIndexOf('/') + 1);\n boolean isSourceFile = false;\n\n String pattern = \"(.+?)(-\\\\d)(.)\"; // we get only jar name without version\n Pattern p = Pattern.compile(pattern);\n Matcher m = p.matcher(jarName);\n\n if (!StringUtils.isNullOrEmpty(jarName)\n && jarName.substring(0, jarName.length() - 4).endsWith(\"sources\")) {\n isSourceFile = true;\n }\n if (m.find()) {\n jarName = m.group(1);\n } else {\n if (jarName.endsWith(\".jar\")) {\n //here we will cut last 4 characters -'.jar'\n jarName = jarName.substring(0, jarName.length() - 4);\n }\n }\n if (isSourceFile)\n return jarName + \"-sources\";\n\n return jarName;\n }",
"public String getName() {\n\t return ZoieUpdateHandler.class.getName();\n\t }",
"String getPackageName() {\n final int lastSlash = name.lastIndexOf('/');\n final String parentPath = name.substring(0, lastSlash);\n return parentPath.replace('/', '.');\n }",
"Path getModBookFilePath();",
"public String getName() {\n return Utility.getInstance().getPackageName();\n }",
"public void sendModuleNameToServer() {\n try {\n System.out.println(\"writing module name:\" + getModuleName());\n ostream.writeObject(getModuleName());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public String toString() {\n return packageName;\n }",
"public String getModuleName() {\r\n\t\treturn moduleName;\r\n\t}",
"public String getModuleName() {\r\n\t\treturn moduleName;\r\n\t}",
"public String getBundleFileName()\n {\n if ( bundleFileName == null )\n {\n bundleFileName = artifact.getFile().getName();\n }\n return bundleFileName;\n }",
"public static String getPatchesInfo() {\n\t String ret = \"SPA verzija \"+getCurrentVersion()+\"\\n\";\n\t ret = ret + \"Informacije o zakrpama:\\n\";\n\t\tStringTokenizer tokens = getClassPathTokens();\n while (tokens.hasMoreTokens()) {\n String tok = tokens.nextToken();\n//System.out.println(\"Looking \"+tok);\n if (tok.toLowerCase().endsWith(\".jar\")) {\n String fn = tok.substring(tok.lastIndexOf(File.separatorChar)+1);\n//System.out.println(\"Examine jar file \"+fn);\n if (fn.startsWith(\"0\")) {\n//System.out.println(\"Processing patch \"+fn);\n\t try {\n\t JarFile jar = new JarFile(tok);\n\t ret = ret + \"-----------------------------------\\n\"\n\t \t\t\t\t\t+fn+\"\\n\"\n\t \t\t\t\t\t+ \"-----------------------------------\\n\"\n\t \t\t\t\t\t+ \" content: \\n\";\n\t Enumeration jarentries = jar.entries();\n\t while (jarentries.hasMoreElements()) {\n JarEntry element = (JarEntry)jarentries.nextElement();\n//System.out.println(\"Processing entry \"+element);\n\t\t\t\t\t\t\tif (!element.isDirectory()) {\n\t\t\t\t\t\t\t ret = ret + \" \"+new Timestamp(element.getTime())+\" \"+element+\"\\n\";\n\t\t\t\t\t\t\t}\n\t }\n\t ret = ret + \"-----------------------------------\\n\";\n\t } catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n }\n }\n }\t \n return ret;\n\t}",
"public String getName() {\r\n\t\treturn libraryName;\r\n\t}",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 220,\n FQN=\"llvm::Module::getName\", NM=\"_ZNK4llvm6Module7getNameEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZNK4llvm6Module7getNameEv\")\n //</editor-fold>\n public StringRef getName() /*const*/ {\n return new StringRef(ModuleID);\n }",
"String packageName() {\n return name;\n }",
"protected String suitename() {\n return \"TestManifestCommitProtocolLocalFS\";\n }",
"public String getProtocolName()\n {\n return Resources.getString(\"plugin.dictaccregwizz.PROTOCOL_NAME\");\n }",
"protected String getFullPatchName(Patch p) {\n return getManufacturerName() + \" | \" + getModelName() + \" | \"\n + p.getType() + \" | \" + getSynthName() + \" | \" + getPatchName(p);\n }",
"public String getWorldName() {\n\t\treturn MinecraftServer.getServer().worldServers[0].getSaveHandler()\n\t\t\t\t.getWorldDirectoryName();\n\t}",
"private String getPkgName () {\n return context.getPackageName();\n }",
"public String getName() {\n return _file.getAbsolutePath();\n }",
"String getModuleDescription();",
"public static String getStringVersion() throws IOException {\n return \"0.0.1\";//attr.getValue(\"Implementation-Version\");\n }",
"public String getVerName() {\n return verName;\n }",
"public String toFileSuffix() {\n if ( release ) return majlow;\n else return majlow + '-' + commitNumber();\n }",
"public String getName()\n {\n return( file );\n }",
"public String getName()\n {\n return codecInfo.getName();\n }",
"public java.lang.CharSequence getModule() {\n return module;\n }",
"public String getRevisionSuffix() {\n\t\tString revision = logEntry.getRevision();\n\t\treturn revision.substring(revision.lastIndexOf(\".\") + 1, revision.length());\n\t}",
"protected String getPatchName(Patch p) {\n if (patchNameSize == 0)\n return (\"-\");\n try {\n return new String(p.sysex, patchNameStart, patchNameSize, \"US-ASCII\");\n } catch (UnsupportedEncodingException ex) {\n return \"-\";\n }\n }",
"public String getName() {\n return dtedDir + \"/\" + filename;\n }",
"public String getVersion() {\n\t\tString version = \"0.0.0\";\n\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager.getPackageInfo(\n\t\t\t\t\tgetPackageName(), 0);\n\t\t\tversion = packageInfo.versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn version;\n\t}",
"public String getVersion() {\n\t\tString version = \"0.0.0\";\n\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager.getPackageInfo(\n\t\t\t\t\tgetPackageName(), 0);\n\t\t\tversion = packageInfo.versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn version;\n\t}",
"public long getGlobalModVersion() {\n\t\treturn globalModVersion;\n\t}",
"public java.lang.CharSequence getModule() {\n return module;\n }",
"public static String getPackageVersion() {\n return mPackageName + \" V\" + mVersion + \" [\" + mBuildDate + \"]\";\n }",
"public String getNiceName()\n {\n String name = getBuildFile().getName();\n\n return Utility.replaceBadChars(name);\n }",
"public ModuleDescriptor getDescriptor() {\n return descriptor;\n }",
"String getModuleDisplayName();",
"public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }",
"public String getFullName() {\n return getAndroidPackage() + \"/\" + getInstrumentationClass();\n }",
"public String getDisplayName() {\n\t\t\tlogger.debug(\"### DescriptorImpl::getDisplayName\");\n\t\t\treturn \"Determine Semantic Version for project\";\n\t\t}",
"public String getVendor() {\n\tSystem.out.println(\"MANIFEST_INFO: \"+MANIFEST_INFO);\n\treturn MANIFEST_INFO.getImplVendor();\n\t//return this.getClass().getPackage().getImplementationVendor();\n }",
"@Override\n public String getModu() {\n return null;\n }",
"private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }",
"public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}",
"public int getJarType() {\n \t\treturn jarType;\n \t}"
] | [
"0.6543555",
"0.6518913",
"0.64027727",
"0.6292895",
"0.6222301",
"0.61871636",
"0.61278975",
"0.6057148",
"0.5971357",
"0.5906937",
"0.5898499",
"0.58675146",
"0.58360654",
"0.5814455",
"0.5804058",
"0.57964957",
"0.57909495",
"0.57892483",
"0.5788932",
"0.575495",
"0.57417893",
"0.5734517",
"0.5734517",
"0.56984013",
"0.56773007",
"0.56706375",
"0.5662406",
"0.5588434",
"0.558386",
"0.5576225",
"0.5573612",
"0.55388695",
"0.5524614",
"0.5515832",
"0.55131125",
"0.5505287",
"0.54929376",
"0.54811203",
"0.5466167",
"0.5463283",
"0.5437198",
"0.54339397",
"0.5428873",
"0.54272914",
"0.5420288",
"0.5408795",
"0.5401964",
"0.5390113",
"0.53878593",
"0.5377894",
"0.5372102",
"0.53716993",
"0.53678495",
"0.53670967",
"0.5350367",
"0.5346827",
"0.53369015",
"0.5336342",
"0.5328017",
"0.52930546",
"0.5288537",
"0.5286424",
"0.5286424",
"0.5272429",
"0.5272185",
"0.5270819",
"0.52651596",
"0.5261112",
"0.52586615",
"0.52583367",
"0.5252658",
"0.5240489",
"0.5236447",
"0.5227848",
"0.5224108",
"0.52223736",
"0.5222039",
"0.5221029",
"0.5219095",
"0.5210385",
"0.5202297",
"0.51968884",
"0.5191006",
"0.51886785",
"0.5181099",
"0.5181099",
"0.5172943",
"0.5164474",
"0.51614654",
"0.5158634",
"0.51462626",
"0.5141871",
"0.51383466",
"0.5138156",
"0.51357776",
"0.51344603",
"0.5126718",
"0.5123219",
"0.51197886",
"0.5109933"
] | 0.7427285 | 0 |
Used for download caches. | public String getFileName()
{
return getJarfileName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void download() {\n\t\t\r\n\t}",
"public UrlCache() throws UrlCacheException {\n\t\tcreateCatalogFileIfNoneExists();\t\t\n\t}",
"@Override\n\tprotected String getCacheName() {\n\t\treturn null;\n\t}",
"@Bean\n public DownloadCache cache() {\n DownloadCache result = new DownloadCache(TEST_CACHE_DIR);\n result.clear();\n return result;\n }",
"@Override\n public boolean isDownloadable() {\n return true;\n }",
"public void setCached() {\n }",
"public void download() {\n }",
"@Override\r\n\tpublic File getCacheDir() {\r\n\t\treturn CommonUtil.getCacheDir();\r\n\t}",
"interface Cache {\n\n /** @return A cache entry for given path string or <code>null</code> (if file cannot be read or too large to cache).\n * This method increments CacheEntry reference counter, caller must call {@link #checkIn(CacheEntry)} to release returned entry (when not null). */\n CacheEntry checkOut(CacheEntryLoader cacheEntryLoader);\n\n /**\n * Method to release cache entry previously obtained from {@link #checkOut(CacheEntryLoader)} call.\n * This method decrements CacheEntry reference counter.\n */\n void checkIn(CacheEntry key);\n\n /** Invalidates cached entry for given path string (if it is cached) */\n void invalidate(String pathString);\n\n void rename(String fromPathString, String toPathString);\n\n// /** Preload given file path in cache (if cache has vacant spot). Preloading happens in background. Preloaded pages initially have zero reference counter. */\n// void preload (String pathString);\n\n /** Clears the cache of all entries (even if some entries are checked out) */\n void clear();\n\n /** Allocates entry of given size for writing.\n * It will not be visible to others until caller calls {@link #update(String, CacheEntry)}.*/\n CacheEntry alloc(long size);\n\n /** Registers recently writtien cache entry as available for reading */\n void update(String pathString, CacheEntry cacheEntry);\n}",
"@Override\n public boolean isCaching() {\n return false;\n }",
"public File getCacheFile() {\n return AQUtility.getCacheFile(this.cacheDir, getCacheUrl());\n }",
"private HttpCache(@NonNull Context context) {\n mCache = new Cache(new File(context.getExternalCacheDir(), CacheConfig.FILE_DIR),\n CacheConfig.FILE_SIZE);\n }",
"private static File getCachedFile(String baseUrl, String params) {\n int hashCode = (baseUrl + params).hashCode();\n return new File(System.getProperty(\"java.io.tmpdir\"), BL_CACHE_FILE + hashCode);\n }",
"protected File getCacheDirectory() {\n \t\treturn Activator.getDefault().getStateLocation().append(\"cache\").toFile(); //$NON-NLS-1$\n \t}",
"@Override\n public CacheAPI getCacheAPI() {\n return null;\n }",
"public CacheStrategy getCacheStrategy();",
"@Override\n protected DownloadManager getDownloadManager() {\n databaseProvider = new ExoDatabaseProvider(this);\n\n // A download cache should not evict media, so should use a NoopCacheEvictor.\n checkFolder();\n downloadCache = new SimpleCache(\n mDir,\n new NoOpCacheEvictor(),\n databaseProvider);\n // Create a factory for reading the data from the network.\n dataSourceFactory = new DefaultHttpDataSourceFactory();\n\n // Choose an executor for downloading data. Using Runnable::run will cause each download task to\n // download data on its own thread. Passing an executor that uses multiple threads will speed up\n // download tasks that can be split into smaller parts for parallel execution. Applications that\n // already have an executor for background downloads may wish to reuse their existing executor.\n Executor downloadExecutor = Runnable::run;\n\n // Create the download manager.\n downloadManager = new DownloadManager(\n this,\n databaseProvider,\n downloadCache,\n dataSourceFactory,\n downloadExecutor);\n\n // Optionally, setters can be called to configure the download manager.\n// downloadManager.setRequirements(requirements);\n// downloadManager.setMaxParallelDownloads(3);\n return downloadManager;\n }",
"@Override\n public void onCacheAvailable(File cacheFile, String url, int percentsAvailable) {\n }",
"private void getCache(Context context) throws IOException {\n\t\t // Read file from distributed caches - each line is a item/itemset with its frequent\n\n \t// get caches files.\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tSystem.out.println(\"SETUP ------ MAPPER ----------- GET FREQUENT ITEMS--------------\");\n\t\t\n\t\t\n\t\t// URI to locate cachefile, ex URI a = new URI(\"http://www.foo.com\");\n\t\tList<URI> uris = Arrays.asList(context.getCacheFiles());\n\t\t\n\t\tSystem.out.println(\"Reading cached files\");\n\t\t// read cache files which contains candidates?\n\t\t\n\t\tnItems = 0;\n\t\t\n\t\tfor (URI uri : uris) {\n\t\t\tPath p = new Path(uri);\n\t\t\tSystem.out.println(\"Loading \" + uri.toString());\n\t\t\tFileSystem fs = FileSystem.get(context.getConfiguration());\n\t\t\tInputStreamReader ir = new InputStreamReader(fs.open(p));\n\t\t\tBufferedReader data = new BufferedReader(ir);\n\t \twhile (data.ready()) { \t\t\n\t \t\tString line=data.readLine();\n\t \t\tif (line.matches(\"\\\\s*\")) continue; // be friendly with empty lines\n\t \t\tString[] numberStrings = line.split(\"\\t\");\n\t \t\t\n \n\t \t\tint frequentItem = Integer.parseInt(numberStrings[0]);\n \t\t\tif (!hashItems.containsKey(frequentItem)) {\n\t \t\t\t\thashItems.put(frequentItem, nItems);\n\t \t\t\t\tnItems++;\n\t \t\t\t}\n\t \t\t}\n\t \t\t\n\t \t} \n\n }",
"public boolean isCached() {\n return true;\n }",
"protected abstract Collection<Cache> loadCaches();",
"public boolean isCachedFile() {\n return true;\n }",
"@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\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 }",
"public interface TAFSCacheInterface\n{\n//\tabstract void ConnectCache() throws IOException;\n//\tabstract void DisconnectCache();\n//\tabstract byte[] GetFileFromCache(String inFileName);\n//\tabstract void PutFileInCache(String inFileName, byte[] inFileBytes);\n}",
"public ImageFileCache(Context context){\n\t\tFile cacheDir = getCacheDir(context, DISK_CACHE_SUBDIR);\n//\t\tmDiskCache = DiskLruCache.openCache(this, cacheDir, DISK_CACHE_SIZE);\n\t}",
"public void run() {\n if(request!=null && request.mLoadDelay>0){\n try {\n Thread.sleep(request.mLoadDelay);\n } catch (InterruptedException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n File file = null;\n\n // If the URL is not a local reseource, grab the file\n if(!getUrl().startsWith(\"content://\")){\n\n // Grab a link to the file\n file = new File(getFullCacheFileName(mContext, getUrl()));\n\n // If the file doesn't exist, grab it from the network\n if (!file.exists()){\n cacheImage( file, request);\n } \n\n // Otherwise let the callback know the image is cached\n else if(request!=null){\n request.sendCachedCallback(getUrl(), true);\n }\n\n // Check if the file is a gif\n boolean isGif = isGif(getUrl());\n\n // If the file downloaded was a gif, tell all the callbacks\n if( isGif && request!=null ){\n request.sendGifCallback(getUrl());\n }\n }\n\n // Check if we should cache the image and the dimens\n boolean shouldCache = false;\n int maxWidth = MAX_WIDTH;\n int maxHeight = MAX_HEIGHT;\n if(request!=null){\n maxWidth = request.mMaxWidth;\n maxHeight = request.mMaxHeight;\n shouldCache = request.mCacheImage;\n }\n\n // If any of the callbacks request the image should be cached, cache it\n if(shouldCache && \n (request!=null&&request.mContext!=null)||request==null){\n\n // First check the image isn't actually in the cache\n Bitmap bitmap = get(getUrl());\n\n // If the bitmap isn't in the cache, try to grab it\n // Or the bitmap was in the cache, but is of no use\n if(bitmap == null){\n\n if(!getUrl().startsWith(\"content://\")){\n bitmap = decodeBitmap(file, maxWidth, maxHeight);\n }else{\n Uri uri = Uri.parse(getUrl());\n try{\n InputStream input = mContext.getContentResolver().openInputStream(uri);\n bitmap = BitmapFactory.decodeStream(input);\n input.close();\n }catch(FileNotFoundException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }catch(IOException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n // If we grabbed the image ok, add to the cache\n if(bitmap!=null){\n addEntry(getUrl(), bitmap);\n }\n }\n\n // Send the cached callback\n if(request!=null){\n request.sendCallback(getUrl(), bitmap);\n }\n }\n }",
"@Override\n\tpublic long getCacheSize() {\n\t\treturn 0;\n\t}",
"CloudCache getCache(String cacheName);",
"public interface CacheManager extends AutoCloseable {\n /**\n * @param conf the Alluxio configuration\n * @return an instance of {@link CacheManager}\n */\n static CacheManager create(AlluxioConfiguration conf) throws IOException {\n // TODO(feng): make cache manager type configurable when we introduce more implementations.\n return new NoExceptionCacheManager(LocalCacheManager.create(conf));\n }\n\n /**\n * Puts a page into the cache manager. This method is best effort. It is possible that this put\n * operation returns without page written.\n *\n * @param pageId page identifier\n * @param page page data\n * @return true if the put was successful, false otherwise\n */\n boolean put(PageId pageId, byte[] page);\n\n /**\n * Wraps the page in a channel or null if the queried page is not found in the cache or otherwise\n * unable to be read from the cache.\n *\n * @param pageId page identifier\n * @return a channel to read the page\n */\n @Nullable\n ReadableByteChannel get(PageId pageId);\n\n /**\n * Wraps a part of the page in a channel or null if the queried page is not found in the cache or\n * otherwise unable to be read from the cache.\n *\n * @param pageId page identifier\n * @param pageOffset offset into the page\n * @return a channel to read the page\n */\n @Nullable\n ReadableByteChannel get(PageId pageId, int pageOffset);\n\n /**\n * Deletes a page from the cache.\n *\n * @param pageId page identifier\n * @return true if the page is successfully deleted, false otherwise\n */\n boolean delete(PageId pageId);\n}",
"public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }",
"public interface Caching {\n\t\n\t/**\n\t * ititialize resources for a cache\n\t *\n\t */\n\tvoid init();\n\t\n\t/**\n\t * clear cache\n\t *\n\t */\n\tvoid clear();\n\n}",
"private File getCache(String fileName)\n {\n File file = new File(getCacheDir(), fileName);\n\n if (file.exists() && file.length() > 0)\n {\n return file;\n } else\n {\n try\n {\n file = File.createTempFile(fileName, null, this.getCacheDir());\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return file;\n }",
"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}",
"private void updateDownloadUrls() {\n VideoData videoData = VideoHelper.getFullData(getContentResolver(), mVideoId);\n if (!videoData.isOnAir()) {\n if (ZypeConfiguration.isDownloadsEnabled(this)\n && (ZypeConfiguration.isDownloadsForGuestsEnabled(this) || SettingsProvider.getInstance().isLoggedIn())) {\n getDownloadUrls(mVideoId);\n }\n }\n }",
"void mo54428b(DownloadTask downloadTask);",
"public final String getCachePath() {\n\t\treturn cachePath;\n\t}",
"public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}",
"private UtilsCache() {\n\t\tsuper();\n\t}",
"@Override\r\n\tpublic void downloadHomework() {\n\t\t\r\n\t}",
"private void onCacheFinish(){\n urls = null;\n medias = null;\n }",
"private ImageCache(Context context) {\n int memClass = ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();\n memClass = memClass > 32 ? 32 : memClass;\n\n final int cacheSize = 1024 * 1024 * memClass / 8;\n memoryCache = new LruCache<String, Bitmap>(cacheSize) {\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getRowBytes() * bitmap.getHeight();\n }\n };\n\n File cacheDir = DiskLruCache.getDiskCacheDir(context, DISK_CACHE_SUB_DIR);\n diskCache = DiskLruCache.openCache(context, cacheDir, DISK_CACHE_SIZE);\n }",
"@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }",
"public void cacheBusRouteData()\n\t{\t\n\t\tdataMap = BusRouteDataFileReader.readAndCacheBusRouteData(this.pathname);\n\t}",
"@Override\n public void clearCache() {\n }",
"int getCacheConcurrency();",
"public BitmapDownloaderTask(ImageView imageView) {\n\t\timageViewReference = new WeakReference<ImageView>(imageView);\n\n\t\t// create a new static cache if there is none\n\t\tif (cache == null) {\n\t\t\tcache = new HashMap<String, Bitmap>();\n\t\t}\n\t}",
"public boolean existCache() {\n return false;\n }",
"public void cache(){\n\t\t\n\t\t/*\n\t\t * second, check if there is a cache file\n\t\t * if yes, then check date\n\t\t * if no, then create a cache file \n\t\t*/\n\t\tif(cacheExist()){\n\t\t\t//check date and decide which file to update\n\t\t\tSystem.out.println(\" hahahaha, cache already there! \");\n\t\t\t\n\t\t\tFile cache = new File(\"./cache.txt\");\n\t\t\tsource = readFile(\"./cache.txt\",source);\n\t\t\tSystem.out.println(\"the size of source hashmap : \"+ source.size());\n\t\t\t\n\t\t\tfor(int i = 1; i < fileList.length;i++){\n\t\t\t\t//if this file need to be updated, write the data to source array\n\t\t\t\tif(needToUpdate(fileList[i], cache)){\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\t\t\t\tSystem.out.println(\"S: \"+ sdf.format(fileList[i].lastModified()) + \" c: \"+ sdf.format(cache.lastModified()));\n\t\t\t\t\tsource = readFile(fileList[i].getPath(), source);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//after checking the whole source file and add the new data to source array\n\t\t\t//then sort the source array and write it to cache\n\t\t\tsort(source);\n\t\t\ttry\n\t\t\t{\n\t\t\t String filename= \"./cache.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename,true); //the true will append the new data\n\t\t\t for(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\tfw.write(writeList.get(j));\n\t\t\t\t}\n\t\t\t fw.close();\n\t\t\t}\n\t\t\tcatch(IOException ioe)\n\t\t\t{\n\t\t\t System.err.println(\"IOException: \" + ioe.getMessage());\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t//there are is no cache, need to create a cache file\n\t\telse{\n\t\t\tSystem.out.println(\" create new cache file !\");\n\t\t\t//create cache file and copy sort the data from source file\n\t\t\t//1. read all the source file and store the data to an arrayList\n\t\t\tfor(int i = 1; i < fileList.length; i++){\n\t\t\t\tsource = readFile(fileList[i].getPath(), source);\t\t\t\n\t\t\t}\n\t\t\tsort(source);\n//\t\t\tSystem.out.println(source);\n\t\t\t\n\t\t\t//2.write the data to the cache file\n\t\t\tPrintWriter writer;\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(\"cache.txt\", \"UTF-8\");\t\t\t\n\t\t\t\twriter.println(writeList.size());\n\t\t\t\tfor(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\twriter.println(writeList.get(j));\n\t\t\t\t}\n\t\t\t\twriter.close();\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t \n\t\t\n\t}",
"public File getCacheFile() {\n return new File(cacheDir.getAbsolutePath() + File.separator + this.cacheFile);\n }",
"public int getCacheSize();",
"public interface ImageCache {\r\n\tpublic Bitmap getBitmap(String url);\r\n\r\n\tpublic void putBitmap(String url, Bitmap bitmap);\r\n\r\n\tpublic void clear();\r\n}",
"public interface ILoader {\n\n void init(Context context,int cacheSizeInM);\n\n void request(SingleConfig config);\n\n void pause();\n\n void resume();\n\n void clearDiskCache();\n\n void clearMomoryCache();\n\n long getCacheSize();\n\n void clearCacheByUrl(String url);\n\n void clearMomoryCache(View view);\n void clearMomoryCache(String url);\n\n File getFileFromDiskCache(String url);\n\n void getFileFromDiskCache(String url,FileGetter getter);\n\n\n\n\n\n boolean isCached(String url);\n\n void trimMemory(int level);\n\n void onLowMemory();\n\n\n /**\n * 如果有缓存,就直接从缓存里拿,如果没有,就从网上下载\n * 返回的file在图片框架的缓存中,非常规文件名,需要自己拷贝出来.\n * @param url\n * @param getter\n */\n void download(String url,FileGetter getter);\n\n}",
"public CacheEntry() {\n response = null;\n }",
"private ImageDownloader(){ \t\n \n }",
"private AsyncImageCache(Context context) {\n mContext = context;\n int memClass = ((ActivityManager) context\n .getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass() * 1024 * 1024;\n \n if (sMemoryCacheSize ==0 ) {\n // default Heap * 1/8\n sMemoryCacheSize = memClass / 8;\n } else if (sMemoryCacheSize > memClass / 4) {\n // max Heap * 1/4\n sMemoryCacheSize = memClass / 4;\n }\n\n final int cacheSize = sMemoryCacheSize;\n mMemoryCache = new LruCache<String, Bitmap>(cacheSize) {\n\n @Override\n\t\t\tprotected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getRowBytes() * bitmap.getHeight();\n }\n\n };\n\n if (sDiskCacheEnable) {\n File cacheDir = null;\n if (sDiskCacheDir != null) {\n cacheDir = new File(sDiskCacheDir, DISK_CACHE_SUBDIR);\n cacheDir.mkdirs();\n }\n else\n cacheDir= DiskLruCache\n .getDiskCacheDir(context, DISK_CACHE_SUBDIR);\n \n mDiskCache = DiskLruCache.openCache(context, cacheDir, sDiskCacheSize, sDiskCacheCount);\n }\n DisplayMetrics dm = mContext.getResources().getDisplayMetrics();\n sDisplayWidthPixels = dm.widthPixels;\n sDisplayHeightPixels = dm.heightPixels;\n }",
"public interface ImageCache {\n public Bitmap get(String url);\n public void put(String url,Bitmap bitmap);\n}",
"public void run() {\n /*\n r28 = this;\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled\n r24 = r0\n boolean r24 = r24.get()\n if (r24 == 0) goto L_0x000d\n L_0x000c:\n return\n L_0x000d:\n r6 = 0\n r17 = 0\n r14 = 0\n java.io.File r9 = new java.io.File // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n r0 = r28\n java.net.URL r0 = r0.url // Catch:{ Exception -> 0x02f2 }\n r25 = r0\n java.lang.String r25 = r25.toString() // Catch:{ Exception -> 0x02f2 }\n java.lang.String r24 = r24.getTempFile(r25) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r9.<init>(r0) // Catch:{ Exception -> 0x02f2 }\n boolean r15 = r9.exists() // Catch:{ Exception -> 0x02f2 }\n anetwork.channel.entity.RequestImpl r19 = new anetwork.channel.entity.RequestImpl // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.net.URL r0 = r0.url // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n r0 = r19\n r1 = r24\n r0.<init>((java.net.URL) r1) // Catch:{ Exception -> 0x02f2 }\n r24 = 0\n r0 = r19\n r1 = r24\n r0.setRetryTime(r1) // Catch:{ Exception -> 0x02f2 }\n r24 = 1\n r0 = r19\n r1 = r24\n r0.setFollowRedirects(r1) // Catch:{ Exception -> 0x02f2 }\n if (r15 == 0) goto L_0x007e\n java.lang.String r24 = \"Range\"\n java.lang.StringBuilder r25 = new java.lang.StringBuilder // Catch:{ Exception -> 0x02f2 }\n r25.<init>() // Catch:{ Exception -> 0x02f2 }\n java.lang.String r26 = \"bytes=\"\n java.lang.StringBuilder r25 = r25.append(r26) // Catch:{ Exception -> 0x02f2 }\n long r26 = r9.length() // Catch:{ Exception -> 0x02f2 }\n java.lang.StringBuilder r25 = r25.append(r26) // Catch:{ Exception -> 0x02f2 }\n java.lang.String r26 = \"-\"\n java.lang.StringBuilder r25 = r25.append(r26) // Catch:{ Exception -> 0x02f2 }\n java.lang.String r25 = r25.toString() // Catch:{ Exception -> 0x02f2 }\n r0 = r19\n r1 = r24\n r2 = r25\n r0.addHeader(r1, r2) // Catch:{ Exception -> 0x02f2 }\n L_0x007e:\n anetwork.channel.degrade.DegradableNetwork r16 = new anetwork.channel.degrade.DegradableNetwork // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n android.content.Context r24 = r24.context // Catch:{ Exception -> 0x02f2 }\n r0 = r16\n r1 = r24\n r0.<init>(r1) // Catch:{ Exception -> 0x02f2 }\n r24 = 0\n r0 = r16\n r1 = r19\n r2 = r24\n anetwork.channel.aidl.Connection r24 = r0.getConnection(r1, r2) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r1 = r28\n r1.conn = r0 // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n anetwork.channel.aidl.Connection r0 = r0.conn // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n int r20 = r24.getStatusCode() // Catch:{ Exception -> 0x02f2 }\n if (r20 <= 0) goto L_0x00c7\n r24 = 200(0xc8, float:2.8E-43)\n r0 = r20\n r1 = r24\n if (r0 == r1) goto L_0x0121\n r24 = 206(0xce, float:2.89E-43)\n r0 = r20\n r1 = r24\n if (r0 == r1) goto L_0x0121\n r24 = 416(0x1a0, float:5.83E-43)\n r0 = r20\n r1 = r24\n if (r0 == r1) goto L_0x0121\n L_0x00c7:\n r24 = -102(0xffffffffffffff9a, float:NaN)\n java.lang.StringBuilder r25 = new java.lang.StringBuilder // Catch:{ Exception -> 0x02f2 }\n r25.<init>() // Catch:{ Exception -> 0x02f2 }\n java.lang.String r26 = \"ResponseCode:\"\n java.lang.StringBuilder r25 = r25.append(r26) // Catch:{ Exception -> 0x02f2 }\n r0 = r25\n r1 = r20\n java.lang.StringBuilder r25 = r0.append(r1) // Catch:{ Exception -> 0x02f2 }\n java.lang.String r25 = r25.toString() // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n r1 = r24\n r2 = r25\n r0.notifyFail(r1, r2) // Catch:{ Exception -> 0x02f2 }\n if (r6 == 0) goto L_0x00ef\n r6.close() // Catch:{ Exception -> 0x0421 }\n L_0x00ef:\n if (r17 == 0) goto L_0x00f4\n r17.close() // Catch:{ Exception -> 0x0424 }\n L_0x00f4:\n if (r14 == 0) goto L_0x00f9\n r14.close() // Catch:{ Exception -> 0x0427 }\n L_0x00f9:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x011e }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x011e }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x011e }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x011e }\n monitor-exit(r25) // Catch:{ all -> 0x011e }\n goto L_0x000c\n L_0x011e:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x011e }\n throw r24\n L_0x0121:\n if (r15 == 0) goto L_0x0195\n r24 = 416(0x1a0, float:5.83E-43)\n r0 = r20\n r1 = r24\n if (r0 != r1) goto L_0x018c\n r15 = 0\n java.util.List r24 = r19.getHeaders() // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n r1 = r24\n r0.removeRangeHeader(r1) // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n boolean r24 = r24.get() // Catch:{ Exception -> 0x02f2 }\n if (r24 == 0) goto L_0x017a\n if (r6 == 0) goto L_0x0148\n r6.close() // Catch:{ Exception -> 0x042a }\n L_0x0148:\n if (r17 == 0) goto L_0x014d\n r17.close() // Catch:{ Exception -> 0x042d }\n L_0x014d:\n if (r14 == 0) goto L_0x0152\n r14.close() // Catch:{ Exception -> 0x0430 }\n L_0x0152:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x0177 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x0177 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x0177 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x0177 }\n monitor-exit(r25) // Catch:{ all -> 0x0177 }\n goto L_0x000c\n L_0x0177:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x0177 }\n throw r24\n L_0x017a:\n r24 = 0\n r0 = r16\n r1 = r19\n r2 = r24\n anetwork.channel.aidl.Connection r24 = r0.getConnection(r1, r2) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r1 = r28\n r1.conn = r0 // Catch:{ Exception -> 0x02f2 }\n L_0x018c:\n r24 = 200(0xc8, float:2.8E-43)\n r0 = r20\n r1 = r24\n if (r0 != r1) goto L_0x0195\n r15 = 0\n L_0x0195:\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n boolean r24 = r24.get() // Catch:{ Exception -> 0x02f2 }\n if (r24 == 0) goto L_0x01d8\n if (r6 == 0) goto L_0x01a6\n r6.close() // Catch:{ Exception -> 0x0433 }\n L_0x01a6:\n if (r17 == 0) goto L_0x01ab\n r17.close() // Catch:{ Exception -> 0x0436 }\n L_0x01ab:\n if (r14 == 0) goto L_0x01b0\n r14.close() // Catch:{ Exception -> 0x0439 }\n L_0x01b0:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x01d5 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x01d5 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x01d5 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x01d5 }\n monitor-exit(r25) // Catch:{ all -> 0x01d5 }\n goto L_0x000c\n L_0x01d5:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x01d5 }\n throw r24\n L_0x01d8:\n r12 = 0\n if (r15 != 0) goto L_0x0250\n java.io.BufferedOutputStream r7 = new java.io.BufferedOutputStream // Catch:{ Exception -> 0x02f2 }\n java.io.FileOutputStream r24 = new java.io.FileOutputStream // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r0.<init>(r9) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r7.<init>(r0) // Catch:{ Exception -> 0x02f2 }\n r6 = r7\n L_0x01eb:\n r0 = r28\n anetwork.channel.aidl.Connection r0 = r0.conn // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n java.util.Map r24 = r24.getConnHeadFields() // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n r1 = r20\n r2 = r24\n long r22 = r0.parseContentLength(r1, r2, r12) // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n anetwork.channel.aidl.Connection r0 = r0.conn // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n anetwork.channel.aidl.ParcelableInputStream r14 = r24.getInputStream() // Catch:{ Exception -> 0x02f2 }\n if (r14 != 0) goto L_0x0279\n r24 = -103(0xffffffffffffff99, float:NaN)\n java.lang.String r25 = \"input stream is null.\"\n r0 = r28\n r1 = r24\n r2 = r25\n r0.notifyFail(r1, r2) // Catch:{ Exception -> 0x02f2 }\n if (r6 == 0) goto L_0x021e\n r6.close() // Catch:{ Exception -> 0x043c }\n L_0x021e:\n if (r17 == 0) goto L_0x0223\n r17.close() // Catch:{ Exception -> 0x043f }\n L_0x0223:\n if (r14 == 0) goto L_0x0228\n r14.close() // Catch:{ Exception -> 0x0442 }\n L_0x0228:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x024d }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x024d }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x024d }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x024d }\n monitor-exit(r25) // Catch:{ all -> 0x024d }\n goto L_0x000c\n L_0x024d:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x024d }\n throw r24\n L_0x0250:\n java.io.RandomAccessFile r18 = new java.io.RandomAccessFile // Catch:{ Exception -> 0x02f2 }\n java.lang.String r24 = \"rw\"\n r0 = r18\n r1 = r24\n r0.<init>(r9, r1) // Catch:{ Exception -> 0x02f2 }\n long r12 = r18.length() // Catch:{ Exception -> 0x0474, all -> 0x046f }\n r0 = r18\n r0.seek(r12) // Catch:{ Exception -> 0x0474, all -> 0x046f }\n java.io.BufferedOutputStream r7 = new java.io.BufferedOutputStream // Catch:{ Exception -> 0x0474, all -> 0x046f }\n java.nio.channels.FileChannel r24 = r18.getChannel() // Catch:{ Exception -> 0x0474, all -> 0x046f }\n java.io.OutputStream r24 = java.nio.channels.Channels.newOutputStream(r24) // Catch:{ Exception -> 0x0474, all -> 0x046f }\n r0 = r24\n r7.<init>(r0) // Catch:{ Exception -> 0x0474, all -> 0x046f }\n r17 = r18\n r6 = r7\n goto L_0x01eb\n L_0x0279:\n r10 = -1\n r21 = 0\n r24 = 2048(0x800, float:2.87E-42)\n r0 = r24\n byte[] r8 = new byte[r0] // Catch:{ Exception -> 0x02f2 }\n L_0x0282:\n int r10 = r14.read(r8) // Catch:{ Exception -> 0x02f2 }\n r24 = -1\n r0 = r24\n if (r10 == r0) goto L_0x0354\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n boolean r24 = r24.get() // Catch:{ Exception -> 0x02f2 }\n if (r24 == 0) goto L_0x02d8\n r0 = r28\n anetwork.channel.aidl.Connection r0 = r0.conn // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n r24.cancel() // Catch:{ Exception -> 0x02f2 }\n if (r6 == 0) goto L_0x02a6\n r6.close() // Catch:{ Exception -> 0x0445 }\n L_0x02a6:\n if (r17 == 0) goto L_0x02ab\n r17.close() // Catch:{ Exception -> 0x0448 }\n L_0x02ab:\n if (r14 == 0) goto L_0x02b0\n r14.close() // Catch:{ Exception -> 0x044b }\n L_0x02b0:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x02d5 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x02d5 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x02d5 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x02d5 }\n monitor-exit(r25) // Catch:{ all -> 0x02d5 }\n goto L_0x000c\n L_0x02d5:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x02d5 }\n throw r24\n L_0x02d8:\n int r21 = r21 + r10\n r24 = 0\n r0 = r24\n r6.write(r8, r0, r10) // Catch:{ Exception -> 0x02f2 }\n r0 = r21\n long r0 = (long) r0 // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n long r24 = r24 + r12\n r0 = r28\n r1 = r24\n r3 = r22\n r0.notifyProgress(r1, r3) // Catch:{ Exception -> 0x02f2 }\n goto L_0x0282\n L_0x02f2:\n r11 = move-exception\n L_0x02f3:\n java.lang.String r24 = \"anet.DownloadManager\"\n java.lang.String r25 = \"file download failed!\"\n r26 = 0\n r27 = 0\n r0 = r27\n java.lang.Object[] r0 = new java.lang.Object[r0] // Catch:{ all -> 0x03ee }\n r27 = r0\n r0 = r24\n r1 = r25\n r2 = r26\n r3 = r27\n anet.channel.util.ALog.e(r0, r1, r2, r11, r3) // Catch:{ all -> 0x03ee }\n r24 = -104(0xffffffffffffff98, float:NaN)\n java.lang.String r25 = r11.toString() // Catch:{ all -> 0x03ee }\n r0 = r28\n r1 = r24\n r2 = r25\n r0.notifyFail(r1, r2) // Catch:{ all -> 0x03ee }\n if (r6 == 0) goto L_0x0322\n r6.close() // Catch:{ Exception -> 0x0460 }\n L_0x0322:\n if (r17 == 0) goto L_0x0327\n r17.close() // Catch:{ Exception -> 0x0463 }\n L_0x0327:\n if (r14 == 0) goto L_0x032c\n r14.close() // Catch:{ Exception -> 0x0466 }\n L_0x032c:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x0351 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x0351 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x0351 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x0351 }\n monitor-exit(r25) // Catch:{ all -> 0x0351 }\n goto L_0x000c\n L_0x0351:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x0351 }\n throw r24\n L_0x0354:\n r6.flush() // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.util.concurrent.atomic.AtomicBoolean r0 = r0.isCancelled // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n boolean r24 = r24.get() // Catch:{ Exception -> 0x02f2 }\n if (r24 == 0) goto L_0x039a\n if (r6 == 0) goto L_0x0368\n r6.close() // Catch:{ Exception -> 0x044e }\n L_0x0368:\n if (r17 == 0) goto L_0x036d\n r17.close() // Catch:{ Exception -> 0x0451 }\n L_0x036d:\n if (r14 == 0) goto L_0x0372\n r14.close() // Catch:{ Exception -> 0x0454 }\n L_0x0372:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x0397 }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x0397 }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x0397 }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x0397 }\n monitor-exit(r25) // Catch:{ all -> 0x0397 }\n goto L_0x000c\n L_0x0397:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x0397 }\n throw r24\n L_0x039a:\n java.io.File r24 = new java.io.File // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.lang.String r0 = r0.filePath // Catch:{ Exception -> 0x02f2 }\n r25 = r0\n r24.<init>(r25) // Catch:{ Exception -> 0x02f2 }\n r0 = r24\n r9.renameTo(r0) // Catch:{ Exception -> 0x02f2 }\n r0 = r28\n java.lang.String r0 = r0.filePath // Catch:{ Exception -> 0x02f2 }\n r24 = r0\n r0 = r28\n r1 = r24\n r0.notifySuccess(r1) // Catch:{ Exception -> 0x02f2 }\n if (r6 == 0) goto L_0x03bc\n r6.close() // Catch:{ Exception -> 0x0457 }\n L_0x03bc:\n if (r17 == 0) goto L_0x03c1\n r17.close() // Catch:{ Exception -> 0x045a }\n L_0x03c1:\n if (r14 == 0) goto L_0x03c6\n r14.close() // Catch:{ Exception -> 0x045d }\n L_0x03c6:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r24 = r0\n android.util.SparseArray r25 = r24.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x03eb }\n r24 = r0\n android.util.SparseArray r24 = r24.taskMap // Catch:{ all -> 0x03eb }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x03eb }\n r26 = r0\n r0 = r24\n r1 = r26\n r0.remove(r1) // Catch:{ all -> 0x03eb }\n monitor-exit(r25) // Catch:{ all -> 0x03eb }\n goto L_0x000c\n L_0x03eb:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x03eb }\n throw r24\n L_0x03ee:\n r24 = move-exception\n L_0x03ef:\n if (r6 == 0) goto L_0x03f4\n r6.close() // Catch:{ Exception -> 0x0469 }\n L_0x03f4:\n if (r17 == 0) goto L_0x03f9\n r17.close() // Catch:{ Exception -> 0x046b }\n L_0x03f9:\n if (r14 == 0) goto L_0x03fe\n r14.close() // Catch:{ Exception -> 0x046d }\n L_0x03fe:\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this\n r25 = r0\n android.util.SparseArray r25 = r25.taskMap\n monitor-enter(r25)\n r0 = r28\n anetwork.channel.download.DownloadManager r0 = anetwork.channel.download.DownloadManager.this // Catch:{ all -> 0x041e }\n r26 = r0\n android.util.SparseArray r26 = r26.taskMap // Catch:{ all -> 0x041e }\n r0 = r28\n int r0 = r0.taskId // Catch:{ all -> 0x041e }\n r27 = r0\n r26.remove(r27) // Catch:{ all -> 0x041e }\n monitor-exit(r25) // Catch:{ all -> 0x041e }\n throw r24\n L_0x041e:\n r24 = move-exception\n monitor-exit(r25) // Catch:{ all -> 0x041e }\n throw r24\n L_0x0421:\n r24 = move-exception\n goto L_0x00ef\n L_0x0424:\n r24 = move-exception\n goto L_0x00f4\n L_0x0427:\n r24 = move-exception\n goto L_0x00f9\n L_0x042a:\n r24 = move-exception\n goto L_0x0148\n L_0x042d:\n r24 = move-exception\n goto L_0x014d\n L_0x0430:\n r24 = move-exception\n goto L_0x0152\n L_0x0433:\n r24 = move-exception\n goto L_0x01a6\n L_0x0436:\n r24 = move-exception\n goto L_0x01ab\n L_0x0439:\n r24 = move-exception\n goto L_0x01b0\n L_0x043c:\n r24 = move-exception\n goto L_0x021e\n L_0x043f:\n r24 = move-exception\n goto L_0x0223\n L_0x0442:\n r24 = move-exception\n goto L_0x0228\n L_0x0445:\n r24 = move-exception\n goto L_0x02a6\n L_0x0448:\n r24 = move-exception\n goto L_0x02ab\n L_0x044b:\n r24 = move-exception\n goto L_0x02b0\n L_0x044e:\n r24 = move-exception\n goto L_0x0368\n L_0x0451:\n r24 = move-exception\n goto L_0x036d\n L_0x0454:\n r24 = move-exception\n goto L_0x0372\n L_0x0457:\n r24 = move-exception\n goto L_0x03bc\n L_0x045a:\n r24 = move-exception\n goto L_0x03c1\n L_0x045d:\n r24 = move-exception\n goto L_0x03c6\n L_0x0460:\n r24 = move-exception\n goto L_0x0322\n L_0x0463:\n r24 = move-exception\n goto L_0x0327\n L_0x0466:\n r24 = move-exception\n goto L_0x032c\n L_0x0469:\n r25 = move-exception\n goto L_0x03f4\n L_0x046b:\n r25 = move-exception\n goto L_0x03f9\n L_0x046d:\n r25 = move-exception\n goto L_0x03fe\n L_0x046f:\n r24 = move-exception\n r17 = r18\n goto L_0x03ef\n L_0x0474:\n r11 = move-exception\n r17 = r18\n goto L_0x02f3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: anetwork.channel.download.DownloadManager.DownloadTask.run():void\");\n }",
"private static OkHttpClient createCachedClient(final Context context) {\n File httpCacheDirectory = new File(context.getCacheDir(), \"cache_file\");\n Cache cache = new Cache(httpCacheDirectory, 20 * 1024 * 1024);\n OkHttpClient okHttpClient = new OkHttpClient.Builder().addNetworkInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request originalRequest = chain.request();\n String cacheHeaderValue = isNetworkAvailable(context)\n ? \"public, max-age=2419200\"\n : \"public, only-if-cached, max-stale=2419200\";\n Request request = originalRequest.newBuilder().build();\n Response response = chain.proceed(request);\n return response.newBuilder()\n .removeHeader(\"Pragma\")\n .removeHeader(\"Cache-Control\")\n .header(\"Cache-Control\", cacheHeaderValue)\n .build();\n }\n }).cache(cache).build();\n return okHttpClient;\n }",
"public interface ICache {\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object get(String key);\n\t\n\t\n\t\n\t/**\n\t * <p>\n\t * \n\t * @param key\n\t * @return old cache object \n\t */\n\tpublic Object put(String key,Object value);\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key quietly,\n\t * without update the statistic data\n\t * @param key\n\t * @return\n\t */\n\tpublic Object getQuiet(String key);\n\t\n\t\n\t/**\n\t * <p>\n\t * remove the cached object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object remove(String key);\n\t\n\t/**\n\t * <p>\n\t * free specied size mem\n\t * @param size unit in Byte\n\t * @return\n\t */\n\tpublic long free(long size);\n\t\n\t\n\t/**\n\t * <p>\n\t * flush to the underly resource\n\t */\n\tpublic void flush();\n\t\n}",
"public CacheObject(String pn, Runner runner) throws IOException, BadPathnameException {\n pathname = pn;\n // also sets server_checkin_time\n last_known_edit_time = get_server_edit_time(runner);\n content = new HashMap<>();\n final_block = -1;\n }",
"ListenableFuture<CacheResult> fetchManifest(RuleKey manifestKey, LazyPath downloadedManifest);",
"protected abstract void requestNoCache(ActionContext context);",
"public InMemoryResponseCache() {\n\t\tthis( 250*1024 ); // 250 KB cache\n\t}",
"private void createImageCache(){\n ImageCacheManager.getInstance().init(this,\n this.getPackageCodePath()\n , DISK_IMAGECACHE_SIZE\n , DISK_IMAGECACHE_COMPRESS_FORMAT\n , DISK_IMAGECACHE_QUALITY\n , ImageCacheManager.CacheType.MEMORY);\n }",
"PortalCacheModel getCacheModel();",
"public File getLocalCacheDirectory() {\n return pathsProvider.getLocalAcmCacheDir();\n }",
"protected Duration getCacheDuration() {\n return Duration.ZERO;\n }",
"private static void readFromCache(com.facebook.internal.ImageDownloader.RequestKey r2, android.content.Context r3, boolean r4) {\n /*\n r0 = 0;\n r1 = 0;\n if (r4 == 0) goto L_0x0014;\n L_0x0004:\n r4 = r2.uri;\n r4 = com.facebook.internal.UrlRedirectCache.getRedirectedUri(r4);\n if (r4 == 0) goto L_0x0014;\n L_0x000c:\n r4 = com.facebook.internal.ImageResponseCache.getCachedImageStream(r4, r3);\n if (r4 == 0) goto L_0x0015;\n L_0x0012:\n r0 = 1;\n goto L_0x0015;\n L_0x0014:\n r4 = r1;\n L_0x0015:\n if (r0 != 0) goto L_0x001d;\n L_0x0017:\n r4 = r2.uri;\n r4 = com.facebook.internal.ImageResponseCache.getCachedImageStream(r4, r3);\n L_0x001d:\n if (r4 == 0) goto L_0x002a;\n L_0x001f:\n r3 = android.graphics.BitmapFactory.decodeStream(r4);\n com.facebook.internal.Utility.closeQuietly(r4);\n issueResponse(r2, r1, r3, r0);\n goto L_0x0039;\n L_0x002a:\n r3 = removePendingRequest(r2);\n if (r3 == 0) goto L_0x0039;\n L_0x0030:\n r4 = r3.isCancelled;\n if (r4 != 0) goto L_0x0039;\n L_0x0034:\n r3 = r3.request;\n enqueueDownload(r3, r2);\n L_0x0039:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.ImageDownloader.readFromCache(com.facebook.internal.ImageDownloader$RequestKey, android.content.Context, boolean):void\");\n }",
"public boolean cacheAvailable(Context context) {\n return this.fileCache && AQUtility.getExistedCacheByUrl(AQUtility.getCacheDir(context, this.policy), this.url) != null;\n }",
"public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}",
"private void init() {\n clearCaches();\n }",
"@Nullable\n public String getCacheUrl() {\n return cacheUrl;\n }",
"int saveCached(String fileName) throws IOException\n\t {\n\t\t File f = new File (fileName);\n\t\t \n\t\t\t\tif (f.exists())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"ATTENTION!!! File \" +fileName+ \" already exists. Adding new records to it.\");\n\t\t\t\t\tFileWriter fw = new FileWriter (f, true);\n\t\t\t\t\tPrintWriter pwx = new PrintWriter (fw);\n\t\t\t\t\tBufferedReader brx = new BufferedReader(new FileReader (\".cache\"));\n\t\t\t\t\t \n\t\t\t\t\t String lineX = brx.readLine();\n\t\t\t\t\t \n\t\t\t\t\t while (lineX != null)\n\t\t\t\t\t {\n\t\t\t\t\t\t pwx.println(lineX);\n\t\t\t\t\t\t lineX=brx.readLine();\n\t\t\t\t\t }\n\t\t\t\t\t brx.close();\n\t\t\t\t\t pwx.flush();\n\t\t\t\t\t pwx.close();\n\t\t\t\t\t \n\t\t\t\t\t return 0;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tf.createNewFile();\n\t\t\t\t}\n\t\t \n\t\t \n\t\t PrintWriter pn = new PrintWriter (fileName);\n\t\t BufferedReader br = new BufferedReader(new FileReader (\".cache\"));\n\t\t \n\t\t String line = br.readLine();\n\t\t \n\t\t while (line != null)\n\t\t {\n\t\t\t pn.println(line);\n\t\t\t line=br.readLine();\n\t\t }\n\t\t pn.flush();\n\t\t br.close();\n\t\t pn.close();\n\t\t System.out.println(\"Your file was saved as follows\");\n\t\t FileManager fm = new FileManager();\n\t\t fm.show(fileName);\n\t\treturn 1;\n\t }",
"private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }",
"@Override public String Async_key() {return Key_wiki_download;}",
"public String getCacheClassName() {\n return cacheClassName;\n }",
"List<Link> findLinkByCache();",
"public void syncCache() {\n for (String s : this.cache.keySet()) {\n JsonDocument document = this.cache.get(s);\n document.save(new File(directory, s + \".json\"));\n }\n }",
"void mo54418a(DownloadTask downloadTask);",
"protected void createLookupCache() {\n }",
"static CacheResult createCacheFile(String url, int statusCode,\n Headers headers, String mimeType, boolean forceCache) {\n // This method is public but hidden. We break functionality.\n return null;\n }",
"synchronized static void saveFile(String url){\n\t\tint count=1,size=0;\n\t\tbyte buffer[] = new byte[0x100];\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(new File(context.getCacheDir(), hashURL(url)));\n\t\t\tInputStream input = new BufferedInputStream(new URL(url).openStream());\n\t\t\tLog.i(\"FILEBANK\",\"Saveing \"+hashURL(url));\n\t\t\twhile(true){\n\t\t\t\tcount=input.read(buffer);\n\t\t\t\tif(count<0)break;\n\t\t\t\tfos.write(buffer,0,count);\n\t\t\t\tsize+=count;\n\t\t\t}\n\t\t\tinput.close();\n\t\t\tfos.close();\n\t\t\tLog.i(\"FILEBANK\",\"Saved \"+hashURL(url)+\" \"+size+\" bytes.\");\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tLog.e(\"FILEBANK\", \"Error saving file to cache\", ex);\n\t\t} catch (MalformedURLException ex) {\n\t\t\tLog.e(\"FILEBANK\",\"Invalid url: \"+url, ex);\n\t\t} catch (IOException ex) {\n\t\t\tLog.e(\"FILEBANK\",\"Error reading image\", ex);\n\t\t} catch (IndexOutOfBoundsException ex) {\n\t\t\tLog.e(\"FILEBANK\", \"(count, size) = \"+count+\",\"+size, ex);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic Bitmap getBitmap(String url) {\n\t\t\t\treturn cache.get(url);\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onUseCacheDoInUI() {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onUseCacheDoInUI() {\n\t\t\t}",
"@Override\n\tpublic int getSizeToCache() {\n\t\treturn 0;\n\t}",
"public Map<String, String> getCache() {\n return cache;\n }",
"@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }",
"protected boolean getStravaUseCache()\n {\n return true;\n }",
"void clearCache();",
"void clearCache();",
"public abstract void clearCache();",
"private GetMethod getCachedMethod(String url) {\n if (_previousUrl == null || !_previousUrl.equals(url)) {\n logger.debug(\"Dataserver url changed from \" + _previousUrl + \" to \"\n + url);\n _getMethod = new GetMethod(url);\n _previousUrl = url;\n }\n return _getMethod;\n }",
"int getCurrentCacheSize();",
"void download(SearchResult result, String downloadPath);",
"private void loadCache(Context ctx, ImageLoader img) {\r\n RequestOptions options = getCommonOptions(img);\r\n options.diskCacheStrategy(DiskCacheStrategy.ALL);\r\n\r\n Glide.with(ctx).load(img.getUrl()).apply(options).into(img.getImgView());\r\n }",
"public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }",
"protected Cache cache(RequestContext ctx) {\n String serviceId = serviceId(ctx);\n if (serviceId != null) {\n return cacheManager.getCache(serviceId);\n }\n return null;\n }",
"@Override\n public int getCacheSize() {\n return 4 + 20 * (4 + 4 + 8);\n }",
"private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }"
] | [
"0.6675619",
"0.65461063",
"0.64002275",
"0.639991",
"0.63972765",
"0.63778144",
"0.62605125",
"0.6189951",
"0.61724025",
"0.61534274",
"0.6152628",
"0.6114072",
"0.6099345",
"0.60923713",
"0.6055747",
"0.6048769",
"0.60429096",
"0.60080576",
"0.5997447",
"0.59618306",
"0.59408545",
"0.59202427",
"0.5892175",
"0.588711",
"0.579822",
"0.5782017",
"0.5779065",
"0.57719636",
"0.5754325",
"0.5753894",
"0.5751517",
"0.57478166",
"0.5746034",
"0.57454365",
"0.5740867",
"0.5735852",
"0.57103634",
"0.56988406",
"0.5668471",
"0.56659013",
"0.566586",
"0.5664154",
"0.5640183",
"0.56401557",
"0.5629534",
"0.5629102",
"0.5619846",
"0.56193024",
"0.561723",
"0.5614086",
"0.5611609",
"0.5605141",
"0.5598813",
"0.5598673",
"0.5597707",
"0.559725",
"0.5588939",
"0.55780005",
"0.55773443",
"0.55753624",
"0.55644244",
"0.55611193",
"0.5558509",
"0.55535406",
"0.5548604",
"0.5540554",
"0.55336285",
"0.5532741",
"0.5532043",
"0.5527947",
"0.5527383",
"0.55272543",
"0.5523079",
"0.5519273",
"0.55161935",
"0.55161166",
"0.5514658",
"0.55144876",
"0.5513719",
"0.55116856",
"0.550972",
"0.55036926",
"0.54973483",
"0.5495535",
"0.5482702",
"0.5482702",
"0.54790145",
"0.546825",
"0.5467614",
"0.54628253",
"0.5461852",
"0.5461852",
"0.5460765",
"0.5456374",
"0.5445684",
"0.54366106",
"0.54354894",
"0.54309356",
"0.5429771",
"0.5427956",
"0.54261345"
] | 0.0 | -1 |
Constructs a controller for playing the given game model, with the given input and output for communicating with the user. Called by the makeController() method. | private NonGuiController(MusicEditorModel model0, ViewModel vm, NonGuiViewAdapter view) {
model = requireNonNull(model0);
this.vm = vm;
this.view = view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"GameResult start(Player uno , Player due , Model model ,Controller controller , ViewInterface view , gestioneInput io) throws IOException;",
"public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}",
"public interface Controller {\n\n\t/**\n\t * This method sets the Model of the controller\n\t * @param m the Model to be set for Controller\n\t */\n\tvoid setModel(Model m);\n\t\n\t/**\n\t * This method sets the View of the controller\n\t * @param v the View to be set for Controller\n\t */\n\tvoid setView(View v);\n\t/**\n\t * This method transfers messages to mView to be printed on the screen\n\t * @param toPrnt A String to be printed on the screen in the manner View chooses\n\t */\n\tvoid PrintOnScreen(String toPrnt);\n\t/**\n\t * This method gets the data that the user entered as input to View\n\t * @return the user's String-the input\n\t */\n\tString getDataFromScreen();\n//\t/**\n//\t * \n//\t * @param commandToExecute\n//\t * @param params\n//\t */\n//\tvoid excuteCommand(Command commandToExecute, String[] params);\n\t/**\n\t * This message returns a Maze3d according to a given name\n\t * @param name the name of maze to be checked\n\t * @return a maze with the name \"name\" if name does not exist returns false\n\t */\n\tMaze3d getMaze(String name);\n\t/**\n\t * This message returns the map of <String, Command>\n\t * @return A map with all the strings and commands\n\t */\n\tHashMap <String, Command> getMap();\n\t/**\n\t * This method sets the map of Strings and Commands so will know the matches/\n\t */\n\tvoid setHashMap();\n\n\t/**\n\t * This method returns the Error String in the correct format to be recognized and so the user will know\n\t * @param toPrint the mesage of the error String\n\t * @return A String[] with error in [0] and toPrint at [1]\n\t */\n\tString[] returnErrorString(String toPrint);\n\n\t/**\n\t * This method checks if the String is a legal Commad and makes it one in the correct format if it is.\n\t * if not will return a message or an error String[]\n\t * @param strToChck The String that the user entered as his command\n\t * @return a String in the format to be identified for the command to work\n\t */\n\tString[] checkIfLegalCommand(String strToChck);\n\t\n\t/**\n\t * This method execute the command that it receives with the parameters from param[]\n\t * @param commandToExecute the command to execute \n\t * @param params all the data that the command needs to execute\n\t */\n\tvoid excuteCommand(Command commandToExecute, String [] params);\n}",
"public DummyGuiController(SoundModelInterface model) {\n this.model = model;\n view = new DummyGui(model);\n this.runModel();\n }",
"public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }",
"GameController makeGameController(LobbyController lobbyController);",
"public interface MarbleSolitaireController {\n\n /**\n * This method play a new game of Marble Solitaire using the provided model.\n *\n * @param model represents the model of the marble solitaire game.\n * @throws IllegalArgumentException if the provided model is null\n * @throws IllegalStateException if the controller is unable to successfully receive input or\n * transmit output.\n */\n void playGame(MarbleSolitaireModel model) throws IllegalArgumentException, IllegalStateException;\n}",
"public GameViewController(int[] input) {\n\t\tinputs = input;\n\t}",
"GameModel createGameModel(GameModel gameModel);",
"public interface MarbleSolitaireController {\n\n /**\n * Plays a game of marble solitaire. The game is textual based and receives input from a user to\n * make moves or quit the game. Moves must be valid to be made.\n *\n * @param model the row number of the position to be moved from (starts at 0)\n */\n void playGame(MarbleSolitaireModel model);\n}",
"static Controller makeController(MusicEditorModel model, ViewModel vm, NonGuiViewAdapter view) {\n return new NonGuiController(model, vm, view);\n }",
"Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}",
"public static void main(String[] args) {\n//\n// controller.setSoldierRank(0, \"Turai\");\n// controller.addModel(new Model(2, \"Lera\", \"RavSamal\"));\n// controller.updateViews();\n\n Controller controller = new Controller();\n controller.addModel(new Model(1, \"Gal\", \"Citizen\"));\n controller.addModel(new Model(12121, \"bubu\", \"Smar\"));\n controller.addModel(new Model(624, \"Groot\", \"Tree\"));\n controller.addModel(new Model(-10, \"Deadpool\", \"Awesome\"));\n controller.addModel(new Model(100, \"Nikita\", \"Citizen\"));\n\n controller.presentUI();\n\n controller.updateViews();\n }",
"public DevintController(M model) {\n this(model, new InputConfiguration().addConfig(SWING_CONFIG_KEY, new SwingInputConfiguration()));\n }",
"public GameController(GameModel gameModel) {\n\t\tthis.gameModel = gameModel;\n\t\tcurrState = State.WAIT;\n\t\tcurrDisk = null;\n\t\tcurrSquare = null;\n\t}",
"public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }",
"public interface AuthoringModelController {\n\n\t/**\n\t * Save the current state of the current level a game being authored.\n\t *\n\t * @param saveName\n\t * the name to assign to the save file\n\t */\n\tvoid saveGameState(File saveName);\n\n\t/**\n\t * Load the detailed state of a game for a particular level, including\n\t * high-level information and elements present.\n\t *\n\t * @param saveName\n\t * the name used to save the game authoring data\n\t * @param level\n\t * the level of the game which should be loaded\n\t * @throws IOException\n\t * if the save name does not refer to existing files\n\t */\n\tvoid loadOriginalGameState(String saveName, int level) throws IOException;\n\n\t/**\n\t * Export a fully authored game, including all levels, into an executable file.\n\t */\n\tvoid exportGame();\n\n\t/**\n\t * Create a new level for the game being authored. Saves the state of the\n\t * current level being authored when the transition occurs.\n\t *\n\t * @param level\n\t * the number associated with the new level\n\t */\n\tvoid createNewLevel(int level);\n\n\t/**\n\t * Delete the previously created level.\n\t *\n\t * @param level\n\t * the level to delete\n\t * @throws IllegalArgumentException\n\t * if level does not exist\n\t */\n\tvoid deleteLevel(int level) throws IllegalArgumentException;\n\n\t/**\n\t * Get the top-level configuration options for a game element definition.\n\t *\n\t * @return a map from the name of the configuration option to set to a list of\n\t * choices for that option\n\t */\n\tMap<String, List<String>> getElementBaseConfigurationOptions();\n\n\t/**\n\t * Get auxiliary configuration elements for a game element, based on top-level\n\t * configuration choices.\n\t *\n\t * @return a map from the name of the configuration option to its class type\n\t */\n\tMap<String, Class> getAuxiliaryElementConfigurationOptions(Map<String, String> baseConfigurationChoices);\n\n\t/**\n\t * Define a new type of element for the game being authored. Elements of this\n\t * type will be created by the model based on its properties, assuming defaults\n\t * where necessary. This method should not be used for updating properties of an\n\t * existing template, the updateElementDefinition method should be used for that\n\t * instead.\n\t *\n\t * @param elementName\n\t * the template name assigned to this element, for future reuse of\n\t * the properties\n\t * @param properties\n\t * a map containing the properties of the element to be created\n\t * @throws IllegalArgumentException\n\t * if the template already exists.\n\t */\n\tvoid defineElement(String elementName, Map<String, String> properties) throws IllegalArgumentException;\n\n\t/**\n\t * Update an existing template by overwriting the specified properties to their\n\t * new specified values. Should not be used to create a new template, the\n\t * defineElement method should be used for that.\n\t * \n\t * @param elementName\n\t * the name of the template to be updated\n\t * @param propertiesToUpdate\n\t * the properties to update\n\t * @param retroactive\n\t * whether previously created elements of this type must have their\n\t * properties updated\n\t * \n\t * @throws IllegalArgumentException\n\t * if the template does not already exist\n\t */\n\tvoid updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)\n\t\t\tthrows IllegalArgumentException;\n\n\t/**\n\t * Delete a previously defined template\n\t * \n\t * @param elementName\n\t * name of the template to delete\n\t * @throws IllegalArgumentException\n\t * if the template does not already exist\n\t */\n\tvoid deleteElementDefinition(String elementName) throws IllegalArgumentException;\n\n\t/**\n\t * Place a game element of previously defined type within the game.\n\t *\n\t * @param elementName\n\t * the template name for the element\n\t * @param startCoordinates\n\t * the coordinates at which the element should be placed\n\t * @return a unique identifier for the sprite abstraction representing the game\n\t * element\n\t */\n\tint placeElement(String elementName, Point2D startCoordinates);\n\n\t/**\n\t * Add element of given name\n\t * \n\t * @param elementName\n\t */\n\tvoid addElementToInventory(String elementName);\n\n\t/*\n\t * Place a game element of previously defined type within the game which follows\n\t * a path defined in the authoring environment as it moves.\n\t *\n\t * @param elementName the template name for the element\n\t * \n\t * @param pathList a list of points the object should target as it moves\n\t * \n\t * @return a unique identifier for the sprite abstraction representing the game\n\t * element\n\t */\n\tint placePathFollowingElement(String elementName, PathList pathList);\n\n\t/**\n\t * Retrieve the inventory for the current level\n\t * \n\t * @return set of element names that can be placed in the current level\n\t */\n\tSet<String> getInventory();\n\n\t/**\n\t * Get the ImageView corresponding to a particular spriteId\n\t * \n\t * @param spriteId\n\t * id of the sprite whose image is to be retrieved, previously\n\t * generated by controller\n\t * @return ImageView representing the GameElement\n\t */\n\tImageView getRepresentationFromSpriteId(int spriteId);\n\n\t/**\n\t * Get the high-level status of a game in-progress, notably points, lives, etc\n\t * \n\t *\n\t * @return a map of relevant details to display or modify about the game\n\t */\n\tMap<String, Double> getStatus();\n\n\t/**\n\t * Retrieve information on the cost of each element in terms of the various\n\t * resources\n\t * \n\t * @return map of element name to its cost in terms of each resource\n\t */\n\tMap<String, Map<String, Double>> getElementCosts();\n\n\t/**\n\t * Move a previously created game element to a new location.\n\t *\n\t * @param elementId\n\t * elementId the unique identifier for the element\n\t * @param xCoordinate\n\t * the new horizontal position of the element within the game\n\t * @param yCoordinate\n\t * the new vertical position of the element within the game\n\t */\n\tvoid moveElement(int elementId, double xCoordinate, double yCoordinate);\n\n\t/**\n\t * Update the properties of a particular game element, without changing the\n\t * definition of its type.\n\t *\n\t * @param elementId\n\t * the unique identifier for the element\n\t * @param propertiesToUpdate\n\t * a map containing the new properties of the element\n\t */\n\tvoid updateElementProperties(int elementId, Map<String, String> propertiesToUpdate);\n\n\t/**\n\t * Delete a previously created game element.\n\t *\n\t * @param elementId\n\t * the unique identifier for the element\n\t */\n\tvoid deleteElement(int elementId);\n\n\t/**\n\t * Fetch all available game names and their corresponding descriptions\n\t * \n\t * @return map where keys are game names and values are game descriptions\n\t */\n\tMap<String, String> getAvailableGames();\n\n\t/**\n\t * Get a map of properties for a particular game element, so as to allow for\n\t * their displaying in a modification area of the display.\n\t *\n\t * @param elementId\n\t * the unique identifier for the game element\n\t * @return a map of properties for the element with this identifier\n\t * @throws IllegalArgumentException\n\t * if the element ID does not refer to a created element\n\t */\n\tMap<String, String> getElementProperties(int elementId) throws IllegalArgumentException;\n\n\t/**\n\t * Get a map of properties for an element template / model, so as to allow for\n\t * their displaying in a modification area of the display\n\t * \n\t * @param elementName\n\t * the template name for the element\n\t * @return a map of properties for the template with this identifier\n\t * @throws IllegalArgumentException\n\t * if the element name does not refer to a defined template\n\t */\n\tMap<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;\n\n\t/**\n\t * Get map of all defined template names to their properties\n\t * \n\t * @return map of template names to properties of each template\n\t */\n\tMap<String, Map<String, String>> getAllDefinedTemplateProperties();\n\n\tMap<String, Double> getResourceEndowments();\n\n\t/**\n\t * Set the name of the game being authored.\n\t *\n\t * @param gameName\n\t * the name of the game\n\t */\n\tvoid setGameName(String gameName);\n\n\t/**\n\t * Set the description of a game being authored.\n\t *\n\t * @param gameDescription\n\t * the description authored for the game\n\t */\n\tvoid setGameDescription(String gameDescription);\n\n\t/**\n\t * Set the victory condition for the current level of the game being authored\n\t * \n\t * @param conditionIdentifier\n\t * the description of the victory condition, which can be mapped to a\n\t * boolean state function\n\t */\n\tvoid setVictoryCondition(String conditionIdentifier);\n\n\t/**\n\t * Set the defeat condition for the current level of the game being authored\n\t * \n\t * @param conditionIdentifier\n\t * the description of the defeat condition, which can be mapped to a\n\t * boolean state function\n\t */\n\tvoid setDefeatCondition(String conditionIdentifier);\n\n\t/**\n\t * Set a top-level game status property (e.g. lives, starting resources, etc)\n\t *\n\t * @param property\n\t * name of the property to set\n\t * @param value\n\t * string representation of the property's new value\n\t */\n\tvoid setStatusProperty(String property, Double value);\n\n\t/**\n\t * Set the resource endowments for the current level\n\t * \n\t * @param resourceEndowments\n\t * map of resource name to amount of that resource to begin that\n\t * level with\n\t */\n\tvoid setResourceEndowments(Map<String, Double> resourceEndowments);\n\n\t/**\n\t * Set the resource endowment of a specific resource name\n\t * @param resourceName\n\t * @param newResourceEndowment\n\t */\n\tvoid setResourceEndowment(String resourceName, double newResourceEndowment);\n\t\n\t/**\n\t * Set the cost of an element in terms of various resources\n\t * \n\t * @param elementName\n\t * the template name for the element\n\t * @param unitCosts\n\t * map of resource name to cost in terms of that resource for this\n\t * element\n\t */\n\tvoid setUnitCost(String elementName, Map<String, Double> unitCosts);\n\n\t/**\n\t * Set the behavior and parameters of the wave\n\t * \n\t * @param waveProperties\n\t * a map containing the properties of the wave to be created\n\t * @param elementNames\n\t * name of elements to spawn\n\t * @param spawningPoint\n\t * the point at which to spawn the wave\n\t */\n\tvoid setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,\n\t\t\tPoint2D spawningPoint);\n\n\t/**\n\t * Retrieve a collection of descriptions of the possible victory conditions\n\t * \n\t * @return a collection of strings describing the possible victory conditions\n\t * that can be assigned for a given level\n\t */\n\tCollection<String> getPossibleVictoryConditions();\n\n\t/**\n\t * Retrieve a collection of descriptions of the possible defeat conditions\n\t * \n\t * @return a collection of strings describing the possible defeat conditions\n\t * that can be assigned for a given level\n\t */\n\tCollection<String> getPossibleDefeatConditions();\n\n}",
"public ObstacleController(ObstacleModel model){\n this.model = model;\n }",
"private void createViewController() {\n if (outputFile.equals(\"out\")) {\n this.fileWriter = new OutputStreamWriter(System.out);\n } else {\n try {\n this.fileWriter = new FileWriter(outputFile);\n } catch (IOException e) {\n // ruh roh\n System.exit(-1);\n }\n }\n\n switch (this.viewType) {\n case PROVIDER:\n this.controller =\n new ProvControllerTextualImitate(\n new HybridView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n this.fileWriter);\n break;\n case PROVIDER_VISUAL:\n this.controller =\n new ProvControllerImitate(\n new VisualView(this.tps),\n new EzAnimatorOpsAdapter(this.model));\n break;\n case PROVIDER_TEXTUAL:\n this.controller =\n new ProvControllerTextualImitate(\n new TextualView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n fileWriter);\n break;\n case PROVIDER_SVG:\n this.controller =\n new ProvControllerTextualImitate(\n new SvgAnimationView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n fileWriter);\n break;\n default:\n throw new IllegalArgumentException(\"Invalid viewtype given\");\n }\n }",
"SpawnController createSpawnController();",
"public Controller (Game game) {\n fsm = new FiniteStateMachine();\n this.game = game;\n }",
"public RunMVC() {\n\n\t\t//cria o Modelo e a Visao\n\t\tModel myModel \t= new Model();\n\t\tView myView \t= new View();\n\t\t//View outraView \t= new View();\n\t\tOutraView outraView \t= new OutraView();\n\n\t\t//avisa o modelo que a visao existe \n\t\tmyModel.addPropertyChangeListener(myView);\n\t\tmyModel.addPropertyChangeListener(outraView);\n\n\t\tController myController = new Controller();\n\t\tmyController.addModel(myModel);\n\t\t//myController.addView(myView);\n\t\t//myController.addView(outraView);\n\t\tmyController.initModel(start_value);\n\n\t\t//tell View about Controller \n\t\tmyView.addController(myController);\n\t\toutraView.addController(myController);\n\t\t\n\n\t}",
"public Controller(Game game, View consoleView, View graphicalView){\n\t\tthis.game = game;\n\t\tthis.consoleView = consoleView;\n\t\tthis.graphicalView = graphicalView;\t\n\t\t\n\t\tstart();\n\t}",
"public Controller(Model model) {\n this.model = model; // Initializing the Model\n }",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"void playGame(MarbleSolitaireModel model);",
"@Test\n public void testControllerForOtherModelConstructor1() {\n this.readable = new StringReader(\"3 3 3 5 q\");\n this.gameController = new MarbleSolitaireControllerImpl(this.readable, this.appendable);\n\n this.gameController.playGame(this.model2);\n\n Appendable output = new StringBuilder(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O _ O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"O O _ _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 31\\n\"\n + \"Game quit!\\n\"\n + \"State of game when quit:\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"O O _ _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 31\");\n\n assertEquals(this.appendable.toString(), output.toString());\n }",
"public ControllerImpl(Readable in, EnhancedImageModel model) {\n super(model);\n this.in = in;\n }",
"public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}",
"private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}",
"public interface ControllerInterface {\n\t/**\n\t * Move the player to next cell based on the direction passed.\n\t * @param direction indicates which direction an agent move to. \n\t */\n\tpublic void move(String direction);\n\t/**\n\t * Reload the maze map based on user supplied difficulty level and theme.\n\t * @param difficultyLevel indicates which difficulty level user has selected.\n\t * @param theme indicates which theme user selected. Theme mainly refers to the appearance of elements of game, such as image of the player, \n\t * background of the cell. \n\t */\n\tpublic void reStartGame(String difficultyLevel, String theme);\n\t\n\tpublic void startTimer(int timeLimit);\n}",
"public Console(Client client, Controller controller){\r\n\t\tsuper(client,controller);\r\n\t\tsc = new Scanner(System.in);\r\n\t\tnew Thread(new ReadInput()).start();\r\n\t}",
"public MoveController(Model m, Window w) {\n this.model = m;\n this.window = w;\n }",
"public void createPlayerModel() {\n\t\tModelBuilder mb = new ModelBuilder();\n\t\tModelBuilder mb2 = new ModelBuilder();\n\t\tlong attr = Usage.Position | Usage.Normal;\n\t\tfloat r = 0.5f;\n\t\tfloat g = 1f;\n\t\tfloat b = 0.75f;\n\t\tMaterial material = new Material(ColorAttribute.createDiffuse(new Color(r, g, b, 1f)));\n\t\tMaterial faceMaterial = new Material(ColorAttribute.createDiffuse(Color.BLUE));\n\t\tfloat w = 1f;\n\t\tfloat d = w;\n\t\tfloat h = 2f;\n\t\tmb.begin();\n\t\t//playerModel = mb.createBox(w, h, d, material, attr);\n\t\tNode node = mb.node(\"box\", mb2.createBox(w, h, d, material, attr));\n\t\t// the face is just a box to show which direction the player is facing\n\t\tNode faceNode = mb.node(\"face\", mb2.createBox(w/2, h/2, d/2, faceMaterial, attr));\n\t\tfaceNode.translation.set(0f, 0f, d/2);\n\t\tplayerModel = mb.end();\n\t}",
"public SceneJFrameController(Scene model, SceneEditorVisual view) {\r\n this.model = model;\r\n this.view = view;\r\n }",
"public GameController(int width, int height) {\n\n this.width=width;\n this.height=height;\n model = new GameModel(width,height);\n view = new GameView(model,this);\n }",
"View(Controller c, Model m){\r\n\t\tmodel = m;\r\n\t\tcontroller = c;\r\n\t\tbackground = null;\r\n\t\tground = null;\r\n\t\twindowHeight = 0;\r\n\t}",
"public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}",
"@Override\n public void playMonument() throws ModelException {\n if (!GameModelFacade.instance().canPlayMonument()) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.playMonument(GameModelFacade.instance().getLocalPlayer().getIndex());\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }",
"private void createGameController() {\n\t\tLog.i(LOG_TAG, \"createGameController\");\n\n\t\tBundle intent = this.getIntent().getExtras();\n\t\t\n\t\tthis.punchMode = intent.getString(\"punchMode\");\n\t\t\n\t\tthis.gameController = new TimeTrialGameController( this.timerTextView,\n\t\t\t\tthis.numberOfPunchesCounterTextView, this.punchMode);\n\t\t\n\t\tthis.gameController.addObserver(this);\n\t}",
"@Override\r\n public boolean doAction(String[] inputs) {\n String playersName = inputs[0];\r\n //player = savePlayer(playersName)\r\n Player player = GameControl.savePlayer(playersName);\r\n //IF player == null\r\n if (player == null) {\r\n System.out.println(\"Could not create the player.\"\r\n + \"Enter a different name.\");\r\n //RETURN false // Repeats the StartProgramView\r\n return false;\r\n } else {\r\n System.out.println(\"****************************************\"\r\n + \" Hello\" + playersName + \",\"\r\n + \" Welcome to Delirium. Good luck!\"\r\n + \"****************************************\");\r\n }\r\n //mainMenuView = Create a new MainMenuView object\r\n MainMenuView mainMenuView = new MainMenuView();\r\n mainMenuView.display();\r\n return true;\r\n }",
"public static void main(String[] args) {\r\n int n = getUserInput(); \r\n ConwayView view = new ConwayView(n);\r\n ConwayModel model = new ConwayModel(n);\r\n ConwayController controller = new ConwayController(n , model, view);\r\n view.setVisible(true);\r\n controller.initializeGame();\r\n\t\tstartThreads(controller, n);\r\n }",
"Input createInput();",
"public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}",
"InteractionFlowModel createInteractionFlowModel();",
"public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }",
"public CompositeController(IMusicModel model, CompositeView view) {\n this.model = model;\n this.view = view;\n }",
"public interface RawController {\n\n // NEW MESSAGE\n //\n // Add a new message to the model with a specific id. If the id is already\n // in use, the call will fail and null will be returned.\n Message newMessage(Uuid id, Uuid author, Uuid conversation, String body, Time creationTime);\n\n // NEW USER\n //\n // Add a new user to the server with a given username and password. If the input is\n // invalid or the username is already taken, the call will fail and an error code\n // will be returned.\n int newUser(String username, String password, Time creationTime);\n\n // LOGIN\n //\n // Login with a given id, username, and password. If the id is already in use, the\n // call will fail and null will be returned. If the username and password are invalid,\n // the call will fail and null will be returned.\n User login(Uuid id, String username, String password, Time creationTime);\n\n // NEW CONVERSATION\n //\n // Add a new conversation to the model with a specific if. If the id is\n // already in use, the call will fail and null will be returned.\n Conversation newConversation(Uuid id, String title, Uuid owner, Time creationTime);\n\n}",
"TurnController createTurnController(PlayerTurn turn);",
"public GameController(){\n\t\t\n\t\tupdaterRunnable = new Updater();\n\t\tgameLoopThread = new Thread(updaterRunnable);\n\t\trunning = false;\n\t\tgameFinished = false;\n\t}",
"public GUIController() {\n\n }",
"public MyViewCLI(InputStreamReader in, OutputStreamWriter out, Controller controller) {\r\n\t\tcli = new CLI(in, out, controller);\r\n\t\tthis.controller = controller;\r\n\t}",
"public ConnectFourController(ConnectFourModelInterface model){\n this.model = model;\n view = new ConnectFourView(model, this);\n }",
"public static void main(String[] args) {\n Model model = new Model();\n View view = new View(model);\n Controller controller = new Controller(model, view);\n\n /*main program (each loop):\n -player token gets set\n -game status gets shown visually and user input gets requested\n -game grid gets updated\n -if the game is determined: messages gets shown and a system exit gets called*/\n while (model.turnCounter < 10) {\n model.setToken();\n view.IO();\n controller.update();\n if (controller.checker()){\n System.out.println(\"player \" + model.playerToken + \" won!\");\n System.exit(1);\n }\n System.out.println(\"draw\");\n }\n }",
"public SinglePlayerGameController() {\n player1 = new Player(\"Player 1\");\n computer = new Player(\"Computer\");\n game = new Game(new Dice(), player1, computer);\n player1.setColor(\"blue\");\n computer.setColor(\"red\");\n diceImage = new DiceImage();\n }",
"public Game(GameModel gameModel) {\n\t\tsuper();\n\t\tthis.gameModel = gameModel;\n\t\tview = new GamePane(gameModel);\n\t\t\n\t\tadd(view);\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t}",
"private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }",
"private ActionManager initModel(){ \n System.out.println(\"Welcome to Deadwood!\"); \n ArrayList<Player> players = new ArrayList<Player>();\n\n if(numOfPlayers == null){\n System.out.println(\"How many players?\");\n numOfPlayers = sc.nextInt();\n }\n if(numOfPlayers < 2 || numOfPlayers > 8){\n sc.close();\n throw new IllegalArgumentException(\"Invalid number of players.\");\n }\n sc.nextLine();\n for(int i = 1; i <= numOfPlayers; i++){\n System.out.println(\"What is your name?\");\n String playerName = sc.nextLine();\n if(!players.stream().anyMatch(p -> p.getName().equals(playerName))) { \n players.add(new Player(playerName));\n } else {\n System.out.println(\"Choose another name!\");\n i--;\n }\n }\n return new ActionManager(players);\n }",
"public Controller(final String[] args) {\r\n auto_run = false;\r\n mem_start = 0;\r\n mem_end = 0;\r\n if (args.length > 2) {\r\n auto_run = true;\r\n try {\r\n int m1 = Integer.decode(args[1]);\r\n int m2 = Integer.decode(args[2]);\r\n mem_start = Math.min(m1, m2);\r\n mem_end = Math.max(m1, m2);\r\n } catch (NumberFormatException exception) {\r\n System.err.printf(\"Cannot parse one of the addresses %s and %s as numbers%n\", args[1], args[2]);\r\n System.exit(1);\r\n }\r\n assert mem_start <= mem_end;\r\n if(args.length > 3) {\r\n if (args[3].equals(\"debug\")) {\r\n verbose = true;\r\n } else {\r\n System.err.println(\"Unknown argument '\" + args[3] + \"'. Ignoring it\");\r\n System.exit(1);\r\n }\r\n }\r\n }\r\n if (!auto_run) {\r\n ls = new LoadingScreen();\r\n ls.start();\r\n } else {\r\n ls = null;\r\n }\r\n\r\n // Ignore file ending since it should be the choice of the user\r\n // if ((args.length > 0)\r\n // && (args[0].endsWith(\".mima\") || args[0].endsWith(\".mem\"))) {\r\n if (args.length > 0) {\r\n final File input = new File(args[0]);\r\n if (input.exists()) {\r\n loadMem(input);\r\n } else {\r\n System.err.println(\"File doesn't exist!\");\r\n }\r\n }\r\n\r\n if (!auto_run) {\r\n gui = new GUI(this);\r\n } else {\r\n gui = null;\r\n }\r\n initMima();\r\n if (!auto_run) {\r\n ls.stop();\r\n gui.setVisible(true);\r\n clock = new Clock(500, sw);\r\n clock.pause(true);\r\n } else {\r\n clock = new Clock(0, sw);\r\n clock.pause(false);\r\n }\r\n\r\n Thread compute_thread = new Thread(clock);\r\n compute_thread.start();\r\n if (auto_run) {\r\n try {\r\n compute_thread.join();\r\n } catch (InterruptedException e) {\r\n throw new RuntimeException(e);\r\n }\r\n printMemory();\r\n }\r\n return;\r\n }",
"public CompositeController(IMusicModel model) {\n this.model = model;\n this.view = new CompositeView();\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n }",
"public static void main(String[] args) {\n boolean hasI = false;\n boolean hasV = false;\n String in = \"\";\n String view = \"\";\n int speed = 1;\n\n if (Arrays.asList(args).contains(\"-view\")) {\n int ind = Arrays.asList(args).indexOf(\"-view\") + 1;\n view = Arrays.asList(args).get(ind++);\n hasV = true;\n }\n\n if (Arrays.asList(args).contains(\"-in\")) {\n int ind = Arrays.asList(args).indexOf(\"-in\") + 1;\n in = Arrays.asList(args).get(ind++);\n hasI = true;\n }\n if (!(hasV && hasI)) {\n throw new IllegalArgumentException(\"Must input an in and a view type\");\n }\n\n // Instantiate the correct view & set FileReader object\n ViewFactory factory = new ViewFactory();\n IView v = factory.getView(view);\n\n AnimationBuilder<AnimationModelImpl> builder = AnimationModelImpl.builder();\n Readable rn = null;\n try {\n rn = new FileReader(in);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Parse animation input file\n AnimationReader.parseFile(rn, builder);\n AnimationModel model = builder.build();\n if (Arrays.asList(args).contains(\"-out\")) {\n int ind = Arrays.asList(args).indexOf(\"-out\") + 1;\n String out = Arrays.asList(args).get(ind++);\n Appendable ap = null;\n try {\n ap = new FileWriter(out);\n } catch (IOException e) {\n e.printStackTrace();\n }\n v.setOutput(ap);\n }\n\n if (Arrays.asList(args).contains(\"-speed\")) {\n int speedIndex = Arrays.asList(args).indexOf(\"-speed\") + 1;\n speed = Integer.parseInt(Arrays.asList(args).get(speedIndex));\n }\n v.setSpeed(speed);\n IController controller = new Controller(model, v);\n if (v instanceof VisualAnimationView || v instanceof EditorView) {\n controller.playAnimation();\n }\n if (v.getOut() instanceof FileWriter) {\n try {\n ((FileWriter) v.getOut()).close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}",
"public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }",
"public interface GameControllerFactory {\n\n /**\n * Creates a new game controller that will be hosted by the given lobby controller.\n */\n GameController makeGameController(LobbyController lobbyController);\n\n}",
"public GameController(VirtualView client, int num, String gameName) {\n running = new AtomicBoolean(true);\n setup = new AtomicBoolean(true);\n playerControllers = new ArrayList<PlayerController>();\n colors = new ArrayList<String>();\n colors.add(\"r\");\n colors.add(\"g\");\n colors.add(\"b\");\n Player p1 = new Player(client.getId(), colors.get(0));\n PlayerController p1Controller = new PlayerController(p1, client, this);\n game = new Game(gameName, p1, num);\n playerControllers.add(p1Controller);\n client.setPlayerController(p1Controller);\n }",
"public InputManager(){\n this.view = new View();\n }",
"public static void main(String[] args) {\n //new ConsoleTicTacToeController(new InputStreamReader(System.in),\n //System.out, new TicTacToeModel()).playGame();\n TicTacToe m = new TicTacToeModel();\n TicTacToeView v = new SwingTicTacToeView(\"Tic-Tac-Toe\", m);\n TicTacToeController c = new SwingTicTacToeController(v, m);\n c.playGame();\n }",
"@Override\r\n\r\n public <K> void playGame(PyramidSolitaireModel<K> model, List<K> deck, boolean shuffle,\r\n int numRows, int numDraw) throws IllegalArgumentException {\r\n try {\r\n if (model == null || deck == null) {\r\n throw new IllegalArgumentException(\"Model is null\");\r\n } else {\r\n model.startGame(deck, shuffle, numRows, numDraw);\r\n }\r\n\r\n //creates a new view so the controller can call on it\r\n this.view = new PyramidSolitaireTextualView(model, ap);\r\n\r\n //creates a new model so the controller can call on it, don't need it because model is a\r\n // param\r\n // this.model = new BasicPyramidSolitaire();\r\n //transmit game state to appendable + transmit score\r\n\r\n try {\r\n view.render();\r\n if (model.isGameOver()) {\r\n return;\r\n }\r\n this.ap.append(\"\\nScore: \").append(String.valueOf(model.getScore())).append(\"\\n\");\r\n\r\n } catch (IOException e) {\r\n throw new IllegalStateException(\"Could not render Input\");\r\n }\r\n\r\n try {\r\n\r\n //TWO CONDITIONS FOR THE Loop to continue: if the game is NOT over and if the user\r\n // has more to input\r\n while (!model.isGameOver() && scan.hasNext()) {\r\n\r\n //there are more moves + game is still in progress\r\n String nextInput = scan.next();\r\n\r\n switch (nextInput) { //always assign scan.next to a variable\r\n //case:\r\n case \"rm1\":\r\n remove1Helper(model);\r\n break;\r\n case \"rm2\":\r\n remove4Helper(model);\r\n break;\r\n case \"rmwd\":\r\n remove3DrawHelper(model);\r\n break;\r\n case \"dd\":\r\n discardDrawHelper(model);\r\n break;\r\n //case if the game is quit\r\n case \"Q\":\r\n case \"q\":\r\n quitGameString(model);\r\n return;\r\n //unrecognized input\r\n default:\r\n ap.append(\"unrecognized input:\").append(nextInput);\r\n ap.append(\"\\n\");\r\n\r\n }\r\n if (quitGameBool) {\r\n quitGameString(model);\r\n return;\r\n }\r\n\r\n view.render();\r\n this.ap.append(\"\\n\");\r\n }\r\n\r\n } catch (IOException e) {\r\n //\r\n }\r\n\r\n } catch (IllegalStateException e) {\r\n throw new IllegalStateException(\"Illegal argument here please try again !\");\r\n }\r\n\r\n }",
"public GameTask(GameController controller) {\n this.controller = controller;\n }",
"private GameController() {\n\n }",
"@Override\n public void buildView(IModelForm modelForm) {\n FormSection inputSection = modelForm.addSection(\"Input\");\n inputSection.addEntityListField(_inputGrids, new Grid3dTimeDepthSpecification());\n inputSection.addEntityComboField(_velocityVolume, new VelocityVolumeSpecification());\n inputSection.addEntityComboField(_aoi, AreaOfInterest.class).showActiveFieldToggle(_aoiFlag);\n\n // Build the conversion section.\n FormSection parameterSection = modelForm.addSection(\"Conversion\");\n parameterSection.addRadioGroupField(_conversionMethod, Method.values());\n\n // Build the output section.\n FormSection outputSection = modelForm.addSection(\"Output\");\n outputSection.addTextField(_outputGridSuffix);\n }",
"public PlayerController(World world, ElementModel model) {\n super(world, model, BodyDef.BodyType.DynamicBody);\n\n state = new FloatState();\n\n this.width = imageWidth;\n this.height = imageHeight;\n\n //head\n FixtureInfo info = new FixtureInfo(new float[]{\n 62, 186,\n 32, 122,\n 57, 67,\n 98, 48,\n 160, 53,\n 207, 123,\n 193, 195,\n 62, 186\n }, width, height);\n\n info.physicsComponents(density, friction, restitution);\n\n info.collisionComponents(PLAYER_BODY, (short) (PLANET_BODY | PLAYER_BODY | COMET_BODY));\n\n createFixture(body, info);\n\n //corns\n info.vertexes = new float[]{\n 114, 49,\n 118, 33,\n 109, 19,\n 142, 13,\n 142, 26,\n 129, 33,\n 114, 49};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 191, 83,\n 207, 66,\n 215, 52,\n 219, 26,\n 241, 34,\n 232, 52,\n 219, 76,\n 191, 83};\n\n createFixture(body, info);\n\n //arms\n info.vertexes = new float[]{\n 61, 196,\n 23, 198,\n 3, 217,\n 21, 268,\n 61, 196};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 150, 229,\n 175, 285,\n 166, 316,\n 156, 330,\n 150, 229};\n\n createFixture(body, info);\n\n\n //legs\n info.vertexes = new float[]{\n 31, 332,\n 37, 370,\n 36, 401,\n 31, 416,\n 90, 418,\n 85, 403,\n 81, 374,\n 31, 332};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 107, 359,\n 102, 395,\n 106, 418,\n 161, 417,\n 144, 397,\n 107, 359,\n 152, 327};\n\n createFixture(body, info);\n\n\n //Belly\n info.vertexes = new float[]{\n 75, 219,\n 17, 283,\n 41, 346,\n 90, 364,\n 143, 330,\n 151, 280,\n 138, 227,\n 75, 219};\n\n createFixture(body, info);\n\n this.body.setGravityScale(0);\n this.body.setAngularDamping(0.7f);\n\n this.lost = false;\n }",
"public interface Model {\n\n void doUserCommand(int command);\n void initGame(int numOfPlayers);\n int getUserCommand();\n void setObject(Object e);\n}",
"public MainMenuController()\n {\n ArrayList<JButton> menuList = new ArrayList();\n \n //Setup default colors\n player1Color = Color.RED;\n player2Color = Color.BLUE;\n \n //Setup the start button\n startButton = new JButton(\"Start\");\n startButton.setBackground(Color.GREEN);\n menuList.add(startButton);\n \n startButton.addActionListener((ActionEvent ae) -> {\n uControll = new UltimateController();\n uControll.start(player1Color, player2Color);\n this.setupGameWindow();\n menuPanel.close();\n });\n \n //Setup multiplayer button\n JButton multiButton = new JButton(\"Network Play\");\n multiButton.setBackground(new Color(0,255,200));\n menuList.add(multiButton);\n multiButton.addActionListener((ActionEvent ae) -> {\n View.Multiplayer mp = new View.Multiplayer();\n mp.setParentWindow(menuPanel);\n mp.launchWindow();\n menuPanel.close();\n });\n \n //Setup the settings button\n JButton settingButton = new JButton(\"Settings\");\n settingButton.setBackground(Color.orange);\n menuList.add(settingButton);\n settingButton.addActionListener((ActionEvent ae) -> {\n setGUI = new View.SettingGUI(player1Color, player2Color);\n setupSettingWindow();\n });\n \n //Setup the how to play button\n howToButton = new JButton(\"How to Play\");\n howToButton.setBackground(Color.LIGHT_GRAY);\n menuList.add(howToButton);\n howToButton.addActionListener((ActionEvent ae) -> {\n //Create a frame\n JFrame newWindow = new JFrame(\"How to Play\"); \n View.HowToPlayPanel hPlay = new View.HowToPlayPanel();\n newWindow.add(hPlay);\n newWindow.setSize(1200,550);\n \n //Make the return button work\n hPlay.getReturnBtn().addActionListener((ActionEvent ae2) -> {\n newWindow.dispose();\n });\n \n newWindow.setVisible(true);\n newWindow.requestFocus();\n });\n \n //Setup the Quit button\n quitButton = new JButton(\"Quit\");\n quitButton.setBackground(Color.RED);\n menuList.add(quitButton);\n \n quitButton.addActionListener((ActionEvent ae) -> {\n System.out.println(\"Quit the program\");\n System.exit(0);\n });\n \n startButton.setBounds(570, 300, 120, 45);\n howToButton.setBounds(570, 375, 120, 45);\n quitButton.setBounds(570, 450, 120, 45);\n \n menuPanel = new MenuPanel(menuList);\n }",
"public GameView(GameModel model, DiceModel diceModel) {\n this.model = model;\n this.controller = new GameController(model, diceModel);\n this.diceModel = diceModel;\n\n initComponents();\n\n model.addObserver(this);\n\n createComponents();\n updateScores();\n\n pack();\n }",
"public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}",
"public interface Controller {\n Action action();\n\n void noAction();\n\n void revive();\n\n void setEnemyShip(EnemyShip e);\n\n boolean theAnyButton();\n\n boolean isClicked();\n\n Point clickLocation();\n\n boolean shot();\n\n boolean p();\n\n}",
"public Controller(ControlPanel p /*InformationInterface i*/)\n{\n\tsuper();\n\tmain = new PokerMain(this);\n\tcontrolP = p;\n\t//infoInterface = i;\n\n}",
"public abstract void initController();",
"public WindowHandle( ModelControllable model, ViewControllable view ) {\r\n\r\n this.model = model;\r\n this.view = view;\r\n }",
"protected abstract C newComponent(String id, IModel<M> model);",
"View(Stage stage, Model model,Player player) {\n this.model = model;\n this.stage = stage;\n battleRoot = new BattleRoot(SCREEN_SIZE_X, SCREEN_SIZE_Y,player);\n playingScene = new Scene(battleRoot);\n this.stage.setScene(this.playingScene);\n// battleRoot.getChildren().addAll(textFieldRoot, enemysPlayFieldRoot, playFieldRoot, handCommand);\n }",
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"public void update(InputController input) {\n\t\t\r\n\t}",
"public ConnectShapeController(Model model, Application app) {\r\n\t\tthis.model = model;\r\n\t\tthis.app = app;\r\n\t\tthis.panel = app.getWordPanel();\r\n\t}",
"void playGame(MarbleSolitaireModel model) throws IllegalArgumentException, IllegalStateException;",
"Result<Actor<InputOutput>> self();",
"public KeyboardController(Tanks game) \n {\n \ttanksGame = game;\n }",
"public GameController() {\n GameLoop.getInstance();\n }",
"PlayerInRoomModel createPlayerInRoomModel(PlayerInRoomModel playerInRoomModel);",
"public interface MainModelInterface {\n public void openCam();\n public void closeCam();\n public void startPreview();\n public void choseMatrixType();\n\n}",
"private void setUpController(){\n\n SessionController.getInstance().addCommand(new PartyCreateCommand(\"PARTY_CREATE\"));\n SessionController.getInstance().addCommand(new PartyDetailsRetrieveCommand(\"PARTY_DETAILS_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PartyInvitesRetrieveCommand(\"PARTY_INVITES_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PartyLeaveCommand(\"PARTY_LEAVE\"));\n SessionController.getInstance().addCommand(new PartyMemberRemoveCommand(\"PARTY_MEMBER_REMOVE\"));\n SessionController.getInstance().addCommand(new PlayerCreateCommand(\"PLAYER_CREATE\"));\n SessionController.getInstance().addCommand(new PlayerInvitesRetrieveCommand(\"PLAYER_INVITES_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PlayerLogOutCommand(\"PLAYER_LOG_OUT\"));\n }",
"public static void main(String[] args) throws IOException, InvalidMidiDataException {\r\n String file = \"\";\r\n String viewMode = \"\";\r\n file += args[0];\r\n viewMode = args[1];\r\n CompositionBuilder<MusicMakerModel> comp = new MusicMakerModel.MusicBuilder();\r\n IMusicMakerModel model = null;\r\n model = MusicReader.parseFile(new FileReader(file), comp);\r\n IGUIView view = GUIViewFactory.create(viewMode);\r\n Controller cont = new Controller(view, model);\r\n cont.start();\r\n }",
"public InputController(Game game) {\r\n game.addKeyListener(this);\r\n this.game = game;\r\n }",
"public interface Controller {\n\n /**\n * constant timestep value, 20ms refresh rate\n */\n public static final double dt = 0.02;\n\n /**\n * resets the desired setpoint of the controller\n * @param setpoint setpoint\n */\n public void setSetpoint(double setpoint);\n\n /**\n * calculates the output power of the controller based on the current position\n */\n public void calculate();\n\n /**\n * checks whether the current value is within the required threshold to stop the controller\n * @return whether the controller has finished its feedback loop\n */\n public boolean isDone();\n}",
"public static void main(String[] args) throws IOException {\n AnimationModel model;\n IView view = null;\n Readable file;\n Appendable output;\n\n\n HashMap<String, String> cla = argsToHM(args);\n\n if (checkValidArgs(cla)) {\n showError(\"Invalid command line args\");\n return;\n }\n\n try {\n file = new FileReader(setFile(cla));\n } catch (FileNotFoundException e) {\n showError(\"File not found\");\n return;\n }\n\n\n model = AnimationReader.parseFile(file,\n new AnimationModelImpl.Builder(\n new AnimationModelImpl()));\n\n\n switch (cla.get(\"-view\")) {\n case \"text\":\n output = System.out;\n view = new TextRepresentation(\n model.getShapes(),\n model.getMaxX(),\n model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n view.createAnimOutput();\n output.append(view.getOutput().toString());\n return;\n\n case \"svg\":\n try {\n File f = new File(cla.get(\"-out\"));\n FileWriter fw = new FileWriter(f);\n BufferedWriter bw = new BufferedWriter(fw);\n view = new SVGRepresentation(model.getShapes(),\n model.getWidth(),\n model.getHeight(),\n Integer.valueOf(cla.get(\"-speed\")));\n view.createAnimOutput();\n System.out.println(view.getOutput().toString());\n bw.append(view.getOutput().toString());\n bw.close();\n return;\n }\n catch (IOException e) {\n showError(\"File unable to be written\");\n }\n break;\n\n case \"visual\":\n IView visPanel = new AnimationPanelView(model.getShapes(),\n Integer.valueOf(cla.get(\"-speed\")));\n\n view = new AnimationGraphicsView(visPanel, model.getMaxX(), model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n break;\n\n case \"edit\":\n AnimationPanelView editPanel = new EditorView(model.getShapes(),\n Integer.valueOf(cla.get(\"-speed\")), true);\n view = new AnimationGraphicsView(editPanel, model.getMaxX(), model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n break;\n default:\n showError(\"unrecognized/incorrect animation type specified\");\n break;\n }\n\n ExcellenceController controller = new ExcellenceController(model, view);\n controller.makeVisible();\n }",
"public Controller(int n) {\r\n\t\t// Enhanced Mode\r\n\t\tif (n > 0) {\r\n\t\t\tenhanced = true;\r\n\r\n\t\t\t// keeps track of the number of times that the user has been given a new life\r\n\t\t\t// for reaching\r\n\t\t\t// a scoring threshold\r\n\t\t\tnumLiveUpdated = 0;\r\n\r\n\t\t\t// Initializes/opens the sound files for enhanced mode\r\n\r\n\t\t}\r\n\r\n\t\tinitializeSounds();\r\n\r\n\t\t// Initialize member variables for the new Controller object\r\n\t\thighScore = 0;\r\n\t\tflame = false;\r\n\t\tturnLeft = 0;\r\n\t\tturnRight = 0;\r\n\t\taccelerate = 0;\r\n\t\tshoot = 0;\r\n\t\tspeed = 3;\r\n\r\n\t\t// Record the game and screen objects\r\n\t\tdisplay = new Display(this);\r\n\t\tdisplay.setVisible(true);\r\n\r\n\t\t// Initialize the ParticipantState\r\n\t\tpstate = new ParticipantState();\r\n\r\n\t\t// Set up the refresh timer.\r\n\t\trefreshTimer = new Timer(FRAME_INTERVAL, this);\r\n\r\n\t\t// Clear the transitionTime\r\n\t\ttransitionTime = Long.MAX_VALUE;\r\n\r\n\t\t// Bring up the splash screen and start the refresh timer\r\n\t\tsplashScreen();\r\n\t\trefreshTimer.start();\r\n\t}",
"public GameController(int width, int height) {\n\n // YOUR CODE HERE\n }",
"public Controller() {\n\t\t//Set the file to null as default\n\t\tprojectFile = null;\n\t\t\n\t\t//Set the action log\n\t\tactionLog = new ActionLog(this);\n\t\t\n\t\t//Set the selected instrument ID\n\t\tselectedInstrumentID = 0;\n\t\t\n\t\t//Set the gson reader/writer\n\t\tgson = new GsonBuilder()\n\t\t\t\t.setPrettyPrinting()\n\t\t\t\t.create();\n\t\t\n\t\t//Set the File Chooser\n\t\tfileChooser = new FileChooser();\n\t\t\n\t\tfileChooser.setTitle(\"Save Project\");\n\t\t\n\t\tfileChooser.getExtensionFilters().add(new ExtensionFilter(\"JSON\", \"*.json\"));\n\t\t\t\t\n\t\t//Set note frequencies\n\t\tnoteFrequencies = new double[]{-1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0};\n\t\t\n\t\t//Set selected notes\n\t\tselectedNotes = new Button[] {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null};\n\t}",
"public OutputProgressController() {\r\n outputProgressModel = new OutputProgressModel();\r\n SessionRenderer.addCurrentSession(\"progressExample\");\r\n }"
] | [
"0.63968104",
"0.6218928",
"0.6206909",
"0.61801076",
"0.60970384",
"0.6082362",
"0.6001211",
"0.5929583",
"0.59229034",
"0.58777755",
"0.58026445",
"0.5793409",
"0.5768044",
"0.57599384",
"0.5744348",
"0.571009",
"0.56985605",
"0.5682926",
"0.5680811",
"0.56641597",
"0.56512606",
"0.5634465",
"0.56330246",
"0.5569286",
"0.55638367",
"0.55545473",
"0.5534372",
"0.5461221",
"0.5460071",
"0.5418694",
"0.53912437",
"0.53868175",
"0.53629196",
"0.5360162",
"0.53595287",
"0.53584445",
"0.53566927",
"0.5350375",
"0.5337402",
"0.53340703",
"0.53219885",
"0.5320625",
"0.53160167",
"0.53144985",
"0.53093714",
"0.5306104",
"0.5293331",
"0.529272",
"0.5284697",
"0.52839744",
"0.5277033",
"0.5273669",
"0.5264561",
"0.5264086",
"0.52611053",
"0.5259882",
"0.5250566",
"0.524575",
"0.5236211",
"0.52207494",
"0.52153355",
"0.52100766",
"0.5200447",
"0.5198993",
"0.51909035",
"0.51863223",
"0.51801574",
"0.51688606",
"0.5166032",
"0.51517135",
"0.51507425",
"0.5140419",
"0.5139485",
"0.5135469",
"0.5124254",
"0.5122525",
"0.5121874",
"0.51209646",
"0.51196533",
"0.5113102",
"0.5111923",
"0.50984615",
"0.5093715",
"0.50875396",
"0.50861",
"0.50753605",
"0.50741357",
"0.5069979",
"0.5069159",
"0.5061801",
"0.5061517",
"0.504537",
"0.5041061",
"0.50396866",
"0.5033907",
"0.50311375",
"0.50261784",
"0.50242865",
"0.5022639",
"0.50080603"
] | 0.52957135 | 46 |
Factory method for the creation of NonGuiControllers. | static Controller makeController(MusicEditorModel model, ViewModel vm, NonGuiViewAdapter view) {
return new NonGuiController(model, vm, view);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}",
"@Override\n\tprotected AbstractManageController createController() {\n\t\tif (m_ctrl == null)\n\t\t\tm_ctrl = new BankKeepController();\n\t\treturn m_ctrl;\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate InboxControllerFactory() {\n\t\tsuper();\n\t}",
"public GUIController() {\n\n }",
"@Override\r\n\tprotected ICardController createController() {\n\t\treturn new ClientCtrl();\r\n\t}",
"public ControllerProtagonista() {\n\t}",
"public abstract void initController();",
"private CreationViewController getCreationBrowserController(){\n\n FXMLLoader loader = new FXMLLoader(\n getClass().getResource(\"/CreationView.fxml\")\n );\n stage = new Stage(StageStyle.DECORATED);\n try {\n stage.setScene(new Scene(loader.load(), 800, 600));\n } catch (IOException e) {\n return null;\n }\n\n CreationViewController controller = loader.getController();\n builder.ConfigureUIController(controller, stage);\n return controller;\n }",
"public interface GameControllerFactory {\n\n /**\n * Creates a new game controller that will be hosted by the given lobby controller.\n */\n GameController makeGameController(LobbyController lobbyController);\n\n}",
"private FrameUIController(){\r\n\t\t\r\n\t}",
"SpawnController createSpawnController();",
"private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }",
"public TipoInformazioniController() {\n\n\t}",
"private void createViewController() {\n if (outputFile.equals(\"out\")) {\n this.fileWriter = new OutputStreamWriter(System.out);\n } else {\n try {\n this.fileWriter = new FileWriter(outputFile);\n } catch (IOException e) {\n // ruh roh\n System.exit(-1);\n }\n }\n\n switch (this.viewType) {\n case PROVIDER:\n this.controller =\n new ProvControllerTextualImitate(\n new HybridView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n this.fileWriter);\n break;\n case PROVIDER_VISUAL:\n this.controller =\n new ProvControllerImitate(\n new VisualView(this.tps),\n new EzAnimatorOpsAdapter(this.model));\n break;\n case PROVIDER_TEXTUAL:\n this.controller =\n new ProvControllerTextualImitate(\n new TextualView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n fileWriter);\n break;\n case PROVIDER_SVG:\n this.controller =\n new ProvControllerTextualImitate(\n new SvgAnimationView(this.tps),\n new EzAnimatorOpsAdapter(this.model),\n fileWriter);\n break;\n default:\n throw new IllegalArgumentException(\"Invalid viewtype given\");\n }\n }",
"public ControllerEnfermaria() {\n }",
"public PlaneUIController() {\n this.launcherFacade = new LauncherFacade();\n }",
"private ClientController() {\n }",
"public SMPFXController() {\n\n }",
"public Controller()\n\t{\n\n\t}",
"public MainFrameController() {\n }",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"private ClientController(){\n\n }",
"public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}",
"public detalleInventarioController() {\n }",
"public SocketRpcController newRpcController() {\r\n return new SocketRpcController();\r\n }",
"public IfController()\n\t{\n\n\t}",
"IAnjaroController getController();",
"private void setUpController(){\n\n SessionController.getInstance().addCommand(new PartyCreateCommand(\"PARTY_CREATE\"));\n SessionController.getInstance().addCommand(new PartyDetailsRetrieveCommand(\"PARTY_DETAILS_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PartyInvitesRetrieveCommand(\"PARTY_INVITES_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PartyLeaveCommand(\"PARTY_LEAVE\"));\n SessionController.getInstance().addCommand(new PartyMemberRemoveCommand(\"PARTY_MEMBER_REMOVE\"));\n SessionController.getInstance().addCommand(new PlayerCreateCommand(\"PLAYER_CREATE\"));\n SessionController.getInstance().addCommand(new PlayerInvitesRetrieveCommand(\"PLAYER_INVITES_RETRIEVE\"));\n SessionController.getInstance().addCommand(new PlayerLogOutCommand(\"PLAYER_LOG_OUT\"));\n }",
"public CtrlPresentation() throws IOException, ClassNotFoundException {\r\n ctrlDomain = new CtrlDomain();\r\n viewsFX = new ArrayList<>();\r\n initializePresentation();\r\n }",
"private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }",
"public GenericController() {\n }",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public interface PlayerFactory {\r\n Player create(GUI gui);\r\n}",
"public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }",
"public Controller() {\n\t\tthis(null);\n\t}",
"public AbstractTtcsCommandController() {\n\t}",
"public ControlFactoryImpl() {\n\t\tsuper();\n\t}",
"public ProduktController() {\r\n }",
"PolicyController createPolicyController(String name, Properties properties);",
"public Controller getController();",
"public PlantillaController() {\n }",
"public ClientController() {\n }",
"public TemplateController()\r\n {\r\n this(false);\r\n }",
"public IController getController();",
"public interface IMainframeFactory {\n\n\t/**\n\t * \n\t * @return new instance of IMainframe\n\t */\n\tIMainframe createInstance();\n}",
"public MenuController() {\r\n\t \r\n\t }",
"public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}",
"public WfController()\n {\n }",
"public GeneralListVueController() {\n\n\t}",
"public interface GuiFactory {\n\n Button createButton();\n CheckBox createCheckbox();\n\n\n}",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"private void createGameController() {\n\t\tLog.i(LOG_TAG, \"createGameController\");\n\n\t\tBundle intent = this.getIntent().getExtras();\n\t\t\n\t\tthis.punchMode = intent.getString(\"punchMode\");\n\t\t\n\t\tthis.gameController = new TimeTrialGameController( this.timerTextView,\n\t\t\t\tthis.numberOfPunchesCounterTextView, this.punchMode);\n\t\t\n\t\tthis.gameController.addObserver(this);\n\t}",
"public Controller(ControlPanel p /*InformationInterface i*/)\n{\n\tsuper();\n\tmain = new PokerMain(this);\n\tcontrolP = p;\n\t//infoInterface = i;\n\n}",
"public EzdmxctrlFactoryImpl() {\n\t\tsuper();\n\t}",
"public TaxiInformationController() {\n }",
"public ControladorPanel() { }",
"NoAction createNoAction();",
"private ControllerInfoImpl() {\r\n\t\tthis.identifyControllerType();\r\n\t}",
"public interface ControllerService {\n\n /**\n * Returns the details about this NiFi necessary to communicate via site to site\n * @return\n */\n String getController(String clientId);\n\n /**\n * Retrieves details about this NiFi to put in the About dialog\n * @return\n */\n String getControllerAbout(String clientId);\n\n /**\n * Creates a new archive of this NiFi flow configuration\n * @return\n */\n String postControllerArchieve(String version, String clientId);\n\n /**\n * Retrieves the user details, including the authorities, about the user making the request\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n * @return\n */\n String getControllerAuthorties(String clientId);\n\n /**\n * Retrieves the banners for this NiFi\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n * @return\n */\n String getControllerBanners(String clientId);\n\n /**\n * Gets current bulletins\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n * @param after\n * Includes bulletins with an id after this value.\n * @param sourceName\n * Includes bulletins originating from this sources whose name match this regular expression.\n * @param message\n * Includes bulletins whose message that match this regular expression.\n * @param sourceId\n * Includes bulletins originating from this sources whose id match this regular expression.\n * @param groupId\n * Includes bulletins originating from this sources whose group id match this regular expression.\n * @param limit\n * The number of bulletins to limit the response to.\n *\n * @return\n */\n String getControllerBulletinBoard(String clientId, String after, String sourceName, String message, String sourceId, String groupId, String limit);\n\n /**\n * Retrieves the configuration for this NiFi\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @return\n */\n String getControllerConfiguration(String clientId);\n\n String putControllerConfiguration(String clientId);\n\n /**\n * Gets the current status of this NiFi\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @return\n */\n ControllerStatusEntity getControllerStatus(String clientId);\n\n /**\n * Creates a template\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n * @param name\n * The template name.\n * @param description\n * The template description.\n * @param snippetId\n * The id of the snippet whose contents will comprise the template.\n *\n * @return\n */\n String postControllerTemplate(String clientId, String name, String description, String snippetId);\n\n /**\n * Gets all templates\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @return\n */\n String getControllerAllTemplates(String clientId);\n\n /**\n * Exports a template\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @param templateId\n * The template id.\n *\n * @return\n */\n String getControllerTemplate(String clientId, String templateId);\n\n /**\n * Deletes a template\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @param templateId\n * The template id.\n *\n * @return\n */\n String deleteControllertemplate(String clientId, String templateId);\n\n /**\n * Gets the diagnostics for the system NiFi is running on\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @return\n */\n String getControllerSystemDiagnostics(String clientId);\n}",
"boolean InitController();",
"public CreateDocumentController() {\n }",
"public EstadoProyectoController() {\n \n }",
"MoveActionController createMoveActionController();",
"public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}",
"public HotelworkerInfouiController() {\n\t\tuserbl = new UserController();\n\t}",
"public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }",
"public static Controller getInstance() { return INSTANCE; }",
"Cancion createCancion();",
"public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}",
"MatchController createMatchController();",
"@Override\n public MultiblockControllerBase getNewMultiblockControllerObject()\n {\n return null;\n }",
"private GuestController() {}",
"public ContainerController(ContainerProxy cp, AgentContainer impl, String platformName) {\n\t\tmyProxy = cp;\n\t\tmyImpl = impl;\n\t\tmyPlatformName = platformName;\n\t}",
"public GUI(Controller controller){\n this.controller=controller;\n szer = controller.setWidth();\n wys = controller.setHeight();\n\n\n try\n {\n SwingUtilities.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n createAndShowGUI();\n }\n });\n }\n catch(Exception e)\n {\n System.out.println(\"Blad podczas budowania GUI\");\n }\n }",
"public interface IController {\n}",
"public NewClientController() {\n this.clientParser = NewClientView.getClientParser();\n }",
"public UndoController() {\r\n \t}",
"private ControllerHelper() {\n commands.put(\"userlogin\", new UserLoginCommand());\n commands.put(\"register\", new RegisterCommand());\n commands.put(\"gotocategory\", new GoCategoryCommand());\n commands.put(\"gotomainpage\", new GoToMainPageCommand());\n commands.put(\"showitem\", new ShowItemCommand());\n commands.put(\"addtocart\", new AddToCartCommand());\n commands.put(\"removeitemfromcart\", new RemoveItemFromCartCommand());\n\n commands.put(\"makeorder\", new MakeOrderCommand());\n commands.put(\"removeitemfromorder\", new RemoveItemFromOrderCommand());\n commands.put(\"cancelorder\", new CancelOrderCommand());\n commands.put(\"payorder\", new PayOrderCommand());\n commands.put(\"editorder\", new EditOrderCommand());\n commands.put(\"confirmpayment\", new ConfirmPaymentCommand());\n commands.put(\"removeallnotpaidorders\", new RemoveAllNotPaidOrders());\n\n commands.put(\"gotousermanagementpage\", new GoToUserManagementPageCommand());\n commands.put(\"gotoitemmanagementpage\", new GoToItemManagementPage());\n\n commands.put(\"edititem\", new EditItemCommand());\n commands.put(\"updateitem\", new UpdateItemCommand());\n commands.put(\"additem\", new AddNewItemCommand());\n commands.put(\"deleteitem\", new DeleteItemCommand());\n\n commands.put(\"addusertoblocklist\", new AddUserToBlockList());\n commands.put(\"removeuserfromblocklist\", new RemoveUserFromBlockList());\n commands.put(\"userregistration\", new UserRegistrationCommand());\n commands.put(\"userlogout\", new UserLogOutCommand());\n commands.put(\"userupdate\", new UserUpdateCommand());\n commands.put(\"changeuserpassword\", new ChangeUserPassword());\n }",
"public PersonasController() {\r\n }",
"private PSAAClientActionFactory()\n {\n }",
"private GameController() {\n\n }",
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}",
"private void initializeCommunityControllers() {\n trObtainAllGroups = CommunityControllersFactory.createTrObtainAllGroups();\n trCreateNewGroup = CommunityControllersFactory.createTrCreateNewGroup();\n trDeleteGroup = CommunityControllersFactory.createTrDeleteGroup();\n trAddSubscription = CommunityControllersFactory.createTrAddSubscription();\n trDeleteSubscription = CommunityControllersFactory.createTrDeleteSubscription();\n trAddNewForum = CommunityControllersFactory.createTrAddNewForum();\n trDeleteForum = CommunityControllersFactory.createTrDeleteForum();\n trAddNewPost = CommunityControllersFactory.createTrAddNewPost();\n trDeletePost = CommunityControllersFactory.createTrDeletePost();\n trUpdatePost = CommunityControllersFactory.createTrUpdatePost();\n trLikePost = CommunityControllersFactory.createTrLikePost();\n trUnlikePost = CommunityControllersFactory.createTrUnlikePost();\n trReportPost = CommunityControllersFactory.createTrReportPost();\n trGetPostImage = CommunityControllersFactory.createTrGetPostImage();\n trAddGroupImage = CommunityControllersFactory.createTrAddGroupImage();\n trDeleteGroupImage = CommunityControllersFactory.createTrDeleteGroupImage();\n trGetGroupImage = CommunityControllersFactory.createTrGetGroupImage();\n trUnbanPost = CommunityControllersFactory.createTrUnbanPost();\n }",
"private void registerControllers() {\n\tplaybutton.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\tmodel.useDefaultLevel();\n\t\tmodel.goToGamePlay();\n\t\t}\n\t\t});\n\t// What to do when the saved levels button is clicked\n\tloadbutton.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\tmodel.useSavedLevel();\n\t\tmodel.goToGamePlay();\n\t\t}\n\t\t});\n\t// What to do when the create level button is clicked\n\tcreatebutton.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\tmodel.goToCreateLevel();\n\t\t}\n\t\t});\n\t// What to do when the saved levels button is clicked\n\tsavedbutton.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\tmodel.goToSavedLevels();\n\t\t}\n\t\t});\n\t// What to do when the help button is clicked\n\thelpbutton1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\tmodel.goToHelp();\n\t\t}\n\t\t});\n\thelpbutton2.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\tmodel.goToHelp();\n\t\t}\n\t\t});\n }",
"public MainWindow(Controller ctrl) { //constructor\r\n\t\t\r\n\t\tsuper(\"Physics Simulator\"); //pone de tutulo del JFrame Physics Simulator\r\n\t\t_ctrl = ctrl; //asigna el controler pasado por argumento\r\n\t\tinitGUI(); //inicia la gui\r\n\t\t\r\n\t}",
"public WorkerController(){\r\n\t}",
"public ControlUrlControler() {\r\n\r\n }",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"protected CayenneWidgetFactory() {\n super();\n }",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public ABTemaPropioController(){\n }",
"AliciaLab createAliciaLab();",
"public GUI(GUIController controler){\n\t\t//Create the fame with specific features\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedLookAndFeelException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.controler=controler;\n\t\tsetFrame(new JFrame(\"Network Topology\"));\n\t\t//getFrame().setPreferredSize(new Dimension(1200, 700));\n\t\tbuttons=new ArrayList<JButton>();\n\t\tcirclePanel=new CirclePanel();\n\t\tstratButtons= new ArrayList<JButton>();\n\t\t\n\t\tgetFrame().setResizable(true);\n\t\t}",
"public mainLayoutController() {\n\t }",
"AbstractWeapon createWeaponController(WeaponCard weaponCard);",
"private NonGuiController(MusicEditorModel model0, ViewModel vm, NonGuiViewAdapter view) {\n model = requireNonNull(model0);\n this.vm = vm;\n this.view = view;\n }",
"public LoginPageController() {\n\t}",
"public NullGameController()\r\n {\r\n }"
] | [
"0.6794746",
"0.674208",
"0.6543284",
"0.65414065",
"0.6495959",
"0.6482225",
"0.6390676",
"0.6251347",
"0.6246069",
"0.62295794",
"0.6196374",
"0.6074621",
"0.6071942",
"0.6070353",
"0.6030404",
"0.6022172",
"0.59969103",
"0.59913236",
"0.5986839",
"0.59652",
"0.5950372",
"0.5942031",
"0.59383106",
"0.59355956",
"0.59303707",
"0.59277564",
"0.59271497",
"0.5906783",
"0.5887262",
"0.58539945",
"0.58450717",
"0.5839469",
"0.5839469",
"0.58386254",
"0.5836161",
"0.58164394",
"0.5813544",
"0.5806228",
"0.5760279",
"0.57531947",
"0.5749883",
"0.5746562",
"0.5742825",
"0.5732157",
"0.57304156",
"0.5723083",
"0.5718253",
"0.56948966",
"0.56710464",
"0.5656502",
"0.56554943",
"0.56522727",
"0.56344664",
"0.56328607",
"0.56300795",
"0.5613893",
"0.56074476",
"0.55938673",
"0.55936545",
"0.5587748",
"0.55794704",
"0.557584",
"0.5566813",
"0.5557513",
"0.5548413",
"0.55480444",
"0.5543325",
"0.5533637",
"0.55277425",
"0.55201626",
"0.5512711",
"0.5493013",
"0.5490196",
"0.548961",
"0.54804754",
"0.5477085",
"0.5474609",
"0.5467657",
"0.54639775",
"0.5447761",
"0.54376876",
"0.5429572",
"0.54257756",
"0.5424289",
"0.54172117",
"0.54156303",
"0.5415629",
"0.5409822",
"0.5408813",
"0.540268",
"0.5394807",
"0.53879535",
"0.53874266",
"0.53861403",
"0.5382452",
"0.5378143",
"0.537506",
"0.537372",
"0.5373038",
"0.53668493"
] | 0.673636 | 2 |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
String url = "/WEB-INF/jspCaddy.jsp";
HttpSession session = request.getSession();
//section1
//section2
//section...
if ("fillCart".equals(request.getParameter("section"))) {
if (request.getParameter("fillCart") != null) {
BeanCart monPanier = (BeanCart) session.getAttribute("cart");
if (monPanier == null) {
monPanier = new BeanCart();
//session.setAttribute("panier", monPanier);
session.setAttribute("cart", monPanier);
}
//request.setAttribute("panierVide", monPanier.isEmpty());
request.setAttribute("cartEmpty", monPanier.isEmpty());
// request.setAttribute("liste", monPanier.list());
request.setAttribute("list", monPanier.list());
url = "/WEB-INF/jspCaddy.jsp";
}
}
//mécanisme d'affichage du caddy
if ("DisplayCaddy".equals(request.getParameter("section"))) {
BeanCart monPanier = (BeanCart) session.getAttribute("cart");
if (monPanier == null) {
monPanier = new BeanCart();
session.setAttribute("cart", monPanier);
}
url = "/WEB-INF/jspCaddy.jsp";
request.setAttribute("cartEmpty", monPanier.isEmpty());
request.setAttribute("list", monPanier.list());
}
if ("caddy".equals(request.getParameter("section"))) {
BeanCart monPanier = (BeanCart) session.getAttribute("cart");
if (monPanier == null) {
monPanier = new BeanCart();
session.setAttribute("cart", monPanier);
}
// A partir de la page résultat (miniatures) ou de la page zoom
if (request.getParameter("add") != null) {
monPanier.create(monPanier.testReturnBookFromIsbn(request.getParameter("add")));
}
if (request.getParameter("inc") != null) {
System.out.println("ISBN du livre à incrémenter " + request.getParameter("inc"));
Book bk01 = monPanier.testReturnBookFromIsbn(request.getParameter("inc"));
System.out.println("Objet book à incrémenter : " + bk01);
monPanier.inc(bk01);
}
if (request.getParameter("dec") != null) {
monPanier.dec(monPanier.testReturnBookFromIsbn(request.getParameter("dec")));
}
if (request.getParameter("del") != null) {
monPanier.del(monPanier.testReturnBookFromIsbn(request.getParameter("del")));
}
if (request.getParameter("clean") != null) {
monPanier.clean();
}
request.setAttribute("cartEmpty", monPanier.isEmpty());
request.setAttribute("list", monPanier.list());
if ("book".equals(request.getParameter("src"))) {
url = "/WEB-INF/jspBook.jsp";
}
if ("search".equals(request.getParameter("src"))) {
url = "/WEB-INF/jspSearchResult.jsp";
}
}
request.getRequestDispatcher(url).include(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }",
"private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }"
] | [
"0.7003337",
"0.66585124",
"0.66023004",
"0.65085584",
"0.6446528",
"0.6441425",
"0.64401287",
"0.64316165",
"0.64271754",
"0.64235586",
"0.64235586",
"0.6418961",
"0.6418961",
"0.6418961",
"0.6417602",
"0.64138156",
"0.64138156",
"0.6399609",
"0.63932025",
"0.63932025",
"0.63919455",
"0.6391227",
"0.6391227",
"0.63895965",
"0.63895965",
"0.63895965",
"0.63895965",
"0.63882446",
"0.63882446",
"0.63798195",
"0.637763",
"0.6377603",
"0.63762355",
"0.63754046",
"0.6370034",
"0.63621527",
"0.63621527",
"0.6360786",
"0.6354855",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545",
"0.63542545"
] | 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
} | {
"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 {
processRequest(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 "Short description";
} | {
"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 }"
] | [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
"0.85282224",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8516995",
"0.8512296",
"0.8511239",
"0.8510324",
"0.84964365"
] | 0.0 | -1 |
An immutable clientside representation of EventChannel. | public interface EventChannel {
/**
* Gets the id property: Fully qualified resource Id for the resource.
*
* @return the id value.
*/
String id();
/**
* Gets the name property: The name of the resource.
*
* @return the name value.
*/
String name();
/**
* Gets the type property: The type of the resource.
*
* @return the type value.
*/
String type();
/**
* Gets the systemData property: The system metadata relating to Event Channel resource.
*
* @return the systemData value.
*/
SystemData systemData();
/**
* Gets the source property: Source of the event channel. This represents a unique resource in the partner's
* resource model.
*
* @return the source value.
*/
EventChannelSource source();
/**
* Gets the destination property: Represents the destination of an event channel.
*
* @return the destination value.
*/
EventChannelDestination destination();
/**
* Gets the provisioningState property: Provisioning state of the event channel.
*
* @return the provisioningState value.
*/
EventChannelProvisioningState provisioningState();
/**
* Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.
*
* @return the partnerTopicReadinessState value.
*/
PartnerTopicReadinessState partnerTopicReadinessState();
/**
* Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires
* while the corresponding partner topic is never activated, the event channel and corresponding partner topic are
* deleted.
*
* @return the expirationTimeIfNotActivatedUtc value.
*/
OffsetDateTime expirationTimeIfNotActivatedUtc();
/**
* Gets the filter property: Information about the filter for the event channel.
*
* @return the filter value.
*/
EventChannelFilter filter();
/**
* Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the
* publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any
* ambiguity of the origin of creation of the partner topic for the customer.
*
* @return the partnerTopicFriendlyDescription value.
*/
String partnerTopicFriendlyDescription();
/**
* Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.
*
* @return the inner object.
*/
EventChannelInner innerModel();
/** The entirety of the EventChannel definition. */
interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
}
/** The EventChannel definition stages. */
interface DefinitionStages {
/** The first stage of the EventChannel definition. */
interface Blank extends WithParentResource {
}
/** The stage of the EventChannel definition allowing to specify parent resource. */
interface WithParentResource {
/**
* Specifies resourceGroupName, partnerNamespaceName.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param partnerNamespaceName Name of the partner namespace.
* @return the next definition stage.
*/
WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);
}
/**
* The stage of the EventChannel definition which contains all the minimum required properties for the resource
* to be created, but also allows for any other optional properties to be specified.
*/
interface WithCreate
extends DefinitionStages.WithSource,
DefinitionStages.WithDestination,
DefinitionStages.WithExpirationTimeIfNotActivatedUtc,
DefinitionStages.WithFilter,
DefinitionStages.WithPartnerTopicFriendlyDescription {
/**
* Executes the create request.
*
* @return the created resource.
*/
EventChannel create();
/**
* Executes the create request.
*
* @param context The context to associate with this operation.
* @return the created resource.
*/
EventChannel create(Context context);
}
/** The stage of the EventChannel definition allowing to specify source. */
interface WithSource {
/**
* Specifies the source property: Source of the event channel. This represents a unique resource in the
* partner's resource model..
*
* @param source Source of the event channel. This represents a unique resource in the partner's resource
* model.
* @return the next definition stage.
*/
WithCreate withSource(EventChannelSource source);
}
/** The stage of the EventChannel definition allowing to specify destination. */
interface WithDestination {
/**
* Specifies the destination property: Represents the destination of an event channel..
*
* @param destination Represents the destination of an event channel.
* @return the next definition stage.
*/
WithCreate withDestination(EventChannelDestination destination);
}
/** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */
interface WithExpirationTimeIfNotActivatedUtc {
/**
* Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this
* timer expires while the corresponding partner topic is never activated, the event channel and
* corresponding partner topic are deleted..
*
* @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while
* the corresponding partner topic is never activated, the event channel and corresponding partner topic
* are deleted.
* @return the next definition stage.
*/
WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);
}
/** The stage of the EventChannel definition allowing to specify filter. */
interface WithFilter {
/**
* Specifies the filter property: Information about the filter for the event channel..
*
* @param filter Information about the filter for the event channel.
* @return the next definition stage.
*/
WithCreate withFilter(EventChannelFilter filter);
}
/** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */
interface WithPartnerTopicFriendlyDescription {
/**
* Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be
* set by the publisher/partner to show custom description for the customer partner topic. This will be
* helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..
*
* @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the
* publisher/partner to show custom description for the customer partner topic. This will be helpful to
* remove any ambiguity of the origin of creation of the partner topic for the customer.
* @return the next definition stage.
*/
WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);
}
}
/**
* Begins update for the EventChannel resource.
*
* @return the stage of resource update.
*/
EventChannel.Update update();
/** The template for EventChannel update. */
interface Update
extends UpdateStages.WithSource,
UpdateStages.WithDestination,
UpdateStages.WithExpirationTimeIfNotActivatedUtc,
UpdateStages.WithFilter,
UpdateStages.WithPartnerTopicFriendlyDescription {
/**
* Executes the update request.
*
* @return the updated resource.
*/
EventChannel apply();
/**
* Executes the update request.
*
* @param context The context to associate with this operation.
* @return the updated resource.
*/
EventChannel apply(Context context);
}
/** The EventChannel update stages. */
interface UpdateStages {
/** The stage of the EventChannel update allowing to specify source. */
interface WithSource {
/**
* Specifies the source property: Source of the event channel. This represents a unique resource in the
* partner's resource model..
*
* @param source Source of the event channel. This represents a unique resource in the partner's resource
* model.
* @return the next definition stage.
*/
Update withSource(EventChannelSource source);
}
/** The stage of the EventChannel update allowing to specify destination. */
interface WithDestination {
/**
* Specifies the destination property: Represents the destination of an event channel..
*
* @param destination Represents the destination of an event channel.
* @return the next definition stage.
*/
Update withDestination(EventChannelDestination destination);
}
/** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */
interface WithExpirationTimeIfNotActivatedUtc {
/**
* Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this
* timer expires while the corresponding partner topic is never activated, the event channel and
* corresponding partner topic are deleted..
*
* @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while
* the corresponding partner topic is never activated, the event channel and corresponding partner topic
* are deleted.
* @return the next definition stage.
*/
Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);
}
/** The stage of the EventChannel update allowing to specify filter. */
interface WithFilter {
/**
* Specifies the filter property: Information about the filter for the event channel..
*
* @param filter Information about the filter for the event channel.
* @return the next definition stage.
*/
Update withFilter(EventChannelFilter filter);
}
/** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */
interface WithPartnerTopicFriendlyDescription {
/**
* Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be
* set by the publisher/partner to show custom description for the customer partner topic. This will be
* helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..
*
* @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the
* publisher/partner to show custom description for the customer partner topic. This will be helpful to
* remove any ambiguity of the origin of creation of the partner topic for the customer.
* @return the next definition stage.
*/
Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);
}
}
/**
* Refreshes the resource to sync with Azure.
*
* @return the refreshed resource.
*/
EventChannel refresh();
/**
* Refreshes the resource to sync with Azure.
*
* @param context The context to associate with this operation.
* @return the refreshed resource.
*/
EventChannel refresh(Context context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannel create();",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"EventChannelInner innerModel();",
"Channel channel() {\n return channel;\n }",
"EzyChannel getChannel();",
"EventChannel create(Context context);",
"com.google.protobuf.ByteString\n getChannelBytes();",
"public Channel getChannel()\n {\n return channel;\n }",
"public SocketChannel getChannel() {\n return channel;\n }",
"public Channel getChannel() {\n return channel;\n }",
"EventChannelSource source();",
"public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }",
"protected Serializable eventToMessageObject(CayenneEvent event) throws Exception {\n return event;\n }",
"public String getChannel() {\r\n return channel;\r\n }",
"public String getChannel() {\n return channel;\n }",
"public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n return s;\n }\n }",
"public String getChannelId()\n {\n return channelId;\n }",
"public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}",
"public String getChannelId() {\n return channelId;\n }",
"public EventImpl convertToEventImpl() {\n final EventImpl event = new EventImpl(\n getBaseEventHashedData(),\n getBaseEventUnhashedData(),\n getConsensusData(),\n getSelfParent(),\n getOtherParent());\n CryptographyHolder.get().digestSync(event);\n return event;\n }",
"public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}",
"public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n public int getChannel()\n {\n return channel;\n }",
"public String getChannel() {\n\t\treturn channel;\n\t}",
"public String getChannel() {\n\t\treturn channel;\n\t}",
"protected Channel getChannel()\n {\n return mChannel;\n }",
"public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getChannelId()\r\n\t{\r\n\t\treturn this.sChannelId;\r\n\t}",
"public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}",
"public java.util.List<? extends io.grpc.channelz.v1.ChannelOrBuilder> \n getChannelOrBuilderList() {\n return channel_;\n }",
"public String getChannelId() {\n\t\treturn channelId;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}",
"EventChannelDestination destination();",
"public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}",
"public java.lang.String getChannelId() {\n java.lang.Object ref = channelId_;\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 channelId_ = s;\n return s;\n }\n }",
"SocketChannel getChannel();",
"public String getCHANNEL_ID() {\n return CHANNEL_ID;\n }",
"public String getChannelCode() {\n return channelCode;\n }",
"Update withDestination(EventChannelDestination destination);",
"public int getChannel() {\r\n\t\treturn channel;\r\n\t}",
"java.lang.String getChannel();",
"public int getChannel() {\n return channel;\n }",
"public com.google.protobuf.ByteString\n getChannelIdBytes() {\n java.lang.Object ref = channelId_;\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 channelId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getChannelId() {\n java.lang.Object ref = channelId_;\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 channelId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"BaseComponent[] getChannelsJoinedMessage();",
"public Integer getChannelid() {\n return channelid;\n }",
"public Byte getChannel() {\n return channel;\n }",
"public com.google.protobuf.ByteString\n getChannelIdBytes() {\n java.lang.Object ref = channelId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channelId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Collection getChannelNames()\n {\n return channels.keySet();\n }",
"EventChannel refresh();",
"public io.grpc.channelz.v1.ChannelOrBuilder getChannelOrBuilder(\n int index) {\n return channel_.get(index);\n }",
"public java.util.List<? extends io.grpc.channelz.v1.ChannelOrBuilder> \n getChannelOrBuilderList() {\n if (channelBuilder_ != null) {\n return channelBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(channel_);\n }\n }",
"public ChannelFuture getChannelFuture() {\n return channelFuture;\n }",
"@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();",
"public SocketChannel getChannel() { return null; }",
"public String toString() {\r\n\t\tif(subChannel != null)\r\n\t\t\treturn channel + \":\" + subChannel;\r\n\t\treturn channel;\r\n\t}",
"public int getChannelId( ) {\r\n return channelId;\r\n }",
"public SodiumChannel getSodiumChannel() {\n\t\t\treturn sodiumChannel;\n\t\t}",
"private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }",
"public String getChannelName()\r\n\t{\r\n\t\treturn this.sChannelName;\r\n\t}",
"@Override\n public List<Channel> getChannels() {\n List<Channel> channels = new ArrayList<>();\n channels.add(Channels.NICK_CHANNEL);\n return channels;\n }",
"public Channel() {\n this(DSL.name(\"channel\"), null);\n }",
"public Collection<String> getChannels();",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)\n {\n \n Channel connectedChannel = e.getChannel();\n allChannels.add(connectedChannel);\n \n msg = StringAppender.mergeToStr(connectedMsg, e.getChannel().getLocalAddress().toString(), \" , Connections:\", String.valueOf(allChannels.size()));\n logger.info(msg);\n \n }",
"@Override\n public String toString() {\n return \"ServerEvent{\" +\n \"eventID='\" + eventID + '\\'' +\n \", userName='\" + associatedUsername + '\\'' +\n \", personID='\" + personID + '\\'' +\n \", latitude=\" + getLatitude() +\n \", longitude=\" + getLongitude() +\n \", country='\" + getCountry() + '\\'' +\n \", city='\" + getCity() + '\\'' +\n \", type=\" + getEventType() +\n \", year=\" + getYear() +\n '}';\n }",
"public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}",
"com.google.protobuf.ByteString\n getChannelIdBytes();",
"public Object getChannelActivityHistoryReport() {\n return channelActivityHistoryReport;\n }",
"public Integer getChannelCode() {\n return channelCode;\n }",
"public void put(Event event) throws ChannelException {\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId();\n\t}",
"@JsonCreator\n ChannelImpl(@JsonProperty(\"id\") final String id, @JsonProperty(\"version\") final Long version,\n @JsonProperty(\"createdAt\") final java.time.ZonedDateTime createdAt,\n @JsonProperty(\"lastModifiedAt\") final java.time.ZonedDateTime lastModifiedAt,\n @JsonProperty(\"lastModifiedBy\") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy,\n @JsonProperty(\"createdBy\") final com.commercetools.api.models.common.CreatedBy createdBy,\n @JsonProperty(\"key\") final String key,\n @JsonProperty(\"roles\") final java.util.List<com.commercetools.api.models.channel.ChannelRoleEnum> roles,\n @JsonProperty(\"name\") final com.commercetools.api.models.common.LocalizedString name,\n @JsonProperty(\"description\") final com.commercetools.api.models.common.LocalizedString description,\n @JsonProperty(\"address\") final com.commercetools.api.models.common.Address address,\n @JsonProperty(\"reviewRatingStatistics\") final com.commercetools.api.models.review.ReviewRatingStatistics reviewRatingStatistics,\n @JsonProperty(\"custom\") final com.commercetools.api.models.type.CustomFields custom,\n @JsonProperty(\"geoLocation\") final com.commercetools.api.models.common.GeoJson geoLocation) {\n this.id = id;\n this.version = version;\n this.createdAt = createdAt;\n this.lastModifiedAt = lastModifiedAt;\n this.lastModifiedBy = lastModifiedBy;\n this.createdBy = createdBy;\n this.key = key;\n this.roles = roles;\n this.name = name;\n this.description = description;\n this.address = address;\n this.reviewRatingStatistics = reviewRatingStatistics;\n this.custom = custom;\n this.geoLocation = geoLocation;\n }",
"WithCreate withSource(EventChannelSource source);",
"java.lang.String getChannelId();",
"@Override\n\tpublic String getChannelId()\n\t{\n\t\treturn null;\n\t}",
"public ChannelDesc(SocketChannel channel) {\n this.channel = channel;\n }",
"public List<String> getChannels() {\n return channels.get();\n }",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Channel channel = ctx.getChannel();\n //session.setAttachment(new Player(session));\n Client client = new Client(channel);\n channel.setAttachment(client);\n engine.addClient(client);\n }",
"@XmlAttribute(name = \"channel\")\n public String getChannelName()\n {\n return mChannelName;\n }",
"@ApiModelProperty(value = \"Channel where the Order comes from\")\n public Channel getChannel() {\n return channel;\n }",
"private JSONObject eventToJson() {\n JSONObject json = new JSONObject();\n json.put(\"eventName\", event.getName());\n json.put(\"num\", event.getNum());\n return json;\n }",
"WithCreate withDestination(EventChannelDestination destination);",
"public interface Event\n\t{\n\t\tpublic static final String EVENT_ID = \"aether.event.id\";\n\t\tpublic static final String TIME = \"aether.event.time\";\n\t\tpublic static final String EVENT_TYPE = \"aether.event.type\";\n\t}",
"com.google.protobuf.ByteString getEventTypeBytes();",
"void setChannel(EzyChannel channel);",
"public Object getEvent() {\r\n return event;\r\n }",
"public List<EventDesc> getEvents()\r\n {\r\n return Collections.unmodifiableList(events);\r\n }",
"public java.util.List<io.grpc.channelz.v1.Channel> getChannelList() {\n if (channelBuilder_ == null) {\n return java.util.Collections.unmodifiableList(channel_);\n } else {\n return channelBuilder_.getMessageList();\n }\n }",
"EventChannel.Update update();",
"public java.util.List<io.grpc.channelz.v1.Channel> getChannelList() {\n return channel_;\n }",
"EventChannel refresh(Context context);",
"public ChannelDetails() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public ChannelID getChannelID() {\n return channelID1;\n }",
"public interface EventOrBuilder extends MessageLiteOrBuilder {\n C7351j getEntity();\n\n C7280e getOp();\n\n int getOpValue();\n\n boolean hasEntity();\n }",
"@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}",
"public io.grpc.channelz.v1.Channel getChannel(int index) {\n return channel_.get(index);\n }"
] | [
"0.69887406",
"0.622009",
"0.6218024",
"0.6177012",
"0.6167013",
"0.60513073",
"0.6022712",
"0.59504235",
"0.5910529",
"0.5872398",
"0.5745242",
"0.57444286",
"0.5730659",
"0.572633",
"0.5710654",
"0.5664942",
"0.5631798",
"0.5604307",
"0.5591912",
"0.55635065",
"0.55563194",
"0.5555311",
"0.5552256",
"0.5537148",
"0.55295354",
"0.552185",
"0.5509123",
"0.5504232",
"0.5504232",
"0.5495806",
"0.5489293",
"0.54710734",
"0.5443942",
"0.54044986",
"0.5394697",
"0.5382046",
"0.53811496",
"0.53445673",
"0.5334439",
"0.53239733",
"0.53184986",
"0.53149873",
"0.531349",
"0.5311148",
"0.53101844",
"0.52968913",
"0.52940494",
"0.5293339",
"0.5275689",
"0.52740175",
"0.5273814",
"0.5272153",
"0.5260872",
"0.52539676",
"0.5241631",
"0.5235914",
"0.52227914",
"0.5218648",
"0.521154",
"0.5189013",
"0.5184493",
"0.518181",
"0.51715904",
"0.5158795",
"0.515485",
"0.51548064",
"0.5153232",
"0.5151922",
"0.51472455",
"0.51419115",
"0.51373225",
"0.51266074",
"0.5121333",
"0.51177335",
"0.51146454",
"0.5111919",
"0.51109266",
"0.51056665",
"0.5094783",
"0.50760907",
"0.5068993",
"0.50573575",
"0.5054047",
"0.50505924",
"0.50478274",
"0.5045324",
"0.50421536",
"0.5039936",
"0.5032832",
"0.5032619",
"0.50325316",
"0.5006798",
"0.5004951",
"0.49925968",
"0.49676082",
"0.49639702",
"0.49608427",
"0.49543703",
"0.49538562",
"0.49534214"
] | 0.6353395 | 1 |
Gets the id property: Fully qualified resource Id for the resource. | String id(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getResourceId() {\n return resourceId;\n }",
"public String getResourceId() {\n\t\treturn resourceId;\n\t}",
"public String getResourceId() {\n\t\treturn resourceId;\n\t}",
"public String getResourceId() {\r\n\t\treturn resourceId;\r\n\t}",
"public String getResourceID() {\n\t\treturn resourceID;\n\t}",
"public Integer getResourceId() {\n return resourceId;\n }",
"public int getResourceId() {\n\t\t\treturn resourceId;\n\t\t}",
"public Long getResourceId(){\n return id;\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"@Nonnull\n String getId();",
"public String resourceId() {\n return this.resourceId;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"public String resourceId() {\n return this.resourceId;\n }",
"@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }",
"public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }",
"public final String getId() {\r\n\t\treturn id;\r\n\t}",
"public final String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return _id;\n }",
"public String getResourceId();",
"public final ResourceLocation getIdentifier() {\n return identifier;\n }",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"public java.lang.String getId() {\r\n return id;\r\n }",
"public java.lang.String getId() {\r\n return id;\r\n }",
"public java.lang.String getId() {\r\n return id;\r\n }",
"public String id() {\n return definition.getString(ID);\n }",
"@ApiModelProperty(value = \"Uniquely identifies the resource within the collection of like resources.\")\n @JsonProperty(\"Id\")\n public String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return this._id;\n }",
"int getResourceId();",
"public java.lang.String getId () {\r\n\t\treturn id;\r\n\t}",
"public java.lang.String getId () {\n\t\treturn id;\n\t}",
"@javax.annotation.Nullable\n public String getId() {\n return id;\n }",
"public java.lang.String getId() {\r\n return this._id;\r\n }",
"public String getId ()\n {\n return id;\n }",
"public String getId() {\n\t\treturn _id;\n\t}",
"public String getId() {\n\t\treturn _id;\n\t}",
"public String getId() {\n\t\treturn _id;\n\t}",
"public String getId() {\n return id;\n }",
"public static String id()\n {\n return _id;\n }",
"public String getId () {\n return id;\n }",
"@NonNull\n String getId();",
"public URI getId();",
"public URI getId();",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}",
"public String getId() {\n\t\treturn id;\n\t}"
] | [
"0.78075707",
"0.7801092",
"0.7801092",
"0.77891773",
"0.7628331",
"0.7584792",
"0.75659764",
"0.7521958",
"0.75148165",
"0.75148165",
"0.75148165",
"0.75148165",
"0.75148165",
"0.75148165",
"0.75148165",
"0.7486818",
"0.7484411",
"0.7484411",
"0.7484411",
"0.7484411",
"0.7484411",
"0.747728",
"0.7441882",
"0.7436108",
"0.7423249",
"0.74117225",
"0.73855305",
"0.73855305",
"0.73855305",
"0.7365523",
"0.7365523",
"0.7365221",
"0.7365221",
"0.7365221",
"0.7338405",
"0.73376757",
"0.73112094",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.7293057",
"0.72869414",
"0.72869414",
"0.72869414",
"0.7276244",
"0.72744226",
"0.7240189",
"0.7222141",
"0.7219765",
"0.7216354",
"0.72138",
"0.7202603",
"0.7201634",
"0.7176548",
"0.7176548",
"0.7176548",
"0.7171317",
"0.71700966",
"0.7166149",
"0.7157177",
"0.7156238",
"0.7156238",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467",
"0.71490467"
] | 0.0 | -1 |
Gets the name property: The name of the resource. | String name(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"My resource\", value = \"A name of that resource\")\n\n public String getName() {\n return name;\n }",
"public String getName() {\n\n\t\treturn name;\n\t}",
"public String getName() {\n\n\t\treturn name;\n\t}",
"public java.lang.String getName() {\r\n return this._name;\r\n }",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"@ApiModelProperty(value = \"The name of the resource or array element.\")\n @JsonProperty(\"Name\")\n public String getName() {\n return name;\n }",
"public String getName() {\r\n assert name != null;\r\n return name;\r\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public java.lang.String getName() {\n return name;\n }",
"public String getName() {\n return name.get();\n }",
"public java.lang.String getName() {\n return name;\n }",
"public String getName() {\n return name_;\n }",
"public String getName() {\n return name_;\n }",
"public String getName() {\n return name_;\n }",
"public com.commercetools.api.models.common.LocalizedString getName() {\n return this.name;\n }",
"public java.lang.String getName() {\r\n return name;\r\n }",
"public java.lang.String getName() {\r\n return name;\r\n }",
"public java.lang.String getName() {\r\n return name;\r\n }",
"public java.lang.String getName() {\r\n return name;\r\n }",
"public java.lang.String getName() {\r\n return name;\r\n }",
"public java.lang.String getName() {\r\n return name;\r\n }",
"public final String getName() {\r\n return name;\r\n }",
"public final String getName() {\n\t\treturn this.name;\n\t}",
"public String getName()\n\t\t{\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName(String name) {\n return myResources.getString(name);\n }",
"public String getName()\n\t{\n\t\treturn this._name;\n\t}",
"public String getName()\r\n\t{\r\n\t\treturn this._name;\r\n\t}",
"public java.lang.String getName() {\n return this.name;\n }",
"public final String getName() {\n return this.name;\n }",
"public String getName() {\n return (String) getValue(NAME);\n }",
"public final String getName() {\n return name;\n }",
"@Nonnull\n String getName();",
"public String getName() {\r\n\t\t\treturn name;\r\n\t\t}",
"public String getName() {\n return name_;\n }",
"@Override\n\tpublic String getName() {\n\n\t\treturn name;\n\t}",
"public java.lang.String getName()\n {\n return name;\n }",
"public java.lang.String getName()\n {\n return name;\n }",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}",
"public String getName() {\n\t\treturn name;\n\t}"
] | [
"0.79609895",
"0.7951109",
"0.79386675",
"0.79386675",
"0.7930959",
"0.7929833",
"0.79268026",
"0.79268026",
"0.79268026",
"0.79268026",
"0.79268026",
"0.79268026",
"0.79268026",
"0.79268026",
"0.79268026",
"0.79268026",
"0.79251724",
"0.7924258",
"0.792382",
"0.79157954",
"0.79157954",
"0.79157954",
"0.79157954",
"0.79157954",
"0.7910341",
"0.79103404",
"0.7896163",
"0.78829104",
"0.78829104",
"0.78829104",
"0.7882327",
"0.7882068",
"0.7882068",
"0.7882068",
"0.7882068",
"0.7882068",
"0.7882068",
"0.7875873",
"0.7875698",
"0.7859544",
"0.7854133",
"0.7854133",
"0.7854133",
"0.7854133",
"0.7854133",
"0.78531826",
"0.7847832",
"0.78414834",
"0.78329825",
"0.78271544",
"0.7824912",
"0.78235614",
"0.7820435",
"0.78103626",
"0.78055316",
"0.78016853",
"0.7799799",
"0.7799799",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369",
"0.7797369"
] | 0.0 | -1 |
Gets the type property: The type of the resource. | String type(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Nullable\n public com.commercetools.api.models.type.TypeResourceIdentifier getType() {\n return this.type;\n }",
"public ResourceType type() {\n return type;\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"public IResourceType getType();",
"public ResourceType getResouceType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"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}",
"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}",
"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}",
"public java.lang.String getType() {\n return type;\n }",
"public java.lang.String getType() {\n return type;\n }",
"public String getType() {\n\t\treturn _type;\n\t}",
"public String getType() {\n return _type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType()\n\t{\n\t\treturn type;\n\t}",
"public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"public String getType() {\n return type;\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"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() {\n\n return this.type;\n }",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType () {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public String getType () {\n return type;\n }",
"public String getType() {\r\n\t\treturn type_;\r\n\t}",
"public String getType() {\r\n return type;\r\n }",
"public static String getType() {\n\t\treturn type;\n\t}",
"public String getType()\r\n {\r\n return type;\r\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}"
] | [
"0.829728",
"0.8187321",
"0.8167338",
"0.81668276",
"0.8085515",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7872155",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7857309",
"0.7841763",
"0.7841763",
"0.7833719",
"0.7833427",
"0.783209",
"0.783209",
"0.7830116",
"0.78228116",
"0.781762",
"0.7816523",
"0.7816523",
"0.7816523",
"0.7816523",
"0.7816523",
"0.7816409",
"0.7816409",
"0.7816409",
"0.7810399",
"0.7808585",
"0.7803555",
"0.7801596",
"0.7801596",
"0.7801596",
"0.7801596",
"0.7801596",
"0.7801596",
"0.7792303",
"0.77907914",
"0.77907914",
"0.77907914",
"0.77898514",
"0.77878934",
"0.7781234",
"0.77762085",
"0.77661896",
"0.77661896",
"0.77661896",
"0.77661896",
"0.77661896",
"0.77661896"
] | 0.0 | -1 |
Gets the systemData property: The system metadata relating to Event Channel resource. | SystemData systemData(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SystemData systemData() {\n return this.systemData;\n }",
"public SystemData systemData() {\n return this.systemData;\n }",
"public SystemData systemData() {\n return this.systemData;\n }",
"public SystemData systemData() {\n return this.systemData;\n }",
"public byte[] getSystemOperationData() {\n\t\treturn this.systemOperationData;\n\t}",
"public EventBus getEventSystem() {\n return system;\n }",
"@JsonProperty(\"EventSourceSystem\")\r\n\tpublic String getEventSourceSystem() {\r\n\t\treturn eventSourceSystem;\r\n\t}",
"public long getInformationSystem() {\n return informationSystem;\n }",
"public Map<Integer, SystemMessage> getSystemMessages(){\n\t\treturn hmSysMsg;\n\t}",
"public String getSystemdatum() {\n\t\treturn systemdatum;\n\t}",
"public String getSystem() {\r\n return this.system;\r\n }",
"private SensorData collectFSInfo() throws SigarException {\n \n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Collecting File System Information\");\n }\n \n SensorData data = new SensorData();\n \n FileSystem[] fileSystems = sigar.getFileSystemList();\n \n List<FileSystemInfo> fsInfoList = new ArrayList<FileSystemInfo>();\n \n for (FileSystem fs : fileSystems) {\n \n FileSystemInfo info = new FileSystemInfo();\n \n info.setDiskName(fs.getDevName());\n info.setLocation(fs.getDirName());\n info.setType(fs.getSysTypeName());\n \n FileSystemUsage fsu = sigar.getFileSystemUsage(fs.getDirName());\n \n info.setTotalMB(fsu.getTotal() / 1024);\n info.setUsedMB(fsu.getUsed() / 1024);\n \n fsInfoList.add(info);\n }\n \n data.add(SensorAttributeConstants.FileSystemConstants.FS_DATA, fsInfoList);\n \n return data;\n }",
"Object getChannelData() {\r\n return imageData;\r\n }",
"public AbstractDataInput getSystemDataInput()\n\t{\n\t\treturn systemDataInput;\n\t}",
"@JsonProperty(\"events\")\n\t@DsonOutput(Output.API)\n\tMap<String, Object> getJsonEvents() {\n\t\tSystemMetaData smd = SystemMetaData.getInstance();\n\n\t\tMap<String, Object> processed = mapOf(\n\t\t\t\"synchronous\", smd.get(\"events.processed.synchronous\", 0L),\n\t\t\t\"asynchronous\", smd.get(\"events.processed.asynchronous\", 0L)\n\t\t);\n\n\t\treturn mapOf(\n\t\t\t\"processed\", processed,\n\t\t\t\"processing\", smd.get(\"events.processing\", 0L),\n\t\t\t\"broadcast\", smd.get(\"events.broadcast\", 0L),\n\t\t\t\"queued\", smd.get(\"events.queued\", 0L),\n\t\t\t\"dequeued\", smd.get(\"events.dequeued\", 0L)\n\t\t);\n\t}",
"public String getSystemProperties() {\n return systemProperties;\n }",
"public String getExternalSystem() {\n return externalSystem;\n }",
"public StreamsConfigData getStreamsConfigData() {\n\t\treturn streamsConfigData;\n\t}",
"public String getSystemId() { return this.systemId; }",
"@ApiModelProperty(required = true, value = \"The id of the system where this file lives.\")\n public String getSystem() {\n return system;\n }",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"public String getServicingEventLogInstanceAnalysisData() {\n return servicingEventLogInstanceAnalysisData;\n }",
"public AS400 getSystem() {\r\n return system;\r\n }",
"public String getCustomData()\n\t{\n\t\tif (mLastBundle == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\treturn mLastBundle.getString(\"u\");\n\t}",
"public String getSystemName() {\n return systemName;\n }",
"public String getData() {\n return message;\n }",
"public CommandlineJava.SysProperties getSysProperties() {\r\n return getCommandLine().getSystemProperties();\r\n }",
"public java.lang.String getSystemCode() {\n return systemCode;\n }",
"public java.lang.String getSystemName() {\r\n return systemName;\r\n }",
"public CodeSystem getCodeSystem() {\r\n\t\treturn codeSystem;\r\n\t}",
"public java.util.Map<java.lang.String, ch.epfl.dedis.proto.StatusProto.Response.Status> getSystemMap() {\n return internalGetSystem().getMap();\n }",
"public List<Event> getData() {\n return data;\n }",
"@NativeType(\"VREvent_Data_t\")\n public VREventData data() { return ndata(address()); }",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"public java.util.Map<java.lang.String, ch.epfl.dedis.proto.StatusProto.Response.Status> getSystemMap() {\n return internalGetSystem().getMap();\n }",
"public String getSystemName() {\n\t\treturn systemName;\n\t}",
"public String getSystemVer() {\n return systemVer;\n }",
"public String getData() {\n return coreValue();\n }",
"public Map<String, Properties> getVideoData() {\n return videoData;\n }",
"public String getEventMessage() {\n return eventMessage;\n }",
"public String getCustomData() {\r\n\t\treturn customData;\r\n\t}",
"ByteBuffer getApplicationData();",
"public String getForeignSystemId() {\n return foreignSystemId;\n }",
"public String getIsSystem() {\n return isSystem;\n }",
"public byte getSystem() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readByte(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readByte(__io__address + 4);\n\t\t}\n\t}",
"public String getApplicationdata() {\r\n return applicationdata;\r\n }",
"@Override\n\tpublic int getChannel() {\n\t\treturn super.getDeviceID();\n\t}",
"@JsonProperty(\"EventSourceSystem\")\r\n\tpublic void setEventSourceSystem(String eventSourceSystem) {\r\n\t\tthis.eventSourceSystem = eventSourceSystem;\r\n\t}",
"@JsonProperty(\"system_id\")\n public int getSystemId() {\n return systemId;\n }",
"public HashMap<Long, String> getData() {\n\t\treturn data;\n\t}",
"public Map<String, Object> getData() {\n\t\treturn this.data;\n\t}",
"public String getData() {\r\n\t\treturn data;\r\n\t}",
"public String getData() {\r\n\t\t\treturn data;\r\n\t\t}",
"public String getData() {\n\t\treturn data;\n\t}",
"public String getData() {\n\t\treturn data;\n\t}",
"public String getData() {\n\t\treturn data;\n\t}",
"public String getData() {\n\t\treturn data;\n\t}",
"public String getData() {\n\t\treturn this.data;\n\t}",
"public Object systemNumber() {\n return this.systemNumber;\n }",
"public java.lang.String getSystemCode () {\r\n\t\treturn systemCode;\r\n\t}",
"protected String readCalendarData(DavCalendarResource resource)\n throws DavException {\n StringBuffer buffer = new StringBuffer();\n if (outputFilter != null)\n outputFilter.filter(resource.getCalendar(), buffer);\n else\n buffer.append(resource.getCalendar().toString());\n return buffer.toString();\n }",
"public Map<String, DataCenterPushInfo> getDataCenterPushInfo() {\n return dataCenterPushInfo;\n }",
"public String getChannelId()\r\n\t{\r\n\t\treturn this.sChannelId;\r\n\t}",
"public String getChannel() {\r\n return channel;\r\n }",
"public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"public String getData() {\r\n return this.data;\r\n }",
"public Object data() {\n return this.data;\n }",
"@Override\r\n\tpublic IDataManagement getDataManagementObject() {\r\n\t\treturn this.dataManagement;\r\n\t}",
"public String getData() {\r\n return Data;\r\n }",
"public String getData() {\r\n return Data;\r\n }",
"public Object getData() {\n\t\treturn data;\n\t}",
"public String getChannel() {\n return channel;\n }",
"public E getData(){\n\t\t\treturn data;\n\t\t}",
"public E getData() {\n return data;\n }",
"@ApiModelProperty(value = \"The process name, job ID, etc...\")\n public String getSystemName() {\n return systemName;\n }",
"public E getData() {\r\n\t\treturn data;\r\n\t}",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"protected ScServletData getData()\n {\n return ScServletData.getLocal();\n }",
"public SystemDisk getSystemDisk() {\n return this.SystemDisk;\n }",
"public String getData()\n\t{\n\t\treturn data;\n\t}",
"@Override\n\tpublic byte[] getApplicationData() {\n\t\tbyte[] appData = new byte[5];\n\t\tSystem.arraycopy(data, 5, appData, 0, appData.length);\n\t\treturn appData;\n\t}",
"public SocketChannel getChannel() {\n return channel;\n }",
"public String getChannelId() {\n return channelId;\n }",
"public String getChannel() {\n\t\treturn channel;\n\t}",
"public String getChannel() {\n\t\treturn channel;\n\t}",
"public Object getData(){\n\t\treturn this.data;\n\t}",
"public java.lang.String getData() {\r\n return data;\r\n }",
"public String getChannelId()\n {\n return channelId;\n }",
"public byte[] getData() {\n return this.data;\n }",
"public String getData() {\n return data;\n }",
"public String getData() {\n return data;\n }",
"public String getData() {\n return data;\n }",
"public String getData() {\n return data;\n }",
"public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}",
"public String getSystemType() {\n \t\treturn fSystemType;\n \t}"
] | [
"0.6687869",
"0.6687869",
"0.6687869",
"0.6687869",
"0.6197089",
"0.5983211",
"0.5837352",
"0.5544321",
"0.5374552",
"0.5292165",
"0.52871764",
"0.51960325",
"0.5152534",
"0.51372373",
"0.50854707",
"0.5060615",
"0.50261444",
"0.50131446",
"0.49511275",
"0.4936234",
"0.4905466",
"0.4895838",
"0.4894401",
"0.48939258",
"0.4874744",
"0.48565036",
"0.48509312",
"0.48408943",
"0.48405778",
"0.48232183",
"0.4810361",
"0.4801396",
"0.47979072",
"0.47889736",
"0.47845772",
"0.47837245",
"0.47787285",
"0.4766405",
"0.47570834",
"0.47536004",
"0.47484177",
"0.47421917",
"0.47287813",
"0.47114494",
"0.47024253",
"0.4674679",
"0.46590635",
"0.46540743",
"0.46520597",
"0.4650229",
"0.4648625",
"0.46312556",
"0.46305215",
"0.46285877",
"0.46285877",
"0.46285877",
"0.46285877",
"0.4623017",
"0.46038565",
"0.45929435",
"0.4576271",
"0.45761663",
"0.4570615",
"0.45672733",
"0.45614552",
"0.45602602",
"0.45569244",
"0.45535886",
"0.4550455",
"0.45483008",
"0.45483008",
"0.45472836",
"0.45471743",
"0.45437405",
"0.45433533",
"0.45333323",
"0.4529648",
"0.45214242",
"0.45200318",
"0.4519537",
"0.45189968",
"0.4517156",
"0.4512751",
"0.4509046",
"0.4507844",
"0.4507844",
"0.4507478",
"0.45044973",
"0.4503931",
"0.45037645",
"0.45010692",
"0.45010692",
"0.45010692",
"0.45010692",
"0.44972807",
"0.44877627"
] | 0.53850263 | 11 |
Gets the source property: Source of the event channel. This represents a unique resource in the partner's resource model. | EventChannelSource source(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String getSource() {\n return mSource;\n }",
"public IEventCollector getSource();",
"public URI getSource() {\n return source;\n }",
"public EndpointID source() {\r\n\t\treturn source_;\r\n\t}",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public Object getSource() {\n return source;\n }",
"public String getSource() {\r\n return Source;\r\n }",
"public String getSource() {\n return this.source;\n }",
"public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }",
"public String getSource() {\n\n return source;\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public SourceIF source() {\n\t\treturn this.source;\n\t}",
"public String getSource() {\n Object ref = source_;\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 if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n }\n }",
"public SecuritySource getSecuritySource() {\n return (SecuritySource) get(SECURITY_SOURCE_NAME);\n }",
"protected Source getSource() {\r\n return source;\r\n }",
"public String getSource() {\n\t\treturn this.uri.toString();\n\t}",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\r\n return source;\r\n }",
"public HarvestSource getSource() {\n\t\treturn source;\n\t}",
"public String getSource() {\n Object ref = source_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public edu.umich.icpsr.ddi.FileTxtType.Source.Enum getSource()\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SOURCE$30);\n }\n if (target == null)\n {\n return null;\n }\n return (edu.umich.icpsr.ddi.FileTxtType.Source.Enum)target.getEnumValue();\n }\n }",
"@Override\n\tpublic EList<SourceRef> getSource() {\n\t\treturn adaptee.getSource();\n\t}",
"public String sourceUri() {\n return this.sourceUri;\n }",
"public Uri getSourceUri() {\n return sourceUri;\n }",
"@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }",
"@java.lang.Override\n public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n }\n }",
"public String get_source() {\n\t\treturn source;\n\t}",
"public String getSourceResource() {\r\n\t\treturn requestSource;\r\n\t}",
"public Optional<String> getSource() {\n\t\treturn Optional.ofNullable(_source);\n\t}",
"public java.lang.String getSource() {\r\n return localSource;\r\n }",
"public String getSourceId() {\n return sourceId;\n }",
"public Actor getSource()\r\n\t{\r\n\t\treturn sourceActor;\t\r\n\t}",
"@JsonProperty(\"source\")\n public Source getSource() {\n return source;\n }",
"public Object getSource() {return source;}",
"public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}",
"@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();",
"@ApiModelProperty(value = \"The source of the data.\")\n public String getSource() {\n return source;\n }",
"public NativeEntity getSourceEntity() \n\t{\n\treturn fSource;\n\t}",
"public OMCollection getSource() {\r\n return IServer.associationHasSource().dr(this).range();\r\n }",
"java.lang.String getAssociatedSource();",
"public JSONObject SourceResource() {\n JSONObject source = jsonParent.getJSONObject(\"sourceResource\");\n return source;\n }",
"public Object getSource() { return this.s; }",
"final RenderedImage getSource() {\n return sources[0];\n }",
"public Vertex getSource() {\n return source;\n }",
"public T getSource() {\n return source;\n }",
"public Widget getSource() {\n\t\treturn _source;\n\t}",
"public StrColumn getSource() {\n return delegate.getColumn(\"source\", DelegatingStrColumn::new);\n }",
"public FVEventHandler getSrc() {\n\t\treturn src;\n\t}",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String sourceUniqueId() {\n return this.sourceUniqueId;\n }",
"public Entity.ID getSourceID() {\n return sourceID;\n }",
"public java.lang.String getSrc() {\n java.lang.Object ref = src_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n src_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}",
"public File getSource() {\n return source;\n }",
"public int getSource() {\n\t\treturn source;\n\t}",
"public java.lang.Object getSourceID() {\n return sourceID;\n }",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n Object ref = source_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}",
"private String getSource() {\n SharedPreferences settings =\n PreferenceManager.getDefaultSharedPreferences(Collect.getInstance().getBaseContext());\n String serverUrl = settings.getString(PreferencesActivity.KEY_SERVER_URL, null);\n String source = null;\n // Remove the protocol\n if(serverUrl.startsWith(\"http\")) {\n \tint idx = serverUrl.indexOf(\"//\");\n \tif(idx > 0) {\n \t\tsource = serverUrl.substring(idx + 2);\n \t} else {\n \t\tsource = serverUrl;\n \t}\n }\n \n return source;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\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 source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public ContractionVertex<RoadNode> getSourceCHNode() {\r\n return sourceCHNode;\r\n }",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\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 source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public edu.umich.icpsr.ddi.FileTxtType.Source xgetSource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTxtType.Source target = null;\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTxtType.Source)get_default_attribute_value(SOURCE$30);\n }\n return target;\n }\n }",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public java.lang.String getSrc() {\n java.lang.Object ref = src_;\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 src_ = s;\n }\n return s;\n }\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"public String getSrcExclusiveSourceYn() {\r\n return (String) getAttributeInternal(SRCEXCLUSIVESOURCEYN);\r\n }",
"public int getSource(){\r\n\t\treturn this.source;\r\n\t}",
"public Town getSource() {\r\n\t\treturn this.source;\r\n\t}",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n Object ref = source_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public File getFileSource() {\n\t\treturn fileSource;\n\t}",
"public String getSourceArn() {\n return this.sourceArn;\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"public String getSource();",
"@Override\n public String getSource() {\n return this.src;\n }",
"public proto.SocialMetricSource getSocialMetricSource() {\n if (socialMetricSourceBuilder_ == null) {\n return socialMetricSource_ == null ? proto.SocialMetricSource.getDefaultInstance() : socialMetricSource_;\n } else {\n return socialMetricSourceBuilder_.getMessage();\n }\n }",
"public String getSouce() {\n\t\treturn source;\n\t}",
"public com.google.protobuf.ByteString\n getAssociatedSourceBytes() {\n java.lang.Object ref = associatedSource_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n associatedSource_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Node getSource() {\n return this.source;\n }",
"public URL getSource() {\n return url;\n }",
"public String sourceField() {\n return this.sourceField;\n }",
"public String getSourceImage() {\n return sourceImage;\n }",
"@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}",
"public List<String> getSource() {\n return this.source;\n }",
"public Object getSource()\n {\n return this;\n }",
"public Object getSource()\n {\n return this;\n }",
"public ConfigSource getConfigSource() {\n return _configSource;\n }",
"public final MessageSource getMessageSource() {\n return messageSource;\n }"
] | [
"0.69819",
"0.6838694",
"0.6838694",
"0.67744154",
"0.674499",
"0.67421436",
"0.6691935",
"0.66624504",
"0.66624504",
"0.66319036",
"0.66234154",
"0.66185534",
"0.65940875",
"0.65641713",
"0.6552667",
"0.6547313",
"0.65373313",
"0.6537274",
"0.6531158",
"0.6530465",
"0.6522863",
"0.6522863",
"0.6503054",
"0.64977765",
"0.64977765",
"0.64977765",
"0.6487879",
"0.6485699",
"0.6479243",
"0.64728236",
"0.64364564",
"0.6434097",
"0.6425351",
"0.64022845",
"0.639688",
"0.63965696",
"0.6363294",
"0.63592803",
"0.63547033",
"0.63413954",
"0.6318219",
"0.6310014",
"0.6304624",
"0.6298296",
"0.6271597",
"0.6264219",
"0.62459743",
"0.6237482",
"0.62374634",
"0.6235859",
"0.6229338",
"0.62110674",
"0.6205175",
"0.6203158",
"0.6190645",
"0.6163149",
"0.6136722",
"0.61226195",
"0.612045",
"0.6099531",
"0.6099531",
"0.60971314",
"0.60824144",
"0.60804677",
"0.6075528",
"0.6073872",
"0.60736597",
"0.6072527",
"0.6066893",
"0.6058021",
"0.60506237",
"0.60484356",
"0.6045065",
"0.6035255",
"0.6033628",
"0.6031771",
"0.60179734",
"0.601111",
"0.6009572",
"0.600112",
"0.5992994",
"0.5987109",
"0.59853005",
"0.5985071",
"0.5975564",
"0.59748626",
"0.5962238",
"0.59525704",
"0.5950968",
"0.5947161",
"0.59458905",
"0.59435093",
"0.5942903",
"0.5939577",
"0.5939569",
"0.5936063",
"0.59245485",
"0.59245485",
"0.5911493",
"0.5909021"
] | 0.6901068 | 1 |
Gets the destination property: Represents the destination of an event channel. | EventChannelDestination destination(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"public String getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public String getDestination() {\n\t\treturn destination;\n\t}",
"public String getDestination() {\n return this.destination;\n }",
"public String getDestination() {\n return destination;\n }",
"public String getDestination() {\r\n return destination;\r\n }",
"public java.lang.String getDestination() {\n return destination;\n }",
"public java.lang.String getDestination()\n {\n return this._destination;\n }",
"public String getDestination() {\r\n return this.destination;\r\n }",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination() {\n return destination_ == null ? io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n }",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination() {\n if (destinationBuilder_ == null) {\n return destination_ == null ? io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n } else {\n return destinationBuilder_.getMessage();\n }\n }",
"public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}",
"public String destination() {\n return this.destination;\n }",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n }\n }",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public Coordinate getDestination() {\n return cDestination;\n }",
"public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\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 destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Location getDestination() {\r\n return destination;\r\n }",
"public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String getDestination() {\n return this.dest;\n }",
"public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}",
"public Location getDestination()\r\n\t{ return this.destination; }",
"public Location getDestination(){\n\t\treturn destination;\n\t}",
"Destination getDestination();",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder() {\n if (destinationBuilder_ != null) {\n return destinationBuilder_.getMessageOrBuilder();\n } else {\n return destination_ == null ?\n io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n }\n }",
"public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }",
"public int getDestination() {\n\t\treturn finalDestination;\n\t}",
"io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination();",
"String getDestination() {\n if (isSeparateFolder()) {\n return destination.getText();\n } else {\n return null;\n }\n }",
"public Reference destination() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_DESTINATION);\n }",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder() {\n return getDestination();\n }",
"public Integer getDestination() {\n\t\treturn new Integer(destination);\n\t}",
"public Sommet destination() {\n return destination;\n }",
"public Town getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"public long getDestinationId() {\n return destinationId_;\n }",
"public String getDestinationFolder()\n\t{\n\t\treturn destinationFolder;\n\t}",
"public Actor getDestination()\r\n\t{\r\n\t\treturn destinationActor;\t\r\n\t}",
"public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}",
"public long getDestinationId() {\n return destinationId_;\n }",
"public String getDestinationId()\n {\n return destinationId; // Field is final; no need to sync.\n }",
"public Node getDestination() {\n return this.destination;\n }",
"public InetSocketAddress getDestination () {\n\t\treturn origin;\n\t}",
"public String getDestinationName() {\n return destinationName;\n }",
"@Override\n public Location getDestination() {\n return _destinationLocation != null ? _destinationLocation : getOrigin();\n }",
"@Override\n\tpublic String getDest() {\n\t\treturn dest;\n\t}",
"String getDestinationAddress() {\n return this.resolvedDestination.destinationAddress;\n }",
"public String getRouteDest() {\n Object ref = routeDest_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n routeDest_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getRouteDest() {\n Object ref = routeDest_;\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 if (bs.isValidUtf8()) {\n routeDest_ = s;\n }\n return s;\n }\n }",
"public ExportDestination getDestination() {\n return this.destination;\n }",
"public com.google.protobuf.ByteString\n getRouteDestBytes() {\n Object ref = routeDest_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n routeDest_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getDestination(){return this.destination;}",
"public Object getDestination() { return this.d; }",
"public com.google.protobuf.ByteString\n getRouteDestBytes() {\n Object ref = routeDest_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n routeDest_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Vertex getDestination() {\n return destination;\n }",
"public Square destination() {\n return destination;\n }",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"public com.google.api.ads.adwords.axis.v201402.video.DestinationType getDestinationType() {\n return destinationType;\n }",
"io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder();",
"@Override\n\tpublic String getMessageDestination() {\n\t\treturn channelName;\n\t}",
"public String getDestinationCountry() {\r\n return this.destinationCountry;\r\n }",
"public FolderId getDestinationFolderId() {\n\t\treturn this.destinationFolderId;\n\t}",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"int getDestinationPort() {\n return this.resolvedDestination.destinationPort;\n }",
"public LatLng getDestination () {\n return destination;\n }",
"public Room getDestination() {\n return toRoom;\n }",
"public boolean get_destination() {\r\n return (final_destination);\r\n }",
"public Long getDestinationNumber() {\n return this.destinationNumber;\n }",
"public void setDestination(String destination) {\r\n this.destination = destination;\r\n }",
"public int destination(){\n\t\treturn this.des;\n\t}",
"EndpointAddress getDestinationAddress();",
"int getDestination();",
"@JsonProperty(\"destination_name\")\n public String getDestinationName() {\n return destinationName;\n }",
"String getRouteDest();",
"public String destinationIPAddress() {\n return this.destinationIPAddress;\n }",
"public Integer getAccountDestId() {\n return accountDestId;\n }",
"@Nullable\n final public String getClickDestinationUrl() {\n return mClickDestinationUrl;\n }",
"public int getDest(){\r\n\t\treturn this.dest;\r\n\t}",
"Update withDestination(EventChannelDestination destination);",
"public FVEventHandler getDst() {\n\t\treturn dst;\n\t}",
"com.google.protobuf.ByteString\n getRouteDestBytes();",
"public String getDestLocation() {\r\n return this.destPath.getText();\r\n }",
"public int getSqAnDestination() {\n if (packetHeader == null)\n return PacketHeader.BROADCAST_ADDRESS;\n return packetHeader.getDestination();\n }",
"String getDestinationName();",
"public String getDestination(AndesSubscription subscription) {\n if (DestinationType.DURABLE_TOPIC == subscription.getDestinationType()) {\n return subscription.getTargetQueue();\n } else {\n return subscription.getSubscribedDestination();\n }\n }",
"public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}",
"public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }",
"public String destinationAttributeName() {\n return this.destinationAttributeName;\n }",
"@Override\n public GetDestinationResult getDestination(GetDestinationRequest request) {\n request = beforeClientExecution(request);\n return executeGetDestination(request);\n }",
"public String getLogDestination() {\n return this.logDestination;\n }",
"public String getDst() {\r\n\t\treturn dst;\r\n\t}",
"@Override\r\n\tpublic int getLinkDestinationId() {\n\t\treturn destination.getNodeId();\r\n\t}",
"public void setDestination(Coordinate destination) {\n cDestination = destination;\n }",
"public NameValue<String, String> getDestURL() {\n return getDestURL(false);\n }",
"@Internal(\"Represented as part of archivePath\")\n public File getDestinationDir() {\n return destinationDir;\n }",
"public PDFDestination getDestination() {\n return dest;\n }",
"public BusStop getDestinationBusStop() {\r\n return destinationBusStop;\r\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination, io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.Builder, io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder> \n getDestinationFieldBuilder() {\n if (destinationBuilder_ == null) {\n destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination, io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.Builder, io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder>(\n getDestination(),\n getParentForChildren(),\n isClean());\n destination_ = null;\n }\n return destinationBuilder_;\n }",
"public String getURLForRegistrationOnDestination() {\n return this.mURLForRegistrationOnDestination;\n }",
"public String getDestFigNodeId() {\n return destFigNodeId;\n }"
] | [
"0.7695708",
"0.7694999",
"0.7681916",
"0.7635906",
"0.75913477",
"0.7589172",
"0.75879323",
"0.75667334",
"0.75539714",
"0.7431151",
"0.7400025",
"0.7391",
"0.73700815",
"0.73406833",
"0.7291076",
"0.7258578",
"0.7201709",
"0.7149412",
"0.71165335",
"0.7087358",
"0.70616734",
"0.70590264",
"0.7046449",
"0.70343757",
"0.7016195",
"0.69745237",
"0.69590163",
"0.69068265",
"0.6905673",
"0.6873103",
"0.68633926",
"0.68494713",
"0.68346906",
"0.68255997",
"0.6820765",
"0.6820593",
"0.6797246",
"0.6775409",
"0.6775353",
"0.6767586",
"0.6741383",
"0.67051166",
"0.66907525",
"0.6688916",
"0.6670977",
"0.6663953",
"0.6650182",
"0.66472334",
"0.6647011",
"0.66328865",
"0.6554725",
"0.6529834",
"0.6522456",
"0.65164423",
"0.6490317",
"0.6331157",
"0.6285598",
"0.6270864",
"0.6269139",
"0.6261421",
"0.6241094",
"0.622779",
"0.6226658",
"0.62225926",
"0.6221643",
"0.62130105",
"0.62019646",
"0.6200542",
"0.6198282",
"0.6177385",
"0.6174921",
"0.6162826",
"0.61520064",
"0.6149431",
"0.6128382",
"0.61257225",
"0.609973",
"0.60770327",
"0.6071586",
"0.6054424",
"0.6051069",
"0.6008092",
"0.5944903",
"0.59422284",
"0.59007776",
"0.5899302",
"0.58546007",
"0.5836224",
"0.5835792",
"0.58333945",
"0.582086",
"0.5816001",
"0.5802593",
"0.58012396",
"0.57884634",
"0.5777395",
"0.5769786",
"0.5724068",
"0.57231194",
"0.5697959"
] | 0.7515448 | 9 |
Gets the provisioningState property: Provisioning state of the event channel. | EventChannelProvisioningState provisioningState(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DomainProvisioningState provisioningState() {\n return this.provisioningState;\n }",
"public ProvisioningState provisioningState() {\n return this.provisioningState;\n }",
"public ProvisioningState provisioningState() {\n return this.provisioningState;\n }",
"public ProvisioningState provisioningState() {\n return this.provisioningState;\n }",
"public ProvisioningState provisioningState() {\n return this.provisioningState;\n }",
"public ProvisioningState provisioningState() {\n return this.provisioningState;\n }",
"public PeeringProvisioningState provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }",
"public HanaProvisioningStatesEnum provisioningState() {\n return this.provisioningState;\n }",
"public ProvisioningStateType provisioningState() {\n return this.provisioningState;\n }",
"public String provisioningState() {\n return this.provisioningState;\n }",
"public String provisioningState() {\n return this.provisioningState;\n }",
"public String provisioningState() {\n return this.provisioningState;\n }",
"public String provisioningState() {\n return this.provisioningState;\n }",
"public String provisioningState() {\n return this.provisioningState;\n }",
"public ResourceState provisioningState() {\n return this.provisioningState;\n }",
"public String provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }",
"public ProvisionedState getProvisionedState() throws ProvisioningException {\n return ProvisionedStateXmlParser.parse(PathsUtils.getProvisionedStateXml(home));\n }",
"public DefaultCniNetworkProvisioningState provisioningState() {\n return this.innerProperties() == null ? null : this.innerProperties().provisioningState();\n }",
"ProvisioningState provisioningState();",
"ProvisioningState provisioningState();",
"ProvisioningState provisioningState();",
"String provisioningState();",
"public Boolean getProvisioning() {\r\n return provisioning;\r\n }",
"public Byte getPromotedStatus() {\n return promotedStatus;\n }",
"public String getProvisioned() {\n return this.provisioned;\n }",
"public String getIsCpeProvisioningNeeded() {\n return isCpeProvisioningNeeded;\n }",
"com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState();",
"public VpnState getVpnState() {\n return vpnState;\n }",
"public boolean isProvisioningEnabled() {\r\n return GrouperProvisioningSettings.provisioningInUiEnabled();\r\n }",
"public Integer getAgcProCertiStatus() {\n\t\treturn agcProCertiStatus;\n\t}",
"public FluidRelayServerProperties withProvisioningState(ProvisioningState provisioningState) {\n this.provisioningState = provisioningState;\n return this;\n }",
"public String getIssuedDeviceStateInstanceStatus() {\n return issuedDeviceStateInstanceStatus;\n }",
"public String getInspectionResultState() {\n return inspectionResultState;\n }",
"public Integer getVoucherState() {\n\t\treturn voucherState;\n\t}",
"public ProvisioningConfig getProvisioningConfig() throws ProvisioningException {\n return provisioningConfig == null\n ? provisioningConfig = ProvisioningXmlParser.parse(PathsUtils.getProvisioningXml(home))\n : provisioningConfig;\n }",
"public String getEventWatchingGoingStatus() {\n\t\treturn eventWatchingGoingStatus;\n\t}",
"public StorageTargetInner withProvisioningState(ProvisioningStateType provisioningState) {\n this.provisioningState = provisioningState;\n return this;\n }",
"public void setProvisioning(Boolean provisioning) {\r\n this.provisioning = provisioning;\r\n }",
"public String getPushRequestStatus() {\n\t\treturn this.pushRequestStatus;\n\t}",
"public LoadBalancingRulePropertiesFormat withProvisioningState(String provisioningState) {\n this.provisioningState = provisioningState;\n return this;\n }",
"public PeeringState peeringState() {\n return this.innerProperties() == null ? null : this.innerProperties().peeringState();\n }",
"public String getServicingEventLogInstanceStatus() {\n return servicingEventLogInstanceStatus;\n }",
"public States getPilotState() {\n\t\treturn state;\n\t}",
"@SuppressWarnings(\"WeakerAccess\")\n public ReadyState getReadyState() {\n return mReadyState;\n }",
"public UpnpState getUpnpState();",
"public int getConnectionState () {\n\t\treturn state;\n\t}",
"public Byte getEnterpriseAuditStatus() {\n return enterpriseAuditStatus;\n }",
"public AuthenticationState getAuthenticationState() {\n return authenticationState;\n }",
"public List<ProvisioningMembership> getProvisioningMemberships() {\n return provisioningMemberships;\n }",
"public ProvisionMode getProvisionMode() {\r\n\t\treturn mode;\r\n\t}",
"public String getCurrentState() {\n PPPoED.Type lastReceivedPkt = PPPoED.Type.getTypeByValue(this.packetCode);\n switch (lastReceivedPkt) {\n case PADI:\n return PppoeAgentEvent.Type.START.name();\n case PADR:\n case PADO:\n return PppoeAgentEvent.Type.NEGOTIATION.name();\n case PADS:\n return PppoeAgentEvent.Type.SESSION_ESTABLISHED.name();\n case PADT:\n // This case might never happen (entry is being removed on PADT messages).\n return PppoeAgentEvent.Type.TERMINATE.name();\n default:\n return PppoeAgentEvent.Type.UNKNOWN.name();\n }\n }",
"public PresenceStatus getPresenceStatus()\n {\n return currentStatus;\n }",
"public String getTalkingStatus() {\n\t\treturn talkingStatus;\n\t}",
"public String getPublishing() {\n return (String) getAttributeInternal(PUBLISHING);\n }",
"public State getState()\n\t\t{\n\t\t\treturn ConferenceInfoDocument.this.getState(endpointElement);\n\t\t}",
"public PipelineJobState state() {\n return this.innerProperties() == null ? null : this.innerProperties().state();\n }",
"public String getStatus() {\n return getProperty(Property.STATUS);\n }",
"public synchronized Status getStatus(){\n return state;\n }",
"public YangString getConnectionStateValue() throws JNCException {\n return (YangString)getValue(\"connection-state\");\n }",
"public String getCertStatus() {\n\t\treturn certStatus;\n\t}",
"public Integer getPrescriptionstate() {\n return prescriptionstate;\n }",
"public synchronized EventState state() {\n return this.currentState;\n }",
"interface WithProvisioningState {\n /**\n * Specifies provisioningState.\n * @param provisioningState The provisioning state of the private endpoint connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'\n * @return the next update stage\n */\n Update withProvisioningState(ProvisioningState provisioningState);\n }",
"public State getInConversation() {\n\t\treturn inConversation;\n\t}",
"private ProducerState getProducerState(Invocation inv)\n {\n return (ProducerState)((DelegateSupport)inv.getTargetObject()).getState();\n }",
"public ApplicationGatewayTrustedRootCertificatePropertiesFormat withProvisioningState(String provisioningState) {\n this.provisioningState = provisioningState;\n return this;\n }",
"public org.nhind.config.EntityStatus getStatus() {\n return status;\n }",
"@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.Step.State getState() {\n com.google.cloud.networkmanagement.v1beta1.Step.State result =\n com.google.cloud.networkmanagement.v1beta1.Step.State.forNumber(state_);\n return result == null\n ? com.google.cloud.networkmanagement.v1beta1.Step.State.UNRECOGNIZED\n : result;\n }",
"public State getState()\n\t\t{\n\t\t\treturn ConferenceInfoDocument.this.getState(userElement);\n\t\t}",
"public Integer getMessageStatus() {\n return messageStatus;\n }",
"public com.polytech.spik.protocol.SpikMessages.Status getStatus() {\n return status_;\n }",
"public com.polytech.spik.protocol.SpikMessages.Status getStatus() {\n return status_;\n }",
"@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.Step.State getState() {\n com.google.cloud.networkmanagement.v1beta1.Step.State result =\n com.google.cloud.networkmanagement.v1beta1.Step.State.forNumber(state_);\n return result == null\n ? com.google.cloud.networkmanagement.v1beta1.Step.State.UNRECOGNIZED\n : result;\n }",
"public com.polytech.spik.protocol.SpikMessages.Status getStatus() {\n return status_;\n }",
"public com.polytech.spik.protocol.SpikMessages.Status getStatus() {\n return status_;\n }",
"public Integer getStatePraise() {\n return statePraise;\n }",
"public E getCurrentState() {\n return present;\n }",
"public int getUserSyncState() {\n return userSyncState;\n }",
"public boolean getCollectState() {\n return collectedOpticalSwitch.get();\n }",
"public String getState() {\n return state;\n }",
"public Boolean getState() {\n return state;\n }",
"public byte[] getStatus() {\r\n return status;\r\n }",
"int getDeploymentStateValue();",
"public State getAeState() {\n\t\treturn state;\n\t}",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }"
] | [
"0.7848046",
"0.77067906",
"0.77067906",
"0.77067906",
"0.77067906",
"0.77067906",
"0.76493925",
"0.7618582",
"0.7579391",
"0.75352865",
"0.75352865",
"0.75352865",
"0.75352865",
"0.75352865",
"0.7486031",
"0.7436976",
"0.7172959",
"0.68320924",
"0.65830976",
"0.65830976",
"0.65830976",
"0.636382",
"0.63636875",
"0.5865556",
"0.5853268",
"0.57853514",
"0.5565436",
"0.5473415",
"0.5465158",
"0.5424308",
"0.5400311",
"0.53877896",
"0.5357906",
"0.5346512",
"0.5343716",
"0.5301161",
"0.52859235",
"0.52130085",
"0.521269",
"0.5189957",
"0.5171731",
"0.51544774",
"0.51345414",
"0.51294446",
"0.5096434",
"0.5084311",
"0.50803596",
"0.5071912",
"0.5067927",
"0.5044089",
"0.5024964",
"0.5019761",
"0.5006176",
"0.50060105",
"0.49858296",
"0.49842662",
"0.49771312",
"0.49735066",
"0.4963003",
"0.4962702",
"0.495205",
"0.49481082",
"0.4945971",
"0.49217334",
"0.49172375",
"0.49156877",
"0.49102077",
"0.48979858",
"0.4888811",
"0.48882312",
"0.4884002",
"0.4884002",
"0.4882577",
"0.48824394",
"0.48824394",
"0.48789236",
"0.4877273",
"0.48707208",
"0.48686832",
"0.48628452",
"0.48582384",
"0.4854498",
"0.4853833",
"0.48489735",
"0.48473194",
"0.48473194",
"0.48473194",
"0.48473194",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596",
"0.48433596"
] | 0.79877037 | 0 |
Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic. | PartnerTopicReadinessState partnerTopicReadinessState(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getMqttEnabledStateValue();",
"com.google.cloud.iot.v1.MqttState getMqttEnabledState();",
"public int getReadStatus() {\n return (readStatus.getUnsignedInt());\n }",
"@Produces\r\n @Readiness\r\n public HealthCheck checkReadiness() {\n return () -> HealthCheckResponse.named(readinessName).up().build();\r\n }",
"@SuppressWarnings(\"WeakerAccess\")\n public ReadyState getReadyState() {\n return mReadyState;\n }",
"public KetchLeader.State getState() {\n\t\treturn state;\n\t}",
"public FrontDoorResourceState resourceState() {\n return this.innerProperties() == null ? null : this.innerProperties().resourceState();\n }",
"public int getConnectionState () {\n\t\treturn state;\n\t}",
"com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState();",
"public int getCommonReadStatus(){\n List<BMessageReceipt> readReceipts;\n resetBMessageReceiptList();\n readReceipts = getBMessageReceiptList();\n\n Boolean delivered = false;\n Boolean read = false;\n\n for ( BMessageReceipt readReceipt : readReceipts) {\n switch (readReceipt.getReadStatus()) {\n case none:\n return none;\n case BMessageReceiptEntity.ReadStatus.delivered:\n delivered = true;\n break;\n case BMessageReceiptEntity.ReadStatus.read:\n read = true;\n break;\n }\n }\n// if(!read){\n// BNetworkManager.sharedManager().getNetworkAdapter().readReceiptsOnFromUI(this);\n// }\n if(delivered){\n return BMessageReceiptEntity.ReadStatus.delivered;\n } else if (read) {\n return BMessageReceiptEntity.ReadStatus.read;\n } else {\n logMessage = \"Message has no readers\";\n if(DEBUG) Log.d(TAG , logMessage);\n return none;\n }\n }",
"public String discoveryStatus() {\n return this.discoveryStatus;\n }",
"public String getReadConsistency() {\n return this.readConsistency;\n }",
"public Iterable<StopReplicaTopicState> topicStates() {\n if (version() < 1) {\n Map<String, StopReplicaTopicState> topicStates = new HashMap<>();\n for (StopReplicaPartitionV0 partition : data.ungroupedPartitions()) {\n StopReplicaTopicState topicState = topicStates.computeIfAbsent(partition.topicName(),\n topic -> new StopReplicaTopicState().setTopicName(topic));\n topicState.partitionStates().add(new StopReplicaPartitionState()\n .setPartitionIndex(partition.partitionIndex())\n .setDeletePartition(data.deletePartitions()));\n }\n return topicStates.values();\n } else if (version() < 3) {\n return () -> new MappedIterator<>(data.topics().iterator(), topic ->\n new StopReplicaTopicState()\n .setTopicName(topic.name())\n .setPartitionStates(topic.partitionIndexes().stream()\n .map(partition -> new StopReplicaPartitionState()\n .setPartitionIndex(partition)\n .setDeletePartition(data.deletePartitions()))\n .collect(Collectors.toList())));\n } else {\n return data.topicStates();\n }\n }",
"public EBluetoothStates getState() {\n return mBluetoothConnectionState;\n }",
"public Boolean getIsRead() {\n return isRead;\n }",
"public boolean setMessageIsReadStatus( long messageId );",
"public SslState sslState() {\n return this.sslState;\n }",
"@objid (\"0123027f-8c94-4c8d-b2c1-89ee93c2de85\")\n public static SmDependency getSubPartitionDep() {\n return SubPartitionDep;\n }",
"public Topic readTopic(int topicId);",
"TopicStatus getById(Long topicStatusId);",
"public int getHappiness() {\n \t\treturn happiness;\n \t}",
"public long getTopic() {\n return topic_;\n }",
"public long getTopic() {\n return topic_;\n }",
"public Integer getVoucherState() {\n\t\treturn voucherState;\n\t}",
"public boolean isLeaderElectionRunning() throws RemoteException;",
"int getDeploymentStateValue();",
"ConnectionState getActorConnectionState(String publicKey) throws\n CantValidateConnectionStateException;",
"public Integer getwPrStatus() {\n return wPrStatus;\n }",
"public int getBridgeState();",
"public static String[][] getBoardState() {\n return boardState;\n }",
"public boolean isDownState() {\n return downState;\n }",
"public Integer getEwStatus() {\n return ewStatus;\n }",
"public Integer getEwStatus() {\n return ewStatus;\n }",
"public YangString getConnectionStateValue() throws JNCException {\n return (YangString)getValue(\"connection-state\");\n }",
"public CloudState getCloudState();",
"public int getState() {\n\treturn APPStates.CONTROLLER_CONNECTED_BS;\n}",
"public ui.StatusLed getStatusLed() {\n return this.statusLed;\n }",
"public RCProxyState getState() {\n\t\treturn state;\n\t}",
"public Integer getMessageStatus() {\n return messageStatus;\n }",
"public Boolean getState() {\n return state;\n }",
"public long getState()\n {\n return ((StatefulRandomness)random).getState();\n }",
"boolean getCheckState();",
"public String getServicingEventLogInstanceStatus() {\n return servicingEventLogInstanceStatus;\n }",
"im.turms.common.constant.MessageDeliveryStatus getDeliveryStatus();",
"public ConnectivityState getState() {\n ConnectivityState stateCopy = this.state;\n if (stateCopy != null) {\n return stateCopy;\n }\n throw new UnsupportedOperationException(\"Channel state API is not implemented\");\n }",
"public boolean isResumed()\n {\n return isResumed;\n }",
"public Integer getrowStatus() {\n byte entityState = this.getEntity(0).getEntityState();\n return new Integer(entityState);\n// return (Integer) getAttributeInternal(ROWSTATUS);\n }",
"public java.lang.String getReceiverState() {\r\n return receiverState;\r\n }",
"public boolean getRead()\n\t{\n\t\treturn this.read;\n\t}",
"public String getPartnerid() {\n return partnerid;\n }",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getReadyState();",
"long getTopic();",
"public ExpertiseLevelState getLevelState() {\n return this.levelState;\n }",
"public org.apache.axis.types.UnsignedInt getState() {\n return state;\n }",
"public String getStatus() {\n return ready ? \"ready\" : \"not ready\";\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return _state;\n }",
"public ResourceState provisioningState() {\n return this.provisioningState;\n }",
"public int getState() {\n return state;\n }",
"public Integer getRptstate() {\n return rptstate;\n }",
"public boolean[] getStatus()\n {\n\t return online;\n }",
"String getTopicArn();",
"public boolean getRead() {\n return read_;\n }",
"ClusterState state() {\n return clusterStateSupplier.get();\n }",
"ConnectionState getContactState();",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.\")\n\n public Integer getReadyReplicas() {\n return readyReplicas;\n }",
"public boolean getRead() {\n return read_;\n }",
"public static boolean GetClientListenerStatus (){\n return ClientListenerAlive;\n }",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"public boolean isRead(){\n \treturn isRead;\n }",
"int getDeliveryStatusValue();",
"public String getTalkingStatus() {\n\t\treturn talkingStatus;\n\t}",
"com.flipkart.vbroker.proto.TopicSubscription getTopicSubscription();",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"public SensorBean getLatestReading() {\n return latestReading;\n }",
"public boolean getReady() {\r\n\t\treturn ready;\r\n\t}",
"public int getState() {\n return state;\n }",
"public int getState() {\n return state;\n }",
"@Override\r\n public boolean poll()\r\n {\n return state.isConnected();\r\n }",
"public int getState() {\n \t\treturn state;\n \t}",
"public BaseSensorState getState() {\n return state;\n }",
"public PeeringState peeringState() {\n return this.innerProperties() == null ? null : this.innerProperties().peeringState();\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"public VpnState getVpnState() {\n return vpnState;\n }",
"public String getPollMode() {\n return getXproperty(BwXproperty.pollMode);\n }",
"public ReadOnlyDownstreamPeerState nodeDidVote(NetworkManager.NodeToken node, long termNumber) {\n\t\tDownstreamPeerState peer = _downstreamPeerByNode.get(node);\n\t\treturn new ReadOnlyDownstreamPeerState(peer);\n\t}",
"public boolean isStateKnown() {\r\n\t\treturn stateKnown;\r\n\t}",
"public int getState() {\n\t\treturn state;\n\t}",
"public Long getState() {\n return state;\n }",
"public int getState() {\n return this.state.ordinal();\n }",
"public boolean isStateAvailable(int paraState) {\n\t\treturn true;\n\t}"
] | [
"0.52546155",
"0.50015426",
"0.49093872",
"0.47797874",
"0.47563842",
"0.46597558",
"0.4643743",
"0.46274588",
"0.456424",
"0.4557921",
"0.45446903",
"0.4534485",
"0.45235112",
"0.4513219",
"0.44253314",
"0.44208908",
"0.44027978",
"0.43875587",
"0.4365017",
"0.4360654",
"0.4359732",
"0.43439856",
"0.43391463",
"0.4323024",
"0.43069896",
"0.4298465",
"0.42877477",
"0.427436",
"0.4273605",
"0.4260178",
"0.4259607",
"0.42455688",
"0.42455688",
"0.42453218",
"0.4239919",
"0.42311794",
"0.422896",
"0.4228677",
"0.42178884",
"0.42141917",
"0.4214087",
"0.42108923",
"0.41994548",
"0.419867",
"0.41867682",
"0.41772345",
"0.41756028",
"0.41688102",
"0.41617092",
"0.41570976",
"0.41550085",
"0.41500235",
"0.41467708",
"0.41463974",
"0.4138059",
"0.41351208",
"0.41350284",
"0.41350284",
"0.41350284",
"0.41350284",
"0.41279268",
"0.41265973",
"0.41106063",
"0.41094184",
"0.41072297",
"0.4102902",
"0.41028005",
"0.4102738",
"0.41025203",
"0.4102517",
"0.41018894",
"0.40993297",
"0.40922463",
"0.40917206",
"0.40916577",
"0.4090013",
"0.40897328",
"0.4087261",
"0.4087261",
"0.4087261",
"0.4087261",
"0.4087261",
"0.40845615",
"0.40837377",
"0.4080071",
"0.4079794",
"0.4079794",
"0.40713838",
"0.4070047",
"0.40687072",
"0.4067116",
"0.40637454",
"0.4062561",
"0.40612513",
"0.40592438",
"0.4058138",
"0.40569726",
"0.4046272",
"0.40458867",
"0.4045622"
] | 0.7359814 | 0 |
Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires while the corresponding partner topic is never activated, the event channel and corresponding partner topic are deleted. | OffsetDateTime expirationTimeIfNotActivatedUtc(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getExpirationTime()\n {\n return this.m_eventExpirationTime;\n }",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"public OffsetDateTime expiration() {\n return this.innerProperties() == null ? null : this.innerProperties().expiration();\n }",
"public Timestamp getExpirationTime() {\n\t\treturn m_ExpirationTime;\n\t}",
"public Date getExpirationTime() {\n return expirationTime;\n }",
"public Instant getExpirationTime() {\n return unit == ChronoUnit.SECONDS\n ? Instant.ofEpochSecond((Long.MAX_VALUE >>> timestampLeftShift) + epoch)\n : Instant.ofEpochMilli((Long.MAX_VALUE >>> timestampLeftShift) + epoch);\n }",
"public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }",
"public long getExpiration() {\n return expiration;\n }",
"public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }",
"long getExpiration();",
"int getExpireTimeout();",
"public Long getExpireTime() {\n\t\treturn expireTime;\n\t}",
"public long getTimeLeft() {\n return getExpiration() - System.currentTimeMillis() / 1000L <= 0 ? 0 : getExpiration() - System.currentTimeMillis() / 1000L;\n }",
"public Calendar getMessageExpiry() {\n\n // Check if the message expiry has been defined\n if (this.messageHeader.isSetMsgExpiry()) {\n return this.messageHeader.getMsgExpiry();\n }\n\n return null;\n }",
"public long getExpiry() {\n return this.contextSet.getExpiration();\n }",
"public int getExpiryTime() {\n return expiryTime;\n }",
"Double getRemainingTime();",
"protected final Date getExpirationDate() {\n Session currentSession = sessionTracker.getOpenSession();\n return (currentSession != null) ? currentSession.getExpirationDate() : null;\n }",
"public double getRemainingTime()\n {\n return totalTime - scheduledTime;\n }",
"public float getRemainingTime () {\n\t\treturn duration - timer < 0 ? 0 : duration - timer;\n\t}",
"Duration getRemainingTime();",
"public int getAlertMessageTimeRemaining()\n {\n return this.alert_message_time_remaining;\n }",
"public Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes() {\n return this.innerProperties() == null\n ? null\n : this.innerProperties().trafficRestorationTimeToHealedOrNewEndpointsInMinutes();\n }",
"public long getRemainingTime() {\n return (maxTime_ * 1000L)\n - (System.currentTimeMillis() - startTime_);\n }",
"public Date getExpireTime() {\n\t\treturn expireTime;\n\t}",
"public String getExpireTime() {\n return this.ExpireTime;\n }",
"public java.lang.Long getConsumerTime() {\n return consumer_time;\n }",
"int getExpiryTimeSecs();",
"public long getExpiryTime()\n {\n return m_metaInf.getExpiryTime();\n }",
"public java.lang.Long getConsumerTime() {\n return consumer_time;\n }",
"public DateTime expiryTime() {\n return this.expiryTime;\n }",
"public java.util.Calendar getTrialExpirationDate() {\n return trialExpirationDate;\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"public java.util.Date getExpireTime() {\r\n return expireTime;\r\n }",
"public String getExpiration() {\n return this.expiration;\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"public hr.client.appuser.CouponCenter.TimeRange getExchangeTime() {\n if (exchangeTimeBuilder_ == null) {\n return exchangeTime_ == null ? hr.client.appuser.CouponCenter.TimeRange.getDefaultInstance() : exchangeTime_;\n } else {\n return exchangeTimeBuilder_.getMessage();\n }\n }",
"public long getCacheExpirationSeconds() {\n return cache.getCacheExpirationSeconds();\n }",
"public java.util.Calendar getExpirationDate() {\n return expirationDate;\n }",
"public java.util.Calendar getPinExpirationTime() {\r\n return pinExpirationTime;\r\n }",
"public final String getRequestExpiration() {\n return properties.get(REQUEST_EXPIRATION_PROPERTY);\n }",
"public hr.client.appuser.CouponCenter.TimeRange getExchangeTime() {\n return exchangeTime_ == null ? hr.client.appuser.CouponCenter.TimeRange.getDefaultInstance() : exchangeTime_;\n }",
"public Timestamp getExpirationDate() {\n return expirationDate;\n }",
"@Override\n public final double getExpiration() {\n return safetyHelper.getExpiration();\n }",
"public int getEventTime() {\n\t\treturn scheduledTime;\n\t}",
"public boolean hasExpired() {\n return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis();\n }",
"public io.opencannabis.schema.temporal.TemporalInstant.Instant getDesiredTime() {\n if (desiredTimeBuilder_ == null) {\n return desiredTime_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : desiredTime_;\n } else {\n return desiredTimeBuilder_.getMessage();\n }\n }",
"public java.util.Calendar getExpiryTime(){\n return localExpiryTime;\n }",
"public String defaultMessageTimeToLive() {\n return this.defaultMessageTimeToLive;\n }",
"public java.util.Calendar getRequestedTime()\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(REQUESTEDTIME$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }",
"public Integer delayExistingRevokeInHours() {\n return this.delayExistingRevokeInHours;\n }",
"Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);",
"public int calcAcknowledgeTime()\n {\n return( TIMEOUT );\n }",
"public int calcAcknowledgeTime()\n {\n return( TIMEOUT );\n }",
"long getExpirationDate();",
"public Long get_cacheexpireatlastbyterate() throws Exception {\n\t\treturn this.cacheexpireatlastbyterate;\n\t}",
"WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);",
"long getExpiryTime() {\n return expiryTime;\n }",
"public Double getOfferExpiresAfterSeconds() {\n return this.offerExpiresAfterSeconds;\n }",
"public long getExpiry() {\n return this.expiry;\n }",
"public long getScheduleToCloseTimeoutSeconds() {\n return scheduleToCloseTimeoutSeconds;\n }",
"public String getExpirationTimeRuleId() {\n return expirationTimeRuleId;\n }",
"public long getTimerTime() {\n return timerTime;\n }",
"public long getExpiryMillis()\n {\n return m_dtExpiry;\n }",
"public io.opencannabis.schema.temporal.TemporalInstant.Instant getDesiredTime() {\n return desiredTime_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : desiredTime_;\n }",
"@Range(min = 0)\n\t@NotNull\n\tpublic Integer getExpiration() {\n\t\treturn this.expiration;\n\t}",
"public Date getDefaultTrialExpirationDate(){\n if(AccountType.STANDARD.equals(accountType)){\n Calendar cal = Calendar.getInstance();\n\n //setting the free trial up for standard users\n cal.add(Calendar.DATE, Company.FREE_TRIAL_LENGTH_DAYS);\n return cal.getTime();\n }\n\n return null;\n }",
"@Override\n public Date getExpiration()\n {\n return null;\n }",
"public Date getExpirationTS(String sessionID) {\n\t\tSession session = getSession(sessionID);\n\t\treturn session.getExpirationTS();\n\t}",
"@Override\n\tpublic long getTokenExpiryTime() {\n\t\treturn 0;\n\t}",
"public int getExpiryDelay()\n {\n return m_cExpiryDelay;\n }",
"public int getConfirmTime() {\n\t\treturn _tempNoTiceShipMessage.getConfirmTime();\n\t}",
"@java.lang.Override\n public long getExpirationDate() {\n return expirationDate_;\n }",
"LocalDateTime getExpiration(K key);",
"@NonNull\n public String getPayoutTime() {\n return payoutTime;\n }",
"public int getTimeoutInSeconds() {\n return timeoutInSeconds;\n }",
"public String getTimeLeft() {\n return NumberToTimeLeft.convert(_dateExpiration - System.currentTimeMillis(),true);\n }",
"int getSignOffTime();",
"public Date getExpirationDate() {\r\n return expirationDate;\r\n }",
"boolean checkForExpiration() {\n boolean expired = false;\n\n // check if lease exists and lease expire is not MAX_VALUE\n if (leaseId > -1 && leaseExpireTime < Long.MAX_VALUE) {\n\n long currentTime = getCurrentTime();\n if (currentTime > leaseExpireTime) {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[checkForExpiration] Expiring token at {}: {}\",\n currentTime, this);\n }\n noteExpiredLease();\n basicReleaseLock();\n expired = true;\n }\n }\n\n return expired;\n }",
"public int getApproximateDeliveryTime() {\n return approximateDeliveryTime;\n }",
"public Long getEstimatedEvaluationTimeRemainingInMinutes() {\n return this.estimatedEvaluationTimeRemainingInMinutes;\n }",
"@java.lang.Override\n public long getExpirationDate() {\n return expirationDate_;\n }",
"public long getTimeToLive() {\n return timeToLive;\n }",
"public Date getExpirationDate() {\n return expirationDate;\n }",
"public Date getExpirationDate() {\n return expirationDate;\n }",
"public int getSessionMaxAliveTime();",
"public long getMaxActiveTime()\n {\n if (_maxActiveTime > Long.MAX_VALUE / 2)\n return -1;\n else\n return _maxActiveTime;\n }",
"public hr.client.appuser.CouponCenter.TimeRange getUseTime() {\n if (useTimeBuilder_ == null) {\n return useTime_ == null ? hr.client.appuser.CouponCenter.TimeRange.getDefaultInstance() : useTime_;\n } else {\n return useTimeBuilder_.getMessage();\n }\n }",
"public hr.client.appuser.CouponCenter.TimeRange getUseTime() {\n if (useTimeBuilder_ == null) {\n return useTime_ == null ? hr.client.appuser.CouponCenter.TimeRange.getDefaultInstance() : useTime_;\n } else {\n return useTimeBuilder_.getMessage();\n }\n }",
"private long remainingTime() {\n final long remainingTime = this.designatedEnd - System.currentTimeMillis();\n return remainingTime >= 0 ? remainingTime : 0L;\n }",
"public double getNextTime(){\n\t\tif(timeoutSet.peek() == null && eventSet.peek() == null) return Double.MAX_VALUE;\n\t\telse if(eventSet.peek() != null && timeoutSet.peek() != null) return Math.min(eventSet.peek().getTime(), timeoutSet.peek().getTime());\n\t\telse if(eventSet.peek() == null && timeoutSet.peek() != null) return timeoutSet.peek().getTime();\n\t\treturn eventSet.peek().getTime();\n\t}",
"public Date getExpirationDate() {\n\t\treturn expirationDate;\n\t}",
"public Date getExpirationDate() {\n\t\treturn expirationDate;\n\t}",
"long getRetrievedTime();",
"public String getTimeOut() {\n return prop.getProperty(TIMEOUT_KEY);\n }",
"public String getExpirationDate() {\r\n\t\treturn expirationDate;\r\n\t}",
"public long getTokenExpirationInMillis() {\n return tokenExpirationInMillis;\n }",
"public org.apache.axis.types.UnsignedInt getTimeout() {\n return timeout;\n }"
] | [
"0.6872904",
"0.6727724",
"0.6480548",
"0.6130361",
"0.6073857",
"0.59009594",
"0.58567226",
"0.5719302",
"0.57065016",
"0.5687889",
"0.56268084",
"0.5622559",
"0.5609641",
"0.55873907",
"0.5579375",
"0.55229366",
"0.5469408",
"0.5454481",
"0.5452209",
"0.5419139",
"0.54069775",
"0.53886974",
"0.53849787",
"0.53551614",
"0.5343334",
"0.5342471",
"0.52996963",
"0.5296849",
"0.52962667",
"0.52889705",
"0.52564806",
"0.52540183",
"0.52270633",
"0.52241546",
"0.52049154",
"0.5200666",
"0.51977676",
"0.5189463",
"0.5175916",
"0.51758254",
"0.51436985",
"0.5140892",
"0.5139497",
"0.5126334",
"0.5123561",
"0.5109774",
"0.509736",
"0.5079029",
"0.50703645",
"0.5063159",
"0.5058388",
"0.50555044",
"0.50484586",
"0.50425875",
"0.50425875",
"0.50424325",
"0.5034184",
"0.5033535",
"0.50279385",
"0.50264776",
"0.50248593",
"0.501203",
"0.5011755",
"0.5009125",
"0.5000728",
"0.49964103",
"0.49923077",
"0.4967614",
"0.49608192",
"0.4954971",
"0.49493086",
"0.4942643",
"0.49370563",
"0.4935231",
"0.49157286",
"0.49095836",
"0.49086386",
"0.48967192",
"0.48947886",
"0.48809966",
"0.48764342",
"0.48683095",
"0.48535746",
"0.48526436",
"0.48445225",
"0.482643",
"0.482643",
"0.4819553",
"0.48160106",
"0.4815728",
"0.4815728",
"0.48140466",
"0.48138168",
"0.481131",
"0.481131",
"0.4810947",
"0.48055157",
"0.47992173",
"0.4799022",
"0.47986633"
] | 0.68705857 | 1 |
Gets the filter property: Information about the filter for the event channel. | EventChannelFilter filter(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFilter() {\n\t\treturn filter;\n\t}",
"public Filter getFilter() {\n\t\treturn (filter);\n\t}",
"public java.lang.String getFilter() {\n return filter;\n }",
"public Expression getFilter() {\n return this.filter;\n }",
"public String getFilter()\n {\n return encryptionDictionary.getNameAsString( COSName.FILTER );\n }",
"public Filter getFilterComponent()\n {\n return filterComponent;\n }",
"public ExtensionFilter getFilter () {\n return this.filter;\n }",
"public LSPFilter getFilter () {\r\n return filter;\r\n }",
"public ImageFilter getFilter() {\r\n\t\treturn filter;\r\n\t}",
"@Override\r\n\tpublic NotificationFilter getFilter() {\n\t\treturn super.getFilter();\r\n\t}",
"FeedbackFilter getFilter();",
"Filter getFilter();",
"public BsonDocument getFilter() {\n return filter;\n }",
"public String getFilter();",
"public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }",
"public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }",
"public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }",
"public Map<String, Filter> getFilters() {\n return filters;\n }",
"public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }",
"public String getFilterCondition() {\n return filterCondition;\n }",
"public String getFilter() {\n\t\treturn url.getFilter();\n }",
"public String getFilterId() {\n return this.filterId;\n }",
"com.google.protobuf.ByteString\n getFilterBytes();",
"public IntelligentTieringFilter getFilter() {\n return filter;\n }",
"String getFilter();",
"java.lang.String getFilter();",
"public FilterConfig getFilterConfig() {\r\n return config;\r\n }",
"public EdgeFilter getEdgeFilter() {\n return edgeFilter;\n }",
"public String getUserFilter()\n {\n return this.userFilter;\n }",
"public Filter [] getFilters() {\n return this.Filters;\n }",
"public Filter [] getFilters() {\n return this.Filters;\n }",
"@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }",
"public Filter getFilter() {\n\t\tif (filter == null) {\n\t\t\tfilter = new CountryListItemFilter();\n\t\t}\n\t\treturn filter;\n\t}",
"public List<FilterItem> getFilterItems() {\n\t\treturn filterItems;\n\t}",
"public Map<String, Object> getFilters() {\n if (filters == null) {\n filters = new HashMap<String, Object>();\n }\n \n return filters;\n }",
"public List<IRuleFilter> getFilters() {\n return filters;\n }",
"public ArrayList<FilteringRule> get_filters() {\n\t\treturn filters;\n\t}",
"@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}",
"String getFilterName();",
"public List<FilterEnumeration> getFilterEnumerations(){\r\n\t\treturn this.filterConfig.getFilters();\r\n\t}",
"public Boolean filterEnabled() {\n return this.filterEnabled;\n }",
"@Override\n\tpublic Filter getFilter() {\n\t\tif (filter == null)\n\t\t\tfilter = new CountryFilter();\n\t\treturn filter;\n\t}",
"public String getFilter()\n {\n if ( \"\".equals( filterCombo.getText() ) ) //$NON-NLS-1$\n {\n return \"\"; //$NON-NLS-1$\n }\n parser.parse( filterCombo.getText() );\n return parser.getModel().isValid() ? filterCombo.getText() : null;\n }",
"public List<MessageFilter> getFilters();",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public String[] getFilterNames() {\r\n return this.filterNames;\r\n }",
"public abstract INexusFilterDescriptor getFilterDescriptor();",
"public String retrieveFilterAsJson() {\n return FilterMarshaller.toJson(getFilter());\n }",
"public cwterm.service.rigctl.xsd.Filter[] getFilters() {\n return localFilters;\n }",
"public String getFilter() {\n\t\treturn(\"PASS\");\n\t}",
"public String getTypeFilter()\r\n\t{\r\n\t\treturn this.typeFilter;\r\n\t}",
"public Hashtable getFilters() {\n // we need to build the hashtable dynamically\n return globalFilterSet.getFilterHash();\n }",
"@Override public Filter getFilter() { return null; }",
"public boolean getFilterState() {\n\t\treturn (filter_state);\n\t}",
"public FileNameExtensionFilter getExtensionFilter() {\r\n\t\treturn extensionFilter;\r\n\t}",
"public Filter getContactFilter();",
"public String getFilterLabel( )\n {\n return _strFilterLabel;\n }",
"public String getFilterCategory()\r\n\t{\n\t\treturn null;\r\n\t}",
"public String getFilterString() {\n if (filterManager == null) return \"\";\n \n // Get list of all filters.\n List<Filter<E>> filterList = filterManager.getFiltersInUse();\n \n // Create dump of all filters.\n StringBuilder buf = new StringBuilder();\n for (Filter<E> filter : filterList) {\n if (buf.length() > 0) buf.append(\", \"); \n buf.append(filter.toString());\n }\n \n return buf.toString();\n }",
"@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();",
"PropertiedObjectFilter<O> getFilter();",
"public ActionCriteria getUsageFilter() {\n\t\treturn usageFilter;\n\t}",
"public Filter getFilter(String name) {\n return (Filter) _filters.get(name);\n }",
"@Override\n public Filter getFilter() {\n return scenarioListFilter;\n }",
"@NotNull\n public Array<SceneFilter<?>> getFilters() {\n return filters;\n }",
"@ZAttr(id=255)\n public String getAuthLdapSearchFilter() {\n return getAttr(Provisioning.A_zimbraAuthLdapSearchFilter, null);\n }",
"FilterInfo getActiveFilterInfoForFilter(String filter_id);",
"@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }",
"public List<COSName> getFilters()\n {\n COSBase filters = stream.getFilters();\n if (filters instanceof COSName)\n {\n return Collections.singletonList((COSName) filters);\n } \n else if (filters instanceof COSArray)\n {\n return (List<COSName>)((COSArray) filters).toList();\n }\n return Collections.emptyList();\n }",
"public Map<String, Boolean> getFilteringResults() {\n return filteringResults;\n }",
"public static String getFilterPattern() {\n return FILTER_PATTERN;\n }",
"public List<COSName> getFilters() {\n/* 312 */ List<COSName> retval = null;\n/* 313 */ COSBase filters = this.stream.getFilters();\n/* 314 */ if (filters instanceof COSName) {\n/* */ \n/* 316 */ COSName name = (COSName)filters;\n/* 317 */ retval = new COSArrayList<COSName>(name, (COSBase)name, (COSDictionary)this.stream, COSName.FILTER);\n/* */ }\n/* 319 */ else if (filters instanceof COSArray) {\n/* */ \n/* 321 */ retval = ((COSArray)filters).toList();\n/* */ } \n/* 323 */ return retval;\n/* */ }",
"public Iterator<Filter> getFilters() {\n final Filter filter = privateConfig.loggerConfig.getFilter();\n if (filter == null) {\n return Collections.emptyIterator();\n } else if (filter instanceof CompositeFilter) {\n return ((CompositeFilter) filter).iterator();\n } else {\n final List<Filter> filters = new ArrayList<>();\n filters.add(filter);\n return filters.iterator();\n }\n }",
"public boolean getMayFilter () {\n\treturn mayFilter;\n }",
"public int getFilterMode(){ return mFilterMode;}",
"public ItemFilterHolder getFilterManager()\r\n\t{\r\n\t\treturn filterHolder;\r\n\t}",
"IViewFilter getViewFilter();",
"public List<Filter> getFilters() {\n List<Filter> filters = new ArrayList<>();\n JsonArray filterInfos = definition.getArray(FILTERS);\n if (filterInfos == null) {\n return filters;\n }\n\n for (Object filterInfo : filterInfos) {\n try {\n filters.add(Serializer.<Filter>deserialize((JsonObject) filterInfo));\n }\n catch (SerializationException e) {\n continue;\n }\n }\n return filters;\n }",
"public LocalTime getFilterTo() {\n return filterTo;\n }",
"public String[] getFilterExts() {\r\n return this.filterExts;\r\n }",
"private Filter readFilterComponent() {\n String word = readWord();\n if (word == null)\n {\n final String msg = String.format(\n \"End of input at position %d but expected a filter expression\",\n markPos);\n throw new IllegalArgumentException(msg);\n }\n\n\n final AttributePath filterAttribute;\n try {\n filterAttribute = AttributePath.parse(word, defaultSchema);\n } catch (final Exception e) {\n final String msg = String.format(\n \"Expected an attribute reference at position %d: %s\",\n markPos, e.getMessage());\n throw new IllegalArgumentException(msg);\n }\n\n final String operator = readWord();\n if (operator == null) {\n final String msg = String.format(\n \"End of input at position %d but expected an attribute operator\",\n markPos);\n throw new IllegalArgumentException(msg);\n }\n\n final Operator attributeOperator;\n try {\n attributeOperator = Operator.fromString(operator);\n } catch (Exception ex) {\n final String msg = String.format(\n \"Unrecognized attribute operator '%s' at position %d. \" +\n \"Expected: eq,co,sw,pr,gt,ge,lt,le\", operator, markPos);\n throw new IllegalArgumentException(msg);\n }\n final Object filterValue;\n if (!attributeOperator.equals(Operator.PRESENCE)) {\n filterValue = readValue();\n if (filterValue == null) {\n final String msg = String.format(\n \"End of input at position %d while expecting a value for \" +\n \"operator %s\", markPos, operator);\n throw new IllegalArgumentException(msg);\n }\n } else {\n filterValue = null;\n }\n\n final String filterValueString = (filterValue != null) ? filterValue.toString() : null;\n return new Filter(\n attributeOperator,\n filterAttribute,\n filterValueString,\n (filterValue != null) && (filterValue instanceof String),\n null);\n }",
"@Override\n public Filter getFilter() {\n return main_list_filter;\n }",
"protected List<Tuple<Operator, Property>> getPropertyFilters() {\n if (properties == null) {\n EntityDescriptor ed = getDescriptor();\n properties = filters.stream()\n .map(filter -> Tuple.create(filter.getFirst(), ed.getProperty(filter.getSecond())))\n .toList();\n }\n\n return Collections.unmodifiableList(properties);\n }",
"public Filter getInnerModelFilter()\n\t{\n\t\treturn innerModel.getFilter();\n\t}",
"public DataTableFilterType getFilterType( )\n {\n return _filterType;\n }",
"public List<String> getFileFilters()\n {\n COSBase filters = stream.getDictionaryObject(COSName.F_FILTER);\n if (filters instanceof COSName)\n {\n COSName name = (COSName) filters;\n return Collections.singletonList(name.getName());\n }\n else if (filters instanceof COSArray)\n {\n return ((COSArray) filters).toCOSNameStringList();\n }\n return Collections.emptyList();\n }",
"public final AfIPFilter getIPFilter() {\n return _ipFilter;\n }",
"@ZAttr(id=591)\n public String getGalSyncLdapFilter() {\n return getAttr(Provisioning.A_zimbraGalSyncLdapFilter, null);\n }",
"@Override\n\tpublic String name() {\n\t\treturn filter.name();\n\t}",
"Map<String, String> getFilters();",
"public static DiscoveryFilter discoveryFilter() {\n return new DiscoveryFilter(ID, \"FireTV\");\n }",
"@Override\n public Filter getFilter(String filterId) {\n return null;\n }",
"public String getDatabaseFilter() {\n\t\tSqlExpression expr = this.getFilterSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}",
"Update withFilter(EventChannelFilter filter);",
"private Filter getCustomFilter( ) {\n if(( customFilter != null ) \n ||( customFilterError ) )\n {\n return customFilter;\n }\n LogService logService = getLogService( );\n if( logService == null ) {\n return null;\n }\n String customFilterClassName = null;\n try {\n customFilterClassName = logService.getLogFilter( );\n customFilter = (Filter) getInstance( customFilterClassName );\n } catch( Exception e ) {\n customFilterError = true;\n new ErrorManager().error( \"Error In Instantiating Custom Filter \" +\n customFilterClassName, e, ErrorManager.GENERIC_FAILURE );\n }\n return customFilter;\n }",
"public List<String> getFileFilters() {\n/* 420 */ List<String> retval = null;\n/* 421 */ COSBase filters = this.stream.getDictionaryObject(COSName.F_FILTER);\n/* 422 */ if (filters instanceof COSName) {\n/* */ \n/* 424 */ COSName name = (COSName)filters;\n/* 425 */ retval = new COSArrayList<String>(name.getName(), (COSBase)name, (COSDictionary)this.stream, COSName.F_FILTER);\n/* */ \n/* */ }\n/* 428 */ else if (filters instanceof COSArray) {\n/* */ \n/* */ \n/* 431 */ retval = COSArrayList.convertCOSNameCOSArrayToList((COSArray)filters);\n/* */ } \n/* 433 */ return retval;\n/* */ }",
"public Collection<AbstractFilterPlugin> getFilters();"
] | [
"0.75218064",
"0.7497895",
"0.7344399",
"0.72597784",
"0.7232304",
"0.72284687",
"0.7099203",
"0.7089517",
"0.7084269",
"0.70397407",
"0.68994653",
"0.6854934",
"0.6808021",
"0.6684061",
"0.6649066",
"0.6649066",
"0.6649066",
"0.6645227",
"0.6628704",
"0.65640867",
"0.65444803",
"0.6495116",
"0.637843",
"0.6365502",
"0.63455063",
"0.63231045",
"0.6273258",
"0.6265419",
"0.62455505",
"0.62284935",
"0.62284935",
"0.62277496",
"0.622317",
"0.6212056",
"0.61939776",
"0.618828",
"0.61747295",
"0.617402",
"0.617402",
"0.6123378",
"0.6063524",
"0.6024363",
"0.60003096",
"0.59739745",
"0.59698516",
"0.5933769",
"0.5933769",
"0.5933769",
"0.59109634",
"0.5905324",
"0.59004575",
"0.5889326",
"0.58549714",
"0.58344996",
"0.5834232",
"0.5821717",
"0.58004135",
"0.5792092",
"0.5776115",
"0.5749176",
"0.5743272",
"0.5742998",
"0.57336646",
"0.5725465",
"0.5688068",
"0.568231",
"0.5681245",
"0.5674831",
"0.56648886",
"0.5628681",
"0.5628227",
"0.56165063",
"0.56047547",
"0.5593999",
"0.55895686",
"0.55824786",
"0.5573551",
"0.5572169",
"0.5562895",
"0.55018234",
"0.5501276",
"0.5455846",
"0.5455731",
"0.5446357",
"0.5446004",
"0.5445668",
"0.54237366",
"0.54103386",
"0.54042244",
"0.54040766",
"0.5401132",
"0.5386289",
"0.5380679",
"0.53741986",
"0.53676546",
"0.5366485",
"0.5354621",
"0.53533095",
"0.53512335",
"0.535005"
] | 0.6726712 | 13 |
Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer. | String partnerTopicFriendlyDescription(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"com.google.ads.googleads.v6.resources.TopicConstantOrBuilder getTopicConstantOrBuilder();",
"com.google.ads.googleads.v6.resources.TopicConstant getTopicConstant();",
"String getDetailedDescription() {\n return context.getString(detailedDescription);\n }",
"public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }",
"public String getTopic() {\n Object ref = topic_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public io.dstore.values.StringValue getCharacteristicDescription() {\n if (characteristicDescriptionBuilder_ == null) {\n return characteristicDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : characteristicDescription_;\n } else {\n return characteristicDescriptionBuilder_.getMessage();\n }\n }",
"public String getTopic() {\n return this.topic;\n }",
"public com.commercetools.api.models.common.LocalizedString getDescription() {\n return this.description;\n }",
"@Override\n public String getTopic() {\n Object ref = topic_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n }\n }",
"public String getTopic() {\r\n return null;\r\n }",
"public String getDescription() {\n return getString(KEY_DESCRIPTION);\n }",
"public String getTopicName() {\n return topicName;\n }",
"@Nullable\n public StringProp getContentDescription() {\n if (mImpl.hasContentDescription()) {\n return StringProp.fromProto(mImpl.getContentDescription());\n } else {\n return null;\n }\n }",
"public String getPartDesc(){\n\t\treturn partDesc;\n\t}",
"String getDescription() {\n if (description == null) {\n return null;\n }\n if (basicControl) {\n return String.format(\"%s %s\", context.getString(description), context.getString(R.string.basicControl));\n }\n return context.getString(description);\n }",
"public String getTopic() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_topic == null)\n jcasType.jcas.throwFeatMissing(\"topic\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_topic);}",
"public String getTopic() {\n return topic;\n }",
"@Nullable\n public String getDescription() {\n return this.description;\n }",
"public String getHumanReadableDescription();",
"public String getTopic() {\n return topic;\n }",
"public String getTopicName() {\n if (topicName.isPresent()) {\n return topicName.get();\n }\n return null;\n }",
"public String getTopic() {\n\t\treturn topic;\n\t}",
"@Nullable\n public String getDescription() {\n return mDescription;\n }",
"public Optional<String> getDescription() {\n\t\treturn Optional.ofNullable(_description);\n\t}",
"public Optional<String> getDescription() {\n\t\treturn Optional.ofNullable(_description);\n\t}",
"@Nullable\n public abstract String getDescription();",
"final public String getShortDesc()\n {\n return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));\n }",
"public String getDescription() {\n if ((desc == null) && (forVar != null)) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.LONG_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(\"description\");\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CDM.TITLE);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n\n if (desc == null) {\n att = forVar.findAttributeIgnoreCase(CF.STANDARD_NAME);\n if ((att != null) && att.isString())\n desc = att.getStringValue();\n }\n }\n return (desc == null) ? null : desc.trim();\n }",
"public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }",
"public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }",
"public io.dstore.values.StringValue getCharacteristicDescription() {\n return characteristicDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : characteristicDescription_;\n }",
"public java.lang.String getDescription()\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(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"String getTopic();",
"String getTopic();",
"public String description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }",
"public String description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }",
"public String description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }",
"public String description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }",
"public java.lang.String getDescription()\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(DESCRIPTION$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public Optional<String> getDescription() {\n return Optional.ofNullable(description);\n }",
"@NonNull\n public String getShortDescription() {\n return shortDescription;\n }",
"@Nullable\n public String getDescription() {\n return description;\n }",
"@Nullable\n public String getDescription() {\n return description;\n }",
"public io.dstore.values.StringValueOrBuilder getCharacteristicDescriptionOrBuilder() {\n if (characteristicDescriptionBuilder_ != null) {\n return characteristicDescriptionBuilder_.getMessageOrBuilder();\n } else {\n return characteristicDescription_ == null ?\n io.dstore.values.StringValue.getDefaultInstance() : characteristicDescription_;\n }\n }",
"public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }",
"public String getDescription() {\n\t\tif (description == null)\n\t\t\treturn \"No description\";\n\t\treturn description;\n\t}",
"public java.lang.String getDescription() {\n return localDescription;\n }",
"public String getDescriptionText() {\n return m_DescriptionText;\n }",
"public java.lang.String getDescription()\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(DESCRIPTION$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"com.google.ads.googleads.v6.resources.TopicView getTopicView();",
"public Optional<String> desc() {\n\t\t\treturn Optional.ofNullable(_description);\n\t\t}",
"public String getDescription()\r\n {\r\n return getSemanticObject().getProperty(swb_description);\r\n }",
"@Override\n\tpublic String getLongDescription() {\n\t\treturn this.getShortDescription();\n\t}",
"java.lang.String getDesc();",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\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 description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getDescription() {\n\t\tif (iDescription == null) {\n\n\t\t\tif (iExtendedReason != null) {\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint i = 0;\n\n\t\t\t\tsb.append('(');\n\t\t\t\tsb.append(iReason);\n\t\t\t\tsb.append(\": \");\n\t\t\t\tfor (; i < iExtendedReason.length - 1; i++) {\n\t\t\t\t\tif (iExtendedReason[i] != null) {\n\t\t\t\t\t\tsb.append(iExtendedReason[i].toString());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsb.append(\"null\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(',');\n\t\t\t\t}\n\t\t\t\tsb.append(iExtendedReason[i]);\n\t\t\t\tsb.append(')');\n\t\t\t\tsb.insert(0, iReason);\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t\treturn iReason;\n\t\t}\n\t\treturn iDescription;\n\t}",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getDescription() {\n Object ref = description_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Topic getTopic() {\n\t\treturn topic;\n\t}",
"public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }",
"public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }",
"public Description description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }",
"public String toDescriptionString() {\n return super.toDescriptionString();\n }",
"public String getDescription() {\n return (desc);\n }",
"@ApiModelProperty(value = \"Provides a description of this resource and is used for commonality in the schema definitions.\")\n @JsonProperty(\"Description\")\n public String getDescription() {\n return description;\n }",
"@Override\n\t@Column(name = \"leadTypeDescription\", length = 128, nullable = true)\n\tpublic String getDescription()\n\t{\n\t\treturn super.getDescription();\n\t}",
"@org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getDescription();",
"public java.lang.String getDesc()\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(DESC$10);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n description_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\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 description_ = s;\n return s;\n }\n }",
"public java.lang.String getDescription() {\n java.lang.Object ref = description_;\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 description_ = s;\n }\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getTopicBytes() {\n Object ref = topic_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n topic_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public com.google.protobuf.ByteString\n getTopicBytes() {\n Object ref = topic_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n topic_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}",
"public String getProductCategoryDesc() {\n return (String)getAttributeInternal(PRODUCTCATEGORYDESC);\n }",
"public String getGeneralDescription() {\r\n return generalDescription;\r\n }",
"public long getTopic() {\n return topic_;\n }",
"public long getTopic() {\n return topic_;\n }",
"@Nullable\n public abstract String description();",
"public String getDescription() {\n\t\tString t = doc.get(\"description\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public String getShortDescription() {\r\n\t\treturn shortDescription;\r\n\t}",
"@NonNull\n public String getDescription() {\n return description;\n }",
"@NonNull\n public String getDescription() {\n return description;\n }",
"@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getDescription() {\n java.lang.Object ref = description_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n description_ = s;\n return s;\n }\n }",
"public Topic getTopic() {\n return topic;\n }"
] | [
"0.63572747",
"0.61931825",
"0.6080842",
"0.58741385",
"0.5602521",
"0.5562214",
"0.5441472",
"0.5432503",
"0.54095775",
"0.5367226",
"0.53602624",
"0.5357362",
"0.53168917",
"0.5297393",
"0.5289184",
"0.527874",
"0.5271789",
"0.5255813",
"0.52409875",
"0.5240811",
"0.5235032",
"0.5225093",
"0.521629",
"0.5209489",
"0.5205702",
"0.51683193",
"0.5167169",
"0.51629776",
"0.51629776",
"0.516136",
"0.51522034",
"0.5150456",
"0.5146098",
"0.5143707",
"0.51429933",
"0.513889",
"0.5135753",
"0.5135753",
"0.51312006",
"0.51312006",
"0.51312006",
"0.51312006",
"0.5121183",
"0.51161903",
"0.51097155",
"0.5103022",
"0.5103022",
"0.5089551",
"0.507628",
"0.50709915",
"0.5065912",
"0.5065771",
"0.50440085",
"0.5042804",
"0.5036381",
"0.50304973",
"0.5026384",
"0.5025303",
"0.50251406",
"0.502045",
"0.50106084",
"0.50106084",
"0.50106084",
"0.50106084",
"0.50106084",
"0.50025105",
"0.49910563",
"0.4988477",
"0.49877965",
"0.49826112",
"0.49733123",
"0.49637556",
"0.4960266",
"0.49596834",
"0.4951036",
"0.49502575",
"0.49498725",
"0.49496427",
"0.49479225",
"0.4946733",
"0.49440008",
"0.49409947",
"0.49409947",
"0.49409947",
"0.49409947",
"0.49363995",
"0.493",
"0.49296933",
"0.49285224",
"0.49259922",
"0.49239412",
"0.4921724",
"0.4920715",
"0.4920715",
"0.49079975",
"0.49079975",
"0.49079975",
"0.49079975",
"0.49079975",
"0.4902592"
] | 0.8110356 | 0 |
Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object. | EventChannelInner innerModel(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}",
"public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}",
"public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}",
"public String getChannelId()\r\n\t{\r\n\t\treturn this.sChannelId;\r\n\t}",
"public io.grpc.channelz.v1.ChannelOrBuilder getChannelOrBuilder(\n int index) {\n if (channelBuilder_ == null) {\n return channel_.get(index); } else {\n return channelBuilder_.getMessageOrBuilder(index);\n }\n }",
"public String getChannelId() {\n return channelId;\n }",
"EzyChannel getChannel();",
"public String getChannelId() {\n\t\treturn channelId;\n\t}",
"public MessageChannel getGameChannel() {\r\n\t\treturn gameChannel;\r\n\t}",
"public Channel getChannel()\n {\n return channel;\n }",
"public String getChannelId()\n {\n return channelId;\n }",
"public NotificationsChannel getChannel(String channelId) throws Exception;",
"public io.grpc.channelz.v1.ChannelOrBuilder getChannelOrBuilder(\n int index) {\n return channel_.get(index);\n }",
"EventChannel create();",
"public SocketChannel getChannel() {\n return channel;\n }",
"public io.grpc.channelz.v1.Channel getChannel(int index) {\n if (channelBuilder_ == null) {\n return channel_.get(index);\n } else {\n return channelBuilder_.getMessage(index);\n }\n }",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Channel getChannel() throws ConnectException\n {\n return getChannel(null);\n }",
"public String getChannelName()\r\n\t{\r\n\t\treturn this.sChannelName;\r\n\t}",
"public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n return s;\n }\n }",
"protected Channel getChannel()\n {\n return mChannel;\n }",
"Channel channel() {\n return channel;\n }",
"public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public SodiumChannel getSodiumChannel() {\n\t\t\treturn sodiumChannel;\n\t\t}",
"public String getChannel() {\n\t\treturn channel;\n\t}",
"public String getChannel() {\n\t\treturn channel;\n\t}",
"public Channel getChannel() {\n return channel;\n }",
"public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public ContestChannel getContestChannel(long contestChannelId) throws ContestManagementException {\r\n return null;\r\n }",
"public String getChannel() {\r\n return channel;\r\n }",
"public String getChannel() {\n return channel;\n }",
"public java.lang.String getChannelId() {\n java.lang.Object ref = channelId_;\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 channelId_ = s;\n return s;\n }\n }",
"public Integer getChannelid() {\n return channelid;\n }",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"public String getChannelCode() {\n return channelCode;\n }",
"@NonNull\n public EventModel getEvent() {\n return mEvent;\n }",
"@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();",
"public int getChannelId( ) {\r\n return channelId;\r\n }",
"public java.lang.String getChannelId() {\n java.lang.Object ref = channelId_;\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 channelId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getChannel() {\r\n\t\treturn channel;\r\n\t}",
"public String getCHANNEL_ID() {\n return CHANNEL_ID;\n }",
"public java.util.List<? extends io.grpc.channelz.v1.ChannelOrBuilder> \n getChannelOrBuilderList() {\n if (channelBuilder_ != null) {\n return channelBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(channel_);\n }\n }",
"public io.grpc.channelz.v1.Channel getChannel(int index) {\n return channel_.get(index);\n }",
"public VideoChannel getVideoChannel()\n {\n WeakReference<VideoChannel> wvc = this.weakVideoChannel;\n return wvc != null ? wvc.get() : null;\n }",
"EventChannel create(Context context);",
"public org.apache.axis.types.UnsignedInt getChannel() {\n return channel;\n }",
"public Event getEvent() {\n\t\treturn event;\n\t}",
"public static ChatChannel getChannel(final String channelName) {\n if (ChatManager.channels.containsKey(channelName))\n return ChatManager.channels.get(channelName);\n else\n return null;\n }",
"public ChannelID getChannelID() {\n return channelID1;\n }",
"public static EventClient getEventClient() {\n if (EVENT_CLIENT == null) {\n EVENT_CLIENT = new NetworkEventClient(\n NetworkProvider.SERVER_URL,\n new DefaultNetworkProvider());\n }\n return EVENT_CLIENT;\n }",
"public com.google.protobuf.ByteString\n getChannelIdBytes() {\n java.lang.Object ref = channelId_;\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 channelId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Integer getChannelCode() {\n return channelCode;\n }",
"public java.util.List<? extends io.grpc.channelz.v1.ChannelOrBuilder> \n getChannelOrBuilderList() {\n return channel_;\n }",
"public com.google.protobuf.ByteString\n getChannelIdBytes() {\n java.lang.Object ref = channelId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channelId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Component getComponent() throws WebdavException {\n init(true);\n\n try {\n if ((event != null) && (comp == null)) {\n if (ical == null) {\n ical = getSysi().toCalendar(event,\n (col.getCalType() == CalDAVCollection.calTypeInbox) ||\n (col.getCalType() == CalDAVCollection.calTypeOutbox));\n }\n\n final var cl = ical.getComponents();\n\n if ((cl == null) || (cl.isEmpty())) {\n return null;\n }\n\n // XXX Wrong - should just use the BwEvent + overrides?\n comp = cl.get(0);\n }\n } catch (final Throwable t) {\n throw new WebdavException(t);\n }\n\n return comp;\n }",
"public Event getEvent(){\n\t\t\treturn event;\n\t\t}",
"public String getSubChannel() {\r\n\t\treturn this.subChannel;\r\n\t}",
"public Constants.LongPollEvent getEvent() {\n if (this == DROP_MESSAGE) return Constants.LongPollEvent.FILTERED_CHAT;\n else return null;\n }",
"public int getChannel() {\n return channel;\n }",
"public Object getEvent() {\r\n return event;\r\n }",
"@ApiModelProperty(value = \"Channel where the Order comes from\")\n public Channel getChannel() {\n return channel;\n }",
"public String getEventMessage() {\n return eventMessage;\n }",
"public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }",
"public ChannelFuture getChannelFuture() {\n return channelFuture;\n }",
"private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }",
"public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}",
"public ChannelLogger getChannelLogger() {\n return this.channelLogger;\n }",
"public java.util.List<io.grpc.channelz.v1.Channel> getChannelList() {\n if (channelBuilder_ == null) {\n return java.util.Collections.unmodifiableList(channel_);\n } else {\n return channelBuilder_.getMessageList();\n }\n }",
"java.lang.String getChannelId();",
"com.google.ads.googleads.v14.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder();",
"public Byte getChannel() {\n return channel;\n }",
"protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}",
"public CalDAVEvent<?> getEvent() throws WebdavException {\n init(true);\n\n return event;\n }",
"public io.grpc.channelz.v1.Channel.Builder getChannelBuilder(\n int index) {\n return getChannelFieldBuilder().getBuilder(index);\n }",
"public ChannelManager getChannelManager() {\n return channelMgr;\n }",
"public String getChannel() {\n if(this.isRFC2812())\n return this.getNumericArg(1);\n else\n return this.getNumericArg(0);\n }",
"public java.lang.String getEventId() {\n return eventId;\n }",
"@Override\n\tpublic String getChannelId()\n\t{\n\t\treturn null;\n\t}",
"public java.lang.String getEventId() {\n return eventId;\n }",
"public ServerScheduledEventBuilder setChannelId(Long channelId) {\n delegate.setChannelId(channelId);\n return this;\n }",
"public ChannelType getChannelType() {\n return type;\n }",
"@XmlAttribute(name = \"channel\")\n public String getChannelName()\n {\n return mChannelName;\n }",
"@Override\n public void onMessageReceived(MessageReceivedEvent event)\n {\n JDA jda = event.getJDA(); //JDA, the core of the api.\n long responseNumber = event.getResponseNumber();//The amount of discord events that JDA has received since the last reconnect.\n\n //Event specific information\n User author = event.getAuthor(); //The user that sent the message\n Message message = event.getMessage(); //The message that was received.\n MessageChannel channel = event.getChannel(); //This is the MessageChannel that the message was sent to.\n // This could be a TextChannel, PrivateChannel, or Group!\n\n String msg = message.getContentDisplay(); //This returns a human readable version of the Message. Similar to\n // what you would see in the client.\n\n boolean bot = author.isBot(); //This boolean is useful to determine if the User that\n // sent the Message is a BOT or not!\n\n if (event.isFromType(ChannelType.TEXT)) //If this message was sent to a Guild TextChannel\n {\n //Because we now know that this message was sent in a Guild, we can do guild specific things\n // Note, if you don't check the ChannelType before using these methods, they might return null due\n // the message possibly not being from a Guild!\n\n Guild guild = event.getGuild(); //The Guild that this message was sent in. (note, in the API, Guilds are Servers)\n TextChannel textChannel = event.getTextChannel(); //The TextChannel that this message was sent to.\n Member member = event.getMember(); //This Member that sent the message. Contains Guild specific information about the User!\n\n String name;\n if (message.isWebhookMessage())\n {\n name = author.getName(); //If this is a Webhook message, then there is no Member associated\n } // with the User, thus we default to the author for name.\n else\n {\n name = member.getEffectiveName(); //This will either use the Member's nickname if they have one,\n } // otherwise it will default to their username. (User#getName())\n\n System.out.printf(\"(%s)[%s]<%s>: %s\\n\", guild.getName(), textChannel.getName(), name, msg);\n }\n else if (event.isFromType(ChannelType.PRIVATE)) //If this message was sent to a PrivateChannel\n {\n //The message was sent in a PrivateChannel.\n //In this example we don't directly use the privateChannel, however, be sure, there are uses for it!\n PrivateChannel privateChannel = event.getPrivateChannel();\n\n System.out.printf(\"[PRIV]<%s>: %s\\n\", author.getName(), msg);\n }\n else if (event.isFromType(ChannelType.GROUP)) //If this message was sent to a Group. This is CLIENT only!\n {\n //The message was sent in a Group. It should be noted that Groups are CLIENT only.\n Group group = event.getGroup();\n String groupName = group.getName() != null ? group.getName() : \"\"; //A group name can be null due to it being unnamed.\n\n System.out.printf(\"[GRP: %s]<%s>: %s\\n\", groupName, author.getName(), msg);\n }\n //calls specific (working) commands to call from command files\n commands.caseratis.Commands.pwing(msg, channel);\n\n commands.katekat.Commands.psing(msg, channel);\n\n commands.lwbuchanan.Commands.pzing(msg, channel);\n\n commands.notahackr.Commands.poing(msg, channel);\n\n commands.redmario.Commands.pxing(msg, channel);\n\n commands.thebriankong.Commands.paing(msg, channel);\n\n commands.thebuttermatrix.Commands.ping(msg, channel);\n commands.thebuttermatrix.Commands.countdown(msg, channel);\n commands.thebuttermatrix.Commands.pid(msg, channel);\n\n commands.raybipse.Master.messageReceived(msg, channel, event);\n }",
"public ReadableByteChannel getByteChannel() throws IOException {\n InputStream source = getInputStream();\n \n if(source != null) {\n return Channels.newChannel(source);\n }\n return null;\n }",
"public SocketChannel getChannel() { return null; }",
"public SoEvent getEvent() {\n\t\treturn (eventAction != null ? eventAction.getEvent() : null); \n\t}",
"private SmartCardChannel getChannel() throws UsbDeviceException, NotAvailableUSBDeviceException{\n\t\tif(this.channel != null){\n\t\t\treturn this.channel;\n\t\t}\n\t\tif(getUsbInterface() != null){\n\t\t\tif (!getUsbDeviceConnection().claimInterface(getUsbInterface(), true)) {\n\t\t\t\tthrow new NotAvailableUSBDeviceException(\"Imposible acceder al interfaz del dispositivo USB\"); //$NON-NLS-1$\n\t\t\t}\n\t\t\tthis.channel = new SmartCardChannel(getUsbDeviceConnection(), getUsbInterface());\n\t\t\treturn this.channel;\n\t\t}\n\t\tthrow new UsbDeviceException(\"usbInterface cannot be NULL\"); //$NON-NLS-1$\n\t}",
"Event getE();",
"public Event getEvent(long event_id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n String selectQuery = \"SELECT * FROM \" + EVENTS_TABLE_NAME + \" WHERE \"\n + KEY_ID + \" = \" + event_id;\n\n Log.e(LOG, selectQuery);\n\n Cursor c = db.rawQuery(selectQuery, null);\n\n if (c != null)\n c.moveToFirst();\n\n Event event = new Event();\n event.setId(c.getInt(c.getColumnIndex(KEY_ID)));\n event.setEventName((c.getString(c.getColumnIndex(EVENT_NAME))));\n event.setDate(c.getString(c.getColumnIndex(EVENT_DATE)));\n\n return event;\n }",
"SocketChannel getChannel();",
"public ServletContextEvent getEvent() {\r\n\t\treturn (ServletContextEvent) eventHolder.get();\r\n\t}",
"public static Channel getChannel(int channel)\n {\n for (Channel c : Channel.values())\n if (channel == c.ordinal())\n return c;\n throw new IllegalArgumentException(\"Invalid speaker channel \" + channel + \". It must be 0 <= channel <= \" + SUB_WOOFER + \".\");\n }",
"public String getEventClass() {\n return eventClass;\n }",
"@Override\n public int getChannel()\n {\n return channel;\n }",
"java.lang.String getChannel();"
] | [
"0.5699679",
"0.54824644",
"0.548043",
"0.5416923",
"0.5372167",
"0.53670627",
"0.5336177",
"0.5323463",
"0.52975243",
"0.52942914",
"0.5272412",
"0.5260648",
"0.52552927",
"0.52354705",
"0.52196133",
"0.520506",
"0.5201636",
"0.51799804",
"0.5171658",
"0.51608866",
"0.5153778",
"0.51440096",
"0.51224893",
"0.51053715",
"0.51049006",
"0.5099486",
"0.50895935",
"0.5080744",
"0.5079863",
"0.5074829",
"0.5074829",
"0.5053764",
"0.50347406",
"0.5000286",
"0.4992619",
"0.49851045",
"0.49651834",
"0.4944756",
"0.4918434",
"0.4905951",
"0.49042752",
"0.49039844",
"0.48997185",
"0.48792776",
"0.48707297",
"0.4857561",
"0.4856669",
"0.48356465",
"0.48293495",
"0.48289153",
"0.48266932",
"0.480779",
"0.48035237",
"0.4794532",
"0.47932813",
"0.47876203",
"0.47865778",
"0.47433496",
"0.47367817",
"0.47105515",
"0.47101307",
"0.4695388",
"0.46695358",
"0.46653983",
"0.46629688",
"0.4659321",
"0.46579412",
"0.46475095",
"0.46474284",
"0.4641593",
"0.46364906",
"0.463617",
"0.4625274",
"0.4617024",
"0.46098685",
"0.4598042",
"0.4596991",
"0.45677257",
"0.4566947",
"0.45596334",
"0.45515412",
"0.45390347",
"0.45368642",
"0.45342875",
"0.45232207",
"0.45217144",
"0.45175368",
"0.45021093",
"0.44993955",
"0.449449",
"0.44893622",
"0.4486575",
"0.44845572",
"0.4478923",
"0.44634455",
"0.4448167",
"0.44440326",
"0.44416723",
"0.44319278",
"0.44286087"
] | 0.6076334 | 0 |
The entirety of the EventChannel definition. | interface Definition
extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannel create();",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"public Channel() {\n this(DSL.name(\"channel\"), null);\n }",
"EventChannel create(Context context);",
"public ChannelDetails() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"EventChannelDestination destination();",
"EzyChannel getChannel();",
"EventChannelSource source();",
"@Override\n public int getChannel()\n {\n return channel;\n }",
"EventChannelInner innerModel();",
"public Channel getChannel()\n {\n return channel;\n }",
"public Channel getChannel() {\n return channel;\n }",
"public ChannelDesc(SocketChannel channel) {\n this.channel = channel;\n }",
"@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}",
"public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"EventChannel apply();",
"public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}",
"public String getChannel() {\r\n return channel;\r\n }",
"Channel channel() {\n return channel;\n }",
"public String getChannel() {\n return channel;\n }",
"public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }",
"public interface ChannelClosedEventListener extends ChannelEventListener {\r\n\t/**\r\n\t * This method will fired when xsi channel is closed.\r\n\t */\r\n\tvoid xsiChannelClosed();\r\n}",
"public interface Event\n\t{\n\t\tpublic static final String EVENT_ID = \"aether.event.id\";\n\t\tpublic static final String TIME = \"aether.event.time\";\n\t\tpublic static final String EVENT_TYPE = \"aether.event.type\";\n\t}",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"public String getChannel() {\n\t\treturn channel;\n\t}",
"public String getChannel() {\n\t\treturn channel;\n\t}",
"WithCreate withDestination(EventChannelDestination destination);",
"public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}",
"public int getChannel() {\r\n\t\treturn channel;\r\n\t}",
"public interface ChannelConfiguration {\n\n\t/**\n\t * Channel manager should use driver in listening mode\n\t */\n\tpublic static final long LISTEN_FOR_UPDATE = -1;\n\n\t/**\n\t * ChannelManager should use driver in comand mode, with no periodic reading or listening.\n\t */\n\tpublic static final long NO_READ_NO_LISTEN = 0;\n\n\t/**\n\t * Get the ChannelLocator associated with this ChannelConfiguration\n\t * \n\t * @return ChannelLocator\n\t */\n\tpublic ChannelLocator getChannelLocator();\n\n\t/**\n\t * Get the DeviceLocator associated with this ChannelConfiguration\n\t * \n\t * @return DeviceLocator\n\t */\n\tpublic DeviceLocator getDeviceLocator();\n\n\t/**\n\t * Direction of the Channel, <br>\n\t * INPUT = read the values from channel <br>\n\t * OUTPUT = write values at the channel\n\t */\n\tpublic enum Direction {\n\t\tDIRECTION_INPUT, /* from gateways point of view */\n\t\tDIRECTION_OUTPUT, DIRECTION_INOUT\n\t}\n\n\t/**\n\t * Get the sampling period (in milliseconds)\n\t * @return the sampling period in ms\n\t */\n\tpublic long getSamplingPeriod();\n\n\t/**\n\t * \n\t * @return the Direction of Channel\n\t */\n\tpublic Direction getDirection();\n}",
"public EmbeddedChannel(ChannelId channelId) {\n/* 91 */ this(channelId, EMPTY_HANDLERS);\n/* */ }",
"Update withDestination(EventChannelDestination destination);",
"public int getChannel() {\n return channel;\n }",
"@ApiModelProperty(value = \"Channel where the Order comes from\")\n public Channel getChannel() {\n return channel;\n }",
"protected Channel getChannel()\n {\n return mChannel;\n }",
"WithCreate withSource(EventChannelSource source);",
"public interface EventDefinition extends EObject {\r\n}",
"EventChannel.Update update();",
"void setChannel(EzyChannel channel);",
"public int getChannelConfig() {\n return 0;\n }",
"public void setChannel(Channel channel)\n {\n this.channel = channel;\n }",
"public ChannelConfig method_4104() {\n return null;\n }",
"@Override\n\tpublic String getChannelId()\n\t{\n\t\treturn null;\n\t}",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"public SocketChannel getChannel() {\n return channel;\n }",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public EmbeddedChannel(ChannelId channelId, ChannelHandler... handlers) {\n/* 135 */ this(channelId, false, handlers);\n/* */ }",
"public Byte getChannel() {\n return channel;\n }",
"public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }",
"public interface EventOrBuilder extends MessageLiteOrBuilder {\n C7351j getEntity();\n\n C7280e getOp();\n\n int getOpValue();\n\n boolean hasEntity();\n }",
"public int getChannelId( ) {\r\n return channelId;\r\n }",
"public EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelConfig config, ChannelHandler... handlers) {\n/* 182 */ super(null, channelId);\n/* 183 */ this.metadata = metadata(hasDisconnect);\n/* 184 */ this.config = (ChannelConfig)ObjectUtil.checkNotNull(config, \"config\");\n/* 185 */ setup(true, handlers);\n/* */ }",
"java.lang.String getChannel();",
"public String getChannelName()\r\n\t{\r\n\t\treturn this.sChannelName;\r\n\t}",
"public String getChannelId()\n {\n return channelId;\n }",
"protected ICEvent() {}",
"EventChannel apply(Context context);",
"public String getChannelId() {\n return channelId;\n }",
"public String getChannelId() {\n\t\treturn channelId;\n\t}",
"public String getChannelId()\r\n\t{\r\n\t\treturn this.sChannelId;\r\n\t}",
"@XmlAttribute(name = \"channel\")\n public String getChannelName()\n {\n return mChannelName;\n }",
"public Channel(String name) {\n this.name = name;\n q = new ArrayBlockingQueue(1);\n senderMonitor = new Object();\n\n }",
"public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }",
"@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();",
"public int getChannelType( ) {\r\n return 1;\r\n }",
"public EventMessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelHandler... handlers) {\n/* 148 */ this(channelId, true, hasDisconnect, handlers);\n/* */ }",
"public EmbeddedChannel(ChannelId channelId, boolean register, boolean hasDisconnect, ChannelHandler... handlers) {\n/* 164 */ super(null, channelId);\n/* 165 */ this.metadata = metadata(hasDisconnect);\n/* 166 */ this.config = (ChannelConfig)new DefaultChannelConfig((Channel)this);\n/* 167 */ setup(register, handlers);\n/* */ }",
"public Event() {\n }",
"public Event() {\n }",
"public interface MessageInputChannel extends\r\n Channel<MessageInput, MessageInputChannelAPI>, OneDimensional, MessageCallback {\r\n\r\n}",
"public Event() {\r\n\r\n\t}",
"public Event() {}",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setChannel(Byte channel) {\n this.channel = channel;\n }",
"public CmsEventQueueRecord() {\n super(CmsEventQueue.CMS_EVENT_QUEUE);\n }",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Event(){\n \n }",
"public interface MDDChannelListener {\r\n /**\r\n * Called on receipt of CHANNEL events\r\n * @param channel String containing the name of the channel\r\n * @param title String containing the title of the program\r\n * @param subtitle String containing the subtitle of the program\r\n */\r\n public void onChannel(String channel, String title, String subtitle);\r\n /**\r\n * Called on receipt of PROGRESS events\r\n * @param pos int representing current position\r\n */\r\n public void onProgress(int pos);\r\n /**\r\n * Called on receipt of EXIT event\r\n */\r\n public void onExit();\r\n}",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}",
"private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"public interface Event {\n public static final String NAMESPACE = \"http://purl.org/NET/c4dm/event.owl#\";\n\n // classes\n public static final URI\n Event = new URIImpl(NAMESPACE + \"Event\"),\n Factor = new URIImpl(NAMESPACE + \"Factor\"),\n Product = new URIImpl(NAMESPACE + \"Product\");\n\n // properties\n public static final URI\n agent = new URIImpl(NAMESPACE + \"agent\"),\n agent_in = new URIImpl(NAMESPACE + \"agent_in\"),\n factor = new URIImpl(NAMESPACE + \"factor\"),\n factor_of = new URIImpl(NAMESPACE + \"factor_of\"),\n hasAgent = new URIImpl(NAMESPACE + \"hasAgent\"),\n hasFactor = new URIImpl(NAMESPACE + \"hasFactor\"),\n hasLiteralFactor = new URIImpl(NAMESPACE + \"hasLiteralFactor\"),\n hasProduct = new URIImpl(NAMESPACE + \"hasProduct\"),\n hasSubEvent = new URIImpl(NAMESPACE + \"hasSubEvent\"),\n isAgentIn = new URIImpl(NAMESPACE + \"isAgentIn\"),\n isFactorOf = new URIImpl(NAMESPACE + \"isFactorOf\"),\n literal_factor = new URIImpl(NAMESPACE + \"literal_factor\"),\n place = new URIImpl(NAMESPACE + \"place\"),\n producedIn = new URIImpl(NAMESPACE + \"producedIn\"),\n produced_in = new URIImpl(NAMESPACE + \"produced_in\"),\n product = new URIImpl(NAMESPACE + \"product\"),\n sub_event = new URIImpl(NAMESPACE + \"sub_event\"),\n time = new URIImpl(NAMESPACE + \"time\");\n}",
"public interface ChannelBuilder {\n\n /**\n * Configure this class with the given key-value pairs\n */\n void configure(Map<String, ?> configs) throws KafkaException;\n\n\n /**\n * returns a Channel with TransportLayer and Authenticator configured.\n * @param id channel id\n * @param key SelectionKey\n */\n KafkaChannel buildChannel(String id, SelectionKey key, int maxReceiveSize) throws KafkaException;\n\n\n /**\n * Closes ChannelBuilder\n */\n void close();\n\n}",
"public Channel(Name alias) {\n this(alias, CHANNEL);\n }",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public io.grpc.channelz.v1.Channel.Builder addChannelBuilder() {\n return getChannelFieldBuilder().addBuilder(\n io.grpc.channelz.v1.Channel.getDefaultInstance());\n }",
"public String getCHANNEL_ID() {\n return CHANNEL_ID;\n }",
"public Event() {\n\t}",
"public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public io.grpc.channelz.v1.ChannelOrBuilder getChannelOrBuilder(\n int index) {\n return channel_.get(index);\n }",
"public Integer getChannelid() {\n return channelid;\n }",
"public Connection(Channel channel) {\r\n this.channel = channel;\r\n }",
"public String getChannelCode() {\n return channelCode;\n }",
"public ChannelDescriptor(Channel channel) throws InvalidValueException {\n this(channel, getModesFromChannel(channel), new FileDescriptor());\n }",
"public void SetChannel(int channel);",
"public Channel(String alias) {\n this(DSL.name(alias), CHANNEL);\n }"
] | [
"0.7664215",
"0.7148408",
"0.64886624",
"0.6457174",
"0.6378573",
"0.6361432",
"0.6335593",
"0.6252849",
"0.6246585",
"0.62239",
"0.6192099",
"0.617797",
"0.6122899",
"0.6093169",
"0.609277",
"0.60858876",
"0.607707",
"0.60683566",
"0.6062374",
"0.60599667",
"0.60107136",
"0.6007995",
"0.60034233",
"0.598095",
"0.5966581",
"0.5957726",
"0.5957726",
"0.59306854",
"0.59279686",
"0.5906476",
"0.59044784",
"0.58680904",
"0.58411163",
"0.5838365",
"0.5827801",
"0.5824641",
"0.58231586",
"0.58152133",
"0.5807939",
"0.5803709",
"0.5799031",
"0.5798776",
"0.57920015",
"0.5754357",
"0.5737737",
"0.5729943",
"0.57275134",
"0.5724961",
"0.56926346",
"0.56633955",
"0.5658161",
"0.565246",
"0.5646966",
"0.5646369",
"0.5642748",
"0.5639163",
"0.56359583",
"0.56247956",
"0.5624091",
"0.56201893",
"0.5590043",
"0.55757076",
"0.55487865",
"0.5545627",
"0.55430883",
"0.5538665",
"0.55342686",
"0.5525258",
"0.55249834",
"0.5520745",
"0.5515537",
"0.5515537",
"0.5478471",
"0.5468447",
"0.5461352",
"0.5457899",
"0.54512566",
"0.54425174",
"0.54362905",
"0.5433627",
"0.542426",
"0.54019165",
"0.53901935",
"0.53897107",
"0.53897107",
"0.53881484",
"0.5386106",
"0.5385674",
"0.53848314",
"0.53845614",
"0.53808403",
"0.53796065",
"0.5376427",
"0.5374388",
"0.53732514",
"0.5358214",
"0.53464043",
"0.5343888",
"0.53357464",
"0.5330135",
"0.5318914"
] | 0.0 | -1 |
The EventChannel definition stages. | interface DefinitionStages {
/** The first stage of the EventChannel definition. */
interface Blank extends WithParentResource {
}
/** The stage of the EventChannel definition allowing to specify parent resource. */
interface WithParentResource {
/**
* Specifies resourceGroupName, partnerNamespaceName.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param partnerNamespaceName Name of the partner namespace.
* @return the next definition stage.
*/
WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);
}
/**
* The stage of the EventChannel definition which contains all the minimum required properties for the resource
* to be created, but also allows for any other optional properties to be specified.
*/
interface WithCreate
extends DefinitionStages.WithSource,
DefinitionStages.WithDestination,
DefinitionStages.WithExpirationTimeIfNotActivatedUtc,
DefinitionStages.WithFilter,
DefinitionStages.WithPartnerTopicFriendlyDescription {
/**
* Executes the create request.
*
* @return the created resource.
*/
EventChannel create();
/**
* Executes the create request.
*
* @param context The context to associate with this operation.
* @return the created resource.
*/
EventChannel create(Context context);
}
/** The stage of the EventChannel definition allowing to specify source. */
interface WithSource {
/**
* Specifies the source property: Source of the event channel. This represents a unique resource in the
* partner's resource model..
*
* @param source Source of the event channel. This represents a unique resource in the partner's resource
* model.
* @return the next definition stage.
*/
WithCreate withSource(EventChannelSource source);
}
/** The stage of the EventChannel definition allowing to specify destination. */
interface WithDestination {
/**
* Specifies the destination property: Represents the destination of an event channel..
*
* @param destination Represents the destination of an event channel.
* @return the next definition stage.
*/
WithCreate withDestination(EventChannelDestination destination);
}
/** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */
interface WithExpirationTimeIfNotActivatedUtc {
/**
* Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this
* timer expires while the corresponding partner topic is never activated, the event channel and
* corresponding partner topic are deleted..
*
* @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while
* the corresponding partner topic is never activated, the event channel and corresponding partner topic
* are deleted.
* @return the next definition stage.
*/
WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);
}
/** The stage of the EventChannel definition allowing to specify filter. */
interface WithFilter {
/**
* Specifies the filter property: Information about the filter for the event channel..
*
* @param filter Information about the filter for the event channel.
* @return the next definition stage.
*/
WithCreate withFilter(EventChannelFilter filter);
}
/** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */
interface WithPartnerTopicFriendlyDescription {
/**
* Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be
* set by the publisher/partner to show custom description for the customer partner topic. This will be
* helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..
*
* @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the
* publisher/partner to show custom description for the customer partner topic. This will be helpful to
* remove any ambiguity of the origin of creation of the partner topic for the customer.
* @return the next definition stage.
*/
WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannel create();",
"EventChannel apply();",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"EventChannel apply(Context context);",
"interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"private void createEvents() {\n\t}",
"EventChannel create(Context context);",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"EventChannelSource source();",
"@Override\n protected void initChannel(Channel ch) throws Exception {\n log.info(\"Initialize handler pipeline for: {}\", ch);\n ch.pipeline().addLast(\"lineBaseSplit\", new LineBasedFrameDecoder(Integer.MAX_VALUE));\n ch.pipeline().addLast(new StringDecoder());\n ch.pipeline().addLast(\"echo\", new EchoHandler2());\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"EventChannel.Update update();",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"EventChannelDestination destination();",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"WithCreate withSource(EventChannelSource source);",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"WithCreate withDestination(EventChannelDestination destination);",
"@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}",
"private void handleChannelInit(ChannelInit init) throws AppiaEventException {\n \n \t\tMatcher listenMatcher = textPattern.matcher(init.getChannel().getChannelID());\n \t\tMatcher vsMatcher = drawPattern.matcher(init.getChannel().getChannelID());\n \n \t\tSystem.out.println(\"Registering at : \" + init.getChannel().getChannelID()\n \t\t\t\t+ \" port: \" + localport);\n \n \t\t//Create a socket for clients to connect to\n \t\tif(listenMatcher.matches()){\n \t\t\tlistenChannel = init.getChannel();\n \t\t\tnew RegisterSocketEvent(listenChannel,Direction.DOWN,this,localport).go();\n \t\t}\n \n \t\t//Create a socket for the group communication occur\n \t\telse if (vsMatcher.matches()){\n \t\t\tvsChannel = init.getChannel();\n \t\t\tnew RegisterSocketEvent(vsChannel,Direction.DOWN,this,localport + 1).go();\t\n \t\t}\n \n \t\t//Let the event go\n \t\tinit.go();\n \t}",
"public void consulterEvent() {\n\t\t\n\t}",
"EventChannelInner innerModel();",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(new TimeServerHandler());\n }",
"BasicEvents createBasicEvents();",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n //4. Add ChannelHandler to intercept events and allow to react on them\n ch.pipeline().addLast(new ChannelHandlerAdapter() {\n @Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n //5. Write message to client and add ChannelFutureListener to close connection once message written\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }\n });\n }",
"public void opened(LLRPChannelOpenedEvent event);",
"@Override\n\t\t\tpublic void callStarted(String channel) {\n\t\t\t}",
"public void buildStarted(BuildEvent event) {\n }",
"@Override\n public void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(new OutMessageHandler());\n\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tmHandler.postDelayed(mRecordChannelStatesRunnable, SLConstants.RECORDING_PERIOD_IN_MILLIS);\n\n\t\t\t// Create the states holder\n\t\t\tSLChannelStates mChannelStates = new SLChannelStates();\n\t\t\tmChannelStates.setTimestamp(System.currentTimeMillis());\n\n\t\t\t// Store each channel's state\n\t\t\tfor(int i=0; i < mChannelViews.size(); i++) {\n\t\t\t\tSeekBar seekBar = mChannelViews.get(i).getChannelSeekBar();\n\n\t\t\t\tSLChannelState cs = new SLChannelState();\n\t\t\t\tcs.setChannelNumber(i);\n\t\t\t\tcs.setOnOffState(true);\n\t\t\t\tcs.setVelocity(seekBar.getProgress());\n\n\t\t\t\tmChannelStates.getChannelStates().add(cs);\n\t\t\t}\n\n\t\t\tmChannelsStates.add(mChannelStates);\n\n\t\t}",
"public void init() {\r\n setEventType(4);\r\n }",
"@Override\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(\"tcpDecoder\", new MessageDecoder());\n\t\tch.pipeline().addLast(\"tcpHandler\", new TcpServerHandler(ac)); \n\t\t\n\t}",
"@Override\r\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(\"tcpDecoder\", new MessageDecoder());\r\n\t\tch.pipeline().addLast(\"tcpHandler\", new TcpServerHandler(ac)); \r\n\t\t\r\n\t}",
"public void initEventsAndProperties() {\r\n }",
"@Override\n public void definitionListItem(SinkEventAttributes attributes)\n {\n }",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n super.channelActive(ctx);\n \n }",
"interface DefinitionStages {\n /** The first stage of the SourceControl definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the SourceControl definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, automationAccountName.\n *\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @return the next definition stage.\n */\n WithCreate withExistingAutomationAccount(String resourceGroupName, String automationAccountName);\n }\n /**\n * The stage of the SourceControl definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithRepoUrl,\n DefinitionStages.WithBranch,\n DefinitionStages.WithFolderPath,\n DefinitionStages.WithAutoSync,\n DefinitionStages.WithPublishRunbook,\n DefinitionStages.WithSourceType,\n DefinitionStages.WithSecurityToken,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n SourceControl create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n SourceControl create(Context context);\n }\n /** The stage of the SourceControl definition allowing to specify repoUrl. */\n interface WithRepoUrl {\n /**\n * Specifies the repoUrl property: The repo url of the source control..\n *\n * @param repoUrl The repo url of the source control.\n * @return the next definition stage.\n */\n WithCreate withRepoUrl(String repoUrl);\n }\n /** The stage of the SourceControl definition allowing to specify branch. */\n interface WithBranch {\n /**\n * Specifies the branch property: The repo branch of the source control. Include branch as empty string for\n * VsoTfvc..\n *\n * @param branch The repo branch of the source control. Include branch as empty string for VsoTfvc.\n * @return the next definition stage.\n */\n WithCreate withBranch(String branch);\n }\n /** The stage of the SourceControl definition allowing to specify folderPath. */\n interface WithFolderPath {\n /**\n * Specifies the folderPath property: The folder path of the source control. Path must be relative..\n *\n * @param folderPath The folder path of the source control. Path must be relative.\n * @return the next definition stage.\n */\n WithCreate withFolderPath(String folderPath);\n }\n /** The stage of the SourceControl definition allowing to specify autoSync. */\n interface WithAutoSync {\n /**\n * Specifies the autoSync property: The auto async of the source control. Default is false..\n *\n * @param autoSync The auto async of the source control. Default is false.\n * @return the next definition stage.\n */\n WithCreate withAutoSync(Boolean autoSync);\n }\n /** The stage of the SourceControl definition allowing to specify publishRunbook. */\n interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n WithCreate withPublishRunbook(Boolean publishRunbook);\n }\n /** The stage of the SourceControl definition allowing to specify sourceType. */\n interface WithSourceType {\n /**\n * Specifies the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case\n * sensitive..\n *\n * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.\n * @return the next definition stage.\n */\n WithCreate withSourceType(SourceType sourceType);\n }\n /** The stage of the SourceControl definition allowing to specify securityToken. */\n interface WithSecurityToken {\n /**\n * Specifies the securityToken property: The authorization token for the repo of the source control..\n *\n * @param securityToken The authorization token for the repo of the source control.\n * @return the next definition stage.\n */\n WithCreate withSecurityToken(SourceControlSecurityTokenProperties securityToken);\n }\n /** The stage of the SourceControl definition allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }\n }",
"public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}",
"@Override\n\t\t\t\t\t\tpublic void channelActive(ChannelHandlerContext ctx) {\n\t\t\t\t\t\t\tSystem.out.println(RestResult.success(\"channel active!\"));\n\t\t\t\t\t\t}",
"public Event(){\n \n }",
"public Event() {\r\n\r\n\t}",
"@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n NettyCodecAdapter adapter = new NettyCodecAdapter();\n\n ch.pipeline()\n .addLast(\"logging\", new LoggingHandler(LogLevel.INFO))//for debug\n .addLast(\"decoder\", adapter.getDecoder())\n// .addLast(\"http-aggregator\", new HttpObjectAggregator(65536))\n .addLast(\"encoder\", adapter.getEncoder())\n// .addLast(\"http-chunked\", new ChunkedWriteHandler())\n// .addLast(\"server-idle-handler\", new IdleStateHandler(0, 0, 60 * 1000, MILLISECONDS))\n .addLast(\"handler\", nettyServerHandler);\n }",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"@Override\n public int getChannel()\n {\n return channel;\n }",
"private void createChannelAccess(Nx100Type config) throws FactoryException {\n \t\ttry {\n \t\t\tjobChannel = channelManager.createChannel(config.getJOB().getPv(), false);\n \t\t\tstartChannel = channelManager.createChannel(config.getSTART().getPv(), false);\n \t\t\tholdChannel = channelManager.createChannel(config.getHOLD().getPv(), false);\n \t\t\tsvonChannel = channelManager.createChannel(config.getSVON().getPv(), false);\n \t\t\terrChannel = channelManager.createChannel(config.getERR().getPv(), errls, false);\n \n \t\t\t// acknowledge that creation phase is completed\n \t\t\tchannelManager.creationPhaseCompleted();\n \t\t} catch (Throwable th) {\n \t\t\tthrow new FactoryException(\"failed to create all channels\", th);\n \t\t}\n \t}",
"public JsonHttpChannel() {\n this.defaultConstructor = new JsonHttpEventFactory();\n }",
"public void createChannel() {\r\n\t\tworkChannels.add(new ArrayList<Point>());\r\n\t}",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n System.out.println(\"【channelActive】。。。\");\n }",
"public ChannelDetails() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\n\t\t\t\t\tprotected void initChannel(SocketChannel ch)\n\t\t\t\t\t{\n\t\t\t\t\t\tch.pipeline().addLast(new LengthFieldPrepender(2));\n\t\t\t\t\t\tch.pipeline().addLast(new LengthFieldBasedFrameDecoder(0xFFFF, 0, 2));\n\t\t\t\t\t\tch.pipeline().addLast(new PacketCodec());\n\t\t\t\t\t\tch.pipeline().addLast(new ServerChannelHandler(instance));\n\t\t\t\t\t}",
"private EventProcessorBuilder baseConfig(MockEventSender es) {\n return sendEvents().eventSender(senderFactory(es));\n }",
"public EmbeddedChannel(ChannelId channelId, ChannelHandler... handlers) {\n/* 135 */ this(channelId, false, handlers);\n/* */ }",
"private void initializeEvents() {\r\n\t}",
"public Event() {\n\t}",
"@Override\n protected void initChannel(SocketChannel ch){\n ch.pipeline().addLast(new IdleStateHandler(3,5,7, TimeUnit.SECONDS));\n ch.pipeline().addLast(new ServerHandler());\n }",
"EventChannel refresh();",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n }",
"public Event() {\n }",
"public Event() {\n }",
"public EmbeddedChannel(ChannelHandler... handlers) {\n/* 100 */ this(EmbeddedChannelId.INSTANCE, handlers);\n/* */ }",
"public Eventd() {\n }",
"@Override\n\tpublic void changeChannel() {\n\t\tSystem.out.println(\"Listening to Radio...\\n channel 1 2 3 4....\");\n\t}",
"public\n CreateEvent()\n {}",
"private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}",
"public interface ChannelClosedEventListener extends ChannelEventListener {\r\n\t/**\r\n\t * This method will fired when xsi channel is closed.\r\n\t */\r\n\tvoid xsiChannelClosed();\r\n}",
"protected ICEvent() {}",
"public interface EventPipeLine {\n /**\n * Adds new event to the pipeline (queue)\n * @param e GameEvent instance\n */\n public void add(GameEvent e);\n\n /**\n * Calls all event processors and removes them from the queue\n */\n public void exec();\n\n /**\n * Removes all events. (ignore the events)\n */\n public void clear();\n\n /**\n * First event from the queue\n * @return GameEvent instance or null if empty\n */\n public GameEvent getFirst();\n\n /**\n * This method can be usefull if you want to know which events are there in the queue.\n * @return all events as GameEvent[] array\n */\n public GameEvent[] getEvents();\n\n /**\n * Number of events in the queue\n */\n public int size();\n \n}",
"public Channel() {\n this(DSL.name(\"channel\"), null);\n }",
"WithCreate withFilter(EventChannelFilter filter);",
"public void buildBegin(MonitorEvent event)\n {\n }",
"Update withDestination(EventChannelDestination destination);",
"private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Override\n public void onWrite() {\n onChannelPreWrite();\n }",
"void setChannel(EzyChannel channel);",
"@Override\n protected void initChannel (SocketChannel ch) throws Exception {\n // can utilize channel to push message to different client since one channel correspond to one client\n System.out.println(\"client socket channel hashcode = \" + ch.hashCode());\n ch.pipeline().addLast(new NettyServerHandler());\n }",
"BoundaryEvent createBoundaryEvent();",
"public Channel getChannel() {\n return channel;\n }",
"@Override\r\n\tpublic void onChannelSuccess() {\n\t\t\r\n\t}",
"protected void sequence_Channel(ISerializationContext context, Channel semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.CHANNEL__EXP) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.CHANNEL__EXP));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getChannelAccess().getExpExpressionParserRuleCall_0(), semanticObject.getExp());\r\n\t\tfeeder.finish();\r\n\t}",
"public Event() {\n\n }",
"@Override\n public void configure() throws Exception {\n restConfiguration()\n .component(\"netty-http\")\n .host(\"0.0.0.0\")\n .port(8099);\n\n rest()\n .post(\"/webhook\")\n .route()\n .setBody(constant(\"{\\\"ok\\\": true}\"))\n .endRest()\n .post(\"/slack/api/conversations.list\")\n .route()\n .setBody(constant(\n \"{\\\"ok\\\":true,\\\"channels\\\":[{\\\"id\\\":\\\"ABC12345\\\",\\\"name\\\":\\\"general\\\",\\\"is_channel\\\":true,\\\"created\\\":1571904169}]}\"))\n .endRest()\n .post(\"/slack/api/conversations.history\")\n .route()\n .setBody(constant(\n \"{\\\"ok\\\":true,\\\"messages\\\":[{\\\"type\\\":\\\"message\\\",\\\"subtype\\\":\\\"bot_message\\\",\\\"text\\\":\\\"Hello Camel Quarkus Slack\\\"\"\n + \",\\\"ts\\\":\\\"1571912155.001300\\\",\\\"bot_id\\\":\\\"ABC12345C\\\"}],\\\"has_more\\\":true\"\n + \",\\\"channel_actions_ts\\\":null,\\\"channel_actions_count\\\":0}\"));\n }",
"private void uponChannelCreated(ChannelCreated notification, short sourceProto) {\n int cId = notification.getChannelId();\n // Allows this protocol to receive events from this channel.\n registerSharedChannel(cId);\n /*---------------------- Register Message Serializers ---------------------- */\n registerMessageSerializer(cId, FloodMessage.MSG_ID, FloodMessage.serializer);\n registerMessageSerializer(cId, PruneMessage.MSG_ID, PruneMessage.serializer);\n registerMessageSerializer(cId, IHaveMessage.MSG_ID, IHaveMessage.serializer);\n registerMessageSerializer(cId, GraftMessage.MSG_ID, GraftMessage.serializer);\n\n /*---------------------- Register Message Handlers -------------------------- */\n\n //Handler for FloodMessage\n try {\n registerMessageHandler(cId, FloodMessage.MSG_ID, this::uponBroadcastMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for PruneMessage\n try {\n registerMessageHandler(cId, PruneMessage.MSG_ID, this::uponPruneMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for IHaveMessage\n try {\n registerMessageHandler(cId, IHaveMessage.MSG_ID, this::uponIHaveMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for GraftMessage\n try {\n registerMessageHandler(cId, GraftMessage.MSG_ID, this::uponGraftMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n\n try {\n registerTimerHandler(Timer.TIMER_ID, this::uponTimer);\n } catch (HandlerRegistrationException e) {\n e.printStackTrace();\n }\n\n\n //Now we can start sending messages\n channelReady = true;\n }",
"public Event() {}",
"@Override\n \t\t\tpublic void initChannel(final Channel channel) throws Exception {\n \n \t\t\t\tfinal NettyPipe pipe = pipeManager().findPipe(\n \t\t\t\t\t\tnetPoint.getPipeline());\n \n \t\t\t\tif (pipe == null) {\n \t\t\t\t\tlog.error(\"missing pipeline\", new IllegalArgumentException(\n \t\t\t\t\t\t\tnetPoint.getPipeline()));\n \t\t\t\t} else {\n \t\t\t\t\tpipe.apply(channel, mode);\n \t\t\t\t}\n \n \t\t\t}",
"public EventHandleThread(){\n gson = new Gson();\n producer = KafkaProducerCreator.createProducer();\n this.paymentController = new PaymentController();\n }",
"public interface Event<B extends Enum<B> & Event<B>> extends Base {\n\n\t/**\n\t * Event bean builder.\n\t */\n\tinterface Builder<E extends Event<?>, S extends State<?>, A> {\n\n\t\t/**\n\t\t * Bind event to state.\n\t\t */\n\t\tState.Builder<E, S, A> to(S state);\n\n\t}\n\n\t/**\n\t * Name of the event.\n\t */\n\t@Override\n\tString name();\n\n\t/**\n\t * Identity of the event.\n\t */\n\t@Override\n\tint ordinal();\n\n}",
"@Override\n\tpublic void channelParted(String channel) {\n\t}",
"interface DefinitionStages {\n /**\n * The first stage of a MoveCollection definition.\n */\n interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the MoveCollection definition allowing to specify the resource group.\n */\n interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {\n }\n\n /**\n * The stage of the movecollection definition allowing to specify Identity.\n */\n interface WithIdentity {\n /**\n * Specifies identity.\n * @param identity the identity parameter value\n * @return the next definition stage\n */\n WithCreate withIdentity(Identity identity);\n }\n\n /**\n * The stage of the movecollection definition allowing to specify Properties.\n */\n interface WithProperties {\n /**\n * Specifies properties.\n * @param properties the properties parameter value\n * @return the next definition stage\n */\n WithCreate withProperties(MoveCollectionProperties properties);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<MoveCollection>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithIdentity, DefinitionStages.WithProperties {\n }\n }",
"interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithLevel,\n DefinitionStages.WithCreate {\n }",
"public EmbeddedChannel(ChannelId channelId) {\n/* 91 */ this(channelId, EMPTY_HANDLERS);\n/* */ }",
"Update withSource(EventChannelSource source);",
"public RemoteCommitEvent() {\n }",
"@Override\n public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n }",
"@Override\n protected void initEventAndData() {\n }",
"public void setChannel(Channel channel)\n {\n this.channel = channel;\n }"
] | [
"0.6294687",
"0.6165554",
"0.591843",
"0.5572076",
"0.55467725",
"0.5490338",
"0.54542655",
"0.5403656",
"0.53586346",
"0.5324725",
"0.5301959",
"0.5291019",
"0.5270245",
"0.5219201",
"0.5181034",
"0.51745224",
"0.5166845",
"0.5101551",
"0.50731736",
"0.50594634",
"0.50449055",
"0.50424486",
"0.50135046",
"0.4968565",
"0.49683332",
"0.4962423",
"0.49346125",
"0.49308634",
"0.49030367",
"0.48888674",
"0.48874363",
"0.48811078",
"0.4871396",
"0.48666108",
"0.48655683",
"0.48449484",
"0.4832011",
"0.4825857",
"0.48229647",
"0.4819617",
"0.481415",
"0.48034626",
"0.48023567",
"0.4787541",
"0.47828123",
"0.4780351",
"0.47731242",
"0.47669062",
"0.47613874",
"0.47566572",
"0.47478682",
"0.47445852",
"0.47422284",
"0.47199246",
"0.471834",
"0.47085884",
"0.470779",
"0.47057125",
"0.46957362",
"0.4695376",
"0.46887016",
"0.46839795",
"0.46839795",
"0.4671869",
"0.4647568",
"0.4639702",
"0.463127",
"0.46293792",
"0.46190792",
"0.4607541",
"0.46027988",
"0.4598153",
"0.45978022",
"0.45960435",
"0.45948806",
"0.45925772",
"0.45925772",
"0.45847392",
"0.45709464",
"0.45564798",
"0.45557117",
"0.4553017",
"0.4547283",
"0.45462927",
"0.454622",
"0.45435107",
"0.45421287",
"0.45415094",
"0.45357895",
"0.45284426",
"0.45274094",
"0.4525154",
"0.4522868",
"0.45170838",
"0.45099798",
"0.4509248",
"0.45066386",
"0.45035365",
"0.4498421",
"0.4497478"
] | 0.6938082 | 0 |
The first stage of the EventChannel definition. | interface Blank extends WithParentResource {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannel create();",
"@Override\n\t\t\tpublic void callStarted(String channel) {\n\t\t\t}",
"public void consulterEvent() {\n\t\t\n\t}",
"public void init() {\r\n setEventType(4);\r\n }",
"EventChannel apply();",
"public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"EventChannelSource source();",
"public\n CreateEvent()\n {}",
"@Override\n protected void initChannel(NioSocketChannel nioSocketChannel) throws Exception {\n nioSocketChannel.pipeline().addLast(new FirstClientHandler());\n }",
"void start(Channel channel, Object msg);",
"protected ICEvent() {}",
"public MainEvent() {\n super.register(new HelloWorld());\n }",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"WithCreate withSource(EventChannelSource source);",
"public Event() {\r\n\r\n\t}",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n //4. Add ChannelHandler to intercept events and allow to react on them\n ch.pipeline().addLast(new ChannelHandlerAdapter() {\n @Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n //5. Write message to client and add ChannelFutureListener to close connection once message written\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }\n });\n }",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(new TimeServerHandler());\n }",
"@Override\r\n\tpublic void onChannelSuccess() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}",
"interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }",
"EventChannel create(Context context);",
"public Event() {\n\t}",
"EventChannel.Update update();",
"public Event() {\n }",
"public Event() {\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"WithCreate withDestination(EventChannelDestination destination);",
"EventChannelDestination destination();",
"public Event() {}",
"public void opened(LLRPChannelOpenedEvent event);",
"BasicEvents createBasicEvents();",
"private void handleChannelInit(ChannelInit init) throws AppiaEventException {\n \n \t\tMatcher listenMatcher = textPattern.matcher(init.getChannel().getChannelID());\n \t\tMatcher vsMatcher = drawPattern.matcher(init.getChannel().getChannelID());\n \n \t\tSystem.out.println(\"Registering at : \" + init.getChannel().getChannelID()\n \t\t\t\t+ \" port: \" + localport);\n \n \t\t//Create a socket for clients to connect to\n \t\tif(listenMatcher.matches()){\n \t\t\tlistenChannel = init.getChannel();\n \t\t\tnew RegisterSocketEvent(listenChannel,Direction.DOWN,this,localport).go();\n \t\t}\n \n \t\t//Create a socket for the group communication occur\n \t\telse if (vsMatcher.matches()){\n \t\t\tvsChannel = init.getChannel();\n \t\t\tnew RegisterSocketEvent(vsChannel,Direction.DOWN,this,localport + 1).go();\t\n \t\t}\n \n \t\t//Let the event go\n \t\tinit.go();\n \t}",
"@SubscribeEvent\n public void onClientStarting(final FMLClientSetupEvent event) {\n LOGGER.info(\"client setting up\");\n }",
"private void initializeEvents() {\r\n\t}",
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"@Override\r\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(\"tcpDecoder\", new MessageDecoder());\r\n\t\tch.pipeline().addLast(\"tcpHandler\", new TcpServerHandler(ac)); \r\n\t\t\r\n\t}",
"@Override\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(\"tcpDecoder\", new MessageDecoder());\n\t\tch.pipeline().addLast(\"tcpHandler\", new TcpServerHandler(ac)); \n\t\t\n\t}",
"@Override\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(new DisardServerHandle());\n\t}",
"@Override\n protected void initEventAndData() {\n }",
"@Override\n\tpublic EventMessage initPlugEventMessage() {\n\t\treturn null;\n\t}",
"void startHelloSender(Channel channel);",
"private void createEvents() {\n\t}",
"@Override\n\tpublic void initializeScehduleWithOneEvent() {\n\t\tdouble time = getTimeOfNextBirth();\n\t\tEvent birthEvent = new Event(time, EventType.BIRTH, this);\n\t\tbirthEvent.setTag(true);\n\t\tschedule.add(birthEvent);\t\n\t}",
"@Override\r\n\tpublic void initEvent() {\n\r\n\t}",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"@Override\n protected void initChannel (SocketChannel ch) throws Exception {\n // can utilize channel to push message to different client since one channel correspond to one client\n System.out.println(\"client socket channel hashcode = \" + ch.hashCode());\n ch.pipeline().addLast(new NettyServerHandler());\n }",
"public void initEventsAndProperties() {\r\n }",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"private LogEvent()\n\t{\n\t\tsuper();\n\t}",
"public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }",
"public EmbeddedChannel(ChannelId channelId) {\n/* 91 */ this(channelId, EMPTY_HANDLERS);\n/* */ }",
"private HeartBeatMessage() {\n initFields();\n }",
"public SimpleEventProducer() {\n\tlisteners = new Vector<ClientEventListener>();\n }",
"Event () {\n // Nothing to do here.\n }",
"private void uponChannelCreated(ChannelCreated notification, short sourceProto) {\n int cId = notification.getChannelId();\n // Allows this protocol to receive events from this channel.\n registerSharedChannel(cId);\n /*---------------------- Register Message Serializers ---------------------- */\n registerMessageSerializer(cId, FloodMessage.MSG_ID, FloodMessage.serializer);\n registerMessageSerializer(cId, PruneMessage.MSG_ID, PruneMessage.serializer);\n registerMessageSerializer(cId, IHaveMessage.MSG_ID, IHaveMessage.serializer);\n registerMessageSerializer(cId, GraftMessage.MSG_ID, GraftMessage.serializer);\n\n /*---------------------- Register Message Handlers -------------------------- */\n\n //Handler for FloodMessage\n try {\n registerMessageHandler(cId, FloodMessage.MSG_ID, this::uponBroadcastMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for PruneMessage\n try {\n registerMessageHandler(cId, PruneMessage.MSG_ID, this::uponPruneMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for IHaveMessage\n try {\n registerMessageHandler(cId, IHaveMessage.MSG_ID, this::uponIHaveMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n //Handler for GraftMessage\n try {\n registerMessageHandler(cId, GraftMessage.MSG_ID, this::uponGraftMessage, this::uponMsgFail);\n } catch (HandlerRegistrationException e) {\n logger.error(\"Error registering message handler: \" + e.getMessage());\n e.printStackTrace();\n System.exit(1);\n }\n\n\n try {\n registerTimerHandler(Timer.TIMER_ID, this::uponTimer);\n } catch (HandlerRegistrationException e) {\n e.printStackTrace();\n }\n\n\n //Now we can start sending messages\n channelReady = true;\n }",
"@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}",
"@Override\n protected void initChannel(SocketChannel ch){\n ch.pipeline().addLast(new IdleStateHandler(3,5,7, TimeUnit.SECONDS));\n ch.pipeline().addLast(new ServerHandler());\n }",
"public EventMessageExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tdisplayEvent();\n\t}",
"public Channel() {\n this(DSL.name(\"channel\"), null);\n }",
"public void buildStarted(BuildEvent event) {\n }",
"EventChannel apply(Context context);",
"public ChannelDetails() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\n protected void initializeEventList()\n {\n }",
"public Event nextEVPEC();",
"BasicEvent createBasicEvent();",
"public Eventd() {\n }",
"@Override\n\t\t\t\t\t\tpublic void channelActive(ChannelHandlerContext ctx) {\n\t\t\t\t\t\t\tSystem.out.println(RestResult.success(\"channel active!\"));\n\t\t\t\t\t\t}",
"public LocalChannel() {\n\t\t}",
"public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }",
"public ScheduleEvent()\n\t{\n\n\t}",
"@Override\n\tpublic EventMessage initLocalEventMessage() {\n\t\treturn getEventMessage();\n\t}",
"public void commonSetup(FMLCommonSetupEvent event){\n PacketHandler.registerMessages();\n// config = new Configuration(event.getSuggestedConfigurationFile());\n// ConfigHandler.readConfig();\n }",
"@Override\n\tpublic void changeChannel() {\n\t\tSystem.out.println(\"Listening to Radio...\\n channel 1 2 3 4....\");\n\t}",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"@Override\n public void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(new OutMessageHandler());\n\n }",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n final Channel ch = e.getChannel();\n ChannelBuffer headerBuffer = ChannelBuffers.buffer(header.length());\n headerBuffer.writeBytes(header.getBytes());\n ChannelFuture f = ch.write(headerBuffer);\n f.addListener(ChannelFutureListener.CLOSE_ON_FAILURE);\n channelAtomicReference.set(ch);\n log.info(\"Input Stream {} : Channel Connected. Sent Header : {}\", name, header);\n }",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"@Override\n\t\t\t\t\tprotected void initChannel(SocketChannel ch)\n\t\t\t\t\t{\n\t\t\t\t\t\tch.pipeline().addLast(new LengthFieldPrepender(2));\n\t\t\t\t\t\tch.pipeline().addLast(new LengthFieldBasedFrameDecoder(0xFFFF, 0, 2));\n\t\t\t\t\t\tch.pipeline().addLast(new PacketCodec());\n\t\t\t\t\t\tch.pipeline().addLast(new ServerChannelHandler(instance));\n\t\t\t\t\t}",
"@Override\n protected void initChannel(Channel ch) throws Exception {\n log.info(\"Initialize handler pipeline for: {}\", ch);\n ch.pipeline().addLast(\"lineBaseSplit\", new LineBasedFrameDecoder(Integer.MAX_VALUE));\n ch.pipeline().addLast(new StringDecoder());\n ch.pipeline().addLast(\"echo\", new EchoHandler2());\n }",
"public Event() {\n\n }",
"public void initChannel() {\n //or channelFactory\n bootstrap().channel(NioServerSocketChannel.class);\n }",
"private void uponInConnectionUp(InConnectionUp event, int channelId) {\n }",
"@Override\n public void onReady(ReadyEvent event) {\n\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"@Override\n\tpublic void channelParted(String channel) {\n\t}",
"@Override\n public void onOpen(String data) {\n\n log.e(\"Receiver default message channel open!!! \" + data);\n }",
"public Event(){\n \n }",
"@Override\n\t\t\tpublic void contectStarted() {\n\n\t\t\t}",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n super.channelActive(ctx);\n \n }",
"private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }",
"ConferenceScheduleBuilderService startEvent();",
"@SubscribeEvent\n public void onServerStarting(final FMLServerStartingEvent event) {\n LOGGER.info(\"server starting...\");\n }",
"public JsonHttpChannel() {\n this.defaultConstructor = new JsonHttpEventFactory();\n }",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n System.out.println(\"【channelActive】。。。\");\n }"
] | [
"0.6875369",
"0.646983",
"0.63982534",
"0.6379826",
"0.6194111",
"0.61253417",
"0.6118129",
"0.6105415",
"0.6105415",
"0.60932964",
"0.5997941",
"0.59653777",
"0.58887887",
"0.5873894",
"0.5872452",
"0.5841363",
"0.5830915",
"0.5818824",
"0.5813833",
"0.58056617",
"0.5774816",
"0.5758521",
"0.57383144",
"0.57353723",
"0.57301265",
"0.5726397",
"0.57231086",
"0.57228243",
"0.5696456",
"0.5696456",
"0.569058",
"0.5686325",
"0.5684786",
"0.56680065",
"0.56669974",
"0.5665322",
"0.56647426",
"0.56463325",
"0.56288445",
"0.5628674",
"0.56281686",
"0.56146914",
"0.56061643",
"0.5601514",
"0.5595818",
"0.55931586",
"0.55876195",
"0.55860996",
"0.5585582",
"0.55725926",
"0.5563023",
"0.5561088",
"0.5523359",
"0.55043226",
"0.54987097",
"0.54962486",
"0.54950744",
"0.5491402",
"0.5491401",
"0.54830515",
"0.5482081",
"0.5482081",
"0.54790914",
"0.54737103",
"0.54721665",
"0.5461302",
"0.54524416",
"0.54439276",
"0.5443744",
"0.5441225",
"0.54377556",
"0.5435064",
"0.54336554",
"0.54237485",
"0.54063606",
"0.5404801",
"0.5402495",
"0.5399172",
"0.5396941",
"0.5380301",
"0.53798753",
"0.5376045",
"0.5374435",
"0.5368948",
"0.53664094",
"0.53643024",
"0.53637546",
"0.5363137",
"0.536086",
"0.5355151",
"0.53476197",
"0.5340661",
"0.5325553",
"0.53182346",
"0.5316162",
"0.53152037",
"0.531246",
"0.530723",
"0.53071696",
"0.5300626",
"0.5290019"
] | 0.0 | -1 |
The stage of the EventChannel definition allowing to specify parent resource. | interface WithParentResource {
/**
* Specifies resourceGroupName, partnerNamespaceName.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param partnerNamespaceName Name of the partner namespace.
* @return the next definition stage.
*/
WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NoProxy\n @NoWrap\n @NoDump\n public BwEvent getParent() {\n return parent;\n }",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"public EventNode getParent() {\n\t\treturn parent;\n\t}",
"@Override\r\n\tpublic Long getEventParentId() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Long getEventParentId() {\n\t\treturn null;\r\n\t}",
"public Resource getParent() {\n return null;\n }",
"public CLIRequest getParent() {\n return parent;\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"interface WithParentResource {\n /**\n * Specifies resourceGroupName, automationAccountName.\n *\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @return the next definition stage.\n */\n WithCreate withExistingAutomationAccount(String resourceGroupName, String automationAccountName);\n }",
"@VTID(7)\r\n void getParent();",
"@Override\n public ILoggingObject getParent() {\n return parentLoggingObject;\n }",
"Spring getParent() {\n return parent;\n }",
"VersionedDocument getParentDocument();",
"public AbstractConfigNode getParent() {\n return parent;\n }",
"public StructuredId getParent()\r\n {\r\n return parent;\r\n }",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"@Override\n public ConfigurationNode getParentNode()\n {\n return parent;\n }",
"@Override\r\n\tpublic Long getEventParentClass() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Long getEventParentClass() {\n\t\treturn null;\r\n\t}",
"public IBuildObject getParent();",
"void setParent(Resource parent)\n {\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n {\n \tparentId = parent.getId();\n }\n else\n {\n \tparentId = -1;\n }\n }",
"public State getParent();",
"public String getParentCall() {\n return parentCall;\n }",
"@JsonProperty(\"parent\")\n @ApiModelProperty(value = \"The ID of the parent dialog node (if any).\")\n public String getParent() {\n return parent;\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public String getParentName() {\n return parentName;\n }",
"public DrawingComposite getParent() {\n\t\treturn parent;\n\t}",
"public ContentScanner getParentLevel(\n )\n {return parentLevel;}",
"public Concept getParent() { return parent; }",
"protected TacticalBattleProcessor getParent() {\n return parent;\n }",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public String getParent() {\n return _parent;\n }",
"public final Cause<?> getParent() {\n return parent;\n }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"public void setParent(String parent) {\r\n this.parent = parent;\r\n }",
"public void setParent(String parent) {\n this.parent = parent;\n }",
"public String getParentName() {\n\t\treturn parentName;\n\t}",
"public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }",
"public void setParent(Concept _parent) { parent = _parent; }",
"public String getParent() {\n return parent;\n }",
"interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithLevel,\n DefinitionStages.WithCreate {\n }",
"public String getParentName() {\n return parentName;\n }",
"interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }",
"public abstract Optional<TypeName> parent();",
"public Kit getParent() {\n return this.parent;\n }",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public PartialSolution getParent() {\n return _parent;\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() {\r\n return this.parent;\r\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public void setParent(String parent) {\n _parent = parent;\n }",
"public FcgLevel parent() {\n\t\tif (direction == IN_AND_OUT) {\n\t\t\t// undefined--we are the parent of all\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"To get the parent of the source level you must use the constructor directly\");\n\t\t}\n\n\t\tint newDistance = getDistance() - 1;\n\t\tFcgDirection newDirection = direction;\n\t\tif (newDistance == 0) {\n\t\t\tnewDirection = IN_AND_OUT;\n\t\t}\n\t\treturn new FcgLevel(newDistance, newDirection);\n\t}",
"public Entity getParent() {\n return parent;\n }",
"public String getParent() {\r\n return parent;\r\n }",
"interface DefinitionStages {\n /** The first stage of the SourceControl definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the SourceControl definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, automationAccountName.\n *\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @return the next definition stage.\n */\n WithCreate withExistingAutomationAccount(String resourceGroupName, String automationAccountName);\n }\n /**\n * The stage of the SourceControl definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithRepoUrl,\n DefinitionStages.WithBranch,\n DefinitionStages.WithFolderPath,\n DefinitionStages.WithAutoSync,\n DefinitionStages.WithPublishRunbook,\n DefinitionStages.WithSourceType,\n DefinitionStages.WithSecurityToken,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n SourceControl create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n SourceControl create(Context context);\n }\n /** The stage of the SourceControl definition allowing to specify repoUrl. */\n interface WithRepoUrl {\n /**\n * Specifies the repoUrl property: The repo url of the source control..\n *\n * @param repoUrl The repo url of the source control.\n * @return the next definition stage.\n */\n WithCreate withRepoUrl(String repoUrl);\n }\n /** The stage of the SourceControl definition allowing to specify branch. */\n interface WithBranch {\n /**\n * Specifies the branch property: The repo branch of the source control. Include branch as empty string for\n * VsoTfvc..\n *\n * @param branch The repo branch of the source control. Include branch as empty string for VsoTfvc.\n * @return the next definition stage.\n */\n WithCreate withBranch(String branch);\n }\n /** The stage of the SourceControl definition allowing to specify folderPath. */\n interface WithFolderPath {\n /**\n * Specifies the folderPath property: The folder path of the source control. Path must be relative..\n *\n * @param folderPath The folder path of the source control. Path must be relative.\n * @return the next definition stage.\n */\n WithCreate withFolderPath(String folderPath);\n }\n /** The stage of the SourceControl definition allowing to specify autoSync. */\n interface WithAutoSync {\n /**\n * Specifies the autoSync property: The auto async of the source control. Default is false..\n *\n * @param autoSync The auto async of the source control. Default is false.\n * @return the next definition stage.\n */\n WithCreate withAutoSync(Boolean autoSync);\n }\n /** The stage of the SourceControl definition allowing to specify publishRunbook. */\n interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n WithCreate withPublishRunbook(Boolean publishRunbook);\n }\n /** The stage of the SourceControl definition allowing to specify sourceType. */\n interface WithSourceType {\n /**\n * Specifies the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case\n * sensitive..\n *\n * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.\n * @return the next definition stage.\n */\n WithCreate withSourceType(SourceType sourceType);\n }\n /** The stage of the SourceControl definition allowing to specify securityToken. */\n interface WithSecurityToken {\n /**\n * Specifies the securityToken property: The authorization token for the repo of the source control..\n *\n * @param securityToken The authorization token for the repo of the source control.\n * @return the next definition stage.\n */\n WithCreate withSecurityToken(SourceControlSecurityTokenProperties securityToken);\n }\n /** The stage of the SourceControl definition allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }\n }",
"public CompoundExpression getParent (){\n return _parent;\n }",
"public PropertySelector getParent() {\n return parent;\n }",
"@DISPID(150)\n @PropGet\n com4j.Com4jObject getParent();",
"@DISPID(150)\n @PropGet\n com4j.Com4jObject getParent();",
"public Foo getParent() {\n return parent;\n }",
"public int Parent() { return this.Parent; }",
"public CommitNode parent() {\r\n\t\treturn parentCommit;\r\n\t}",
"public TimedTask getParent() {\n return parent;\n }",
"@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}",
"Object getParent();",
"public PuzzleState getParent();",
"public void setParent(State aParent);",
"interface WithParentResource {\n /**\n * Specifies resourceGroupName, accountName.\n *\n * @param resourceGroupName The name of the Azure resource group.\n * @param accountName The name of the Data Lake Store account.\n * @return the next definition stage.\n */\n WithIdProvider withExistingAccount(String resourceGroupName, String accountName);\n }",
"public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }",
"public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}",
"public RTWLocation parent();",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"@Override\n public TWSDLExtensible getParent() {\n return null;\n }",
"public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }",
"public String getParentParamCode() {\n return parentParamCode;\n }",
"com.google.protobuf.ByteString getParentBytes();",
"public static void setParentEventId(ExtendedRecord er, ALATaxonRecord tr) {\n extractOptValue(er, DwcTerm.parentEventID).ifPresent(tr::setParentId);\n }",
"public PlanNode getParent() {\n return parent;\n }",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"public FileIndex getParent()\n {\n return( parent );\n }",
"public SpacialPattern getParent() {\n\t\treturn parent;\n\t}",
"protected LambdaTerm getParent() { return parent; }",
"public Colourizer getParentColour() {\n return parentLineColour;\n }",
"public E getParentEntity() {\n return parentEntity;\n }",
"public String getParent() {\n return _theParent;\n }",
"public String getParentActivity() {\n return parentActivity;\n }",
"public ILexComponent getParent();",
"public String getParentLabel(){\n\t\treturn this.parentLabel;\n\t}",
"public String getParentNode()\r\n\t{\r\n\t\tif (roadBelongingType.equals(\"inbound\"))\r\n\t\t{\r\n\t\t\treturn endNode;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn startNode;\r\n\t\t}\r\n\t}",
"public ConversionHelper getParent()\n {\n return parent;\n }",
"public int getParent();",
"UIComponent getParent();",
"public void setParent(CDROutputStream parent) {\n this.parent = parent;\n }",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"@ApiModelProperty(example = \"null\", value = \"The backend that is used for when properties are not set. This allows credentials to be set at one backend and used by multiple backends.\")\n public String getParentId() {\n return parentId;\n }",
"public int getParentID() {\n\t\treturn parentID;\n\t}",
"abstract public Command getParent();"
] | [
"0.64974475",
"0.6463315",
"0.59741056",
"0.59720993",
"0.59720993",
"0.57571214",
"0.56966496",
"0.5694846",
"0.56945443",
"0.56836706",
"0.55895424",
"0.5583105",
"0.55446887",
"0.5538565",
"0.55315524",
"0.552959",
"0.5521891",
"0.5515234",
"0.5515234",
"0.54732376",
"0.5463832",
"0.5457165",
"0.54336643",
"0.53911555",
"0.5379911",
"0.53672546",
"0.5358911",
"0.5356849",
"0.535177",
"0.53503305",
"0.53215575",
"0.5315114",
"0.5305102",
"0.5303262",
"0.528888",
"0.5277008",
"0.52679026",
"0.5255818",
"0.52537173",
"0.52510536",
"0.52394617",
"0.5239068",
"0.5234021",
"0.5221411",
"0.5221337",
"0.5210081",
"0.52060175",
"0.5202331",
"0.5188809",
"0.5188809",
"0.5188809",
"0.51883155",
"0.5188171",
"0.51871324",
"0.5183317",
"0.51826054",
"0.51794547",
"0.5173639",
"0.5170646",
"0.51695675",
"0.5167777",
"0.5167777",
"0.5166531",
"0.51644313",
"0.515073",
"0.5150163",
"0.51493263",
"0.5148234",
"0.51453245",
"0.5138056",
"0.513296",
"0.51234037",
"0.50974405",
"0.50967354",
"0.50958985",
"0.5090333",
"0.50844294",
"0.5082531",
"0.507998",
"0.5079558",
"0.50784814",
"0.5074729",
"0.50715697",
"0.5070583",
"0.50687116",
"0.50670725",
"0.5063333",
"0.5059253",
"0.5056334",
"0.5056326",
"0.50526893",
"0.5050854",
"0.50483835",
"0.50440663",
"0.50440186",
"0.50406224",
"0.5037407",
"0.50283825",
"0.50261706",
"0.5020704"
] | 0.5528634 | 16 |
The stage of the EventChannel definition which contains all the minimum required properties for the resource to be created, but also allows for any other optional properties to be specified. | interface WithCreate
extends DefinitionStages.WithSource,
DefinitionStages.WithDestination,
DefinitionStages.WithExpirationTimeIfNotActivatedUtc,
DefinitionStages.WithFilter,
DefinitionStages.WithPartnerTopicFriendlyDescription {
/**
* Executes the create request.
*
* @return the created resource.
*/
EventChannel create();
/**
* Executes the create request.
*
* @param context The context to associate with this operation.
* @return the created resource.
*/
EventChannel create(Context context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"WithCreate withDestination(EventChannelDestination destination);",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithLevel,\n DefinitionStages.WithCreate {\n }",
"interface WithCreate\n extends DefinitionStages.WithRepoUrl,\n DefinitionStages.WithBranch,\n DefinitionStages.WithFolderPath,\n DefinitionStages.WithAutoSync,\n DefinitionStages.WithPublishRunbook,\n DefinitionStages.WithSourceType,\n DefinitionStages.WithSecurityToken,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n SourceControl create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n SourceControl create(Context context);\n }",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"EventChannel create();",
"interface Definition extends\n DefinitionStages.Blank,\n DefinitionStages.WithGroup,\n DefinitionStages.WithSku,\n DefinitionStages.WithPartitionsAndCreate,\n DefinitionStages.WithReplicasAndCreate,\n DefinitionStages.WithCreate {\n }",
"interface Definition extends DefinitionStages.Blank, DefinitionStages.WithVault, DefinitionStages.WithProperties, DefinitionStages.WithCreate {\n }",
"interface DefinitionStages {\n /**\n * The first stage of namespace authorization rule definition.\n */\n interface Blank extends AuthorizationRule.DefinitionStages.WithListenOrSendOrManage<WithCreate> {\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<NamespaceAuthorizationRule> {\n }\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate {\n }",
"interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate {\n }",
"interface DefinitionStages {\n /** The first stage of the SourceControl definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the SourceControl definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, automationAccountName.\n *\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @return the next definition stage.\n */\n WithCreate withExistingAutomationAccount(String resourceGroupName, String automationAccountName);\n }\n /**\n * The stage of the SourceControl definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithRepoUrl,\n DefinitionStages.WithBranch,\n DefinitionStages.WithFolderPath,\n DefinitionStages.WithAutoSync,\n DefinitionStages.WithPublishRunbook,\n DefinitionStages.WithSourceType,\n DefinitionStages.WithSecurityToken,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n SourceControl create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n SourceControl create(Context context);\n }\n /** The stage of the SourceControl definition allowing to specify repoUrl. */\n interface WithRepoUrl {\n /**\n * Specifies the repoUrl property: The repo url of the source control..\n *\n * @param repoUrl The repo url of the source control.\n * @return the next definition stage.\n */\n WithCreate withRepoUrl(String repoUrl);\n }\n /** The stage of the SourceControl definition allowing to specify branch. */\n interface WithBranch {\n /**\n * Specifies the branch property: The repo branch of the source control. Include branch as empty string for\n * VsoTfvc..\n *\n * @param branch The repo branch of the source control. Include branch as empty string for VsoTfvc.\n * @return the next definition stage.\n */\n WithCreate withBranch(String branch);\n }\n /** The stage of the SourceControl definition allowing to specify folderPath. */\n interface WithFolderPath {\n /**\n * Specifies the folderPath property: The folder path of the source control. Path must be relative..\n *\n * @param folderPath The folder path of the source control. Path must be relative.\n * @return the next definition stage.\n */\n WithCreate withFolderPath(String folderPath);\n }\n /** The stage of the SourceControl definition allowing to specify autoSync. */\n interface WithAutoSync {\n /**\n * Specifies the autoSync property: The auto async of the source control. Default is false..\n *\n * @param autoSync The auto async of the source control. Default is false.\n * @return the next definition stage.\n */\n WithCreate withAutoSync(Boolean autoSync);\n }\n /** The stage of the SourceControl definition allowing to specify publishRunbook. */\n interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n WithCreate withPublishRunbook(Boolean publishRunbook);\n }\n /** The stage of the SourceControl definition allowing to specify sourceType. */\n interface WithSourceType {\n /**\n * Specifies the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case\n * sensitive..\n *\n * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.\n * @return the next definition stage.\n */\n WithCreate withSourceType(SourceType sourceType);\n }\n /** The stage of the SourceControl definition allowing to specify securityToken. */\n interface WithSecurityToken {\n /**\n * Specifies the securityToken property: The authorization token for the repo of the source control..\n *\n * @param securityToken The authorization token for the repo of the source control.\n * @return the next definition stage.\n */\n WithCreate withSecurityToken(SourceControlSecurityTokenProperties securityToken);\n }\n /** The stage of the SourceControl definition allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }\n }",
"interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithSku,\n DefinitionStages.WithOsType,\n DefinitionStages.WithHyperVGeneration,\n DefinitionStages.WithCreationData,\n DefinitionStages.WithDiskSizeGB,\n DefinitionStages.WithEncryptionSettingsCollection,\n DefinitionStages.WithIncremental,\n DefinitionStages.WithEncryption {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Snapshot create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Snapshot create(Context context);\n }",
"interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }",
"interface WithProperties {\n /**\n * Specifies properties.\n * @param properties Properties of the secret\n * @return the next definition stage\n */\n WithCreate withProperties(SecretProperties properties);\n }",
"interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }",
"interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithKind,\n DefinitionStages.WithSku,\n DefinitionStages.WithIdentity,\n DefinitionStages.WithProperties {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Account create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Account create(Context context);\n }",
"interface Blank extends AuthorizationRule.DefinitionStages.WithListenOrSendOrManage<WithCreate> {\n }",
"interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithLocation,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithCreate {\n }",
"interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithLocation,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithCreate {\n }",
"interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithProperties,\n DefinitionStages.WithClientTenantId {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n JobResponse create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n JobResponse create(Context context);\n }",
"interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithNetworkProfile,\n DefinitionStages.WithAutoShutdownProfile,\n DefinitionStages.WithConnectionProfile,\n DefinitionStages.WithVirtualMachineProfile,\n DefinitionStages.WithSecurityProfile,\n DefinitionStages.WithRosterProfile,\n DefinitionStages.WithLabPlanId,\n DefinitionStages.WithTitle,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Lab create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Lab create(Context context);\n }",
"interface WithCreate extends DefinitionStages.WithNotes, DefinitionStages.WithOwners {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n ManagementLockObject create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n ManagementLockObject create(Context context);\n }",
"interface WithCreate extends\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMin,\n SqlElasticPoolOperations.DefinitionStages.WithDatabaseDtuMax,\n SqlElasticPoolOperations.DefinitionStages.WithDtu,\n SqlElasticPoolOperations.DefinitionStages.WithStorageCapacity,\n SqlElasticPoolOperations.DefinitionStages.WithDatabase,\n Resource.DefinitionWithTags<SqlElasticPoolOperations.DefinitionStages.WithCreate>,\n Creatable<SqlElasticPool> {\n }",
"@Override\n public Event initialise(Ec2LaunchConfiguration newResource) {\n return null;\n }",
"@Override\n public Event add(Ec2LaunchConfiguration newResource) {\n return null;\n }",
"public\n CreateEvent()\n {}",
"interface WithCreationData {\n /**\n * Specifies the creationData property: Disk source information. CreationData information cannot be changed\n * after the disk has been created..\n *\n * @param creationData Disk source information. CreationData information cannot be changed after the disk\n * has been created.\n * @return the next definition stage.\n */\n WithCreate withCreationData(CreationData creationData);\n }",
"public VertexEvent() {\n\t\tsuper();\n\n\t\tthis.jobVertexID = new JobVertexID();\n\t\tthis.jobVertexName = null;\n\t\tthis.totalNumberOfSubtasks = -1;\n\t\tthis.indexOfSubtask = -1;\n\t\tthis.currentExecutionState = ExecutionState.CREATED;\n\t\tthis.description = null;\n\t}",
"interface DefinitionStages {\n /** The first stage of the Account definition. */\n interface Blank extends WithResourceGroup {\n }\n\n /** The stage of the Account definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n\n /**\n * The stage of the Account definition which contains all the minimum required properties for the resource to be\n * created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithKind,\n DefinitionStages.WithSku,\n DefinitionStages.WithIdentity,\n DefinitionStages.WithProperties {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Account create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Account create(Context context);\n }\n\n /** The stage of the Account definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }\n\n /** The stage of the Account definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n\n /** The stage of the Account definition allowing to specify kind. */\n interface WithKind {\n /**\n * Specifies the kind property: The Kind of the resource..\n *\n * @param kind The Kind of the resource.\n * @return the next definition stage.\n */\n WithCreate withKind(String kind);\n }\n\n /** The stage of the Account definition allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The resource model definition representing SKU.\n *\n * @param sku The resource model definition representing SKU.\n * @return the next definition stage.\n */\n WithCreate withSku(Sku sku);\n }\n\n /** The stage of the Account definition allowing to specify identity. */\n interface WithIdentity {\n /**\n * Specifies the identity property: Identity for the resource..\n *\n * @param identity Identity for the resource.\n * @return the next definition stage.\n */\n WithCreate withIdentity(Identity identity);\n }\n\n /** The stage of the Account definition allowing to specify properties. */\n interface WithProperties {\n /**\n * Specifies the properties property: Properties of Cognitive Services account..\n *\n * @param properties Properties of Cognitive Services account.\n * @return the next definition stage.\n */\n WithCreate withProperties(AccountProperties properties);\n }\n }",
"interface WithProperties {\n /**\n * Specifies the properties property: Properties of Cognitive Services account..\n *\n * @param properties Properties of Cognitive Services account.\n * @return the next definition stage.\n */\n WithCreate withProperties(AccountProperties properties);\n }",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithParentResource,\n DefinitionStages.WithIdProvider,\n DefinitionStages.WithCreate {\n }",
"interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate {\n }",
"public void resourceCreated(Resource resource)\n {\n event(\"ResourceCreation\",\n resource.getId(),\n -1,\n -1,\n false);\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCluster, DefinitionStages.WithNodeCount, DefinitionStages.WithStdOutErrPathPrefix, DefinitionStages.WithCreate {\n }",
"interface Definition extends DefinitionStages.Blank, DefinitionStages.WithJobAgent, DefinitionStages.WithMembers, DefinitionStages.WithCreate {\n }",
"interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {\n }",
"WithCreate withSource(EventChannelSource source);",
"interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n WithCreate withPublishRunbook(Boolean publishRunbook);\n }",
"interface WithKind {\n /**\n * Specifies the kind property: The Kind of the resource..\n *\n * @param kind The Kind of the resource.\n * @return the next definition stage.\n */\n WithCreate withKind(String kind);\n }",
"interface DefinitionStages {\n /**\n * The first stage of a MoveCollection definition.\n */\n interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the MoveCollection definition allowing to specify the resource group.\n */\n interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {\n }\n\n /**\n * The stage of the movecollection definition allowing to specify Identity.\n */\n interface WithIdentity {\n /**\n * Specifies identity.\n * @param identity the identity parameter value\n * @return the next definition stage\n */\n WithCreate withIdentity(Identity identity);\n }\n\n /**\n * The stage of the movecollection definition allowing to specify Properties.\n */\n interface WithProperties {\n /**\n * Specifies properties.\n * @param properties the properties parameter value\n * @return the next definition stage\n */\n WithCreate withProperties(MoveCollectionProperties properties);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<MoveCollection>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithIdentity, DefinitionStages.WithProperties {\n }\n }",
"interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }",
"EventChannel create(Context context);",
"interface DefinitionStages {\n /** The first stage of the Snapshot definition. */\n interface Blank extends WithLocation {\n }\n /** The stage of the Snapshot definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(String location);\n }\n /** The stage of the Snapshot definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the Snapshot definition which contains all the minimum required properties for the resource to\n * be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithSku,\n DefinitionStages.WithOsType,\n DefinitionStages.WithHyperVGeneration,\n DefinitionStages.WithCreationData,\n DefinitionStages.WithDiskSizeGB,\n DefinitionStages.WithEncryptionSettingsCollection,\n DefinitionStages.WithIncremental,\n DefinitionStages.WithEncryption {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Snapshot create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Snapshot create(Context context);\n }\n /** The stage of the Snapshot definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n /** The stage of the Snapshot definition allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS..\n *\n * @param sku The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.\n * @return the next definition stage.\n */\n WithCreate withSku(SnapshotSku sku);\n }\n /** The stage of the Snapshot definition allowing to specify osType. */\n interface WithOsType {\n /**\n * Specifies the osType property: The Operating System type..\n *\n * @param osType The Operating System type.\n * @return the next definition stage.\n */\n WithCreate withOsType(OperatingSystemTypes osType);\n }\n /** The stage of the Snapshot definition allowing to specify hyperVGeneration. */\n interface WithHyperVGeneration {\n /**\n * Specifies the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to\n * OS disks only..\n *\n * @param hyperVGeneration The hypervisor generation of the Virtual Machine. Applicable to OS disks only.\n * @return the next definition stage.\n */\n WithCreate withHyperVGeneration(HyperVGeneration hyperVGeneration);\n }\n /** The stage of the Snapshot definition allowing to specify creationData. */\n interface WithCreationData {\n /**\n * Specifies the creationData property: Disk source information. CreationData information cannot be changed\n * after the disk has been created..\n *\n * @param creationData Disk source information. CreationData information cannot be changed after the disk\n * has been created.\n * @return the next definition stage.\n */\n WithCreate withCreationData(CreationData creationData);\n }\n /** The stage of the Snapshot definition allowing to specify diskSizeGB. */\n interface WithDiskSizeGB {\n /**\n * Specifies the diskSizeGB property: If creationData.createOption is Empty, this field is mandatory and it\n * indicates the size of the disk to create. If this field is present for updates or creation with other\n * options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and\n * can only increase the disk's size..\n *\n * @param diskSizeGB If creationData.createOption is Empty, this field is mandatory and it indicates the\n * size of the disk to create. If this field is present for updates or creation with other options, it\n * indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can\n * only increase the disk's size.\n * @return the next definition stage.\n */\n WithCreate withDiskSizeGB(Integer diskSizeGB);\n }\n /** The stage of the Snapshot definition allowing to specify encryptionSettingsCollection. */\n interface WithEncryptionSettingsCollection {\n /**\n * Specifies the encryptionSettingsCollection property: Encryption settings collection used be Azure Disk\n * Encryption, can contain multiple encryption settings per disk or snapshot..\n *\n * @param encryptionSettingsCollection Encryption settings collection used be Azure Disk Encryption, can\n * contain multiple encryption settings per disk or snapshot.\n * @return the next definition stage.\n */\n WithCreate withEncryptionSettingsCollection(EncryptionSettingsCollection encryptionSettingsCollection);\n }\n /** The stage of the Snapshot definition allowing to specify incremental. */\n interface WithIncremental {\n /**\n * Specifies the incremental property: Whether a snapshot is incremental. Incremental snapshots on the same\n * disk occupy less space than full snapshots and can be diffed..\n *\n * @param incremental Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less\n * space than full snapshots and can be diffed.\n * @return the next definition stage.\n */\n WithCreate withIncremental(Boolean incremental);\n }\n /** The stage of the Snapshot definition allowing to specify encryption. */\n interface WithEncryption {\n /**\n * Specifies the encryption property: Encryption property can be used to encrypt data at rest with customer\n * managed keys or platform managed keys..\n *\n * @param encryption Encryption property can be used to encrypt data at rest with customer managed keys or\n * platform managed keys.\n * @return the next definition stage.\n */\n WithCreate withEncryption(Encryption encryption);\n }\n }",
"interface DefinitionStages {\n /** The first stage of the TrustedIdProvider definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the TrustedIdProvider definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, accountName.\n *\n * @param resourceGroupName The name of the Azure resource group.\n * @param accountName The name of the Data Lake Store account.\n * @return the next definition stage.\n */\n WithIdProvider withExistingAccount(String resourceGroupName, String accountName);\n }\n /** The stage of the TrustedIdProvider definition allowing to specify idProvider. */\n interface WithIdProvider {\n /**\n * Specifies the idProvider property: The URL of this trusted identity provider..\n *\n * @param idProvider The URL of this trusted identity provider.\n * @return the next definition stage.\n */\n WithCreate withIdProvider(String idProvider);\n }\n /**\n * The stage of the TrustedIdProvider definition which contains all the minimum required properties for the\n * resource to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n TrustedIdProvider create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n TrustedIdProvider create(Context context);\n }\n }",
"public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }",
"@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}",
"public AnalyticsEvent build() {\n AnalyticsEvent purchaseEvent = null;\n if(isValid() && doBaseValidation()) {\n purchaseEvent = eventClient.createEvent(PURCHASE_EVENT_NAME);\n\n purchaseEvent.addAttribute(PURCHASE_EVENT_PRODUCT_ID_ATTR, productId);\n purchaseEvent.addAttribute(PURCHASE_EVENT_STORE_ATTR, store);\n purchaseEvent.addMetric(PURCHASE_EVENT_QUANTITY_METRIC, quantity);\n\n if(formattedItemPrice != null) {\n purchaseEvent.addAttribute(PURCHASE_EVENT_PRICE_FORMATTED_ATTR, formattedItemPrice);\n }\n\n if(itemPrice != null) {\n purchaseEvent.addMetric(PURCHASE_EVENT_ITEM_PRICE_METRIC, itemPrice);\n }\n\n if(transactionId != null) {\n purchaseEvent.addAttribute(PURCHASE_EVENT_TRANSACTION_ID_ATTR, transactionId);\n }\n\n if(currency != null) {\n purchaseEvent.addAttribute(PURCHASE_EVENT_CURRENCY_ATTR, currency);\n }\n }\n \n return purchaseEvent;\n }",
"public UfFlowAttributeRecord() {\n super(UfFlowAttribute.UF_FLOW_ATTRIBUTE);\n }",
"public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }",
"interface DefinitionStages {\n /**\n * The first stage of the Search service definition.\n */\n interface Blank\n extends GroupableResource.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Search service definition allowing to specify the resource group.\n */\n interface WithGroup\n extends GroupableResource.DefinitionStages.WithGroup<DefinitionStages.WithSku> {\n }\n\n /**\n * The stage of the Search service definition allowing to specify the SKU.\n */\n interface WithSku {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param skuName the SKU\n * @return the next stage of the definition\n */\n WithCreate withSku(SkuName skuName);\n\n /**\n * Specifies to use a free SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithCreate withFreeSku();\n\n /**\n * Specifies to use a basic SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithReplicasAndCreate withBasicSku();\n\n /**\n * Specifies to use a standard SKU type for the Search service.\n *\n * @return the next stage of the definition\n */\n WithPartitionsAndCreate withStandardSku();\n }\n\n interface WithReplicasAndCreate extends WithCreate {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param count the number of replicas to be created\n * @return the next stage of the definition\n */\n WithCreate withReplicaCount(int count);\n }\n\n interface WithPartitionsAndCreate extends WithReplicasAndCreate {\n /**\n * Specifies the SKU of the Search service.\n *\n * @param count the number of partitions to be created\n * @return the next stage of the definition\n */\n WithReplicasAndCreate withPartitionCount(int count);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for the resource to be created\n * (via {@link WithCreate#create()}), but also allows for any other optional settings to be specified.\n */\n interface WithCreate extends\n Creatable<SearchService>,\n Resource.DefinitionWithTags<WithCreate> {\n }\n }",
"WithCreate withProperties(JobDetails properties);",
"protected void beforeCreate(RoutingContext event, JsonObject json){\n\t\tUser u = getUser(event);\n\t\tjson.put(\"userID\", u.getId());\n\t\tjson.put(\"appID\", getId(event, \"appID\"));\n\t\tjson.put(\"created\", System.currentTimeMillis());\n\t}",
"interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }",
"interface DefinitionStages {\n /**\n * The first stage of a Secret definition.\n */\n interface Blank extends WithVault {\n }\n\n /**\n * The stage of the secret definition allowing to specify Vault.\n */\n interface WithVault {\n /**\n * Specifies resourceGroupName, vaultName.\n * @param resourceGroupName The name of the Resource Group to which the vault belongs\n * @param vaultName Name of the vault\n * @return the next definition stage\n */\n WithProperties withExistingVault(String resourceGroupName, String vaultName);\n }\n\n /**\n * The stage of the secret definition allowing to specify Properties.\n */\n interface WithProperties {\n /**\n * Specifies properties.\n * @param properties Properties of the secret\n * @return the next definition stage\n */\n WithCreate withProperties(SecretProperties properties);\n }\n\n /**\n * The stage of the secret definition allowing to specify Tags.\n */\n interface WithTags {\n /**\n * Specifies tags.\n * @param tags The tags that will be assigned to the secret\n * @return the next definition stage\n */\n WithCreate withTags(Map<String, String> tags);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<Secret>, DefinitionStages.WithTags {\n }\n }",
"DataControllerResource.DefinitionStages.Blank define(String name);",
"interface DefinitionStages {\n /**\n * The first stage of a Job definition.\n */\n interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Job definition allowing to specify the resource group.\n */\n interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCluster> {\n }\n\n /**\n * The stage of the job definition allowing to specify Cluster.\n */\n interface WithCluster {\n /**\n * Specifies cluster.\n * @param cluster the cluster parameter value\n * @return the next definition stage\n*/\n WithNodeCount withCluster(ResourceId cluster);\n }\n\n /**\n * The stage of the job definition allowing to specify NodeCount.\n */\n interface WithNodeCount {\n /**\n * Specifies nodeCount.\n * @param nodeCount The job will be gang scheduled on that many compute nodes\n * @return the next definition stage\n*/\n WithStdOutErrPathPrefix withNodeCount(int nodeCount);\n }\n\n /**\n * The stage of the job definition allowing to specify StdOutErrPathPrefix.\n */\n interface WithStdOutErrPathPrefix {\n /**\n * Specifies stdOutErrPathPrefix.\n * @param stdOutErrPathPrefix The path where the Batch AI service will upload stdout and stderror of the job\n * @return the next definition stage\n*/\n WithCreate withStdOutErrPathPrefix(String stdOutErrPathPrefix);\n }\n\n /**\n * The stage of the job definition allowing to specify Caffe2Settings.\n */\n interface WithCaffe2Settings {\n /**\n * Specifies caffe2Settings.\n * @param caffe2Settings the caffe2Settings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffe2Settings(Caffe2Settings caffe2Settings);\n }\n\n /**\n * The stage of the job definition allowing to specify CaffeSettings.\n */\n interface WithCaffeSettings {\n /**\n * Specifies caffeSettings.\n * @param caffeSettings the caffeSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffeSettings(CaffeSettings caffeSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify ChainerSettings.\n */\n interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CntkSettings.\n */\n interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCntkSettings(CNTKsettings cntkSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify Constraints.\n */\n interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }\n\n /**\n * The stage of the job definition allowing to specify ContainerSettings.\n */\n interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next definition stage\n */\n WithCreate withContainerSettings(ContainerSettings containerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CustomToolkitSettings.\n */\n interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify EnvironmentVariables.\n */\n interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }\n\n /**\n * The stage of the job definition allowing to specify ExperimentName.\n */\n interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }\n\n /**\n * The stage of the job definition allowing to specify InputDirectories.\n */\n interface WithInputDirectories {\n /**\n * Specifies inputDirectories.\n * @param inputDirectories the inputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withInputDirectories(List<InputDirectory> inputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify JobPreparation.\n */\n interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }\n\n /**\n * The stage of the job definition allowing to specify OutputDirectories.\n */\n interface WithOutputDirectories {\n /**\n * Specifies outputDirectories.\n * @param outputDirectories the outputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withOutputDirectories(List<OutputDirectory> outputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify Priority.\n */\n interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }\n\n /**\n * The stage of the job definition allowing to specify TensorFlowSettings.\n */\n interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next definition stage\n */\n WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<Job>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCaffe2Settings, DefinitionStages.WithCaffeSettings, DefinitionStages.WithChainerSettings, DefinitionStages.WithCntkSettings, DefinitionStages.WithConstraints, DefinitionStages.WithContainerSettings, DefinitionStages.WithCustomToolkitSettings, DefinitionStages.WithEnvironmentVariables, DefinitionStages.WithExperimentName, DefinitionStages.WithInputDirectories, DefinitionStages.WithJobPreparation, DefinitionStages.WithOutputDirectories, DefinitionStages.WithPriority, DefinitionStages.WithTensorFlowSettings {\n }\n }",
"public Channel() {\n this(DSL.name(\"channel\"), null);\n }",
"interface DefinitionStages {\n /** The first stage of the JobResponse definition. */\n interface Blank extends WithResourceGroup {\n }\n /** The stage of the JobResponse definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the user\n * subscription.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the JobResponse definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithProperties,\n DefinitionStages.WithClientTenantId {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n JobResponse create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n JobResponse create(Context context);\n }\n /** The stage of the JobResponse definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }\n /** The stage of the JobResponse definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job..\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n WithCreate withTags(Object tags);\n }\n /** The stage of the JobResponse definition allowing to specify properties. */\n interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }\n /** The stage of the JobResponse definition allowing to specify clientTenantId. */\n interface WithClientTenantId {\n /**\n * Specifies the clientTenantId property: The tenant ID of the client making the request..\n *\n * @param clientTenantId The tenant ID of the client making the request.\n * @return the next definition stage.\n */\n WithCreate withClientTenantId(String clientTenantId);\n }\n }",
"WithCreate withProperties(AccountProperties properties);",
"public Event createPublish(Address resource, String event, int expires);",
"interface WithBasicEdition extends SqlElasticPoolOperations.DefinitionStages.WithCreate {\n /**\n * Sets the total shared eDTU for the SQL Azure Database Elastic Pool.\n *\n * @param eDTU total shared eDTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition withReservedDtu(SqlElasticPoolBasicEDTUs eDTU);\n\n /**\n * Sets the maximum number of eDTU a database in the pool can consume.\n *\n * @param eDTU maximum eDTU a database in the pool can consume\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition withDatabaseDtuMax(SqlElasticPoolBasicMaxEDTUs eDTU);\n\n /**\n * Sets the minimum number of eDTU for each database in the pool are regardless of its activity.\n *\n * @param eDTU minimum eDTU for all SQL Azure databases\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition withDatabaseDtuMin(SqlElasticPoolBasicMinEDTUs eDTU);\n }",
"public WorkflowResource() {\r\n\t}",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"public ExternalDataEnginePropertiesBuilder(String qualifiedName, String name, String description,\n String deployedImplementationType, String capabilityVersion, String patchLevel, String source,\n Map<String, String> additionalProperties,\n OMRSRepositoryHelper repositoryHelper, String serviceName,\n String serverName) {\n\n super(qualifiedName, additionalProperties, repositoryHelper, serviceName, serverName);\n\n this.name = name;\n this.description = description;\n this.deployedImplementationType = deployedImplementationType;\n this.capabilityVersion = capabilityVersion;\n this.patchLevel = patchLevel;\n this.source = source;\n }",
"interface DefinitionStages {\n /** The first stage of the Lab definition. */\n interface Blank extends WithLocation {\n }\n /** The stage of the Lab definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(String location);\n }\n /** The stage of the Lab definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the Lab definition which contains all the minimum required properties for the resource to be\n * created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithNetworkProfile,\n DefinitionStages.WithAutoShutdownProfile,\n DefinitionStages.WithConnectionProfile,\n DefinitionStages.WithVirtualMachineProfile,\n DefinitionStages.WithSecurityProfile,\n DefinitionStages.WithRosterProfile,\n DefinitionStages.WithLabPlanId,\n DefinitionStages.WithTitle,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Lab create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Lab create(Context context);\n }\n /** The stage of the Lab definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n /** The stage of the Lab definition allowing to specify networkProfile. */\n interface WithNetworkProfile {\n /**\n * Specifies the networkProfile property: The network profile for the lab, typically applied via a lab plan.\n * This profile cannot be modified once a lab has been created..\n *\n * @param networkProfile The network profile for the lab, typically applied via a lab plan. This profile\n * cannot be modified once a lab has been created.\n * @return the next definition stage.\n */\n WithCreate withNetworkProfile(LabNetworkProfile networkProfile);\n }\n /** The stage of the Lab definition allowing to specify autoShutdownProfile. */\n interface WithAutoShutdownProfile {\n /**\n * Specifies the autoShutdownProfile property: The resource auto shutdown configuration for the lab. This\n * controls whether actions are taken on resources that are sitting idle..\n *\n * @param autoShutdownProfile The resource auto shutdown configuration for the lab. This controls whether\n * actions are taken on resources that are sitting idle.\n * @return the next definition stage.\n */\n WithCreate withAutoShutdownProfile(AutoShutdownProfile autoShutdownProfile);\n }\n /** The stage of the Lab definition allowing to specify connectionProfile. */\n interface WithConnectionProfile {\n /**\n * Specifies the connectionProfile property: The connection profile for the lab. This controls settings such\n * as web access to lab resources or whether RDP or SSH ports are open..\n *\n * @param connectionProfile The connection profile for the lab. This controls settings such as web access to\n * lab resources or whether RDP or SSH ports are open.\n * @return the next definition stage.\n */\n WithCreate withConnectionProfile(ConnectionProfile connectionProfile);\n }\n /** The stage of the Lab definition allowing to specify virtualMachineProfile. */\n interface WithVirtualMachineProfile {\n /**\n * Specifies the virtualMachineProfile property: The profile used for creating lab virtual machines..\n *\n * @param virtualMachineProfile The profile used for creating lab virtual machines.\n * @return the next definition stage.\n */\n WithCreate withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile);\n }\n /** The stage of the Lab definition allowing to specify securityProfile. */\n interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n WithCreate withSecurityProfile(SecurityProfile securityProfile);\n }\n /** The stage of the Lab definition allowing to specify rosterProfile. */\n interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n WithCreate withRosterProfile(RosterProfile rosterProfile);\n }\n /** The stage of the Lab definition allowing to specify labPlanId. */\n interface WithLabPlanId {\n /**\n * Specifies the labPlanId property: The ID of the lab plan. Used during resource creation to provide\n * defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId\n * on an existing lab provides organization...\n *\n * @param labPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a\n * permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab\n * provides organization..\n * @return the next definition stage.\n */\n WithCreate withLabPlanId(String labPlanId);\n }\n /** The stage of the Lab definition allowing to specify title. */\n interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }\n /** The stage of the Lab definition allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }\n }",
"public Event() {\r\n\r\n\t}",
"public BuildingResource() {\n }",
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"CustomRollout.DefinitionStages.Blank define(String name);",
"interface WithLevel {\n /**\n * Specifies the level property: The level of the lock. Possible values are: NotSpecified, CanNotDelete,\n * ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete.\n * ReadOnly means authorized users can only read from a resource, but they can't modify or delete it..\n *\n * @param level The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly.\n * CanNotDelete means authorized users are able to read and modify the resources, but not delete.\n * ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.\n * @return the next definition stage.\n */\n WithCreate withLevel(LockLevel level);\n }",
"WithCreate withFilter(EventChannelFilter filter);",
"protected ProjectCreationDescriptor() {\n\t}",
"interface WithIdentity {\n /**\n * Specifies the identity property: Identity for the resource..\n *\n * @param identity Identity for the resource.\n * @return the next definition stage.\n */\n WithCreate withIdentity(Identity identity);\n }",
"BoundaryEvent createBoundaryEvent();",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }",
"public Event() {\n\t}",
"public RequirementsRecord() {\n super(Requirements.REQUIREMENTS);\n }",
"public Event(){\n \n }",
"public CoasterCreateNodeEvent(Player who, TrackNode node) {\n super(who, node);\n }",
"public Event() {\n }",
"public Event() {\n }",
"public Event() {}",
"public void entityCreated(BootstrapContext bootstrapContext)\r\n \t\t\tthrows ResourceException {\r\n \t\t\r\n \t\tif (logger.isInfoEnabled()) {\r\n \t\t\tlogger.info(\"entityCreated()\");\r\n \t\t}\r\n \t\t\r\n \t\tthis.bootstrapContext = bootstrapContext;\r\n \t\tthis.sleeEndpoint = bootstrapContext.getSleeEndpoint();\r\n \t\tthis.eventLookup = bootstrapContext.getEventLookupFacility();\r\n \t}",
"public void create(Rule event);",
"EventChannelProvisioningState provisioningState();",
"WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"public EventException() {\n super(\"OOPS!!! The description or time of an event cannot be empty.\");\n }"
] | [
"0.68030024",
"0.6005361",
"0.58438104",
"0.56969064",
"0.5542217",
"0.54972774",
"0.5496958",
"0.5495914",
"0.54700613",
"0.54570615",
"0.5346753",
"0.5338771",
"0.5324718",
"0.53011143",
"0.53011143",
"0.5268061",
"0.5259585",
"0.52548957",
"0.52521217",
"0.52375907",
"0.52375907",
"0.5231109",
"0.5214559",
"0.5213297",
"0.5200827",
"0.5200827",
"0.5196066",
"0.5192425",
"0.5148861",
"0.51350594",
"0.51290375",
"0.5113142",
"0.5089927",
"0.5085586",
"0.5073341",
"0.50659084",
"0.5055576",
"0.50530547",
"0.5034017",
"0.50157183",
"0.5012424",
"0.4994492",
"0.4993758",
"0.4992529",
"0.4986676",
"0.49375528",
"0.49266154",
"0.48981553",
"0.48974228",
"0.48860043",
"0.48488247",
"0.48007354",
"0.4795638",
"0.47760347",
"0.47756442",
"0.47726297",
"0.47695795",
"0.47647548",
"0.47573483",
"0.47476053",
"0.47361493",
"0.4729287",
"0.4718593",
"0.47133365",
"0.47076285",
"0.47056586",
"0.46930057",
"0.46613994",
"0.46611217",
"0.4657842",
"0.46546888",
"0.46331096",
"0.46268135",
"0.4611482",
"0.46007353",
"0.45968458",
"0.45829323",
"0.45663515",
"0.4565622",
"0.45654547",
"0.45614865",
"0.45561737",
"0.45521212",
"0.4545537",
"0.4540787",
"0.453493",
"0.453493",
"0.453493",
"0.45329872",
"0.4528733",
"0.45285636",
"0.45258528",
"0.45202184",
"0.45202184",
"0.45153978",
"0.45099625",
"0.45081246",
"0.45045072",
"0.45003113",
"0.44966918"
] | 0.68914306 | 0 |
Executes the create request. | EventChannel create(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CompletableFuture<CreateResponse> create(CreateRequest request) throws IOException {\n\t\treturn this.transport.performRequestAsync(request, CreateRequest.ENDPOINT, this.requestOptions);\n\t}",
"public void create(){}",
"CreateResponse create(@NonNull CreateRequest request);",
"@Override\n\tpublic Response execute() {\n\n\t\tDatabaseAccessor db = null;\n\t\tint filetype;\n\t\tif(type.equalsIgnoreCase(\"raw\")) {\n\t\t\tfiletype = FileTuple.RAW;\n\t\t} else if(type.equalsIgnoreCase(\"profile\")) {\n\t\t\tfiletype = FileTuple.PROFILE;\n\t\t} else if(type.equalsIgnoreCase(\"region\")) {\n\t\t\tfiletype = FileTuple.REGION;\n\t\t} else {\n\t\t\tfiletype = FileTuple.OTHER;\n\t\t}\n\t\ttry {\n\t\t\tdb = initDB();\n\t\t\tFileTuple ft = db.addNewFile(experimentID, filetype, fileName, null, metaData, author, uploader, isPrivate, grVersion);\n\t\t\treturn new AddFileToExperimentResponse(StatusCode.OK, ft.getUploadURL());\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ErrorResponse(StatusCode.BAD_REQUEST, e.getMessage());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ErrorResponse(StatusCode.SERVICE_UNAVAILABLE, e.getMessage());\n\t\t} finally{\n\t\t\tdb.close();\n\t\t}\n\t}",
"public void create() {\n\t\t\n\t}",
"@BearerAuth\n @HttpRequestHandler(paths = \"/api/v2/service/create\", methods = \"POST\")\n private void handleCreateRequest(@NonNull HttpContext context, @NonNull @RequestBody Document body) {\n var configuration = body.readObject(\"serviceConfiguration\", ServiceConfiguration.class);\n if (configuration == null) {\n // check for a provided service task\n var serviceTask = body.readObject(\"task\", ServiceTask.class);\n if (serviceTask != null) {\n configuration = ServiceConfiguration.builder(serviceTask).build();\n } else {\n // fallback to a service task name which has to exist\n var serviceTaskName = body.getString(\"serviceTaskName\");\n if (serviceTaskName != null) {\n var task = this.serviceTaskProvider.serviceTask(serviceTaskName);\n if (task != null) {\n configuration = ServiceConfiguration.builder(task).build();\n } else {\n // we got a task but it does not exist\n this.badRequest(context)\n .body(this.failure().append(\"reason\", \"Provided task is unknown\").toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n return;\n }\n } else {\n this.sendInvalidServiceConfigurationResponse(context);\n return;\n }\n }\n }\n\n var createResult = this.serviceFactory.createCloudService(configuration);\n var start = body.getBoolean(\"start\", false);\n if (start && createResult.state() == ServiceCreateResult.State.CREATED) {\n createResult.serviceInfo().provider().start();\n }\n\n this.ok(context)\n .body(this.success().append(\"result\", createResult).toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n }",
"abstract protected ActionForward processCreate( UserRequest request )\n throws IOException, ServletException;",
"@RequestMapping(method = RequestMethod.POST)\n public Bin create() {\n throw new NotImplementedException(\"To be implemented\");\n }",
"JobResponse create();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"UserCreateResponse createUser(UserCreateRequest request);",
"public abstract Response create(Request request, Response response);",
"@Override\n public MockResponse handleCreate(RecordedRequest request) {\n return process(request, postHandler);\n }",
"void create(Model model) throws Exception;",
"public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\n }",
"public void run() {\n int id = getIdentity();\n iUser user = createUser(id);\n boolean userCreated = (user != null);\n if (userCreated) {\n presenter.printAccountCreated();\n } else {\n presenter.printRequestDeclined();\n }\n }",
"@Override\n\tpublic void create() {\n\n\t}",
"E create(Resource data);",
"public abstract void create();",
"public final CompletableFuture<CreateResponse> create(\n\t\t\tFunction<CreateRequest.Builder, ObjectBuilder<CreateRequest>> fn) throws IOException {\n\t\treturn create(fn.apply(new CreateRequest.Builder()).build());\n\t}",
"@POST( CONTROLLER )\n VersionedObjectKey createObject( @Body CreateObjectRequest request );",
"void filterCreate(ServerContext context, CreateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);",
"@RequestMapping(\"/Cert_create\")\n\tpublic String process() {\n\t\tcertificateService.createCertificateDTO(cert);\n\t\treturn \"Certificate Done\";\n\n\t}",
"public boolean create(ModelObject obj);",
"public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"public Integer create(Caseresultparameters newInstance) throws ServiceException;",
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method allows to create a new requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_CREATED, message = \"Returns the created requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response createRequirement(@ApiParam(value = \"Requirement entity\", required = true) Requirement requirementToCreate) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n // TODO: check whether the current user may create a new requirement\n dalFacade = service.bazaarService.getDBConnection();\n Gson gson = new Gson();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n requirementToCreate.setCreatorId(internalUserId);\n Vtor vtor = service.bazaarService.getValidators();\n vtor.useProfiles(\"create\");\n vtor.validate(requirementToCreate);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n\n // check if all components are in the same project\n for (Component component : requirementToCreate.getComponents()) {\n component = dalFacade.getComponentById(component.getId());\n if (requirementToCreate.getProjectId() != component.getProjectId()) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.VALIDATION, \"Component does not fit with project\");\n }\n }\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Create_REQUIREMENT, String.valueOf(requirementToCreate.getProjectId()), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.create\"));\n }\n Requirement createdRequirement = dalFacade.createRequirement(requirementToCreate, internalUserId);\n dalFacade.followRequirement(internalUserId, createdRequirement.getId());\n\n // check if attachments are given\n if (requirementToCreate.getAttachments() != null && !requirementToCreate.getAttachments().isEmpty()) {\n for (Attachment attachment : requirementToCreate.getAttachments()) {\n attachment.setCreatorId(internalUserId);\n attachment.setRequirementId(createdRequirement.getId());\n vtor.validate(attachment);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n dalFacade.createAttachment(attachment);\n }\n }\n\n createdRequirement = dalFacade.getRequirementById(createdRequirement.getId(), internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, createdRequirement.getCreation_time(), Activity.ActivityAction.CREATE, createdRequirement.getId(),\n Activity.DataType.REQUIREMENT, createdRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.status(Response.Status.CREATED).entity(gson.toJson(createdRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"public Message handleCreate(Message createRequest) {\n\n Message response = new Message(Message.GENERIC_ERROR);\n\n int SectionNumbers = createRequest.getSectionNumbers();\n String DocumentName = createRequest.getDocumentName();\n String owner = createRequest.getUserName();\n\n // case: clash in register\n if (controlServer.containsDocumentKey(DocumentName)) {\n response.setId(Message.INVALID_DOCNAME);\n }\n\n // case: no clash in register\n else{\n DocumentData data = new DocumentData(DocumentName,owner,SectionNumbers);\n Document nuovoDocumento = new Document(data);\n\n // insert document into register\n controlServer.addDocument(DocumentName,nuovoDocumento);\n\n // update relative userData\n UserData toMod = controlServer.getUserData(owner);\n toMod.addDocument(DocumentName);\n controlServer.replaceUser(owner,toMod);\n\n // sends response to client\n response.setUserData(new UserData(toMod));\n response.setDocumentName(DocumentName);\n response.setSectionNumbers(SectionNumbers);\n response.setId(Message.UPDATE_UD);\n }\n return response;\n }",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"Command createCommand() throws ServiceException, AuthException;",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"@RequestMapping(\"/create\")\r\n\t@Produces({ MediaType.TEXT_PLAIN })\r\n\tpublic String createOrder() {\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"in EO calling Validate REST API : \"+System.currentTimeMillis()); \r\n\t\t\tStopWatch watch = new StopWatch();\r\n\t\t\tHttpUriRequest request = new HttpGet(\"http://localhost:\" + \"\" + \"9091\" + \"/eo/validate\");\r\n\t\t\tHttpResponse httpResponse;\r\n\t\t\twatch.start();\r\n\t\t\thttpResponse = HttpClientBuilder.create().build().execute(request);\r\n\t\t\twatch.stop();\r\n\t\t\tresponse = EntityUtils.toString(httpResponse.getEntity());\r\n\t\t\tSystem.out.println(\">>>>>>>Response:\" + response + \" Response time(hh:mm:SS:mS): \" + watch.toString());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif (response.contains(\"Order Validated\"))\r\n\t\t\treturn \"Order Created!!\";\r\n\t\telse\r\n\t\t\tthrow new InternalServerErrorException();\r\n\t}",
"private void handleCreateOperation(String args[]) {\n if (args.length < 4) {\n String requiredArgs = \"<name> <color>\";\n Messages.badNumberOfArgsMessage(args.length, CREATE_OPERATION, requiredArgs);\n System.exit(1);\n }\n\n // set arguments from command line to variables\n String name = args[2];\n String colorString = args[3];\n // convert string to color\n Color colorEnum = null;\n try {\n colorEnum = Color.parseColor(colorString);\n } catch (IllegalArgumentException e) {\n Messages.printAllColors();\n System.exit(1);\n }\n\n // everything is ok, create new brick\n BrickDto brickDto = new BrickDto(name, colorEnum, \"\");\n\n Client client = ClientBuilder.newBuilder().build();\n WebTarget webTarget = client.target(\"http://localhost:8080/pa165/rest/bricks/\");\n webTarget.register(auth);\n Response response = webTarget.request(MediaType.APPLICATION_JSON).post(Entity.entity(brickDto, MediaType.APPLICATION_JSON_TYPE));\n\n // print out some response\n // successful response code is 201 == CREATED\n if (response.getStatus() == Response.Status.CREATED.getStatusCode()) {\n System.out.println(\"Brick with name '\" + name + \"' and color '\" + colorString + \"' was created\");\n } else {\n System.out.println(\"Error on server, server returned \" + response.getStatus());\n }\n }",
"@RequestMapping(path = \"/create\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> create(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.create(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}",
"public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"@Override\r\n\tpublic void postRequest(Request request, Response response) {\r\n\t\tcreateUser(request, response);\r\n\t}",
"Operacion createOperacion();",
"@Override\n @POST\n @Path(\"/networks\")\n public Response createNetwork() throws Exception {\n URI resourceUri = new URI(\"/1\");\n return Response.created(resourceUri).build();\n }",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() > 0) return this;\n\n Adapter adapter = getAdapter();\n if (getId() == null && adapter.shouldPrefetchPrimaryKey(getTableName())) {\n this.id = adapter.getNextSequenceValue(getSequenceName());\n }\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"INSERT INTO \").append(getTableName()).append(\" (\");\n sql.append(quotedColumnNames(includePrimaryKey));\n sql.append(\") VALUES (\").append(quotedAttributeValues(includePrimaryKey)).append(\")\");\n\n id = adapter.insert(sql.toString(), getClass().getName() + \" Create\");\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n\n executeCallbacks(CallbackType.AFTER_CREATE);\n\n return id;\n }",
"public long createRequest(Request _request) throws RequestManagerException, PersistenceResourceAccessException;",
"OperacionColeccion createOperacionColeccion();",
"@Override\n\tpublic void create(ReplyVO4 vo) throws Exception {\n\t\tsession.insert(namespace+\".create4\",vo);\n\t\n\t}",
"public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"public void create() {\n if (created)\n return;\n\n PlayerConnection player = getPlayer();\n player.sendPacket(createObjectivePacket(0, objectiveName));\n player.sendPacket(setObjectiveSlot());\n int i = 0;\n while (i < lines.length)\n sendLine(i++);\n\n created = true;\n }",
"@POST\r\n public Response createResearchObject()\r\n throws BadRequestException, IllegalArgumentException, UriBuilderException, ConflictException,\r\n DigitalLibraryException, NotFoundException {\r\n LOGGER.debug(String.format(\"%s\\t\\tInit create RO\", new DateTime().toString()));\r\n String researchObjectId = request.getHeader(Constants.SLUG_HEADER);\r\n if (researchObjectId == null || researchObjectId.isEmpty()) {\r\n throw new BadRequestException(\"Research object ID is null or empty\");\r\n }\r\n URI uri = uriInfo.getAbsolutePathBuilder().path(researchObjectId).path(\"/\").build();\r\n ResearchObject researchObject = ResearchObject.findByUri(uri);\r\n if (researchObject != null) {\r\n throw new ConflictException(\"RO already exists\");\r\n }\r\n researchObject = new ResearchObject(uri);\r\n URI researchObjectURI = ROSRService.createResearchObject(researchObject);\r\n LOGGER.debug(String.format(\"%s\\t\\tRO created\", new DateTime().toString()));\r\n \r\n RDFFormat format = RDFFormat.forMIMEType(request.getHeader(Constants.ACCEPT_HEADER), RDFFormat.RDFXML);\r\n InputStream manifest = ROSRService.SMS.get().getNamedGraph(researchObject.getManifestUri(), format);\r\n ContentDisposition cd = ContentDisposition.type(format.getDefaultMIMEType())\r\n .fileName(ResearchObject.MANIFEST_PATH).build();\r\n \r\n LOGGER.debug(String.format(\"%s\\t\\tReturning\", new DateTime().toString()));\r\n return Response.created(researchObjectURI).entity(manifest).header(\"Content-disposition\", cd).build();\r\n }",
"Account create();",
"CreateSiteResult createSite(CreateSiteRequest createSiteRequest);",
"CreateWorkerResult createWorker(CreateWorkerRequest createWorkerRequest);",
"protected abstract Command getCreateCommand(CreateRequest request);",
"private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}",
"@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void execute() {\n //this.$context.$Request.initialize();\n this.$context.$Request.extractAllVars();\n\n this.$context.$Response.writeHeader(\"Content-type\", \"text/html; charset=UTF-8\");\n\n // Check security code\n if (!this.$context.$Request.contains(\"code\")) {\n this.$context.$Response.end(\"Code is required!\");\n return;\n }\n String $code = this.$context.$Request.get(\"code\");\n if (!EQ($code, Config.SECURITY_CODE)) {\n this.$context.$Response.end(\"Incorrect code!\");\n return;\n }\n\n // Check package\n if (!this.$context.$Request.contains(\"package\")) {\n this.$context.$Response.end(\"Package is required!\");\n return;\n }\n String $package = this.$context.$Request.get(\"package\");\n if (BLANK($package)) {\n this.$context.$Response.end(\"Empty package!\");\n return;\n }\n String[] $packageChunks = Strings.split(\"-\", $package);\n for (int $n = 0; $n < SIZE($packageChunks); $n++)\n $packageChunks[$n] = Strings.firstCharToUpper($packageChunks[$n]);\n $package = Strings.join(\"/\", $packageChunks);\n\n // Check class\n if (!this.$context.$Request.contains(\"class\")) {\n this.$context.$Response.end(\"Class is required!\");\n return;\n }\n String $className = this.$context.$Request.get(\"class\");\n if (BLANK($className)) {\n this.$context.$Response.end(\"Empty class!\");\n return;\n }\n\n // Check method\n if (!this.$context.$Request.contains(\"method\")) {\n this.$context.$Response.end(\"Method is required!\");\n return;\n }\n String $method = this.$context.$Request.get(\"method\");\n if (BLANK($method)) {\n this.$context.$Response.end(\"Empty method!\");\n return;\n }\n\n // Fill array with parameters\n int $count = 0;\n TArrayList $pars = new TArrayList();\n for (int $n = 1; $n <= 6; $n++) {\n String $parName = CAT(\"par\", $n);\n if (!this.$context.$Request.contains($parName))\n break;\n String $parValue = this.$context.$Request.get($parName);\n if (EQ($parValue, \"_\"))\n $parValue = \"\";\n //$parsArray[] = $parValue;\n $pars.add($parValue);\n $count++;\n }\n\n String $buffer = null;\n Object $result = null;\n\n String $fullClass = CAT($package, \"/\", $className);\n\n $fullClass = Strings.replace(\"/\", \".\", $fullClass);\n TArrayList $pars0 = new TArrayList(new Object[] { this.$context.$Connection });\n $result = Bula.Internal.callMethod($fullClass, $pars0, $method, $pars);\n\n if ($result == null)\n $buffer = \"NULL\";\n else if ($result instanceof DataSet)\n $buffer = ((DataSet)$result).toXml(EOL);\n else\n $buffer = STR($result);\n this.$context.$Response.write($buffer);\n this.$context.$Response.end();\n }",
"@RequestMapping(\"/create\")\n\t@ResponseBody\n\t@Secured(CommonConstants.ROLE_ADMIN)\n\tpublic String process() {\n\t\treturn this.service.isUsersLoaded() ? \"There are existing records in DB\" : service.createData();\n\t}",
"Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);",
"@BodyParser.Of(play.mvc.BodyParser.Json.class)\n public static Result create() throws JsonParseException, JsonMappingException, IOException {\n JsonNode json = request().body().asJson();\n Thing thing = mapper.treeToValue(json, Thing.class);\n thing.save();\n return ok(mapper.valueToTree(thing));\n }",
"@Test\n\tpublic static void create_Task() {\n\t\tString testName = \"Valid Scenario- When all the data are valid\";\n\t\tlog.info(\"Valid Scenario: Create Task\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Task Controller- Create Task\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 201);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}",
"@Create\n public void create()\n {\n \n log.debug(\"Creating users and mailboxes\");\n //MailboxService ms = MMJMXUtil.getMBean(\"meldware.mail:type=MailboxManager,name=MailboxManager\", MailboxService.class);\n AdminTool at = MMJMXUtil.getMBean(\"meldware.mail:type=MailServices,name=AdminTool\", AdminTool.class);\n \n for (MeldwareUser meldwareUser : getUsers())\n {\n at.createUser(meldwareUser.getUsername(), meldwareUser.getPassword(), meldwareUser.getRoles());\n // TODO This won't work on AS 4.2\n /*Mailbox mbox = ms.createMailbox(meldwareUser.getUsername());\n for (String alias : meldwareUser.getAliases())\n {\n ms.createAlias(mbox.getId(), alias);\n }*/\n log.debug(\"Created #0 #1 #2\", meldwareUser.isAdministrator() ? \"administrator\" : \"user\", meldwareUser.getUsername(), meldwareUser.getAliases() == null || meldwareUser.getAliases().size() == 0 ? \"\" : \"with aliases \" + meldwareUser.getAliases());\n }\n }",
"@Override\n\tpublic void create () {\n\n\t}",
"@Override\n protected String doInBackground(Void... voids) {\n RequestHandler requestHandler = new RequestHandler();\n\n String id = String.valueOf(SharedPrefManagerTechnician.getInstance(context).getTechnician().getId());\n //creating request parameters\n HashMap<String, String> params = new HashMap<>();\n params.put(\"technician_id\", id);\n\n //returing the response\n return requestHandler.sendPostRequest(Apis.GET_CREATE_JOB_LIST_URL, params);\n }",
"@Override\n\tprotected Command getCreateCommand(CreateRequest request) {\n\t\treturn null;\n\t}",
"public static void doCreate(RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSet alerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\tString itemType = params.getString(\"itemType\");\n\t\tif(itemType == null || \"\".equals(itemType))\n\t\t{\n\t\t\titemType = TYPE_UPLOAD;\n\t\t}\n\n\t\tString stackOp = params.getString(\"suspended-operations-stack\");\n\n\t\tMap current_stack_frame = null;\n\t\tif(stackOp != null && stackOp.equals(\"peek\"))\n\t\t{\n\t\t\tcurrent_stack_frame = peekAtStack(state);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcurrent_stack_frame = pushOnStack(state);\n\t\t}\n\n\t\tString encoding = data.getRequest().getCharacterEncoding();\n\n\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t{\n\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t}\n\n\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\n\t\tString collectionId = params.getString (\"collectionId\");\n\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_COLLECTION_ID, collectionId);\n\n\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\tif(defaultRetractDate == null)\n\t\t{\n\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t}\n\n\t\tList new_items = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\n\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_TYPE, itemType);\n\n\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_NUMBER, new Integer(1));\n\n\t\tstate.setAttribute(STATE_CREATE_ALERTS, new HashSet());\n\t\tcurrent_stack_frame.put(STATE_CREATE_MISSING_ITEM, new HashSet());\n\t\tcurrent_stack_frame.remove(STATE_STACK_STRUCTOBJ_TYPE);\n\n\t\tcurrent_stack_frame.put(STATE_RESOURCES_HELPER_MODE, MODE_ATTACHMENT_CREATE_INIT);\n\t\tstate.setAttribute(STATE_RESOURCES_HELPER_MODE, MODE_ATTACHMENT_CREATE_INIT);\n\n\t}",
"@Override\r\n public ResponseModel execute(RequestModelBuilder<RequestModel> requestModelBuilder) {\n RequestModel req = requestModelBuilder.build(new RequestModel());\r\n\r\n // process\r\n Snippet snippet = new Snippet(req.snippetId, req.title, req.language, req.framework, req.code, req.description, req.resource);\r\n gateway.saveById(snippet);\r\n\r\n // build the response\r\n return new ResponseModel() {\r\n {\r\n okMessage = \"Snippet #\" + req.snippetId + \" created\";\r\n }\r\n };\r\n }",
"@Override\r\n\tpublic boolean doCreate(Action vo) throws SQLException {\n\t\treturn false;\r\n\t}",
"private HttpResponse sendCreateComputer() {\r\n\t\tHttpResponse result = null;\r\n Log.i(TAG,\"sendCreateComputer to: \"+ m_url);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//\r\n\t\t\t// Use this client instead of default one! June 2013\r\n\t\t\t//\r\n\t\t\tHttpClient httpclient = getNewHttpClient();\r\n\t\t\tHttpPost verb = new HttpPost(m_url);\r\n\t\t\tverb.addHeader(\"User-Agent\", \"occi-client/1.0\");\r\n\t\t\tverb.addHeader(\"Content-Type\", \"text/occi\");\r\n\t\t\tverb.addHeader(\"Accept\", \"text/occi\");\r\n\t\t\t\r\n\t\t\t// TODO: Replace with input values\r\n\t\t\tString urlEncodedAccount2 = \"cGx1Z2Zlc3QyMDEzOnBsdWdmZXN0MjAxMw==\"; // plugfest2013\r\n\t\t\tverb.addHeader(\"Authorization\", \"Basic \" + urlEncodedAccount2);\r\n\t Log.e(TAG,\"Authorization: Basic \"+ urlEncodedAccount2);\r\n\r\n\t\t\t\r\n\t //\r\n\t // Note: For this demo, put OCCI message in header.\r\n\t //StringBuffer payload = new StringBuffer();\r\n\t //\r\n\t verb.addHeader(\"Category\", \"compute\");\r\n\t verb.addHeader(\"Category\", \"compute; scheme=\\\"http://schemas.ogf.org/occi/infrastructure#\\\"; class=\\\"kind\\\"\");\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.hostname=\"+m_Compute.getTitle());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.memory=\"+ m_Compute.getMemory());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.cores=\"+ m_Compute.getCores());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.state=\"+ m_Compute.getStatusAsString());\t\t\t\t\t\t\r\n\r\n\r\n\t\t\tHttpResponse httpResp = httpclient.execute(verb);\t\t\t\r\n\t\t\tint response = httpResp.getStatusLine().getStatusCode();\r\n\t\t if (response == 200 || response == 204 || response == 201) {\r\n\t\t \tresult = httpResp;\r\n\t\t } else {\r\n\t\t Log.e(TAG,\"Bad Repsonse, code: \"+ response);\r\n\t\t }\r\n\t\t} catch (Throwable t) {\r\n\t\t} \r\n\t\treturn result;\t\t\r\n\t}",
"public void execute() throws Exception \r\n\t{\r\n if (!RemoteMethodServer.ServerFlag){\r\n\r\n RemoteMethodServer ms = RemoteMethodServer.getDefault();\r\n\t\t\tClass[] argTypes = {};\r\n Object[] argValues = {};\r\n ms.invoke(\"execute\", null, this, argTypes, argValues);\r\n return;\r\n }\r\n\r\n SessionContext.newContext();\r\n SessionHelper.manager.setAdministrator();\r\n Transaction trans = new Transaction();\r\n \r\n try\r\n {\r\n \ttrans.start();\r\n \tcreatedoc(\"XYZ999\", \"a test name\", \"116 Tomago Operation\", \"local.rs.vsrs05.Regain.RegainRefDocument\", \"Technical Documents 120TD Thermal Treatment Plant\", \"C\", null, null, \"\", 0);\r\n \ttrans.commit();\r\n trans = null;\r\n }\r\n catch(Throwable t) \r\n {\r\n throw new ExceptionInInitializerError(t);\r\n } \r\n finally \r\n {\r\n\t if(trans != null) \r\n\t {\r\n\t \ttrans.rollback();\r\n\t }\r\n }\r\n\t}",
"private void sendCreateTemplateRequest(String templateName, List<Product> checkedProducts)\n {\n int loggedUserGroupID = GlobalValuesManager.getInstance(getContext()).getLoggedUserGroup().getID();\n\n // Create JSON POST request\n JSONObject params = new JSONObject();\n try {\n params.put(\"templateName\", templateName);\n params.put(\"groupID\", ((Integer) loggedUserGroupID).toString());\n JSONArray products = new JSONArray();\n\n for(int i = 0; i < checkedProducts.size(); i++)\n {\n products.put(i, checkedProducts.get(i).toJSON());\n }\n params.put(\"products\", products);\n\n // Create a template object for later\n createdTemplate = new Template(templateName, loggedUserGroupID, products);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // Debug\n Log.d(\"TEMPLATE_CREATE\", params.toString());\n\n // Define what to do on server response\n setupCreateTemplateResponseHandler();\n\n // Send request\n TemplatesDatabaseHelper.sendCreateTemplateRequest(params, getContext(), createTemplateResponseHandler);\n\n }",
"public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}",
"CreateACLResult createACL(CreateACLRequest createACLRequest);",
"private void doCreateNewPartner() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"***Hors Management System:: System Administration:: Create new partner\");\n Partner partner = new Partner();\n System.out.print(\"Enter partner username:\");\n partner.setName(sc.nextLine().trim());\n System.out.print(\"Enter partner password;\");\n partner.setPassword(sc.nextLine().trim());\n\n Set<ConstraintViolation<Partner>> constraintViolations = validator.validate(partner);\n\n if (constraintViolations.isEmpty()) {\n partner = partnerControllerRemote.createNewPartner(partner);\n System.out.println(\"New partner created successfully\");\n } else {\n showInputDataValidationErrorsForPartner(constraintViolations);\n }\n\n }",
"public UserAuthToken createUser(CreateUserRequest request);",
"@RequestMapping(params = \"action=createStore\")\n\tpublic void createStore(\n\t\t\tActionRequest request,\n\t\t\tActionResponse response,\n\t\t\tBindingResult result, Model model) {\n\t\t\n\t\tresponse.setRenderParameter(\"action\", \"createStore\");\n\t}",
"CreationData creationData();",
"public void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateExecutionMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"boolean create(User user) throws Exception;",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}",
"public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}",
"@RequestMapping(method = RequestMethod.POST, path = \"/create\")\n @Secured({\"ROLE_DOCTOR\"})\n @ResponseStatus(HttpStatus.OK)\n public Result createResult(\n @RequestBody Result result,\n Principal principal\n ) {\n log.info(\"Creating result for user [{}] with user [{}]\", result.getUser().getEmail(), principal.getName());\n return resultService.create(result, principal);\n }",
"@POST\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response handlePostCreate(String body) {\n Gson gson = GSONFactory.getInstance();\n\n Employee createdEmployee = createEmployee(body);\n\n String serializedEmployee = gson.toJson(createdEmployee);\n\n Response response = Response.status(201).entity(serializedEmployee).build();\n return response;\n }",
"default void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateExecutionMethod(), responseObserver);\n }",
"public void receiveResultcreate(\n com.exacttarget.wsdl.partnerapi.CreateResponseDocument result\n ) {\n }",
"private void createPost() {\n PostModel model = new PostModel(23, \"New Title\", \"New Text\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPost(model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"public void clickOnCreateButton() {\n\t\twaitForElement(createButton);\n\t\tclickOn(createButton);\n\t}",
"public abstract boolean create(T entity) throws ServiceException;",
"public void successfulCreation(String type) {\n switch (type) {\n case \"Attendee\":\n System.out.println(\"Attendee Created\");\n break;\n case \"Organizer\":\n System.out.println(\"Organizer Created\");\n break;\n case \"Speaker\":\n System.out.println(\"Speaker Created\");\n break;\n case \"VIP\":\n System.out.println(\"VIP Created\");\n break;\n }\n }",
"For createFor();",
"@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n log.debug(START_COMMAND);\n MeetingService meetingService = new MeetingServiceImpl(new MeetingDaoImpl());\n //inserts meeting with new time and deletes previous\n if (Constant.POST_METHOD.equalsIgnoreCase(request.getMethod())) {\n log.debug(START_CASE_POST);\n long previousMeetingId = Long.parseLong(request.getParameter(MEETING_ID));\n log.debug(MEETING_ID + Constant.POINTER + previousMeetingId);\n Meeting previousMeeting = meetingService.getById(previousMeetingId);\n LocalDateTime dateTime = LocalDateTime.parse(request.getParameter(Constant.SLOT));\n log.debug(SLOT_DATETIME + Constant.POINTER + dateTime);\n //create meeting with new parameters\n Meeting newMeeting = new Meeting();\n newMeeting.setCondition(Condition.ACTIVE);\n newMeeting.setCatalog(previousMeeting.getCatalog());\n newMeeting.setClient(previousMeeting.getClient());\n newMeeting.setDateTime(dateTime);\n log.debug(String.format(NEW_MEETING_PARAMETERS,\n newMeeting.getCondition(),\n newMeeting.getCatalog(),\n newMeeting.getClient().getName(),\n newMeeting.getDateTime()));\n //delete old meeting\n if (meetingService.insert(newMeeting) != null) {\n meetingService.deleteById(previousMeetingId);\n }\n log.debug(END_CASE_POST);\n return Path.COMMAND_ADMIN_CABINET;\n\n } else {\n //create schedule\n log.debug(START_CASE_GET);\n long meetingId = Long.parseLong(request.getParameter(SLOT_ID));\n Meeting meeting = meetingService.getById(meetingId);\n List<Meeting> meetingList = meetingService.getAll();\n Master master = meeting.getCatalog().getMaster();\n long masterId = master.getId();\n meetingList.removeIf(nextMeeting -> nextMeeting.getCatalog().getMaster().getId() != masterId);\n List<LocalDateTime> emptySchedule = createEmptyFutureSchedule(Constant.MAX_DAYS_FOR_REGISTER);\n Iterator<LocalDateTime> timeIterator = emptySchedule.iterator();\n while (timeIterator.hasNext()) {\n LocalDateTime time = timeIterator.next();\n for (Meeting m : meetingList) {\n if (time.equals(m.getDateTime())) {\n log.debug(DELETED_TIME_SLOT + Constant.POINTER + time);\n timeIterator.remove();\n }\n }\n }\n\n request.setAttribute(Constant.SCHEDULE, emptySchedule);\n request.setAttribute(Constant.MEETING, meeting);\n log.debug(END_CASE_GET);\n log.debug(END_COMMAND);\n return Path.CHANGE_TS_PATH;\n }\n }",
"@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }",
"void create(T entity) throws Exception;",
"public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }",
"@Transactional( WorkflowPlugin.BEAN_TRANSACTION_MANAGER )\n void create( Workflow reply );",
"JobResponse create(Context context);",
"WithCreate withCreationData(CreationData creationData);",
"@Override\r\n\tpublic BuilderResponse call() throws Exception {\n\t\tint createsSubmitted = 0;\r\n\t\tint pendingCreates = 0;\r\n\t\t// Walk over the source list\r\n\t\tMap<MigratableObjectType, Set<String>> batchesToCreate = new HashMap<MigratableObjectType, Set<String>>();\r\n\t\tfor(MigratableObjectData source: sourceList){\r\n\t\t\t// Is this entity already in the destination?\r\n\t\t\tif(!destMap.containsKey(source.getId())){\r\n\t\t\t\t// We can only add this entity if its dependencies are in the destination\r\n\t\t\t\tif(JobUtil.dependenciesFulfilled(source, destMap.keySet())) {\r\n\t\t\t\t\tMigratableObjectType objectType = source.getId().getType();\r\n\t\t\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\t\t\tif (batchToCreate==null) {\r\n\t\t\t\t\t\tbatchToCreate = new HashSet<String>();\r\n\t\t\t\t\t\tbatchesToCreate.put(objectType, batchToCreate);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbatchToCreate.add(source.getId().getId());\r\n\t\t\t\t\tcreatesSubmitted++;\r\n\t\t\t\t\tif(batchToCreate.size() >= this.batchSize){\r\n\t\t\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t\t\t\tbatchesToCreate.remove(objectType);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// This will get picked up in a future round.\r\n\t\t\t\t\tpendingCreates++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Submit any creates left over\r\n\t\tfor (MigratableObjectType objectType : batchesToCreate.keySet()) {\r\n\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\tif(!batchToCreate.isEmpty()){\r\n\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbatchesToCreate.clear();\r\n\t\t// Report the results.\r\n\t\treturn new BuilderResponse(createsSubmitted, pendingCreates);\r\n\t}",
"Documento createDocumento();",
"public void create(Employee employee, Company company, IncomingReport incoming_report) throws IllegalArgumentException, DAOException;",
"void create(T entity);",
"public static void create() {\n Application.currentUserCan( 1 );\n \n String author = session.get(\"userEmail\");\n String title = params.get( \"course[title]\", String.class );\n String content = params.get( \"course[content]\", String.class );\n \n if( title.length() > 0 && content.length() > 0 ) {\n Course course = new Course(title, content, author);\n course.save();\n }\n \n index();\n }"
] | [
"0.64363134",
"0.63757634",
"0.6324677",
"0.6273453",
"0.61878264",
"0.60366786",
"0.6031558",
"0.59071916",
"0.5878001",
"0.5842495",
"0.58367765",
"0.5749227",
"0.5742552",
"0.573333",
"0.5732964",
"0.5722047",
"0.57215",
"0.57160306",
"0.57144535",
"0.56981295",
"0.56980157",
"0.56824815",
"0.565557",
"0.56504714",
"0.5649961",
"0.5636562",
"0.5629919",
"0.5625245",
"0.5621199",
"0.56139195",
"0.5610162",
"0.5593791",
"0.55873764",
"0.5583346",
"0.55807346",
"0.5576844",
"0.5575511",
"0.5560257",
"0.5558593",
"0.55585897",
"0.5557771",
"0.55347973",
"0.55313855",
"0.5522897",
"0.55125207",
"0.54904824",
"0.5486018",
"0.5478919",
"0.5478735",
"0.54771566",
"0.5472949",
"0.54721683",
"0.5465413",
"0.54570144",
"0.54554445",
"0.5446296",
"0.5425489",
"0.5420741",
"0.5398301",
"0.5393937",
"0.53928894",
"0.5379524",
"0.5377706",
"0.5375025",
"0.53729606",
"0.53718305",
"0.5358097",
"0.5354892",
"0.5345999",
"0.533719",
"0.5332364",
"0.5330595",
"0.5328967",
"0.5325149",
"0.53249264",
"0.53215086",
"0.531934",
"0.5318848",
"0.531776",
"0.53107244",
"0.52910525",
"0.52900153",
"0.5286664",
"0.528481",
"0.52842027",
"0.528408",
"0.52816194",
"0.5281",
"0.52727956",
"0.5268635",
"0.52609605",
"0.5260149",
"0.5244001",
"0.5243545",
"0.52370113",
"0.52361745",
"0.5234848",
"0.5234027",
"0.5232885",
"0.5232744",
"0.52323645"
] | 0.0 | -1 |
Executes the create request. | EventChannel create(Context context); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CompletableFuture<CreateResponse> create(CreateRequest request) throws IOException {\n\t\treturn this.transport.performRequestAsync(request, CreateRequest.ENDPOINT, this.requestOptions);\n\t}",
"public void create(){}",
"CreateResponse create(@NonNull CreateRequest request);",
"@Override\n\tpublic Response execute() {\n\n\t\tDatabaseAccessor db = null;\n\t\tint filetype;\n\t\tif(type.equalsIgnoreCase(\"raw\")) {\n\t\t\tfiletype = FileTuple.RAW;\n\t\t} else if(type.equalsIgnoreCase(\"profile\")) {\n\t\t\tfiletype = FileTuple.PROFILE;\n\t\t} else if(type.equalsIgnoreCase(\"region\")) {\n\t\t\tfiletype = FileTuple.REGION;\n\t\t} else {\n\t\t\tfiletype = FileTuple.OTHER;\n\t\t}\n\t\ttry {\n\t\t\tdb = initDB();\n\t\t\tFileTuple ft = db.addNewFile(experimentID, filetype, fileName, null, metaData, author, uploader, isPrivate, grVersion);\n\t\t\treturn new AddFileToExperimentResponse(StatusCode.OK, ft.getUploadURL());\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ErrorResponse(StatusCode.BAD_REQUEST, e.getMessage());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ErrorResponse(StatusCode.SERVICE_UNAVAILABLE, e.getMessage());\n\t\t} finally{\n\t\t\tdb.close();\n\t\t}\n\t}",
"public void create() {\n\t\t\n\t}",
"@BearerAuth\n @HttpRequestHandler(paths = \"/api/v2/service/create\", methods = \"POST\")\n private void handleCreateRequest(@NonNull HttpContext context, @NonNull @RequestBody Document body) {\n var configuration = body.readObject(\"serviceConfiguration\", ServiceConfiguration.class);\n if (configuration == null) {\n // check for a provided service task\n var serviceTask = body.readObject(\"task\", ServiceTask.class);\n if (serviceTask != null) {\n configuration = ServiceConfiguration.builder(serviceTask).build();\n } else {\n // fallback to a service task name which has to exist\n var serviceTaskName = body.getString(\"serviceTaskName\");\n if (serviceTaskName != null) {\n var task = this.serviceTaskProvider.serviceTask(serviceTaskName);\n if (task != null) {\n configuration = ServiceConfiguration.builder(task).build();\n } else {\n // we got a task but it does not exist\n this.badRequest(context)\n .body(this.failure().append(\"reason\", \"Provided task is unknown\").toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n return;\n }\n } else {\n this.sendInvalidServiceConfigurationResponse(context);\n return;\n }\n }\n }\n\n var createResult = this.serviceFactory.createCloudService(configuration);\n var start = body.getBoolean(\"start\", false);\n if (start && createResult.state() == ServiceCreateResult.State.CREATED) {\n createResult.serviceInfo().provider().start();\n }\n\n this.ok(context)\n .body(this.success().append(\"result\", createResult).toString())\n .context()\n .closeAfter(true)\n .cancelNext(true);\n }",
"abstract protected ActionForward processCreate( UserRequest request )\n throws IOException, ServletException;",
"@RequestMapping(method = RequestMethod.POST)\n public Bin create() {\n throw new NotImplementedException(\"To be implemented\");\n }",
"JobResponse create();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"UserCreateResponse createUser(UserCreateRequest request);",
"public abstract Response create(Request request, Response response);",
"@Override\n public MockResponse handleCreate(RecordedRequest request) {\n return process(request, postHandler);\n }",
"void create(Model model) throws Exception;",
"public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\n }",
"public void run() {\n int id = getIdentity();\n iUser user = createUser(id);\n boolean userCreated = (user != null);\n if (userCreated) {\n presenter.printAccountCreated();\n } else {\n presenter.printRequestDeclined();\n }\n }",
"@Override\n\tpublic void create() {\n\n\t}",
"E create(Resource data);",
"public abstract void create();",
"public final CompletableFuture<CreateResponse> create(\n\t\t\tFunction<CreateRequest.Builder, ObjectBuilder<CreateRequest>> fn) throws IOException {\n\t\treturn create(fn.apply(new CreateRequest.Builder()).build());\n\t}",
"@POST( CONTROLLER )\n VersionedObjectKey createObject( @Body CreateObjectRequest request );",
"void filterCreate(ServerContext context, CreateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);",
"@RequestMapping(\"/Cert_create\")\n\tpublic String process() {\n\t\tcertificateService.createCertificateDTO(cert);\n\t\treturn \"Certificate Done\";\n\n\t}",
"public boolean create(ModelObject obj);",
"public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"public Integer create(Caseresultparameters newInstance) throws ServiceException;",
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method allows to create a new requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_CREATED, message = \"Returns the created requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response createRequirement(@ApiParam(value = \"Requirement entity\", required = true) Requirement requirementToCreate) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n // TODO: check whether the current user may create a new requirement\n dalFacade = service.bazaarService.getDBConnection();\n Gson gson = new Gson();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n requirementToCreate.setCreatorId(internalUserId);\n Vtor vtor = service.bazaarService.getValidators();\n vtor.useProfiles(\"create\");\n vtor.validate(requirementToCreate);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n\n // check if all components are in the same project\n for (Component component : requirementToCreate.getComponents()) {\n component = dalFacade.getComponentById(component.getId());\n if (requirementToCreate.getProjectId() != component.getProjectId()) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.VALIDATION, \"Component does not fit with project\");\n }\n }\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Create_REQUIREMENT, String.valueOf(requirementToCreate.getProjectId()), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.create\"));\n }\n Requirement createdRequirement = dalFacade.createRequirement(requirementToCreate, internalUserId);\n dalFacade.followRequirement(internalUserId, createdRequirement.getId());\n\n // check if attachments are given\n if (requirementToCreate.getAttachments() != null && !requirementToCreate.getAttachments().isEmpty()) {\n for (Attachment attachment : requirementToCreate.getAttachments()) {\n attachment.setCreatorId(internalUserId);\n attachment.setRequirementId(createdRequirement.getId());\n vtor.validate(attachment);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n vtor.resetProfiles();\n dalFacade.createAttachment(attachment);\n }\n }\n\n createdRequirement = dalFacade.getRequirementById(createdRequirement.getId(), internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, createdRequirement.getCreation_time(), Activity.ActivityAction.CREATE, createdRequirement.getId(),\n Activity.DataType.REQUIREMENT, createdRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.status(Response.Status.CREATED).entity(gson.toJson(createdRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"public Message handleCreate(Message createRequest) {\n\n Message response = new Message(Message.GENERIC_ERROR);\n\n int SectionNumbers = createRequest.getSectionNumbers();\n String DocumentName = createRequest.getDocumentName();\n String owner = createRequest.getUserName();\n\n // case: clash in register\n if (controlServer.containsDocumentKey(DocumentName)) {\n response.setId(Message.INVALID_DOCNAME);\n }\n\n // case: no clash in register\n else{\n DocumentData data = new DocumentData(DocumentName,owner,SectionNumbers);\n Document nuovoDocumento = new Document(data);\n\n // insert document into register\n controlServer.addDocument(DocumentName,nuovoDocumento);\n\n // update relative userData\n UserData toMod = controlServer.getUserData(owner);\n toMod.addDocument(DocumentName);\n controlServer.replaceUser(owner,toMod);\n\n // sends response to client\n response.setUserData(new UserData(toMod));\n response.setDocumentName(DocumentName);\n response.setSectionNumbers(SectionNumbers);\n response.setId(Message.UPDATE_UD);\n }\n return response;\n }",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"Command createCommand() throws ServiceException, AuthException;",
"CreateUserResult createUser(CreateUserRequest createUserRequest);",
"@RequestMapping(\"/create\")\r\n\t@Produces({ MediaType.TEXT_PLAIN })\r\n\tpublic String createOrder() {\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"in EO calling Validate REST API : \"+System.currentTimeMillis()); \r\n\t\t\tStopWatch watch = new StopWatch();\r\n\t\t\tHttpUriRequest request = new HttpGet(\"http://localhost:\" + \"\" + \"9091\" + \"/eo/validate\");\r\n\t\t\tHttpResponse httpResponse;\r\n\t\t\twatch.start();\r\n\t\t\thttpResponse = HttpClientBuilder.create().build().execute(request);\r\n\t\t\twatch.stop();\r\n\t\t\tresponse = EntityUtils.toString(httpResponse.getEntity());\r\n\t\t\tSystem.out.println(\">>>>>>>Response:\" + response + \" Response time(hh:mm:SS:mS): \" + watch.toString());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif (response.contains(\"Order Validated\"))\r\n\t\t\treturn \"Order Created!!\";\r\n\t\telse\r\n\t\t\tthrow new InternalServerErrorException();\r\n\t}",
"private void handleCreateOperation(String args[]) {\n if (args.length < 4) {\n String requiredArgs = \"<name> <color>\";\n Messages.badNumberOfArgsMessage(args.length, CREATE_OPERATION, requiredArgs);\n System.exit(1);\n }\n\n // set arguments from command line to variables\n String name = args[2];\n String colorString = args[3];\n // convert string to color\n Color colorEnum = null;\n try {\n colorEnum = Color.parseColor(colorString);\n } catch (IllegalArgumentException e) {\n Messages.printAllColors();\n System.exit(1);\n }\n\n // everything is ok, create new brick\n BrickDto brickDto = new BrickDto(name, colorEnum, \"\");\n\n Client client = ClientBuilder.newBuilder().build();\n WebTarget webTarget = client.target(\"http://localhost:8080/pa165/rest/bricks/\");\n webTarget.register(auth);\n Response response = webTarget.request(MediaType.APPLICATION_JSON).post(Entity.entity(brickDto, MediaType.APPLICATION_JSON_TYPE));\n\n // print out some response\n // successful response code is 201 == CREATED\n if (response.getStatus() == Response.Status.CREATED.getStatusCode()) {\n System.out.println(\"Brick with name '\" + name + \"' and color '\" + colorString + \"' was created\");\n } else {\n System.out.println(\"Error on server, server returned \" + response.getStatus());\n }\n }",
"@RequestMapping(path = \"/create\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> create(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.create(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}",
"public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"@Override\r\n\tpublic void postRequest(Request request, Response response) {\r\n\t\tcreateUser(request, response);\r\n\t}",
"Operacion createOperacion();",
"@Override\n @POST\n @Path(\"/networks\")\n public Response createNetwork() throws Exception {\n URI resourceUri = new URI(\"/1\");\n return Response.created(resourceUri).build();\n }",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() > 0) return this;\n\n Adapter adapter = getAdapter();\n if (getId() == null && adapter.shouldPrefetchPrimaryKey(getTableName())) {\n this.id = adapter.getNextSequenceValue(getSequenceName());\n }\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"INSERT INTO \").append(getTableName()).append(\" (\");\n sql.append(quotedColumnNames(includePrimaryKey));\n sql.append(\") VALUES (\").append(quotedAttributeValues(includePrimaryKey)).append(\")\");\n\n id = adapter.insert(sql.toString(), getClass().getName() + \" Create\");\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n\n executeCallbacks(CallbackType.AFTER_CREATE);\n\n return id;\n }",
"public long createRequest(Request _request) throws RequestManagerException, PersistenceResourceAccessException;",
"OperacionColeccion createOperacionColeccion();",
"@Override\n\tpublic void create(ReplyVO4 vo) throws Exception {\n\t\tsession.insert(namespace+\".create4\",vo);\n\t\n\t}",
"public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"public void create() {\n if (created)\n return;\n\n PlayerConnection player = getPlayer();\n player.sendPacket(createObjectivePacket(0, objectiveName));\n player.sendPacket(setObjectiveSlot());\n int i = 0;\n while (i < lines.length)\n sendLine(i++);\n\n created = true;\n }",
"@POST\r\n public Response createResearchObject()\r\n throws BadRequestException, IllegalArgumentException, UriBuilderException, ConflictException,\r\n DigitalLibraryException, NotFoundException {\r\n LOGGER.debug(String.format(\"%s\\t\\tInit create RO\", new DateTime().toString()));\r\n String researchObjectId = request.getHeader(Constants.SLUG_HEADER);\r\n if (researchObjectId == null || researchObjectId.isEmpty()) {\r\n throw new BadRequestException(\"Research object ID is null or empty\");\r\n }\r\n URI uri = uriInfo.getAbsolutePathBuilder().path(researchObjectId).path(\"/\").build();\r\n ResearchObject researchObject = ResearchObject.findByUri(uri);\r\n if (researchObject != null) {\r\n throw new ConflictException(\"RO already exists\");\r\n }\r\n researchObject = new ResearchObject(uri);\r\n URI researchObjectURI = ROSRService.createResearchObject(researchObject);\r\n LOGGER.debug(String.format(\"%s\\t\\tRO created\", new DateTime().toString()));\r\n \r\n RDFFormat format = RDFFormat.forMIMEType(request.getHeader(Constants.ACCEPT_HEADER), RDFFormat.RDFXML);\r\n InputStream manifest = ROSRService.SMS.get().getNamedGraph(researchObject.getManifestUri(), format);\r\n ContentDisposition cd = ContentDisposition.type(format.getDefaultMIMEType())\r\n .fileName(ResearchObject.MANIFEST_PATH).build();\r\n \r\n LOGGER.debug(String.format(\"%s\\t\\tReturning\", new DateTime().toString()));\r\n return Response.created(researchObjectURI).entity(manifest).header(\"Content-disposition\", cd).build();\r\n }",
"Account create();",
"CreateSiteResult createSite(CreateSiteRequest createSiteRequest);",
"CreateWorkerResult createWorker(CreateWorkerRequest createWorkerRequest);",
"protected abstract Command getCreateCommand(CreateRequest request);",
"private synchronized String processCreate(String query) {\r\n\t\tString[] valuesCommand = query.split(\" \");\r\n\t\tif ( valuesCommand.length != 3 )\r\n\t\t\treturn \"ERROR Bad syntaxe command CREATE - Usage : CREATE id initial_solde\";\r\n\t\tString id = valuesCommand[1];\r\n\t\tif ( this.bank.existAccount(id) ) {\r\n\t\t\treturn \"ERROR Account alwready exist\";\r\n\t\t}\r\n\t\tdouble number = Double.valueOf(valuesCommand[2]);\r\n\t\tthis.bank.createAccount(id, number);\r\n\t\treturn \"OK \" + this.bank.getLastOperation(id);\r\n\t}",
"@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void execute() {\n //this.$context.$Request.initialize();\n this.$context.$Request.extractAllVars();\n\n this.$context.$Response.writeHeader(\"Content-type\", \"text/html; charset=UTF-8\");\n\n // Check security code\n if (!this.$context.$Request.contains(\"code\")) {\n this.$context.$Response.end(\"Code is required!\");\n return;\n }\n String $code = this.$context.$Request.get(\"code\");\n if (!EQ($code, Config.SECURITY_CODE)) {\n this.$context.$Response.end(\"Incorrect code!\");\n return;\n }\n\n // Check package\n if (!this.$context.$Request.contains(\"package\")) {\n this.$context.$Response.end(\"Package is required!\");\n return;\n }\n String $package = this.$context.$Request.get(\"package\");\n if (BLANK($package)) {\n this.$context.$Response.end(\"Empty package!\");\n return;\n }\n String[] $packageChunks = Strings.split(\"-\", $package);\n for (int $n = 0; $n < SIZE($packageChunks); $n++)\n $packageChunks[$n] = Strings.firstCharToUpper($packageChunks[$n]);\n $package = Strings.join(\"/\", $packageChunks);\n\n // Check class\n if (!this.$context.$Request.contains(\"class\")) {\n this.$context.$Response.end(\"Class is required!\");\n return;\n }\n String $className = this.$context.$Request.get(\"class\");\n if (BLANK($className)) {\n this.$context.$Response.end(\"Empty class!\");\n return;\n }\n\n // Check method\n if (!this.$context.$Request.contains(\"method\")) {\n this.$context.$Response.end(\"Method is required!\");\n return;\n }\n String $method = this.$context.$Request.get(\"method\");\n if (BLANK($method)) {\n this.$context.$Response.end(\"Empty method!\");\n return;\n }\n\n // Fill array with parameters\n int $count = 0;\n TArrayList $pars = new TArrayList();\n for (int $n = 1; $n <= 6; $n++) {\n String $parName = CAT(\"par\", $n);\n if (!this.$context.$Request.contains($parName))\n break;\n String $parValue = this.$context.$Request.get($parName);\n if (EQ($parValue, \"_\"))\n $parValue = \"\";\n //$parsArray[] = $parValue;\n $pars.add($parValue);\n $count++;\n }\n\n String $buffer = null;\n Object $result = null;\n\n String $fullClass = CAT($package, \"/\", $className);\n\n $fullClass = Strings.replace(\"/\", \".\", $fullClass);\n TArrayList $pars0 = new TArrayList(new Object[] { this.$context.$Connection });\n $result = Bula.Internal.callMethod($fullClass, $pars0, $method, $pars);\n\n if ($result == null)\n $buffer = \"NULL\";\n else if ($result instanceof DataSet)\n $buffer = ((DataSet)$result).toXml(EOL);\n else\n $buffer = STR($result);\n this.$context.$Response.write($buffer);\n this.$context.$Response.end();\n }",
"@RequestMapping(\"/create\")\n\t@ResponseBody\n\t@Secured(CommonConstants.ROLE_ADMIN)\n\tpublic String process() {\n\t\treturn this.service.isUsersLoaded() ? \"There are existing records in DB\" : service.createData();\n\t}",
"Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);",
"@BodyParser.Of(play.mvc.BodyParser.Json.class)\n public static Result create() throws JsonParseException, JsonMappingException, IOException {\n JsonNode json = request().body().asJson();\n Thing thing = mapper.treeToValue(json, Thing.class);\n thing.save();\n return ok(mapper.valueToTree(thing));\n }",
"@Test\n\tpublic static void create_Task() {\n\t\tString testName = \"Valid Scenario- When all the data are valid\";\n\t\tlog.info(\"Valid Scenario: Create Task\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Task Controller- Create Task\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 201);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}",
"@Create\n public void create()\n {\n \n log.debug(\"Creating users and mailboxes\");\n //MailboxService ms = MMJMXUtil.getMBean(\"meldware.mail:type=MailboxManager,name=MailboxManager\", MailboxService.class);\n AdminTool at = MMJMXUtil.getMBean(\"meldware.mail:type=MailServices,name=AdminTool\", AdminTool.class);\n \n for (MeldwareUser meldwareUser : getUsers())\n {\n at.createUser(meldwareUser.getUsername(), meldwareUser.getPassword(), meldwareUser.getRoles());\n // TODO This won't work on AS 4.2\n /*Mailbox mbox = ms.createMailbox(meldwareUser.getUsername());\n for (String alias : meldwareUser.getAliases())\n {\n ms.createAlias(mbox.getId(), alias);\n }*/\n log.debug(\"Created #0 #1 #2\", meldwareUser.isAdministrator() ? \"administrator\" : \"user\", meldwareUser.getUsername(), meldwareUser.getAliases() == null || meldwareUser.getAliases().size() == 0 ? \"\" : \"with aliases \" + meldwareUser.getAliases());\n }\n }",
"@Override\n\tpublic void create () {\n\n\t}",
"@Override\n protected String doInBackground(Void... voids) {\n RequestHandler requestHandler = new RequestHandler();\n\n String id = String.valueOf(SharedPrefManagerTechnician.getInstance(context).getTechnician().getId());\n //creating request parameters\n HashMap<String, String> params = new HashMap<>();\n params.put(\"technician_id\", id);\n\n //returing the response\n return requestHandler.sendPostRequest(Apis.GET_CREATE_JOB_LIST_URL, params);\n }",
"@Override\n\tprotected Command getCreateCommand(CreateRequest request) {\n\t\treturn null;\n\t}",
"public static void doCreate(RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSet alerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\tString itemType = params.getString(\"itemType\");\n\t\tif(itemType == null || \"\".equals(itemType))\n\t\t{\n\t\t\titemType = TYPE_UPLOAD;\n\t\t}\n\n\t\tString stackOp = params.getString(\"suspended-operations-stack\");\n\n\t\tMap current_stack_frame = null;\n\t\tif(stackOp != null && stackOp.equals(\"peek\"))\n\t\t{\n\t\t\tcurrent_stack_frame = peekAtStack(state);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcurrent_stack_frame = pushOnStack(state);\n\t\t}\n\n\t\tString encoding = data.getRequest().getCharacterEncoding();\n\n\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t{\n\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t}\n\n\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\n\t\tString collectionId = params.getString (\"collectionId\");\n\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_COLLECTION_ID, collectionId);\n\n\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\tif(defaultRetractDate == null)\n\t\t{\n\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t}\n\n\t\tList new_items = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\n\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_TYPE, itemType);\n\n\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_NUMBER, new Integer(1));\n\n\t\tstate.setAttribute(STATE_CREATE_ALERTS, new HashSet());\n\t\tcurrent_stack_frame.put(STATE_CREATE_MISSING_ITEM, new HashSet());\n\t\tcurrent_stack_frame.remove(STATE_STACK_STRUCTOBJ_TYPE);\n\n\t\tcurrent_stack_frame.put(STATE_RESOURCES_HELPER_MODE, MODE_ATTACHMENT_CREATE_INIT);\n\t\tstate.setAttribute(STATE_RESOURCES_HELPER_MODE, MODE_ATTACHMENT_CREATE_INIT);\n\n\t}",
"@Override\r\n public ResponseModel execute(RequestModelBuilder<RequestModel> requestModelBuilder) {\n RequestModel req = requestModelBuilder.build(new RequestModel());\r\n\r\n // process\r\n Snippet snippet = new Snippet(req.snippetId, req.title, req.language, req.framework, req.code, req.description, req.resource);\r\n gateway.saveById(snippet);\r\n\r\n // build the response\r\n return new ResponseModel() {\r\n {\r\n okMessage = \"Snippet #\" + req.snippetId + \" created\";\r\n }\r\n };\r\n }",
"@Override\r\n\tpublic boolean doCreate(Action vo) throws SQLException {\n\t\treturn false;\r\n\t}",
"private HttpResponse sendCreateComputer() {\r\n\t\tHttpResponse result = null;\r\n Log.i(TAG,\"sendCreateComputer to: \"+ m_url);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//\r\n\t\t\t// Use this client instead of default one! June 2013\r\n\t\t\t//\r\n\t\t\tHttpClient httpclient = getNewHttpClient();\r\n\t\t\tHttpPost verb = new HttpPost(m_url);\r\n\t\t\tverb.addHeader(\"User-Agent\", \"occi-client/1.0\");\r\n\t\t\tverb.addHeader(\"Content-Type\", \"text/occi\");\r\n\t\t\tverb.addHeader(\"Accept\", \"text/occi\");\r\n\t\t\t\r\n\t\t\t// TODO: Replace with input values\r\n\t\t\tString urlEncodedAccount2 = \"cGx1Z2Zlc3QyMDEzOnBsdWdmZXN0MjAxMw==\"; // plugfest2013\r\n\t\t\tverb.addHeader(\"Authorization\", \"Basic \" + urlEncodedAccount2);\r\n\t Log.e(TAG,\"Authorization: Basic \"+ urlEncodedAccount2);\r\n\r\n\t\t\t\r\n\t //\r\n\t // Note: For this demo, put OCCI message in header.\r\n\t //StringBuffer payload = new StringBuffer();\r\n\t //\r\n\t verb.addHeader(\"Category\", \"compute\");\r\n\t verb.addHeader(\"Category\", \"compute; scheme=\\\"http://schemas.ogf.org/occi/infrastructure#\\\"; class=\\\"kind\\\"\");\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.hostname=\"+m_Compute.getTitle());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.memory=\"+ m_Compute.getMemory());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.cores=\"+ m_Compute.getCores());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.state=\"+ m_Compute.getStatusAsString());\t\t\t\t\t\t\r\n\r\n\r\n\t\t\tHttpResponse httpResp = httpclient.execute(verb);\t\t\t\r\n\t\t\tint response = httpResp.getStatusLine().getStatusCode();\r\n\t\t if (response == 200 || response == 204 || response == 201) {\r\n\t\t \tresult = httpResp;\r\n\t\t } else {\r\n\t\t Log.e(TAG,\"Bad Repsonse, code: \"+ response);\r\n\t\t }\r\n\t\t} catch (Throwable t) {\r\n\t\t} \r\n\t\treturn result;\t\t\r\n\t}",
"public void execute() throws Exception \r\n\t{\r\n if (!RemoteMethodServer.ServerFlag){\r\n\r\n RemoteMethodServer ms = RemoteMethodServer.getDefault();\r\n\t\t\tClass[] argTypes = {};\r\n Object[] argValues = {};\r\n ms.invoke(\"execute\", null, this, argTypes, argValues);\r\n return;\r\n }\r\n\r\n SessionContext.newContext();\r\n SessionHelper.manager.setAdministrator();\r\n Transaction trans = new Transaction();\r\n \r\n try\r\n {\r\n \ttrans.start();\r\n \tcreatedoc(\"XYZ999\", \"a test name\", \"116 Tomago Operation\", \"local.rs.vsrs05.Regain.RegainRefDocument\", \"Technical Documents 120TD Thermal Treatment Plant\", \"C\", null, null, \"\", 0);\r\n \ttrans.commit();\r\n trans = null;\r\n }\r\n catch(Throwable t) \r\n {\r\n throw new ExceptionInInitializerError(t);\r\n } \r\n finally \r\n {\r\n\t if(trans != null) \r\n\t {\r\n\t \ttrans.rollback();\r\n\t }\r\n }\r\n\t}",
"private void sendCreateTemplateRequest(String templateName, List<Product> checkedProducts)\n {\n int loggedUserGroupID = GlobalValuesManager.getInstance(getContext()).getLoggedUserGroup().getID();\n\n // Create JSON POST request\n JSONObject params = new JSONObject();\n try {\n params.put(\"templateName\", templateName);\n params.put(\"groupID\", ((Integer) loggedUserGroupID).toString());\n JSONArray products = new JSONArray();\n\n for(int i = 0; i < checkedProducts.size(); i++)\n {\n products.put(i, checkedProducts.get(i).toJSON());\n }\n params.put(\"products\", products);\n\n // Create a template object for later\n createdTemplate = new Template(templateName, loggedUserGroupID, products);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // Debug\n Log.d(\"TEMPLATE_CREATE\", params.toString());\n\n // Define what to do on server response\n setupCreateTemplateResponseHandler();\n\n // Send request\n TemplatesDatabaseHelper.sendCreateTemplateRequest(params, getContext(), createTemplateResponseHandler);\n\n }",
"public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}",
"CreateACLResult createACL(CreateACLRequest createACLRequest);",
"private void doCreateNewPartner() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"***Hors Management System:: System Administration:: Create new partner\");\n Partner partner = new Partner();\n System.out.print(\"Enter partner username:\");\n partner.setName(sc.nextLine().trim());\n System.out.print(\"Enter partner password;\");\n partner.setPassword(sc.nextLine().trim());\n\n Set<ConstraintViolation<Partner>> constraintViolations = validator.validate(partner);\n\n if (constraintViolations.isEmpty()) {\n partner = partnerControllerRemote.createNewPartner(partner);\n System.out.println(\"New partner created successfully\");\n } else {\n showInputDataValidationErrorsForPartner(constraintViolations);\n }\n\n }",
"public UserAuthToken createUser(CreateUserRequest request);",
"@RequestMapping(params = \"action=createStore\")\n\tpublic void createStore(\n\t\t\tActionRequest request,\n\t\t\tActionResponse response,\n\t\t\tBindingResult result, Model model) {\n\t\t\n\t\tresponse.setRenderParameter(\"action\", \"createStore\");\n\t}",
"CreationData creationData();",
"public void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateExecutionMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"boolean create(User user) throws Exception;",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}",
"public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}",
"@RequestMapping(method = RequestMethod.POST, path = \"/create\")\n @Secured({\"ROLE_DOCTOR\"})\n @ResponseStatus(HttpStatus.OK)\n public Result createResult(\n @RequestBody Result result,\n Principal principal\n ) {\n log.info(\"Creating result for user [{}] with user [{}]\", result.getUser().getEmail(), principal.getName());\n return resultService.create(result, principal);\n }",
"@POST\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response handlePostCreate(String body) {\n Gson gson = GSONFactory.getInstance();\n\n Employee createdEmployee = createEmployee(body);\n\n String serializedEmployee = gson.toJson(createdEmployee);\n\n Response response = Response.status(201).entity(serializedEmployee).build();\n return response;\n }",
"default void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateExecutionMethod(), responseObserver);\n }",
"public void receiveResultcreate(\n com.exacttarget.wsdl.partnerapi.CreateResponseDocument result\n ) {\n }",
"private void createPost() {\n PostModel model = new PostModel(23, \"New Title\", \"New Text\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPost(model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"public void clickOnCreateButton() {\n\t\twaitForElement(createButton);\n\t\tclickOn(createButton);\n\t}",
"public abstract boolean create(T entity) throws ServiceException;",
"public void successfulCreation(String type) {\n switch (type) {\n case \"Attendee\":\n System.out.println(\"Attendee Created\");\n break;\n case \"Organizer\":\n System.out.println(\"Organizer Created\");\n break;\n case \"Speaker\":\n System.out.println(\"Speaker Created\");\n break;\n case \"VIP\":\n System.out.println(\"VIP Created\");\n break;\n }\n }",
"For createFor();",
"@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n log.debug(START_COMMAND);\n MeetingService meetingService = new MeetingServiceImpl(new MeetingDaoImpl());\n //inserts meeting with new time and deletes previous\n if (Constant.POST_METHOD.equalsIgnoreCase(request.getMethod())) {\n log.debug(START_CASE_POST);\n long previousMeetingId = Long.parseLong(request.getParameter(MEETING_ID));\n log.debug(MEETING_ID + Constant.POINTER + previousMeetingId);\n Meeting previousMeeting = meetingService.getById(previousMeetingId);\n LocalDateTime dateTime = LocalDateTime.parse(request.getParameter(Constant.SLOT));\n log.debug(SLOT_DATETIME + Constant.POINTER + dateTime);\n //create meeting with new parameters\n Meeting newMeeting = new Meeting();\n newMeeting.setCondition(Condition.ACTIVE);\n newMeeting.setCatalog(previousMeeting.getCatalog());\n newMeeting.setClient(previousMeeting.getClient());\n newMeeting.setDateTime(dateTime);\n log.debug(String.format(NEW_MEETING_PARAMETERS,\n newMeeting.getCondition(),\n newMeeting.getCatalog(),\n newMeeting.getClient().getName(),\n newMeeting.getDateTime()));\n //delete old meeting\n if (meetingService.insert(newMeeting) != null) {\n meetingService.deleteById(previousMeetingId);\n }\n log.debug(END_CASE_POST);\n return Path.COMMAND_ADMIN_CABINET;\n\n } else {\n //create schedule\n log.debug(START_CASE_GET);\n long meetingId = Long.parseLong(request.getParameter(SLOT_ID));\n Meeting meeting = meetingService.getById(meetingId);\n List<Meeting> meetingList = meetingService.getAll();\n Master master = meeting.getCatalog().getMaster();\n long masterId = master.getId();\n meetingList.removeIf(nextMeeting -> nextMeeting.getCatalog().getMaster().getId() != masterId);\n List<LocalDateTime> emptySchedule = createEmptyFutureSchedule(Constant.MAX_DAYS_FOR_REGISTER);\n Iterator<LocalDateTime> timeIterator = emptySchedule.iterator();\n while (timeIterator.hasNext()) {\n LocalDateTime time = timeIterator.next();\n for (Meeting m : meetingList) {\n if (time.equals(m.getDateTime())) {\n log.debug(DELETED_TIME_SLOT + Constant.POINTER + time);\n timeIterator.remove();\n }\n }\n }\n\n request.setAttribute(Constant.SCHEDULE, emptySchedule);\n request.setAttribute(Constant.MEETING, meeting);\n log.debug(END_CASE_GET);\n log.debug(END_COMMAND);\n return Path.CHANGE_TS_PATH;\n }\n }",
"@Test\n public void createUser() {\n Response response = regressionClient.createUser();\n dbAssist.responseValidation(response);\n }",
"void create(T entity) throws Exception;",
"public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }",
"@Transactional( WorkflowPlugin.BEAN_TRANSACTION_MANAGER )\n void create( Workflow reply );",
"JobResponse create(Context context);",
"WithCreate withCreationData(CreationData creationData);",
"@Override\r\n\tpublic BuilderResponse call() throws Exception {\n\t\tint createsSubmitted = 0;\r\n\t\tint pendingCreates = 0;\r\n\t\t// Walk over the source list\r\n\t\tMap<MigratableObjectType, Set<String>> batchesToCreate = new HashMap<MigratableObjectType, Set<String>>();\r\n\t\tfor(MigratableObjectData source: sourceList){\r\n\t\t\t// Is this entity already in the destination?\r\n\t\t\tif(!destMap.containsKey(source.getId())){\r\n\t\t\t\t// We can only add this entity if its dependencies are in the destination\r\n\t\t\t\tif(JobUtil.dependenciesFulfilled(source, destMap.keySet())) {\r\n\t\t\t\t\tMigratableObjectType objectType = source.getId().getType();\r\n\t\t\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\t\t\tif (batchToCreate==null) {\r\n\t\t\t\t\t\tbatchToCreate = new HashSet<String>();\r\n\t\t\t\t\t\tbatchesToCreate.put(objectType, batchToCreate);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbatchToCreate.add(source.getId().getId());\r\n\t\t\t\t\tcreatesSubmitted++;\r\n\t\t\t\t\tif(batchToCreate.size() >= this.batchSize){\r\n\t\t\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t\t\t\tbatchesToCreate.remove(objectType);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// This will get picked up in a future round.\r\n\t\t\t\t\tpendingCreates++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Submit any creates left over\r\n\t\tfor (MigratableObjectType objectType : batchesToCreate.keySet()) {\r\n\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\tif(!batchToCreate.isEmpty()){\r\n\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbatchesToCreate.clear();\r\n\t\t// Report the results.\r\n\t\treturn new BuilderResponse(createsSubmitted, pendingCreates);\r\n\t}",
"Documento createDocumento();",
"public void create(Employee employee, Company company, IncomingReport incoming_report) throws IllegalArgumentException, DAOException;",
"void create(T entity);",
"public static void create() {\n Application.currentUserCan( 1 );\n \n String author = session.get(\"userEmail\");\n String title = params.get( \"course[title]\", String.class );\n String content = params.get( \"course[content]\", String.class );\n \n if( title.length() > 0 && content.length() > 0 ) {\n Course course = new Course(title, content, author);\n course.save();\n }\n \n index();\n }"
] | [
"0.64363134",
"0.63757634",
"0.6324677",
"0.6273453",
"0.61878264",
"0.60366786",
"0.6031558",
"0.59071916",
"0.5878001",
"0.5842495",
"0.58367765",
"0.5749227",
"0.5742552",
"0.573333",
"0.5732964",
"0.5722047",
"0.57215",
"0.57160306",
"0.57144535",
"0.56981295",
"0.56980157",
"0.56824815",
"0.565557",
"0.56504714",
"0.5649961",
"0.5636562",
"0.5629919",
"0.5625245",
"0.5621199",
"0.56139195",
"0.5610162",
"0.5593791",
"0.55873764",
"0.5583346",
"0.55807346",
"0.5576844",
"0.5575511",
"0.5560257",
"0.5558593",
"0.55585897",
"0.5557771",
"0.55347973",
"0.55313855",
"0.5522897",
"0.55125207",
"0.54904824",
"0.5486018",
"0.5478919",
"0.5478735",
"0.54771566",
"0.5472949",
"0.54721683",
"0.5465413",
"0.54570144",
"0.54554445",
"0.5446296",
"0.5425489",
"0.5420741",
"0.5398301",
"0.5393937",
"0.53928894",
"0.5379524",
"0.5377706",
"0.5375025",
"0.53729606",
"0.53718305",
"0.5358097",
"0.5354892",
"0.5345999",
"0.533719",
"0.5332364",
"0.5330595",
"0.5328967",
"0.5325149",
"0.53249264",
"0.53215086",
"0.531934",
"0.5318848",
"0.531776",
"0.53107244",
"0.52910525",
"0.52900153",
"0.5286664",
"0.528481",
"0.52842027",
"0.528408",
"0.52816194",
"0.5281",
"0.52727956",
"0.5268635",
"0.52609605",
"0.5260149",
"0.5244001",
"0.5243545",
"0.52370113",
"0.52361745",
"0.5234848",
"0.5234027",
"0.5232885",
"0.5232744",
"0.52323645"
] | 0.0 | -1 |
The stage of the EventChannel definition allowing to specify source. | interface WithSource {
/**
* Specifies the source property: Source of the event channel. This represents a unique resource in the
* partner's resource model..
*
* @param source Source of the event channel. This represents a unique resource in the partner's resource
* model.
* @return the next definition stage.
*/
WithCreate withSource(EventChannelSource source);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"EventChannelSource source();",
"public IEventCollector getSource();",
"WithCreate withSource(EventChannelSource source);",
"Update withSource(EventChannelSource source);",
"public FVEventHandler getSrc() {\n\t\treturn src;\n\t}",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"EventChannelDestination destination();",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"public SourceRecord() {\n super(Source.SOURCE);\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"interface WithSourceType {\n /**\n * Specifies the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case\n * sensitive..\n *\n * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.\n * @return the next definition stage.\n */\n WithCreate withSourceType(SourceType sourceType);\n }",
"public void setSource(String source) {\n _source = source;\n }",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"public DescriptorEvent(Object sourceObject) {\n super(sourceObject);\n }",
"public String get_source() {\n\t\treturn source;\n\t}",
"@JsonProperty(\"source\")\n public void setSource(Source source) {\n this.source = source;\n }",
"@Override\n public String getName() {\n return source.getName();\n }",
"@OutVertex\n ActionTrigger getSource();",
"public ContactStatusEvent(Object source)\n {\n super(source);\n }",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"public EndpointID source() {\r\n\t\treturn source_;\r\n\t}",
"public void setSource(String source);",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public String sourceField() {\n return this.sourceField;\n }",
"public void setSource (String source);",
"@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}",
"public String getSource() {\r\n return Source;\r\n }",
"public SourceIF source() {\n\t\treturn this.source;\n\t}",
"public void setSourceType(String sourceType) {\n this.sourceType = sourceType;\n }",
"public void setSourceType(String sourceType) {\n this.sourceType = sourceType;\n }",
"@ApiModelProperty(value = \"The source of the data.\")\n public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public void setSource(Byte source) {\r\n this.source = source;\r\n }",
"public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}",
"State getSource();",
"public DescribeEventsRequest withSourceType(SourceType sourceType) {\n this.sourceType = sourceType.toString();\n return this;\n }",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public CmdEvent(Object source, ICmdDataFlowContext cmdDataFlowContext) {\n super(source);\n this.cmdDataFlowContext = cmdDataFlowContext;\n\n }",
"public State getsourcestate(){\n\t\treturn this.sourcestate;\n\t}",
"public String getSource() {\r\n return source;\r\n }",
"public String getSourceType() {\n return this.sourceType;\n }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"@JsonProperty(\"source\")\n public Source getSource() {\n return source;\n }",
"public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }",
"public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }",
"public DescribeEventsRequest withSourceType(String sourceType) {\n this.sourceType = sourceType;\n return this;\n }",
"public String getSource() {\n return this.source;\n }",
"public Object getSource() {return source;}",
"public FVEvent setSrc(FVEventHandler src) {\n\t\tthis.src = src;\n\t\treturn this;\n\t}",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"public DemoEventSource( T source ) {\n super(source);\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"@NonNull\n\t\tBuilder addSource(@NonNull ConfigSource source);",
"private StoreEvent(E source) {\n super(source);\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"SourceLevel getSourceLevel() {\n return sourceLevel;\n }",
"public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }",
"@Override\n public String getSource() {\n return this.src;\n }",
"@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}",
"public int getSource() {\n\t\treturn source;\n\t}",
"public void setSourceType(SourceType sourceType) {\n this.sourceType = sourceType.toString();\n }",
"@DISPID(-2147417088)\n @PropGet\n int sourceIndex();",
"@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);",
"public String getSource() {\n\n return source;\n }",
"public URI getSource() {\n return source;\n }",
"public void targetStarted(BuildEvent event) {\n }",
"public String sourceUri() {\n return this.sourceUri;\n }",
"public ApplicationEvent(Object source) {\n super(source);\n this.timestamp = System.currentTimeMillis();\n }",
"public boolean isSource() {\r\n \t\treturn source;\r\n \t}",
"public String getSourceResource() {\r\n\t\treturn requestSource;\r\n\t}",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public Object getSource() {\n\t\treturn source;\n\t}",
"@Override\n\tpublic Object visitDeclaration_SourceSink(Declaration_SourceSink declaration_SourceSink, Object arg)\n\t\t\tthrows Exception {\n\t\tfv = cw.visitField(ACC_STATIC, declaration_SourceSink.name, \"Ljava/lang/String;\", null, null);\n\t\tfv.visitEnd();\n\t\tif(declaration_SourceSink.source!=null){\n\t\t\tdeclaration_SourceSink.source.visit(this, arg);\n\t\t\tmv.visitFieldInsn(PUTSTATIC, className, declaration_SourceSink.name, \"Ljava/lang/String;\");\n\t\t}\n\t\treturn null;\n\t}",
"public abstract Source getSource();",
"@Override\r\n\tpublic String getSource() {\n\t\treturn null;\r\n\t}",
"public String getSource() {\n return mSource;\n }",
"public MatchEvent(Match source) {\n super(source);\n }",
"EventChannel create();",
"public Object getSource() {\n return source;\n }",
"ElementCircuit getSource();",
"@Override\n public Vertex getSource() {\n return sourceVertex;\n }",
"WithCreate withDestination(EventChannelDestination destination);",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"protected Source getSource() {\r\n return source;\r\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public SourceTypeConfiguration(String sourceType, String source,\n\t\t\tString logPatternlayout, String sourceIndex) {\n\t\tthis.sourceType = sourceType;\n\t\tthis.source = source;\n\t\tthis.logPatternlayout = logPatternlayout;\n\t\tthis.sourceIndex = sourceIndex;\n\t}",
"public static SourceBuilder builder() {\n return new SourceBuilder() {\n @Override\n public EventSource build(Context ctx,String... argv) {\n if (argv.length == 1) {\n return new HelloWorldSource(argv[0]);\n } else{\n return new HelloWorldSource();\n } \n }\n };\n }",
"public Actor getSource()\r\n\t{\r\n\t\treturn sourceActor;\t\r\n\t}",
"public Vertex getSource() {\n return source;\n }"
] | [
"0.70654464",
"0.70545435",
"0.639767",
"0.6353949",
"0.6104582",
"0.5877772",
"0.58377117",
"0.58202106",
"0.5800016",
"0.57937497",
"0.578829",
"0.5781881",
"0.57663643",
"0.57663643",
"0.5718646",
"0.57065743",
"0.5695402",
"0.5677686",
"0.5619014",
"0.561893",
"0.5617729",
"0.56136495",
"0.558256",
"0.55768013",
"0.5560997",
"0.5535279",
"0.553366",
"0.55259585",
"0.5503961",
"0.548275",
"0.5481688",
"0.54812515",
"0.54684836",
"0.54594475",
"0.54594475",
"0.54516643",
"0.5448487",
"0.54409224",
"0.5440184",
"0.5433991",
"0.5427882",
"0.54192716",
"0.54050076",
"0.54030573",
"0.5393872",
"0.5385371",
"0.53713787",
"0.53638643",
"0.5360341",
"0.5352106",
"0.53383213",
"0.5333009",
"0.5329555",
"0.5327041",
"0.5326509",
"0.5320682",
"0.53196704",
"0.5314627",
"0.5312533",
"0.5312081",
"0.5312081",
"0.5312081",
"0.5293011",
"0.5292507",
"0.5265492",
"0.5263502",
"0.52544624",
"0.5230454",
"0.5225813",
"0.52249914",
"0.522295",
"0.522065",
"0.52192765",
"0.5208469",
"0.51859415",
"0.51838887",
"0.5181198",
"0.51810443",
"0.5173996",
"0.5173132",
"0.5164445",
"0.5164445",
"0.5151821",
"0.51507896",
"0.51504546",
"0.5141849",
"0.51408076",
"0.5128408",
"0.51240546",
"0.5112923",
"0.51120824",
"0.50974214",
"0.5097321",
"0.50963885",
"0.50943124",
"0.50943124",
"0.50894606",
"0.5088939",
"0.50879365",
"0.50878"
] | 0.71871126 | 0 |
Specifies the source property: Source of the event channel. This represents a unique resource in the partner's resource model.. | WithCreate withSource(EventChannelSource source); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"EventChannelSource source();",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}",
"public void setSource(String source) {\n _source = source;\n }",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"@ApiModelProperty(value = \"The source of the data.\")\n public String getSource() {\n return source;\n }",
"public EndpointID source() {\r\n\t\treturn source_;\r\n\t}",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"@JsonProperty(\"source\")\n public void setSource(Source source) {\n this.source = source;\n }",
"public void setSource(String source);",
"public void setSource (String source);",
"Update withSource(EventChannelSource source);",
"public IEventCollector getSource();",
"public void setSource(AppSyncSource source) {\n appSyncSource = source;\n }",
"public String getSourceId() {\n return sourceId;\n }",
"public void setSourceID(java.lang.Object sourceID) {\n this.sourceID = sourceID;\n }",
"public String getSourceResource() {\r\n\t\treturn requestSource;\r\n\t}",
"public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }",
"public URI getSource() {\n return source;\n }",
"@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();",
"public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}",
"public String getSource() {\n return mSource;\n }",
"@JsonProperty(\"source\")\n public Source getSource() {\n return source;\n }",
"public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"public String sourceUri() {\n return this.sourceUri;\n }",
"public String sourceUniqueId() {\n return this.sourceUniqueId;\n }",
"public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }",
"@ApiModelProperty(value = \"族谱来源\")\n public String getSource() {\n return source;\n }",
"@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);",
"public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }",
"public String get_source() {\n\t\treturn source;\n\t}",
"public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }",
"public String getSource() {\r\n return Source;\r\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }",
"public void setSource(Object o) {\n\t\tsource = o;\n\t}",
"public final void testSetSource() {\n Notification n = new Notification(\"type\", \"src\", 1);\n assertEquals(\"src\", n.getSource());\n n.setSource(\"new src\");\n assertEquals(\"new src\", n.getSource());\n }",
"public Actor getSource()\r\n\t{\r\n\t\treturn sourceActor;\t\r\n\t}",
"public Object getSource() {return source;}",
"public String getSource() {\n return this.source;\n }",
"public String getSource() {\n return source;\n }",
"public FVEvent setSrc(FVEventHandler src) {\n\t\tthis.src = src;\n\t\treturn this;\n\t}",
"public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}",
"public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Object getSource() {\n return source;\n }",
"java.lang.String getAssociatedSource();",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public String getSource() {\r\n return source;\r\n }",
"protected Source getSource() {\r\n return source;\r\n }",
"public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }",
"public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }",
"public JSONObject SourceResource() {\n JSONObject source = jsonParent.getJSONObject(\"sourceResource\");\n return source;\n }",
"public interface Source {\n\n /**\n * Set the system identifier for this Source.\n * <p>\n * The system identifier is optional if the source does not get its data\n * from a URL, but it may still be useful to provide one. The application\n * can use a system identifier, for example, to resolve relative URIs and to\n * include in error messages and warnings.\n * </p>\n *\n * @param systemId\n * The system identifier as a URL string.\n */\n public void setSystemId(String systemId);\n\n /**\n * Get the system identifier that was set with setSystemId.\n *\n * @return The system identifier that was set with setSystemId, or null if\n * setSystemId was not called.\n */\n public String getSystemId();\n}",
"@Override\r\n\tpublic String getSource() {\n\t\treturn null;\r\n\t}",
"public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }",
"public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }",
"public String getSource() {\n\n return source;\n }",
"public void setSource(Byte source) {\r\n this.source = source;\r\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public Uri getSourceUri() {\n return sourceUri;\n }",
"@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}",
"@java.lang.Override\n public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n }\n }",
"public SourceIF source() {\n\t\treturn this.source;\n\t}",
"public Builder setAssociatedSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n associatedSource_ = value;\n onChanged();\n return this;\n }",
"public Builder setSource(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n source_ = value;\n onChanged();\n return this;\n }",
"public String getSource() {\n Object ref = source_;\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 if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n }\n }",
"protected void addSourcePropertyDescriptor(Object object) {\n\t\t\n\t\titemPropertyDescriptors.add(new EdgeSourcePropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\tgetResourceLocator(), getString(\"_UI_Edge_source_feature\"), getString(\n\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\", \"_UI_Edge_source_feature\",\n\t\t\t\t\t\t\"_UI_Edge_type\"), HenshinPackage.Literals.EDGE__SOURCE));\n\t}",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public String getSourceArn() {\n return this.sourceArn;\n }",
"public void setSourceUrl(String sourceUrl) {\n this.sourceUrl = sourceUrl == null ? null : sourceUrl.trim();\n }",
"public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }",
"public String getSource() {\n\t\treturn this.uri.toString();\n\t}",
"@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}",
"@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getAssociatedSourceBytes() {\n java.lang.Object ref = associatedSource_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n associatedSource_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String getSource() {\n return this.src;\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}",
"public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }",
"public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}",
"@Override\n public String getSource()\n {\n return null;\n }",
"public Vertex getSource() {\n return source;\n }",
"@Override\n\tpublic VType getSource() {\n\t\t// TODO: Add your code here\n\t\treturn super.from;\n\t}",
"public void setSourceObjectId(String sourceObjectId) {\n this.sourceObjectId = sourceObjectId;\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"public java.lang.String getSource() {\r\n return localSource;\r\n }",
"public ContactStatusEvent(Object source)\n {\n super(source);\n }"
] | [
"0.71762156",
"0.71363044",
"0.70675635",
"0.70098156",
"0.69234514",
"0.6867872",
"0.68019295",
"0.676749",
"0.6750124",
"0.6739265",
"0.6739265",
"0.6661134",
"0.6661134",
"0.6585889",
"0.6553319",
"0.65457296",
"0.6515045",
"0.65035737",
"0.6436166",
"0.63695294",
"0.6328143",
"0.63217926",
"0.6307377",
"0.6300721",
"0.62902486",
"0.6273509",
"0.6242382",
"0.62156576",
"0.62140983",
"0.6213799",
"0.62134105",
"0.6200099",
"0.619642",
"0.61959004",
"0.6187257",
"0.6178422",
"0.6163013",
"0.61414343",
"0.61378294",
"0.61362517",
"0.6122857",
"0.6120323",
"0.6114135",
"0.6106871",
"0.61005193",
"0.60877806",
"0.608646",
"0.60493547",
"0.6040449",
"0.6040352",
"0.6032271",
"0.60274744",
"0.6016404",
"0.60116017",
"0.6001723",
"0.6001723",
"0.5991883",
"0.59902596",
"0.5979228",
"0.5979228",
"0.597743",
"0.5972482",
"0.59684205",
"0.595902",
"0.595902",
"0.5954276",
"0.5948831",
"0.59444255",
"0.59444255",
"0.59444255",
"0.5941901",
"0.59414494",
"0.5939476",
"0.59070355",
"0.59009",
"0.5879544",
"0.58557457",
"0.583978",
"0.58184886",
"0.5818418",
"0.5815889",
"0.581473",
"0.5807978",
"0.58047205",
"0.5798616",
"0.5790501",
"0.5787727",
"0.57805395",
"0.5779189",
"0.5779189",
"0.57751316",
"0.5772093",
"0.57657826",
"0.57650125",
"0.5764124",
"0.5756547",
"0.5744916",
"0.5741137",
"0.57293576",
"0.57216126"
] | 0.62426543 | 26 |
The stage of the EventChannel definition allowing to specify destination. | interface WithDestination {
/**
* Specifies the destination property: Represents the destination of an event channel..
*
* @param destination Represents the destination of an event channel.
* @return the next definition stage.
*/
WithCreate withDestination(EventChannelDestination destination);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannelDestination destination();",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"Update withDestination(EventChannelDestination destination);",
"WithCreate withDestination(EventChannelDestination destination);",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"public void setDestination(String destination) {\r\n this.destination = destination;\r\n }",
"public String destination() {\n return this.destination;\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public String getDestination() {\r\n return this.destination;\r\n }",
"public String getDestination() {\n return this.destination;\n }",
"public String getDestination() {\r\n return destination;\r\n }",
"public String getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"public String getDestination() {\n return destination;\n }",
"public String getDestination() {\n\t\treturn destination;\n\t}",
"public Sommet destination() {\n return destination;\n }",
"public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}",
"EventChannelSource source();",
"public FVEventHandler getDst() {\n\t\treturn dst;\n\t}",
"@RequestMapping(value = \"/publish\", method = RequestMethod.POST)\n public String publish(@RequestParam(value = \"destination\", required = false, defaultValue = \"**\") String destination) {\n\n final String myUniqueId = \"config-client1:7002\";\n System.out.println(context.getId());\n final MyCustomRemoteEvent event =\n new MyCustomRemoteEvent(this, myUniqueId, destination, \"--------dfsfsdfsdfsdfs\");\n //Since we extended RemoteApplicationEvent and we've configured the scanning of remote events using @RemoteApplicationEventScan, it will be treated as a bus event rather than just a regular ApplicationEvent published in the context.\n //因为我们在启动类上设置了@RemoteApplicationEventScan注解,所以通过context发送的时间将变成一个bus event总线事件,而不是在自身context中发布的一个ApplicationEvent\n context.publishEvent(event);\n\n return \"event published\";\n }",
"public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }",
"public int getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}",
"public java.lang.String getDestination() {\n return destination;\n }",
"@Override\n public String getDestination() {\n return this.dest;\n }",
"public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}",
"public Actor getDestination()\r\n\t{\r\n\t\treturn destinationActor;\t\r\n\t}",
"public void setDestination(Coordinate destination) {\n cDestination = destination;\n }",
"public java.lang.String getDestination()\n {\n return this._destination;\n }",
"public Vertex getDestination() {\n return destination;\n }",
"public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}",
"public Location getDestination()\r\n\t{ return this.destination; }",
"public java.lang.String getDestination(){return this.destination;}",
"public Location getDestination() {\r\n return destination;\r\n }",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n }\n }",
"public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"String getStage();",
"public Location getDestination(){\n\t\treturn destination;\n\t}",
"public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }",
"@Override\n\tpublic String getMessageDestination() {\n\t\treturn channelName;\n\t}",
"public Destination() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"Destination getDestination();",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public interface StageConfig extends Config<StageConfig> {\r\n\r\n /**\r\n * Get the name of the stage\r\n * @return Name of the stage\r\n */\r\n String getStageName();\r\n\r\n /**\r\n * Get the fully-qualified class the stage is an instance of\r\n * @return\r\n */\r\n String getStageClass();\r\n\r\n /**\r\n * Get name for the StageExecutionMode to be used for this stage. This should\r\n * be the name of the enum (e.g. NEXT_DOC, NEXT_STAGE, etc..) It is used to\r\n * instantiate the enum from a serialized configuration.\r\n * @return Name for the StageExecutionMode\r\n */\r\n String getStageExceptionModeClass();\r\n\r\n /**\r\n * Get StageExecutionMode for the Stage. If stage does not set this explicitly,\r\n * the stageExecutionMode setting for the pipeline will be applied.\r\n * @return StageExecutionMode instance\r\n */\r\n StageExceptionMode getStageExceptionMode();\r\n\r\n /**\r\n * Set the StageExecutionMode for this stage to the specified value. If stage\r\n * does not set this explicitly, the stageExecutionMode setting for the pipeline\r\n * will be applied.\r\n * @param mode StageExceptionMode to apply\r\n */\r\n void setStageExceptionMode(StageExceptionMode mode);\r\n}",
"EventChannel apply();",
"public String getDestinationName() {\n return destinationName;\n }",
"public IEventCollector getSource();",
"public String getAuditDestinationARN() {\n return this.auditDestinationARN;\n }",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }",
"WithCreate withSource(EventChannelSource source);",
"public Coordinate getDestination() {\n return cDestination;\n }",
"public String getSinkType() {\n return this.sinkType;\n }",
"public Node getDestination() {\n return this.destination;\n }",
"public int getDestination() {\n\t\treturn finalDestination;\n\t}",
"interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }",
"@Override\r\n\tpublic String toShortString() {\r\n\t\treturn \"->F: \" + destination;\r\n\t}",
"public abstract State getDestinationState ();",
"public KYCDeliveryFlow(String acctNameSource, String acctNameTarget, StateAndRef<AssetForAccountState> asset) {\n this.acctNameSource = acctNameSource;\n this.acctNameTarget = acctNameTarget;\n this.asset=asset;\n\n// this.name = name;\n// this.value = value;\n }",
"int getDestinationPort() {\n return this.resolvedDestination.destinationPort;\n }",
"Integer destinationPort();",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"public Reference destination() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_DESTINATION);\n }",
"@OutVertex\n ActionTrigger getSource();",
"interface WithSourceType {\n /**\n * Specifies the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case\n * sensitive..\n *\n * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.\n * @return the next definition stage.\n */\n WithCreate withSourceType(SourceType sourceType);\n }",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"EventChannel create();",
"public Square destination() {\n return destination;\n }",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"public void setDestinationFloor(int destinationFloor){\n this.destinationFloor=destinationFloor;\n }",
"public void setSourceType(String sourceType) {\n this.sourceType = sourceType;\n }",
"public void setSourceType(String sourceType) {\n this.sourceType = sourceType;\n }",
"public void moveToEvent(ControllerContext cc, Planet dest) {\n\t}",
"public FVEvent setDst(FVEventHandler dst) {\n\t\tthis.dst = dst;\n\t\treturn this;\n\t}",
"java.lang.String getStageId();",
"T getDestination(T nodeOrigin, F flow);",
"public int destination(){\n\t\treturn this.des;\n\t}",
"public String getDestinationCountry() {\r\n return this.destinationCountry;\r\n }",
"EventChannel apply(Context context);",
"@Override\n public int getChannel()\n {\n return channel;\n }",
"public void selectCruiseDestination(String destination) {\n\t\tSelect sel = new Select(goingTo);\n\t\tsel.selectByVisibleText(destination);\n\t}",
"public boolean get_destination() {\r\n return (final_destination);\r\n }",
"public void setDestination (LatLng destination) {\n this.destination = destination;\n }",
"public Object getDestination() { return this.d; }",
"@Override\n public String toString() {\n return \"The name of the destination is \" + this.name + \".\";\n }",
"@JsonProperty(\"destination_name\")\n public String getDestinationName() {\n return destinationName;\n }",
"String getDestinationName();",
"public InetSocketAddress getDestination () {\n\t\treturn origin;\n\t}",
"public Sink getSink(){\r\n\t\treturn sink;\r\n\t}",
"@Override\r\n\tpublic String getActivity_channel() {\n\t\treturn super.getActivity_channel();\r\n\t}",
"int getDestination();",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}",
"@JsonProperty(\"destination_name\")\n public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }",
"String getRouteDest();",
"public Stage getStage() {\n return stage;\n }",
"String getStageName();",
"public String destinationAttributeName() {\n return this.destinationAttributeName;\n }",
"public interface SinkColor\n {\n /**\n * Blue, RGB( 0, 0, 255 )\n *\n * @see Sink#anchor(String)\n * @see Sink#anchor(SinkEventAttributes)\n * @see Sink#anchor_()\n */\n Color ANCHOR_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 255 ) );\n\n /**\n * @see Sink#author()\n * @see Sink#author(SinkEventAttributes)\n * @see Sink#author_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color AUTHOR_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#body()\n * @see Sink#body(SinkEventAttributes)\n * @see Sink#body_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color BODY_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#bold()\n * @see Sink#bold(SinkEventAttributes)\n * @see Sink#bold_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color BOLD_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Green, RGB( 0, 140, 0 )\n *\n * @see Sink#comment(String)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color COMMENT_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 140, 0 ) );\n\n /**\n * Green, RGB( 63,127, 95 )\n *\n * @see Sink#date()\n * @see Sink#date(SinkEventAttributes)\n * @see Sink#date_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DATE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#definedTerm()\n * @see Sink#definedTerm(SinkEventAttributes)\n * @see Sink#definedTerm_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DEFINEDTERM_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#definition()\n * @see Sink#definition(SinkEventAttributes)\n * @see Sink#definition_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DEFINITION_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#definitionList()\n * @see Sink#definitionList(SinkEventAttributes)\n * @see Sink#definitionList_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DEFINITIONLIST_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#definitionListItem()\n * @see Sink#definitionListItem(SinkEventAttributes)\n * @see Sink#definitionListItem_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DEFINITIONLISTITEM_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#figure()\n * @see Sink#figure(SinkEventAttributes)\n * @see Sink#figure_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color FIGURE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#figureCaption()\n * @see Sink#figureCaption(SinkEventAttributes)\n * @see Sink#figureCaption_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color FIGURECAPTION_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Blue, RGB( 0, 0, 255 )\n *\n * @see Sink#figureGraphics(String)\n * @see Sink#figureGraphics(String, SinkEventAttributes)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color FIGUREGRAPHICS_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 255 ) );\n\n /**\n * Violet, RGB( 139, 38, 201 )\n *\n * @see Sink#head()\n * @see Sink#head(SinkEventAttributes)\n * @see Sink#head_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color HEAD_COLOR = ColorManager.getInstance().getColor( new RGB( 139, 38, 201 ) );\n\n /**\n * Grey, RGB( 192, 192, 192 )\n *\n * @see Sink#horizontalRule()\n * @see Sink#horizontalRule(SinkEventAttributes)\n */\n Color HORIZONTALRULE_COLOR = ColorManager.getInstance().getColor( new RGB( 192, 192, 192 ) );\n\n /**\n * @see Sink#italic()\n * @see Sink#italic(SinkEventAttributes)\n * @see Sink#italic_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color ITALIC_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#lineBreak()\n * @see Sink#lineBreak(SinkEventAttributes)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color LINEBREAK_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Blue, RGB( 0, 0, 255 )\n *\n * @see Sink#link(String)\n * @see Sink#link(String, SinkEventAttributes)\n * @see Sink#link_()\n */\n Color LINK_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 255 ) );\n\n /**\n * @see Sink#list()\n * @see Sink#list(SinkEventAttributes)\n * @see Sink#list_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color LIST_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#listItem()\n * @see Sink#listItem(SinkEventAttributes)\n * @see Sink#listItem_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color LISTITEM_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#monospaced()\n * @see Sink#monospaced(SinkEventAttributes)\n * @see Sink#monospaced_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color MONOSPACED_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#nonBreakingSpace()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color NONBREAKINGSPACE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#numberedList(int)\n * @see Sink#numberedList(int, SinkEventAttributes)\n * @see Sink#numberedList_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color NUMBEREDLIST_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#numberedListItem()\n * @see Sink#numberedListItem(SinkEventAttributes)\n * @see Sink#numberedListItem_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color NUMBEREDLISTITEM_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#pageBreak()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color PAGEBREAK_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#paragraph()\n * @see Sink#paragraph(SinkEventAttributes)\n * @see Sink#paragraph_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color PARAGRAPH_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section(int, SinkEventAttributes)\n * @see Sink#section_(int)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section1()\n * @see Sink#section1_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION1_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section2()\n * @see Sink#section2_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION2_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section3()\n * @see Sink#section3_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION3_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section4()\n * @see Sink#section4_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION4_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section5()\n * @see Sink#section5_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION5_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle()\n * @see Sink#sectionTitle(int, SinkEventAttributes)\n * @see Sink#sectionTitle_()\n * @see Sink#sectionTitle_(int)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle1()\n * @see Sink#sectionTitle1_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE1_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle2()\n * @see Sink#sectionTitle2_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE2_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle3()\n * @see Sink#sectionTitle3_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE3_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle4()\n * @see Sink#sectionTitle4_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE4_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle5()\n * @see Sink#sectionTitle5_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE5_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Blue, RGB( 0, 0, 150 )\n *\n * @see Sink#table()\n * @see Sink#table(SinkEventAttributes)\n * @see Sink#table_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLE_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 150 ) );\n\n /**\n * @see Sink#tableCaption()\n * @see Sink#tableCaption(SinkEventAttributes)\n * @see Sink#tableCaption_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLECAPTION_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Blue, RGB( 0, 0, 150 )\n *\n * @see Sink#tableCell()\n * @see Sink#tableCell(SinkEventAttributes)\n * @see Sink#tableCell_()\n * @see Sink#tableCell(String)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLECELL_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 150 ) );\n\n /**\n * Blue, RGB( 0, 0, 150 )\n *\n * @see Sink#tableHeaderCell()\n * @see Sink#tableHeaderCell(SinkEventAttributes)\n * @see Sink#tableHeaderCell_()\n * @see Sink#tableHeaderCell(String)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLEHEADERCELL_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 150 ) );\n\n /**\n * Blue, RGB( 0, 0, 150 )\n *\n * @see Sink#tableRow()\n * @see Sink#tableRow(SinkEventAttributes)\n * @see Sink#tableRow_()\n * @see Sink#tableRows(int[], boolean)\n * @see Sink#tableRows_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLEROW_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 150 ) );\n\n /**\n * @see Sink#title()\n * @see Sink#title(SinkEventAttributes)\n * @see Sink#title_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TITLE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Grey, RGB( 100, 100, 100 )\n *\n * @see Sink#verbatim(boolean)\n * @see Sink#verbatim(SinkEventAttributes)\n * @see Sink#verbatim_()\n */\n Color VERBATIM_COLOR = ColorManager.getInstance().getColor( new RGB( 100, 100, 100 ) );\n }"
] | [
"0.69843465",
"0.6565244",
"0.61796296",
"0.59178007",
"0.56522423",
"0.563637",
"0.55748934",
"0.5573381",
"0.55612785",
"0.55351895",
"0.5484641",
"0.545946",
"0.5458533",
"0.54270446",
"0.54245126",
"0.5411299",
"0.53820884",
"0.5340125",
"0.52273583",
"0.52226967",
"0.5204306",
"0.5176009",
"0.5174586",
"0.5172851",
"0.5101014",
"0.50938034",
"0.5087711",
"0.5053794",
"0.50533414",
"0.5015504",
"0.49569938",
"0.4956228",
"0.49537838",
"0.49350852",
"0.4933734",
"0.49272513",
"0.49060053",
"0.49025953",
"0.48976952",
"0.48531097",
"0.48515174",
"0.4847977",
"0.48261923",
"0.48151445",
"0.48073402",
"0.47998545",
"0.47953734",
"0.47910368",
"0.47886017",
"0.47881344",
"0.47865158",
"0.47713527",
"0.47694588",
"0.4766344",
"0.47651124",
"0.47588053",
"0.47429806",
"0.47340608",
"0.47121453",
"0.46970862",
"0.46949884",
"0.46609658",
"0.465853",
"0.46574602",
"0.46534857",
"0.46398944",
"0.46294478",
"0.4627885",
"0.46270254",
"0.46230608",
"0.4610919",
"0.46091494",
"0.45945048",
"0.45945048",
"0.45939565",
"0.45879593",
"0.4586523",
"0.4578998",
"0.45725003",
"0.45631978",
"0.45600903",
"0.4547686",
"0.4540397",
"0.4537679",
"0.45359328",
"0.4531524",
"0.45282727",
"0.45262927",
"0.45218188",
"0.4518105",
"0.45087105",
"0.45009252",
"0.44872352",
"0.448353",
"0.44823837",
"0.44775087",
"0.44753817",
"0.4473535",
"0.44679123",
"0.44605985"
] | 0.66733927 | 1 |
Specifies the destination property: Represents the destination of an event channel.. | WithCreate withDestination(EventChannelDestination destination); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannelDestination destination();",
"Update withDestination(EventChannelDestination destination);",
"public void setDestination(String destination) {\r\n this.destination = destination;\r\n }",
"public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"public void setDestination(Coordinate destination) {\n cDestination = destination;\n }",
"public String getDestination() {\r\n return this.destination;\r\n }",
"public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}",
"public String getDestination() {\n return this.destination;\n }",
"public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }",
"public String getDestination() {\r\n return destination;\r\n }",
"public String getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"public String getDestination() {\n return destination;\n }",
"public String getDestination() {\n\t\treturn destination;\n\t}",
"@Override\n public String getDestination() {\n return this.dest;\n }",
"public String destination() {\n return this.destination;\n }",
"public java.lang.String getDestination()\n {\n return this._destination;\n }",
"public java.lang.String getDestination(){return this.destination;}",
"public java.lang.String getDestination() {\n return destination;\n }",
"public Destination() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Actor getDestination()\r\n\t{\r\n\t\treturn destinationActor;\t\r\n\t}",
"public Location getDestination(){\n\t\treturn destination;\n\t}",
"public Location getDestination()\r\n\t{ return this.destination; }",
"public Location getDestination() {\r\n return destination;\r\n }",
"public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}",
"public Sommet destination() {\n return destination;\n }",
"public void setDestination (LatLng destination) {\n this.destination = destination;\n }",
"public int getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public Teleporter setDestination(Location location)\r\n\t{ this.destination = location; return this; }",
"Destination getDestination();",
"public Builder setDestination(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destination_ = value;\n onChanged();\n return this;\n }",
"public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }",
"public Coordinate getDestination() {\n return cDestination;\n }",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n }\n }",
"@Override\n\tpublic String getMessageDestination() {\n\t\treturn channelName;\n\t}",
"void setDestination(Locations destination);",
"@RequestMapping(value = \"/publish\", method = RequestMethod.POST)\n public String publish(@RequestParam(value = \"destination\", required = false, defaultValue = \"**\") String destination) {\n\n final String myUniqueId = \"config-client1:7002\";\n System.out.println(context.getId());\n final MyCustomRemoteEvent event =\n new MyCustomRemoteEvent(this, myUniqueId, destination, \"--------dfsfsdfsdfsdfs\");\n //Since we extended RemoteApplicationEvent and we've configured the scanning of remote events using @RemoteApplicationEventScan, it will be treated as a bus event rather than just a regular ApplicationEvent published in the context.\n //因为我们在启动类上设置了@RemoteApplicationEventScan注解,所以通过context发送的时间将变成一个bus event总线事件,而不是在自身context中发布的一个ApplicationEvent\n context.publishEvent(event);\n\n return \"event published\";\n }",
"public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}",
"@JsonProperty(\"destination_name\")\n public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }",
"public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\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 destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Object getDestination() { return this.d; }",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public long getDestinationId() {\n return destinationId_;\n }",
"public String getDestinationName() {\n return destinationName;\n }",
"public long getDestinationId() {\n return destinationId_;\n }",
"@Override\n\tpublic String getDest() {\n\t\treturn dest;\n\t}",
"public MessagingEvent(T source, MessagingAction action, KafkaOutputChannel destination) {\n super(source);\n this.source = source;\n this.action = action;\n this.destination = destination;\n }",
"public void setDestinationType( final String destinationType )\n {\n m_destinationType = destinationType;\n }",
"public void setDestination(TransactionAccount destination){\n if(destination.getTransactionAccountType().getAccountType() == AccountType.INCOME\n && this.getSource() != null\n && this.getSource().getTransactionAccountType().getAccountType() != AccountType.INITIALIZER){\n throw new BTRestException(MessageCode.INCOME_CANNOT_BE_DESTINATION,\n \"Transaction account with type income cannot be used as a source in destination\",\n null);\n }\n this.destination = destination;\n }",
"public void setDestination(ExportDestination destination) {\n this.destination = destination;\n }",
"public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}",
"public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getDestinationFolder()\n\t{\n\t\treturn destinationFolder;\n\t}",
"public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }",
"public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setDestination(int x, int y) {\n\t\t\n\t}",
"public Reference destination() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_DESTINATION);\n }",
"public Vertex getDestination() {\n return destination;\n }",
"public Town getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination();",
"public Node getDestination() {\n return this.destination;\n }",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination() {\n if (destinationBuilder_ == null) {\n return destination_ == null ? io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n } else {\n return destinationBuilder_.getMessage();\n }\n }",
"@JsonProperty(\"destination_name\")\n public String getDestinationName() {\n return destinationName;\n }",
"public InetSocketAddress getDestination () {\n\t\treturn origin;\n\t}",
"EndpointAddress getDestinationAddress();",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination() {\n return destination_ == null ? io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n }",
"public void setTransitionDestinationCallback(\n ScreenshotController.TransitionDestination destination) {\n mTransitionDestinationCallback.set(destination);\n }",
"public void setLogDestination(String logDestination) {\n this.logDestination = logDestination;\n }",
"@Override\n public Location getDestination() {\n return _destinationLocation != null ? _destinationLocation : getOrigin();\n }",
"public int getDestination() {\n\t\treturn finalDestination;\n\t}",
"public void setDestination (InetSocketAddress o) {\n\t\torigin = o;\n\t}",
"public void addDestination(NameValue<String, String> nv) {\n this.addDestination(nv.getKey(), nv.getValue());\n }",
"public Builder setRouteDestBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }",
"private boolean finalDestination(OverlayNodeSendsData event) {\n\t\tif (event.getDestID() == myAssignedID)\n\t\t\treturn true;\n\t\treturn false;\n\n\t}",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder() {\n return getDestination();\n }",
"public String getDestinationId()\n {\n return destinationId; // Field is final; no need to sync.\n }",
"@Override\n public void onArriveDestination() {\n\n }",
"EventChannelSource source();",
"public DelayDropLinkMessage(Address source, Address destination,\r\n Flp2pDeliver deliverEvent) {\r\n super(source, destination, Transport.TCP);\r\n this.deliverEvent = deliverEvent;\r\n }",
"String getDestinationAddress() {\n return this.resolvedDestination.destinationAddress;\n }",
"public void selectCruiseDestination(String destination) {\n\t\tSelect sel = new Select(goingTo);\n\t\tsel.selectByVisibleText(destination);\n\t}",
"io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder();",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"public void setQueue ( Queue queue )\r\n {\r\n setDestination ( queue );\r\n }",
"public Integer getDestination() {\n\t\treturn new Integer(destination);\n\t}",
"public boolean get_destination() {\r\n return (final_destination);\r\n }",
"public LatLng getDestination () {\n return destination;\n }",
"public ExportDestination getDestination() {\n return this.destination;\n }",
"public Long getDestinationNumber() {\n return this.destinationNumber;\n }",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder() {\n if (destinationBuilder_ != null) {\n return destinationBuilder_.getMessageOrBuilder();\n } else {\n return destination_ == null ?\n io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n }\n }",
"public void setDestinationCountry(String value) {\r\n this.destinationCountry = value;\r\n }",
"public Room getDestination() {\n return toRoom;\n }",
"public String destinationAttributeName() {\n return this.destinationAttributeName;\n }",
"public void moveToEvent(ControllerContext cc, Planet dest) {\n\t}",
"public String getRouteDest() {\n Object ref = routeDest_;\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 if (bs.isValidUtf8()) {\n routeDest_ = s;\n }\n return s;\n }\n }",
"public void setDest(Point dest){\n System.out.println(\"hit\");\n this.dest = dest;\n }"
] | [
"0.82442254",
"0.7667506",
"0.7226379",
"0.7168088",
"0.70403755",
"0.6965033",
"0.6925065",
"0.6915017",
"0.68959147",
"0.68806916",
"0.6839921",
"0.67900485",
"0.67808783",
"0.6756558",
"0.67381775",
"0.67364895",
"0.66986",
"0.6474823",
"0.64684594",
"0.64642495",
"0.6385365",
"0.6340906",
"0.62729514",
"0.6246891",
"0.6228026",
"0.6221542",
"0.62021077",
"0.6181741",
"0.6167258",
"0.61562496",
"0.6149721",
"0.61453485",
"0.61139905",
"0.61011446",
"0.6074676",
"0.6055985",
"0.59708154",
"0.59458935",
"0.5940152",
"0.593305",
"0.59301287",
"0.5876217",
"0.5866939",
"0.58425444",
"0.58425033",
"0.58355665",
"0.58355105",
"0.5830773",
"0.5820577",
"0.57985973",
"0.5784754",
"0.5779328",
"0.57758987",
"0.57737625",
"0.5765504",
"0.5729413",
"0.57258785",
"0.572327",
"0.5723243",
"0.5721313",
"0.5697173",
"0.5691899",
"0.5676178",
"0.56748724",
"0.5661845",
"0.56593734",
"0.5657653",
"0.56396836",
"0.5639143",
"0.5595007",
"0.5551277",
"0.5544403",
"0.55430377",
"0.5541342",
"0.5517103",
"0.55161977",
"0.55037534",
"0.5502021",
"0.54924434",
"0.54889905",
"0.5456738",
"0.54520315",
"0.5442784",
"0.54361665",
"0.5419333",
"0.54061043",
"0.54046106",
"0.539533",
"0.53894657",
"0.53887415",
"0.53848577",
"0.5384809",
"0.5368729",
"0.53568625",
"0.5353735",
"0.53528106",
"0.5349369",
"0.53415424",
"0.53379315",
"0.53362006"
] | 0.67738485 | 13 |
The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. | interface WithExpirationTimeIfNotActivatedUtc {
/**
* Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this
* timer expires while the corresponding partner topic is never activated, the event channel and
* corresponding partner topic are deleted..
*
* @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while
* the corresponding partner topic is never activated, the event channel and corresponding partner topic
* are deleted.
* @return the next definition stage.
*/
WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);",
"OffsetDateTime expirationTimeIfNotActivatedUtc();",
"Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);",
"public OffsetDateTime expiration() {\n return this.innerProperties() == null ? null : this.innerProperties().expiration();\n }",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"public boolean hasConsumerTime() {\n return fieldSetFlags()[2];\n }",
"public void setExpiryTime(long expiryTime) // Override this method to use intrinsic level-specific expiry times\n {\n super.setExpiryTime(expiryTime);\n\n if (expiryTime > 0)\n this.levels.setExpiryTime(expiryTime); // remove this in sub-class to use level-specific expiry times\n }",
"public long getExpirationTime()\n {\n return this.m_eventExpirationTime;\n }",
"public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }",
"public DateTime expiryTime() {\n return this.expiryTime;\n }",
"@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"public void setIsExtentExpiration(boolean value) {\n this.isExtentExpiration = value;\n }",
"public Double getExposureTime()\n\t{\n\t\treturn null;\n\t}",
"@Override\n public Date getExpiration()\n {\n return null;\n }",
"public Date getExpirationTime() {\n return expirationTime;\n }",
"public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public void setExpiration(long expiration) {\n this.expiration = expiration;\n }",
"public Timestamp getExpirationDate() {\n return expirationDate;\n }",
"public void setExpiryTime(long expiryTime) {\n this.expiryTime = expiryTime;\n }",
"public boolean isIsExtentExpiration() {\n return isExtentExpiration;\n }",
"public String getExpiration() {\n return this.expiration;\n }",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"public void setExpirationTime(Date expirationTime) {\n this.expirationTime = expirationTime;\n }",
"public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"public Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes() {\n return this.innerProperties() == null\n ? null\n : this.innerProperties().trafficRestorationTimeToHealedOrNewEndpointsInMinutes();\n }",
"public Event pistonECEvent(long startTime, long endTime, boolean option) {\r\n \tEvent temp;\r\n \tif(System.currentTimeMillis() < lockUntil) return null;\r\n \t\r\n if(option) \r\n temp = new Event(1, System.currentTimeMillis()+startTime, System.currentTimeMillis()+endTime, \r\n () -> this.extend(), () -> this.contract());\r\n else\r\n temp = new Event(1, startTime, endTime, () -> this.extend(), () -> this.contract());\r\n \r\n lockUntil = endTime+500;\r\n return temp;\r\n }",
"public long getExpiration() {\n return expiration;\n }",
"public int getExpiryTime() {\n return expiryTime;\n }",
"@Override\n public void setExpiration( Date arg0)\n {\n \n }",
"public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}",
"public WebhookCreateOrUpdateParameters withExpiryTime(DateTime expiryTime) {\n this.expiryTime = expiryTime;\n return this;\n }",
"interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }",
"public void setExpiryDate(SIPDateOrDeltaSeconds e) {\n expiryDate = e ;\n }",
"public java.util.Calendar getExpiryTime(){\n return localExpiryTime;\n }",
"public void setActivationTime(java.util.Calendar param){\n localActivationTimeTracker = true;\n \n this.localActivationTime=param;\n \n\n }",
"String getDefaultKeyExpiry();",
"public Integer getExpiry() {\n return expiry;\n }",
"public Date getExpirationDate() {\r\n return expirationDate;\r\n }",
"public boolean isSetActivedEndTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTIVEDENDTIMESTAMP_ISSET_ID);\n }",
"long getExpiryTime() {\n return expiryTime;\n }",
"void setExposureTimePref(long exposure_time);",
"public InterventionDeadlineDefined() {\r\n setEventTypeUid(INTERVENTION_DEADLINE_DEFINED.getUid());\r\n setEventType(INTERVENTION_DEADLINE_DEFINED.getName());\r\n }",
"@Override\n\tpublic void setTokenExpiryTime(long arg0) {\n\t\t\n\t}",
"long getExpiration();",
"@Range(min = 0)\n\t@NotNull\n\tpublic Integer getExpiration() {\n\t\treturn this.expiration;\n\t}",
"private int getActiveTime() {\n\t\treturn 15 + level;\n\t}",
"public GameAboutToStartEvent() {\n this.seconds = FIVE_SECONDS;\n }",
"public void setExpiry(int expiry)\n {\n this.expiry = expiry;\n }",
"public Date getExpirationDate() {\n return expirationDate;\n }",
"public Date getExpirationDate() {\n return expirationDate;\n }",
"long getExposureTimePref();",
"public void setRetentionExpiryDateTime(long expires) {\n\t\t\n\t\t// Check if the retention date/time has changed\n\t\t\n\t\tif ( getRetentionExpiryDateTime() != expires) {\n\t\t\t\n\t\t\t// Update the retention date/time\n\t\t\t\n\t\t\tsuper.setRetentionExpiryDateTime(expires);\n\t\t\t\n\t\t\t// Queue a low priority state update\n\t\t\t\n\t\t\tqueueLowPriorityUpdate( UpdateRetentionExpire);\n\t\t}\n\t}",
"public WSFederationClaimsReleasePolicy() {\n this(new HashMap<>());\n }",
"@java.lang.Override\n public long getExpirationDate() {\n return expirationDate_;\n }",
"EventChannelProvisioningState provisioningState();",
"Optional<ZonedDateTime> getExpiryDate();",
"public Date getDefaultTrialExpirationDate(){\n if(AccountType.STANDARD.equals(accountType)){\n Calendar cal = Calendar.getInstance();\n\n //setting the free trial up for standard users\n cal.add(Calendar.DATE, Company.FREE_TRIAL_LENGTH_DAYS);\n return cal.getTime();\n }\n\n return null;\n }",
"public Timestamp getExpirationTime() {\n\t\treturn m_ExpirationTime;\n\t}",
"@java.lang.Override\n public long getExpirationDate() {\n return expirationDate_;\n }",
"public Date getExpiryDate() {\n return expiryDate;\n }",
"public void setExpiryDestination(ObjectName destination);",
"@Schema(description = \"The intended arrival time, at the to place if set otherwise the time the user intends to stop using the asset.\")\n \n @Valid\n public OffsetDateTime getArrivalTime() {\n return arrivalTime;\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"public long getExpiry() {\n return this.contextSet.getExpiration();\n }",
"public boolean hasUpdateTriggerTime() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"protected void notificationOnExpiration() {\n }",
"public long getExpiry() {\n return this.expiry;\n }",
"public boolean hasExchangeTime() {\n return exchangeTimeBuilder_ != null || exchangeTime_ != null;\n }",
"public ObjectName getExpiryDestination();",
"public SIPDateOrDeltaSeconds getExpiryDate() {\n return expiryDate ;\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"boolean hasExpiryTimeSecs();",
"String getSpecifiedExpiry();",
"public final String getRequestExpiration() {\n return properties.get(REQUEST_EXPIRATION_PROPERTY);\n }",
"public void setExpirationDate(Date expirationDate) {\r\n this.expirationDate = expirationDate;\r\n }",
"public final long getRetentionExpiryDateTime() {\n\t return m_retainUntil;\n\t}",
"public long explicitAutoAssocSlotLifetime() {\n return expireAccounts ? 0 : THREE_MONTHS_IN_SECONDS;\n }",
"public Date getExpiryDate()\n {\n return expiryDate;\n }",
"public Integer delayExistingRevokeInHours() {\n return this.delayExistingRevokeInHours;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getExpirationDate();",
"public String getExpirationDate() { return date; }",
"public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }",
"public void setLifeTimeAssigned(TLifeTimeInSeconds lifetime) {\n\n\t\tthis.lifetimeAssigned = lifetime;\n\t}",
"com.google.protobuf.TimestampOrBuilder getCurrentStateTimeOrBuilder();",
"public Date getExpirationDate() {\n\t\treturn expirationDate;\n\t}",
"public Date getExpirationDate() {\n\t\treturn expirationDate;\n\t}",
"@Override\r\n\tpublic Date getEventEndTime() {\n\t\treturn null;\r\n\t}",
"default EtcdKeysEndpointBuilder timeToLive(String timeToLive) {\n doSetProperty(\"timeToLive\", timeToLive);\n return this;\n }",
"public String getExpirationDate() {\r\n\t\treturn expirationDate;\r\n\t}",
"public Date getReleaseTime() {\r\n return releaseTime;\r\n }",
"public java.util.Calendar getExpirationDate() {\n return expirationDate;\n }",
"@JsonProperty(\"activeDeadlineSeconds\")\n public Long getActiveDeadlineSeconds() {\n return activeDeadlineSeconds;\n }",
"public String getExpiryDate() {\n return this.expiryDate;\n }",
"public int getExpiry()\n {\n return expiry;\n }",
"LocalDateTime getExpiration(K key);",
"public void setExpirationDate(Date expirationDate) {\n this.expirationDate = expirationDate;\n }"
] | [
"0.6846763",
"0.60798717",
"0.6050232",
"0.5525483",
"0.51756656",
"0.51237434",
"0.49983945",
"0.49430504",
"0.48721552",
"0.4848136",
"0.4845934",
"0.48345405",
"0.48127294",
"0.4803104",
"0.47678334",
"0.4741964",
"0.47285143",
"0.47019663",
"0.4696456",
"0.46930328",
"0.46899545",
"0.4660725",
"0.46599177",
"0.46491688",
"0.463387",
"0.46333364",
"0.46282625",
"0.46282417",
"0.462085",
"0.4612838",
"0.46110612",
"0.46087074",
"0.4580434",
"0.45714504",
"0.45496324",
"0.45132288",
"0.45095313",
"0.4499132",
"0.4498858",
"0.44893232",
"0.4479958",
"0.4475511",
"0.44734102",
"0.44654012",
"0.44555303",
"0.4453002",
"0.44510123",
"0.44451645",
"0.44450808",
"0.44392282",
"0.44303676",
"0.44245526",
"0.44221777",
"0.44221777",
"0.44171685",
"0.4416664",
"0.44097584",
"0.43985075",
"0.439409",
"0.4392605",
"0.439208",
"0.43889356",
"0.4376049",
"0.43590596",
"0.43564942",
"0.43485373",
"0.43385932",
"0.433605",
"0.4325356",
"0.4314829",
"0.4311071",
"0.4305074",
"0.43003014",
"0.42962688",
"0.4292304",
"0.42915338",
"0.42840886",
"0.42766145",
"0.42669854",
"0.42662936",
"0.42648995",
"0.42643335",
"0.42641526",
"0.42608833",
"0.42530876",
"0.4248441",
"0.4245587",
"0.42380658",
"0.42369047",
"0.42369047",
"0.4235394",
"0.423133",
"0.42207056",
"0.4214818",
"0.42114064",
"0.42090422",
"0.42081928",
"0.42077932",
"0.42073312",
"0.42047372"
] | 0.7014137 | 0 |
Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires while the corresponding partner topic is never activated, the event channel and corresponding partner topic are deleted.. | WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"OffsetDateTime expirationTimeIfNotActivatedUtc();",
"Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);",
"public long getExpirationTime()\n {\n return this.m_eventExpirationTime;\n }",
"public void setExpirationTime(Date expirationTime) {\n this.expirationTime = expirationTime;\n }",
"protected void notificationOnExpiration() {\n }",
"public void setExpiration(long expiration) {\n this.expiration = expiration;\n }",
"public OffsetDateTime expiration() {\n return this.innerProperties() == null ? null : this.innerProperties().expiration();\n }",
"int getExpireTimeout();",
"public Date getExpirationTime() {\n return expirationTime;\n }",
"boolean setChatMessageDeliveryExpired(String msgId);",
"public Timestamp getExpirationTime() {\n\t\treturn m_ExpirationTime;\n\t}",
"long getExpiration();",
"void sessionInactivityTimerExpired(DefaultSession session, long now);",
"@Override\n public void setExpiration( Date arg0)\n {\n \n }",
"@Override\n\tpublic void setTokenExpiryTime(long arg0) {\n\t\t\n\t}",
"@Override\n public Date getExpiration()\n {\n return null;\n }",
"public void setExpireTime(String ExpireTime) {\n this.ExpireTime = ExpireTime;\n }",
"public void setExpiryTime(long expiryTime) {\n this.expiryTime = expiryTime;\n }",
"@Override\n public final void setExpiration(double expirationTime) {\n safetyHelper.setExpiration(expirationTime);\n }",
"public boolean hasExpired() {\n return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis();\n }",
"public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }",
"public long getExpiration() {\n return expiration;\n }",
"synchronized void setExpiration(long newExpiration) {\n \texpiration = newExpiration;\n }",
"public void setExpirationDate(Timestamp aExpirationDate) {\n expirationDate = aExpirationDate;\n }",
"public cz.muni.fi.sdipr.kafka.latency.avro.Payload.Builder clearConsumerTime() {\n fieldSetFlags()[2] = false;\n return this;\n }",
"public Instant getExpirationTime() {\n return unit == ChronoUnit.SECONDS\n ? Instant.ofEpochSecond((Long.MAX_VALUE >>> timestampLeftShift) + epoch)\n : Instant.ofEpochMilli((Long.MAX_VALUE >>> timestampLeftShift) + epoch);\n }",
"public String getExpiration() {\n return this.expiration;\n }",
"public Long getExpireTime() {\n\t\treturn expireTime;\n\t}",
"public final void setExpiryTime(long expire) {\n\t\tm_tmo = expire;\n\t}",
"public void setExpireTime(java.util.Date expireTime) {\r\n this.expireTime = expireTime;\r\n }",
"public void setExpirationDate(Date expirationDate) {\r\n this.expirationDate = expirationDate;\r\n }",
"public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }",
"public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"public boolean isExpired()\n\t{\n\t\tif (TimeRemaining == 0) \n\t\t\treturn true;\n\t\telse return false;\n\t}",
"public Builder clearExpiryTimeSecs() {\n bitField0_ = (bitField0_ & ~0x00000008);\n expiryTimeSecs_ = 0;\n onChanged();\n return this;\n }",
"public Date getDefaultTrialExpirationDate(){\n if(AccountType.STANDARD.equals(accountType)){\n Calendar cal = Calendar.getInstance();\n\n //setting the free trial up for standard users\n cal.add(Calendar.DATE, Company.FREE_TRIAL_LENGTH_DAYS);\n return cal.getTime();\n }\n\n return null;\n }",
"public void setExpirationDate(Date expirationDate) {\n this.expirationDate = expirationDate;\n }",
"public void setExpireTime(Date expireTime) {\n\t\tthis.expireTime = expireTime;\n\t}",
"Boolean isChatMessageExpiredDelivery(String msgId);",
"public Date getExpireTime() {\n\t\treturn expireTime;\n\t}",
"protected void setTokenExpirationTime(MendeleyOAuthToken token,\r\n\t\t\tSortedSet<String> responseParameters) {\r\n\t\tif (responseParameters != null && !responseParameters.isEmpty()) {\r\n\t\t\tCalendar calendar = Calendar.getInstance();\r\n\t\t\tint secondsToLive = Integer.valueOf(responseParameters.first());\r\n\t\t\tcalendar.add(Calendar.SECOND, secondsToLive);\r\n\t\t\ttoken.setExpirationTime(calendar.getTime());\r\n\t\t}\r\n\t}",
"public String getExpireTime() {\n return this.ExpireTime;\n }",
"@Override\n public void setNotification() {\n if (getTense() == Tense.FUTURE) {\n //Context ctx = SHiTApplication.getContext();\n //SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n int leadTimeEventMinutes = SHiTApplication.getPreferenceInt(Constants.Setting.ALERT_LEAD_TIME_EVENT, LEAD_TIME_MISSING);\n\n if (leadTimeEventMinutes != LEAD_TIME_MISSING) {\n if (travelTime > 0) {\n leadTimeEventMinutes += travelTime;\n }\n\n setNotification(Constants.Setting.ALERT_LEAD_TIME_EVENT\n , leadTimeEventMinutes\n , R.string.alert_msg_event\n , getNotificationClickAction()\n , null);\n }\n }\n }",
"@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"public void setExpirationDate(java.util.Calendar expirationDate) {\n this.expirationDate = expirationDate;\n }",
"public Timestamp getExpirationDate() {\n return expirationDate;\n }",
"public void setPinExpirationTime(java.util.Calendar pinExpirationTime) {\r\n this.pinExpirationTime = pinExpirationTime;\r\n }",
"public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"boolean isExpire(long currentTime);",
"public void setExpirationDate(java.util.Date value);",
"protected void scheduleExpiry()\n {\n long dtExpiry = 0L;\n int cDelay = OldOldCache.this.m_cExpiryDelay;\n if (cDelay > 0)\n {\n dtExpiry = getSafeTimeMillis() + cDelay;\n }\n setExpiryMillis(dtExpiry);\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"public void timerExpired(int timerIndex) {\n switch(myState) {\n case (Init):\n {\n if (timerIndex == FINALDELETE_TIMER_INDEX) {\n }\n }\n break;\n case (NoPayload_Recover):\n {\n }\n break;\n case (NoPayload_NoRecover):\n {\n if (timerIndex == REC_TIMER_INDEX) {\n }\n }\n break;\n case (WaitforPayload):\n {\n if (timerIndex == NACK_TIMER_INDEX) {\n if (neighboraddress != null) {\n sendToNode(NACK_SYNC, neighboraddress);\n }\n messageStore.setTimer(this, NACK_TIMER_INDEX, timeout_NACK);\n } else if (timerIndex == MAXNACK_TIMER_INDEX) {\n myState = NoPayload_Recover;\n }\n }\n break;\n case (HavePayload):\n {\n if (timerIndex == DELETE_TIMER_INDEX) {\n }\n }\n break;\n }\n }",
"@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"private synchronized void expireTimeout\n\t\t(Timer theTimer,\n\t\t JobFrontendRef theJobFrontend)\n\t\tthrows IOException\n\t\t{\n\t\tif (theTimer.isTriggered())\n\t\t\t{\n\t\t\tJobInfo jobinfo = getJobInfo (theJobFrontend);\n\t\t\tdoCancelJob\n\t\t\t\t(System.currentTimeMillis(),\n\t\t\t\t jobinfo,\n\t\t\t\t \"Job frontend lease expired\");\n\t\t\t}\n\t\t}",
"public Builder clearExpirationDate() {\n bitField0_ &= ~0x00000020;\n expirationDate_ = 0L;\n onChanged();\n return this;\n }",
"public void setTrialExpirationDate(java.util.Calendar trialExpirationDate) {\n this.trialExpirationDate = trialExpirationDate;\n }",
"public void setExpiredSessions(long expiredSessions);",
"public Builder clearExpirationDate() {\n bitField0_ = (bitField0_ & ~0x00000200);\n expirationDate_ = 0L;\n\n return this;\n }",
"public void setNonSubscribeTimeout(int timeout) {\n super.setNonSubscribeTimeout(timeout);\n }",
"public boolean isExpired() {\n return getExpiration() <= System.currentTimeMillis() / 1000L;\n }",
"public Builder setExpiryTimeSecs(int value) {\n bitField0_ |= 0x00000008;\n expiryTimeSecs_ = value;\n onChanged();\n return this;\n }",
"boolean hasExpiryTimeSecs();",
"private boolean hasCoolOffPeriodExpired(Jwt jwt) {\n\n Date issuedAtTime = jwt.getClaimsSet().getIssuedAtTime();\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.set(Calendar.MILLISECOND, 0);\n calendar.add(Calendar.MINUTE, -1);\n\n return calendar.getTime().compareTo(issuedAtTime) > 0;\n }",
"public boolean hasExchangeTime() {\n return exchangeTime_ != null;\n }",
"boolean checkForExpiration() {\n boolean expired = false;\n\n // check if lease exists and lease expire is not MAX_VALUE\n if (leaseId > -1 && leaseExpireTime < Long.MAX_VALUE) {\n\n long currentTime = getCurrentTime();\n if (currentTime > leaseExpireTime) {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[checkForExpiration] Expiring token at {}: {}\",\n currentTime, this);\n }\n noteExpiredLease();\n basicReleaseLock();\n expired = true;\n }\n }\n\n return expired;\n }",
"public void setIsExtentExpiration(boolean value) {\n this.isExtentExpiration = value;\n }",
"public boolean checkTimeout(){\n\t\tif((System.currentTimeMillis()-this.activeTime.getTime())/1000 >= this.expire){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@Override\n public synchronized void enableIfPossible() {\n if (!enabled && analyticNotificationConfig != null) {\n if (lastNotificationTimeMs == null) {\n reset();\n\n } else {\n // See if we should resume notifications.\n if (analyticNotificationConfig.getResumeAfter() != null) {\n final Instant resumeTime = SimpleDurationUtil.plus(\n lastNotificationTimeMs,\n analyticNotificationConfig.getResumeAfter());\n final Instant now = Instant.now();\n if (now.isAfter(resumeTime)) {\n reset();\n }\n }\n }\n }\n }",
"public int getExpiryTime() {\n return expiryTime;\n }",
"public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"public Date getExpirationDate() {\r\n return expirationDate;\r\n }",
"long getExpirationDate();",
"@Override\n\tpublic long getTokenExpiryTime() {\n\t\treturn 0;\n\t}",
"public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public void setExpirationDate(String expirationDate) {\r\n\t\tthis.expirationDate = expirationDate;\r\n\t}",
"private static void setTimerForTokenRenewal(\n DelegationTokenToRenew token, boolean firstTime) {\n \n // calculate timer time\n long now = System.currentTimeMillis();\n long renewIn;\n if(firstTime) {\n renewIn = now;\n } else {\n long expiresIn = (token.expirationDate - now); \n renewIn = now + expiresIn - expiresIn/10; // little before expiration\n }\n \n try {\n // need to create new timer every time\n TimerTask tTask = new RenewalTimerTask(token);\n token.setTimerTask(tTask); // keep reference to the timer\n\n renewalTimer.schedule(token.timerTask, new Date(renewIn));\n } catch (Exception e) {\n LOG.warn(\"failed to schedule a task, token will not renew more\", e);\n }\n }",
"public boolean hasExchangeTime() {\n return exchangeTimeBuilder_ != null || exchangeTime_ != null;\n }",
"private void expire()\n\t{\n\t\tif (m_expire != 0 && m_timeExp < System.currentTimeMillis())\n\t\t{\n\t\t//\tSystem.out.println (\"------------ Expired: \" + getName() + \" --------------------\");\n\t\t\treset();\n\t\t}\n\t}",
"public java.util.Date getExpireTime() {\r\n return expireTime;\r\n }",
"public final String getRequestExpiration() {\n return properties.get(REQUEST_EXPIRATION_PROPERTY);\n }",
"public void setRetentionExpiryDateTime(long expires) {\n\t\t\n\t\t// Check if the retention date/time has changed\n\t\t\n\t\tif ( getRetentionExpiryDateTime() != expires) {\n\t\t\t\n\t\t\t// Update the retention date/time\n\t\t\t\n\t\t\tsuper.setRetentionExpiryDateTime(expires);\n\t\t\t\n\t\t\t// Queue a low priority state update\n\t\t\t\n\t\t\tqueueLowPriorityUpdate( UpdateRetentionExpire);\n\t\t}\n\t}",
"public void setExpirationDate(java.util.Date expirationDate) {\n this.expirationDate = expirationDate;\n }",
"protected final Date getExpirationDate() {\n Session currentSession = sessionTracker.getOpenSession();\n return (currentSession != null) ? currentSession.getExpirationDate() : null;\n }",
"public void setConsumerTime(java.lang.Long value) {\n this.consumer_time = value;\n }",
"@Override\n\tpublic void setHealSessionInterval(long arg0) {\n\n\t}",
"public Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes() {\n return this.innerProperties() == null\n ? null\n : this.innerProperties().trafficRestorationTimeToHealedOrNewEndpointsInMinutes();\n }",
"public void setExpirationDate(Date expirationDate) {\n\t\tthis.expirationDate = expirationDate;\n\t}",
"public void setExpirationDate(Date expirationDate) {\n\t\tthis.expirationDate = expirationDate;\n\t}",
"public Builder setExchangeTime(hr.client.appuser.CouponCenter.TimeRange value) {\n if (exchangeTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n exchangeTime_ = value;\n onChanged();\n } else {\n exchangeTimeBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public DateTime expiryTime() {\n return this.expiryTime;\n }",
"public void setExpirationDateType(ExpirationDateType aExpirationDateType) {\n expirationDateType = aExpirationDateType;\n }",
"private \n void setTimerForTokenRenewal(DelegationTokenToRenew token, \n boolean firstTime) throws IOException {\n \n // calculate timer time\n long now = System.currentTimeMillis();\n long renewIn;\n if(firstTime) {\n renewIn = now;\n } else {\n long expiresIn = (token.expirationDate - now); \n renewIn = now + expiresIn - expiresIn/10; // little bit before the expiration\n }\n \n // need to create new task every time\n TimerTask tTask = new RenewalTimerTask(token);\n token.setTimerTask(tTask); // keep reference to the timer\n\n renewalTimer.schedule(token.timerTask, new Date(renewIn));\n }",
"LocalDateTime getExpiration(K key);",
"@java.lang.Override\n public long getExpirationDate() {\n return expirationDate_;\n }",
"void clearMessageDeliveryExpiration(List<String> msgIds);"
] | [
"0.8034287",
"0.78619653",
"0.70023924",
"0.6475804",
"0.59410685",
"0.5777547",
"0.5574301",
"0.5493968",
"0.543462",
"0.5363369",
"0.53580284",
"0.53204185",
"0.52734584",
"0.5262641",
"0.5253698",
"0.51931614",
"0.5169007",
"0.51659125",
"0.5152606",
"0.5135058",
"0.5135032",
"0.5099907",
"0.50933826",
"0.5083248",
"0.5066271",
"0.50160086",
"0.49734092",
"0.49594533",
"0.49570927",
"0.49515226",
"0.4949972",
"0.49362278",
"0.4881772",
"0.48785442",
"0.48382512",
"0.48346826",
"0.48323566",
"0.48307538",
"0.48264584",
"0.48259988",
"0.48221567",
"0.48216125",
"0.480175",
"0.4800684",
"0.47904858",
"0.47890666",
"0.47860774",
"0.47843716",
"0.47809377",
"0.47803012",
"0.4769029",
"0.47670153",
"0.47594082",
"0.47553238",
"0.47526988",
"0.47477737",
"0.47376397",
"0.47363588",
"0.47301805",
"0.4728452",
"0.47265413",
"0.47244656",
"0.4720764",
"0.47180307",
"0.47166836",
"0.4713259",
"0.47112888",
"0.4709956",
"0.47086895",
"0.4707125",
"0.4706428",
"0.47027412",
"0.46995732",
"0.4692542",
"0.4682295",
"0.46765646",
"0.46745494",
"0.46696708",
"0.466621",
"0.46535677",
"0.46515378",
"0.46486428",
"0.4646227",
"0.46318254",
"0.46283606",
"0.46200603",
"0.46141344",
"0.46133664",
"0.46133587",
"0.46060717",
"0.4605838",
"0.46054488",
"0.46054488",
"0.46051744",
"0.45955744",
"0.45948857",
"0.4591174",
"0.45910907",
"0.45873863",
"0.45863917"
] | 0.6355796 | 4 |
The stage of the EventChannel definition allowing to specify filter. | interface WithFilter {
/**
* Specifies the filter property: Information about the filter for the event channel..
*
* @param filter Information about the filter for the event channel.
* @return the next definition stage.
*/
WithCreate withFilter(EventChannelFilter filter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"EventChannelFilter filter();",
"Update withFilter(EventChannelFilter filter);",
"WithCreate withFilter(EventChannelFilter filter);",
"@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();",
"void filterChanged(Filter filter);",
"EventChannel apply();",
"@Override\n\tpublic void filterChange() {\n\t\t\n\t}",
"private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}",
"public String getFilterCondition() {\n return filterCondition;\n }",
"Filter getFilter();",
"public String getFilter() {\n\t\treturn filter;\n\t}",
"public Expression getFilter() {\n return this.filter;\n }",
"public LSPFilter getFilter () {\r\n return filter;\r\n }",
"public abstract INexusFilterDescriptor getFilterDescriptor();",
"@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);",
"FeedbackFilter getFilter();",
"public String getFilter();",
"public Filter condition();",
"public void addFilter ( ChannelKey channelKey )\n throws SystemException, CommunicationException, AuthorizationException, DataValidationException\n {\n }",
"@Override public Filter getFilter() { return null; }",
"String getFilterName();",
"BuildFilter defaultFilter();",
"void onFilterChanged(ArticleFilter filter);",
"public String getFilter()\n {\n return encryptionDictionary.getNameAsString( COSName.FILTER );\n }",
"public Filter () {\n\t\tsuper();\n\t}",
"@Override\n\tpublic String name() {\n\t\treturn filter.name();\n\t}",
"@Override\n public int filterOrder() {\n return 1;\n }",
"@Override\n public int filterOrder() {\n return 1;\n }",
"FilterCondition createFilterCondition(int clueNum);",
"public interface FilterChain {\n\n // execute current filter's onEntry\n void onEntry(FilterContext ctx) throws SoaException;\n\n // execute current filter's onExit\n void onExit(FilterContext ctx)throws SoaException;\n\n\n}",
"public PipelineFilter()\n {\n }",
"public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }",
"public Element getFilterElement() {\n\t\tElement result = new Element(TAG_FILTER);\n\t\t\n\t\tElement desc = new Element(TAG_DESCRIPTION);\n\t\tdesc.setText(this.description);\n\t\tresult.addContent(desc);\n\t\t\n\t\tElement logdata = new Element(TAG_LOGDATA);\n\t\tlogdata.setText(\"\" + this.logData);\n\t\tresult.addContent(logdata);\n\t\t\n\t\tElement accepted = new Element(TAG_ACCEPTEDTYPES);\n\t\tif (acceptedEventTypes != null) {\n\t\t Set<String> keys = acceptedEventTypes.keySet();\n\t\t\t// sort output by event type name\n\t\t\tLinkedList<String> sortedKeyList = new LinkedList<String>(keys);\n\t\t\tCollections.sort(sortedKeyList);\n\t\t\tfor (String key : sortedKeyList) {\n\t\t\t\t// only save event types which are actually set for logging\n\t\t\t\tif (getEventTypePriority(key) != PRIORITY_OFF) {\n\t\t\t\t\tElement type = new Element(TAG_CLASS);\n\t\t\t\t\ttype.setText(key);\n\t\t\t\t\ttype.setAttribute(TAG_PRIORITY, \"\" + getEventTypePriorityString(key));\n\t\t\t\t\taccepted.addContent(type);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tresult.addContent(accepted);\n\t\t\n\t\treturn result;\n\t}",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}",
"void setFilter(Filter f);",
"protected void ACTION_B_FILTER(ActionEvent e) {\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif(RB_FILTER_ENABLE.isSelected())\r\n\t\t\t{\r\n\t\t\t\tif(RB_PORT_HTTP.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"ip and tcp\", true);\r\n\t\t\t\t}\r\n\t\t\t\telse if(RB_PORT_DNS.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"udp dst port 53\", true);\r\n\t\t\t\t}else if(RB_PORT_SMTP.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"smtp dst port 25\", true);\r\n\t\t\t\t}else if(RB_PORT_SSL.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"port 443\", true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Filtering is Disabled\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e2) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(e2);\r\n\t\t}\r\n\t\t\r\n\t}",
"String getFilter();",
"void sendFilterState(FilterState filterState);",
"public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}",
"public Filter getFilterComponent()\n {\n return filterComponent;\n }",
"@Override\n\tpublic String filterType() {\n\t\treturn FilterConstants.PRE_TYPE;\n\t}",
"public Filter getFilter() {\n\t\treturn (filter);\n\t}",
"public void setFilter(Expression filter) {\n this.filter = filter;\n }",
"public void addFilter(MessageFilter filter);",
"public PreOauth2SSOGatewayFilter() {\n super(Config.class);\n }",
"public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}",
"FeatureHolder filter(FeatureFilter filter);",
"public ExtensionFilter getFilter () {\n return this.filter;\n }",
"void onEntry(FilterContext ctx) throws SoaException;",
"public BsonDocument getFilter() {\n return filter;\n }",
"EventChannel apply(Context context);",
"FilterInfo setCanaryFilter(String filter_id, int revision);",
"@Override\n public Filter getFilter() {\n return scenarioListFilter;\n }",
"@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\tSystem.out.println(\"╔˙│╔filter\");\n\t}",
"public java.lang.String getFilter() {\n return filter;\n }",
"public LogFilter() {}",
"public void addBusinessFilterToParentLayer(ViewerFilter filter);",
"public String getFilter() {\n\t\treturn(\"PASS\");\n\t}",
"java.lang.String getFilter();",
"@Override\n public void init(FilterConfig config) {\n }",
"@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}",
"public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }",
"public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }",
"public void setFilter(EntityFilter filter);",
"B filteringMode(FilteringMode filteringMode);",
"public VCFFilterHeaderLine(final String name) {\n super(\"FILTER\", name, name);\n }",
"FilterInfo setFilterActive(String filter_id, int revision) throws Exception;",
"@Override\r\n\tpublic NotificationFilter getFilter() {\n\t\treturn super.getFilter();\r\n\t}",
"public void addFilterToParentLayer(ViewerFilter filter);",
"@Override\n public void accept(OrcFilterContext batch) {\n }",
"public void addBusinessFilterToParentModule(ViewerFilter filter);",
"EventChannelSource source();",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"public FilterConfig getFilterConfig() {\r\n return config;\r\n }",
"@Override\n\t public String filterType() {\n\t return \"pre\";\n\t }",
"@Override\n\tpublic void init(FilterConfig filterConfig) {\n\n\t}",
"@Override\n public void init(final FilterConfig filterConfig) {\n Misc.log(\"Request\", \"initialized\");\n }",
"@Override\n\tpublic void attachFilter(ConfigContext ctx, Entity entity) {\n\t}",
"@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\r\n\t\tSystem.out.println(\"[\" + Calendar.getInstance().getTime() + \"] Iniciando filter\");\r\n\t}",
"@Override//过滤器类型 pre 表示在请求之前\r\n\tpublic String filterType() {\n\t\treturn \"pre\";\r\n\t}",
"@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }",
"public void testPublish_WithFilter() {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n h.setFilter(new MockFilter());\n\n LogRecord r = new LogRecord(Level.INFO, \"testPublish_WithFilter\");\n h.setLevel(Level.INFO);\n h.publish(r);\n h.flush();\n assertEquals(\"\", aos.toString());\n assertSame(r, CallVerificationStack.getInstance().pop());\n\n h.setLevel(Level.WARNING);\n h.publish(r);\n h.flush();\n assertEquals(\"\", aos.toString());\n assertTrue(CallVerificationStack.getInstance().empty());\n\n h.setLevel(Level.CONFIG);\n h.publish(r);\n h.flush();\n assertEquals(\"\", aos.toString());\n assertSame(r, CallVerificationStack.getInstance().pop());\n\n r.setLevel(Level.OFF);\n h.setLevel(Level.OFF);\n h.publish(r);\n h.flush();\n assertEquals(\"\", aos.toString());\n assertTrue(CallVerificationStack.getInstance().empty());\n }",
"public int getFilterMode(){ return mFilterMode;}",
"public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration,\r\n @Local\r\n RequestFilter filter)\r\n {\r\n // Each contribution to an ordered configuration has a name, When necessary, you may\r\n // set constraints to precisely control the invocation order of the contributed filter\r\n // within the pipeline.\r\n\r\n configuration.add(\"Timing\", filter);\r\n }",
"public interface IsFilterLevel\n {\n /**\n * offline\n */\n String UN_FILTER = \"0\";\n\n /**\n * online\n */\n String FILTER = \"1\";\n }",
"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }",
"@Override\n\tpublic void filterClick() {\n\t\t\n\t}",
"@Override\n public IntentFilter observerFilter() {\n IntentFilter filter = new IntentFilter();\n filter.addAction(ChannelDatabaseManager.STORE_ANNOUNCEMENT);\n return filter;\n }",
"public void addBusinessFilterToCreator(ViewerFilter filter);",
"public void onBeforeLayerAction(AGActivityLayerInterface filter, int action);",
"public String getFilterId() {\n return this.filterId;\n }",
"@Override\n\tpublic void init(FilterConfig fConfig) throws ServletException {\n\t}",
"void setFilter(String filter);",
"public static interface Filter\n\t\t{\n\t\t/**\n\t\t * Accept a frame? if false then all particles will be discarded\n\t\t */\n\t\tpublic boolean acceptFrame(EvDecimal frame);\n\t\t\n\t\t/**\n\t\t * Accept a particle?\n\t\t */\n\t\tpublic boolean acceptParticle(int id, ParticleInfo info);\n\t\t}",
"@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}",
"@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}",
"@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}"
] | [
"0.7023946",
"0.7010709",
"0.64332384",
"0.6364934",
"0.5942372",
"0.59144926",
"0.5677155",
"0.5662555",
"0.56602657",
"0.56524986",
"0.5612101",
"0.5556169",
"0.5503108",
"0.5499396",
"0.5486048",
"0.54753244",
"0.54642266",
"0.5448637",
"0.5440697",
"0.53797805",
"0.5359916",
"0.5353629",
"0.5348907",
"0.53294617",
"0.53239024",
"0.5307563",
"0.5300919",
"0.5289118",
"0.5289118",
"0.52724344",
"0.52635646",
"0.526184",
"0.52536225",
"0.52375823",
"0.52367586",
"0.52325636",
"0.5227631",
"0.5224376",
"0.5221841",
"0.5198057",
"0.51967555",
"0.5163099",
"0.5162947",
"0.51552606",
"0.515002",
"0.51471764",
"0.5142616",
"0.51389647",
"0.51366115",
"0.51340044",
"0.5122845",
"0.51193553",
"0.5116661",
"0.51150036",
"0.51074076",
"0.5100736",
"0.5099436",
"0.50957227",
"0.5090158",
"0.5089706",
"0.50865865",
"0.50814635",
"0.5078575",
"0.5078575",
"0.50771546",
"0.50648516",
"0.50612324",
"0.5055266",
"0.5026332",
"0.5024833",
"0.5024363",
"0.50178576",
"0.50131166",
"0.49929303",
"0.498939",
"0.49889493",
"0.4986386",
"0.49701038",
"0.49660832",
"0.49658203",
"0.496368",
"0.49606705",
"0.49584016",
"0.49546894",
"0.49458438",
"0.49447086",
"0.4939988",
"0.49342415",
"0.49312147",
"0.49284047",
"0.49163496",
"0.4913781",
"0.4912907",
"0.49101028",
"0.49087927",
"0.4904192",
"0.49036783",
"0.48937333",
"0.48937333",
"0.48937333"
] | 0.7072349 | 0 |
Specifies the filter property: Information about the filter for the event channel.. | WithCreate withFilter(EventChannelFilter filter); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannelFilter filter();",
"public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}",
"public String getFilter() {\n\t\treturn filter;\n\t}",
"@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();",
"public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}",
"Update withFilter(EventChannelFilter filter);",
"public void setFilter(Expression filter) {\n this.filter = filter;\n }",
"void filterChanged(Filter filter);",
"void setFilter(Filter f);",
"Filter getFilter();",
"public java.lang.String getFilter() {\n return filter;\n }",
"public LSPFilter getFilter () {\r\n return filter;\r\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"@Override\r\n\tpublic NotificationFilter getFilter() {\n\t\treturn super.getFilter();\r\n\t}",
"public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }",
"@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);",
"void setFilter(String filter);",
"FeedbackFilter getFilter();",
"public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }",
"public Expression getFilter() {\n return this.filter;\n }",
"public String getFilter();",
"public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}",
"public String getFilter()\n {\n return encryptionDictionary.getNameAsString( COSName.FILTER );\n }",
"public Filter getFilter() {\n\t\treturn (filter);\n\t}",
"public void setFilter(String filter)\n {\n encryptionDictionary.setItem( COSName.FILTER, COSName.getPDFName( filter ) );\n }",
"public String getFilterCondition() {\n return filterCondition;\n }",
"void setFilter(final PropertiedObjectFilter<O> filter);",
"@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }",
"public Filter getFilterComponent()\n {\n return filterComponent;\n }",
"public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }",
"public void setFilter(EntityFilter filter);",
"public void setContactFilter(Filter filter);",
"@Override\n\tpublic List<PropertyFilter> buildPropertyFilter(CcNoticereceive entity) {\n\t\treturn null;\n\t}",
"public void setEdgeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tedgeAttributeFilter = filter;\n \t}",
"String getFilter();",
"public BsonDocument getFilter() {\n return filter;\n }",
"@Override public Filter getFilter() { return null; }",
"public int getFilterMode(){ return mFilterMode;}",
"void onFilterChanged(ArticleFilter filter);",
"public ExtensionFilter getFilter () {\n return this.filter;\n }",
"java.lang.String getFilter();",
"public String getFilterId() {\n return this.filterId;\n }",
"public void setFilterExpression(Expression filterExpr) {\n\t\tthis.filterExpr = filterExpr;\n\t}",
"public ImageFilter getFilter() {\r\n\t\treturn filter;\r\n\t}",
"public void setFilter(Object[] filter) {\n nativeSetFilter(filter);\n }",
"public Filter (Filter filter) {\n this.name = filter.name;\n this.type = filter.type;\n this.pred = new FilterPred(filter.pred);\n this.enabled = filter.enabled;\n }",
"@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }",
"public List setFilter(java.lang.String filter) {\n this.filter = filter;\n return this;\n }",
"@Override\n\tpublic void filterChange() {\n\t\t\n\t}",
"public void setVideoDisplayFilter(String filtername);",
"void setSampleFiltering(boolean filterFlag, float cutoffFreq) {\n }",
"FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);",
"String getFilterName();",
"public void addFilterToComboRO(ViewerFilter filter);",
"public void addFilter(MessageFilter filter);",
"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public void changeFilterMode(int filter) {\n mNewFilter = filter;\n }",
"@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}",
"public Filter () {\n\t\tsuper();\n\t}",
"public void addFilterToCombo(ViewerFilter filter);",
"PropertiedObjectFilter<O> getFilter();",
"public void setFilterDateProperty(String filterDateProperty) {\n\n\t\tthis.filterDateProperty = filterDateProperty;\n\t}",
"public String getUserFilter()\n {\n return this.userFilter;\n }",
"public abstract INexusFilterDescriptor getFilterDescriptor();",
"public void setFilters(List<COSName> filters) {\n/* 333 */ COSArray cOSArray = COSArrayList.converterToCOSArray(filters);\n/* 334 */ this.stream.setItem(COSName.FILTER, (COSBase)cOSArray);\n/* */ }",
"public void setFilters(List<COSName> filters)\n {\n stream.setItem(COSName.FILTER, new COSArray(filters));\n }",
"@Override\n\t\t\tpublic void setColorFilter(ColorFilter cf) {\n\t\t\t\t\n\t\t\t}",
"public void setFilter(Filter.Statement filter) {\n this.setFilter(filter.toArray());\n }",
"@Override\r\n\t\tpublic void setColorFilter(ColorFilter cf)\r\n\t\t{\n\t\t\t\r\n\t\t}",
"public Boolean filterEnabled() {\n return this.filterEnabled;\n }",
"@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }",
"public Map<String, Filter> getFilters() {\n return filters;\n }",
"public void addFilterToAttributes(ViewerFilter filter);",
"public void addFilter ( ChannelKey channelKey )\n throws SystemException, CommunicationException, AuthorizationException, DataValidationException\n {\n }",
"@Override\n public Filter getFilter() {\n return scenarioListFilter;\n }",
"FilterInfo setCanaryFilter(String filter_id, int revision);",
"public void setEchoCancellerFilterName(String filtername);",
"public FileFilter() {\n this.filterExpression = \"\";\n }",
"public FilterWidget( String initalFilter )\n {\n this.initalFilter = initalFilter;\n }",
"com.google.protobuf.ByteString\n getFilterBytes();",
"public String getFilter() {\n\t\treturn url.getFilter();\n }",
"public void setFilterTo(LocalTime filterTo) {\n this.filterTo = filterTo;\n }",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public Filter [] getFilters() {\n return this.Filters;\n }",
"public Filter [] getFilters() {\n return this.Filters;\n }",
"@Override\n\tpublic void setColorFilter(ColorFilter cf) {\n\n\t}",
"public boolean getMayFilter () {\n\treturn mayFilter;\n }",
"protected void setQueryFilter(CalendarFilter filter) {\n this.queryFilter = filter;\n }",
"private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}",
"public String getFilter() {\n\t\treturn(\"PASS\");\n\t}",
"public void setFilterId(String filterId) {\n this.filterId = filterId;\n }",
"private FormatFilter(final Function<ImageReaderWriterSpi, String[]> property) {\n this.property = property;\n }",
"public Input filterBy(Filter filter) {\n JsonArray filters = definition.getArray(FILTERS);\n if (filters == null) {\n filters = new JsonArray();\n definition.putArray(FILTERS, filters);\n }\n filters.add(Serializer.serialize(filter));\n return this;\n }"
] | [
"0.7232725",
"0.7028511",
"0.69821",
"0.69793296",
"0.6783064",
"0.6723929",
"0.66785157",
"0.6641674",
"0.6613545",
"0.6581056",
"0.65558285",
"0.6553138",
"0.6526934",
"0.65175956",
"0.6505079",
"0.6472917",
"0.6446828",
"0.64387953",
"0.6431804",
"0.64080805",
"0.63643104",
"0.6320746",
"0.6275335",
"0.6274846",
"0.6270549",
"0.62489325",
"0.6214979",
"0.62113494",
"0.61948997",
"0.6189989",
"0.6159093",
"0.61496127",
"0.613099",
"0.61209625",
"0.60963714",
"0.6091896",
"0.6050593",
"0.6025329",
"0.6017959",
"0.6017698",
"0.59952474",
"0.59919816",
"0.59915084",
"0.59788066",
"0.59777683",
"0.59526545",
"0.59458417",
"0.59377486",
"0.593357",
"0.5912278",
"0.5902295",
"0.58819836",
"0.5881373",
"0.58430207",
"0.5831422",
"0.5805848",
"0.5801123",
"0.5801123",
"0.5801123",
"0.5801123",
"0.5789843",
"0.57814014",
"0.57814014",
"0.5778008",
"0.57605594",
"0.57600546",
"0.5756877",
"0.5756644",
"0.5749197",
"0.574428",
"0.5733629",
"0.5725064",
"0.5720189",
"0.5701903",
"0.5699893",
"0.56989765",
"0.5697523",
"0.56841797",
"0.56716686",
"0.5669099",
"0.56551385",
"0.56523937",
"0.563861",
"0.5626996",
"0.5606756",
"0.5597126",
"0.55883205",
"0.5581512",
"0.5581512",
"0.5581512",
"0.5569655",
"0.5569655",
"0.5564417",
"0.55617553",
"0.55613106",
"0.55423063",
"0.55421495",
"0.5539751",
"0.5537963",
"0.55375814"
] | 0.62185526 | 26 |
The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. | interface WithPartnerTopicFriendlyDescription {
/**
* Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be
* set by the publisher/partner to show custom description for the customer partner topic. This will be
* helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..
*
* @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the
* publisher/partner to show custom description for the customer partner topic. This will be helpful to
* remove any ambiguity of the origin of creation of the partner topic for the customer.
* @return the next definition stage.
*/
WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"String partnerTopicFriendlyDescription();",
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setStageDescription(String stageDescription) {\n this.stageDescription = stageDescription;\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public String getStageDescription() {\n return stageDescription;\n }",
"@Override\n public String getDescription() {\n return \"Publish exchange offer\";\n }",
"public String getPartnerName() {\n\t\treturn partnerName;\n\t}",
"void onLocalDescriptionCreatedAndSet(SessionDescriptionType type, String description);",
"PartnerTopicReadinessState partnerTopicReadinessState();",
"public String getPartner() {\n return partner;\n }",
"public String getPartner() {\n return partner;\n }",
"@Override\r\n\tpublic void buildPart2() {\n\t\tproduct.setPart2(\"ASPEC2\");\r\n\t}",
"private String makeEventDescription(String description) {\n return \"DESCRIPTION:\" + description + \"\\n\";\n }",
"public String getPartner() {\r\n return (String) getAttributeInternal(PARTNER);\r\n }",
"protected Element myPlnk(){\n\t\treturn el(\"bpws:partnerLink\", new Node[]{\n\t\t\t\tattr(\"partnerLinkType\", \"nswomo:evtrcvType\"),\n\t\t\t\tattr(\"name\", PLNKNAME),\n\t\t\t\tattr(\"partnerRole\", \"service\")\n\t\t});\n\t}",
"@Override\n\tpublic void channelParted(String channel) {\n\t}",
"public String getEventDescription() {\n\t\treturn description;\n\t}",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"@Override\n\tpublic void buildPartB() {\n\t\tproduct.add(\"部件Y\");\n\t}",
"public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\r\n }",
"public String getPartyLifecycleRequiredDocumentation() {\n return partyLifecycleRequiredDocumentation;\n }",
"@ApiModelProperty(value = \"The event long description\")\n public String getDescription() {\n return description;\n }",
"Builder addDetailedDescription(String value);",
"@Override\r\n\tpublic void showPartner() {\n\t\tSystem.out.println(\"你的情侣是: \"+partner);\r\n\t}",
"@Override\n\tpublic void buildPartA() {\n\t\tproduct.add(\"部件X\");\n\t}",
"public void setEventDescription(String newDesc) {\n\t\tthis.description = newDesc;\n\t}",
"protected void onPart(String channel, String sender, String login, String hostname) {}",
"WithCreate withDestination(EventChannelDestination destination);",
"public void onTopicEvent(Topic.CommInfrastructure commType, String topic, String event);",
"@Override\n public String getDescription() {\n return \"Hub terminal announcement\";\n }",
"private String getChosenSecondaryEvent()\n {\n return chosenEvent;\n }",
"public String getPartDesc(){\n\t\treturn partDesc;\n\t}",
"public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);",
"public void partChannel(String channel, String reason);",
"public String descriptor() {\n\t\treturn \"edge\";\n\t}",
"interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }",
"@Override\n public String getDescription() {\n return \"Poll creation\";\n }",
"private ConfigPartDescribe(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Override\r\n\tpublic void addPartner(String name) {\n\t\tpartner = partner.concat(\" \"+name);\r\n\t}",
"void onRemoteDescriptionSet();",
"public String getEventTypeDescription()\n {\n return eventTypeDescription;\n }",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }",
"public String getTopic() {\r\n return null;\r\n }",
"interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }",
"public interface Notice extends Event\n\t{\n\t\tpublic static final String TOPIC_ID = \"aether.notice.topic.id\";\n\t}",
"@Override\n\tpublic String getDescription() {\n\t\treturn \"correlation window encoder, window=\" + window_;\n\t}",
"public void setPartDesc(String partDesc){\n\t\t // store into the instance variable partDesc (i.e. this.partDesc) the value of the parameter partDesc\n\t\tthis.partDesc = partDesc;\n\t}",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_esfTournament.setDescription(description);\n\t}",
"@Override\n public String toString() {\n return \"(name=\" + name +\n \", topic=\" + topic +\n \", deadline=\" + deadline +\")\" ;\n\n }",
"@Override\n\tpublic EventMessage initPlugEventMessage() {\n\t\treturn null;\n\t}",
"public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }",
"public String partnerNodeId() {\n return this.partnerNodeId;\n }",
"public Edge partner(){\n\t\treturn partner;\n\t}",
"protected void onTopic(String channel, String topic, String setBy, long date, boolean changed) {}",
"public ChannelDetails() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"void onPart(String partedNick);",
"public abstract interface ObjectDetailSettingsListener\n extends EventListener\n{\n public static final Topic<ObjectDetailSettingsListener> TOPIC = Topic.create(\"Object Detail Settings\", ObjectDetailSettingsListener.class);\n\n public abstract void displayDetailsChanged();\n}",
"@Override\n public String getDescription() {\n return \"Arbitrary message\";\n }",
"public void setPartnerId(String partnerId) {\n\t\tmPartnerId = partnerId;\n\t}",
"public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }",
"public String getPartnerid() {\n return partnerid;\n }",
"public interface WorkdayEndpointConsumerBuilder\n extends\n EndpointConsumerBuilder {\n default AdvancedWorkdayEndpointConsumerBuilder advanced() {\n return (AdvancedWorkdayEndpointConsumerBuilder) this;\n }\n /**\n * Allows for bridging the consumer to the Camel routing Error Handler,\n * which mean any exceptions occurred while the consumer is trying to\n * pickup incoming messages, or the likes, will now be processed as a\n * message and handled by the routing Error Handler. By default the\n * consumer will use the org.apache.camel.spi.ExceptionHandler to deal\n * with exceptions, that will be logged at WARN or ERROR level and\n * ignored.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: consumer\n */\n default WorkdayEndpointConsumerBuilder bridgeErrorHandler(\n boolean bridgeErrorHandler) {\n doSetProperty(\"bridgeErrorHandler\", bridgeErrorHandler);\n return this;\n }\n /**\n * Allows for bridging the consumer to the Camel routing Error Handler,\n * which mean any exceptions occurred while the consumer is trying to\n * pickup incoming messages, or the likes, will now be processed as a\n * message and handled by the routing Error Handler. By default the\n * consumer will use the org.apache.camel.spi.ExceptionHandler to deal\n * with exceptions, that will be logged at WARN or ERROR level and\n * ignored.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: consumer\n */\n default WorkdayEndpointConsumerBuilder bridgeErrorHandler(\n String bridgeErrorHandler) {\n doSetProperty(\"bridgeErrorHandler\", bridgeErrorHandler);\n return this;\n }\n /**\n * Workday Report as a service output format.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Group: format\n */\n default WorkdayEndpointConsumerBuilder format(String format) {\n doSetProperty(\"format\", format);\n return this;\n }\n /**\n * Workday Host name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: host\n */\n default WorkdayEndpointConsumerBuilder host(String host) {\n doSetProperty(\"host\", host);\n return this;\n }\n /**\n * Workday Client Id generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointConsumerBuilder clientId(String clientId) {\n doSetProperty(\"clientId\", clientId);\n return this;\n }\n /**\n * Workday Client Secrect generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointConsumerBuilder clientSecret(String clientSecret) {\n doSetProperty(\"clientSecret\", clientSecret);\n return this;\n }\n /**\n * Workday Token Refresh generated for Integration system user.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointConsumerBuilder tokenRefresh(String tokenRefresh) {\n doSetProperty(\"tokenRefresh\", tokenRefresh);\n return this;\n }\n /**\n * Workday Tenant name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: tenant\n */\n default WorkdayEndpointConsumerBuilder tenant(String tenant) {\n doSetProperty(\"tenant\", tenant);\n return this;\n }\n }",
"@Override\r\n\tpublic void buildPart1() {\n\t\tproduct.setPart1(\"ASPEC1\");\r\n\t}",
"public ServerScheduledEventBuilder setDescription(String description) {\n delegate.setDescription(description);\n return this;\n }",
"@Override\r\n\tpublic String getActivity_channel() {\n\t\treturn super.getActivity_channel();\r\n\t}",
"public void handleEvent(PlayerEntered event) {\r\n if( isEnabled )\r\n m_botAction.sendPrivateMessage(event.getPlayerName(), \"Autopilot is engaged. PM !info to me to see how *YOU* can control me. (Type :\" + m_botAction.getBotName() + \":!info)\" );\r\n }",
"Builder addDescription(String value);",
"@Override\n public String getDescription() {\n return DESCRIPTION;\n }",
"private void showPropertyDescription(MouseEvent event) {\r\n\t\tPropertyDescriptionStage propertyDescriptionStage = new PropertyDescriptionStage(property);\r\n\t\tpropertyDescriptionStage.show();\r\n\t}",
"@Override\n\tpublic String getURLPath() {\n\t\treturn AMConstants.URL_SF_CASE_CREATE_CONSUMER_FEEDBACK;\n\t}",
"@Override\r\n\tpublic void BulidPartB() {\n\t\tproduct.add(\"part B\");\r\n\t}",
"public StockEvent setDescription(String description) {\n this.description = description;\n return this;\n }",
"@Override\n protected String getDescription() {\n return DESCRIPTION;\n }",
"public TechnicalSkillsContext() {\n\t\tthis.setName(VERBOSE_NAME);\n\t\taddGroup(new TechnicalSkillsContextGroup(\"Eher wenig technisch versiert\", CONTEXT_GROUP_LESS_TECHNICALLY_SKILLED));\n\t\taddGroup(new TechnicalSkillsContextGroup(\"Eher technisch versiert\", CONTEXT_GROUP_TECHNICALLY_SKILLED));\n\t}",
"public\n String getTopicBindingName() {\n return topicBindingName;\n }",
"public String getTopic() {\n return this.topic;\n }",
"public void setDescription(String description) { this.description = description; }",
"public interface AdvancedWorkdayEndpointConsumerBuilder\n extends\n EndpointConsumerBuilder {\n default WorkdayEndpointConsumerBuilder basic() {\n return (WorkdayEndpointConsumerBuilder) this;\n }\n /**\n * To let the consumer use a custom ExceptionHandler. Notice if the\n * option bridgeErrorHandler is enabled then this option is not in use.\n * By default the consumer will deal with exceptions, that will be\n * logged at WARN or ERROR level and ignored.\n * \n * The option is a: <code>org.apache.camel.spi.ExceptionHandler</code>\n * type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exceptionHandler(\n ExceptionHandler exceptionHandler) {\n doSetProperty(\"exceptionHandler\", exceptionHandler);\n return this;\n }\n /**\n * To let the consumer use a custom ExceptionHandler. Notice if the\n * option bridgeErrorHandler is enabled then this option is not in use.\n * By default the consumer will deal with exceptions, that will be\n * logged at WARN or ERROR level and ignored.\n * \n * The option will be converted to a\n * <code>org.apache.camel.spi.ExceptionHandler</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exceptionHandler(\n String exceptionHandler) {\n doSetProperty(\"exceptionHandler\", exceptionHandler);\n return this;\n }\n /**\n * Sets the exchange pattern when the consumer creates an exchange.\n * \n * The option is a: <code>org.apache.camel.ExchangePattern</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exchangePattern(\n ExchangePattern exchangePattern) {\n doSetProperty(\"exchangePattern\", exchangePattern);\n return this;\n }\n /**\n * Sets the exchange pattern when the consumer creates an exchange.\n * \n * The option will be converted to a\n * <code>org.apache.camel.ExchangePattern</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exchangePattern(\n String exchangePattern) {\n doSetProperty(\"exchangePattern\", exchangePattern);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder basicPropertyBinding(\n boolean basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder basicPropertyBinding(\n String basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option is a:\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder httpConnectionManager(\n Object httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option will be converted to a\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder httpConnectionManager(\n String httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder synchronous(\n boolean synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder synchronous(\n String synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n }",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _esfTournament.getDescription();\n\t}",
"private String getEventDescription(Event event) {\n String day = getDayDescription(event);\n String typeOfEvent = getEventType(event);\n String description = day + \" \" + typeOfEvent + event.getName();\n if (description.length() > 18) {\n return description.substring(0, 16) + \"...\";\n }\n return description;\n }",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"@Override\n public String getDescription() {\n return description;\n }",
"interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }",
"EventChannelDestination destination();",
"@Transient\n\tpublic String getPartnerId() {\n\t\treturn mPartnerId;\n\n\t}",
"@Override\n public String getDisplayName() {\n return Strings.getString(\"BuildPipelineTrigger.DisplayText\"); //$NON-NLS-1$\n }",
"public void onChannel(String channel, String title, String subtitle);",
"private void createOffer() {\n// showToast(\"createOffer\");\n Log.d(TAG, \"createOffer: \");\n sdpConstraints = new MediaConstraints();\n sdpConstraints.mandatory.add(\n new MediaConstraints.KeyValuePair(\"OfferToReceiveAudio\", \"true\"));\n sdpConstraints.mandatory.add(\n new MediaConstraints.KeyValuePair(\"OfferToReceiveVideo\", \"true\"));\n localPeer.createOffer(new CustomSdpObserver(\"localCreateOffer\") {\n @Override\n public void onCreateSuccess(SessionDescription sessionDescription) {\n super.onCreateSuccess(sessionDescription);\n localPeer.setLocalDescription(new CustomSdpObserver(\"localSetLocalDesc\"), sessionDescription);\n Log.d(TAG, \"send offer sdp emit \");\n SignallingClient.getInstance().sendOfferSdp(sessionDescription);\n }\n }, sdpConstraints);\n }",
"public abstract void createAndSetLocalDescription(SessionDescriptionType type);"
] | [
"0.6703457",
"0.65834194",
"0.6500577",
"0.5871159",
"0.56408894",
"0.5485379",
"0.52791643",
"0.5100078",
"0.49845144",
"0.49828038",
"0.49673802",
"0.49673802",
"0.4941555",
"0.4910845",
"0.4891846",
"0.48822668",
"0.4847934",
"0.48050374",
"0.47943252",
"0.47851366",
"0.47851366",
"0.4751317",
"0.47443393",
"0.4694575",
"0.46695423",
"0.46690392",
"0.45782596",
"0.4571084",
"0.45638722",
"0.4563058",
"0.45544207",
"0.45440763",
"0.45330548",
"0.45214337",
"0.4510958",
"0.4502798",
"0.45005268",
"0.44726646",
"0.44702592",
"0.44619155",
"0.4454983",
"0.44548044",
"0.44436887",
"0.44380483",
"0.44339633",
"0.4433904",
"0.4430591",
"0.44048557",
"0.43958023",
"0.4394635",
"0.43920413",
"0.43841088",
"0.43805146",
"0.43786496",
"0.43589172",
"0.4350038",
"0.43420687",
"0.43393826",
"0.4312651",
"0.42989355",
"0.42931318",
"0.4291783",
"0.42892003",
"0.4286658",
"0.42721522",
"0.42673746",
"0.42642617",
"0.4262938",
"0.4262078",
"0.42609635",
"0.42499822",
"0.42409855",
"0.42367437",
"0.42319757",
"0.4221828",
"0.42123544",
"0.4209565",
"0.4207087",
"0.4192895",
"0.41889575",
"0.4185295",
"0.41814214",
"0.41806263",
"0.4180338",
"0.4166739",
"0.4159721",
"0.41587293",
"0.41575903",
"0.41520545",
"0.41496205",
"0.41494945",
"0.41474584",
"0.4142407",
"0.41386437",
"0.41279367",
"0.41262516",
"0.4125746",
"0.41229793",
"0.4122881",
"0.4119153"
] | 0.6674637 | 1 |
Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.. | WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String partnerTopicFriendlyDescription();",
"Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"Builder addDetailedDescription(String value);",
"public void setDescription(String tmp) {\n this.description = tmp;\n }",
"public void setDescription(String tmp) {\n this.description = tmp;\n }",
"public void setDescription(String value) {\r\n this.description = value;\r\n }",
"public void setDescription(String value) {\n this.description = value;\n }",
"public Builder setCharacteristicDescription(io.dstore.values.StringValue value) {\n if (characteristicDescriptionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n characteristicDescription_ = value;\n onChanged();\n } else {\n characteristicDescriptionBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public Builder setDescription(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n description_ = value;\n onChanged();\n return this;\n }",
"void setDescription(@Nullable String pMessage);",
"public void setDescription(java.lang.String value) {\n this.description = value;\n }",
"public void setDescription(String s) {\n if (s == null && shortDescription == null) {\n return;\n }\n\n if (s == null || !s.equals(shortDescription)) {\n String oldDescrption = shortDescription;\n shortDescription = s;\n listeners.firePropertyChange(PROPERTY_DESCRIPTION, oldDescrption,\n shortDescription);\n }\n }",
"Builder addDetailedDescription(Article value);",
"public void setDescription(String value)\r\n {\r\n getSemanticObject().setProperty(swb_description, value);\r\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String desc);",
"public Builder setDescription(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public void setDescription(String desc) {\n this.desc = desc;\n }",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_lineaGastoCategoria.setDescription(description);\n\t}",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public maestro.payloads.FlyerFeaturedItem.Builder setDescription(CharSequence value) {\n validate(fields()[4], value);\n this.description = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"protected void addOtherDedicatedDescriptionsPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ComputerSystem_otherDedicatedDescriptions_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ComputerSystem_otherDedicatedDescriptions_feature\", \"_UI_ComputerSystem_type\"),\r\n\t\t\t\t CimPackage.eINSTANCE.getComputerSystem_OtherDedicatedDescriptions(),\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public final void setFriendlyName(String friendlyName){\n peripheralFriendlyName = friendlyName;\n }",
"public Builder setDescription(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n description_ = value;\n onChanged();\n return this;\n }",
"public void setDescription(String paramDesc) {\n\tstrDesc = paramDesc;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000080;\n onChanged();\n return this;\n }",
"public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }",
"@Override\n public String getDescription() {\n return \"Arbitrary message\";\n }",
"public void setDescription(String descr);",
"public void setDescription(String desc) {\n sdesc = desc;\n }",
"public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }",
"public void setDescription(CharSequence value) {\n this.description = value;\n }",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription(String string) {\n\t\t\n\t}",
"@NonNull\n @SuppressWarnings(\n \"deprecation\") // Updating a deprecated field for backward compatibility\n public Builder setContentDescription(@NonNull String contentDescription) {\n return setContentDescription(new StringProp.Builder(contentDescription).build());\n }",
"public final void setDetailDescription(java.lang.String detaildescription)\r\n\t{\r\n\t\tsetDetailDescription(getContext(), detaildescription);\r\n\t}",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"public void setPartDesc(String partDesc){\n\t\t // store into the instance variable partDesc (i.e. this.partDesc) the value of the parameter partDesc\n\t\tthis.partDesc = partDesc;\n\t}",
"public void setDescription(String sDescription);",
"void setDescription(java.lang.String description);",
"public void setFriendlyURL(java.lang.String friendlyURL) {\n this.friendlyURL = friendlyURL;\n }",
"public void setDescription(java.lang.String param) {\n localDescriptionTracker = true;\n\n this.localDescription = param;\n }",
"@NonNull\n @SuppressWarnings(\n \"deprecation\") // Updating a deprecated field for backward compatibility\n public Builder setContentDescription(@NonNull StringProp contentDescription) {\n mImpl.setObsoleteContentDescription(contentDescription.getValue());\n mImpl.setContentDescription(contentDescription.toProto());\n mFingerprint.recordPropertyUpdate(\n 4, checkNotNull(contentDescription.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"public final void setDescription(java.lang.String description)\r\n\t{\r\n\t\tsetDescription(getContext(), description);\r\n\t}",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"public void setDescription(String desc) {\n description = desc;\n }",
"public Builder setCharacteristicDescriptionNull(boolean value) {\n \n characteristicDescriptionNull_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setDescription(String arg0)\n {\n \n }",
"public void setDescription (String description);",
"public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }",
"public void setDescription(String Description) {\n this.Description = Description;\n }",
"public void setProductCategoryDesc(String value) {\n setAttributeInternal(PRODUCTCATEGORYDESC, value);\n }",
"public void setDescription(final String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String _description) {\n this._description = _description;\n }",
"public void setDescription(String description) {\n\n }",
"public void setCategoriaDescripcion(String descripcion);",
"final public void setShortDesc(String shortDesc)\n {\n setProperty(SHORT_DESC_KEY, (shortDesc));\n }",
"public void setDescription(java.lang.String value);",
"public void setDescription(java.lang.String value);",
"public void setDescription(java.lang.String value);",
"public void setDescription(java.lang.String value);",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_esfTournament.setDescription(description);\n\t}",
"Builder addDescription(String value);",
"public final void setDescription(final String desc) {\n mDescription = desc;\n }",
"@Override\n public String getDescription() {\n return descriptionText;\n }",
"public void setDescription(String description)\n {\n this.description = description.trim();\n }",
"String getDetailedDescription() {\n return context.getString(detailedDescription);\n }",
"public void setDescription(String description) { this.description = description; }",
"public void setDescrizione (String descrizione) {\r\n\t\tthis.descrizione=descrizione;\r\n\t}",
"public void setMeasureDescription(final InternationalString newValue) {\n checkWritePermission(measureDescription);\n measureDescription = newValue;\n }",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_buySellProducts.setDescription(description);\n\t}",
"public void addDescription(String value){\n ((MvwDefinitionDMO) core).addDescription(value);\n }",
"public Builder setDescribe(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n describe_ = value;\n onChanged();\n return this;\n }",
"public Builder setDescribe(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n describe_ = value;\n onChanged();\n return this;\n }",
"public String provideTextualDescriptionForMetricDescription(MetricDescription aMetricDescription) {\n return aMetricDescription.getTextualDescription();\n }",
"public void setpDescription(String pDescription) {\n this.pDescription = pDescription;\n }",
"public String getPartDesc(){\n\t\treturn partDesc;\n\t}",
"final public String getShortDesc()\n {\n return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));\n }",
"public void setDescription(String desc) {\n description = desc.trim();\n if (description.equals(\"\")) {\n description = \"NODESC\";\n }\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public static void setDescription(AbstractCard card, String desc){\n\n PluralizeFieldsPatch.trueRawDescription.set(card,desc);\n createPluralizedDescription(card);\n }"
] | [
"0.7781243",
"0.7216788",
"0.7185972",
"0.7029981",
"0.5559804",
"0.5308374",
"0.5308374",
"0.51583385",
"0.5157287",
"0.5150839",
"0.51362836",
"0.5132591",
"0.51292527",
"0.5107012",
"0.50905657",
"0.50855523",
"0.50708383",
"0.50708383",
"0.50708383",
"0.5067027",
"0.5061367",
"0.50540805",
"0.5042425",
"0.50292945",
"0.5024296",
"0.5024296",
"0.5020643",
"0.50154907",
"0.50152814",
"0.500936",
"0.5005518",
"0.4998256",
"0.4992788",
"0.49900845",
"0.49879757",
"0.49852228",
"0.4979871",
"0.49748597",
"0.4958517",
"0.495559",
"0.49447763",
"0.49447763",
"0.49447763",
"0.49447763",
"0.49447763",
"0.49447763",
"0.49401197",
"0.493289",
"0.49314094",
"0.49298346",
"0.49241272",
"0.49238145",
"0.49112797",
"0.49109912",
"0.49078596",
"0.49032643",
"0.48970813",
"0.4889967",
"0.4886164",
"0.48818135",
"0.48765668",
"0.48741454",
"0.48716295",
"0.48628983",
"0.484791",
"0.4841085",
"0.48317853",
"0.48317853",
"0.48317853",
"0.48317853",
"0.48317853",
"0.48295432",
"0.48189303",
"0.48160005",
"0.48153007",
"0.48141953",
"0.48141953",
"0.48141953",
"0.48141953",
"0.48131084",
"0.48062542",
"0.4802131",
"0.48012924",
"0.479903",
"0.4788212",
"0.47868186",
"0.47841617",
"0.47814363",
"0.4776753",
"0.47741684",
"0.4773011",
"0.4773011",
"0.4772178",
"0.47697192",
"0.47673327",
"0.4759546",
"0.4758963",
"0.4756314",
"0.4756314",
"0.47510085"
] | 0.67689586 | 4 |
Begins update for the EventChannel resource. | EventChannel.Update update(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Update withSource(EventChannelSource source);",
"EventChannel refresh();",
"EventChannel refresh(Context context);",
"Update withDestination(EventChannelDestination destination);",
"Update withFilter(EventChannelFilter filter);",
"public void update(@Observes FirePushEventsEnum event) {\n switch(event) {\n case NODE_EVENT:\n this.nodeEventUpdateRequest.set(true);\n break;\n case RUN_TASK_EVENT:\n this.runTaskEventUpdateRequest.set(true);\n break;\n }\n }",
"@Override\n\t\t\tpublic void callStarted(String channel) {\n\t\t\t}",
"java.util.concurrent.Future<UpdateEventIntegrationResult> updateEventIntegrationAsync(UpdateEventIntegrationRequest updateEventIntegrationRequest);",
"public void updateContestChannel(ContestChannel arg0) throws ContestManagementException {\r\n }",
"@PreAuthorize(\"hasRole('superman')\")\n\tpublic abstract boolean updateChannel(Channel channel);",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" update requested.\" );\n // start the update thread\n final UpdateThread updateThread = new UpdateThread();\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"public void scheduledUpdate() {\n\n if (isUpdating.compareAndSet(false, true)) {\n\n if (getCurrentChannel() != null) {\n\n updateData();\n }\n }\n\n timer.cancel();\n timer.purge();\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new UpdateTask(), 3600000,\n 3600000);\n\n }",
"EventChannel apply();",
"public void update() throws VcsException;",
"public void updateChannel(String channel) {\n Log.d(\"BC\", \"update channel \" + channel);\n long startTime = 0l;\n long endTime = 0l;\n Cursor cursor = getContentResolver().query(\n ChannelData.BROKEN_CONTENT_URI,\n null,\n null,\n new String[]{channel},\n null\n );\n if (cursor.getCount() > 0) {\n if (cursor.moveToFirst()) {\n startTime = cursor.getLong(cursor.getColumnIndex(\n ChannelData.PARENT\n ));\n endTime = cursor.getLong(cursor.getColumnIndex(\n ChannelData.ITEM_ID\n ));\n }\n Log.w(TAG, \"Found broken threads in \" + channel + \", \"\n + new Date(startTime) + \" / \"+ new Date(endTime));\n }\n cursor.close();\n cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n \"jid=?\",\n new String[]{channel},\n null\n );\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n startTime = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n IQ iq = new ChannelFetch(channel, startTime);\n try {\n send(iq);\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n cursor.close();\n DiscoverInfo info = new DiscoverInfo();\n info.setNode(channel);\n info.setType(org.jivesoftware.smack.packet.IQ.Type.GET);\n info.setTo(\"broadcaster.buddycloud.com\");\n try {\n send(info);\n } catch (InterruptedException e) {\n e.printStackTrace(System.err);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }",
"private void updateChannelObject() {\n int i = channelSelect.getSelectedIndex();\n Channel c = channelList.get(i);\n \n double a = Double.valueOf(ampBox.getText()) ;\n double d = Double.valueOf(durBox.getText());\n double f = Double.valueOf(freqBox.getText());\n double o = Double.valueOf(owBox.getText());\n \n c.updateSettings(a, d, f, o);\n }",
"public void update () {\n synchronized (this) {\n messagesWaiting.add\n (new OleThreadRequest(UPDATE,\n 0, 0, 0, 0));\n notify();\n }\n }",
"@Override\n public void update() {\n updateBuffs();\n }",
"public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }",
"private void status(final Object channel, final StatusRequest request) {\n final String contextId = request.getContext();\n final String requestId = request.getRequestId();\n LOGGER.info(\"received a status request for context \" + contextId\n + \" with request id \" + requestId);\n final boolean automaticUpdate = request.isRequestAutomaticUpdate();\n URI context = null;\n if (contextId != null) {\n try {\n context = new URI(contextId);\n } catch (URISyntaxException e) {\n LOGGER.warn(\"context '\"\n + contextId\n + \"' does not denote a valid URI. Unable to send status\"\n + \" response messages\");\n return;\n }\n }\n final String target = request.getSource();\n final StatusUpdateThread thread = new StatusUpdateThread(this, channel,\n target, context, requestId, automaticUpdate);\n thread.start();\n }",
"EventChannel create();",
"interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }",
"private void subscribe() {\r\n\r\n OnUpdatePlayerSubscription subscription = OnUpdatePlayerSubscription.builder().build();\r\n subscriptionWatcher = awsAppSyncClient.subscribe(subscription);\r\n subscriptionWatcher.execute(subCallback);\r\n }",
"@Override\n\tpublic void update(CcNoticereceive entity) {\n\t\t\n\t}",
"public void triggerEvent() {\n\t\ts.changeOpenState();\n\t\ts.setChangedAndNotify();\n\t\t\n\t}",
"@Override\r\n\tpublic void onChannelSuccess() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}",
"public void run() {\n\n if (cancelUpdate(persistentEntity, entityAccess)) {\n return;\n }\n\n updateEntry(persistentEntity, updateId, e);\n firePostUpdateEvent(persistentEntity, entityAccess);\n }",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" update in progress ...\", parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" update requested.\" );\n // start the update thread\n final UpdateConfigurationFileThread updateThread = new UpdateConfigurationFileThread();\n updateThread.configurationFileName = configurationFileName;\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" updated.\", parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"public void process(WatchedEvent event) {\n\t\tSystem.out.println(\"watchedEvent event : \"+event);\r\n\t\tif(KeeperState.SyncConnected == event.getState()){\r\n\t\t\tsemaphore.countDown();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}",
"@Override\n public void openEvent(){\n rl.lock();\n try{\n log.printFirst();\n System.out.println(\"B : Opening the event...\");\n //change broker state\n// MyThreadBroker broker = (MyThreadBroker) Thread.currentThread();\n// broker.broker_states = MyThreadBroker.Broker_States.OPENING_THE_EVENT;\n //change log\n log.changeLog();\n log.setBrokerState(MyThreadBroker.Broker_States.OPENING_THE_EVENT); \n log.changeLog();\n }finally{\n rl.unlock();\n }\n }",
"public void run()\n {\n CallerContextManager ccm = (CallerContextManager) ManagerManager.getInstance(CallerContextManager.class);\n CallerContext cc = ccm.getCurrentContext();\n CCData data = getCCData(cc);\n if ((data != null) && (data.listeners != null)) data.listeners.notifyChange(event);\n }",
"EventChannel apply(Context context);",
"@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public void update(){}",
"public void update(){}",
"public void put(Event event) throws ChannelException {\n\t\t\n\t\t\n\t}",
"@Override\n public void executeUpdate() {\n EventBus.publish(new DialogCraftingReceivedEvent(requestId, title, groups, craftItems));\n }",
"void setChannel(EzyChannel channel);",
"private void uponInConnectionUp(InConnectionUp event, int channelId) {\n }",
"@Override\n public void onWrite() {\n onChannelPreWrite();\n }",
"public void syncChannel() {\r\n\t\tarrChannels.clear(); // I want to make sure that there are no leftover data inside.\r\n\t\tfor(int i = 0; i < workChannels.size(); i++) {\r\n\t\t\tarrChannels.add(workChannels.get(i));\r\n\t\t}\r\n\t}",
"public void update(Event event){\n em.merge(event);\n }",
"public void update() {}",
"ManagementLockObject.Update update();",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"public void process(WatchedEvent event) {\n if(event.getState() == Event.KeeperState.SyncConnected) {\n connectedSignal.countDown();\n }\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }",
"public void updateClient()\n\t{\n\t\t// TODO\n\t}",
"@Test\n public void testUpdateConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n ArrayList<Conference> conferences = new ArrayList<Conference>(2);\n conferences.add(createdEvent.getConferences().get(1));\n Conference update = ConferenceBuilder.copy(createdEvent.getConferences().get(0));\n update.setLabel(\"New lable\");\n conferences.add(update);\n deltaEvent.setConferences(conferences);\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEvent = eventManager.getEvent(defaultFolderId, createdEvent.getId());\n assertThat(\"Should be two conferences!\", I(updatedEvent.getConferences().size()), is(I(2)));\n\n /*\n * Check that conference has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL, 1);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"access information was changed\");\n }",
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.fireChannelActive();\n\n ctx.executor().scheduleAtFixedRate(new Runnable() {\n @Override\n public void run() {\n log.info(\"send heart beat\");\n HeartBeat heartBeat = new HeartBeat();\n ctx.writeAndFlush(heartBeat);\n }\n }, 0, 5, TimeUnit.SECONDS);\n }",
"private void updateFromProvider() {\n if(isUpdating.get()){\n isHaveUpdateRequest.set(true);\n return;\n }\n mUpdateExecutorService.execute(new UpdateThread());\n }",
"public void opened(LLRPChannelOpenedEvent event);",
"public java.util.Iterator<lnrpc.Rpc.OpenStatusUpdate> openChannel(\n lnrpc.Rpc.OpenChannelRequest request) {\n return blockingServerStreamingCall(\n getChannel(), getOpenChannelMethod(), getCallOptions(), request);\n }",
"public void update() {\n Log.d(TAG, \"Updating database\");\n databaseRef.child(TAG).setValue(events);\n Log.d(TAG, \"Database update complete\");\n }",
"public final void update(){\n if(waitingToExecute){\n execute();\n waitingToExecute = false;\n }\n }",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" location \" + locationName + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" location \" + locationName + \" update requested.\" );\n // start the update thread\n final UpdateLocationThread updateThread = new UpdateLocationThread();\n updateThread.locationName = locationName;\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" location \" + locationName + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" location \" + locationName + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"public void MessageEvent(ChannelMessageEvent ev) {\n\t\t\n\t\tif (ev == null)\n\t\t\treturn;\n\t\tstdGroup.fireEventStatus(new StatusEvent(this,\"Channel \"+ ev.getChannelName() + \"is speaking to me\"));\n\t\tsetChanged();\n\t\tnotifyObservers(ev);\n\t\tstdGroup.fireEventStatus(new StatusEvent(this,\"Notifying for channel \"+ ev.getChannelName() + \" all views\"));\n\t\t\n\t}",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" database \" + databaseName + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" database \" + databaseName + \" update requested.\" );\n // start the update thread\n final UpdateDatabaseThread updateThread = new UpdateDatabaseThread();\n updateThread.databaseName = databaseName;\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" database \" + databaseName + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" database \" + databaseName + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\t\t\t\tpublic void channelActive(ChannelHandlerContext ctx) {\n\t\t\t\t\t\t\tSystem.out.println(RestResult.success(\"channel active!\"));\n\t\t\t\t\t\t}",
"public void update() {\n }",
"public void setChannel(Channel channel)\n {\n this.channel = channel;\n }",
"@Test\n public void testNewChannelAppears() {\n TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.RELEASE);\n UpdateStrategyCustomization customization = new UpdateStrategyCustomization();\n UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString(\"IU-95.627\"), InfoReader.read(\"idea-newChannel-release.xml\"), settings, customization);\n\n CheckForUpdateResult result = strategy.checkForUpdates();\n assertEquals(UpdateStrategy.State.LOADED, result.getState());\n BuildInfo update = result.getNewBuildInSelectedChannel();\n assertNull(update);\n\n UpdateChannel newChannel = result.getChannelToPropose();\n assertNotNull(newChannel);\n assertEquals(\"IDEA10EAP\", newChannel.getId());\n assertEquals(\"IntelliJ IDEA X EAP\", newChannel.getName());\n }",
"EventChannelSource source();",
"public final void start(){\n cpt = 0;\n inProgress = true;\n init();\n UpdateableManager.addToUpdate(this);\n }",
"@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}",
"WithCreate withSource(EventChannelSource source);",
"public Update() {\n super(OcNotify.NAMESPACE, \"update\");\n }",
"@Override\n\t\tpublic void update() throws IOException {\n\t\t}",
"@Override\n\tpublic void channelActive(GaoContext context) {\n\t\t\n\t}",
"@Override\r\n\tpublic void update(Connection con, Object obj) throws Exception {\n\t}",
"public void update(Conseiller c) {\n\t\t\r\n\t}",
"private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }",
"@Override\n public void doUpdate(NotificationMessage notification) {\n \n }",
"@Override\n\tpublic void updateClient() {\n\t\t\n\t}",
"public void notify(FirstPlayerEvent firstPlayerEvent) throws IOException {\n synchronized (observers) {\n for (ServerObserver observer : observers) {\n observer.update(firstPlayerEvent);\n }\n }\n }",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"public void updatePeriodic() {\r\n }",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"private synchronized void setCurrentChannel(String currentChannel) {\n\n this.currentChannel = currentChannel;\n }",
"@Override\n\tpublic void update() { }",
"@Override\n public void onStateUpdated(VertexStateUpdate event) {\n enqueueAndScheduleNextEvent(new VertexManagerEventOnVertexStateUpdate(event));\n }",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void setChannelFuture(ChannelFuture channelFuture) {\n this.channelFuture = channelFuture;\n }",
"@Override\n public void update() {\n }",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"public void doSomeChanges() {\n\n eventBus.publish(\"our.event.coming.from.model\", \"some data passed\");\n }",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}"
] | [
"0.7018628",
"0.6612384",
"0.65340656",
"0.6376974",
"0.6205268",
"0.57902974",
"0.57053715",
"0.56630886",
"0.55968535",
"0.5483495",
"0.5468222",
"0.5456471",
"0.5431353",
"0.537902",
"0.537844",
"0.5361213",
"0.53388274",
"0.53210366",
"0.5312103",
"0.5295079",
"0.5275629",
"0.52748007",
"0.5238769",
"0.5238107",
"0.52209234",
"0.5210763",
"0.5209761",
"0.5187092",
"0.5175935",
"0.51697516",
"0.51506925",
"0.5137975",
"0.5096185",
"0.5081466",
"0.5076393",
"0.5075824",
"0.50694895",
"0.50694895",
"0.50637233",
"0.5055413",
"0.5051332",
"0.5020934",
"0.50114214",
"0.50070316",
"0.5006862",
"0.5002656",
"0.4998335",
"0.49920285",
"0.4989844",
"0.49892002",
"0.49892002",
"0.49892002",
"0.49668112",
"0.49621716",
"0.49458346",
"0.4938739",
"0.49358264",
"0.49353105",
"0.49326774",
"0.49297974",
"0.4928754",
"0.49267122",
"0.49267122",
"0.49222836",
"0.49182534",
"0.49137482",
"0.49002206",
"0.49002206",
"0.4900057",
"0.48917294",
"0.48887745",
"0.48881632",
"0.48821267",
"0.48737663",
"0.4871574",
"0.48683017",
"0.48657143",
"0.48623365",
"0.48597956",
"0.48552123",
"0.48496693",
"0.4848627",
"0.48440143",
"0.4840388",
"0.483033",
"0.482723",
"0.4825693",
"0.48252037",
"0.48249966",
"0.4824445",
"0.48227343",
"0.4819764",
"0.4819764",
"0.4819764",
"0.4819764",
"0.4808458",
"0.4807143",
"0.4804169",
"0.4803631",
"0.48019955"
] | 0.75877947 | 0 |
The template for EventChannel update. | interface Update
extends UpdateStages.WithSource,
UpdateStages.WithDestination,
UpdateStages.WithExpirationTimeIfNotActivatedUtc,
UpdateStages.WithFilter,
UpdateStages.WithPartnerTopicFriendlyDescription {
/**
* Executes the update request.
*
* @return the updated resource.
*/
EventChannel apply();
/**
* Executes the update request.
*
* @param context The context to associate with this operation.
* @return the updated resource.
*/
EventChannel apply(Context context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannel.Update update();",
"Update withDestination(EventChannelDestination destination);",
"Update withSource(EventChannelSource source);",
"Update withFilter(EventChannelFilter filter);",
"EventChannel refresh(Context context);",
"EventChannel refresh();",
"EventChannel create();",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public void update(Activity e){ \n\t template.update(e); \n\t}",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"EventChannel apply();",
"@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}",
"public static Channel createUpdatedEntity(EntityManager em) {\n Channel channel = new Channel()\n .type(UPDATED_TYPE)\n .template(UPDATED_TEMPLATE);\n return channel;\n }",
"EventChannel apply(Context context);",
"java.util.concurrent.Future<UpdateEventIntegrationResult> updateEventIntegrationAsync(UpdateEventIntegrationRequest updateEventIntegrationRequest);",
"EventChannelInner innerModel();",
"WithCreate withDestination(EventChannelDestination destination);",
"EventChannel create(Context context);",
"public void update(@Observes FirePushEventsEnum event) {\n switch(event) {\n case NODE_EVENT:\n this.nodeEventUpdateRequest.set(true);\n break;\n case RUN_TASK_EVENT:\n this.runTaskEventUpdateRequest.set(true);\n break;\n }\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"public String updateEvent(Event event)\n {\n em.merge(event);\n return (\"Event updatet\");\n }",
"public Update() {\n super(OcNotify.NAMESPACE, \"update\");\n }",
"public void put(Event event) throws ChannelException {\n\t\t\n\t\t\n\t}",
"EventChannelDestination destination();",
"WithCreate withSource(EventChannelSource source);",
"private void updateChannelObject() {\n int i = channelSelect.getSelectedIndex();\n Channel c = channelList.get(i);\n \n double a = Double.valueOf(ampBox.getText()) ;\n double d = Double.valueOf(durBox.getText());\n double f = Double.valueOf(freqBox.getText());\n double o = Double.valueOf(owBox.getText());\n \n c.updateSettings(a, d, f, o);\n }",
"@Override\n\tpublic void update(CcNoticereceive entity) {\n\t\t\n\t}",
"EventChannelSource source();",
"void update(T message);",
"private final void updateEvent(Feed feed) {\n\t ContentValues values = new ContentValues();\n\t // values.put(NotePad.Notes.COLUMN_NAME_MODIFICATION_DATE, System.currentTimeMillis());\n\n\t // This puts the desired notes text into the map.\n\t values.put(FeedingEventsContract.Feeds.column_timeStamp, feed.ts.toString());\n\t values.put(FeedingEventsContract.Feeds.column_leftDuration, Integer.toString(feed.lDuration) );\n\t values.put(FeedingEventsContract.Feeds.column_rightDuration, Integer.toString(feed.rDuration));\n\t values.put(FeedingEventsContract.Feeds.column_bottleFeed, Double.toString(feed.BFQuantity));\n\t values.put(FeedingEventsContract.Feeds.column_expressFeed, Double.toString(feed.EFQuantity));\n\t values.put(FeedingEventsContract.Feeds.column_note, feed.note);\n\t \n\t /*\n\t * Updates the provider with the new values in the map. The ListView is updated\n\t * automatically. The provider sets this up by setting the notification URI for\n\t * query Cursor objects to the incoming URI. The content resolver is thus\n\t * automatically notified when the Cursor for the URI changes, and the UI is\n\t * updated.\n\t * Note: This is being done on the UI thread. It will block the thread until the\n\t * update completes. In a sample app, going against a simple provider based on a\n\t * local database, the block will be momentary, but in a real app you should use\n\t * android.content.AsyncQueryHandler or android.os.AsyncTask.\n\t */\n\t getContentResolver().update(\n\t mUri, // The URI for the record to update.\n\t values, // The map of column names and new values to apply to them.\n\t null, // No selection criteria are used, so no where columns are necessary.\n\t null // No where columns are used, so no where arguments are necessary.\n\t );\n\n\n\t }",
"@PreAuthorize(\"hasRole('superman')\")\n\tpublic abstract boolean updateChannel(Channel channel);",
"public void putChannel(NotificationsChannel notiChannel) throws Exception;",
"public void SimUpdate(UpdateSimEvento event);",
"@Override\n public void doUpdate(NotificationMessage notification) {\n \n }",
"@Override\r\n\tpublic void Update() {\n\t\tSystem.out.println(name+\",¹Ø±ÕNBA£¬¼ÌÐø¹¤×÷£¡\"+abstractNotify.getAction());\r\n\t}",
"public void send(EventStore es, Template template);",
"public void setChannel(Channel channel)\n {\n this.channel = channel;\n }",
"public UpdateSession(Type type, Channel channel) {\n\t\tthis.type = type;\n\t\tthis.channel = channel;\n\t}",
"public void update(InputEvent event);",
"void onConfigChanged(ConfigUpdate update);",
"@Override\n public void updateView(Message msg)\n {\n \n }",
"void setChannel(EzyChannel channel);",
"void onUpdate(Message message);",
"@Override\n protected String format(final ChannelHandlerContext ctx, final String eventName) {\n final String chStr = ctx.channel().toString();\n return new StringBuilder(chStr.length() + 1 + eventName.length()).append(chStr).append(' ').append(eventName)\n .toString();\n }",
"public void updateSubscriber(int channelIndex) {\n\t\t// Need only to update ListTableModel (since UpdateEntityPanel is treated separately)\n\t\t\n\t\t// Update content of the different parts of the cardLayout\n\t\tfor (int cardIndex = 0; cardIndex < 2; cardIndex++) {\n\t\t\t\n\t\t\t// Create list of categories for the given card\n\t\t\tList<CatEnum> currentCat = catEnumBase.get(cardIndex);\n\t\t\t\n\t\t\t// Recover associated data\n\t\t\tList<Event> rawCurrentData = dao.findAll(currentCat);\n\t\t\tList<Entity> currentData = this.convertListType(rawCurrentData);\n\t\t\t\n\t\t\t// Get current tableModel\n\t\t\tListTableModel tableModel = tableModels.get(cardIndex);\n\t\t\ttableModel.setData(currentData);\n\t\t}\n\t}",
"void update(String message, Command command, String senderNickname);",
"private void sendUpdateMessage() {\n Hyperium.INSTANCE.getHandlers().getGeneralChatHandler().sendMessage(\n \"A new version of Particle Addon is out! Get it at https://api.chachy.co.uk/download/ParticleAddon/\" + ChachyMod.INSTANCE.getVersion(() -> \"ParticleAddon\"));\n }",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" update in progress ...\", parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" update requested.\" );\n // start the update thread\n final UpdateConfigurationFileThread updateThread = new UpdateConfigurationFileThread();\n updateThread.configurationFileName = configurationFileName;\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" updated.\", parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" configuration file \" + configurationFileName\n + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"@Override\n\tpublic void updateAction(Client input) {\n\t\t\n\t}",
"@Override\r\n\tpublic void update(WechatMember member) {\n\t\t\r\n\t}",
"public void receivedUpdateFromServer();",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" update requested.\" );\n // start the update thread\n final UpdateThread updateThread = new UpdateThread();\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"@Test\n public void testUpdateConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n ArrayList<Conference> conferences = new ArrayList<Conference>(2);\n conferences.add(createdEvent.getConferences().get(1));\n Conference update = ConferenceBuilder.copy(createdEvent.getConferences().get(0));\n update.setLabel(\"New lable\");\n conferences.add(update);\n deltaEvent.setConferences(conferences);\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEvent = eventManager.getEvent(defaultFolderId, createdEvent.getId());\n assertThat(\"Should be two conferences!\", I(updatedEvent.getConferences().size()), is(I(2)));\n\n /*\n * Check that conference has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL, 1);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"access information was changed\");\n }",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"private void uponInConnectionUp(InConnectionUp event, int channelId) {\n }",
"public void MessageEvent(ChannelMessageEvent ev) {\n\t\t\n\t\tif (ev == null)\n\t\t\treturn;\n\t\tstdGroup.fireEventStatus(new StatusEvent(this,\"Channel \"+ ev.getChannelName() + \"is speaking to me\"));\n\t\tsetChanged();\n\t\tnotifyObservers(ev);\n\t\tstdGroup.fireEventStatus(new StatusEvent(this,\"Notifying for channel \"+ ev.getChannelName() + \" all views\"));\n\t\t\n\t}",
"public abstract void update(Message message);",
"@Test\n public void testNewChannelAppears() {\n TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.RELEASE);\n UpdateStrategyCustomization customization = new UpdateStrategyCustomization();\n UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString(\"IU-95.627\"), InfoReader.read(\"idea-newChannel-release.xml\"), settings, customization);\n\n CheckForUpdateResult result = strategy.checkForUpdates();\n assertEquals(UpdateStrategy.State.LOADED, result.getState());\n BuildInfo update = result.getNewBuildInSelectedChannel();\n assertNull(update);\n\n UpdateChannel newChannel = result.getChannelToPropose();\n assertNotNull(newChannel);\n assertEquals(\"IDEA10EAP\", newChannel.getId());\n assertEquals(\"IntelliJ IDEA X EAP\", newChannel.getName());\n }",
"@Override\n\tpublic void update(Event e) {\n\t}",
"public void updateEvent(EasyRVHolder holder, GithubEvent event) {\n\n Glide.with(GithubApp.getsInstance()).load(event.actor.avatar_url)\n .placeholder(R.mipmap.ic_default_avatar)\n .transform(new GlideRoundTransform(GithubApp.getsInstance()))\n .override(ScreenUtils.dpToPxInt(40), ScreenUtils.dpToPxInt(40))\n .into((ImageView) holder.getView(R.id.ivAvatar));\n\n StyledText main = new StyledText();\n StyledText details = new StyledText();\n\n String icon = EventTypeManager.valueOf(event.type.toString())\n .generateIconAndFormatStyledText(this, event, main, details);\n\n if (TextUtils.isEmpty(icon)) {\n holder.setVisible(R.id.tvEventIcon, View.GONE);\n } else {\n TypefaceUtils.setOcticons((TextView) holder.getView(R.id.tvEventIcon));\n holder.setText(R.id.tvEventIcon, icon);\n }\n\n ((TextView) holder.getView(R.id.tvEvent)).setText(main);\n\n if (TextUtils.isEmpty(details)) {\n holder.setVisible(R.id.tvEventDetails, View.GONE);\n } else {\n ((TextView) holder.getView(R.id.tvEventDetails)).setText(details);\n }\n\n ((TextView) holder.getView(R.id.tvEventDate)).setText(TimeUtils.getRelativeTime(event.created_at));\n\n }",
"public void update(T e);",
"Update createUpdate();",
"@Override\n\tpublic Event updateEvent(Event e) {\n\t\treturn eventDao.updateEvent(e);\n\t}",
"@Override\n\tpublic void editExchange() {\n\t\t\n\t}",
"private void publishBlockingEventUpdate(BlockConditionsDTO blockCondition) throws APIManagementException {\n if (blockCondition != null) {\n String blockingConditionType = blockCondition.getConditionType();\n String blockingConditionValue = blockCondition.getConditionValue();\n if (APIConstants.BLOCKING_CONDITIONS_USER.equalsIgnoreCase(blockingConditionType)) {\n blockingConditionValue = MultitenantUtils.getTenantAwareUsername(blockingConditionValue);\n blockingConditionValue = blockingConditionValue + \"@\" + tenantDomain;\n blockCondition.setConditionValue(blockingConditionValue);\n }\n\n publishBlockingEvent(blockCondition, Boolean.toString(blockCondition.isEnabled()));\n }\n }",
"public abstract void update(UIReader event);",
"public String getChannel() {\r\n return channel;\r\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"@Override\n public int getChannel()\n {\n return channel;\n }",
"public void update(){}",
"public void update(){}",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"@Override\n public void update(Workout e) {\n\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"public void setChannelId( int channelId ) {\r\n this.channelId = channelId;\r\n }",
"@Override\n\tpublic void update() { }",
"@Override\r\n\tpublic void update(Observable observable, Object data) {\n\t\tfinal int eventID = ((NotificationInfoObject) data).actionID;\r\n\r\n\t\tif ((nwrap.getApplicationState() == ApplicationState.IDLE) || (nwrap.getApplicationState() == ApplicationState.INST_SERVICE)) {\r\n\r\n\t\t\tswitch (eventID) {\r\n\t\t\tcase EventIDs.EVENT_INST_STARTED:\r\n\t\t\t\tLog.d(TAG, \"EVENT_INST_STARTED \");\r\n\t\t\t\tbroadcastIntent(\"org.droidtv.euinstallertc.CHANNEL_INSTALL_START\");\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase EventIDs.EVENT_INST_STOPPED:\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase EventIDs.EVENT_INST_COMPLETED:\r\n\t\t\t\tLog.d(TAG, \"EVENT_INST_COMPLETED \");\r\n\t\t\t\t// check if channels added /removed\r\n\t\t\t\tnwrap.commitDatabaseToTvProvider(false);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase EventIDs.EVENT_NETWORK_UPDATE_DETECTED:\r\n\t\t\t\tLog.d(TAG, \"EVENT_NETWORK_UPDATE_DETECTED \");\r\n\t\t\t\t// The Update dialog is only needed for UPC operator : CR AN-717\r\n\t\t\t\tLog.d(TAG, \"Current Operator\" + nwrap.getOperatorFromMW());\r\n\t\t\t\tif (nwrap.getOperatorFromMW() == NativeAPIEnums.Operators.UPC){\r\n\t\t\t\t\tLog.d(TAG, \"UPC operator or APMEAbackgroundNWupdateDVBT\\n\");\r\n\t\t\t\t\tif (mContext != null) {\r\n\t\t\t\t\t\t// unregister service from notification framework\r\n\t\t\t\t\t\tntf.unregisterForNotification(thisInstance);\r\n\t\t\t\t\t\tLog.d(TAG, \"service context not null\");\r\n\t\t\t\t\t\t// stop installation if in progress\r\n\t\t\t\t\t\t// nwrap.stopInstallation(false); instead of doing this\r\n\t\t\t\t\t\t// we\r\n\t\t\t\t\t\t// will call stop-restart api in nativeapiwrapper\r\n\t\t\t\t\t\tif (nwrap.ifNetworkChangeDetected() == false) { // AN-49771\r\n\t\t\t\t\t\t\tIntent l_intent = new Intent(mContext, NetworkUpdateDialogActivity.class);\r\n\t\t\t\t\t\t\tl_intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\t\t\t\tmContext.startActivity(l_intent);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tLog.d(TAG, \"User has already selected Later\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(nwrap.IsAPMEAbackgroundNWupdate() && (DVBTOrDVBC.DVBT == nwrap.getSelectedDVBTOrDVBCFromTVS())){\r\n\t\t\t\t\tLog.d(TAG,\"APMEA network update\");\r\n\t\t\t\t\t// requirement APMEA Smitha TF515PHIALLMTK01-17521\r\n\t\t\t\t\tif (nwrap.ifNetworkChangeDetected() == false) {\r\n\t\t\t\t\t\tnwrap.showTVNofification(mContext, mContext.getString(org.droidtv.ui.strings.R.string.MAIN_MSG_CHANNEL_UPDATE_NEEDED));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnwrap.networkChangeDetected(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\t// for all other non UPC countries\r\n\t\t\t\t\tnwrap.networkChangeDetected(true);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_DIGIT_CH_FOUND:\r\n\t\t\t\tLog.d(TAG, \"EventIDs.EVENT_DIGIT_CH_FOUND\");\r\n\t\t\t\t// query mw for digital channel count\r\n\t\t\t\t// update digit channels count\r\n\t\t\t\tnwrap.getDigitalChannelCount();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_DIGIT_CH_ADDED:\r\n\t\t\t\tLog.d(TAG, \"EventIDs.EVENT_DIGIT_CH_ADDED\");\r\n\t\t\t\tnwrap.getDigitalChannelCount();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_DIGIT_CH_REMOVED:\r\n\t\t\t\tLog.d(TAG, \"EventIDs.EVENT_DIGIT_CH_REMOVED\");\r\n\t\t\t\tnwrap.getDigitalChannelsRemoved();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_MAJORVERSION_UPDATE:\r\n\t\t\t\tLog.d(TAG, \"EventIDs.EVENT_MAJORVERSION_UPDATE\");\r\n\t\t\t\tnwrap.setMajorVersion();\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_NEWPRESETNUMBER:\r\n\t\t\t\tint presetNum = -1;\r\n\t\t\t\tString l_msg1 = (String) ((NotificationInfoObject) data).message; \r\n\t\t\t\tpresetNum = Integer.parseInt(l_msg1);\r\n presetAfterBackgroundUpdate = presetNum;\r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\tcase EventIDs.EVENT_COMMIT_FINISHED:\r\n\t\t\t\tnwrap.startLogoAssociation(nwrap.getSelectedDVBTOrDVBCFromTVS(), null);\r\n\t\t\t\tbroadcastIntent(\"org.droidtv.euinstallertc.CHANNEL_INSTALL_COMPLETE\");\r\n \tif (presetAfterBackgroundUpdate != -1) { \r\n\t\t\t\t nwrap.HandleTuneToLowestPreset (presetAfterBackgroundUpdate);\r\n }\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_TELENET_NAME_UPDATE:\r\n\t\t\t\tint presetNbr = -1, CABLE_MEDIUM = 1;\r\n\t\t\t\tString l_msg2 = (String) ((NotificationInfoObject) data).message; \r\n\t\t\t\tpresetNbr = Integer.parseInt(l_msg2);\r\n\t\t\t\t/* Currently this will happen only for Telenet */\r\n nwrap.SyncSingleChannelToDatabase (CABLE_MEDIUM, presetNbr);\r\n\t\t\t\tbreak;\r\n\t\t\tcase EventIDs.EVENT_TELENET_MAJOR_VERSION_UPDATE:\r\n\t\t\t\tnwrap.mUpdateDatabaseVersion(true);\r\n\t\t\t\tbroadcastIntent(\"org.droidtv.euinstallertc.CHANNEL_INSTALL_COMPLETE\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void configurationChanged(WMSLayerConfigChangeEvent event);",
"public void onChannel(String channel, String title, String subtitle);",
"public Channel getChannel() {\n return channel;\n }",
"Response updateChannelWithPayload(@NonNull URL channelLocation, @NonNull ChannelRegistrationPayload channelPayload) {\n String payload = channelPayload.toJsonValue().toString();\n Logger.verbose(\"ChannelApiClient - Updating channel with payload: \" + payload);\n return requestWithPayload(channelLocation, \"PUT\", payload);\n }",
"@Override\n protected void update(List<Event> result, Ec2LaunchConfiguration oldResource, Ec2LaunchConfiguration newResource) {\n \n }",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"public static String createUpdateMessage(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(\"NOTIFY * HTTP/1.1\").append(\"\\n\");\n\t\tsb.append(\"HOST: 239.255.255.250:1900\").append(\"\\n\");\n\t\tsb.append(\"NT: urn:schemas-upnp-org:service:ContentDirectory:1\").append(\"\\n\");\n\t\tsb.append(\"NTS: ssdp:update\").append(\"\\n\");\n\t\tsb.append(\"LOCATION: http://142.225.35.55:5001/description/fetch\").append(\"\\n\");\n\t\tsb.append(\"USN: uuid:9dcf6222-fc4b-33eb-bf49-e54643b4f416::urn:schemas-upnp-org:service:ContentDirectory:1\").append(\"\\n\");\n\t\tsb.append(\"CACHE-CONTROL: max-age=1800\").append(\"\\n\");\n\t\tsb.append(\"SERVER: Windows_XP-x86-5.1, UPnP/1.0, PMS/1.11\").append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}",
"@Override\n public void update(ModelUpdate message) {\n calledMethods.add(\"update: \" + message.getEventType());\n }",
"@ApiModelProperty(value = \"Channel where the Order comes from\")\n public Channel getChannel() {\n return channel;\n }",
"@Override\n protected void execute(CommandEvent event)\n {\n Poll poll = manager.getRandomPoll();\n\n // Now we need to build the embed\n EmbedBuilder embed = new EmbedBuilder()\n {{\n setTitle(\"<:EverybodyVotesChannel:317090360449040388> \" + poll.getQuestion());\n setDescription(\"\\uD83C\\uDD70 \" + poll.getResponse1() + \"\\n\" +\n \"_ _\\n\" + // Line separator\n \"\\uD83C\\uDD71 \" + poll.getResponse2());\n addField(\"Users who reacted \\uD83C\\uDD70:\", \"\", false);\n addField(\"Users who reacted \\uD83C\\uDD71:\", \"\", false);\n setColor(event.getSelfMember().getColor());\n setFooter(\"This question was in the \" + poll.getCountryFlag() + \" EVC\", null);\n }};\n\n // Send embed to chat\n event.reply(embed.build(), s ->\n {\n // Add message ID to tracked list\n manager.trackId(s.getIdLong());\n\n // Add reactions\n s.addReaction(\"\\uD83C\\uDD70\").queue();\n s.addReaction(\"\\uD83C\\uDD71\").queue();\n });\n }",
"public void SetChannel(int channel);",
"public String getChannel() {\n return channel;\n }",
"EzyChannel getChannel();",
"public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.logging.v1.SinkServiceOuterClass.UpdateSinkRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getUpdateMethod(), getCallOptions(), request);\n }",
"public void updateChannel(String channel) {\n Log.d(\"BC\", \"update channel \" + channel);\n long startTime = 0l;\n long endTime = 0l;\n Cursor cursor = getContentResolver().query(\n ChannelData.BROKEN_CONTENT_URI,\n null,\n null,\n new String[]{channel},\n null\n );\n if (cursor.getCount() > 0) {\n if (cursor.moveToFirst()) {\n startTime = cursor.getLong(cursor.getColumnIndex(\n ChannelData.PARENT\n ));\n endTime = cursor.getLong(cursor.getColumnIndex(\n ChannelData.ITEM_ID\n ));\n }\n Log.w(TAG, \"Found broken threads in \" + channel + \", \"\n + new Date(startTime) + \" / \"+ new Date(endTime));\n }\n cursor.close();\n cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n \"jid=?\",\n new String[]{channel},\n null\n );\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n startTime = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n IQ iq = new ChannelFetch(channel, startTime);\n try {\n send(iq);\n } catch (RemoteException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n cursor.close();\n DiscoverInfo info = new DiscoverInfo();\n info.setNode(channel);\n info.setType(org.jivesoftware.smack.packet.IQ.Type.GET);\n info.setTo(\"broadcaster.buddycloud.com\");\n try {\n send(info);\n } catch (InterruptedException e) {\n e.printStackTrace(System.err);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }",
"private void sendCurrentTrackingMessage(CommandEvent event) {\n long guildId = event.getGuild().getIdLong();\n long channelId = event.getChannel().getIdLong();\n List<TrackChannel> tracks = this.trackChannelRepository.findAllOf(guildId, channelId);\n if (tracks == null) {\n event.replyError(\"Something went wrong while retrieving data...\");\n return;\n }\n\n if (tracks.size() == 0) {\n event.reply(\"You do not seem to have any tracking enabled in this channel yet. \" +\n \"See help with `track help` for more.\");\n return;\n }\n\n List<String> ret = new ArrayList<>();\n CustomDateFormat customDateFormat = this.dateFormatRepository.getDateFormat(event);\n CustomTimeZone customTimeZone = this.timeZoneRepository.getTimeZone(event);\n DateFormat dateFormat = customDateFormat.getDateFormat().getSecondFormat();\n dateFormat.setTimeZone(customTimeZone.getTimeZoneInstance());\n\n ret.add(\"**List of enabled tracking for this channel**\");\n ret.add(String.format(\"You have %s tracking(s) enabled for this channel.\", tracks.size()));\n ret.add(\"\");\n\n for (TrackChannel track : tracks) {\n ret.add(String.format(\"`%s` : Expires at `%s` (%s)\",\n track.getDisplayName(),\n dateFormat.format(track.getExpiresAt()),\n customTimeZone.getFormattedTime()\n ));\n }\n\n event.reply(String.join(\"\\n\", ret));\n }",
"public void channelChanged(){\r\n if(channel.getText().equals(\"\") || Integer.parseInt(channel.getText())<1 || Integer.parseInt(channel.getText())>83){\r\n System.out.println(\"Channel out of range! resetting to channel 1...\");\r\n channel.setText(\"1\");\r\n System.out.println(\"New Channel: \"+channel.getText());\r\n }\r\n else\r\n System.out.println(\"New Channel: \"+channel.getText());\r\n\r\n }"
] | [
"0.73790914",
"0.6925906",
"0.67060363",
"0.65048605",
"0.64333224",
"0.6280038",
"0.59639156",
"0.57366294",
"0.5724633",
"0.5717158",
"0.5694916",
"0.5583117",
"0.5516206",
"0.54730386",
"0.54353505",
"0.53922725",
"0.5374377",
"0.53449357",
"0.5325324",
"0.5320636",
"0.5314901",
"0.5283966",
"0.524332",
"0.5195618",
"0.51703453",
"0.5168889",
"0.5137392",
"0.5127883",
"0.50981927",
"0.50918853",
"0.5085037",
"0.5073715",
"0.505763",
"0.50481635",
"0.50467813",
"0.50415295",
"0.504084",
"0.5028728",
"0.50142896",
"0.49894682",
"0.49886686",
"0.498617",
"0.49785164",
"0.4967498",
"0.49553335",
"0.49428418",
"0.49172434",
"0.4916371",
"0.49144906",
"0.4913251",
"0.49117872",
"0.49056944",
"0.49042815",
"0.48769733",
"0.48755032",
"0.48618406",
"0.48618406",
"0.48603207",
"0.48559207",
"0.48525634",
"0.48406118",
"0.4825391",
"0.48241302",
"0.48092532",
"0.4804887",
"0.47924092",
"0.47920254",
"0.47732094",
"0.47688794",
"0.47593704",
"0.47517824",
"0.47457045",
"0.47416195",
"0.47416195",
"0.47412008",
"0.4739756",
"0.47346118",
"0.47346118",
"0.47346118",
"0.4733465",
"0.47308272",
"0.47289875",
"0.4727263",
"0.47254756",
"0.47242612",
"0.47221425",
"0.47150186",
"0.47144634",
"0.47144634",
"0.4714273",
"0.47123682",
"0.4709507",
"0.47076568",
"0.47065264",
"0.4705905",
"0.4705447",
"0.46967795",
"0.46950656",
"0.4694828",
"0.46890464"
] | 0.60740066 | 6 |
Executes the update request. | EventChannel apply(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void executeUpdate();",
"void executeUpdate();",
"public void executeUpdate(String request) {\n try {\r\n st.executeUpdate(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }",
"public void update(){}",
"public void update(){}",
"public abstract Response update(Request request, Response response);",
"JobResponse.Update update();",
"private void updateFromProvider() {\n if(isUpdating.get()){\n isHaveUpdateRequest.set(true);\n return;\n }\n mUpdateExecutorService.execute(new UpdateThread());\n }",
"public int updateUser(Candidat c) {\n String url = StaticVars.baseURL + \"/updateuser\";\n System.out.println(url);\n ConnectionRequest req = new ConnectionRequest();\n\n req.setUrl(url);\n req.setPost(true);\n\nreq.setHttpMethod(\"PUT\"); \n\n\n String can = String.valueOf(currentCandidat.getId());\n req.addArgument(\"id\", can);\n String login =String .valueOf(currentCandidat.getLogin());\n req.addArgument(\"login\",login);\n req.addArgument(\"email\", String .valueOf(currentCandidat.getEmail()));\n req.addArgument(\"pays\", String .valueOf(currentCandidat.getPays()));\n req.addArgument(\"ville\", String .valueOf(currentCandidat.getVille()));\n req.addArgument(\"tel\", Integer.toString(currentCandidat.getTel()));\n req.addArgument(\"domaine\", String .valueOf(currentCandidat.getDomaine()));\n\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n result = req.getResponseCode();\n \n System.out.println(result);\n }\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n\n return result;\n }",
"public final void update(){\n if(waitingToExecute){\n execute();\n waitingToExecute = false;\n }\n }",
"public abstract int execUpdate(String query) ;",
"public abstract void update(@Nonnull Response response);",
"@Override\r\n\tpublic void doUpdate(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"public void run() {\n\n if (cancelUpdate(persistentEntity, entityAccess)) {\n return;\n }\n\n updateEntry(persistentEntity, updateId, e);\n firePostUpdateEvent(persistentEntity, entityAccess);\n }",
"public void update() {\n manager.update();\n }",
"public void update() {}",
"public HttpStatus executeUpdate(String updateQuery) throws RmesException {\n\t\tHttpStatus status = repositoryUtils.executeUpdate(updateQuery, repositoryUtils.initRepository(config.getRdfServerPublicationInterne(), config.getRepositoryIdPublicationInterne()));\n\t\tif (status.is2xxSuccessful() ) {\n\t\t\tstatus = repositoryUtils.executeUpdate(updateQuery, repositoryUtils.initRepository(config.getRdfServerPublication(), config.getRepositoryIdPublication()));\n\t\t}\n\t\treturn status;\n\t}",
"void requestUpdate(UUIDBase uuid, OpResult opResult) {\n if (opResult.isComplete()) {\n requestComplete(uuid, opResult);\n } else {\n _requestInProgress(uuid);\n }\n }",
"@PUT\n @Path(\"/update\")\n public void put() {\n System.out.println(\"PUT invoked\");\n }",
"public void update(int updateType);",
"private void update(RequestInfo requestInfo) throws DefectException {\r\n\t\tlog.info(\"Start - update\");\r\n\t\tcreateInstance();\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to update, request information is missing\");\r\n\t\t}\r\n try{\r\n\r\n \tString ref = requestInfo.getRefField();\r\n\r\n \t//Update\r\n \tJsonObject updateEntry = convertMapToJson(requestInfo.getEntry().get(RallyConstants.UPDATE));\t \r\n \tUpdateRequest updateRequest = new UpdateRequest(ref, updateEntry);\r\n \tUpdateResponse updateResponse = null;\r\n\r\n \ttry {\r\n \t \t\t\tupdateResponse = restApi.update(updateRequest);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"failed to update, message : \" + e.toString() + \"RequestInfo -\" + requestInfo);\r\n\t \tthrow new DefectException(\"failed to update, message : \" + e.toString());\r\n\t\t\t}\r\n\r\n if (updateResponse.wasSuccessful()) {\r\n \tlog.info(String.format(\"Updated %s\", updateResponse.getObject().get(RallyConstants._REF).getAsString())); \r\n } else {\r\n List<String> lstResult = new ArrayList<String>();\r\n for (String err : updateResponse.getErrors()) {\r\n System.err.println(\"\\t\" + err);\r\n lstResult.add(err);\r\n }\r\n log.error(\"Error in updating : \" + lstResult);\r\n throw new DefectException(\"Error in updating : \" + lstResult);\r\n }\r\n } finally {\r\n \tcloseDefect();\r\n \tlog.info(\"End - update\");\r\n }\r\n \t}",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"public String update(String id, String datetime, String description, String request, String status);",
"@Override\n\t\t\t\tpublic void execute()\n\t\t\t\t{\n\n\t\t\t\t\tMobiculeLogger.verbose(\"execute()\");\n\t\t\t\t\tresponse = updateCustomerFacade.updateCustomerDetails();\n\t\t\t\t}",
"public String doUpdate(HttpServletRequest request,\n HttpServletResponse response) {\n return null;\n }",
"@Override\r\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\r\n\t}",
"<T extends BaseDto> void executeUpdate(String reqQuery, T req, Connection conn);",
"@Override\r\n\tpublic void update(HttpServletResponse paramHttpServletResponse) {\n\t\t\r\n\t}",
"public void receivedUpdateFromServer();",
"interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithCancelRequested,\n UpdateStages.WithState,\n UpdateStages.WithReturnAddress,\n UpdateStages.WithReturnShipping,\n UpdateStages.WithDeliveryPackage,\n UpdateStages.WithLogLevel,\n UpdateStages.WithBackupDriveManifest,\n UpdateStages.WithDriveList {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n JobResponse apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n JobResponse apply(Context context);\n }",
"@Test\r\n\tpublic void updateUpdate() throws InterruptedException, ExecutionException {\r\n\t\tLOGGER.debugf(\"BEGINN\");\r\n\t\t\r\n\t\t// Given\r\n\t\tfinal Long zahlId = ZAHLUNGSINFORMATION_ID_UPDATE;\r\n \tfinal String neuerKontoinhaber = NEUER_KONTOINHABER;\r\n \tfinal String neuerKontoinhaber2 = NEUER_KONTOINHABER_2;\r\n\t\tfinal String username = USERNAME_ADMIN;\r\n\t\tfinal String password = PASSWORD_ADMIN;\r\n\t\t\r\n\t\t// When\r\n\t\tResponse response = given().header(ACCEPT, APPLICATION_JSON)\r\n\t\t\t\t .pathParameter(ZAHLUNGSINFORMATIONEN_ID_PATH_PARAM, zahlId)\r\n .get(ZAHLUNGSINFORMATIONEN_ID_PATH);\r\n\t\tJsonObject jsonObject;\r\n\t\ttry (final JsonReader jsonReader =\r\n\t\t\t\t getJsonReaderFactory().createReader(new StringReader(response.asString()))) {\r\n\t\t\tjsonObject = jsonReader.readObject();\r\n\t\t}\r\n\r\n \t// Konkurrierendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n \tfinal JsonObjectBuilder job2 = getJsonBuilderFactory().createObjectBuilder();\r\n \tSet<String> keys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob2.add(\"kontoinhaber\", neuerKontoinhaber2);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob2.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tfinal JsonObject jsonObject2 = job2.build();\r\n \tfinal ConcurrentUpdate concurrentUpdate = new ConcurrentUpdate(jsonObject2, ZAHLUNGSINFORMATIONEN_PATH,\r\n \t\t\t username, password);\r\n \tfinal ExecutorService executorService = Executors.newSingleThreadExecutor();\r\n\t\tfinal Future<Response> future = executorService.submit(concurrentUpdate);\r\n\t\tresponse = future.get(); // Warten bis der \"parallele\" Thread fertig ist\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_NO_CONTENT));\r\n\t\t\r\n \t// Fehlschlagendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n\t\tfinal JsonObjectBuilder job1 = getJsonBuilderFactory().createObjectBuilder();\r\n \tkeys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob1.add(\"kontoinhaber\", neuerKontoinhaber);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob1.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tjsonObject = job1.build();\r\n\t\tresponse = given().contentType(APPLICATION_JSON)\r\n\t\t\t\t .body(jsonObject.toString())\r\n\t\t .auth()\r\n\t\t .basic(username, password)\r\n\t\t .put(ZAHLUNGSINFORMATIONEN_PATH);\r\n \t\r\n\t\t// Then\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_CONFLICT));\r\n\t\t\r\n\t\tLOGGER.debugf(\"ENDE\");\r\n\t}",
"@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}",
"@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n protected void executeUpdate(final String requestId, DSRequest request, final DSResponse response)\n {\n JavaScriptObject data = request.getData();\n final ListGridRecord rec = new ListGridRecord(data);\n ContactDTO testRec = new ContactDTO();\n copyValues(rec, testRec);\n service.update(testRec, new AsyncCallback<Void>()\n {\n @Override\n public void onFailure(Throwable caught)\n {\n response.setStatus(RPCResponse.STATUS_FAILURE);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have NOT been saved!\");\n }\n\n @Override\n public void onSuccess(Void result)\n {\n ListGridRecord[] list = new ListGridRecord[1];\n // We do not receive removed record from server.\n // Return record from request.\n list[0] = rec;\n response.setData(list);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have been saved!\");\n }\n });\n }",
"@Override\n\tpublic Integer update(Map<String, Object> params) throws Exception {\n\t\treturn bankService.update(params);\n\t}",
"@TargetMetric\n @Override\n public RespResult<SqlExecRespDto> executeUpdate(String username, SqlExecReqDto update) {\n return null;\n }",
"protected abstract void update();",
"protected abstract void update();",
"public void update() {\n }",
"public void executeUpdate(Representation entity, T entry, AbstractUpdate updateObject) throws ResourceException {\r\n\r\n\t\tConnection c = null;\r\n\t\t// TODO it is inefficient to instantiate executor in all classes\r\n\t\tUpdateExecutor executor = new UpdateExecutor();\r\n\t\ttry {\r\n\t\t\tDBConnection dbc = new DBConnection(getContext());\r\n\t\t\tc = dbc.getConnection(30, true, 5);\r\n\r\n\t\t\texecutor.setConnection(c);\r\n\t\t\texecutor.open();\r\n\t\t\texecutor.process(updateObject);\r\n\r\n\t\t\tcustomizeEntry(entry, c);\r\n\r\n\t\t\tQueryURIReporter<T, Q> uriReporter = getURUReporter(getRequest());\r\n\t\t\tif (uriReporter != null) {\r\n\t\t\t\tgetResponse().setLocationRef(uriReporter.getURI(entry));\r\n\t\t\t\tgetResponse().setEntity(uriReporter.getURI(entry), MediaType.TEXT_HTML);\r\n\t\t\t}\r\n\t\t\tgetResponse().setStatus(Status.SUCCESS_OK);\r\n\t\t\tonUpdateSuccess();\r\n\t\t} catch (SQLException x) {\r\n\t\t\tContext.getCurrentLogger().severe(x.getMessage());\r\n\t\t\tgetResponse().setStatus(Status.CLIENT_ERROR_FORBIDDEN, x, x.getMessage());\r\n\t\t\tgetResponse().setEntity(null);\r\n\t\t} catch (ProcessorException x) {\r\n\t\t\tContext.getCurrentLogger().severe(x.getMessage());\r\n\t\t\tgetResponse().setStatus((x.getCause() instanceof SQLException) ? Status.CLIENT_ERROR_FORBIDDEN\r\n\t\t\t\t\t: Status.SERVER_ERROR_INTERNAL, x, x.getMessage());\r\n\t\t\tgetResponse().setEntity(null);\r\n\t\t} catch (Exception x) {\r\n\t\t\tContext.getCurrentLogger().severe(x.getMessage());\r\n\t\t\tgetResponse().setStatus(Status.SERVER_ERROR_INTERNAL, x, x.getMessage());\r\n\t\t\tgetResponse().setEntity(null);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\texecutor.close();\r\n\t\t\t} catch (Exception x) {\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tif (c != null)\r\n\t\t\t\t\tc.close();\r\n\t\t\t} catch (Exception x) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public final void doPut() {\n try {\n checkPermissions(getRequest());\n if (id == null) {\n throw new APIMissingIdException(getRequestURL());\n }\n\n final String inputStream = getInputStream();\n if (inputStream.length() == 0) {\n api.runUpdate(id, new HashMap<String, String>());\n return;\n }\n\n Item.setApplyValidatorMandatoryByDefault(false);\n final IItem item = getJSonStreamAsItem();\n api.runUpdate(id, getAttributesWithDeploysAsJsonString(item));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void attemptToUpdate();",
"@Override\n public MockResponse handleUpdate(RecordedRequest request) {\n return process(request, putHandler);\n }",
"public void doUpdate() throws Exception\r\n\t\t{\r\n\t\tmyRouteGroup.update(tuList);\r\n\t\t}",
"public void update() throws VcsException;",
"public void update() {\n\t\t\n\t}",
"@Override\n\tpublic void updateRequest(TestExec testExec, Request request) {\n\t\tthis.updateRequest(request);\n\t}",
"@Override\n\tpublic void update(UpdateInfo updateInfo) {\n\t\t\n\t}",
"Account.Update update();",
"public void testUpdate() {\n TUpdate_Input[] PriceLists_update_in = new TUpdate_Input[] { PriceList_update };\n TUpdate_Return[] PriceLists_update_out = priceListService.update(PriceLists_update_in);\n // test if update was successful\n assertEquals(\"update result set\", 1, PriceLists_update_out.length);\n\n TUpdate_Return PriceList_update_out = PriceLists_update_out[0];\n assertNoError(PriceList_update_out.getError());\n assertEquals(\"updated?\", true, PriceList_update_out.getUpdated());\n }",
"void filterUpdate(ServerContext context, UpdateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);",
"public void update() {\n\n }",
"public void update() {\n\n }",
"@Override\n\tpublic void execute(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tint newsId = 1000;\n\t\tString catCode = \"\";\n\t\tString userInfoCode = \"\";\n\t\tString newsTittle = \"\";\n\t\tString newsDesc = \"\";\n\t\tString newsPath = \"\";\n\t\tString newsImg = \"\";\n\t\tString newsDate = \"\";\n\t\tNewsDAO dao = new NewsDAO(); /* Instantiate DAO object */\n\t\t\n\t\tif(dao.update(new News(newsId, catCode, userInfoCode, \n\t\t\t\tnewsTittle, newsDesc, newsPath, newsImg, newsDate))){\n\t\t\tresponse.getWriter().write(\"News Updated\"); /* Update Successful */\n\t\t}\n\t\telse{\n\t\t\tresponse.getWriter().write(\"New Update Unsuccessfuly\"); /* Update Unsuccessful */\n\t\t}\n\t\t\n\n\t\n\t}",
"boolean update();",
"private void update() {\n ambianceModel.ambiance.uniq_id = ambianceModel._id.$oid;\n\n RestAdapter restAdapter = new RestAdapter.Builder().setLogLevel(RestAdapter.LogLevel.FULL).setEndpoint(getResources().getString(R.string.api)).build();\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.disableHtmlEscaping();\n final Gson gson = builder.create();\n Request r = new Request(Singleton.token, ambianceModel._id.$oid, ambianceModel);\n String json = gson.toJson(r);\n Log.v(\"Ambiance activity\", json);\n\n final Lumhueapi lumhueapi = restAdapter.create(Lumhueapi.class);\n lumhueapi.updateAmbiance(r, new Callback<AmbianceApplyResponse>() {\n @Override\n public void success(AmbianceApplyResponse ambianceApplyResponse, Response response) {\n Log.v(\"Ambiance activity\", \"It worked\");\n }\n\n @Override\n public void failure(RetrofitError error) {\n String tv = error.getMessage();\n Log.v(\"Ambiance activity\", tv + \"\");\n }\n });\n }",
"public UpdateRequest() {\n super(ServiceType.UPDATE);\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@ResponseStatus(code=HttpStatus.OK)\r\n\t@RequestMapping(value=\"/update\", method=RequestMethod.GET)\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"StudentRestController.Update()_________\");\r\n\t}",
"@Override\n public void executeUpdate() {\n EventBus.publish(new DialogCraftingReceivedEvent(requestId, title, groups, craftItems));\n }",
"private void updateAll() {\n updateAction();\n updateQueryViews();\n }",
"interface Update extends UpdateStages.WithLevel, UpdateStages.WithNotes, UpdateStages.WithOwners {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n ManagementLockObject apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n ManagementLockObject apply(Context context);\n }",
"@Override\n protected void executeLowLevelRequest() {\n doPutItem();\n }",
"public void update() ;",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"private void executeUpdate()\n\t\t\tthrows TranslatorException {\n\t\tUpdate ucommand = (Update) command;\t\n\t\t\n\t\tTable t = metadata.getTable(ucommand.getTable().getMetadataObject().getFullName());\n//\t\tList<ForeignKey> fks = t.getForeignKeys();\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\t updateChildObject(t);\n\t\t\t return;\n\t\t}\n\n\t}",
"@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}",
"public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }",
"public<T> Future<Void> update(String pathinfo) throws APIException, CadiException {\n\t\tfinal int idx = pathinfo.indexOf('?');\n\t\tfinal String qp; \n\t\tif(idx>=0) {\n\t\t\tqp=pathinfo.substring(idx+1);\n\t\t\tpathinfo=pathinfo.substring(0,idx);\n\t\t} else {\n\t\t\tqp=queryParams;\n\t\t}\n\n\t\tEClient<CT> client = client();\n\t\tclient.setMethod(PUT);\n\t\tclient.addHeader(CONTENT_TYPE, typeString(Void.class));\n\t\tclient.setQueryParams(qp);\n\t\tclient.setFragment(fragment);\n\t\tclient.setPathInfo(pathinfo);\n//\t\tclient.setPayload(new EClient.Transfer() {\n//\t\t\t@Override\n//\t\t\tpublic void transfer(OutputStream os) throws IOException, APIException {\n//\t\t\t}\n//\t\t});\n\t\tclient.send();\n\t\tqueryParams = fragment = null;\n\t\treturn client.future(null);\n\t}",
"public void updateEntity();",
"private static ResponseCode update(InternalRequestHeader header,\n CommandPacket commandPacket,\n String guid, JSONObject json, UpdateOperation operation,\n String writer, String signature, String message,\n Date timestamp, ClientRequestHandlerInterface handler) {\n try {\n return NSUpdateSupport.executeUpdateLocal(header, commandPacket, guid, null,\n writer, signature, message, timestamp, operation,\n null, null, -1, new ValuesMap(json), handler.getApp(), false);\n } catch (NoSuchAlgorithmException | InvalidKeySpecException | InvalidKeyException |\n SignatureException | JSONException | IOException | InternalRequestException |\n FailedDBOperationException | RecordNotFoundException | FieldNotFoundException e) {\n LOGGER.log(Level.FINE, \"Update threw error: {0}\", e);\n return ResponseCode.UPDATE_ERROR;\n }\n }",
"public void update(){\n \t//NOOP\n }",
"Motivo update(Motivo update);",
"@Override\n\tpublic void update(Map<String, Object> params)\n\t{\n\t}",
"UpdateWorkerResult updateWorker(UpdateWorkerRequest updateWorkerRequest);",
"@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tint answerpk = Integer.parseInt(request.getParameter(\"answerpk\"));\n\t\tString answertext = request.getParameter(\"answertext\");\n\t\tSystem.out.println(answerpk + answertext);\n\t\tQnaDao dao = new QnaDao();\n\t\tdao.AdminAnswerUpdateAction(answerpk, answertext);\n\t}",
"void update(CE entity);",
"public void executeUpdate(String query) {\n \ttry {\n\t\t\tst.executeUpdate(query);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void sendUpdate() {\n JSONObject obj = new JSONObject();\n String url = (\"http://coms-309-hv-3.cs.iastate.edu:8080/user/update\");\n RequestQueue queue = Volley.newRequestQueue(this);\n\n try {\n obj.put(\"email\", emailEdit.getText()); //string\n obj.put(\"name\", nameEdit.getText()); //string\n obj.put(\"age\", Integer.parseInt(ageEdit.getText().toString())); //int\n obj.put(\"height\", Integer.parseInt(heightEdit.getText().toString())); //int\n obj.put(\"weight\", Integer.parseInt(weightEdit.getText().toString())); //int\n obj.put(\"lifestyle\", lifestyleString(activityEdit)); //string\n obj.put(\"gender\", genderEdit.getSelectedItem().toString()); //string\n\n } catch (JSONException ex) {\n ex.printStackTrace();\n }\n\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, url, obj,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n int responseCode = 1;\n String responseMessage = \"\";\n try {\n responseCode = response.getInt(\"response\");\n responseMessage = response.getString(\"message\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n toastKickoff(\"User Updated: \" + responseCode + \" \" + responseMessage);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"HttpClient\", \"error: \" + error.toString());\n toastKickoff(\"Internal Error\");\n }\n });\n\n queue.add(request);\n\n }",
"public void update() {\r\n\t\t\r\n\t}",
"public boolean update(ModelObject obj);",
"public void testUpdate() {\n Basket_up.setPath(BasketPath);\n TUpdate_Return[] Baskets_update_out = basketService.update(new TUpdate_Input[] { Basket_up });\n assertNoError(Baskets_update_out[0].getError());\n assertNull(\"No FormErrors\", Baskets_update_out[0].getFormErrors());\n assertTrue(\"updated?\", Baskets_update_out[0].getUpdated());\n }",
"public int updateRequestData(Request input) throws SQLException{\n String sqlquery = \"UPDATE Request SET Requester=?, ModelName=?, Worker=?,Ps=?, Status=?, ExecutionTime=?,Accuracy=?, DownloadUrl=? WHERE id=?\";\n PreparedStatement statement = this.connection.prepareStatement(sqlquery);\n this.setCreateAndUpdateStatement(statement,input);\n statement.setInt(9,input.getId());\n return statement.executeUpdate();\n }",
"public void update(User user);",
"@Override\n\tpublic void updateAction(Client input) {\n\t\t\n\t}",
"interface Update\n extends UpdateStages.WithBranch,\n UpdateStages.WithFolderPath,\n UpdateStages.WithAutoSync,\n UpdateStages.WithPublishRunbook,\n UpdateStages.WithSecurityToken,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n SourceControl apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n SourceControl apply(Context context);\n }",
"void update(User user);",
"void update(User user);"
] | [
"0.72226787",
"0.70714223",
"0.7043263",
"0.7031882",
"0.6709031",
"0.6709031",
"0.6665146",
"0.66050917",
"0.6483652",
"0.64540976",
"0.6447508",
"0.64428866",
"0.64427507",
"0.6424095",
"0.6407814",
"0.63771534",
"0.63664037",
"0.63458055",
"0.63020176",
"0.62802196",
"0.62756664",
"0.6260609",
"0.6259944",
"0.6257903",
"0.6252194",
"0.6229545",
"0.6192722",
"0.6180345",
"0.6168328",
"0.61573666",
"0.61517364",
"0.613992",
"0.6131726",
"0.61179346",
"0.61045784",
"0.6101866",
"0.6101118",
"0.61001545",
"0.61001545",
"0.6098178",
"0.6089424",
"0.60888636",
"0.6084344",
"0.6084344",
"0.6084344",
"0.6084344",
"0.60834146",
"0.6073336",
"0.60602695",
"0.6051825",
"0.603652",
"0.6027161",
"0.5991014",
"0.5977012",
"0.59766096",
"0.597094",
"0.5969318",
"0.5969318",
"0.59492993",
"0.59464884",
"0.5939562",
"0.5934555",
"0.591489",
"0.591489",
"0.591489",
"0.5911277",
"0.5906604",
"0.5905268",
"0.5903836",
"0.5876603",
"0.5866674",
"0.58641475",
"0.58641475",
"0.58641475",
"0.58641475",
"0.58641475",
"0.58641475",
"0.58641475",
"0.5854995",
"0.58429927",
"0.58411956",
"0.58400255",
"0.5839706",
"0.5835387",
"0.5834223",
"0.58338237",
"0.5827087",
"0.58258516",
"0.58172643",
"0.58160204",
"0.5815612",
"0.5812491",
"0.5812287",
"0.5802935",
"0.58019453",
"0.5800988",
"0.579715",
"0.579396",
"0.5792855",
"0.57911456",
"0.57911456"
] | 0.0 | -1 |
Executes the update request. | EventChannel apply(Context context); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void executeUpdate();",
"void executeUpdate();",
"public void executeUpdate(String request) {\n try {\r\n st.executeUpdate(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }",
"public void update(){}",
"public void update(){}",
"public abstract Response update(Request request, Response response);",
"JobResponse.Update update();",
"private void updateFromProvider() {\n if(isUpdating.get()){\n isHaveUpdateRequest.set(true);\n return;\n }\n mUpdateExecutorService.execute(new UpdateThread());\n }",
"public int updateUser(Candidat c) {\n String url = StaticVars.baseURL + \"/updateuser\";\n System.out.println(url);\n ConnectionRequest req = new ConnectionRequest();\n\n req.setUrl(url);\n req.setPost(true);\n\nreq.setHttpMethod(\"PUT\"); \n\n\n String can = String.valueOf(currentCandidat.getId());\n req.addArgument(\"id\", can);\n String login =String .valueOf(currentCandidat.getLogin());\n req.addArgument(\"login\",login);\n req.addArgument(\"email\", String .valueOf(currentCandidat.getEmail()));\n req.addArgument(\"pays\", String .valueOf(currentCandidat.getPays()));\n req.addArgument(\"ville\", String .valueOf(currentCandidat.getVille()));\n req.addArgument(\"tel\", Integer.toString(currentCandidat.getTel()));\n req.addArgument(\"domaine\", String .valueOf(currentCandidat.getDomaine()));\n\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n result = req.getResponseCode();\n \n System.out.println(result);\n }\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n\n return result;\n }",
"public final void update(){\n if(waitingToExecute){\n execute();\n waitingToExecute = false;\n }\n }",
"public abstract int execUpdate(String query) ;",
"public abstract void update(@Nonnull Response response);",
"@Override\r\n\tpublic void doUpdate(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"public void run() {\n\n if (cancelUpdate(persistentEntity, entityAccess)) {\n return;\n }\n\n updateEntry(persistentEntity, updateId, e);\n firePostUpdateEvent(persistentEntity, entityAccess);\n }",
"public void update() {\n manager.update();\n }",
"public void update() {}",
"public HttpStatus executeUpdate(String updateQuery) throws RmesException {\n\t\tHttpStatus status = repositoryUtils.executeUpdate(updateQuery, repositoryUtils.initRepository(config.getRdfServerPublicationInterne(), config.getRepositoryIdPublicationInterne()));\n\t\tif (status.is2xxSuccessful() ) {\n\t\t\tstatus = repositoryUtils.executeUpdate(updateQuery, repositoryUtils.initRepository(config.getRdfServerPublication(), config.getRepositoryIdPublication()));\n\t\t}\n\t\treturn status;\n\t}",
"void requestUpdate(UUIDBase uuid, OpResult opResult) {\n if (opResult.isComplete()) {\n requestComplete(uuid, opResult);\n } else {\n _requestInProgress(uuid);\n }\n }",
"@PUT\n @Path(\"/update\")\n public void put() {\n System.out.println(\"PUT invoked\");\n }",
"public void update(int updateType);",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"private void update(RequestInfo requestInfo) throws DefectException {\r\n\t\tlog.info(\"Start - update\");\r\n\t\tcreateInstance();\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to update, request information is missing\");\r\n\t\t}\r\n try{\r\n\r\n \tString ref = requestInfo.getRefField();\r\n\r\n \t//Update\r\n \tJsonObject updateEntry = convertMapToJson(requestInfo.getEntry().get(RallyConstants.UPDATE));\t \r\n \tUpdateRequest updateRequest = new UpdateRequest(ref, updateEntry);\r\n \tUpdateResponse updateResponse = null;\r\n\r\n \ttry {\r\n \t \t\t\tupdateResponse = restApi.update(updateRequest);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"failed to update, message : \" + e.toString() + \"RequestInfo -\" + requestInfo);\r\n\t \tthrow new DefectException(\"failed to update, message : \" + e.toString());\r\n\t\t\t}\r\n\r\n if (updateResponse.wasSuccessful()) {\r\n \tlog.info(String.format(\"Updated %s\", updateResponse.getObject().get(RallyConstants._REF).getAsString())); \r\n } else {\r\n List<String> lstResult = new ArrayList<String>();\r\n for (String err : updateResponse.getErrors()) {\r\n System.err.println(\"\\t\" + err);\r\n lstResult.add(err);\r\n }\r\n log.error(\"Error in updating : \" + lstResult);\r\n throw new DefectException(\"Error in updating : \" + lstResult);\r\n }\r\n } finally {\r\n \tcloseDefect();\r\n \tlog.info(\"End - update\");\r\n }\r\n \t}",
"public String update(String id, String datetime, String description, String request, String status);",
"@Override\n\t\t\t\tpublic void execute()\n\t\t\t\t{\n\n\t\t\t\t\tMobiculeLogger.verbose(\"execute()\");\n\t\t\t\t\tresponse = updateCustomerFacade.updateCustomerDetails();\n\t\t\t\t}",
"public String doUpdate(HttpServletRequest request,\n HttpServletResponse response) {\n return null;\n }",
"@Override\r\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\r\n\t}",
"<T extends BaseDto> void executeUpdate(String reqQuery, T req, Connection conn);",
"@Override\r\n\tpublic void update(HttpServletResponse paramHttpServletResponse) {\n\t\t\r\n\t}",
"public void receivedUpdateFromServer();",
"interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithCancelRequested,\n UpdateStages.WithState,\n UpdateStages.WithReturnAddress,\n UpdateStages.WithReturnShipping,\n UpdateStages.WithDeliveryPackage,\n UpdateStages.WithLogLevel,\n UpdateStages.WithBackupDriveManifest,\n UpdateStages.WithDriveList {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n JobResponse apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n JobResponse apply(Context context);\n }",
"@Test\r\n\tpublic void updateUpdate() throws InterruptedException, ExecutionException {\r\n\t\tLOGGER.debugf(\"BEGINN\");\r\n\t\t\r\n\t\t// Given\r\n\t\tfinal Long zahlId = ZAHLUNGSINFORMATION_ID_UPDATE;\r\n \tfinal String neuerKontoinhaber = NEUER_KONTOINHABER;\r\n \tfinal String neuerKontoinhaber2 = NEUER_KONTOINHABER_2;\r\n\t\tfinal String username = USERNAME_ADMIN;\r\n\t\tfinal String password = PASSWORD_ADMIN;\r\n\t\t\r\n\t\t// When\r\n\t\tResponse response = given().header(ACCEPT, APPLICATION_JSON)\r\n\t\t\t\t .pathParameter(ZAHLUNGSINFORMATIONEN_ID_PATH_PARAM, zahlId)\r\n .get(ZAHLUNGSINFORMATIONEN_ID_PATH);\r\n\t\tJsonObject jsonObject;\r\n\t\ttry (final JsonReader jsonReader =\r\n\t\t\t\t getJsonReaderFactory().createReader(new StringReader(response.asString()))) {\r\n\t\t\tjsonObject = jsonReader.readObject();\r\n\t\t}\r\n\r\n \t// Konkurrierendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n \tfinal JsonObjectBuilder job2 = getJsonBuilderFactory().createObjectBuilder();\r\n \tSet<String> keys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob2.add(\"kontoinhaber\", neuerKontoinhaber2);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob2.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tfinal JsonObject jsonObject2 = job2.build();\r\n \tfinal ConcurrentUpdate concurrentUpdate = new ConcurrentUpdate(jsonObject2, ZAHLUNGSINFORMATIONEN_PATH,\r\n \t\t\t username, password);\r\n \tfinal ExecutorService executorService = Executors.newSingleThreadExecutor();\r\n\t\tfinal Future<Response> future = executorService.submit(concurrentUpdate);\r\n\t\tresponse = future.get(); // Warten bis der \"parallele\" Thread fertig ist\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_NO_CONTENT));\r\n\t\t\r\n \t// Fehlschlagendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n\t\tfinal JsonObjectBuilder job1 = getJsonBuilderFactory().createObjectBuilder();\r\n \tkeys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob1.add(\"kontoinhaber\", neuerKontoinhaber);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob1.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tjsonObject = job1.build();\r\n\t\tresponse = given().contentType(APPLICATION_JSON)\r\n\t\t\t\t .body(jsonObject.toString())\r\n\t\t .auth()\r\n\t\t .basic(username, password)\r\n\t\t .put(ZAHLUNGSINFORMATIONEN_PATH);\r\n \t\r\n\t\t// Then\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_CONFLICT));\r\n\t\t\r\n\t\tLOGGER.debugf(\"ENDE\");\r\n\t}",
"@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}",
"@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n protected void executeUpdate(final String requestId, DSRequest request, final DSResponse response)\n {\n JavaScriptObject data = request.getData();\n final ListGridRecord rec = new ListGridRecord(data);\n ContactDTO testRec = new ContactDTO();\n copyValues(rec, testRec);\n service.update(testRec, new AsyncCallback<Void>()\n {\n @Override\n public void onFailure(Throwable caught)\n {\n response.setStatus(RPCResponse.STATUS_FAILURE);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have NOT been saved!\");\n }\n\n @Override\n public void onSuccess(Void result)\n {\n ListGridRecord[] list = new ListGridRecord[1];\n // We do not receive removed record from server.\n // Return record from request.\n list[0] = rec;\n response.setData(list);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have been saved!\");\n }\n });\n }",
"@TargetMetric\n @Override\n public RespResult<SqlExecRespDto> executeUpdate(String username, SqlExecReqDto update) {\n return null;\n }",
"@Override\n\tpublic Integer update(Map<String, Object> params) throws Exception {\n\t\treturn bankService.update(params);\n\t}",
"protected abstract void update();",
"protected abstract void update();",
"public void update() {\n }",
"@Override\n public final void doPut() {\n try {\n checkPermissions(getRequest());\n if (id == null) {\n throw new APIMissingIdException(getRequestURL());\n }\n\n final String inputStream = getInputStream();\n if (inputStream.length() == 0) {\n api.runUpdate(id, new HashMap<String, String>());\n return;\n }\n\n Item.setApplyValidatorMandatoryByDefault(false);\n final IItem item = getJSonStreamAsItem();\n api.runUpdate(id, getAttributesWithDeploysAsJsonString(item));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"public void executeUpdate(Representation entity, T entry, AbstractUpdate updateObject) throws ResourceException {\r\n\r\n\t\tConnection c = null;\r\n\t\t// TODO it is inefficient to instantiate executor in all classes\r\n\t\tUpdateExecutor executor = new UpdateExecutor();\r\n\t\ttry {\r\n\t\t\tDBConnection dbc = new DBConnection(getContext());\r\n\t\t\tc = dbc.getConnection(30, true, 5);\r\n\r\n\t\t\texecutor.setConnection(c);\r\n\t\t\texecutor.open();\r\n\t\t\texecutor.process(updateObject);\r\n\r\n\t\t\tcustomizeEntry(entry, c);\r\n\r\n\t\t\tQueryURIReporter<T, Q> uriReporter = getURUReporter(getRequest());\r\n\t\t\tif (uriReporter != null) {\r\n\t\t\t\tgetResponse().setLocationRef(uriReporter.getURI(entry));\r\n\t\t\t\tgetResponse().setEntity(uriReporter.getURI(entry), MediaType.TEXT_HTML);\r\n\t\t\t}\r\n\t\t\tgetResponse().setStatus(Status.SUCCESS_OK);\r\n\t\t\tonUpdateSuccess();\r\n\t\t} catch (SQLException x) {\r\n\t\t\tContext.getCurrentLogger().severe(x.getMessage());\r\n\t\t\tgetResponse().setStatus(Status.CLIENT_ERROR_FORBIDDEN, x, x.getMessage());\r\n\t\t\tgetResponse().setEntity(null);\r\n\t\t} catch (ProcessorException x) {\r\n\t\t\tContext.getCurrentLogger().severe(x.getMessage());\r\n\t\t\tgetResponse().setStatus((x.getCause() instanceof SQLException) ? Status.CLIENT_ERROR_FORBIDDEN\r\n\t\t\t\t\t: Status.SERVER_ERROR_INTERNAL, x, x.getMessage());\r\n\t\t\tgetResponse().setEntity(null);\r\n\t\t} catch (Exception x) {\r\n\t\t\tContext.getCurrentLogger().severe(x.getMessage());\r\n\t\t\tgetResponse().setStatus(Status.SERVER_ERROR_INTERNAL, x, x.getMessage());\r\n\t\t\tgetResponse().setEntity(null);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\texecutor.close();\r\n\t\t\t} catch (Exception x) {\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tif (c != null)\r\n\t\t\t\t\tc.close();\r\n\t\t\t} catch (Exception x) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void attemptToUpdate();",
"@Override\n public MockResponse handleUpdate(RecordedRequest request) {\n return process(request, putHandler);\n }",
"public void doUpdate() throws Exception\r\n\t\t{\r\n\t\tmyRouteGroup.update(tuList);\r\n\t\t}",
"public void update() throws VcsException;",
"public void update() {\n\t\t\n\t}",
"@Override\n\tpublic void updateRequest(TestExec testExec, Request request) {\n\t\tthis.updateRequest(request);\n\t}",
"@Override\n\tpublic void update(UpdateInfo updateInfo) {\n\t\t\n\t}",
"Account.Update update();",
"public void testUpdate() {\n TUpdate_Input[] PriceLists_update_in = new TUpdate_Input[] { PriceList_update };\n TUpdate_Return[] PriceLists_update_out = priceListService.update(PriceLists_update_in);\n // test if update was successful\n assertEquals(\"update result set\", 1, PriceLists_update_out.length);\n\n TUpdate_Return PriceList_update_out = PriceLists_update_out[0];\n assertNoError(PriceList_update_out.getError());\n assertEquals(\"updated?\", true, PriceList_update_out.getUpdated());\n }",
"void filterUpdate(ServerContext context, UpdateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);",
"public void update() {\n\n }",
"public void update() {\n\n }",
"@Override\n\tpublic void execute(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tint newsId = 1000;\n\t\tString catCode = \"\";\n\t\tString userInfoCode = \"\";\n\t\tString newsTittle = \"\";\n\t\tString newsDesc = \"\";\n\t\tString newsPath = \"\";\n\t\tString newsImg = \"\";\n\t\tString newsDate = \"\";\n\t\tNewsDAO dao = new NewsDAO(); /* Instantiate DAO object */\n\t\t\n\t\tif(dao.update(new News(newsId, catCode, userInfoCode, \n\t\t\t\tnewsTittle, newsDesc, newsPath, newsImg, newsDate))){\n\t\t\tresponse.getWriter().write(\"News Updated\"); /* Update Successful */\n\t\t}\n\t\telse{\n\t\t\tresponse.getWriter().write(\"New Update Unsuccessfuly\"); /* Update Unsuccessful */\n\t\t}\n\t\t\n\n\t\n\t}",
"boolean update();",
"private void update() {\n ambianceModel.ambiance.uniq_id = ambianceModel._id.$oid;\n\n RestAdapter restAdapter = new RestAdapter.Builder().setLogLevel(RestAdapter.LogLevel.FULL).setEndpoint(getResources().getString(R.string.api)).build();\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.disableHtmlEscaping();\n final Gson gson = builder.create();\n Request r = new Request(Singleton.token, ambianceModel._id.$oid, ambianceModel);\n String json = gson.toJson(r);\n Log.v(\"Ambiance activity\", json);\n\n final Lumhueapi lumhueapi = restAdapter.create(Lumhueapi.class);\n lumhueapi.updateAmbiance(r, new Callback<AmbianceApplyResponse>() {\n @Override\n public void success(AmbianceApplyResponse ambianceApplyResponse, Response response) {\n Log.v(\"Ambiance activity\", \"It worked\");\n }\n\n @Override\n public void failure(RetrofitError error) {\n String tv = error.getMessage();\n Log.v(\"Ambiance activity\", tv + \"\");\n }\n });\n }",
"public UpdateRequest() {\n super(ServiceType.UPDATE);\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@ResponseStatus(code=HttpStatus.OK)\r\n\t@RequestMapping(value=\"/update\", method=RequestMethod.GET)\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"StudentRestController.Update()_________\");\r\n\t}",
"@Override\n public void executeUpdate() {\n EventBus.publish(new DialogCraftingReceivedEvent(requestId, title, groups, craftItems));\n }",
"private void updateAll() {\n updateAction();\n updateQueryViews();\n }",
"interface Update extends UpdateStages.WithLevel, UpdateStages.WithNotes, UpdateStages.WithOwners {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n ManagementLockObject apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n ManagementLockObject apply(Context context);\n }",
"@Override\n protected void executeLowLevelRequest() {\n doPutItem();\n }",
"public void update() ;",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"private void executeUpdate()\n\t\t\tthrows TranslatorException {\n\t\tUpdate ucommand = (Update) command;\t\n\t\t\n\t\tTable t = metadata.getTable(ucommand.getTable().getMetadataObject().getFullName());\n//\t\tList<ForeignKey> fks = t.getForeignKeys();\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\t updateChildObject(t);\n\t\t\t return;\n\t\t}\n\n\t}",
"public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }",
"@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}",
"public<T> Future<Void> update(String pathinfo) throws APIException, CadiException {\n\t\tfinal int idx = pathinfo.indexOf('?');\n\t\tfinal String qp; \n\t\tif(idx>=0) {\n\t\t\tqp=pathinfo.substring(idx+1);\n\t\t\tpathinfo=pathinfo.substring(0,idx);\n\t\t} else {\n\t\t\tqp=queryParams;\n\t\t}\n\n\t\tEClient<CT> client = client();\n\t\tclient.setMethod(PUT);\n\t\tclient.addHeader(CONTENT_TYPE, typeString(Void.class));\n\t\tclient.setQueryParams(qp);\n\t\tclient.setFragment(fragment);\n\t\tclient.setPathInfo(pathinfo);\n//\t\tclient.setPayload(new EClient.Transfer() {\n//\t\t\t@Override\n//\t\t\tpublic void transfer(OutputStream os) throws IOException, APIException {\n//\t\t\t}\n//\t\t});\n\t\tclient.send();\n\t\tqueryParams = fragment = null;\n\t\treturn client.future(null);\n\t}",
"public void updateEntity();",
"private static ResponseCode update(InternalRequestHeader header,\n CommandPacket commandPacket,\n String guid, JSONObject json, UpdateOperation operation,\n String writer, String signature, String message,\n Date timestamp, ClientRequestHandlerInterface handler) {\n try {\n return NSUpdateSupport.executeUpdateLocal(header, commandPacket, guid, null,\n writer, signature, message, timestamp, operation,\n null, null, -1, new ValuesMap(json), handler.getApp(), false);\n } catch (NoSuchAlgorithmException | InvalidKeySpecException | InvalidKeyException |\n SignatureException | JSONException | IOException | InternalRequestException |\n FailedDBOperationException | RecordNotFoundException | FieldNotFoundException e) {\n LOGGER.log(Level.FINE, \"Update threw error: {0}\", e);\n return ResponseCode.UPDATE_ERROR;\n }\n }",
"public void update(){\n \t//NOOP\n }",
"Motivo update(Motivo update);",
"@Override\n\tpublic void update(Map<String, Object> params)\n\t{\n\t}",
"UpdateWorkerResult updateWorker(UpdateWorkerRequest updateWorkerRequest);",
"@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tint answerpk = Integer.parseInt(request.getParameter(\"answerpk\"));\n\t\tString answertext = request.getParameter(\"answertext\");\n\t\tSystem.out.println(answerpk + answertext);\n\t\tQnaDao dao = new QnaDao();\n\t\tdao.AdminAnswerUpdateAction(answerpk, answertext);\n\t}",
"public void executeUpdate(String query) {\n \ttry {\n\t\t\tst.executeUpdate(query);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"void update(CE entity);",
"public void update() {\r\n\t\t\r\n\t}",
"public void sendUpdate() {\n JSONObject obj = new JSONObject();\n String url = (\"http://coms-309-hv-3.cs.iastate.edu:8080/user/update\");\n RequestQueue queue = Volley.newRequestQueue(this);\n\n try {\n obj.put(\"email\", emailEdit.getText()); //string\n obj.put(\"name\", nameEdit.getText()); //string\n obj.put(\"age\", Integer.parseInt(ageEdit.getText().toString())); //int\n obj.put(\"height\", Integer.parseInt(heightEdit.getText().toString())); //int\n obj.put(\"weight\", Integer.parseInt(weightEdit.getText().toString())); //int\n obj.put(\"lifestyle\", lifestyleString(activityEdit)); //string\n obj.put(\"gender\", genderEdit.getSelectedItem().toString()); //string\n\n } catch (JSONException ex) {\n ex.printStackTrace();\n }\n\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, url, obj,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n int responseCode = 1;\n String responseMessage = \"\";\n try {\n responseCode = response.getInt(\"response\");\n responseMessage = response.getString(\"message\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n toastKickoff(\"User Updated: \" + responseCode + \" \" + responseMessage);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"HttpClient\", \"error: \" + error.toString());\n toastKickoff(\"Internal Error\");\n }\n });\n\n queue.add(request);\n\n }",
"public boolean update(ModelObject obj);",
"public int updateRequestData(Request input) throws SQLException{\n String sqlquery = \"UPDATE Request SET Requester=?, ModelName=?, Worker=?,Ps=?, Status=?, ExecutionTime=?,Accuracy=?, DownloadUrl=? WHERE id=?\";\n PreparedStatement statement = this.connection.prepareStatement(sqlquery);\n this.setCreateAndUpdateStatement(statement,input);\n statement.setInt(9,input.getId());\n return statement.executeUpdate();\n }",
"public void testUpdate() {\n Basket_up.setPath(BasketPath);\n TUpdate_Return[] Baskets_update_out = basketService.update(new TUpdate_Input[] { Basket_up });\n assertNoError(Baskets_update_out[0].getError());\n assertNull(\"No FormErrors\", Baskets_update_out[0].getFormErrors());\n assertTrue(\"updated?\", Baskets_update_out[0].getUpdated());\n }",
"public void update(User user);",
"@Override\n\tpublic void updateAction(Client input) {\n\t\t\n\t}",
"interface Update\n extends UpdateStages.WithBranch,\n UpdateStages.WithFolderPath,\n UpdateStages.WithAutoSync,\n UpdateStages.WithPublishRunbook,\n UpdateStages.WithSecurityToken,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n SourceControl apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n SourceControl apply(Context context);\n }",
"void update(User user);",
"void update(User user);"
] | [
"0.72228557",
"0.7072062",
"0.70436513",
"0.7031844",
"0.6708018",
"0.6708018",
"0.66650116",
"0.660594",
"0.6483048",
"0.64539915",
"0.64482987",
"0.6442912",
"0.64421886",
"0.6424854",
"0.64084196",
"0.6375483",
"0.63657033",
"0.63448846",
"0.6304359",
"0.6277842",
"0.6274056",
"0.6260644",
"0.6260122",
"0.62577283",
"0.6253232",
"0.62296003",
"0.6191647",
"0.6180356",
"0.616839",
"0.61586314",
"0.61515003",
"0.61395705",
"0.6130854",
"0.6119653",
"0.61051357",
"0.6101302",
"0.6100808",
"0.61000174",
"0.61000174",
"0.6097434",
"0.60884845",
"0.6088308",
"0.6083735",
"0.6083735",
"0.6083735",
"0.6083735",
"0.6083301",
"0.60720795",
"0.60590434",
"0.60512596",
"0.60359305",
"0.60284436",
"0.5989274",
"0.59762377",
"0.5975386",
"0.59701955",
"0.5968583",
"0.5968583",
"0.5950447",
"0.59460783",
"0.59392816",
"0.59338236",
"0.5914345",
"0.5914345",
"0.5914345",
"0.59107524",
"0.59080577",
"0.590553",
"0.59036577",
"0.5877759",
"0.5866575",
"0.58637875",
"0.58637875",
"0.58637875",
"0.58637875",
"0.58637875",
"0.58637875",
"0.58637875",
"0.5854337",
"0.5841174",
"0.58408725",
"0.5838577",
"0.583759",
"0.5834748",
"0.583467",
"0.5832198",
"0.5825497",
"0.5825048",
"0.5818168",
"0.58143973",
"0.58140475",
"0.5811832",
"0.58114755",
"0.5801191",
"0.58009404",
"0.5800733",
"0.57947594",
"0.57941175",
"0.57926005",
"0.578926",
"0.578926"
] | 0.0 | -1 |
The EventChannel update stages. | interface UpdateStages {
/** The stage of the EventChannel update allowing to specify source. */
interface WithSource {
/**
* Specifies the source property: Source of the event channel. This represents a unique resource in the
* partner's resource model..
*
* @param source Source of the event channel. This represents a unique resource in the partner's resource
* model.
* @return the next definition stage.
*/
Update withSource(EventChannelSource source);
}
/** The stage of the EventChannel update allowing to specify destination. */
interface WithDestination {
/**
* Specifies the destination property: Represents the destination of an event channel..
*
* @param destination Represents the destination of an event channel.
* @return the next definition stage.
*/
Update withDestination(EventChannelDestination destination);
}
/** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */
interface WithExpirationTimeIfNotActivatedUtc {
/**
* Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this
* timer expires while the corresponding partner topic is never activated, the event channel and
* corresponding partner topic are deleted..
*
* @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while
* the corresponding partner topic is never activated, the event channel and corresponding partner topic
* are deleted.
* @return the next definition stage.
*/
Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);
}
/** The stage of the EventChannel update allowing to specify filter. */
interface WithFilter {
/**
* Specifies the filter property: Information about the filter for the event channel..
*
* @param filter Information about the filter for the event channel.
* @return the next definition stage.
*/
Update withFilter(EventChannelFilter filter);
}
/** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */
interface WithPartnerTopicFriendlyDescription {
/**
* Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be
* set by the publisher/partner to show custom description for the customer partner topic. This will be
* helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..
*
* @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the
* publisher/partner to show custom description for the customer partner topic. This will be helpful to
* remove any ambiguity of the origin of creation of the partner topic for the customer.
* @return the next definition stage.
*/
Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannel.Update update();",
"Update withSource(EventChannelSource source);",
"Update withFilter(EventChannelFilter filter);",
"EventChannel apply();",
"EventChannel refresh();",
"@Override\n\tprotected void processPostUpdateStream(KStream<String, Event> events) {\n\n\t}",
"interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }",
"EventChannel refresh(Context context);",
"Update withDestination(EventChannelDestination destination);",
"@Override\n\tpublic void handleEventPlayerActionsUpdate( World world, List<Action> availableActions ) {\n\t\t\n\t}",
"EventChannel apply(Context context);",
"public void update(@Observes FirePushEventsEnum event) {\n switch(event) {\n case NODE_EVENT:\n this.nodeEventUpdateRequest.set(true);\n break;\n case RUN_TASK_EVENT:\n this.runTaskEventUpdateRequest.set(true);\n break;\n }\n }",
"@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }",
"public void update(){\r\n\r\n // update curState based on inputs\r\n // Perform state-transition actions \r\n switch(curState) {\r\n${nextstatecases}\r\n default:\r\n reset();\r\n break;\r\n }",
"protected void updateAll() {\n for (String key : listenerMap.keySet()) {\n updateValueForKey(key, true);\n }\n }",
"public void update(InputEvent event);",
"@Override\n public void update() {\n \n }",
"public void eventProgress() {\n inProgressState.doAction(context);\n System.out.println(context.getState().toString());\n\n // assign judge for event\n judge.assignJudge();\n\n // declare winner of the event\n System.out.print(\"\\nDeclare Winner\\n\");\n winner.declareWinner();\n\n System.out.print(\"\\nThe winner is : \"+winner.getWinner());\n\n // send message to the students\n Student student = new Student();\n student.sendWinnerNotificationToStudents();\n\n // end state of the event\n stopState.doAction(context);\n System.out.println(context.getState().toString());\n\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"public interface EventPlayerActionsUpdate {\n\tpublic void handleEventPlayerActionsUpdate( World world, List<Action> availableActions );\n}",
"@FXML\r\n\tprivate void updateStatus(ActionEvent event) {\r\n\t\tupdateAsset(AssetOperation.STATUS);\r\n\t}",
"@Override\n public void onStateUpdated(VertexStateUpdate event) {\n enqueueAndScheduleNextEvent(new VertexManagerEventOnVertexStateUpdate(event));\n }",
"@Override public void onStreamUpdate(final Set<Long> updatedChunks) {\n }",
"@Override\n public void update() {\n }",
"@Override\n public void update() {\n }",
"public void processEvents(Events events) {\n\n log.info(\"events processed: [{}]\", events.toString());\n }",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"@Override\n public void eventsChanged() {\n }",
"@Override\r\n\tpublic void update() {\n\t\tif (globalState != null) globalState.update(owner);\r\n\t\t\r\n\t\t// Execute the current state (if any)\r\n\t\tif (currentState != null && newStateEntered) currentState.update(owner);\r\n\t}",
"public void DispatchUpdates()\n {\n //Dispatch the updates.\n bBufferingUpdates = false;\n \n for(LaunchEntity entity : DispatchList)\n {\n for(LaunchServerSession session : Sessions.values())\n {\n if(session.CanReceiveUpdates())\n {\n session.SendEntity(entity);\n }\n }\n }\n }",
"@Override\n public void update() {\n\n }",
"@Override\n\tpublic void update(GameContainer gc, StateBasedGame sb, int delta) {\n\t\t\n\t}",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"@Override\n\tpublic void update(Event e) {\n\t}",
"public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"protected void onUpdated( E entity, GameState state, int index )\r\n\t{\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update(BaseGameHandler gameHandler)\r\n\t{\n\t}",
"public void update(){\n\t\tSystem.out.println(\"Return From Observer Pattern: \\n\" + theModel.getObserverState() \n\t\t+ \"\\n\");\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"interface UpdateStages {\n /** The stage of the SourceControl update allowing to specify branch. */\n interface WithBranch {\n /**\n * Specifies the branch property: The repo branch of the source control..\n *\n * @param branch The repo branch of the source control.\n * @return the next definition stage.\n */\n Update withBranch(String branch);\n }\n /** The stage of the SourceControl update allowing to specify folderPath. */\n interface WithFolderPath {\n /**\n * Specifies the folderPath property: The folder path of the source control. Path must be relative..\n *\n * @param folderPath The folder path of the source control. Path must be relative.\n * @return the next definition stage.\n */\n Update withFolderPath(String folderPath);\n }\n /** The stage of the SourceControl update allowing to specify autoSync. */\n interface WithAutoSync {\n /**\n * Specifies the autoSync property: The auto sync of the source control. Default is false..\n *\n * @param autoSync The auto sync of the source control. Default is false.\n * @return the next definition stage.\n */\n Update withAutoSync(Boolean autoSync);\n }\n /** The stage of the SourceControl update allowing to specify publishRunbook. */\n interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n Update withPublishRunbook(Boolean publishRunbook);\n }\n /** The stage of the SourceControl update allowing to specify securityToken. */\n interface WithSecurityToken {\n /**\n * Specifies the securityToken property: The authorization token for the repo of the source control..\n *\n * @param securityToken The authorization token for the repo of the source control.\n * @return the next definition stage.\n */\n Update withSecurityToken(SourceControlSecurityTokenProperties securityToken);\n }\n /** The stage of the SourceControl update allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }\n }",
"@Override\n public void update(ModelUpdate message) {\n calledMethods.add(\"update: \" + message.getEventType());\n }",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" update in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" update requested.\" );\n // start the update thread\n final UpdateThread updateThread = new UpdateThread();\n updateThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( updateThread.ended )\n {\n if ( updateThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n updateThread.message, parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add( updateThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" updated.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" updated.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"@Override\n public void update() {\n updateBuffs();\n }",
"@Override\r\n\tpublic void update() {\r\n\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void update() { }",
"@Override\n public void onWrite() {\n onChannelPreWrite();\n }",
"@Override\n\tpublic void onUpdate() {\n\t\tlistener.onUpdate();\n\t}",
"public void \n actionPerformed\n (\n ActionEvent e\n ) \n {\n String cmd = e.getActionCommand();\n if(cmd.equals(\"mode-changed\")) \n doModeChanged();\n else if(cmd.equals(\"method-changed\")) \n doMethodChanged();\n else if(cmd.equals(\"version-changed\")) {\n if(e.getSource() instanceof JCollectionField)\n\tdoVersionChanged((JCollectionField) e.getSource());\n }\n else\n super.actionPerformed(e);\n }",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}",
"public void updateFrame() {\n if (level != null) {\n for (GameEntity entity : entities) entity.update(this);\n pacman.update(this);\n checkCollisions();\n }\n }",
"@Override\n public void update()\n {\n\n }",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {\n super.handleUpstream(ctx, e);\n }",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"public void update() {}",
"public void updateDate() {\n for (ChangeListener l : listeners) {\n l.stateChanged(new ChangeEvent(this));\n }\n }",
"@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }",
"@PreUpdate\n\tprotected void onUpdate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}",
"public void update() {\r\n\t\tif (!isPaused && !noclip)\r\n\t\t\tcollision();\r\n\t\tif (!isPaused)\r\n\t\t\tsideScroll();\r\n\r\n\t\t/*\r\n\t\t * Call the update , act(), method from each individual object if game\r\n\t\t * is not paused\r\n\t\t */\r\n\t\tif (!isPaused) {\r\n\t\t\tfor (CosmosEntity obj : level.getLevelEnemyObjects())\r\n\t\t\t\tif (obj.isAlive())\r\n\t\t\t\t\tobj.act(); // act if object is alive\r\n\r\n\t\t\tfor (CosmosEntity obj : level.getLevelInteractiveObjects())\r\n\t\t\t\tif (obj.isAlive())\r\n\t\t\t\t\tobj.act();\r\n\r\n\t\t\tfor (CosmosEntity obj : level.getLevelTextureObjects())\r\n\t\t\t\tobj.act();\r\n\r\n\t\t}\r\n\r\n\t\tfor (CosmosEntity anim : level.getlevelConstantObjects())\r\n\t\t\tif (anim.isAlive())\r\n\t\t\t\tanim.act();\r\n\r\n\t\tif (!isPaused)\r\n\t\t\tplayer.act(); // calls player act method, results in animation\r\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer3 has received update!\");\r\n\t}",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"public void update(Event message){\n data.add(message);\n for (ChangeListener l: listeners){\n l.stateChanged(new ChangeEvent(this));\n }\n }",
"public void update() {\n }",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"private void updateChannelObject() {\n int i = channelSelect.getSelectedIndex();\n Channel c = channelList.get(i);\n \n double a = Double.valueOf(ampBox.getText()) ;\n double d = Double.valueOf(durBox.getText());\n double f = Double.valueOf(freqBox.getText());\n double o = Double.valueOf(owBox.getText());\n \n c.updateSettings(a, d, f, o);\n }",
"private void updateEvents(boolean isFirst) {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Updating events\");\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tString eventMsg = \"\";\r\n\t\tfor (int i = 0; i < events.size(); i++) {\r\n\t\t\teventMsg += events.get(i) + \"\\n\";\r\n\t\t}\r\n\t\tembed.setColor(Color.GRAY);\r\n\t\tif (isFirst) {\r\n\t\t\tembed.setTitle(\"Events\");\r\n\t\t\tgameChannel.sendMessage(embed.build()).queueAfter(100, TimeUnit.MILLISECONDS);\r\n\t\t} else {\r\n\t\t\tembed.setTitle(null);\r\n\t\t\t// Game breaks if eventMsg and title is \"\"\r\n\t\t\tif (eventMsg.contentEquals(\"\")) {\r\n\t\t\t\tembed.setDescription(\"Empty\");\r\n\t\t\t} else {\r\n\t\t\t\tembed.setDescription(eventMsg);\r\n\t\t\t}\r\n\t\t\tgameChannel.editMessageById(eventsID, embed.build()).queue();\r\n\t\t}\r\n\t}",
"private void handleUpdateProxyEvent(UpdateProxyEvent event) throws AppiaEventException {\n \n \t\tevent.loadMessage();\n \n \t\t//Get the parameters\n \t\tEndpt servertThatSentEndpt = event.getServerThatSentEndpt();\n \t\tVsGroup[] passedGroups = event.getAllGroups();\n \n \t\t//Say that the view was received (this also merges the temporary views)\n \t\tUpdateManager.addUpdateMessageReceived(servertThatSentEndpt, passedGroups);\n \n \t\t//If i have received from all live servers\n \t\tif(UpdateManager.receivedUpdatesFromAllLiveServers(vs.view) && amIleader()){\n \t\t\tSystem.out.println(\"Received an update proxy event from all alive and I am leader\");\n \n \t\t\t//Let go get our temporary view\n \t\t\tVsGroup[] newGroupList= UpdateManager.getTemporaryUpdateList();\n \n \t\t\t//Send the nre decided view to all\n \t\t\tUpdateDecideProxyEvent updateDecideProxy = new UpdateDecideProxyEvent(newGroupList);\n \t\t\tsendToOtherServers(updateDecideProxy);\n \t\t\tsendToMyself(updateDecideProxy);\t\t\n \t\t}\n \t}",
"private void notifyObservers() {\n BinStatusUpdate newStatus = buildNewStatus();\n observers.iterator().forEachRemaining(binStatusUpdateStreamObserver -> binStatusUpdateStreamObserver.onNext(newStatus));\n }",
"@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tmHandler.postDelayed(mRecordChannelStatesRunnable, SLConstants.RECORDING_PERIOD_IN_MILLIS);\n\n\t\t\t// Create the states holder\n\t\t\tSLChannelStates mChannelStates = new SLChannelStates();\n\t\t\tmChannelStates.setTimestamp(System.currentTimeMillis());\n\n\t\t\t// Store each channel's state\n\t\t\tfor(int i=0; i < mChannelViews.size(); i++) {\n\t\t\t\tSeekBar seekBar = mChannelViews.get(i).getChannelSeekBar();\n\n\t\t\t\tSLChannelState cs = new SLChannelState();\n\t\t\t\tcs.setChannelNumber(i);\n\t\t\t\tcs.setOnOffState(true);\n\t\t\t\tcs.setVelocity(seekBar.getProgress());\n\n\t\t\t\tmChannelStates.getChannelStates().add(cs);\n\t\t\t}\n\n\t\t\tmChannelsStates.add(mChannelStates);\n\n\t\t}"
] | [
"0.70560634",
"0.60554516",
"0.59337354",
"0.58665067",
"0.5766338",
"0.5637077",
"0.54528266",
"0.5441569",
"0.54009104",
"0.53774977",
"0.53603226",
"0.5156926",
"0.51269615",
"0.5121954",
"0.5035084",
"0.50291616",
"0.50180507",
"0.50089127",
"0.5000012",
"0.5000012",
"0.5000012",
"0.49946743",
"0.49927387",
"0.499206",
"0.49785206",
"0.49720338",
"0.49565947",
"0.49418485",
"0.49399507",
"0.49320936",
"0.4922712",
"0.49220183",
"0.4921962",
"0.49174717",
"0.49102405",
"0.49101606",
"0.49087796",
"0.49081624",
"0.49081624",
"0.49081624",
"0.49081624",
"0.49081624",
"0.4907612",
"0.48999363",
"0.48989487",
"0.48978603",
"0.48978603",
"0.48978603",
"0.48978603",
"0.48978603",
"0.48978603",
"0.48967874",
"0.4892154",
"0.4891623",
"0.4890977",
"0.48831466",
"0.48778775",
"0.48778775",
"0.4874037",
"0.48735458",
"0.48678887",
"0.48661175",
"0.48523217",
"0.48523217",
"0.4843077",
"0.48389533",
"0.48357928",
"0.48337746",
"0.48337746",
"0.48337746",
"0.4833164",
"0.48281854",
"0.48281854",
"0.4819814",
"0.48159894",
"0.4815213",
"0.48150432",
"0.48128423",
"0.48100516",
"0.4809347",
"0.4809347",
"0.48045078",
"0.48038095",
"0.48032317",
"0.480299",
"0.480299",
"0.480299",
"0.480299",
"0.480299",
"0.480299",
"0.480299",
"0.480299",
"0.480299",
"0.480299",
"0.47968322",
"0.47944686",
"0.47908393",
"0.47907746",
"0.47875088",
"0.47865954"
] | 0.64378464 | 1 |
The stage of the EventChannel update allowing to specify source. | interface WithSource {
/**
* Specifies the source property: Source of the event channel. This represents a unique resource in the
* partner's resource model..
*
* @param source Source of the event channel. This represents a unique resource in the partner's resource
* model.
* @return the next definition stage.
*/
Update withSource(EventChannelSource source);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Update withSource(EventChannelSource source);",
"EventChannelSource source();",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"Update withDestination(EventChannelDestination destination);",
"EventChannel.Update update();",
"Update withFilter(EventChannelFilter filter);",
"WithCreate withSource(EventChannelSource source);",
"@Override\n\t\tpublic void EnergySourceChanged(EnergyProducerOrConsumer changedSource) {\n\t\t\t\n\t\t}",
"@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n Vec3d relativepos = Vec3d.substraction(sourcePosition, playerPosition);\r\n\r\n //Calculate and set the new volume\r\n source.setVolume(getVolumeFromDistance(relativepos.length(), source.getCurrentAudio().getBaseVolume()));\r\n }",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"public IEventCollector getSource();",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"protected abstract void sourceChanged(Change<? extends F> c);",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"public void playerStateChanged(WSLPlayerEvent event);",
"interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }",
"public FVEventHandler getSrc() {\n\t\treturn src;\n\t}",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"@OutVertex\n ActionTrigger getSource();",
"public void setSource(String source) {\n _source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public ContactStatusEvent(Object source)\n {\n super(source);\n }",
"public void stateChanged(ChangeEvent e) {\n JSlider source = (JSlider)e.getSource();\n //volume\n if(parameter=='v'){\n System.out.println(\"Panel: \"+numSampler+\" volume: \"+source.getValue());\n }\n //volume\n else if(parameter=='p'){\n System.out.println(\"Panel: \"+numSampler+\" pitch: \"+source.getValue());\n }\n else if(parameter=='f'){\n System.out.println(\"Panel: \"+numSampler+\" filter cutoff: \"+source.getValue());\n }\n }",
"@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n Vec3d relativepos = playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition));\r\n\r\n double distance = relativepos.length();\r\n\r\n //Calculate the new volume\r\n double volume = getVolumeFromDistance(distance, source.getCurrentAudio().getBaseVolume());\r\n if (relativepos.x() == 0) {\r\n source.setVolume(volume);\r\n } else {\r\n if (relativepos.x() > 0) { // the source is at the right of the mixer\r\n source.setRightVolume(volume);\r\n source.setLeftVolume(volume * (1 + relativepos.x() / distance));\r\n } else {\r\n if (relativepos.x() < 0) { // the source is at the left of the mixer\r\n source.setRightVolume(volume * (1 - relativepos.x() / distance));\r\n source.setLeftVolume(volume);\r\n }\r\n }\r\n }\r\n }",
"@JsonProperty(\"source\")\n public void setSource(Source source) {\n this.source = source;\n }",
"@Override\n public void customEventOccurred(CustomEvent event)\n {\n Source source = (Source)event.getSource();\n Cloner cloner = new Cloner();\n final Source clonedSource = cloner.deepClone(source);\n \n // Create wrapper for source clone:\n final TagsSource sourceLogic = new TagsSource(clonedSource);\n \n // Create and render progress information dialog:\n sourceLogic.off(SourceEvent.THREAD_PROGRESS);\n final ProgressInformationDialog progressInformationDialog =\n new ProgressInformationDialog(sourceLogic, SourceEvent.THREAD_PROGRESS);\n progressInformationDialog.render(\"Progress information\", Main.mainForm);\n \n sourceLogic.off(SourceEvent.THREAD_ERROR);\n sourceLogic.on(SourceEvent.THREAD_ERROR, new ThreadErrorEventHandler());\n \n // Subscribe on model's source initialization event:\n sourceLogic.off(SourceEvent.SOURCE_INITIALIZED);\n sourceLogic.on(SourceEvent.SOURCE_INITIALIZED, new CustomEventListener()\n {\n @Override\n public void customEventOccurred(CustomEvent evt)\n {\n progressInformationDialog.close();\n \n if (clonedSource.getTypeId() == SourcesTypes.INTOOLS_EXPORT_DOCUMENT.ID)\n DialogsFactory.produceIntoolsExportDataSourceDialog(sourceLogic, true, \"Edit selected Intools export data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ALARM_AND_TRIP_SCHEDULE.ID)\n DialogsFactory.produceDocumentDataSourceDialog(sourceLogic, true, \"Edit selected document data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.DCS_VARIABLE_TABLE.ID)\n DialogsFactory.produceDcsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected DCS Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ESD_VARIABLE_TABLE.ID)\n DialogsFactory.produceEsdVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected ESD Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.FGS_VARIABLE_TABLE.ID)\n DialogsFactory.produceFgsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected FGS Variable Table data source\");\n }// customEventOccurred\n });// on\n \n // Execute initialization thread:\n sourceLogic.initialize();\n }",
"public void playerBasicChange(PlayerBasicChangeEvent event) {\n }",
"@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }",
"public UpdateLogstashPipelineDescRequest(UpdateLogstashPipelineDescRequest source) {\n if (source.InstanceId != null) {\n this.InstanceId = new String(source.InstanceId);\n }\n if (source.PipelineId != null) {\n this.PipelineId = new String(source.PipelineId);\n }\n if (source.PipelineDesc != null) {\n this.PipelineDesc = new String(source.PipelineDesc);\n }\n }",
"public ChangeSupport(Object source) {\n this.source = source;\n }",
"@Override\t// Listen for an Event's edit or a Temporal Relationship's edit\n\tpublic void dataChanged(Object source) \n\t{\n\t\tif ( source == this.myTemporalModePanel ) \t\t// an Event or a Temporal Relationship has been edited\n\t\t\tthis.myInnerDeck.autoSetButtonsEnabled();\t// make sure next SlideDeck transition buttons are properly set \n\t}",
"public FVEvent setSrc(FVEventHandler src) {\n\t\tthis.src = src;\n\t\treturn this;\n\t}",
"public void setSource(Byte source) {\r\n this.source = source;\r\n }",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"public void setSource (String source);",
"public void setSource(String source);",
"EventChannel apply();",
"public State getsourcestate(){\n\t\treturn this.sourcestate;\n\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}",
"SourceControl.Update update();",
"EventChannelDestination destination();",
"public void setSource(AppSyncSource source) {\n appSyncSource = source;\n }",
"private static void OnSourceChanged(Object sender, SourceChangedEventArgs args)\r\n { \r\n OnToggleInsert(sender, null);\r\n }",
"public Object getSource() {return source;}",
"public void addSourceChanger(Component component, Class sourceClass)\n {\n component.addAttribute(GlobalAttributes.Value, sourceClass.getCanonicalName().replace(\".\", \"/\"));\n component.setID(sourceClass.getSimpleName() + \"_source\");\n getSourceChanges().put(component, sourceClass);\n }",
"State getSource();",
"void update(Object source, Object reason, T arg);",
"public ApplicationEvent(Object source) {\n super(source);\n this.timestamp = System.currentTimeMillis();\n }",
"public DescriptorEvent(Object sourceObject) {\n super(sourceObject);\n }",
"public void setSourceChanges(Map<Component, Class> sourceChanges)\n {\n this.sourceChanges = sourceChanges;\n }",
"@Override\n\tpublic UserActionDTO updateSource(UserActionEntity entity, UserActionDTO dto) {\n\t\treturn null;\n\t}",
"public void setSourceRecord(ActivityRecord sourceRecord) {\n }",
"@Override\n public String getName() {\n return source.getName();\n }",
"public GraphChangeSupport(Graph<N, ET> sourceObject)\n\t{\n\t\tsuper();\n\t\tif (sourceObject == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"Source for GraphChangeSupport cannot be null\");\n\t\t}\n\t\tsource = sourceObject;\n\t\tlistenerList = new EventListenerList();\n\t}",
"public static ApproxsimEvent getGridUpdated(Object source) {\n return new ApproxsimEvent(source, GRIDUPDATED);\n }",
"public String get_source() {\n\t\treturn source;\n\t}",
"public void handleModified(ModifiedEvent source) {}",
"public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }",
"@Override\n public void changeEventRaised(ChangeEvent event)\n {\n if (!(event instanceof ValueSourceChangeEvent))\n return;\n\n if (event instanceof SingularSubsourceChangeEvent)\n {\n SingularSubsourceChangeEvent e = (SingularSubsourceChangeEvent) event;\n singleSubsourceReplaced(e, e.getOldSource(), e.getNewSource());\n }\n else if (event instanceof ValueChangeEvent)\n {\n ValueChangeEvent e = (ValueChangeEvent) event;\n valueChanged(e, e.getOldValue(), e.getNewValue());\n }\n else if (event instanceof TypeChangeEvent)\n {\n TypeChangeEvent e = (TypeChangeEvent) event;\n typeChanged(e, e.getOldType(), e.getNewType());\n }\n else if (event instanceof SubsourceModificationEvent)\n subsourceChanged((SubsourceModificationEvent) event);\n }",
"EventChannel apply(Context context);",
"@FXML\r\n\tprivate void updateStatus(ActionEvent event) {\r\n\t\tupdateAsset(AssetOperation.STATUS);\r\n\t}",
"public MTInputEvent(Object source) {\n\t\tsuper(source);\n\t\t\n\t}",
"public void updateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to code generation\n\t\tmode = GENERATE;\n\t\t// Traverse the source and calls back when key source elements are\n\t\t// missing\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Add the source files that are missing\n\t\tArrayList<TagNode> tags = tree.getUnvisited();\n\t\tcreateSourceFiles(tags);\n\t}",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"@Override\n\tpublic void onModified(LttlComponent source)\n\t{\n\t\tif (!isEnabled() || !isAutoUpdating()) return;\n\t\tupdateMesh();\n\t}",
"public DemoEventSource( T source ) {\n super(source);\n }",
"void addChangeListener(Consumer<ConfigurationSourceChangeEvent> changeListener);",
"private StoreEvent(E source) {\n super(source);\n }",
"@SuppressWarnings(\"unchecked\")\r\n @Override\r\n public void put(final Stage<K, V> currStage,\r\n final Event<K, V> currEvent,\r\n final Stage<K, V> prevStage,\r\n final Event<K, V> prevEvent,\r\n final DeweyVersion version) {\r\n\r\n Matched prevEventKey = Matched.from(prevStage, prevEvent);\r\n Matched currEventKey = Matched.from(currStage, currEvent);\r\n\r\n byte[] prevBytes = this.bytesStore.get(Bytes.wrap(serdes.rawKey(prevEventKey)));\r\n MatchedEvent sharedPrevEvent = serdes.valueFrom(prevBytes);\r\n\r\n if (sharedPrevEvent == null) {\r\n throw new IllegalStateException(\"Cannot find predecessor event for \" + prevEventKey);\r\n }\r\n\r\n byte[] currBytes = this.bytesStore.get(Bytes.wrap(serdes.rawKey(currEventKey)));\r\n MatchedEvent sharedCurrEvent = serdes.valueFrom(currBytes);\r\n\r\n if (sharedCurrEvent == null) {\r\n sharedCurrEvent = new MatchedEvent<>(currEvent.key(), currEvent.value(), currEvent.timestamp());\r\n }\r\n sharedCurrEvent.addPredecessor(version, prevEventKey);\r\n LOG.debug(\"Putting event to store with key={}, value={}\", currEventKey, sharedCurrEvent);\r\n this.bytesStore.put(Bytes.wrap(serdes.rawKey(currEventKey)), serdes.rawValue(sharedCurrEvent));\r\n }",
"public CmdEvent(Object source, ICmdDataFlowContext cmdDataFlowContext) {\n super(source);\n this.cmdDataFlowContext = cmdDataFlowContext;\n\n }",
"@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}",
"public MatchEvent(Match source) {\n super(source);\n }",
"@Override\n\tpublic void update(VPAction arg0, VPContext arg1) {\n\t\t\n\t}",
"public String getSource() {\r\n return Source;\r\n }",
"@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);",
"@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}",
"public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }",
"public String sourceField() {\n return this.sourceField;\n }",
"public WindowListChangeEvent(Object eventSource) {\n super(eventSource); \n }",
"public void update(@Observes FirePushEventsEnum event) {\n switch(event) {\n case NODE_EVENT:\n this.nodeEventUpdateRequest.set(true);\n break;\n case RUN_TASK_EVENT:\n this.runTaskEventUpdateRequest.set(true);\n break;\n }\n }",
"public SourceIF source() {\n\t\treturn this.source;\n\t}",
"@DISPID(-2147417088)\n @PropGet\n int sourceIndex();",
"public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.logging.v1.SinkServiceOuterClass.UpdateSinkRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getUpdateMethod(), getCallOptions(), request);\n }",
"@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}",
"public Actor getSource()\r\n\t{\r\n\t\treturn sourceActor;\t\r\n\t}",
"protected Source getSource() {\r\n return source;\r\n }",
"public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }",
"@Override\n public String getSource() {\n return this.src;\n }",
"public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }",
"public void updateTimestamp(@NotNull DataSource dataSource) {\n mySourceTimestamp = dataSource.getTimestamp();\n }",
"public void targetStarted(BuildEvent event) {\n }"
] | [
"0.783639",
"0.6669261",
"0.64119583",
"0.63280267",
"0.62898093",
"0.6229292",
"0.60279065",
"0.6018984",
"0.5898172",
"0.58349675",
"0.5834834",
"0.581897",
"0.577119",
"0.57386374",
"0.57220614",
"0.5653786",
"0.56416357",
"0.56396616",
"0.56290203",
"0.5628946",
"0.5606381",
"0.5579337",
"0.5578095",
"0.55761915",
"0.5531469",
"0.5531469",
"0.55219996",
"0.5520724",
"0.55050814",
"0.5501395",
"0.5485132",
"0.5475457",
"0.54741204",
"0.5453354",
"0.5450527",
"0.54339695",
"0.542242",
"0.5405986",
"0.53672534",
"0.53522134",
"0.5344865",
"0.5344238",
"0.5328941",
"0.5312063",
"0.5312063",
"0.5312063",
"0.5312063",
"0.5305877",
"0.5296608",
"0.52953494",
"0.52857035",
"0.52826685",
"0.5281539",
"0.5269271",
"0.5263312",
"0.5252465",
"0.52447176",
"0.5227009",
"0.52157825",
"0.52067417",
"0.5202846",
"0.52027017",
"0.5176106",
"0.5174541",
"0.5167652",
"0.51517564",
"0.51503414",
"0.51486725",
"0.51413107",
"0.51392865",
"0.5134794",
"0.51250386",
"0.5122926",
"0.51191145",
"0.51133066",
"0.51089716",
"0.5108143",
"0.5100544",
"0.50971013",
"0.5083741",
"0.5083039",
"0.50766474",
"0.50651115",
"0.50638515",
"0.50619775",
"0.5051947",
"0.5047184",
"0.50465894",
"0.5046528",
"0.5040275",
"0.503731",
"0.5034385",
"0.5030241",
"0.50284135",
"0.50280267",
"0.5019222",
"0.5018994",
"0.50107473",
"0.5007268",
"0.50059295"
] | 0.73909426 | 1 |
Specifies the source property: Source of the event channel. This represents a unique resource in the partner's resource model.. | Update withSource(EventChannelSource source); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"EventChannelSource source();",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}",
"public void setSource(String source) {\n _source = source;\n }",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"@ApiModelProperty(value = \"The source of the data.\")\n public String getSource() {\n return source;\n }",
"public EndpointID source() {\r\n\t\treturn source_;\r\n\t}",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"@JsonProperty(\"source\")\n public void setSource(Source source) {\n this.source = source;\n }",
"public void setSource(String source);",
"public void setSource (String source);",
"public IEventCollector getSource();",
"public void setSource(AppSyncSource source) {\n appSyncSource = source;\n }",
"public String getSourceId() {\n return sourceId;\n }",
"public void setSourceID(java.lang.Object sourceID) {\n this.sourceID = sourceID;\n }",
"public String getSourceResource() {\r\n\t\treturn requestSource;\r\n\t}",
"public EventObject(Object source) {\n\tif (source == null)\n\t throw new IllegalArgumentException(\"null source\");\n\n this.source = source;\n }",
"WithCreate withSource(EventChannelSource source);",
"public URI getSource() {\n return source;\n }",
"@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();",
"public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}",
"public String getSource() {\n return mSource;\n }",
"@JsonProperty(\"source\")\n public Source getSource() {\n return source;\n }",
"public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"public String sourceUri() {\n return this.sourceUri;\n }",
"public String sourceUniqueId() {\n return this.sourceUniqueId;\n }",
"public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }",
"@ApiModelProperty(value = \"族谱来源\")\n public String getSource() {\n return source;\n }",
"@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);",
"public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }",
"public String get_source() {\n\t\treturn source;\n\t}",
"public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }",
"public String getSource() {\r\n return Source;\r\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }",
"public void setSource(Object o) {\n\t\tsource = o;\n\t}",
"public final void testSetSource() {\n Notification n = new Notification(\"type\", \"src\", 1);\n assertEquals(\"src\", n.getSource());\n n.setSource(\"new src\");\n assertEquals(\"new src\", n.getSource());\n }",
"public Actor getSource()\r\n\t{\r\n\t\treturn sourceActor;\t\r\n\t}",
"public Object getSource() {return source;}",
"public String getSource() {\n return this.source;\n }",
"public String getSource() {\n return source;\n }",
"public FVEvent setSrc(FVEventHandler src) {\n\t\tthis.src = src;\n\t\treturn this;\n\t}",
"public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}",
"public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Object getSource() {\n return source;\n }",
"java.lang.String getAssociatedSource();",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public Object getSource() {\n\t\treturn source;\n\t}",
"public String getSource() {\r\n return source;\r\n }",
"protected Source getSource() {\r\n return source;\r\n }",
"public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }",
"public void setSource(String source) {\n this.source = source == null ? null : source.trim();\n }",
"public JSONObject SourceResource() {\n JSONObject source = jsonParent.getJSONObject(\"sourceResource\");\n return source;\n }",
"public interface Source {\n\n /**\n * Set the system identifier for this Source.\n * <p>\n * The system identifier is optional if the source does not get its data\n * from a URL, but it may still be useful to provide one. The application\n * can use a system identifier, for example, to resolve relative URIs and to\n * include in error messages and warnings.\n * </p>\n *\n * @param systemId\n * The system identifier as a URL string.\n */\n public void setSystemId(String systemId);\n\n /**\n * Get the system identifier that was set with setSystemId.\n *\n * @return The system identifier that was set with setSystemId, or null if\n * setSystemId was not called.\n */\n public String getSystemId();\n}",
"@Override\r\n\tpublic String getSource() {\n\t\treturn null;\r\n\t}",
"public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }",
"public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }",
"public String getSource() {\n\n return source;\n }",
"public void setSource(Byte source) {\r\n this.source = source;\r\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public Uri getSourceUri() {\n return sourceUri;\n }",
"@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}",
"@java.lang.Override\n public java.lang.String getAssociatedSource() {\n java.lang.Object ref = associatedSource_;\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 associatedSource_ = s;\n return s;\n }\n }",
"public SourceIF source() {\n\t\treturn this.source;\n\t}",
"public Builder setAssociatedSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n associatedSource_ = value;\n onChanged();\n return this;\n }",
"public Builder setSource(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n source_ = value;\n onChanged();\n return this;\n }",
"public String getSource() {\n Object ref = source_;\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 if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n }\n }",
"protected void addSourcePropertyDescriptor(Object object) {\n\t\t\n\t\titemPropertyDescriptors.add(new EdgeSourcePropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\tgetResourceLocator(), getString(\"_UI_Edge_source_feature\"), getString(\n\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\", \"_UI_Edge_source_feature\",\n\t\t\t\t\t\t\"_UI_Edge_type\"), HenshinPackage.Literals.EDGE__SOURCE));\n\t}",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public String getSourceArn() {\n return this.sourceArn;\n }",
"public void setSourceUrl(String sourceUrl) {\n this.sourceUrl = sourceUrl == null ? null : sourceUrl.trim();\n }",
"public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }",
"public String getSource() {\n\t\treturn this.uri.toString();\n\t}",
"@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}",
"@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getAssociatedSourceBytes() {\n java.lang.Object ref = associatedSource_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n associatedSource_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String getSource() {\n return this.src;\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}",
"public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }",
"public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}",
"@Override\n public String getSource()\n {\n return null;\n }",
"public Vertex getSource() {\n return source;\n }",
"@Override\n\tpublic VType getSource() {\n\t\t// TODO: Add your code here\n\t\treturn super.from;\n\t}",
"public void setSourceObjectId(String sourceObjectId) {\n this.sourceObjectId = sourceObjectId;\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"public java.lang.String getSource() {\r\n return localSource;\r\n }",
"public ContactStatusEvent(Object source)\n {\n super(source);\n }"
] | [
"0.7174905",
"0.7136773",
"0.70678484",
"0.7008663",
"0.6923921",
"0.68679553",
"0.68020546",
"0.6767082",
"0.6749505",
"0.6739385",
"0.6739385",
"0.6661407",
"0.6661407",
"0.658596",
"0.65531343",
"0.65458405",
"0.6514694",
"0.6503529",
"0.6435951",
"0.6328123",
"0.6323002",
"0.6307561",
"0.6301124",
"0.6290104",
"0.6273211",
"0.62424845",
"0.62423897",
"0.6215507",
"0.6214379",
"0.6213854",
"0.6213242",
"0.62007254",
"0.61967236",
"0.6196474",
"0.61876845",
"0.6178015",
"0.6163346",
"0.6141253",
"0.6138608",
"0.6136738",
"0.6122989",
"0.61203426",
"0.6115482",
"0.61057204",
"0.61000276",
"0.608811",
"0.6086018",
"0.60495806",
"0.6040684",
"0.60402614",
"0.60329413",
"0.6027526",
"0.6016055",
"0.6011831",
"0.6001559",
"0.6001559",
"0.59920704",
"0.5989357",
"0.59795827",
"0.59795827",
"0.5977094",
"0.5971795",
"0.5968767",
"0.5958864",
"0.5958864",
"0.59545106",
"0.59480196",
"0.5944642",
"0.5944642",
"0.5944642",
"0.59420073",
"0.59414977",
"0.5939343",
"0.59067076",
"0.5900649",
"0.58792007",
"0.58556795",
"0.5839327",
"0.5818925",
"0.5818498",
"0.58155876",
"0.5814354",
"0.58088046",
"0.5805443",
"0.5798099",
"0.57902485",
"0.57870585",
"0.57803833",
"0.5779137",
"0.5779137",
"0.5775248",
"0.5773342",
"0.5765542",
"0.57651246",
"0.5763196",
"0.5756301",
"0.5745352",
"0.574118",
"0.5729508",
"0.5722223"
] | 0.63693815 | 19 |
The stage of the EventChannel update allowing to specify destination. | interface WithDestination {
/**
* Specifies the destination property: Represents the destination of an event channel..
*
* @param destination Represents the destination of an event channel.
* @return the next definition stage.
*/
Update withDestination(EventChannelDestination destination);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Update withDestination(EventChannelDestination destination);",
"EventChannelDestination destination();",
"Update withSource(EventChannelSource source);",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"EventChannel.Update update();",
"public void updateDestination(){\r\n\t\tdestination.update_pc_arrivalFlows(flows);\r\n\t}",
"interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }",
"public void setDestination(String destination) {\r\n this.destination = destination;\r\n }",
"Update withFilter(EventChannelFilter filter);",
"public FVEventHandler getDst() {\n\t\treturn dst;\n\t}",
"public String destination() {\n return this.destination;\n }",
"public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}",
"WithCreate withDestination(EventChannelDestination destination);",
"public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}",
"public String getDestination() {\r\n return this.destination;\r\n }",
"@RequestMapping(value = \"/publish\", method = RequestMethod.POST)\n public String publish(@RequestParam(value = \"destination\", required = false, defaultValue = \"**\") String destination) {\n\n final String myUniqueId = \"config-client1:7002\";\n System.out.println(context.getId());\n final MyCustomRemoteEvent event =\n new MyCustomRemoteEvent(this, myUniqueId, destination, \"--------dfsfsdfsdfsdfs\");\n //Since we extended RemoteApplicationEvent and we've configured the scanning of remote events using @RemoteApplicationEventScan, it will be treated as a bus event rather than just a regular ApplicationEvent published in the context.\n //因为我们在启动类上设置了@RemoteApplicationEventScan注解,所以通过context发送的时间将变成一个bus event总线事件,而不是在自身context中发布的一个ApplicationEvent\n context.publishEvent(event);\n\n return \"event published\";\n }",
"public String getDestination() {\r\n return destination;\r\n }",
"public void setDestination(Coordinate destination) {\n cDestination = destination;\n }",
"public String getDestination() {\n return this.destination;\n }",
"EventChannel apply();",
"public String getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public Sommet destination() {\n return destination;\n }",
"public String getDestination() {\n return destination;\n }",
"public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"public String getDestination() {\n\t\treturn destination;\n\t}",
"public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }",
"public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"@Override\n public String getDestination() {\n return this.dest;\n }",
"public int getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public Location getDestination() {\r\n return destination;\r\n }",
"public void changeRoomRequest(Room destination){\r\n this.pop();\r\n this.setState(new TransitionState(transitionDuration,player.getCurrentRoom(),destination));\r\n this.player.setCurrentRoom(destination);\r\n }",
"public FVEvent setDst(FVEventHandler dst) {\n\t\tthis.dst = dst;\n\t\treturn this;\n\t}",
"@Override\r\n public StageDto updateStage(StageDto stageDto) {\n return null;\r\n }",
"public Location getDestination()\r\n\t{ return this.destination; }",
"public void updatePlayerLocation() {requires new property on gamestate object\n //\n }",
"UpdateDestinationResult updateDestination(UpdateDestinationRequest updateDestinationRequest);",
"public Actor getDestination()\r\n\t{\r\n\t\treturn destinationActor;\t\r\n\t}",
"public void updateMessage(Messenger handler, int stage){\n try {\n messageContent.put(\"stage\", stage);\n messageContent.put(\"totalSongs\", songsToTransfer);\n messageContent.put(\"songsMatched\", songsFound);\n messageContent.put(\"songsNotMatched\", songsNotFound);\n messageContent.put(\"playlistsCreated\", playlistsFinished);\n\n msg = new Message();\n msg.obj = messageContent;\n msg.what = STATUS_RUNNING;\n handler.send(msg);\n } catch (JSONException | RemoteException e) {\n e.printStackTrace();\n }\n }",
"private boolean finalDestination(OverlayNodeSendsData event) {\n\t\tif (event.getDestID() == myAssignedID)\n\t\t\treturn true;\n\t\treturn false;\n\n\t}",
"EventChannel apply(Context context);",
"EventChannelSource source();",
"public void setDestination (LatLng destination) {\n this.destination = destination;\n }",
"public java.lang.String getDestination(){return this.destination;}",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n }\n }",
"@Override\r\n\tpublic ConventionStage update(ConventionStage obj) {\n\t\treturn null;\r\n\t}",
"public java.lang.String getDestination() {\n return destination;\n }",
"public Location getDestination(){\n\t\treturn destination;\n\t}",
"public Vertex getDestination() {\n return destination;\n }",
"public void moveToEvent(ControllerContext cc, Planet dest) {\n\t}",
"public void playerStateChanged(WSLPlayerEvent event);",
"@SuppressWarnings(\"unchecked\")\r\n @Override\r\n public void put(final Stage<K, V> currStage,\r\n final Event<K, V> currEvent,\r\n final Stage<K, V> prevStage,\r\n final Event<K, V> prevEvent,\r\n final DeweyVersion version) {\r\n\r\n Matched prevEventKey = Matched.from(prevStage, prevEvent);\r\n Matched currEventKey = Matched.from(currStage, currEvent);\r\n\r\n byte[] prevBytes = this.bytesStore.get(Bytes.wrap(serdes.rawKey(prevEventKey)));\r\n MatchedEvent sharedPrevEvent = serdes.valueFrom(prevBytes);\r\n\r\n if (sharedPrevEvent == null) {\r\n throw new IllegalStateException(\"Cannot find predecessor event for \" + prevEventKey);\r\n }\r\n\r\n byte[] currBytes = this.bytesStore.get(Bytes.wrap(serdes.rawKey(currEventKey)));\r\n MatchedEvent sharedCurrEvent = serdes.valueFrom(currBytes);\r\n\r\n if (sharedCurrEvent == null) {\r\n sharedCurrEvent = new MatchedEvent<>(currEvent.key(), currEvent.value(), currEvent.timestamp());\r\n }\r\n sharedCurrEvent.addPredecessor(version, prevEventKey);\r\n LOG.debug(\"Putting event to store with key={}, value={}\", currEventKey, sharedCurrEvent);\r\n this.bytesStore.put(Bytes.wrap(serdes.rawKey(currEventKey)), serdes.rawValue(sharedCurrEvent));\r\n }",
"public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }",
"@OutVertex\n ActionTrigger getSource();",
"public boolean get_destination() {\r\n return (final_destination);\r\n }",
"public java.lang.String getDestination()\n {\n return this._destination;\n }",
"interface UpdateStages {\n /** The stage of a route update allowing to modify the destination address prefix. */\n interface WithDestinationAddressPrefix {\n /**\n * Specifies the destination address prefix to apply the route to.\n *\n * @param cidr an address prefix expressed in the CIDR notation\n * @return the next stage of the update\n */\n Update withDestinationAddressPrefix(String cidr);\n }\n\n /** The stage of a route update allowing to specify the next hop type. */\n interface WithNextHopType {\n /**\n * Specifies the next hop type.\n *\n * <p>To use a virtual appliance, use {@link #withNextHopToVirtualAppliance(String)} instead and specify its\n * IP address.\n *\n * @param nextHopType a hop type\n * @return the next stage of the update\n */\n Update withNextHop(RouteNextHopType nextHopType);\n\n /**\n * Specifies the IP address of the virtual appliance for the next hop to go to.\n *\n * @param ipAddress an IP address of an existing virtual appliance (virtual machine)\n * @return the next stage of the update\n */\n Update withNextHopToVirtualAppliance(String ipAddress);\n }\n }",
"public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }",
"interface UpdateStages {\n /**\n * The stage of the movecollection update allowing to specify Identity.\n */\n interface WithIdentity {\n /**\n * Specifies identity.\n * @param identity the identity parameter value\n * @return the next update stage\n */\n Update withIdentity(Identity identity);\n }\n\n }",
"@Override\n\tpublic void update(VPAction arg0) {\n\n\t}",
"@Override\r\n\tpublic String toShortString() {\r\n\t\treturn \"->F: \" + destination;\r\n\t}",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"interface Update\n extends UpdateStages.WithBranch,\n UpdateStages.WithFolderPath,\n UpdateStages.WithAutoSync,\n UpdateStages.WithPublishRunbook,\n UpdateStages.WithSecurityToken,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n SourceControl apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n SourceControl apply(Context context);\n }",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"public int getDestination() {\n\t\treturn finalDestination;\n\t}",
"public abstract State getDestinationState ();",
"@Override\n public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {\n super.handleUpstream(ctx, e);\n }",
"public Coordinate getDestination() {\n return cDestination;\n }",
"public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.logging.v1.SinkServiceOuterClass.UpdateSinkRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getUpdateMethod(), getCallOptions(), request);\n }",
"public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}",
"interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"@Override\n public void onNext(TransportEvent value) {\n LOG.log(Level.FINEST, \"{0}\", value);\n stage.onNext(value);\n }",
"@Override\n\tpublic void handleEventPlayerActionsUpdate( World world, List<Action> availableActions ) {\n\t\t\n\t}",
"public void update(yandex.cloud.api.logging.v1.SinkServiceOuterClass.UpdateSinkRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);\n }",
"@Override\n\tpublic void update(VPAction arg0, VPContext arg1) {\n\t\t\n\t}",
"public void playerBasicChange(PlayerBasicChangeEvent event) {\n }",
"@Override\n public void stateChanged(ChangeEvent e) {\n if (e.getSource().toString().equals(data.get(Variable.CONVERT_COMMAND))) {\n Log.debug(\"Same pacpl-command as before: \" + e.getSource().toString());\n return;\n }\n Log.debug(\"New pacpl-command: \" + e.getSource().toString());\n data.put(Variable.CONVERT_COMMAND, e.getSource().toString());\n // re-check if pacpl can be called now\n boolean bPACPLAvailable = UtilPrepareParty.checkPACPL((String) data\n .get(Variable.CONVERT_COMMAND));\n // disable media conversion if pacpl is not found\n if (bPACPLAvailable) {\n Log.debug(\"Updated settings for media conversion allow pacpl to be used.\");\n jcbConvertMedia.setEnabled(true);\n } else {\n Log.warn(\"Updated settings for media conversion do not allow pacpl to be used!\");\n jcbConvertMedia.setEnabled(false);\n jcbConvertMedia.setSelected(false);\n }\n }",
"private void apply(ShipArrived event) {\n }",
"@Override\n public final void updateOrigin() {\n }",
"@Override\n public void update(Workout e) {\n\n }",
"public Long getUpdateFlow() {\n return updateFlow;\n }",
"public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}",
"public void setTransitionDestinationCallback(\n ScreenshotController.TransitionDestination destination) {\n mTransitionDestinationCallback.set(destination);\n }",
"public void update(yandex.cloud.api.logging.v1.SinkServiceOuterClass.UpdateSinkRequest request,\n io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);\n }",
"@Override\n public void changed(ChangeEvent event, Actor actor) {\n game.changeScreen(RPGMain.DEBUG);\n }",
"@Override\n public void changed(ChangeEvent event, Actor actor) {\n game.changeScreen(RPGMain.DEBUG);\n }",
"public void setDestinationFloor(int destinationFloor){\n this.destinationFloor=destinationFloor;\n }",
"interface UpdateStages {\n /**\n * The stage of the jobtargetgroup update allowing to specify Members.\n */\n interface WithMembers {\n /**\n * Specifies members.\n * @param members Members of the target group\n * @return the next update stage\n */\n Update withMembers(List<JobTarget> members);\n }\n\n }",
"public Square destination() {\n return destination;\n }",
"@Override\n protected void update(List<Event> result, Ec2LaunchConfiguration oldResource, Ec2LaunchConfiguration newResource) {\n \n }",
"@java.lang.Override\n public int getStageValue() {\n return stage_;\n }",
"Destination getDestination();",
"@Override\n public Location getDestination() {\n return _destinationLocation != null ? _destinationLocation : getOrigin();\n }",
"@JsonProperty(\"destination_name\")\n public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }"
] | [
"0.7452452",
"0.64857805",
"0.6065429",
"0.59764004",
"0.58095306",
"0.5762786",
"0.5694249",
"0.55760837",
"0.55189997",
"0.5506278",
"0.5443613",
"0.5400881",
"0.53922087",
"0.5350647",
"0.5325255",
"0.52500796",
"0.52453375",
"0.5240542",
"0.5187137",
"0.5185622",
"0.5173984",
"0.51504445",
"0.5144579",
"0.5143019",
"0.51368517",
"0.508848",
"0.5084139",
"0.5047894",
"0.5029221",
"0.5014701",
"0.50081694",
"0.49876258",
"0.4957226",
"0.49216843",
"0.491446",
"0.49090627",
"0.49070966",
"0.4901713",
"0.4888244",
"0.4884688",
"0.4873932",
"0.48604062",
"0.48539606",
"0.4844059",
"0.48371273",
"0.48301467",
"0.48173773",
"0.48054114",
"0.48019847",
"0.47964728",
"0.47816113",
"0.4779683",
"0.4770492",
"0.47636136",
"0.47628087",
"0.47544187",
"0.47491822",
"0.47447905",
"0.47433218",
"0.47397",
"0.47326976",
"0.469825",
"0.46930334",
"0.46776807",
"0.46750307",
"0.46746534",
"0.46648002",
"0.46648002",
"0.46648002",
"0.46648002",
"0.4654021",
"0.46455944",
"0.46398538",
"0.46281278",
"0.46271583",
"0.46231505",
"0.46107438",
"0.46008453",
"0.460071",
"0.45886663",
"0.45869762",
"0.45701984",
"0.4565547",
"0.45639616",
"0.45515892",
"0.45507243",
"0.4544563",
"0.4542914",
"0.45407295",
"0.45403713",
"0.4538579",
"0.4538579",
"0.45369896",
"0.45295",
"0.45249853",
"0.45175207",
"0.4516115",
"0.45128185",
"0.4495584",
"0.44912738"
] | 0.68095744 | 1 |
Specifies the destination property: Represents the destination of an event channel.. | Update withDestination(EventChannelDestination destination); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannelDestination destination();",
"public void setDestination(String destination) {\r\n this.destination = destination;\r\n }",
"public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }",
"public void setDestination(Coordinate destination) {\n cDestination = destination;\n }",
"public String getDestination() {\r\n return this.destination;\r\n }",
"public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}",
"public String getDestination() {\n return this.destination;\n }",
"public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }",
"public String getDestination() {\r\n return destination;\r\n }",
"WithCreate withDestination(EventChannelDestination destination);",
"public String getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"public String getDestination() {\n return destination;\n }",
"public String getDestination() {\n\t\treturn destination;\n\t}",
"@Override\n public String getDestination() {\n return this.dest;\n }",
"public String destination() {\n return this.destination;\n }",
"public java.lang.String getDestination()\n {\n return this._destination;\n }",
"public java.lang.String getDestination(){return this.destination;}",
"public java.lang.String getDestination() {\n return destination;\n }",
"public Destination() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Actor getDestination()\r\n\t{\r\n\t\treturn destinationActor;\t\r\n\t}",
"public Location getDestination(){\n\t\treturn destination;\n\t}",
"public Location getDestination()\r\n\t{ return this.destination; }",
"public Location getDestination() {\r\n return destination;\r\n }",
"public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}",
"public Sommet destination() {\n return destination;\n }",
"public void setDestination (LatLng destination) {\n this.destination = destination;\n }",
"public int getDestination() {\r\n\t\treturn destination;\r\n\t}",
"public Teleporter setDestination(Location location)\r\n\t{ this.destination = location; return this; }",
"Destination getDestination();",
"public Builder setDestination(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destination_ = value;\n onChanged();\n return this;\n }",
"public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }",
"public Coordinate getDestination() {\n return cDestination;\n }",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n }\n }",
"@Override\n\tpublic String getMessageDestination() {\n\t\treturn channelName;\n\t}",
"void setDestination(Locations destination);",
"@RequestMapping(value = \"/publish\", method = RequestMethod.POST)\n public String publish(@RequestParam(value = \"destination\", required = false, defaultValue = \"**\") String destination) {\n\n final String myUniqueId = \"config-client1:7002\";\n System.out.println(context.getId());\n final MyCustomRemoteEvent event =\n new MyCustomRemoteEvent(this, myUniqueId, destination, \"--------dfsfsdfsdfsdfs\");\n //Since we extended RemoteApplicationEvent and we've configured the scanning of remote events using @RemoteApplicationEventScan, it will be treated as a bus event rather than just a regular ApplicationEvent published in the context.\n //因为我们在启动类上设置了@RemoteApplicationEventScan注解,所以通过context发送的时间将变成一个bus event总线事件,而不是在自身context中发布的一个ApplicationEvent\n context.publishEvent(event);\n\n return \"event published\";\n }",
"public String getDestinationResource() {\r\n\t\treturn destinationSource;\r\n\t}",
"@JsonProperty(\"destination_name\")\n public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }",
"public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\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 destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Object getDestination() { return this.d; }",
"public java.lang.String getDestination() {\n java.lang.Object ref = destination_;\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 destination_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public long getDestinationId() {\n return destinationId_;\n }",
"public String getDestinationName() {\n return destinationName;\n }",
"public long getDestinationId() {\n return destinationId_;\n }",
"@Override\n\tpublic String getDest() {\n\t\treturn dest;\n\t}",
"public MessagingEvent(T source, MessagingAction action, KafkaOutputChannel destination) {\n super(source);\n this.source = source;\n this.action = action;\n this.destination = destination;\n }",
"public void setDestinationType( final String destinationType )\n {\n m_destinationType = destinationType;\n }",
"public void setDestination(TransactionAccount destination){\n if(destination.getTransactionAccountType().getAccountType() == AccountType.INCOME\n && this.getSource() != null\n && this.getSource().getTransactionAccountType().getAccountType() != AccountType.INITIALIZER){\n throw new BTRestException(MessageCode.INCOME_CANNOT_BE_DESTINATION,\n \"Transaction account with type income cannot be used as a source in destination\",\n null);\n }\n this.destination = destination;\n }",
"public void setDestination(ExportDestination destination) {\n this.destination = destination;\n }",
"public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}",
"public com.google.protobuf.ByteString\n getDestinationBytes() {\n java.lang.Object ref = destination_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n destination_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getDestinationFolder()\n\t{\n\t\treturn destinationFolder;\n\t}",
"public void setDestinationName(String destinationName) {\n this.destinationName = destinationName;\n }",
"public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setDestination(int x, int y) {\n\t\t\n\t}",
"public Reference destination() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_DESTINATION);\n }",
"public Vertex getDestination() {\n return destination;\n }",
"public Town getDestination() {\r\n\t\treturn this.destination;\r\n\t}",
"io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination();",
"public Node getDestination() {\n return this.destination;\n }",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination() {\n if (destinationBuilder_ == null) {\n return destination_ == null ? io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n } else {\n return destinationBuilder_.getMessage();\n }\n }",
"@JsonProperty(\"destination_name\")\n public String getDestinationName() {\n return destinationName;\n }",
"public InetSocketAddress getDestination () {\n\t\treturn origin;\n\t}",
"EndpointAddress getDestinationAddress();",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination() {\n return destination_ == null ? io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n }",
"public void setTransitionDestinationCallback(\n ScreenshotController.TransitionDestination destination) {\n mTransitionDestinationCallback.set(destination);\n }",
"public void setLogDestination(String logDestination) {\n this.logDestination = logDestination;\n }",
"@Override\n public Location getDestination() {\n return _destinationLocation != null ? _destinationLocation : getOrigin();\n }",
"public int getDestination() {\n\t\treturn finalDestination;\n\t}",
"public void setDestination (InetSocketAddress o) {\n\t\torigin = o;\n\t}",
"public void addDestination(NameValue<String, String> nv) {\n this.addDestination(nv.getKey(), nv.getValue());\n }",
"public Builder setRouteDestBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }",
"private boolean finalDestination(OverlayNodeSendsData event) {\n\t\tif (event.getDestID() == myAssignedID)\n\t\t\treturn true;\n\t\treturn false;\n\n\t}",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder() {\n return getDestination();\n }",
"public String getDestinationId()\n {\n return destinationId; // Field is final; no need to sync.\n }",
"@Override\n public void onArriveDestination() {\n\n }",
"EventChannelSource source();",
"public DelayDropLinkMessage(Address source, Address destination,\r\n Flp2pDeliver deliverEvent) {\r\n super(source, destination, Transport.TCP);\r\n this.deliverEvent = deliverEvent;\r\n }",
"String getDestinationAddress() {\n return this.resolvedDestination.destinationAddress;\n }",
"public void selectCruiseDestination(String destination) {\n\t\tSelect sel = new Select(goingTo);\n\t\tsel.selectByVisibleText(destination);\n\t}",
"io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder();",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"public void setQueue ( Queue queue )\r\n {\r\n setDestination ( queue );\r\n }",
"public Integer getDestination() {\n\t\treturn new Integer(destination);\n\t}",
"public boolean get_destination() {\r\n return (final_destination);\r\n }",
"public LatLng getDestination () {\n return destination;\n }",
"public ExportDestination getDestination() {\n return this.destination;\n }",
"public Long getDestinationNumber() {\n return this.destinationNumber;\n }",
"public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder() {\n if (destinationBuilder_ != null) {\n return destinationBuilder_.getMessageOrBuilder();\n } else {\n return destination_ == null ?\n io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination.getDefaultInstance() : destination_;\n }\n }",
"public void setDestinationCountry(String value) {\r\n this.destinationCountry = value;\r\n }",
"public Room getDestination() {\n return toRoom;\n }",
"public String destinationAttributeName() {\n return this.destinationAttributeName;\n }",
"public void moveToEvent(ControllerContext cc, Planet dest) {\n\t}",
"public String getRouteDest() {\n Object ref = routeDest_;\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 if (bs.isValidUtf8()) {\n routeDest_ = s;\n }\n return s;\n }\n }",
"public void setDest(Point dest){\n System.out.println(\"hit\");\n this.dest = dest;\n }"
] | [
"0.82442254",
"0.7226379",
"0.7168088",
"0.70403755",
"0.6965033",
"0.6925065",
"0.6915017",
"0.68959147",
"0.68806916",
"0.6839921",
"0.67900485",
"0.67808783",
"0.67738485",
"0.6756558",
"0.67381775",
"0.67364895",
"0.66986",
"0.6474823",
"0.64684594",
"0.64642495",
"0.6385365",
"0.6340906",
"0.62729514",
"0.6246891",
"0.6228026",
"0.6221542",
"0.62021077",
"0.6181741",
"0.6167258",
"0.61562496",
"0.6149721",
"0.61453485",
"0.61139905",
"0.61011446",
"0.6074676",
"0.6055985",
"0.59708154",
"0.59458935",
"0.5940152",
"0.593305",
"0.59301287",
"0.5876217",
"0.5866939",
"0.58425444",
"0.58425033",
"0.58355665",
"0.58355105",
"0.5830773",
"0.5820577",
"0.57985973",
"0.5784754",
"0.5779328",
"0.57758987",
"0.57737625",
"0.5765504",
"0.5729413",
"0.57258785",
"0.572327",
"0.5723243",
"0.5721313",
"0.5697173",
"0.5691899",
"0.5676178",
"0.56748724",
"0.5661845",
"0.56593734",
"0.5657653",
"0.56396836",
"0.5639143",
"0.5595007",
"0.5551277",
"0.5544403",
"0.55430377",
"0.5541342",
"0.5517103",
"0.55161977",
"0.55037534",
"0.5502021",
"0.54924434",
"0.54889905",
"0.5456738",
"0.54520315",
"0.5442784",
"0.54361665",
"0.5419333",
"0.54061043",
"0.54046106",
"0.539533",
"0.53894657",
"0.53887415",
"0.53848577",
"0.5384809",
"0.5368729",
"0.53568625",
"0.5353735",
"0.53528106",
"0.5349369",
"0.53415424",
"0.53379315",
"0.53362006"
] | 0.7667506 | 1 |
The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. | interface WithExpirationTimeIfNotActivatedUtc {
/**
* Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this
* timer expires while the corresponding partner topic is never activated, the event channel and
* corresponding partner topic are deleted..
*
* @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while
* the corresponding partner topic is never activated, the event channel and corresponding partner topic
* are deleted.
* @return the next definition stage.
*/
Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"OffsetDateTime expirationTimeIfNotActivatedUtc();",
"WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);",
"public OffsetDateTime expiration() {\n return this.innerProperties() == null ? null : this.innerProperties().expiration();\n }",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"public boolean hasUpdateTriggerTime() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }",
"public Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes() {\n return this.innerProperties() == null\n ? null\n : this.innerProperties().trafficRestorationTimeToHealedOrNewEndpointsInMinutes();\n }",
"public long getExpirationTime()\n {\n return this.m_eventExpirationTime;\n }",
"public DateTime expiryTime() {\n return this.expiryTime;\n }",
"public void setIsExtentExpiration(boolean value) {\n this.isExtentExpiration = value;\n }",
"int getUpdateTriggerTime();",
"public void setExpiryTime(long expiryTime) // Override this method to use intrinsic level-specific expiry times\n {\n super.setExpiryTime(expiryTime);\n\n if (expiryTime > 0)\n this.levels.setExpiryTime(expiryTime); // remove this in sub-class to use level-specific expiry times\n }",
"public Date getExpirationTime() {\n return expirationTime;\n }",
"public void setActivationTime(java.util.Calendar param){\n localActivationTimeTracker = true;\n \n this.localActivationTime=param;\n \n\n }",
"public Timestamp getExpirationDate() {\n return expirationDate;\n }",
"@Override\n public void setExpiration( Date arg0)\n {\n \n }",
"public void setExpiryDate(SIPDateOrDeltaSeconds e) {\n expiryDate = e ;\n }",
"@Override\n public Date getExpiration()\n {\n return null;\n }",
"boolean hasUpdateTriggerTime();",
"@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}",
"public long getExpiration() {\n return expiration;\n }",
"public void setRetentionExpiryDateTime(long expires) {\n\t\t\n\t\t// Check if the retention date/time has changed\n\t\t\n\t\tif ( getRetentionExpiryDateTime() != expires) {\n\t\t\t\n\t\t\t// Update the retention date/time\n\t\t\t\n\t\t\tsuper.setRetentionExpiryDateTime(expires);\n\t\t\t\n\t\t\t// Queue a low priority state update\n\t\t\t\n\t\t\tqueueLowPriorityUpdate( UpdateRetentionExpire);\n\t\t}\n\t}",
"public void setExpiration(long expiration) {\n this.expiration = expiration;\n }",
"public void setExpirationTime(Date expirationTime) {\n this.expirationTime = expirationTime;\n }",
"public int getUpdateTriggerTime() {\n return updateTriggerTime_;\n }",
"@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"public Date getReleaseTime() {\r\n return releaseTime;\r\n }",
"@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"protected void notificationOnExpiration() {\n }",
"public int getExpiryTime() {\n return expiryTime;\n }",
"@Override\r\n\tpublic void onBeforeUpdate(Record record) throws DeadlineExceededException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint newStatus = (Integer) record.getValue(\"resignationstatusid\");\r\n\t\tint oldStatus = (Integer) record.getOldValue(\"resignationstatusid\");\r\n\t\tif((oldStatus == HRISConstants.RESIGNATION_NEW || oldStatus == HRISConstants.RESIGNATION_ONHOLD || oldStatus == HRISConstants.RESIGNATION_REJECTED)&& newStatus == HRISConstants.RESIGNATION_ACCEPTED){\r\n\t\t\t\r\n\t\t\tString TODAY_DATE = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(SystemParameters.getCurrentDateTime());\r\n\t\t\trecord.addUpdate(\"approveddate\",TODAY_DATE);\r\n\t\t}\r\n\t}",
"public String getExpiration() {\n return this.expiration;\n }",
"private void setUpdateTriggerTime(int value) {\n bitField0_ |= 0x00000002;\n updateTriggerTime_ = value;\n }",
"public Integer delayExistingRevokeInHours() {\n return this.delayExistingRevokeInHours;\n }",
"public M csseUpdateTimeNull(){if(this.get(\"csseUpdateTimeNot\")==null)this.put(\"csseUpdateTimeNot\", \"\");this.put(\"csseUpdateTime\", null);return this;}",
"synchronized void setExpiration(long newExpiration) {\n \texpiration = newExpiration;\n }",
"protected void updateNextLifeSign() {\n nextLifeSignToSend = System.currentTimeMillis() + NotEOFConstants.LIFE_TIME_INTERVAL_CLIENT;\n }",
"@SubscribeEvent\n public void onUpdate(LocalPlayerUpdateEvent event) {\n \tObfuscationReflectionHelper.setPrivateValue(Minecraft.class, MC, 0, \"rightClickDelayTimer\", \"field_71467_ac\");\n }",
"public boolean hasUpdateTriggerTime() {\n return instance.hasUpdateTriggerTime();\n }",
"public int getUpdateTriggerTime() {\n return instance.getUpdateTriggerTime();\n }",
"public Double getExposureTime()\n\t{\n\t\treturn null;\n\t}",
"public boolean isIsExtentExpiration() {\n return isExtentExpiration;\n }",
"public boolean hasConsumerTime() {\n return fieldSetFlags()[2];\n }",
"@java.lang.Override\n public long getExpirationDate() {\n return expirationDate_;\n }",
"long getExpiration();",
"EventChannel.Update update();",
"long getExpiryTime() {\n return expiryTime;\n }",
"public java.util.Calendar getExpiryTime(){\n return localExpiryTime;\n }",
"public Timestamp getExpirationTime() {\n\t\treturn m_ExpirationTime;\n\t}",
"interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }",
"@java.lang.Override\n public long getExpirationDate() {\n return expirationDate_;\n }",
"public void setReleaseTime(Date releaseTime) {\r\n this.releaseTime = releaseTime;\r\n }",
"public void setExpiryTime(long expiryTime) {\n this.expiryTime = expiryTime;\n }",
"private int getActiveTime() {\n\t\treturn 15 + level;\n\t}",
"public Date getRealActivate() {\r\n return realActivate;\r\n }",
"public Date getExpirationDate() {\r\n return expirationDate;\r\n }",
"Update withFilter(EventChannelFilter filter);",
"void setExposureTimePref(long exposure_time);",
"@Override\n\tpublic Date getUpdateTime() {\n\t\treturn null;\n\t}",
"public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public org.djbikeshop.www.repairtransportationservice.UpdateDeliveryTimeResponse updateDeliveryTime\n (\n org.djbikeshop.www.repairtransportationservice.UpdateDeliveryTime updateDeliveryTime\n )\n ;",
"public java.lang.String getApproveExpenseTime () {\n\t\treturn approveExpenseTime;\n\t}",
"public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"com.google.protobuf.TimestampOrBuilder getCurrentStateTimeOrBuilder();",
"@Test\n public void testTransparencyChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setTransp(TranspEnum.TRANSPARENT.equals(createdEvent.getTransp()) ? TranspEnum.OPAQUE : TranspEnum.TRANSPARENT);\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that the event is marked as \"free\"\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment will now be shown as\");\n }",
"public Date getExpirationDate() {\n return expirationDate;\n }",
"public Date getExpirationDate() {\n return expirationDate;\n }",
"public Event pistonECEvent(long startTime, long endTime, boolean option) {\r\n \tEvent temp;\r\n \tif(System.currentTimeMillis() < lockUntil) return null;\r\n \t\r\n if(option) \r\n temp = new Event(1, System.currentTimeMillis()+startTime, System.currentTimeMillis()+endTime, \r\n () -> this.extend(), () -> this.contract());\r\n else\r\n temp = new Event(1, startTime, endTime, () -> this.extend(), () -> this.contract());\r\n \r\n lockUntil = endTime+500;\r\n return temp;\r\n }",
"@SuppressWarnings(\"unchecked\")\n public <O> Optional<O> effectiveNow() {\n return journal.journal\n .retrieve(BarbelQueries.effectiveNow(journal.id),\n queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> journal.processingState.expose(journal.context, (Bitemporal) d)).findFirst()\n .flatMap(o -> Optional.of((Bitemporal) o));\n }",
"public double gettimetoAchieve(){\n\t\treturn this.timeFrame;\n\t}",
"@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}",
"public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"public void setRenewalEffectiveDate(java.util.Date value);",
"public java.util.Calendar getActivationTime(){\n return localActivationTime;\n }",
"long getExposureTimePref();",
"public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }",
"public Date getAuditingTime() {\r\n return auditingTime;\r\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"public boolean isSetActivedEndTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __ACTIVEDENDTIMESTAMP_ISSET_ID);\n }",
"public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }",
"@Override\n public final void setExpiration(double expirationTime) {\n safetyHelper.setExpiration(expirationTime);\n }",
"public Integer getExpiry() {\n return expiry;\n }",
"public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }",
"public String getAuditUpdateActionRequest() {\n return auditUpdateActionRequest;\n }",
"@java.lang.Override\n public boolean getWaitExpired() {\n return waitExpired_;\n }",
"public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"public static long handleStandardExpiry(ESISyncEndpoint ep, SynchronizedEveAccount acct) {\n long shift = TimeUnit.MILLISECONDS.convert(1, TimeUnit.MINUTES);\n long def = OrbitalProperties.getCurrentTime() + shift;\n try {\n return Math.max(def, ESIEndpointSyncTracker.getLatestFinishedTracker(acct, ep)\n .getSyncEnd() + modelExpiry.get(ep) + shift);\n } catch (IOException | TrackerNotFoundException e) {\n // Log and return current time plus a small delta\n log.log(Level.WARNING, \"Error retrieving last tracker finish time\", e);\n return def;\n }\n }",
"public SIPDateOrDeltaSeconds getExpiryDate() {\n return expiryDate ;\n }",
"public double getUpdateWaitDuration()\r\n {\r\n return updateWait;\r\n }",
"public int getPauseAfterChangePatch()\n {\n return 0;\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"com.google.protobuf.Timestamp getCurrentStateTime();",
"@java.lang.Override\n public boolean getWaitExpired() {\n return waitExpired_;\n }",
"WithInactivityOption getEditedEntityWithInactivityOption();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getRenewalEffectiveDate();",
"public int getUpdateLevel() {\n return updateLevel;\n }",
"@ApiModelProperty(value = \"The number of seconds until this request can no longer be answered.\")\n public BigDecimal getExpiresIn() {\n return expiresIn;\n }",
"@Basic\n\tpublic double getTimeInvincible(){\n\t\treturn this.time_invincible;\n\t}"
] | [
"0.65419877",
"0.6505849",
"0.6377393",
"0.60102373",
"0.5349983",
"0.5212806",
"0.5084932",
"0.5070052",
"0.5061454",
"0.500201",
"0.49958318",
"0.4992847",
"0.49864864",
"0.49674207",
"0.49618682",
"0.49478924",
"0.49179938",
"0.48809764",
"0.48575804",
"0.48429197",
"0.4841034",
"0.4840257",
"0.4809156",
"0.47947755",
"0.4782765",
"0.47819838",
"0.4780811",
"0.4771084",
"0.4757412",
"0.47481093",
"0.47458425",
"0.4740626",
"0.47345865",
"0.47286582",
"0.47224852",
"0.47188145",
"0.47112283",
"0.4697371",
"0.46845993",
"0.46829355",
"0.46778676",
"0.46777275",
"0.4673623",
"0.4659763",
"0.46558136",
"0.46531534",
"0.46510196",
"0.4640172",
"0.46334362",
"0.4633171",
"0.46260777",
"0.46027926",
"0.4596096",
"0.45909956",
"0.45897788",
"0.458937",
"0.45874783",
"0.45828354",
"0.45804164",
"0.45760834",
"0.45757982",
"0.45689923",
"0.45688397",
"0.45616752",
"0.45529446",
"0.45414975",
"0.4535131",
"0.45304587",
"0.45304587",
"0.4517014",
"0.450853",
"0.44991994",
"0.44974586",
"0.44960672",
"0.44876987",
"0.4481648",
"0.44791457",
"0.44768956",
"0.4467906",
"0.44637823",
"0.44607723",
"0.4448161",
"0.44408357",
"0.44396347",
"0.44340953",
"0.44328713",
"0.44292015",
"0.4427247",
"0.4425167",
"0.4419816",
"0.44189933",
"0.4417851",
"0.44146037",
"0.44108972",
"0.44099304",
"0.4406519",
"0.44059008",
"0.44056568",
"0.44055605",
"0.4394941"
] | 0.70538044 | 0 |
Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires while the corresponding partner topic is never activated, the event channel and corresponding partner topic are deleted.. | Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"OffsetDateTime expirationTimeIfNotActivatedUtc();",
"WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);",
"public long getExpirationTime()\n {\n return this.m_eventExpirationTime;\n }",
"public void setExpirationTime(Date expirationTime) {\n this.expirationTime = expirationTime;\n }",
"protected void notificationOnExpiration() {\n }",
"public void setExpiration(long expiration) {\n this.expiration = expiration;\n }",
"public OffsetDateTime expiration() {\n return this.innerProperties() == null ? null : this.innerProperties().expiration();\n }",
"int getExpireTimeout();",
"public Date getExpirationTime() {\n return expirationTime;\n }",
"boolean setChatMessageDeliveryExpired(String msgId);",
"public Timestamp getExpirationTime() {\n\t\treturn m_ExpirationTime;\n\t}",
"long getExpiration();",
"void sessionInactivityTimerExpired(DefaultSession session, long now);",
"@Override\n public void setExpiration( Date arg0)\n {\n \n }",
"@Override\n\tpublic void setTokenExpiryTime(long arg0) {\n\t\t\n\t}",
"@Override\n public Date getExpiration()\n {\n return null;\n }",
"public void setExpireTime(String ExpireTime) {\n this.ExpireTime = ExpireTime;\n }",
"public void setExpiryTime(long expiryTime) {\n this.expiryTime = expiryTime;\n }",
"@Override\n public final void setExpiration(double expirationTime) {\n safetyHelper.setExpiration(expirationTime);\n }",
"public boolean hasExpired() {\n return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis();\n }",
"public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }",
"public long getExpiration() {\n return expiration;\n }",
"synchronized void setExpiration(long newExpiration) {\n \texpiration = newExpiration;\n }",
"public void setExpirationDate(Timestamp aExpirationDate) {\n expirationDate = aExpirationDate;\n }",
"public cz.muni.fi.sdipr.kafka.latency.avro.Payload.Builder clearConsumerTime() {\n fieldSetFlags()[2] = false;\n return this;\n }",
"public Instant getExpirationTime() {\n return unit == ChronoUnit.SECONDS\n ? Instant.ofEpochSecond((Long.MAX_VALUE >>> timestampLeftShift) + epoch)\n : Instant.ofEpochMilli((Long.MAX_VALUE >>> timestampLeftShift) + epoch);\n }",
"public String getExpiration() {\n return this.expiration;\n }",
"public Long getExpireTime() {\n\t\treturn expireTime;\n\t}",
"public final void setExpiryTime(long expire) {\n\t\tm_tmo = expire;\n\t}",
"public void setExpireTime(java.util.Date expireTime) {\r\n this.expireTime = expireTime;\r\n }",
"public void setExpirationDate(Date expirationDate) {\r\n this.expirationDate = expirationDate;\r\n }",
"public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }",
"public int getExpiryTimeSecs() {\n return expiryTimeSecs_;\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"public boolean isExpired()\n\t{\n\t\tif (TimeRemaining == 0) \n\t\t\treturn true;\n\t\telse return false;\n\t}",
"public Builder clearExpiryTimeSecs() {\n bitField0_ = (bitField0_ & ~0x00000008);\n expiryTimeSecs_ = 0;\n onChanged();\n return this;\n }",
"public Date getDefaultTrialExpirationDate(){\n if(AccountType.STANDARD.equals(accountType)){\n Calendar cal = Calendar.getInstance();\n\n //setting the free trial up for standard users\n cal.add(Calendar.DATE, Company.FREE_TRIAL_LENGTH_DAYS);\n return cal.getTime();\n }\n\n return null;\n }",
"public void setExpirationDate(Date expirationDate) {\n this.expirationDate = expirationDate;\n }",
"public void setExpireTime(Date expireTime) {\n\t\tthis.expireTime = expireTime;\n\t}",
"Boolean isChatMessageExpiredDelivery(String msgId);",
"protected void setTokenExpirationTime(MendeleyOAuthToken token,\r\n\t\t\tSortedSet<String> responseParameters) {\r\n\t\tif (responseParameters != null && !responseParameters.isEmpty()) {\r\n\t\t\tCalendar calendar = Calendar.getInstance();\r\n\t\t\tint secondsToLive = Integer.valueOf(responseParameters.first());\r\n\t\t\tcalendar.add(Calendar.SECOND, secondsToLive);\r\n\t\t\ttoken.setExpirationTime(calendar.getTime());\r\n\t\t}\r\n\t}",
"public Date getExpireTime() {\n\t\treturn expireTime;\n\t}",
"public String getExpireTime() {\n return this.ExpireTime;\n }",
"@Override\n public void setNotification() {\n if (getTense() == Tense.FUTURE) {\n //Context ctx = SHiTApplication.getContext();\n //SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n int leadTimeEventMinutes = SHiTApplication.getPreferenceInt(Constants.Setting.ALERT_LEAD_TIME_EVENT, LEAD_TIME_MISSING);\n\n if (leadTimeEventMinutes != LEAD_TIME_MISSING) {\n if (travelTime > 0) {\n leadTimeEventMinutes += travelTime;\n }\n\n setNotification(Constants.Setting.ALERT_LEAD_TIME_EVENT\n , leadTimeEventMinutes\n , R.string.alert_msg_event\n , getNotificationClickAction()\n , null);\n }\n }\n }",
"@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"public void setExpirationDate(java.util.Calendar expirationDate) {\n this.expirationDate = expirationDate;\n }",
"public void setPinExpirationTime(java.util.Calendar pinExpirationTime) {\r\n this.pinExpirationTime = pinExpirationTime;\r\n }",
"public Timestamp getExpirationDate() {\n return expirationDate;\n }",
"public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"boolean isExpire(long currentTime);",
"public void setExpirationDate(java.util.Date value);",
"protected void scheduleExpiry()\n {\n long dtExpiry = 0L;\n int cDelay = OldOldCache.this.m_cExpiryDelay;\n if (cDelay > 0)\n {\n dtExpiry = getSafeTimeMillis() + cDelay;\n }\n setExpiryMillis(dtExpiry);\n }",
"public long getExpirationDate() {\n return expirationDate_;\n }",
"public void timerExpired(int timerIndex) {\n switch(myState) {\n case (Init):\n {\n if (timerIndex == FINALDELETE_TIMER_INDEX) {\n }\n }\n break;\n case (NoPayload_Recover):\n {\n }\n break;\n case (NoPayload_NoRecover):\n {\n if (timerIndex == REC_TIMER_INDEX) {\n }\n }\n break;\n case (WaitforPayload):\n {\n if (timerIndex == NACK_TIMER_INDEX) {\n if (neighboraddress != null) {\n sendToNode(NACK_SYNC, neighboraddress);\n }\n messageStore.setTimer(this, NACK_TIMER_INDEX, timeout_NACK);\n } else if (timerIndex == MAXNACK_TIMER_INDEX) {\n myState = NoPayload_Recover;\n }\n }\n break;\n case (HavePayload):\n {\n if (timerIndex == DELETE_TIMER_INDEX) {\n }\n }\n break;\n }\n }",
"@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"private synchronized void expireTimeout\n\t\t(Timer theTimer,\n\t\t JobFrontendRef theJobFrontend)\n\t\tthrows IOException\n\t\t{\n\t\tif (theTimer.isTriggered())\n\t\t\t{\n\t\t\tJobInfo jobinfo = getJobInfo (theJobFrontend);\n\t\t\tdoCancelJob\n\t\t\t\t(System.currentTimeMillis(),\n\t\t\t\t jobinfo,\n\t\t\t\t \"Job frontend lease expired\");\n\t\t\t}\n\t\t}",
"public Builder clearExpirationDate() {\n bitField0_ &= ~0x00000020;\n expirationDate_ = 0L;\n onChanged();\n return this;\n }",
"public void setTrialExpirationDate(java.util.Calendar trialExpirationDate) {\n this.trialExpirationDate = trialExpirationDate;\n }",
"public void setExpiredSessions(long expiredSessions);",
"public void setNonSubscribeTimeout(int timeout) {\n super.setNonSubscribeTimeout(timeout);\n }",
"public Builder clearExpirationDate() {\n bitField0_ = (bitField0_ & ~0x00000200);\n expirationDate_ = 0L;\n\n return this;\n }",
"public boolean isExpired() {\n return getExpiration() <= System.currentTimeMillis() / 1000L;\n }",
"public Builder setExpiryTimeSecs(int value) {\n bitField0_ |= 0x00000008;\n expiryTimeSecs_ = value;\n onChanged();\n return this;\n }",
"boolean hasExpiryTimeSecs();",
"public boolean hasExchangeTime() {\n return exchangeTime_ != null;\n }",
"private boolean hasCoolOffPeriodExpired(Jwt jwt) {\n\n Date issuedAtTime = jwt.getClaimsSet().getIssuedAtTime();\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.set(Calendar.MILLISECOND, 0);\n calendar.add(Calendar.MINUTE, -1);\n\n return calendar.getTime().compareTo(issuedAtTime) > 0;\n }",
"boolean checkForExpiration() {\n boolean expired = false;\n\n // check if lease exists and lease expire is not MAX_VALUE\n if (leaseId > -1 && leaseExpireTime < Long.MAX_VALUE) {\n\n long currentTime = getCurrentTime();\n if (currentTime > leaseExpireTime) {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[checkForExpiration] Expiring token at {}: {}\",\n currentTime, this);\n }\n noteExpiredLease();\n basicReleaseLock();\n expired = true;\n }\n }\n\n return expired;\n }",
"public void setIsExtentExpiration(boolean value) {\n this.isExtentExpiration = value;\n }",
"public boolean checkTimeout(){\n\t\tif((System.currentTimeMillis()-this.activeTime.getTime())/1000 >= this.expire){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@Override\n public synchronized void enableIfPossible() {\n if (!enabled && analyticNotificationConfig != null) {\n if (lastNotificationTimeMs == null) {\n reset();\n\n } else {\n // See if we should resume notifications.\n if (analyticNotificationConfig.getResumeAfter() != null) {\n final Instant resumeTime = SimpleDurationUtil.plus(\n lastNotificationTimeMs,\n analyticNotificationConfig.getResumeAfter());\n final Instant now = Instant.now();\n if (now.isAfter(resumeTime)) {\n reset();\n }\n }\n }\n }\n }",
"public int getExpiryTime() {\n return expiryTime;\n }",
"public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }",
"public Date getExpirationDate() {\r\n return expirationDate;\r\n }",
"long getExpirationDate();",
"@Override\n\tpublic long getTokenExpiryTime() {\n\t\treturn 0;\n\t}",
"public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public void setExpirationDate(String expirationDate) {\r\n\t\tthis.expirationDate = expirationDate;\r\n\t}",
"private static void setTimerForTokenRenewal(\n DelegationTokenToRenew token, boolean firstTime) {\n \n // calculate timer time\n long now = System.currentTimeMillis();\n long renewIn;\n if(firstTime) {\n renewIn = now;\n } else {\n long expiresIn = (token.expirationDate - now); \n renewIn = now + expiresIn - expiresIn/10; // little before expiration\n }\n \n try {\n // need to create new timer every time\n TimerTask tTask = new RenewalTimerTask(token);\n token.setTimerTask(tTask); // keep reference to the timer\n\n renewalTimer.schedule(token.timerTask, new Date(renewIn));\n } catch (Exception e) {\n LOG.warn(\"failed to schedule a task, token will not renew more\", e);\n }\n }",
"public boolean hasExchangeTime() {\n return exchangeTimeBuilder_ != null || exchangeTime_ != null;\n }",
"private void expire()\n\t{\n\t\tif (m_expire != 0 && m_timeExp < System.currentTimeMillis())\n\t\t{\n\t\t//\tSystem.out.println (\"------------ Expired: \" + getName() + \" --------------------\");\n\t\t\treset();\n\t\t}\n\t}",
"public java.util.Date getExpireTime() {\r\n return expireTime;\r\n }",
"public final String getRequestExpiration() {\n return properties.get(REQUEST_EXPIRATION_PROPERTY);\n }",
"public void setRetentionExpiryDateTime(long expires) {\n\t\t\n\t\t// Check if the retention date/time has changed\n\t\t\n\t\tif ( getRetentionExpiryDateTime() != expires) {\n\t\t\t\n\t\t\t// Update the retention date/time\n\t\t\t\n\t\t\tsuper.setRetentionExpiryDateTime(expires);\n\t\t\t\n\t\t\t// Queue a low priority state update\n\t\t\t\n\t\t\tqueueLowPriorityUpdate( UpdateRetentionExpire);\n\t\t}\n\t}",
"public void setConsumerTime(java.lang.Long value) {\n this.consumer_time = value;\n }",
"public void setExpirationDate(java.util.Date expirationDate) {\n this.expirationDate = expirationDate;\n }",
"protected final Date getExpirationDate() {\n Session currentSession = sessionTracker.getOpenSession();\n return (currentSession != null) ? currentSession.getExpirationDate() : null;\n }",
"public Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes() {\n return this.innerProperties() == null\n ? null\n : this.innerProperties().trafficRestorationTimeToHealedOrNewEndpointsInMinutes();\n }",
"@Override\n\tpublic void setHealSessionInterval(long arg0) {\n\n\t}",
"public Builder setExchangeTime(hr.client.appuser.CouponCenter.TimeRange value) {\n if (exchangeTimeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n exchangeTime_ = value;\n onChanged();\n } else {\n exchangeTimeBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setExpirationDate(Date expirationDate) {\n\t\tthis.expirationDate = expirationDate;\n\t}",
"public void setExpirationDate(Date expirationDate) {\n\t\tthis.expirationDate = expirationDate;\n\t}",
"public void setExpirationDateType(ExpirationDateType aExpirationDateType) {\n expirationDateType = aExpirationDateType;\n }",
"public DateTime expiryTime() {\n return this.expiryTime;\n }",
"private \n void setTimerForTokenRenewal(DelegationTokenToRenew token, \n boolean firstTime) throws IOException {\n \n // calculate timer time\n long now = System.currentTimeMillis();\n long renewIn;\n if(firstTime) {\n renewIn = now;\n } else {\n long expiresIn = (token.expirationDate - now); \n renewIn = now + expiresIn - expiresIn/10; // little bit before the expiration\n }\n \n // need to create new task every time\n TimerTask tTask = new RenewalTimerTask(token);\n token.setTimerTask(tTask); // keep reference to the timer\n\n renewalTimer.schedule(token.timerTask, new Date(renewIn));\n }",
"LocalDateTime getExpiration(K key);",
"@java.lang.Override\n public long getExpirationDate() {\n return expirationDate_;\n }",
"void clearMessageDeliveryExpiration(List<String> msgIds);"
] | [
"0.8034707",
"0.78622764",
"0.70016664",
"0.63563836",
"0.5940995",
"0.57779366",
"0.5573499",
"0.54945624",
"0.5435103",
"0.5362911",
"0.5357043",
"0.5319087",
"0.5273414",
"0.52622694",
"0.5252533",
"0.519233",
"0.51701057",
"0.51657563",
"0.5153391",
"0.5136412",
"0.5136017",
"0.5098569",
"0.50929624",
"0.5083102",
"0.506692",
"0.50159967",
"0.497469",
"0.4959122",
"0.49571145",
"0.49513486",
"0.4951058",
"0.49367145",
"0.48808336",
"0.487754",
"0.48372906",
"0.48332942",
"0.48314455",
"0.4831037",
"0.4825324",
"0.48250794",
"0.48227036",
"0.48200646",
"0.4800782",
"0.48005885",
"0.47901902",
"0.47882098",
"0.47860074",
"0.47832993",
"0.47822157",
"0.4780102",
"0.47686583",
"0.47667223",
"0.47577536",
"0.47537667",
"0.47512746",
"0.47482866",
"0.47375906",
"0.4736548",
"0.4729734",
"0.4726399",
"0.47258842",
"0.47239178",
"0.47238082",
"0.47169745",
"0.47162935",
"0.47131544",
"0.4711178",
"0.47101754",
"0.47087353",
"0.4708488",
"0.47064376",
"0.47035062",
"0.4698822",
"0.46921062",
"0.4681907",
"0.46750265",
"0.4673005",
"0.46706104",
"0.46670178",
"0.46525943",
"0.46511516",
"0.4649919",
"0.46458235",
"0.46308905",
"0.4627951",
"0.46203256",
"0.46137384",
"0.46129924",
"0.4611333",
"0.46056208",
"0.4605453",
"0.46051934",
"0.46044847",
"0.46044847",
"0.4595098",
"0.45947215",
"0.45909333",
"0.45901263",
"0.45860228",
"0.45852774"
] | 0.64766526 | 3 |
The stage of the EventChannel update allowing to specify filter. | interface WithFilter {
/**
* Specifies the filter property: Information about the filter for the event channel..
*
* @param filter Information about the filter for the event channel.
* @return the next definition stage.
*/
Update withFilter(EventChannelFilter filter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Update withFilter(EventChannelFilter filter);",
"void filterChanged(Filter filter);",
"EventChannelFilter filter();",
"@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();",
"@Override\n\tpublic void filterChange() {\n\t\t\n\t}",
"public abstract void updateFilter();",
"@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);",
"private void updateFilter(BasicOutputCollector collector) {\n if (updateFilter()){\n \tValues v = new Values();\n v.add(ImmutableList.copyOf(filter));\n \n collector.emit(\"filter\",v);\n \t\n }\n \n \n \n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"void onFilterChanged(ArticleFilter filter);",
"WithCreate withFilter(EventChannelFilter filter);",
"@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }",
"void filterUpdate(ServerContext context, UpdateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);",
"EventChannel.Update update();",
"EventChannel apply();",
"FilterInfo setFilterActive(String filter_id, int revision) throws Exception;",
"Update withSource(EventChannelSource source);",
"void sendFilterState(FilterState filterState);",
"public void updateFilter() {\n Texture2dProgram.ProgramType programType;\n float[] kernel = null;\n float colorAdj = 0.0f;\n\n Log.d(TAG, \"Updating filter to \" + mNewFilter);\n switch (mNewFilter) {\n case CameraActivity.FILTER_NONE:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT;\n break;\n case CameraActivity.FILTER_BLACK_WHITE:\n // (In a previous version the TEXTURE_EXT_BW variant was enabled by a flag called\n // ROSE_COLORED_GLASSES, because the shader set the red channel to the B&W color\n // and green/blue to zero.)\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_BW;\n break;\n case CameraActivity.FILTER_BLUR:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 1f/16f, 2f/16f, 1f/16f,\n 2f/16f, 4f/16f, 2f/16f,\n 1f/16f, 2f/16f, 1f/16f };\n break;\n case CameraActivity.FILTER_SHARPEN:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 0f, -1f, 0f,\n -1f, 5f, -1f,\n 0f, -1f, 0f };\n break;\n case CameraActivity.FILTER_EDGE_DETECT:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n -1f, -1f, -1f,\n -1f, 8f, -1f,\n -1f, -1f, -1f };\n break;\n case CameraActivity.FILTER_EMBOSS:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 2f, 0f, 0f,\n 0f, -1f, 0f,\n 0f, 0f, -1f };\n colorAdj = 0.5f;\n break;\n default:\n throw new RuntimeException(\"Unknown filter mode \" + mNewFilter);\n }\n\n // Do we need a whole new program? (We want to avoid doing this if we don't have\n // too -- compiling a program could be expensive.)\n if (programType != mFullScreen.getProgram().getProgramType()) {\n mFullScreen.changeProgram(new Texture2dProgram(programType));\n // If we created a new program, we need to initialize the texture width/height.\n mIncomingSizeUpdated = true;\n }\n\n // Update the filter kernel (if any).\n if (kernel != null) {\n mFullScreen.getProgram().setKernel(kernel, colorAdj);\n }\n\n mCurrentFilter = mNewFilter;\n }",
"public void listen(int UPDATE_VALUE){\n \tif(this.filterType.filter(UPDATE_VALUE)) {\n \t\tthis.setBNumber(this.getBNumber() + UPDATE_VALUE);\n \t}\n }",
"public void capabilitiesFilterChanged(CapabilitiesFilterChangeEvent e) {\r\n if (e.getFilter() == null)\r\n updateCapabilitiesFilter(null);\r\n else\r\n updateCapabilitiesFilter((Capabilities) e.getFilter().clone());\r\n }",
"interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }",
"protected void ACTION_B_FILTER(ActionEvent e) {\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif(RB_FILTER_ENABLE.isSelected())\r\n\t\t\t{\r\n\t\t\t\tif(RB_PORT_HTTP.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"ip and tcp\", true);\r\n\t\t\t\t}\r\n\t\t\t\telse if(RB_PORT_DNS.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"udp dst port 53\", true);\r\n\t\t\t\t}else if(RB_PORT_SMTP.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"smtp dst port 25\", true);\r\n\t\t\t\t}else if(RB_PORT_SSL.isSelected())\r\n\t\t\t\t{\r\n\t\t\t\t\tCAP.setFilter(\"port 443\", true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Filtering is Disabled\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e2) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(e2);\r\n\t\t}\r\n\t\t\r\n\t}",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}",
"@Override\n\tpublic String update(Set<String> filterField) {\n\t\treturn null;\n\t}",
"void setFilter(Filter f);",
"public void onUpdateFilters(SearchFilter newFilter) {\n filter.setSort(newFilter.getSort());\n filter.setBegin_date(newFilter.getBegin_date());\n filter.setNewsDeskOpts(newFilter.getNewsDeskOpts());\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n fetchArticles(0,true);\n }",
"public void changeFilterMode(int filter) {\n mNewFilter = filter;\n }",
"FilterInfo setCanaryFilter(String filter_id, int revision);",
"public void ChangeFilter(String arg) {\r\n\t\tSelect dropDown = new Select(filter);\r\n\t\tdropDown.selectByIndex(1);;\r\n\t\tReporter.log(\"Filter clicked\"+arg,true);\r\n\t}",
"@Override\n public int filterOrder() {\n return 1;\n }",
"@Override\n public int filterOrder() {\n return 1;\n }",
"public boolean filtersChanged(){\n if(startDateChanged || endDateChanged || stationIdChanged || languageChanged){\n return true;\n }\n return false;\n }",
"private void dataFilterChanged() {\n\n\t\t// save prefs:\n\t\tappPrefes.SaveData(\"power_show_power\", mShowPower ? \"on\" : \"off\");\n\t\tappPrefes.SaveData(\"power_show_energy\", mShowEnergy ? \"on\" : \"off\");\n\n\t\t// check data status:\n\t\tif (!isPackValid())\n\t\t\treturn;\n\n\t\t// update charts:\n\t\tupdateCharts();\n\n\t\t// sync viewports:\n\t\tchartCoupler.syncCharts();\n\t}",
"@Override\n public IntentFilter observerFilter() {\n IntentFilter filter = new IntentFilter();\n filter.addAction(ChannelDatabaseManager.STORE_ANNOUNCEMENT);\n return filter;\n }",
"public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }",
"public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }",
"public LSPFilter getFilter () {\r\n return filter;\r\n }",
"UpdateScanFilterResponse updateScanFilter(UpdateScanFilterRequest request) throws RevisionException;",
"public void addFilter ( ChannelKey channelKey )\n throws SystemException, CommunicationException, AuthorizationException, DataValidationException\n {\n }",
"public void setFilter(EntityFilter filter);",
"EventChannel apply(Context context);",
"@Subscribe\r\n\tpublic void onSelectPathwayFilter(PathwayFilterSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"FeedbackFilter getFilter();",
"void onEntry(FilterContext ctx) throws SoaException;",
"public void stateChanged(ChangeEvent e) {\n JSlider source = (JSlider)e.getSource();\n //volume\n if(parameter=='v'){\n System.out.println(\"Panel: \"+numSampler+\" volume: \"+source.getValue());\n }\n //volume\n else if(parameter=='p'){\n System.out.println(\"Panel: \"+numSampler+\" pitch: \"+source.getValue());\n }\n else if(parameter=='f'){\n System.out.println(\"Panel: \"+numSampler+\" filter cutoff: \"+source.getValue());\n }\n }",
"public void addFilter(MessageFilter filter);",
"public IntentFilter createFilter()\n {\n IntentFilter filter = new IntentFilter();\n filter.addAction(UPDATE_TIME);\n\n return filter;\n }",
"public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}",
"@FXML\n public void getFilteredResults(ActionEvent event) throws IOException {\n int filterValueInt = 0;\n String filterName = filterChoiceBox.getValue(); //Get value from text field\n\n UpdateHandler.setFilter_Changed(true);\n\n if (!filterName.equals(ALL_FILTER)) {\n try {\n filterValueInt = Integer.parseInt(filterValue.getText());\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(null, \"Has to be a number.\");\n }\n UpdateHandler.setFILTER_NAME(filterName);\n UpdateHandler.setFILTER_VALUE(filterValueInt);\n } else {\n UpdateHandler.setFILTER_NAME(\"All\");\n UpdateHandler.setFILTER_VALUE(0);\n }\n }",
"@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}",
"public void onBeforeLayerAction(AGActivityLayerInterface filter, int action);",
"public void addFilterToParentLayer(ViewerFilter filter);",
"public void setFilter(Expression filter) {\n this.filter = filter;\n }",
"@Override\n public void visit(final OpFilter opFilter) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpFilter\");\n }\n addOp(OpFilter.filterBy(opFilter.getExprs(), rewriteOp1(opFilter)));\n }",
"void actionPanelAccepted() {\r\n BPFilter newFilter = new BPFilter();\r\n int[] filterOptions = new int[10];\r\n // get the selected basepair types.\r\n if (this.ccCheckBox.isSelected()){\r\n filterOptions[0] = BasepairType.CC;\r\n }\r\n if (this.cgCheckBox.isSelected()){\r\n filterOptions[1] = BasepairType.CG;\r\n }\r\n if (this.cuCheckBox.isSelected()){\r\n filterOptions[2] = BasepairType.CU;\r\n }\r\n if (this.aaCheckBox.isSelected()){\r\n filterOptions[3] = BasepairType.AA;\r\n }\r\n if (this.acCheckBox.isSelected()){\r\n filterOptions[4] = BasepairType.AC;\r\n }\r\n if (this.agCheckBox.isSelected()){\r\n filterOptions[5] = BasepairType.AG;\r\n }\r\n if (this.auCheckBox.isSelected()){\r\n filterOptions[6] = BasepairType.AU;\r\n }\r\n if (this.ggCheckBox.isSelected()){\r\n filterOptions[7] = BasepairType.GG;\r\n }\r\n if (this.guCheckBox.isSelected()){\r\n filterOptions[8] = BasepairType.GU;\r\n }\r\n if (this.uuCheckBox.isSelected()){\r\n filterOptions[9] = BasepairType.UU;\r\n }\r\n newFilter.setArguments(filterOptions);\r\n // set return value for getNewFilter()\r\n this.filter = newFilter;\r\n }",
"@Override\r\n\tpublic NotificationFilter getFilter() {\n\t\treturn super.getFilter();\r\n\t}",
"public String getFilter() {\n\t\treturn filter;\n\t}",
"public void onApply() {\n\t\tlogger.info( \"FilterManager::onapply\" );\n\t\tif ( !getEnabled() || !isOpened() ) return;\n\n\t\tif ( mCurrentEffect == null ) throw new IllegalStateException( \"there is no current effect active in the context\" );\n\n\t\tif ( !mCurrentEffect.isEnabled() ) return;\n\n\t\tif ( mCurrentEffect.getIsChanged() ) {\n\t\t\tmCurrentEffect.onSave();\n\t\t\tmChanged = true;\n\t\t} else {\n\t\t\tonCancel();\n\t\t}\n\t}",
"public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }",
"public void addBusinessFilterToParentLayer(ViewerFilter filter);",
"public void addFilterToParentModule(ViewerFilter filter);",
"FeatureHolder filter(FeatureFilter filter);",
"public void addFilterToAnotations(ViewerFilter filter);",
"public void addFilterToAnotations(ViewerFilter filter);",
"@Override\n\tpublic void attachFilter(ConfigContext ctx, Entity entity) {\n\t}",
"protected void updateFromTypeFilter(int iFilterIndex)\r\n {\n \tsuper.updateFromTypeFilter(3);\r\n \t//super.updateFromTypeFilter(iFilterIndex);\r\n }",
"@Override\n\tpublic void filterClick() {\n\t\t\n\t}",
"Filter getFilter();",
"public void addFilter(int index, MessageFilter filter);",
"void handleManualFilterRequest();",
"public void updateChamados() {\n FilterAction action = comboFilter.getValue();\n if (action != null) {\n action.execute();\n }\n }",
"@Override public Filter getFilter() { return null; }",
"public void onAfterLayerAction(AGActivityLayerInterface filter, int action);",
"public Expression getFilter() {\n return this.filter;\n }",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"public String getFilterCondition() {\n return filterCondition;\n }",
"private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}",
"@Override\n public void accept(OrcFilterContext batch) {\n }",
"Update withDestination(EventChannelDestination destination);",
"public void addBusinessFilterToParentModule(ViewerFilter filter);",
"public interface FilterChain {\n\n // execute current filter's onEntry\n void onEntry(FilterContext ctx) throws SoaException;\n\n // execute current filter's onExit\n void onExit(FilterContext ctx)throws SoaException;\n\n\n}",
"void setFilter(String filter);",
"public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration,\r\n @Local\r\n RequestFilter filter)\r\n {\r\n // Each contribution to an ordered configuration has a name, When necessary, you may\r\n // set constraints to precisely control the invocation order of the contributed filter\r\n // within the pipeline.\r\n\r\n configuration.add(\"Timing\", filter);\r\n }",
"public ExtensionFilter getFilter () {\n return this.filter;\n }",
"public void clickonFilter() {\n\t\t\n\t}",
"public void addFilterToCombo(ViewerFilter filter);",
"public Filter getFilterComponent()\n {\n return filterComponent;\n }",
"public String getFilter();",
"public int getFilterMode(){ return mFilterMode;}",
"public void startListening(){\n\t\t// viewerFilter =\n\t\t// cv.getConfigurer().getControlFieldProvider().createFilter();\n\t\tcv.getConfigurer().getControlFieldProvider().addChangeListener(this);\n\t}",
"public void playerBasicChange(PlayerBasicChangeEvent event) {\n }",
"public void addFilterToReader(ViewerFilter filter);",
"@Override//过滤器类型 pre 表示在请求之前\r\n\tpublic String filterType() {\n\t\treturn \"pre\";\r\n\t}",
"@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }",
"public void addFilterToComboRO(ViewerFilter filter);",
"public void addFilter(final Filter filter) {\n privateConfig.config.addLoggerFilter(this, filter);\n }",
"public Filter getFilter() {\n\t\treturn (filter);\n\t}",
"final void updateMsdtFilterMap() {\r\n\r\n logger.entering(this.getClass().getName(), \"updateMsdtFilterMap\");\r\n\r\n String filterExpression = \"\";\r\n\t\t\r\n\t\tfor (MicroSensorDataType msdt : this.chkMsdtSelection.keySet()) {\r\n JCheckBox chkBox = this.chkMsdtSelection.get(msdt);\r\n\r\n this.msdtFilterMap.remove(msdt);\r\n\r\n if (chkBox.isSelected()) {\r\n\r\n\t\t\t\tthis.msdtFilterMap.put(msdt, Boolean.FALSE);\r\n\t\t\t\t// Compile new filter property string\r\n\t\t\t\tfilterExpression += (filterExpression.length() == 0 ? \"\" : \",\") + msdt.getName();\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tthis.msdtFilterMap.put(msdt, Boolean.TRUE);\r\n\r\n\t\t\t}\r\n }\r\n\t\t\r\n\t\t// set the new value of the filter property\r\n\t\ttry {\r\n\t\t\tthis.getModuleProperty(BLOCKER_PROPERTY).setValue(filterExpression);\r\n\t\t} catch (ModulePropertyException e) {\r\n\t\t\tlogger.log(Level.WARNING, \"The filter module is supposed to support the property \" + BLOCKER_PROPERTY);\r\n\t\t}\r\n\t\t\t\r\n\r\n logger.exiting(this.getClass().getName(), \"updateMsdtFilterMap\");\r\n }"
] | [
"0.8242106",
"0.7092571",
"0.69187987",
"0.6822777",
"0.68086505",
"0.666097",
"0.6554868",
"0.6373841",
"0.63323957",
"0.6277691",
"0.6101316",
"0.6038138",
"0.6006824",
"0.5957384",
"0.5943782",
"0.5872121",
"0.58247674",
"0.58204234",
"0.57806623",
"0.57240206",
"0.5651457",
"0.5590263",
"0.55705625",
"0.5521852",
"0.5499123",
"0.5497544",
"0.5491251",
"0.5489444",
"0.5468025",
"0.5460758",
"0.5435485",
"0.543542",
"0.543542",
"0.54293275",
"0.54226005",
"0.5419614",
"0.54160327",
"0.54053324",
"0.54022616",
"0.5392204",
"0.5388888",
"0.5369586",
"0.5358958",
"0.53576314",
"0.535713",
"0.53386503",
"0.5333833",
"0.5329256",
"0.53204376",
"0.5311965",
"0.53114355",
"0.53102684",
"0.52858514",
"0.5285349",
"0.52810353",
"0.5269441",
"0.52644897",
"0.5254916",
"0.5253967",
"0.52050257",
"0.52011967",
"0.5193405",
"0.518583",
"0.5172721",
"0.5169238",
"0.5169238",
"0.516747",
"0.51671505",
"0.5155358",
"0.5153442",
"0.5152373",
"0.51507396",
"0.51400214",
"0.5138598",
"0.5137182",
"0.51323944",
"0.513212",
"0.51273364",
"0.51235384",
"0.51216465",
"0.51025486",
"0.50949335",
"0.5078458",
"0.50745213",
"0.5072555",
"0.5044728",
"0.503483",
"0.50192064",
"0.50068814",
"0.5004643",
"0.5001064",
"0.5000508",
"0.49994045",
"0.4994846",
"0.4982932",
"0.49792683",
"0.49739587",
"0.49720055",
"0.49697584",
"0.49692887"
] | 0.7410914 | 1 |
Specifies the filter property: Information about the filter for the event channel.. | Update withFilter(EventChannelFilter filter); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EventChannelFilter filter();",
"public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}",
"public String getFilter() {\n\t\treturn filter;\n\t}",
"@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();",
"public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}",
"public void setFilter(Expression filter) {\n this.filter = filter;\n }",
"void filterChanged(Filter filter);",
"void setFilter(Filter f);",
"Filter getFilter();",
"public java.lang.String getFilter() {\n return filter;\n }",
"public LSPFilter getFilter () {\r\n return filter;\r\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }",
"interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }",
"@Override\r\n\tpublic NotificationFilter getFilter() {\n\t\treturn super.getFilter();\r\n\t}",
"public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }",
"@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);",
"void setFilter(String filter);",
"FeedbackFilter getFilter();",
"public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }",
"public Expression getFilter() {\n return this.filter;\n }",
"public String getFilter();",
"public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}",
"public String getFilter()\n {\n return encryptionDictionary.getNameAsString( COSName.FILTER );\n }",
"public Filter getFilter() {\n\t\treturn (filter);\n\t}",
"public void setFilter(String filter)\n {\n encryptionDictionary.setItem( COSName.FILTER, COSName.getPDFName( filter ) );\n }",
"WithCreate withFilter(EventChannelFilter filter);",
"public String getFilterCondition() {\n return filterCondition;\n }",
"void setFilter(final PropertiedObjectFilter<O> filter);",
"@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }",
"public Filter getFilterComponent()\n {\n return filterComponent;\n }",
"public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }",
"public void setFilter(EntityFilter filter);",
"public void setContactFilter(Filter filter);",
"@Override\n\tpublic List<PropertyFilter> buildPropertyFilter(CcNoticereceive entity) {\n\t\treturn null;\n\t}",
"public void setEdgeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tedgeAttributeFilter = filter;\n \t}",
"String getFilter();",
"public BsonDocument getFilter() {\n return filter;\n }",
"@Override public Filter getFilter() { return null; }",
"public int getFilterMode(){ return mFilterMode;}",
"void onFilterChanged(ArticleFilter filter);",
"public ExtensionFilter getFilter () {\n return this.filter;\n }",
"java.lang.String getFilter();",
"public String getFilterId() {\n return this.filterId;\n }",
"public void setFilterExpression(Expression filterExpr) {\n\t\tthis.filterExpr = filterExpr;\n\t}",
"public ImageFilter getFilter() {\r\n\t\treturn filter;\r\n\t}",
"public void setFilter(Object[] filter) {\n nativeSetFilter(filter);\n }",
"public Filter (Filter filter) {\n this.name = filter.name;\n this.type = filter.type;\n this.pred = new FilterPred(filter.pred);\n this.enabled = filter.enabled;\n }",
"@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }",
"public List setFilter(java.lang.String filter) {\n this.filter = filter;\n return this;\n }",
"@Override\n\tpublic void filterChange() {\n\t\t\n\t}",
"public void setVideoDisplayFilter(String filtername);",
"void setSampleFiltering(boolean filterFlag, float cutoffFreq) {\n }",
"FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);",
"String getFilterName();",
"public void addFilterToComboRO(ViewerFilter filter);",
"public void addFilter(MessageFilter filter);",
"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }",
"public void changeFilterMode(int filter) {\n mNewFilter = filter;\n }",
"@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}",
"public Filter () {\n\t\tsuper();\n\t}",
"public void addFilterToCombo(ViewerFilter filter);",
"PropertiedObjectFilter<O> getFilter();",
"public void setFilterDateProperty(String filterDateProperty) {\n\n\t\tthis.filterDateProperty = filterDateProperty;\n\t}",
"public String getUserFilter()\n {\n return this.userFilter;\n }",
"public abstract INexusFilterDescriptor getFilterDescriptor();",
"public void setFilters(List<COSName> filters) {\n/* 333 */ COSArray cOSArray = COSArrayList.converterToCOSArray(filters);\n/* 334 */ this.stream.setItem(COSName.FILTER, (COSBase)cOSArray);\n/* */ }",
"public void setFilters(List<COSName> filters)\n {\n stream.setItem(COSName.FILTER, new COSArray(filters));\n }",
"@Override\n\t\t\tpublic void setColorFilter(ColorFilter cf) {\n\t\t\t\t\n\t\t\t}",
"public void setFilter(Filter.Statement filter) {\n this.setFilter(filter.toArray());\n }",
"@Override\r\n\t\tpublic void setColorFilter(ColorFilter cf)\r\n\t\t{\n\t\t\t\r\n\t\t}",
"public Boolean filterEnabled() {\n return this.filterEnabled;\n }",
"@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }",
"public Map<String, Filter> getFilters() {\n return filters;\n }",
"public void addFilterToAttributes(ViewerFilter filter);",
"public void addFilter ( ChannelKey channelKey )\n throws SystemException, CommunicationException, AuthorizationException, DataValidationException\n {\n }",
"@Override\n public Filter getFilter() {\n return scenarioListFilter;\n }",
"FilterInfo setCanaryFilter(String filter_id, int revision);",
"public void setEchoCancellerFilterName(String filtername);",
"public FileFilter() {\n this.filterExpression = \"\";\n }",
"public FilterWidget( String initalFilter )\n {\n this.initalFilter = initalFilter;\n }",
"com.google.protobuf.ByteString\n getFilterBytes();",
"public String getFilter() {\n\t\treturn url.getFilter();\n }",
"public void setFilterTo(LocalTime filterTo) {\n this.filterTo = filterTo;\n }",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public String getAuthorizationFilter()\n {\n return this.authorizationFilter;\n }",
"public Filter [] getFilters() {\n return this.Filters;\n }",
"public Filter [] getFilters() {\n return this.Filters;\n }",
"@Override\n\tpublic void setColorFilter(ColorFilter cf) {\n\n\t}",
"public boolean getMayFilter () {\n\treturn mayFilter;\n }",
"protected void setQueryFilter(CalendarFilter filter) {\n this.queryFilter = filter;\n }",
"private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}",
"public String getFilter() {\n\t\treturn(\"PASS\");\n\t}",
"public void setFilterId(String filterId) {\n this.filterId = filterId;\n }",
"private FormatFilter(final Function<ImageReaderWriterSpi, String[]> property) {\n this.property = property;\n }",
"public Input filterBy(Filter filter) {\n JsonArray filters = definition.getArray(FILTERS);\n if (filters == null) {\n filters = new JsonArray();\n definition.putArray(FILTERS, filters);\n }\n filters.add(Serializer.serialize(filter));\n return this;\n }"
] | [
"0.7232725",
"0.7028511",
"0.69821",
"0.69793296",
"0.6783064",
"0.66785157",
"0.6641674",
"0.6613545",
"0.6581056",
"0.65558285",
"0.6553138",
"0.6526934",
"0.65175956",
"0.6505079",
"0.6472917",
"0.6446828",
"0.64387953",
"0.6431804",
"0.64080805",
"0.63643104",
"0.6320746",
"0.6275335",
"0.6274846",
"0.6270549",
"0.62489325",
"0.62185526",
"0.6214979",
"0.62113494",
"0.61948997",
"0.6189989",
"0.6159093",
"0.61496127",
"0.613099",
"0.61209625",
"0.60963714",
"0.6091896",
"0.6050593",
"0.6025329",
"0.6017959",
"0.6017698",
"0.59952474",
"0.59919816",
"0.59915084",
"0.59788066",
"0.59777683",
"0.59526545",
"0.59458417",
"0.59377486",
"0.593357",
"0.5912278",
"0.5902295",
"0.58819836",
"0.5881373",
"0.58430207",
"0.5831422",
"0.5805848",
"0.5801123",
"0.5801123",
"0.5801123",
"0.5801123",
"0.5789843",
"0.57814014",
"0.57814014",
"0.5778008",
"0.57605594",
"0.57600546",
"0.5756877",
"0.5756644",
"0.5749197",
"0.574428",
"0.5733629",
"0.5725064",
"0.5720189",
"0.5701903",
"0.5699893",
"0.56989765",
"0.5697523",
"0.56841797",
"0.56716686",
"0.5669099",
"0.56551385",
"0.56523937",
"0.563861",
"0.5626996",
"0.5606756",
"0.5597126",
"0.55883205",
"0.5581512",
"0.5581512",
"0.5581512",
"0.5569655",
"0.5569655",
"0.5564417",
"0.55617553",
"0.55613106",
"0.55423063",
"0.55421495",
"0.5539751",
"0.5537963",
"0.55375814"
] | 0.6723929 | 5 |
The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. | interface WithPartnerTopicFriendlyDescription {
/**
* Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be
* set by the publisher/partner to show custom description for the customer partner topic. This will be
* helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..
*
* @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the
* publisher/partner to show custom description for the customer partner topic. This will be helpful to
* remove any ambiguity of the origin of creation of the partner topic for the customer.
* @return the next definition stage.
*/
Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"String partnerTopicFriendlyDescription();",
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }",
"interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }",
"protected void onTopic(String channel, String topic, String setBy, long date, boolean changed) {}",
"public interface EventChannel {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: The system metadata relating to Event Channel resource.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the source property: Source of the event channel. This represents a unique resource in the partner's\n * resource model.\n *\n * @return the source value.\n */\n EventChannelSource source();\n\n /**\n * Gets the destination property: Represents the destination of an event channel.\n *\n * @return the destination value.\n */\n EventChannelDestination destination();\n\n /**\n * Gets the provisioningState property: Provisioning state of the event channel.\n *\n * @return the provisioningState value.\n */\n EventChannelProvisioningState provisioningState();\n\n /**\n * Gets the partnerTopicReadinessState property: The readiness state of the corresponding partner topic.\n *\n * @return the partnerTopicReadinessState value.\n */\n PartnerTopicReadinessState partnerTopicReadinessState();\n\n /**\n * Gets the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this timer expires\n * while the corresponding partner topic is never activated, the event channel and corresponding partner topic are\n * deleted.\n *\n * @return the expirationTimeIfNotActivatedUtc value.\n */\n OffsetDateTime expirationTimeIfNotActivatedUtc();\n\n /**\n * Gets the filter property: Information about the filter for the event channel.\n *\n * @return the filter value.\n */\n EventChannelFilter filter();\n\n /**\n * Gets the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any\n * ambiguity of the origin of creation of the partner topic for the customer.\n *\n * @return the partnerTopicFriendlyDescription value.\n */\n String partnerTopicFriendlyDescription();\n\n /**\n * Gets the inner com.azure.resourcemanager.eventgrid.fluent.models.EventChannelInner object.\n *\n * @return the inner object.\n */\n EventChannelInner innerModel();\n\n /** The entirety of the EventChannel definition. */\n interface Definition\n extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {\n }\n /** The EventChannel definition stages. */\n interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Begins update for the EventChannel resource.\n *\n * @return the stage of resource update.\n */\n EventChannel.Update update();\n\n /** The template for EventChannel update. */\n interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }\n /** The EventChannel update stages. */\n interface UpdateStages {\n /** The stage of the EventChannel update allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel update allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel update allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel update allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n Update withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel update allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n EventChannel refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n EventChannel refresh(Context context);\n}",
"Update withDestination(EventChannelDestination destination);",
"public void setEventDescription(String newDesc) {\n\t\tthis.description = newDesc;\n\t}",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n Update withSource(EventChannelSource source);\n }",
"@Override\r\n public void update() {\n String msg = (String) topic.getUpdate(this);\r\n\t\tif(msg == null){\r\n\t\t\tSystem.out.println(name+\":: No new message\");\r\n\t\t}else{\r\n card.show(this.getContentPane(), msg);\r\n }\r\n System.out.println(name+\":: Consuming message::\"+msg);\r\n \r\n }",
"@Test\n public void testDescriptionChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setDescription(\"New description\");\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that end date has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The appointment description has changed.\");\n }",
"public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);",
"@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }",
"EventChannel.Update update();",
"void onRemoteDescriptionSet();",
"private void updateNutritionEvent(Context ctx, ResultSet rs) throws SQLException, ParseException {\r\n Date timestamp = ctx.getTimestamp(\"date\", \"time\");\r\n String description = ctx.getParameter(\"description\");\r\n\r\n if (rs.next()) {\r\n if (ctx.getAppDb().getProtocol().equalsIgnoreCase(\"sqlserver\")) {\r\n rs.moveToCurrentRow();\r\n rs.updateString(\"Description\", description);\r\n rs.updateRow();\r\n } else {\r\n /*\r\n * For MySQL replace above with an update query.\r\n */\r\n SQLUpdateBuilder sql = ctx.getUpdateBuilder(\"NutritionEvent\");\r\n\r\n sql.addField(\"Description\", description);\r\n sql.addAnd(\"Timestamp\", \"=\", timestamp);\r\n executeUpdate(ctx, sql);\r\n }\r\n } else {\r\n rs.moveToInsertRow();\r\n rs.updateString(\"Timestamp\", ctx.getDbTimestamp(timestamp));\r\n rs.updateString(\"Description\", description);\r\n rs.insertRow();\r\n }\r\n }",
"@Override\n\tpublic String updateATourneyDesc() {\n\t\treturn null;\n\t}",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }",
"public void handleEvent(PlayerEntered event) {\r\n if( isEnabled )\r\n m_botAction.sendPrivateMessage(event.getPlayerName(), \"Autopilot is engaged. PM !info to me to see how *YOU* can control me. (Type :\" + m_botAction.getBotName() + \":!info)\" );\r\n }",
"@Override\n public String getDescription() {\n return \"Publish exchange offer\";\n }",
"void onLocalDescriptionCreatedAndSet(SessionDescriptionType type, String description);",
"public void setNewValues_description(java.lang.String param){\n localNewValues_descriptionTracker = true;\n \n this.localNewValues_description=param;\n \n\n }",
"@Override\n\tpublic void channelParted(String channel) {\n\t}",
"private void setEventDescription(String eventDescription)\n\t{\n\t\tsomethingChanged = true;\n\t\tthis.eventDescription = eventDescription;\n\t}",
"public void setOldValues_description(java.lang.String param){\n localOldValues_descriptionTracker = true;\n \n this.localOldValues_description=param;\n \n\n }",
"interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n Update withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }",
"interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n Update withDestination(EventChannelDestination destination);\n }",
"PartnerTopicReadinessState partnerTopicReadinessState();",
"private UpdateTopic(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"protected void onPart(String channel, String sender, String login, String hostname) {}",
"@Override\n public void updateDescription() {\n description = DESCRIPTIONS[0]+ ReceiveBlockAmount + DESCRIPTIONS[1];\n }",
"@Override\n\tpublic void msgAtKitchen() {\n\t\t\n\t}",
"@Override\n public void onGuildMessageReceived(@NotNull GuildMessageReceivedEvent event) {\n if (event.getAuthor().isBot() ||\n !event.getMessage().getType().equals(MessageType.DEFAULT)) return; // Bot messages will be ignored\n String args[] = event.getMessage().getContentRaw().split(\"\\\\s+\");\n\n switch (args[0].replace(Settings.COMMAND_PREFIX, \"\")){\n case \"youtube\":\n Color c = Settings.getConferenceColor(event.getChannel().getParent());\n event.getChannel().sendMessage(new EmbedBuilder()\n .setTitle(\"Youtube \" + Settings.CONFERENCE_NAME, Settings.YOUTUBE)\n .setColor(c).build()).queue();\n break;\n case \"stream\":\n case \"live\":\n // Display the current live stream depending on the current track\n event.getChannel().sendMessage(makeYoutubeLive(event.getChannel().getParent())).queue();\n if (event.getChannel().getParent().getId().equals(Settings.CATEGORY_BOT_ID) && args.length == 3){\n switch (args[1].toLowerCase()){\n case \"gcpr\":\n Settings.STREAM_URL[0] = args[2];\n System.out.println(\"[GCPR STREAM] Updated\");\n break;\n case \"vmv\":\n Settings.STREAM_URL[1] = args[2];\n System.out.println(\"[VMV STREAM] Updated\");\n break;\n case \"vcbm\":\n Settings.STREAM_URL[2] = args[2];\n System.out.println(\"[VCBM STREAM] Updated\");\n break;\n case \"joint\":\n Settings.STREAM_URL[3] = args[2];\n System.out.println(\"[JOINT STREAM] Updated\");\n break;\n default:\n break;\n }\n\n }\n break;\n case \"program\":\n case \"programm\": // Yes I often misspelled it during dev\n // Show a link to the program page\n event.getChannel().sendMessage(new EmbedBuilder()\n .setTitle(\"Program :alarm_clock:\", Settings.PROGRAMM)\n .setColor(Settings.getConferenceColor(event.getChannel().getParent()))\n .build()).queue();\n break;\n case \"web\":\n // Display Conference Web presence\n event.getChannel().sendMessage(new EmbedBuilder()\n .setTitle(\"Conference Website :desktop:\", Settings.URL)\n .setColor(Settings.getConferenceColor(event.getChannel().getParent()))\n .build()).queue();\n break;\n case \"ping\":\n // This is the mighty debug command\n //if(!event.getChannel().getParent().getId().equals(Settings.CATEGORY_BOT_ID)) break; // Comment in after first `!ping`\n event.getChannel().sendMessage(\"pong!\").queue();\n debugMessage(event);\n break;\n case \"channels\":\n // Sends a list of active channels with links to the Channel that issued the command\n if(!event.getChannel().getParent().getId().equals(Settings.CATEGORY_BOT_ID)) break;\n printChannels(event);\n break;\n case \"help\":\n case \"commands\":\n // Show a list of the above mentioned commands\n EmbedBuilder embed = new EmbedBuilder().setTitle(\":bulb: Commands / Help\")\n .setDescription(\"The following commands can be used in the text-channels.\\n\" +\n \"*speaker and chair roles are assigned through direct messages to @ConferenceBot*\")\n .setColor(Settings.getConferenceColor(event.getChannel().getParent()))\n .addField(\"`!program`\", \"Link to programm on the conference website.\", false)\n .addField(\"`!web`\", \"Conference website\", false)\n .addField(\"`!stream` / `!live`\", \"Link to youtube livestream\", false)\n .addField(\"`!youtube`\", \"Link to Conference YouTube channel\", false)\n .addField(\"`!help` / `!commands`\", \"Displays this message\", false);\n if (event.getChannel().getParent().getId().equals(Settings.CATEGORY_BOT_ID)) {\n embed.addBlankField(false)\n .addField(\"`!{stream|live} {gcpr|vmv|vcbm|joint} $StreamLink`\",\n \"Change Link to respective live String\", false)\n .addField(\"`!ping`\", \"Prints extensive debug message to CLI\", false)\n .addField(\"`!channels`\",\n \"Sends and prints all channel names and channel links as \" +\n \"text message to channel of origin (just Bot dev) and to CLI\", false);\n }\n event.getChannel().sendMessage(embed.build()).queue();\n default:\n break;\n }\n }",
"@Test\n public void testUpdateExtendedPropertiesOfConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n ArrayList<Conference> conferences = new ArrayList<Conference>(2);\n for (Conference conference : createdEvent.getConferences()) {\n Conference update = ConferenceBuilder.copy(conference);\n update.setExtendedParameters(null);\n conferences.add(update);\n }\n deltaEvent.setConferences(conferences);\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEvent = eventManager.getEvent(defaultFolderId, createdEvent.getId());\n assertThat(\"Should be two conferences!\", I(updatedEvent.getConferences().size()), is(I(2)));\n\n /*\n * Check that mails has been send (updates still needs to be propagated) without any description\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.EMPTY, 1);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertThat(\"Should have been no change\", change.getDiffDescription(), empty());\n }",
"Builder addDetailedDescription(String value);",
"@Override\n protected void update(List<Event> result, Ec2LaunchConfiguration oldResource, Ec2LaunchConfiguration newResource) {\n \n }",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }",
"public final void ruleDistributedEventUpdate() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1124:2: ( ( ( rule__DistributedEventUpdate__Alternatives ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1125:1: ( ( rule__DistributedEventUpdate__Alternatives ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1125:1: ( ( rule__DistributedEventUpdate__Alternatives ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1126:1: ( rule__DistributedEventUpdate__Alternatives )\n {\n before(grammarAccess.getDistributedEventUpdateAccess().getAlternatives()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1127:1: ( rule__DistributedEventUpdate__Alternatives )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1127:2: rule__DistributedEventUpdate__Alternatives\n {\n pushFollow(FOLLOW_rule__DistributedEventUpdate__Alternatives_in_ruleDistributedEventUpdate2100);\n rule__DistributedEventUpdate__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDistributedEventUpdateAccess().getAlternatives()); \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 \tmyHiddenTokenState.restore();\n\n }\n return ;\n }",
"public void onTopicEvent(Topic.CommInfrastructure commType, String topic, String event);",
"Update withSource(EventChannelSource source);",
"public void setDescription(String newValue);",
"public void setDescription(String newValue);",
"private String getChosenSecondaryEvent()\n {\n return chosenEvent;\n }",
"@Override\n\t\t\t\t\tpublic void onUpdateFound(boolean newVersion, String whatsNew) {\n\t\t\t\t\t}",
"public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }",
"String getOldTopic();",
"interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }",
"@FXML\n public void editDescription(ActionEvent actionEvent) {\n\n }",
"@ForOverride\n public void onStateChange(InternalSubchannel internalSubchannel, ConnectivityStateInfo connectivityStateInfo) {\n }",
"public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }",
"@Override\r\n\tpublic void showPartner() {\n\t\tSystem.out.println(\"你的情侣是: \"+partner);\r\n\t}",
"public void detailEventOccurred(DetailEvent e) {\n\t\t\t\t\tupdateRecommendationAction(CR);\n\t\t\t\t}",
"public void setDescription(java.lang.String param) {\n localDescriptionTracker = true;\n\n this.localDescription = param;\n }",
"@SkipValidation\n public String makeChangesToShowMessage() {\n important = impService.getImportantNews(important.getImportantNewsId());\n if (important.isShowMessage() == false) {\n important.setShowMessage(true);\n impService.updateImportantNews(important);\n }\n return SUCCESS;\n }",
"@FXML\n void onActionOutsourced(ActionEvent event){\n labelPartSource.setText(\"Company Name\");\n }",
"interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }",
"@Override\r\n\tpublic void buildPart2() {\n\t\tproduct.setPart2(\"ASPEC2\");\r\n\t}",
"public void partChannel(String channel, String reason);",
"@Override\n public String getDescription() {\n return \"Hub terminal announcement\";\n }",
"public abstract void updateTopic(String topic);",
"private String makeEventDescription(String description) {\n return \"DESCRIPTION:\" + description + \"\\n\";\n }",
"public void OnConfNotify(V2Conference v2conf, BoUserInfoBase user);",
"public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }",
"public void playerStateChanged(WSLPlayerEvent event);",
"public void setPartnerid(String partnerid) {\n this.partnerid = partnerid;\n }",
"Update withFilter(EventChannelFilter filter);",
"public void setDescription(String newDescription) {\n description = newDescription; // sets the appointment's description to the input\n }",
"@Override\n\tpublic Representation updateDetails(Representation entity,\n\t\t\tProductCategoryColumnParametersJsonObject obj) {\n\t\treturn null;\n\t}",
"AdPartner updateAdPartner(AdPartner adPartner);",
"@Override\r\n\tpublic void addPartner(String name) {\n\t\tpartner = partner.concat(\" \"+name);\r\n\t}",
"@Override\n public void update(String desc) {\n }",
"String getNewTopic();",
"public void changeDescription(Product p, String description){\r\n\t\tp.description = description;\r\n\t}",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_esfTournament.setDescription(description);\n\t}",
"@Override\n public String getDescription() {\n return \"Poll creation\";\n }",
"private void sendUpdateMessage() {\n Hyperium.INSTANCE.getHandlers().getGeneralChatHandler().sendMessage(\n \"A new version of Particle Addon is out! Get it at https://api.chachy.co.uk/download/ParticleAddon/\" + ChachyMod.INSTANCE.getVersion(() -> \"ParticleAddon\"));\n }",
"public void setPartDesc(String partDesc){\n\t\t // store into the instance variable partDesc (i.e. this.partDesc) the value of the parameter partDesc\n\t\tthis.partDesc = partDesc;\n\t}",
"public void updateContestChannel(ContestChannel arg0) throws ContestManagementException {\r\n }",
"@ApiModelProperty(value = \"The event long description\")\n public String getDescription() {\n return description;\n }",
"public void setPartnerId(String partnerId) {\n\t\tmPartnerId = partnerId;\n\t}",
"@Override\n public void onFeedbackServerStarted() {\n }",
"public String getPartnerName() {\n\t\treturn partnerName;\n\t}",
"void changed(DiscoveryEvent e);",
"public void setTopic(String channel, String topic);",
"public String getPartner() {\n return partner;\n }",
"public String getPartner() {\n return partner;\n }",
"public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\r\n }",
"public final void actionPerformed(final ActionEvent actionEvent) {\n ViewEditDescriptionListener.LOGGER.info(\"Enter ViewEditDescriptionListener:actionPerformed()\");\n String priorityCode = null;\n\n DcsMessagePanelHandler.clearAllMessages();\n\n if (controller.getDefaultSPFilterTablePanel() != null\n && controller.getDefaultSPFilterTablePanel().getTable() != null) {\n final int selectedRowCount = controller.getDefaultSPFilterTablePanel().getTable().getSelectedRowCount();\n\n if (selectedRowCount == 1) {\n final int selectedRow = controller.getDefaultSPFilterTablePanel().getTable().getSelectedRow();\n\n if (controller.getDefaultSPFilterTablePanel().getTable().getValueAt(selectedRow, 2) != null) {\n priorityCode = controller.getDefaultSPFilterTablePanel().getTable().getValueAt(selectedRow, 2)\n .toString();\n }\n\n final DefaultTableModel dm = (DefaultTableModel) controller.getDefaultSPFilterTablePanel().getModel();\n\n JFrame parentFrame = NGAFParentFrameUtil.getParentFrame().getNGAFParentFrame();\n final StandbyPriorityUtil standbyPriorityUtil = new StandbyPriorityUtil(parentFrame, dm.getValueAt(selectedRow, THREE).toString(),\n priorityCode, controller, selectedRow);\n \n //if (standbyPriorityUtil != null) {\n ViewEditDescriptionListener.LOGGER.info(\"ViewEditDescriptionListener:actionPerformed()\" \n + standbyPriorityUtil);\n //}\n }\n }\n\n ViewEditDescriptionListener.LOGGER.info(\"Exit ViewEditDescriptionListener:actionPerformed()\");\n }",
"@Test\n public void testUpdateConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n ArrayList<Conference> conferences = new ArrayList<Conference>(2);\n conferences.add(createdEvent.getConferences().get(1));\n Conference update = ConferenceBuilder.copy(createdEvent.getConferences().get(0));\n update.setLabel(\"New lable\");\n conferences.add(update);\n deltaEvent.setConferences(conferences);\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEvent = eventManager.getEvent(defaultFolderId, createdEvent.getId());\n assertThat(\"Should be two conferences!\", I(updatedEvent.getConferences().size()), is(I(2)));\n\n /*\n * Check that conference has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL, 1);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"access information was changed\");\n }",
"public void setDescription(String s) {\n if (s == null && shortDescription == null) {\n return;\n }\n\n if (s == null || !s.equals(shortDescription)) {\n String oldDescrption = shortDescription;\n shortDescription = s;\n listeners.firePropertyChange(PROPERTY_DESCRIPTION, oldDescrption,\n shortDescription);\n }\n }",
"@EventHandler\n public void OnPlayerChatEvent(PlayerChatEvent e)\n {\n this.setLastSeen(e.getPlayer());\n }",
"public abstract interface ObjectDetailSettingsListener\n extends EventListener\n{\n public static final Topic<ObjectDetailSettingsListener> TOPIC = Topic.create(\"Object Detail Settings\", ObjectDetailSettingsListener.class);\n\n public abstract void displayDetailsChanged();\n}",
"@Override\r\n\tpublic void updateJoueurWon(Joueur joueur) {\n\t\t\r\n\t}",
"public void onChannel(String channel, String title, String subtitle);",
"@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }"
] | [
"0.7178191",
"0.64387554",
"0.6303921",
"0.6146737",
"0.55522096",
"0.55313456",
"0.5283735",
"0.5241368",
"0.5197932",
"0.5153034",
"0.51381725",
"0.5136193",
"0.50741076",
"0.50690013",
"0.5036273",
"0.50094223",
"0.49807444",
"0.49678206",
"0.4952104",
"0.49412382",
"0.49362692",
"0.49362692",
"0.49338517",
"0.49024135",
"0.48887792",
"0.48665723",
"0.48234355",
"0.48131946",
"0.47618374",
"0.47536153",
"0.47454613",
"0.47220322",
"0.47210974",
"0.4720099",
"0.4716723",
"0.47165385",
"0.46760026",
"0.4671299",
"0.46699327",
"0.46415597",
"0.46287137",
"0.46262136",
"0.4625871",
"0.46115133",
"0.4604976",
"0.4595342",
"0.4595342",
"0.4591236",
"0.45885155",
"0.45769984",
"0.45691553",
"0.45679444",
"0.45659712",
"0.45577133",
"0.4551063",
"0.45397025",
"0.45391417",
"0.45389268",
"0.4538256",
"0.4525543",
"0.4514679",
"0.45108634",
"0.45040148",
"0.44895393",
"0.44866133",
"0.44846427",
"0.44685987",
"0.44632146",
"0.4462784",
"0.4454717",
"0.44531658",
"0.44496736",
"0.44473428",
"0.44473118",
"0.444588",
"0.4443785",
"0.44423175",
"0.4438309",
"0.44370842",
"0.44363195",
"0.44357902",
"0.44347617",
"0.44340965",
"0.44296768",
"0.441707",
"0.44166976",
"0.4415623",
"0.4412214",
"0.4408305",
"0.44020656",
"0.44020656",
"0.4396894",
"0.43945718",
"0.43843737",
"0.4384225",
"0.43841296",
"0.43770134",
"0.4362808",
"0.43606916",
"0.43520167"
] | 0.69033134 | 1 |
Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be set by the publisher/partner to show custom description for the customer partner topic. This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer.. | Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String partnerTopicFriendlyDescription();",
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }",
"WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);",
"Builder addDetailedDescription(String value);",
"public void setDescription(String tmp) {\n this.description = tmp;\n }",
"public void setDescription(String tmp) {\n this.description = tmp;\n }",
"public void setDescription(String value) {\r\n this.description = value;\r\n }",
"public void setDescription(String value) {\n this.description = value;\n }",
"public Builder setCharacteristicDescription(io.dstore.values.StringValue value) {\n if (characteristicDescriptionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n characteristicDescription_ = value;\n onChanged();\n } else {\n characteristicDescriptionBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public Builder setDescription(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n description_ = value;\n onChanged();\n return this;\n }",
"void setDescription(@Nullable String pMessage);",
"public void setDescription(java.lang.String value) {\n this.description = value;\n }",
"public void setDescription(String s) {\n if (s == null && shortDescription == null) {\n return;\n }\n\n if (s == null || !s.equals(shortDescription)) {\n String oldDescrption = shortDescription;\n shortDescription = s;\n listeners.firePropertyChange(PROPERTY_DESCRIPTION, oldDescrption,\n shortDescription);\n }\n }",
"Builder addDetailedDescription(Article value);",
"public void setDescription(String value)\r\n {\r\n getSemanticObject().setProperty(swb_description, value);\r\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String value) {\n setAttributeInternal(DESCRIPTION, value);\n }",
"public void setDescription(String desc);",
"public Builder setDescription(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public void setDescription(String desc) {\n this.desc = desc;\n }",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_lineaGastoCategoria.setDescription(description);\n\t}",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public maestro.payloads.FlyerFeaturedItem.Builder setDescription(CharSequence value) {\n validate(fields()[4], value);\n this.description = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"public final void setFriendlyName(String friendlyName){\n peripheralFriendlyName = friendlyName;\n }",
"protected void addOtherDedicatedDescriptionsPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ComputerSystem_otherDedicatedDescriptions_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ComputerSystem_otherDedicatedDescriptions_feature\", \"_UI_ComputerSystem_type\"),\r\n\t\t\t\t CimPackage.eINSTANCE.getComputerSystem_OtherDedicatedDescriptions(),\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public Builder setDescription(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n description_ = value;\n onChanged();\n return this;\n }",
"public void setDescription(String paramDesc) {\n\tstrDesc = paramDesc;\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000080;\n onChanged();\n return this;\n }",
"public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }",
"@Override\n public String getDescription() {\n return \"Arbitrary message\";\n }",
"public void setDescription(String descr);",
"public void setDescription(String desc) {\n sdesc = desc;\n }",
"public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }",
"public void setDescription(CharSequence value) {\n this.description = value;\n }",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription(String string) {\n\t\t\n\t}",
"@NonNull\n @SuppressWarnings(\n \"deprecation\") // Updating a deprecated field for backward compatibility\n public Builder setContentDescription(@NonNull String contentDescription) {\n return setContentDescription(new StringProp.Builder(contentDescription).build());\n }",
"public final void setDetailDescription(java.lang.String detaildescription)\r\n\t{\r\n\t\tsetDetailDescription(getContext(), detaildescription);\r\n\t}",
"public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"public void setDescription(String sDescription);",
"public void setPartDesc(String partDesc){\n\t\t // store into the instance variable partDesc (i.e. this.partDesc) the value of the parameter partDesc\n\t\tthis.partDesc = partDesc;\n\t}",
"public void setFriendlyURL(java.lang.String friendlyURL) {\n this.friendlyURL = friendlyURL;\n }",
"void setDescription(java.lang.String description);",
"public void setDescription(java.lang.String param) {\n localDescriptionTracker = true;\n\n this.localDescription = param;\n }",
"@NonNull\n @SuppressWarnings(\n \"deprecation\") // Updating a deprecated field for backward compatibility\n public Builder setContentDescription(@NonNull StringProp contentDescription) {\n mImpl.setObsoleteContentDescription(contentDescription.getValue());\n mImpl.setContentDescription(contentDescription.toProto());\n mFingerprint.recordPropertyUpdate(\n 4, checkNotNull(contentDescription.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"public final void setDescription(java.lang.String description)\r\n\t{\r\n\t\tsetDescription(getContext(), description);\r\n\t}",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"public void setDescription(String desc) {\n description = desc;\n }",
"public Builder setCharacteristicDescriptionNull(boolean value) {\n \n characteristicDescriptionNull_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setDescription(String arg0)\n {\n \n }",
"public void setDescription (String description);",
"public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }",
"public void setDescription(String Description) {\n this.Description = Description;\n }",
"public void setProductCategoryDesc(String value) {\n setAttributeInternal(PRODUCTCATEGORYDESC, value);\n }",
"public void setDescription(final String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String _description) {\n this._description = _description;\n }",
"public void setDescription(String description) {\n\n }",
"final public void setShortDesc(String shortDesc)\n {\n setProperty(SHORT_DESC_KEY, (shortDesc));\n }",
"public void setCategoriaDescripcion(String descripcion);",
"public void setDescription(java.lang.String value);",
"public void setDescription(java.lang.String value);",
"public void setDescription(java.lang.String value);",
"public void setDescription(java.lang.String value);",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_esfTournament.setDescription(description);\n\t}",
"Builder addDescription(String value);",
"@Override\n public String getDescription() {\n return descriptionText;\n }",
"public final void setDescription(final String desc) {\n mDescription = desc;\n }",
"public void setDescription(String description)\n {\n this.description = description.trim();\n }",
"String getDetailedDescription() {\n return context.getString(detailedDescription);\n }",
"public void setDescription(String description) { this.description = description; }",
"public void setDescrizione (String descrizione) {\r\n\t\tthis.descrizione=descrizione;\r\n\t}",
"public void setMeasureDescription(final InternationalString newValue) {\n checkWritePermission(measureDescription);\n measureDescription = newValue;\n }",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_buySellProducts.setDescription(description);\n\t}",
"public void addDescription(String value){\n ((MvwDefinitionDMO) core).addDescription(value);\n }",
"public String provideTextualDescriptionForMetricDescription(MetricDescription aMetricDescription) {\n return aMetricDescription.getTextualDescription();\n }",
"public Builder setDescribe(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n describe_ = value;\n onChanged();\n return this;\n }",
"public Builder setDescribe(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n describe_ = value;\n onChanged();\n return this;\n }",
"public void setpDescription(String pDescription) {\n this.pDescription = pDescription;\n }",
"public String getPartDesc(){\n\t\treturn partDesc;\n\t}",
"final public String getShortDesc()\n {\n return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));\n }",
"public void setDescription(String desc) {\n description = desc.trim();\n if (description.equals(\"\")) {\n description = \"NODESC\";\n }\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public static void setDescription(AbstractCard card, String desc){\n\n PluralizeFieldsPatch.trueRawDescription.set(card,desc);\n createPluralizedDescription(card);\n }"
] | [
"0.7781615",
"0.71849704",
"0.70285714",
"0.67674255",
"0.55603445",
"0.5308062",
"0.5308062",
"0.51574403",
"0.5156341",
"0.5150175",
"0.5135482",
"0.51323706",
"0.5128377",
"0.5107631",
"0.50906056",
"0.5084999",
"0.50700974",
"0.50700974",
"0.50700974",
"0.50658995",
"0.506072",
"0.50529563",
"0.5041597",
"0.5028531",
"0.5023702",
"0.5023702",
"0.50198114",
"0.5016507",
"0.501486",
"0.50088644",
"0.5004752",
"0.49976104",
"0.49918315",
"0.49894205",
"0.4987439",
"0.49847808",
"0.4978878",
"0.49740162",
"0.49579543",
"0.49548662",
"0.49441904",
"0.49441904",
"0.49441904",
"0.49441904",
"0.49441904",
"0.49441904",
"0.49399522",
"0.49324396",
"0.4932238",
"0.49292088",
"0.49233904",
"0.49230114",
"0.49128994",
"0.49104184",
"0.49073228",
"0.49034503",
"0.48966187",
"0.48902586",
"0.48850852",
"0.48816812",
"0.4876325",
"0.48733982",
"0.48720908",
"0.4862108",
"0.4847472",
"0.48401126",
"0.48309073",
"0.48309073",
"0.48309073",
"0.48309073",
"0.48309073",
"0.4829081",
"0.48183665",
"0.48158613",
"0.48151213",
"0.48135698",
"0.48135698",
"0.48135698",
"0.48135698",
"0.48129252",
"0.48058882",
"0.48011342",
"0.48009413",
"0.4798532",
"0.4789015",
"0.47861093",
"0.478388",
"0.47820964",
"0.47757974",
"0.47734863",
"0.4773095",
"0.4772178",
"0.4772178",
"0.47695023",
"0.476758",
"0.47608957",
"0.47576946",
"0.4755548",
"0.4755548",
"0.47507864"
] | 0.7216486 | 1 |
Refreshes the resource to sync with Azure. | EventChannel refresh(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }",
"@Override\n\tpublic void refresh(Object entity) {\n\t\t\n\t}",
"public void refresh()\n {\n refresh( null );\n }",
"@Override\n public void refreshResources() {\n\n }",
"Account refresh();",
"Snapshot refresh();",
"ManagementLockObject refresh(Context context);",
"@Override\n\tpublic void refresh(Object entity, Map<String, Object> properties) {\n\t\t\n\t}",
"Account refresh(Context context);",
"@Override\n\tpublic void refresh(Object entity, LockModeType lockMode, Map<String, Object> properties) {\n\t\t\n\t}",
"public void refresh() {\n getIndexOperations().refresh();\n }",
"ManagementLockObject refresh();",
"Snapshot refresh(Context context);",
"@Override\n\t\t\t\t\tpublic void onRefresh() {\n\t\t\t\t\t\tisRefreshing = true;\n\t\t\t\t\t\tsyncArticle();\n\t\t\t\t\t}",
"public void refresh() {\n }",
"public void refresh() {\n\n realm.refresh();\n }",
"public void refresh() {\n\n realm.refresh();\n }",
"@Override\n public String refresh() {\n\n // Override the existing token\n setToken(null);\n\n // Get the identityId and token by making a call to your backend\n // (Call to your backend)\n\n // Call the update method with updated identityId and token to make sure\n // these are ready to be used from Credentials Provider.\n\n update(identityId, token);\n return token;\n\n }",
"@Override\n\tpublic void refresh(Object entity, LockModeType lockMode) {\n\t\t\n\t}",
"public void refresh(Collection<Refreshable> alreadyRefreshed) {\n\t\t\r\n\t}",
"@Transactional\n public void refresh(TaskInstanceEntity taskInstanceEntity) {\n entityManagerProvider.get().refresh(taskInstanceEntity);\n }",
"public final void refresh(final E entity) {\n getJpaTemplate().refresh(entity);\n }",
"@Scheduled (fixedDelay = 10000)\n\tpublic void refreshConfiguration() {\n\t\tLOGGER.warn(\"***** REFRESHING\");\n\t\tthis.refresh.refresh(\"refreshableCredentials\");\n\n\t}",
"@Override\n\tpublic void refresh() {\n\n\t}",
"public void markRefreshed() {\n tozAdCampaignRetrievalCounter = 0;\n }",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"@Override\n public void refresh() {\n }",
"TrustedIdProvider refresh();",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"public void refreshData() {\n\n if (!mUpdatingData) {\n new RefreshStateDataTask().execute((Void) null);\n }\n }",
"@Override\n\tpublic String forceRefresh(String tenantId, String serverId)\n\t\t\tthrows Exception {\n\t\tSystem.out.println(\"force refresh \" + tenantId + \"'s server \" + serverId + \"!!\");\n\t\treturn \"OK\";\n\t}",
"protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\tpublic void refresh() {\n\t\tsuper.refresh();\n\t\tapplyConnectionRouter(getConnectionFigure());\n\t}",
"public void refreshAfterSubmit() throws BackendException;",
"@Override public void onRefresh() {\n loadAccount();\n }",
"@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }",
"@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }",
"public void refresh(Env env) {\n\t\trefreshed = System.currentTimeMillis();\n\t}",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n /*Log.d(\"Refreshed token\", \"Refreshed token: \" + refreshedToken);\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n final CollectionReference clients = FirebaseFirestore.getInstance().collection(\"Tokens\");\n Map<String, Object> data1 = new HashMap<>();\n data1.put(\"token\", refreshedToken);\n clients.document(\"Iamhere\").set(data1, SetOptions.merge());*/\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n //sendRegistrationToServer(refreshedToken);\n }",
"@Override\n public void onRefresh() {\n refreshData();\n }",
"@Override\n\tpublic void refresh(String accountUID){\n\t\tmAccountUID = accountUID;\n\t\trefresh();\n\t}",
"protected void refreshAll() {\n refreshProperties();\n\t}",
"protected void refresh() {\n\t}",
"@Override\n public void onRefresh() {\n synchronizeContent();\n }",
"public void reload() throws HpcException {\n\tif(useSecretsManager) {\n\t\trefreshAwsSecret();\n\t}\n initSystemAccountsData();\n initDataTransferAccountsData();\n this.dataMgmtConfigLocator.reload();\n }",
"JobResponse refresh();",
"@Override\n public void onRefresh() {\n load_remote_data();\n }",
"JobResponse refresh(Context context);",
"private void doRefreshConnection()\r\n\t{\r\n\t\t/* Refresh the connection to S3. */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tservice = new RestS3Service(new AWSCredentials(accessKey, secretKey));\r\n\t\t}\r\n\t\tcatch (S3ServiceException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"EventChannel refresh(Context context);",
"public void refresh(){\r\n\t \t//providerMap.clear();\r\n\t \trefresh(null);\r\n\t }",
"@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\t new GetDataTask().execute();\n\t\t\t}",
"@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"@Override\r\n public void refresh(@NotNull final Project project) {\n ChangeListManager.getInstance(project).ensureUpToDate(true);\r\n }",
"public synchronized boolean refresh() \n {\n return refresh(false);\n }",
"@Override\n\t\tpublic void onRefresh() {\n\t\t\thttpRefreshMethod();\n\t\t}",
"public void refresh() {\n\n odp.refresh();\n\n\n }",
"@Override\r\n\t\t\tpublic void invoke() {\n\t\t\t\trefresh();\r\n\t\t\t}",
"@Override\r\n\tpublic void refresh(boolean keepChanges) throws RepositoryException {\n\t\t\r\n\t}",
"private void refreshItem() {\n\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(true);\r\n\t\tboundSwagForm.saveData(new DSCallback() {\r\n\t\t\t//reselect selected tile (call to saveData de-selects it)\r\n\t\t\tpublic void execute(DSResponse response,\r\n\t\t\t\t\tObject rawData, DSRequest request) {\r\n\t\t\t\t//get updated record\r\n\t\t\t\tfinal TileRecord rec = new TileRecord(request.getData());\r\n\t\t\t\t//Note: selectRecord seems to only work on the tile index\r\n\t\t\t\titemsTileGrid.selectRecord(itemsTileGrid.getRecordIndex(rec));\r\n\t\t\t\t//saveData adds tileRecord to the end.\r\n\t\t\t\t//make sure sort order is preserved\r\n\t\t\t\tdoSort();\r\n\t\t\t}});\r\n\t}",
"void flush() {\r\n synchronized (sync) {\r\n updatedFiles.clear();\r\n }\r\n }",
"@Override\n public void onRefresh() {\n new LoadScholsTask(this).execute();\n }",
"@Override\n public void onRefresh() {\n getData();\n }",
"public void refresh() {\r\n\t\tinit();\r\n\t}",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refreshFnkt() {\r\n\t\ttransactionList = refreshTransactions();\r\n\t\tfillTable();\r\n\t}",
"@Override\n public void onRefresh() {\n fetchShopAsync(0);\n }",
"public void synced() {\n Preconditions.checkNotNull(state);\n state.setState(ENodeState.Synced);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n saveToken(refreshedToken);\n sendRegistrationToServer(refreshedToken);\n }",
"@Override\n public void sync(){\n }",
"public void refresh() {\n \t\tURL[] urls = getProvisioningContext().getMetadataRepositories();\n \t\tProvisioningOperation op;\n \t\tif (urls == null)\n \t\t\top = new RefreshMetadataRepositoriesOperation(ProvUIMessages.AvailableIUGroup_RefreshOperationLabel, refreshRepoFlags);\n \t\telse\n \t\t\top = new RefreshMetadataRepositoriesOperation(ProvUIMessages.AvailableIUGroup_RefreshOperationLabel, urls);\n \t\tProvisioningOperationRunner.schedule(op, getShell(), StatusManager.SHOW | StatusManager.LOG);\n \t\tStructuredViewer v = getStructuredViewer();\n \t\tif (v != null && !v.getControl().isDisposed())\n \t\t\tv.setInput(getNewInput());\n \t}",
"public void refresh()\n {\n PropertyManager.getInstance().refresh();\n init(this.path);\n }",
"protected abstract void refresh() throws RemoteException, NotBoundException, FileNotFoundException;",
"@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void refresh() throws AS400SecurityException {\n refresh(getTokenType(), getTimeoutInterval());\n }",
"@Override\n public void onRefresh() {\n max_id = 0;\n populateCurrentUser();\n populateTimeline();\n }",
"<T> void refresh(T persistentObject);",
"@Override\r\n\t\t\tpublic void onRefresh() {\n\t\t\t\tgetLichHoc();\r\n\t\t\t}",
"private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}",
"@Override\n\tpublic void changeToReleaseRefresh() {\n\n\t}",
"@Override\n\tpublic void refresh(Object... param) {\n\n\t}",
"public void syncHandle() {\n syncOldStream();\n }",
"void update(storage_server_connections connection);",
"void refreshTaskInformation();",
"public void refreshAll() {\n}",
"@Override\n public void onRefresh() {\n getUserOnlineStatus();\n }",
"private synchronized void onUpdate() {\n if (pollingJob == null || pollingJob.isCancelled()) {\n int refresh;\n\n try {\n refresh = getConfig().as(OpenSprinklerConfig.class).refresh;\n } catch (Exception exp) {\n refresh = this.refreshInterval;\n }\n\n pollingJob = scheduler.scheduleWithFixedDelay(refreshService, DEFAULT_WAIT_BEFORE_INITIAL_REFRESH, refresh,\n TimeUnit.SECONDS);\n }\n }",
"@Override\n public void refreshDataEntries() {\n }",
"@Override\n public void onTokenRefresh() {\n }",
"@Override\n public void onRefresh() {\n loadData();\n }",
"@Override\n\tpublic void refresh(Object... param) {\n\t\t\n\t}",
"@Override\r\n public void onTokenRefresh() {\n App.sendToken();\r\n }"
] | [
"0.6155004",
"0.5726795",
"0.57157946",
"0.5709481",
"0.5676882",
"0.5575826",
"0.5570311",
"0.5525649",
"0.55104464",
"0.54941475",
"0.5492033",
"0.5469897",
"0.5447755",
"0.54466695",
"0.544295",
"0.543293",
"0.543293",
"0.5407844",
"0.54046816",
"0.5397724",
"0.5386415",
"0.53747815",
"0.53603595",
"0.53522193",
"0.5351854",
"0.5349291",
"0.53446835",
"0.53287977",
"0.53223175",
"0.5319986",
"0.5312658",
"0.525281",
"0.52503425",
"0.52503425",
"0.5237058",
"0.52282876",
"0.52199024",
"0.52155095",
"0.52151483",
"0.52017933",
"0.5192927",
"0.5182515",
"0.5174484",
"0.5159379",
"0.51477474",
"0.5137433",
"0.51360315",
"0.5125767",
"0.511813",
"0.511175",
"0.5102078",
"0.50827444",
"0.5052959",
"0.50149906",
"0.501131",
"0.50049603",
"0.5003658",
"0.49795145",
"0.49778312",
"0.49712402",
"0.49556097",
"0.49401152",
"0.49250156",
"0.4910962",
"0.49108425",
"0.49014774",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48955083",
"0.48949155",
"0.48943013",
"0.48897088",
"0.48830813",
"0.4883024",
"0.48820573",
"0.48744878",
"0.48664412",
"0.4853006",
"0.48497167",
"0.48453578",
"0.48399168",
"0.4839374",
"0.48312786",
"0.48286662",
"0.48243025",
"0.48119828",
"0.48082656",
"0.48035756",
"0.4792677",
"0.47926697",
"0.4788328",
"0.4785895",
"0.4783219",
"0.47810987",
"0.47723344"
] | 0.48693067 | 81 |
Refreshes the resource to sync with Azure. | EventChannel refresh(Context context); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }",
"@Override\n\tpublic void refresh(Object entity) {\n\t\t\n\t}",
"public void refresh()\n {\n refresh( null );\n }",
"@Override\n public void refreshResources() {\n\n }",
"Account refresh();",
"Snapshot refresh();",
"ManagementLockObject refresh(Context context);",
"@Override\n\tpublic void refresh(Object entity, Map<String, Object> properties) {\n\t\t\n\t}",
"Account refresh(Context context);",
"@Override\n\tpublic void refresh(Object entity, LockModeType lockMode, Map<String, Object> properties) {\n\t\t\n\t}",
"public void refresh() {\n getIndexOperations().refresh();\n }",
"ManagementLockObject refresh();",
"Snapshot refresh(Context context);",
"@Override\n\t\t\t\t\tpublic void onRefresh() {\n\t\t\t\t\t\tisRefreshing = true;\n\t\t\t\t\t\tsyncArticle();\n\t\t\t\t\t}",
"public void refresh() {\n }",
"public void refresh() {\n\n realm.refresh();\n }",
"public void refresh() {\n\n realm.refresh();\n }",
"@Override\n public String refresh() {\n\n // Override the existing token\n setToken(null);\n\n // Get the identityId and token by making a call to your backend\n // (Call to your backend)\n\n // Call the update method with updated identityId and token to make sure\n // these are ready to be used from Credentials Provider.\n\n update(identityId, token);\n return token;\n\n }",
"@Override\n\tpublic void refresh(Object entity, LockModeType lockMode) {\n\t\t\n\t}",
"public void refresh(Collection<Refreshable> alreadyRefreshed) {\n\t\t\r\n\t}",
"@Transactional\n public void refresh(TaskInstanceEntity taskInstanceEntity) {\n entityManagerProvider.get().refresh(taskInstanceEntity);\n }",
"public final void refresh(final E entity) {\n getJpaTemplate().refresh(entity);\n }",
"@Scheduled (fixedDelay = 10000)\n\tpublic void refreshConfiguration() {\n\t\tLOGGER.warn(\"***** REFRESHING\");\n\t\tthis.refresh.refresh(\"refreshableCredentials\");\n\n\t}",
"@Override\n\tpublic void refresh() {\n\n\t}",
"public void markRefreshed() {\n tozAdCampaignRetrievalCounter = 0;\n }",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"@Override\n public void refresh() {\n }",
"TrustedIdProvider refresh();",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"public void refreshData() {\n\n if (!mUpdatingData) {\n new RefreshStateDataTask().execute((Void) null);\n }\n }",
"@Override\n\tpublic String forceRefresh(String tenantId, String serverId)\n\t\t\tthrows Exception {\n\t\tSystem.out.println(\"force refresh \" + tenantId + \"'s server \" + serverId + \"!!\");\n\t\treturn \"OK\";\n\t}",
"protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\tpublic void refresh() {\n\t\tsuper.refresh();\n\t\tapplyConnectionRouter(getConnectionFigure());\n\t}",
"public void refreshAfterSubmit() throws BackendException;",
"@Override public void onRefresh() {\n loadAccount();\n }",
"@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }",
"@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }",
"public void refresh(Env env) {\n\t\trefreshed = System.currentTimeMillis();\n\t}",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n /*Log.d(\"Refreshed token\", \"Refreshed token: \" + refreshedToken);\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n final CollectionReference clients = FirebaseFirestore.getInstance().collection(\"Tokens\");\n Map<String, Object> data1 = new HashMap<>();\n data1.put(\"token\", refreshedToken);\n clients.document(\"Iamhere\").set(data1, SetOptions.merge());*/\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n //sendRegistrationToServer(refreshedToken);\n }",
"@Override\n public void onRefresh() {\n refreshData();\n }",
"@Override\n\tpublic void refresh(String accountUID){\n\t\tmAccountUID = accountUID;\n\t\trefresh();\n\t}",
"protected void refreshAll() {\n refreshProperties();\n\t}",
"protected void refresh() {\n\t}",
"@Override\n public void onRefresh() {\n synchronizeContent();\n }",
"public void reload() throws HpcException {\n\tif(useSecretsManager) {\n\t\trefreshAwsSecret();\n\t}\n initSystemAccountsData();\n initDataTransferAccountsData();\n this.dataMgmtConfigLocator.reload();\n }",
"JobResponse refresh();",
"@Override\n public void onRefresh() {\n load_remote_data();\n }",
"JobResponse refresh(Context context);",
"private void doRefreshConnection()\r\n\t{\r\n\t\t/* Refresh the connection to S3. */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tservice = new RestS3Service(new AWSCredentials(accessKey, secretKey));\r\n\t\t}\r\n\t\tcatch (S3ServiceException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void refresh(){\r\n\t \t//providerMap.clear();\r\n\t \trefresh(null);\r\n\t }",
"@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\t new GetDataTask().execute();\n\t\t\t}",
"@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"@Override\r\n public void refresh(@NotNull final Project project) {\n ChangeListManager.getInstance(project).ensureUpToDate(true);\r\n }",
"public synchronized boolean refresh() \n {\n return refresh(false);\n }",
"@Override\n\t\tpublic void onRefresh() {\n\t\t\thttpRefreshMethod();\n\t\t}",
"public void refresh() {\n\n odp.refresh();\n\n\n }",
"@Override\r\n\t\t\tpublic void invoke() {\n\t\t\t\trefresh();\r\n\t\t\t}",
"@Override\r\n\tpublic void refresh(boolean keepChanges) throws RepositoryException {\n\t\t\r\n\t}",
"private void refreshItem() {\n\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(true);\r\n\t\tboundSwagForm.saveData(new DSCallback() {\r\n\t\t\t//reselect selected tile (call to saveData de-selects it)\r\n\t\t\tpublic void execute(DSResponse response,\r\n\t\t\t\t\tObject rawData, DSRequest request) {\r\n\t\t\t\t//get updated record\r\n\t\t\t\tfinal TileRecord rec = new TileRecord(request.getData());\r\n\t\t\t\t//Note: selectRecord seems to only work on the tile index\r\n\t\t\t\titemsTileGrid.selectRecord(itemsTileGrid.getRecordIndex(rec));\r\n\t\t\t\t//saveData adds tileRecord to the end.\r\n\t\t\t\t//make sure sort order is preserved\r\n\t\t\t\tdoSort();\r\n\t\t\t}});\r\n\t}",
"void flush() {\r\n synchronized (sync) {\r\n updatedFiles.clear();\r\n }\r\n }",
"@Override\n public void onRefresh() {\n new LoadScholsTask(this).execute();\n }",
"@Override\n public void onRefresh() {\n getData();\n }",
"public void refresh() {\r\n\t\tinit();\r\n\t}",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refreshFnkt() {\r\n\t\ttransactionList = refreshTransactions();\r\n\t\tfillTable();\r\n\t}",
"@Override\n public void onRefresh() {\n fetchShopAsync(0);\n }",
"public void synced() {\n Preconditions.checkNotNull(state);\n state.setState(ENodeState.Synced);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n saveToken(refreshedToken);\n sendRegistrationToServer(refreshedToken);\n }",
"@Override\n public void sync(){\n }",
"public void refresh() {\n \t\tURL[] urls = getProvisioningContext().getMetadataRepositories();\n \t\tProvisioningOperation op;\n \t\tif (urls == null)\n \t\t\top = new RefreshMetadataRepositoriesOperation(ProvUIMessages.AvailableIUGroup_RefreshOperationLabel, refreshRepoFlags);\n \t\telse\n \t\t\top = new RefreshMetadataRepositoriesOperation(ProvUIMessages.AvailableIUGroup_RefreshOperationLabel, urls);\n \t\tProvisioningOperationRunner.schedule(op, getShell(), StatusManager.SHOW | StatusManager.LOG);\n \t\tStructuredViewer v = getStructuredViewer();\n \t\tif (v != null && !v.getControl().isDisposed())\n \t\t\tv.setInput(getNewInput());\n \t}",
"public void refresh()\n {\n PropertyManager.getInstance().refresh();\n init(this.path);\n }",
"protected abstract void refresh() throws RemoteException, NotBoundException, FileNotFoundException;",
"EventChannel refresh();",
"@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void refresh() throws AS400SecurityException {\n refresh(getTokenType(), getTimeoutInterval());\n }",
"@Override\n public void onRefresh() {\n max_id = 0;\n populateCurrentUser();\n populateTimeline();\n }",
"<T> void refresh(T persistentObject);",
"@Override\r\n\t\t\tpublic void onRefresh() {\n\t\t\t\tgetLichHoc();\r\n\t\t\t}",
"private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}",
"@Override\n\tpublic void changeToReleaseRefresh() {\n\n\t}",
"@Override\n\tpublic void refresh(Object... param) {\n\n\t}",
"public void syncHandle() {\n syncOldStream();\n }",
"void update(storage_server_connections connection);",
"void refreshTaskInformation();",
"public void refreshAll() {\n}",
"@Override\n public void onRefresh() {\n getUserOnlineStatus();\n }",
"private synchronized void onUpdate() {\n if (pollingJob == null || pollingJob.isCancelled()) {\n int refresh;\n\n try {\n refresh = getConfig().as(OpenSprinklerConfig.class).refresh;\n } catch (Exception exp) {\n refresh = this.refreshInterval;\n }\n\n pollingJob = scheduler.scheduleWithFixedDelay(refreshService, DEFAULT_WAIT_BEFORE_INITIAL_REFRESH, refresh,\n TimeUnit.SECONDS);\n }\n }",
"@Override\n public void refreshDataEntries() {\n }",
"@Override\n public void onTokenRefresh() {\n }",
"@Override\n public void onRefresh() {\n loadData();\n }",
"@Override\n\tpublic void refresh(Object... param) {\n\t\t\n\t}",
"@Override\r\n public void onTokenRefresh() {\n App.sendToken();\r\n }"
] | [
"0.6155004",
"0.5726795",
"0.57157946",
"0.5709481",
"0.5676882",
"0.5575826",
"0.5570311",
"0.5525649",
"0.55104464",
"0.54941475",
"0.5492033",
"0.5469897",
"0.5447755",
"0.54466695",
"0.544295",
"0.543293",
"0.543293",
"0.5407844",
"0.54046816",
"0.5397724",
"0.5386415",
"0.53747815",
"0.53603595",
"0.53522193",
"0.5351854",
"0.5349291",
"0.53446835",
"0.53287977",
"0.53223175",
"0.5319986",
"0.5312658",
"0.525281",
"0.52503425",
"0.52503425",
"0.5237058",
"0.52282876",
"0.52199024",
"0.52155095",
"0.52151483",
"0.52017933",
"0.5192927",
"0.5182515",
"0.5174484",
"0.5159379",
"0.51477474",
"0.5137433",
"0.51360315",
"0.5125767",
"0.511813",
"0.511175",
"0.5102078",
"0.5052959",
"0.50149906",
"0.501131",
"0.50049603",
"0.5003658",
"0.49795145",
"0.49778312",
"0.49712402",
"0.49556097",
"0.49401152",
"0.49250156",
"0.4910962",
"0.49108425",
"0.49014774",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48956257",
"0.48955083",
"0.48949155",
"0.48943013",
"0.48897088",
"0.48830813",
"0.4883024",
"0.48820573",
"0.48744878",
"0.48693067",
"0.48664412",
"0.4853006",
"0.48497167",
"0.48453578",
"0.48399168",
"0.4839374",
"0.48312786",
"0.48286662",
"0.48243025",
"0.48119828",
"0.48082656",
"0.48035756",
"0.4792677",
"0.47926697",
"0.4788328",
"0.4785895",
"0.4783219",
"0.47810987",
"0.47723344"
] | 0.50827444 | 51 |
Create the frame on the event dispatching thread. | public static void main(String args[]) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new shemInputForm();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Frame createFrame();",
"public void buildFrame();",
"private void createFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Create Event\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tfinal JTextArea textArea = new JTextArea(15, 50);\n\t\t\t\ttextArea.setText(\"Untitled Event\");\n\t\t\t\ttextArea.setWrapStyleWord(true);\n\t\t\t\ttextArea.setEditable(true);\n\t\t\t\ttextArea.setFont(Font.getFont(Font.SANS_SERIF));\n\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\tfinal JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startTime = new JTextField(\"1:00am\");\n\t\t\t\tJTextField t = new JTextField(\"to\");\n\t\t\t\tt.setEditable(false);\n\t\t\t\tfinal JTextField endTime = new JTextField(\"2:00am\");\n\t\t\t\tJButton save = new JButton(\"Save\");\n\t\t\t\tpanel.add(d);\n\t\t\t\tpanel.add(startTime);\n\t\t\t\tpanel.add(t);\n\t\t\t\tpanel.add(endTime);\n\t\t\t\tpanel.add(save);\n\n\t\t\t\tsave.addActionListener(new ActionListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\teventsData.addEvent(new Event(YYYYMMDD(d.getText().trim()), startTime.getText(),\n\t\t\t\t\t\t\t\t\tendTime.getText(), textArea.getText()));\n\t\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\tif (ex instanceof IllegalArgumentException)\n\t\t\t\t\t\t\t\tpromptMsg(ex.getMessage(), \"Error\");\n\t\t\t\t\t\t\telse promptMsg(ex.getMessage(), \"Error\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(textArea);\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}\n\t\t});\n\t}",
"FRAME createFRAME();",
"private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\n }",
"public FrameJogo() {\n initComponents();\n createBufferStrategy(2);\n Thread t = new Thread(this);\n t.start();\n }",
"private void createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\n }",
"public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }",
"private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }",
"protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t}",
"public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}",
"private Frame buildFrame() {\n return new Frame(command, headers, body);\n }",
"public Screen(Frame frame) { \n frame.addMouseListener(new KeyHandler()); // Adds a mouse listener to the JFrame\n frame.addMouseMotionListener(new KeyHandler()); // Adds a mouse motion listener to the JFrame\n gameLoop.start(); // Starts the thread\n }",
"public static void createGui() {\r\n\t\tEventQueue.invokeLater( new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGui window = new Gui();\r\n\t\t\t\t\twindow.frame.setVisible( true );\r\n\t\t\t\t\twindow.videoFrame.addKeyListener( window );\r\n\t\t\t\t} catch ( Exception e ) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}",
"public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}",
"private void prepareFrame() {\n logger.debug(\"prepareFrame : enter\");\n\n // initialize the actions :\n registerActions();\n final Container container;\n\n if (Bootstrapper.isHeadless()) {\n container = null;\n } else {\n final JFrame frame = new JFrame(ApplicationDescription.getInstance().getProgramName());\n\n // handle frame icon\n final Image jmmcFavImage = ResourceImage.JMMC_FAVICON.icon().getImage();\n frame.setIconImage(jmmcFavImage);\n\n // get screen size to adjust minimum window size :\n final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n logger.info(\"screen size = {} x {}\", screenSize.getWidth(), screenSize.getHeight());\n // hack for screens smaller than 1024x768 screens:\n final int appWidth = 950;\n final int appHeightMin = (screenSize.getHeight() >= 850) ? 800 : 700;\n\n final Dimension dim = new Dimension(appWidth, appHeightMin);\n frame.setMinimumSize(dim);\n frame.addComponentListener(new ComponentResizeAdapter(dim));\n frame.setPreferredSize(INITIAL_DIMENSION);\n\n App.setFrame(frame);\n\n container = frame.getContentPane();\n }\n // init the main panel:\n createContent(container);\n\n StatusBar.show(\"application started.\");\n\n logger.debug(\"prepareFrame : exit\");\n }",
"protected EventExecutor newChild(ThreadFactory threadFactory, Object... args) throws Exception {\n/* 57 */ return (EventExecutor)new LocalEventLoop(this, threadFactory);\n/* */ }",
"public void run() {\n\t\t\t\tLayoutFrame frame = new LayoutFrame();\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}",
"protected void createFrames() {\n createStandingRight();\n createStandingLeft();\n createWalkingRight();\n createWalkingLeft();\n createJumpingRight();\n createJumpingLeft();\n createDying();\n }",
"private void buildAndDisplayFrame() {\n\n\t\tframe.add(panelForIncomingCall, BorderLayout.NORTH);\n\t\tpanelForIncomingCall.add(welcomeThenDisplayCallInfo);\n\n\t\tframe.add(backgroundPanel, BorderLayout.CENTER);\n\t\tbackgroundPanel.add(userInstructions);\n\t\tbackgroundPanel.add(startButton);\n\t\tbackgroundPanel.add(declineDisplay);\n\n\t\tframe.add(acceptDeclineBlockBottomPanel, BorderLayout.SOUTH);\n\t\tacceptDeclineBlockBottomPanel.add(acceptButton);\n\t\tacceptDeclineBlockBottomPanel.add(declineButton);\n\t\tacceptDeclineBlockBottomPanel.add(blockButton);\n\n\t\tframe.setSize(650, 700); // sizes frame to whatever we want\n\t\tframe.setLocationRelativeTo(null); // puts at center of screen\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}",
"public native final YuiEvent frameEvent() /*-{\n\t\treturn this.frameEvent;\n\t}-*/;",
"@Override\n public void run() {\n JFrame frame = new JFrame(\"Survey\");\n frame.setPreferredSize(new Dimension(300, 400));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n createComponents(frame.getContentPane());\n frame.pack();\n frame.setVisible(true);\n }",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\n \n JFrame frame = new HandleActionEventsForJButton();\n \n //Display the window.\n \n frame.pack();\n \n frame.setVisible(true);\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }",
"public void start() {\r\n\t\tfinal Element frame = this.createFrame();\r\n\t\tthis.setFrame(frame);\r\n\r\n\t\tthis.getSupport().start(this, frame);\r\n\r\n\t\t// the reason for the query string is to avoid caching problems...the\r\n\t\t// src attribute is set before the frame is attached this also\r\n\t\t// avoids the nasty clicking noises in ie.\r\n\t\tDOM.setElementProperty(frame, \"src\", this.getServiceEntryPoint() + \"?serializationEngine=Gwt&\" + System.currentTimeMillis());\r\n\r\n\t\tfinal Element body = RootPanel.getBodyElement();\r\n\t\tDOM.appendChild(body, frame);\r\n\t}",
"protected HFrame(){\n\t\tinit();\n\t}",
"public static void spielstart() {\n\n\t\tThread thread = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tgameboard = new GameFrame();\n\n\t\t\t}\n\t\t};\n\n\t\tthread.start();\n\n\t}",
"public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}",
"public void CreateTheFrame()\n {\n setSize(250, 300);\n setMaximumSize( new Dimension(250, 300) );\n setMinimumSize(new Dimension(250, 300));\n setResizable(false);\n\n pane = getContentPane();\n insets = pane.getInsets();\n\n // Apply the null layout\n pane.setLayout(null);\n }",
"public native void renderFrame();",
"public native void renderFrame();",
"public static void run(){\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n PlanHomeCoach frame = new PlanHomeCoach();\n frame.init();\n Dimension screenSize =Toolkit.getDefaultToolkit().getScreenSize();\n frame.setLocation(screenSize.width/2-400/2,screenSize.height/2-700/2);\n frame.setResizable(false);\n frame.setVisible(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }",
"public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }",
"private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }",
"private void createAndShowGUI() {\n //Create and set up the window.\n frame = new JFrame();\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(this);\n frame.addKeyListener(this);\n frame.addMouseListener(this);\n\n //Display the window.\n this.setPreferredSize(new Dimension(288, 512));\n this.addMouseListener(this);\n\n frame.pack();\n frame.setVisible(true);\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"NOFRAME createNOFRAME();",
"public BreukFrame() {\n super();\n initialize();\n }",
"public MyFrame() {\n\t\tinitializeGui();\n\t\taddMouseListener(this);\n\t\taddComponentListener(this);\n\t}",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"public launchFrame() {\n \n initComponents();\n \n }",
"private void createAndInitPictureFrame() {\r\n frame = new com.FingerVeinScanner.Frame(picture,picture2);\r\n\t\tthis.pictureFrame = frame.getFrame(); // Create the JFrame.\r\n\t\tthis.pictureFrame.setResizable(true); // Allow the user to resize it.\r\n\t\tthis.pictureFrame.getContentPane().\r\n\t\tsetLayout(new BorderLayout()); // Use border layout.\r\n\t\tthis.pictureFrame.setDefaultCloseOperation\r\n\t\t(JFrame.DISPOSE_ON_CLOSE); // When closed, stop.\r\n\t\tthis.pictureFrame.setTitle(picture.getTitle());\r\n\t\t//PictureExplorerFocusTraversalPolicy newPolicy =\r\n\t\t//\tnew PictureExplorerFocusTraversalPolicy();\r\n\t\t//this.pictureFrame.setFocusTraversalPolicy(newPolicy);\r\n\t}",
"public FirstNewFrame() {\n\t\tjbInit();\n\t}",
"private JInternalFrame createInternalFrame() {\n\n initializeChartPanel();\n\n chartPanel.setPreferredSize(new Dimension(200, 100));\n final JInternalFrame frame = new JInternalFrame(\"Frame 1\", true);\n frame.getContentPane().add(chartPanel);\n frame.setClosable(true);\n frame.setIconifiable(true);\n frame.setMaximizable(true);\n frame.setResizable(true);\n return frame;\n\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tnew Thread(new Runnable() {\r\n\t\t @Override\r\n\t\t\tpublic void run() {\r\n\t\t \tEmdeonBotFrame frame = new EmdeonBotFrame();\r\n\t\t }\r\n\t\t}).start();\r\n\t}",
"void frameSetUp() {\r\n\t\tJFrame testFrame = new JFrame();\r\n\t\ttestFrame.setSize(700, 400);\r\n\t\ttestFrame.setResizable(false);\r\n\t\ttestFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttestFrame.setLayout(new GridLayout(0, 2));\r\n\t\tmainFrame = testFrame;\r\n\t}",
"public void createThread() {\n }",
"private void createDisplay()\n {\n // Creates frame based off of the parameters passed in Display constructor\n frame = new JFrame(title); \n frame.setSize(width, height);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false); \n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n // Creates the canvas that is drawn on\n canvas = new Canvas();\n canvas.setPreferredSize(new Dimension(width,height));\n canvas.setMaximumSize(new Dimension(width,height));\n canvas.setMinimumSize(new Dimension(width,height));\n canvas.setFocusable(false);\n //add the canvas to the window\n frame.add(canvas);\n //pack the window (kinda like sealing it off)\n frame.pack();\n }",
"private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}",
"public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }",
"public void init() {\n //Execute a job on the event-dispatching thread; creating this applet's GUI.\n setSize(500, 150);\n \ttry {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n createGUI();\n }\n });\n } catch (Exception e) { \n System.err.println(\"createGUI didn't complete successfully\");\n }\n \n }",
"private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}",
"public FrameMain() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n initComponents();\n refreshSchedule();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedLookAndFeelException ex) {\n Logger.getLogger(FrameMain.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public static void create() {\r\n render();\r\n }",
"public void createButtonFrame()\n {\n JFrame createFrame = new JFrame();\n createFrame.setSize(560,200);\n Container pane2;\n pane2 = createFrame.getContentPane();\n JPanel createPanel = new JPanel(null);\n createEvent = new JTextArea(\"MM/DD/YYYY\");\n timeField1 = new JTextArea(\"00:00\");\n timeField2 = new JTextArea(\"00:00\");\n EventNameField = new JTextArea(\"UNTILED NAME\");\n JLabel EnterEventLabel = new JLabel(\"Enter Event Name:\");\n JLabel EnterDateLabel = new JLabel(\"Date:\");\n JLabel EnterStartLabel = new JLabel(\"Start:\");\n JLabel EnterEndLabel = new JLabel(\"End:\");\n JLabel toLabel = new JLabel(\"to\");\n pane2.add(createPanel);\n createPanel.add(createEvent);\n createPanel.add(timeField1);\n createPanel.add(EventNameField);\n createPanel.add(timeField2);\n createPanel.add(create);\n createPanel.add(EnterEventLabel);\n createPanel.add(EnterDateLabel);\n createPanel.add(EnterStartLabel);\n createPanel.add(EnterEndLabel);\n createPanel.add(toLabel);\n\n createPanel.setBounds(0, 0, 400, 200); //panel\n createEvent.setBounds(20, 90, 100, 25); //Date field\n timeField1.setBounds(150, 90, 80, 25); //Time field\n timeField2.setBounds(280, 90, 80, 25); //Time field 2\n create.setBounds(380, 100, 150, 50); //Create Button\n\n EnterStartLabel.setBounds(150, 65, 80, 25);\n EnterEndLabel.setBounds(280, 65, 80, 25);\n toLabel.setBounds(250, 90, 80, 25);\n EnterDateLabel.setBounds(20, 65, 80, 25);\n EventNameField.setBounds(20, 30, 300, 25); //Event Name Field\n EnterEventLabel.setBounds(20, 5, 150, 25);\n\n\n\n\n createFrame.setVisible(true);\n createFrame.setResizable(false);\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}",
"private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }",
"private void createEvents() {\n\t}",
"public RunFrame(MainFrame mainFrame) {\n\tthis.mainFrame = mainFrame;\n\tmainFrame.addScriptEventListener(scrEvtLis);\n\tsetAlwaysOnTop(true);\n setFocusable(false);\n setLocationByPlatform(true);\n\tsetLayout(new GridBagLayout());\n\tsetUndecorated(true);\n\tsetTitle(\"JUltima Toolbar\");\n\n\taddMouseListener(this);\n\taddMouseMotionListener(this);\n }",
"public static MainFrame createNewFrame(Display display, Document doc)\n {\n Shell shell = new Shell(display);\n\n MainFrame frame = new MainFrame(shell, doc);\n frame.initComponents(null);\n\n shell.open();\n\n return frame;\n }",
"public JPF_java_awt_EventDispatchThread (Config config){\n super(config);\n\n counter = 0;\n forceActionStates = config.getBoolean(\"awt.force_states\", true);\n }",
"private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }",
"public Frame1() {\n initComponents();\n setBounds(300,250,450,350);\n p1.setBackground(new Color(100,100,240));\n setResizable(false);\n Thread t=new Thread(this);\nt.start();\n }",
"private void initialize() {\n\t\tframePirateEventScreen = new JFrame();\n\t\tframePirateEventScreen.setBounds(100, 100, 630, 241);\n\t\tframePirateEventScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tJButton btnContinue = new JButton(\"CONTINUE\");\n\t\tbtnContinue.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tbtnContinue.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfinishedWindow();\n\t\t\t}\n\t\t});\n\t\tframePirateEventScreen.getContentPane().setLayout(new MigLayout(\"\", \"[85px,grow]\", \"[grow][23px]\"));\n\n\t\tJLabel lblNewLabel = new JLabel(\n\t\t\t\t\"You have been boarded by pirates! You will have to beat them in a game to deter them.\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframePirateEventScreen.getContentPane().add(lblNewLabel, \"cell 0 0\");\n\t\tframePirateEventScreen.getContentPane().add(btnContinue, \"cell 0 1,alignx center,aligny center\");\n\t}",
"public void run() {\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t\t\tframe.setJMenuBar((new MyJMenuBar(frame)).menuBar);\n\t\t\t\t\n\t\t\t\t//Display the window.\n\t\t\t\t//frame.pack();\n\n\t\t\t\t//Set up the content pane.\n\t\t\t\tframe.addLoadingMessage(frame.getContentPane());\n\t\t\t\tframe.pack();\n\t\t\t\tframe.setSize(new Dimension((int)(frame.getSize().getWidth()), 300));\n\t\t\t\tframe.setResizable(false);\n\t\t\t\tframe.setVisible(true);\n\t\t\t\tframe.update(frame.getGraphics());\n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResourceTestFrame frame=new ResourceTestFrame();\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}",
"public void run()\n {\n m_frame = new DrawingFrame();\n \n m_frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n m_frame.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent evt)\n {\n try\n {\n m_context.getBundle(0).stop();\n }\n catch (BundleException ex)\n {\n ex.printStackTrace();\n }\n }\n });\n \n m_frame.setVisible(true);\n \n m_shapetracker = new ShapeTracker(m_context, m_frame);\n m_shapetracker.open();\n }",
"public static void main(String[] args) {\n \n MyFrame myFrame = new MyFrame();\n \n }",
"private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }",
"private void createAndShowGUI()\r\n {\r\n //Create and set up the window.\r\n frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(this);\r\n frame.addKeyListener(this);\r\n\r\n //Display the window.\r\n this.setPreferredSize(new Dimension(\r\n BLOCKSIZE * ( board.getNumCols() + 3 + nextUp.getNumCols() ),\r\n BLOCKSIZE * ( board.getNumRows() + 2 )\r\n ));\r\n\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private void buildFrame(){\n this.setVisible(true);\n this.getContentPane();\n this.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\t \n\t }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tEx02 frame=new Ex02();\r\n\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t}catch(Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}",
"public void run() {\n\t\t//only makeFrame once\n\t\tif(!running){\n\t\t\tmakeFrame();\n\t\t}\n\t\tmenuFrame.setVisible(true);\n\t}",
"public FrameControl() {\n initComponents();\n }",
"protected void fireCreationEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.CREATE));\n\t}",
"protected void fireCreationEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.CREATE));\n\t}",
"public void run() \n {\n final JFrame frame = new JFrame(); \n frame.setMinimumSize(new Dimension(640, 480)); \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n \n // Add the Swing JPanel and make visible\n frame.getContentPane().add(new SwingFX2()); \n frame.setVisible(true); \n }",
"public ThreadDemo() {\n\n\t\t// create a window\n\t\twin = new javax.swing.JFrame(\"Thread Demo\");\n\t\twin.setSize(400, 300);\n\t\twin.setLocation(50, 50);\n\t\twin.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);\n\t\twin.add(this);\n\n\t\t// set-up a tool bar\n\t\tjavax.swing.JPanel tools = new javax.swing.JPanel();\n\t\twin.add(tools, java.awt.BorderLayout.SOUTH);\n\t\tright = new javax.swing.JButton(\"Move Right\");\n\t\thome = new javax.swing.JButton(\"Home\");\n\t\tgo = new javax.swing.JButton(\"Go\");\n\t\ttools.add(right);\n\t\ttools.add(home);\n\t\ttools.add(go);\n\n\t\t// set up the panel\n\t\tx = y = 10;\n\t\tsetBackground(java.awt.Color.white);\n\n\t\t// set up event handler\n\t\thome.addActionListener(this);\n\t\tright.addActionListener(this);\n\t\tgo.addActionListener(this);\n\n\t\t// make the window visible\n\t\twin.setVisible(true);\n\t\twin.repaint();\n\t}",
"public void internalFrameActivated(javax.swing.event.InternalFrameEvent e) {\n\t\t\t\tactualizaScreen();\r\n\t\t\t}",
"public void addFrame(GInternalFrame internalFrame) {\r\n\t\tinternalFrame.setDesktopPane(this);\r\n\t\tint spos = (frames.size() + 1) * 12;\r\n\t\tint left = getFrame().getAbsoluteLeft() + spos;\r\n\t\tint top = getFrame().getAbsoluteTop() + spos;\r\n\r\n\t\t// System.out.println(\"HippoDesktopPane.add frame gf.absleft \" +\r\n\t\t// getFrame().getAbsoluteLeft() + \" gf.abstop \"\r\n\t\t// + getFrame().getAbsoluteTop() + \" \" + spos);\r\n\r\n\t\tSelectBoxManagerImpl selectBoxManager = ((DefaultGFrame) internalFrame)\r\n\t\t\t\t.getSelectBoxManager();\r\n\t\tif (selectBoxManager instanceof SelectBoxManagerImplIE6) {\r\n\t\t\tgetFrame().add(selectBoxManager.getBlockerWidget(), left, top);\r\n\t\t}\r\n\t\tgetFrame().add((Widget) internalFrame);\r\n\t\tinternalFrame.setLocation(left, top);\r\n\r\n\t\t// NOTE needed to add this to get the windwos to pop ontop of the ocean\r\n\t\tDOM.setStyleAttribute(((DefaultGInternalFrame) internalFrame).getElement(), \"position\",\r\n\t\t\t\t\"absolute\");\r\n\r\n\t\tframes.add(internalFrame);\r\n\r\n\t\t// internalFrame.setTheme(theme);\r\n\t}",
"public HomeFrame() {\n super();\n\n this.setSize(400, 80);\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n this.setTitle(\"Reed-Muller code sending simulator\");\n JPanel panel = new JPanel();\n\n JButton sendVector = new JButton();\n sendVector.setText(\"Vector\");\n sendVector.addActionListener(e -> new VectorFrame());\n\n JButton sendText = new JButton();\n sendText.setText(\"Text\");\n sendText.addActionListener(e -> new TextFrame());\n\n panel.add(sendVector);\n panel.add(sendText);\n\n panel.setVisible(true);\n this.add(panel);\n this.setVisible(true);\n }",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"Event createEvent();",
"Event createEvent();",
"private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }",
"private void setupFrame() {\n this.setTitle(TITRE);\n this.setPreferredSize(new Dimension(TAILLE_FRAME[1], TAILLE_FRAME[0]));\n this.setResizable(false);\n \n this.getContentPane().setBackground(new Color(0,153,0));\n this.getContentPane().setLayout(new GridLayout(3,1)); \n \n this.pack();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setVisible(true);\n }",
"private static native void runFrame(long pointer);",
"public void run()\n\t\t\t\t{\n\t\t\t\t\tNotHelloWorldFrame frame = new NotHelloWorldFrame();\n\t\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t}",
"private void setUpFrame() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new BorderLayout());\n rootPanel.setBackground(Color.darkGray);\n }",
"private void agendaFrame() {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal JFrame frame = new JFrame(\"Please select a time period.\");\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(1, 4));\n\t\t\t\t//JTextField d = new JTextField(\"\" + year + \"/\" + month + \"/\" + day);\n\t\t\t\tfinal JTextField startDate = new JTextField(\"1\" + \"/1\" + \"/2016\");\n\t\t\t\tJTextField to = new JTextField(\"to\");\n\t\t\t\tto.setEditable(false);\n\t\t\t\tfinal JTextField endDate = new JTextField(\"1\" + \"/2\" + \"/2016\");\n\t\t\t\tJButton go = new JButton(\"Go\");\n\t\t\t\t\n\t\t\t\tgo.addActionListener(new ActionListener() {\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\teventsRender = new AgendaViewRender();\n\t\t\t\t\t\tAgendaViewRender.setStartDate(startDate.getText());\n\t\t\t\t\t\tAgendaViewRender.setEndDate(endDate.getText());\n\t\t\t\t\t\tupdateEventsView(eventsRender);\n\t\t\t\t\t\tframe.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tpanel.add(startDate);\n\t\t\t\tpanel.add(to);\n\t\t\t\tpanel.add(endDate);\n\t\t\t\tpanel.add(go);\n\t\t\t\t\n\t\t\t\tframe.setSize(500, 100);\n\t\t\t\tframe.setLayout(new GridLayout(2, 1));\n\t\t\t\tframe.add(panel);\n\t\t\t\tframe.setLocationByPlatform(true);\n\t\t\t\tframe.setVisible(true);\n\n\t\t\t}\n\t\t});\n\t}",
"public EventDispatcher() {\n }",
"@Override\n\tpublic void create() {\n\t\t// This should come from the platform\n\t\theight = platform.getScreenDimension().getHeight();\n\t\twidth = platform.getScreenDimension().getWidth();\n\n\t\t// create the drawing boards\n\t\tsb = new SpriteBatch();\n\t\tsr = new ShapeRenderer();\n\n\t\t// Push in first state\n\t\tgsm.push(new CountDownState(gsm));\n//\t\tgsm.push(new PlayState(gsm));\n\t}",
"private static void createAndShowGUI() {\r\n\t\tlogger.info(\"Creating and showing the GUI\");\r\n\t\tJFrame frame = new JFrame(\"BowlingSwing\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(new BowlingSwing());\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}",
"public void createAndShowGUI() {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n super.windowClosing(e);\n System.out.println(\"closing server...\");\n }\n });\n this.addComponentsToPane(this.getContentPane());\n this.pack();\n this.centreFrameInScreen();\n this.setVisible(true);\n }",
"private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"TreeExpandEventDemo2\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new TreeExpandEventDemo2();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"public void run() {\n\t\t\t\t\tHelloWorldGUI frame = new HelloWorldGUI();\n\t\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t}"
] | [
"0.70995665",
"0.6852433",
"0.6846754",
"0.6798485",
"0.6690301",
"0.66411847",
"0.6641116",
"0.6616928",
"0.6357039",
"0.6065332",
"0.6048681",
"0.6034373",
"0.6011374",
"0.60015535",
"0.5976256",
"0.59476364",
"0.591781",
"0.5917112",
"0.5907141",
"0.59037983",
"0.5879961",
"0.58789396",
"0.58445555",
"0.5805057",
"0.5780165",
"0.57765865",
"0.5727133",
"0.570383",
"0.56947875",
"0.56878453",
"0.5686975",
"0.5686975",
"0.56677145",
"0.56557906",
"0.5640114",
"0.5636042",
"0.5622161",
"0.5605492",
"0.5602291",
"0.5600398",
"0.5585347",
"0.5568576",
"0.5566332",
"0.5551087",
"0.5545237",
"0.5534061",
"0.553083",
"0.54975045",
"0.54788125",
"0.5464731",
"0.5464532",
"0.5453685",
"0.5442326",
"0.54423046",
"0.543808",
"0.54317623",
"0.5426905",
"0.54086345",
"0.5394351",
"0.5388523",
"0.53738064",
"0.53564876",
"0.53558487",
"0.53549886",
"0.5353989",
"0.5353935",
"0.5345227",
"0.5341966",
"0.53336895",
"0.53316957",
"0.5328556",
"0.5315202",
"0.530156",
"0.53008646",
"0.5294294",
"0.5292548",
"0.5281146",
"0.5277686",
"0.5274193",
"0.5274193",
"0.5271378",
"0.5271099",
"0.52689564",
"0.5267874",
"0.5262774",
"0.52592176",
"0.52592176",
"0.52561843",
"0.52561843",
"0.5256009",
"0.52517545",
"0.52516526",
"0.5250228",
"0.52494526",
"0.5240713",
"0.52277",
"0.5226958",
"0.52194476",
"0.5215074",
"0.5213518",
"0.52124166"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.