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 |
---|---|---|---|---|---|---|
Reads listener config from the config repository and caches its content in to the hash table.
|
public static void load() {
log.info("Config : loading Listener info"); //$NON-NLS-1$
Collection children = Collections.EMPTY_LIST;
try {
Content startPage = ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getContent(CONFIG_PAGE);
Content configNode = startPage.getContent("IPConfig");
children = configNode.getChildren(ItemType.CONTENTNODE); //$NON-NLS-1$
}
catch (RepositoryException re) {
log.error("Config : Failed to load Listener info"); //$NON-NLS-1$
log.error(re.getMessage(), re);
}
Listener.cachedContent.clear();
Listener.cacheContent(children);
log.info("Config : Listener info loaded"); //$NON-NLS-1$
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}",
"public void loadConfig() {\n\t}",
"void addListener( ConfigurationListener listener );",
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }",
"static void updateConfig(FileConfiguration config)\n\t{\n\t\tProfessionListener.config = config;\n\t}",
"public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }",
"private static void cacheContent(Collection listeners) {\r\n\r\n Iterator ipList = listeners.iterator();\r\n while (ipList.hasNext()) {\r\n Content c = (Content) ipList.next();\r\n try {\r\n Map types = new Hashtable();\r\n Listener.cachedContent.put(c.getNodeData(\"IP\").getString(), types); //$NON-NLS-1$\r\n Iterator it = c.getContent(\"Access\").getChildren().iterator(); //$NON-NLS-1$\r\n while (it.hasNext()) {\r\n Content type = (Content) it.next();\r\n types.put(type.getNodeData(\"Method\").getString().toLowerCase(), StringUtils.EMPTY); //$NON-NLS-1$\r\n }\r\n }\r\n catch (RepositoryException re) {\r\n log.error(\"RepositoryException caught while loading listener configuration: \" + re.getMessage(), re); //$NON-NLS-1$\r\n }\r\n }\r\n }",
"private void loadConfig()\n {\n File config = new File(\"config.ini\");\n\n if (config.exists())\n {\n try\n {\n BufferedReader in = new BufferedReader(new FileReader(config));\n\n configLine = Integer.parseInt(in.readLine());\n configString = in.readLine();\n socketSelect = (in.readLine()).split(\",\");\n in.close();\n }\n catch (Exception e)\n {\n System.exit(1);\n }\n }\n else\n {\n System.exit(1);\n }\n }",
"interface ConfigWatcher {\n\n /**\n * Called when receiving an update on virtual host configurations.\n */\n void onConfigChanged(ConfigUpdate update);\n\n void onError(Status error);\n }",
"public void reloadConfig () {\n if (config == null) {\n if (datafolder == null)\n throw new IllegalStateException();\n config = new File(datafolder, configName);\n }\n this.fileConfiguration = YamlConfiguration.loadConfiguration(config);\n }",
"private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}",
"public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"Collection<String> readConfigs();",
"public void refresh() {\n List<ConfigPath> configPaths = getConfigFiles();\n\n // Delete configs from cache which don't exist on disk anymore\n Iterator<String> currentEntriesIt = confs.keySet().iterator();\n while (currentEntriesIt.hasNext()) {\n String path = currentEntriesIt.next();\n boolean found = false;\n for (ConfigPath configPath : configPaths) {\n if (configPath.path.equals(path)) {\n found = true;\n break;\n }\n }\n if (!found) {\n currentEntriesIt.remove();\n if (log.isDebugEnabled()) {\n log.debug(\"Configuration: detected removed config \" + path + \" in \" + location);\n }\n }\n }\n\n // Add/update configs\n for (ConfigPath configPath : configPaths) {\n CachedConfig cachedConfig = confs.get(configPath.path);\n if (cachedConfig == null || cachedConfig.lastModified != configPath.file.lastModified()) {\n if (log.isDebugEnabled()) {\n log.debug(\"Configuration: detected updated or added config \" + configPath.path + \" in \" + location);\n }\n long lastModified = configPath.file.lastModified();\n ConfImpl conf = parseConfiguration(configPath.file);\n cachedConfig = new CachedConfig();\n cachedConfig.lastModified = lastModified;\n cachedConfig.conf = conf;\n cachedConfig.state = conf == null ? ConfigState.ERROR : ConfigState.OK;\n confs.put(configPath.path, cachedConfig);\n }\n }\n }",
"private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }",
"private static void registerEventListener() {\r\n\r\n log.info(\"Registering event listener for Listeners\"); //$NON-NLS-1$\r\n\r\n try {\r\n ObservationManager observationManager = ContentRepository\r\n .getHierarchyManager(ContentRepository.CONFIG)\r\n .getWorkspace()\r\n .getObservationManager();\r\n\r\n observationManager.addEventListener(new EventListener() {\r\n\r\n public void onEvent(EventIterator iterator) {\r\n // reload everything\r\n reload();\r\n }\r\n }, Event.NODE_ADDED\r\n | Event.NODE_REMOVED\r\n | Event.PROPERTY_ADDED\r\n | Event.PROPERTY_CHANGED\r\n | Event.PROPERTY_REMOVED, \"/\" + CONFIG_PAGE + \"/\" + \"IPConfig\", true, null, null, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n }\r\n catch (RepositoryException e) {\r\n log.error(\"Unable to add event listeners for Listeners\", e); //$NON-NLS-1$\r\n }\r\n }",
"@Override\n public void run() {\n StartupCoordinator startupCoord = new StartupCoordinator();\n boolean openamReady = startupCoord.waitForOpenAMStartupCompletion();\n\n if (!openamReady) {\n cLog.log(Level.SEVERE, \"RADIUS Service Unavailable. Unable to read OpenAM handlerConfig.\");\n // things are looking bad for our hero. Nothing to do but exit the thread and give up on RADIUS features.\n this.coordinatingThread = null;\n return;\n }\n // make sure our service descriptor is loaded into openam before attempting to load that configuration\n ensureDescriptorLoaded(Constants.RADIUS_SERVICE_NAME, Constants.RADIUS_SERVICE_CFG_FILE);\n\n // kick off config loading and registration of change listener\n loader = new ConfigLoader();\n String changeMsg = null;\n\n try {\n while (true) {\n // wait until we see a handlerConfig change\n changeMsg = configChangedQueue.take();\n // wait for changes to take effect\n Thread.sleep(1000);\n // load our handlerConfig\n cLog.log(Level.INFO, changeMsg);\n RadiusServiceConfig cfg = loader.loadConfig(configChangedQueue);\n if (cfg != null) {\n cLog.log(Level.INFO, \"--- Loaded Config ---\\n\" + cfg);\n }\n\n if (cfg == null) {\n cLog.log(Level.INFO, \"Unable to load RADIUS Config. Ignoring change.\");\n // nothing to be done. lets wait for another handlerConfig event and maybe it will be loadable then\n continue;\n }\n\n if (listener == null) { // at startup or after service has been turned off\n if (cfg.isEnabled()) {\n listener = new Listener(cfg);\n } else {\n cLog.log(Level.INFO, \"RADIUS service disabled.\");\n }\n } else { // so we already have a listener running\n if (onlyClientSetChanged(cfg, currentCfg)) {\n listener.updateConfig(cfg);\n } else {\n // all other changes (port, thread pool values, enabledState) require restart of listener\n listener.terminate();\n listener = null;\n if (cfg.isEnabled()) {\n listener = new Listener(cfg);\n } else {\n cLog.log(Level.INFO, \"RADIUS service NOT enabled.\");\n }\n }\n }\n currentCfg = cfg;\n }\n } catch (InterruptedException e) {\n cLog.log(Level.INFO, Thread.currentThread().getName() + \" interrupted. Exiting.\");\n }\n // shutting down so terminate the listener and thread pools\n Listener l = listener;\n\n if (l != null) {\n l.terminate();\n }\n loader.notifyHandlerShutdownListeners();\n cLog.log(Level.INFO, Thread.currentThread().getName() + \" exited.\");\n this.coordinatingThread = null;\n }",
"public static Config config() {\n return LiveEventBusCore.get().config();\n }",
"private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }",
"public static void initialize()\n\t{\n\t\t/* Start to listen for file changes */\n\t\ttry\n\t\t{\n\t\t\t// We have to load the internal one initially to figure out where the external data directory is...\n\t\t\tURL resource = PropertyWatcher.class.getClassLoader().getResource(PROPERTIES_FILE);\n\t\t\tif (resource != null)\n\t\t\t{\n\t\t\t\tconfig = new File(resource.toURI());\n\t\t\t\tloadProperties(false);\n\n\t\t\t\t// Then check if there's another version in the external data directory\n\t\t\t\tString path = get(ServerProperty.CONFIG_PATH);\n\t\t\t\tif (!StringUtils.isEmpty(path))\n\t\t\t\t{\n\t\t\t\t\tFile potential = new File(path);\n\t\t\t\t\tif (potential.exists() && potential.isFile())\n\t\t\t\t\t{\n\t\t\t\t\t\t// Use it\n\t\t\t\t\t\tLogger.getLogger(\"\").log(Level.INFO, \"Using external config.properties: \" + potential.getAbsolutePath());\n\t\t\t\t\t\tconfig = potential;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Finally, load it properly. This is either the original file or the external file.\n\t\t\t\tloadProperties(true);\n\n\t\t\t\t// Then watch whichever file exists for changes\n\t\t\t\tFileAlterationObserver observer = new FileAlterationObserver(config.getParentFile());\n\t\t\t\tmonitor = new FileAlterationMonitor(1000L);\n\t\t\t\tobserver.addListener(new FileAlterationListenerAdaptor()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFileChange(File file)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (file.equals(config))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tloadProperties(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tmonitor.addObserver(observer);\n\t\t\t\tmonitor.start();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public interface ConfigListener {\r\n\r\n /**\r\n * 获取期权交易信息\r\n **/\r\n void success(HashMap<String , String> ininfo);\r\n\r\n /**\r\n * 获取下注记录失败的回调\r\n **/\r\n void fail(String msg);\r\n}",
"public final void loadConfig(final String configFile) {\n\t\tLoadSaveConfig lsc = new LoadSaveConfig();\n\t\tlsc.setConfigFilePath(configFile);\n\t\tlsc.load(configRootDir);\n\t\tconfig = lsc.getFemConfig();\n\t}",
"private void loadConfig() throws IOException {\n File bStatsFolder = new File(plugin.getDataFolder().getParentFile(), \"bStats\");\n File configFile = new File(bStatsFolder, \"config.yml\");\n Config config = new Config(configFile);\n \n // Check if the config file exists\n if (!config.exists(\"serverUuid\")) {\n // Add default values\n config.set(\"enabled\", true);\n // Every server gets it's unique random id.\n config.set(\"serverUuid\", UUID.randomUUID().toString());\n // Should failed request be logged?\n config.set(\"logFailedRequests\", false);\n // Should the sent data be logged?\n config.set(\"logSentData\", false);\n // Should the response text be logged?\n config.set(\"logResponseStatusText\", false);\n \n DumperOptions dumperOptions = new DumperOptions();\n dumperOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);\n writeFile(configFile,\n \"# bStats collects some data for plugin authors like how many servers are using their plugins.\",\n \"# To honor their work, you should not disable it.\",\n \"# This has nearly no effect on the server performance!\",\n \"# Check out https://bStats.org/ to learn more :)\",\n new Yaml(dumperOptions).dump(config.getRootSection()));\n }\n \n // Load the data\n enabled = config.getBoolean(\"enabled\", true);\n serverUUID = config.getString(\"serverUuid\");\n logFailedRequests = config.getBoolean(\"logFailedRequests\", false);\n logSentData = config.getBoolean(\"logSentData\", false);\n logResponseStatusText = config.getBoolean(\"logResponseStatusText\", false);\n }",
"protected void fireConfigUpdated()\r\n {\r\n List executeListeners = new ArrayList(listeners);\r\n \r\n for (int i=0; i < executeListeners.size(); i++)\r\n {\r\n IConfigurationListener listener = (IConfigurationListener) executeListeners.get(i);\r\n listener.configUpdated();\r\n }\r\n }",
"private void loadRemoteConfig()\n {\n try\n {\n if ( Config.getInstance().getProperty( GlobalIds.CONFIG_REALM ) == null )\n {\n LOG.warn( \"Config realm not enabled\" );\n return;\n }\n // Retrieve parameters from the config node stored in target LDAP DIT:\n String realmName = config.getString( GlobalIds.CONFIG_REALM, \"DEFAULT\" );\n if ( realmName != null && realmName.length() > 0 )\n {\n LOG.info( \"static init: load config realm [{}]\", realmName );\n Properties props = getRemoteConfig( realmName );\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n config.setProperty( key, val );\n }\n }\n\n //init ldap util vals since config is stored on server\n boolean ldapfilterSizeFound = ( getProperty( GlobalIds.LDAP_FILTER_SIZE_PROP ) != null );\n LdapUtil.getInstance().setLdapfilterSizeFound(ldapfilterSizeFound);\n LdapUtil.getInstance().setLdapMetaChars( loadLdapEscapeChars() );\n LdapUtil.getInstance().setLdapReplVals( loadValidLdapVals() );\n try\n {\n String lenProp = getProperty( GlobalIds.LDAP_FILTER_SIZE_PROP );\n if ( ldapfilterSizeFound )\n {\n LdapUtil.getInstance().setLdapFilterSize(Integer.valueOf( lenProp ));\n }\n }\n catch ( java.lang.NumberFormatException nfe )\n {\n String error = \"loadRemoteConfig caught NumberFormatException=\" + nfe;\n LOG.warn( error );\n }\n remoteConfigLoaded = true;\n }\n else\n {\n LOG.info( \"static init: config realm not setup\" );\n }\n }\n catch ( SecurityException se )\n {\n String error = \"static init: Error loading from remote config: SecurityException=\"\n + se;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_INITIALIZE_FAILED, error, se );\n }\n }",
"public static void processConfig() {\r\n\t\tLOG.info(\"Loading Properties from {} \", propertiesPath);\r\n\t\tLOG.info(\"Opening configuration file ({})\", propertiesPath);\r\n\t\ttry {\r\n\t\t\treadPropertiesFile();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOG.error(\r\n\t\t\t\t\t\"Monitoring system encountered an error while processing config file, Exiting\",\r\n\t\t\t\t\te);\r\n\t\t}\r\n\t}",
"EventWriterConfig getConfig();",
"private void doLoad( InputStream res )\n {\n try\n {\n String str = IOUtils.toString( res, UTF_8 );\n String md5 = DigestUtils.md5Hex( str ).toUpperCase();\n if ( md5.equals( md5Hex ) )\n {\n logger.info( \"Skip, NO_CHANGE\" );\n return;\n }\n\n ProxyConfiguration parsed = parseConfig( str );\n logger.info( \"Loaded: {}\", parsed );\n\n if ( parsed.readTimeout != null )\n {\n this.readTimeout = parsed.readTimeout;\n }\n\n if ( this.retry == null )\n {\n this.retry = parsed.retry;\n }\n else if ( parsed.retry != null )\n {\n this.retry.copyFrom( parsed.retry );\n }\n\n if ( parsed.services != null )\n {\n parsed.services.forEach( sv -> {\n overrideIfPresent( sv );\n } );\n }\n\n if ( md5Hex != null )\n {\n bus.publish( EVENT_PROXY_CONFIG_CHANGE, \"\" );\n }\n\n md5Hex = md5;\n }\n catch ( IOException e )\n {\n logger.error( \"Load failed\", e );\n }\n }",
"private static void readConfigFile() {\n\n BufferedReader input = null;\n try {\n input = new BufferedReader(new FileReader(getConfigFile()));\n String sLine = null;\n while ((sLine = input.readLine()) != null) {\n final String[] sTokens = sLine.split(\"=\");\n if (sTokens.length == 2) {\n m_Settings.put(sTokens[0], sTokens[1]);\n }\n }\n }\n catch (final FileNotFoundException e) {\n }\n catch (final IOException e) {\n }\n finally {\n try {\n if (input != null) {\n input.close();\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n\n }",
"public interface WatchedConfigurationSource {\n /**\n * Add {@link WatchedUpdateListener} listener\n * \n * @param l\n */\n public void addUpdateListener(WatchedUpdateListener l);\n\n /**\n * Remove {@link WatchedUpdateListener} listener\n * \n * @param l\n */\n public void removeUpdateListener(WatchedUpdateListener l);\n\n /**\n * Get a snapshot of the latest configuration data.<BR>\n * \n * Note: The correctness of this data is only as good as the underlying config source's view of the data.\n */\n public Map<String, Object> getCurrentData() throws Exception;\n}",
"private void fireConfigChanged()\n {\n ScmEventBus.getInstance().post(\n new RepositoryHandlerConfigChangedEvent<C>(config));\n }",
"private Set<Runnable> getConfDirListeners(final String confDir) {\n assert Thread.holdsLock(confDirectoryListeners) : \"confDirListeners lock not held by thread\";\n Set<Runnable> confDirListeners = confDirectoryListeners.get(confDir);\n if (confDirListeners == null) {\n log.debug(\"watch zkdir {}\", confDir);\n confDirListeners = new HashSet<>();\n confDirectoryListeners.put(confDir, confDirListeners);\n setConfWatcher(confDir, new WatcherImpl(confDir), null);\n }\n return confDirListeners;\n }",
"@Override\n public ConfigRepositoryConfig getConfigRepositoryConfig(){\n outObject = \"getConfigRepositoryConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (ConfigRepositoryConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (ConfigRepositoryConfig) inObject;\n }",
"public void loadSavedConfigsMap() {\n\t\tfinal File folder = new File(serializePath);\n\t\tlistFilesForFolder(folder);\n\t}",
"private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }",
"public static void loadGameConfiguration() {\n File configFile = new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME);\n manageGameConfigFile(configFile);\n }",
"public Config getConfig();",
"void addChangeListener(Consumer<ConfigurationSourceChangeEvent> changeListener);",
"private ApolloConfig loadApolloConfig() {\n if (!m_loadConfigRateLimiter.tryAcquire(5, TimeUnit.SECONDS)) {\n //wait at most 5 seconds\n try {\n TimeUnit.SECONDS.sleep(5);\n } catch (InterruptedException e) {\n }\n }\n String appId = m_configUtil.getAppId();\n String cluster = m_configUtil.getCluster();\n String dataCenter = m_configUtil.getDataCenter();\n Tracer.logEvent(\"Apollo.Client.ConfigMeta\", STRING_JOINER.join(appId, cluster, m_namespace));\n int maxRetries = m_configNeedForceRefresh.get() ? 2 : 1;\n long onErrorSleepTime = 0; // 0 means no sleep\n Throwable exception = null;\n\n List<ServiceDTO> configServices = getConfigServices();\n String url = null;\n for (int i = 0; i < maxRetries; i++) {\n List<ServiceDTO> randomConfigServices = Lists.newLinkedList(configServices);\n Collections.shuffle(randomConfigServices);\n //Access the server which notifies the client first\n if (m_longPollServiceDto.get() != null) {\n randomConfigServices.add(0, m_longPollServiceDto.getAndSet(null));\n }\n\n for (ServiceDTO configService : randomConfigServices) {\n if (onErrorSleepTime > 0) {\n logger.warn(\n \"Load config failed, will retry in {} {}. appId: {}, cluster: {}, namespaces: {}\",\n onErrorSleepTime, m_configUtil.getOnErrorRetryIntervalTimeUnit(), appId, cluster, m_namespace);\n\n try {\n m_configUtil.getOnErrorRetryIntervalTimeUnit().sleep(onErrorSleepTime);\n } catch (InterruptedException e) {\n //ignore\n }\n }\n\n url = assembleQueryConfigUrl(configService.getHomepageUrl(), appId, cluster, m_namespace,\n dataCenter, m_remoteMessages.get(), m_configCache.get());\n\n logger.debug(\"Loading config from {}\", url);\n HttpRequest request = new HttpRequest(url);\n\n\n HttpResponse<ApolloConfig> response = m_httpUtil.doGet(request, ApolloConfig.class);\n m_configNeedForceRefresh.set(false);\n m_loadConfigFailSchedulePolicy.success();\n\n\n if (response.getStatusCode() == 304) {\n logger.debug(\"Config server responds with 304 HTTP status code.\");\n return m_configCache.get();\n }\n\n ApolloConfig result = response.getBody();\n\n logger.debug(\"Loaded config for {}: {}\", m_namespace, result);\n\n return result;\n\n // if force refresh, do normal sleep, if normal config load, do exponential sleep\n// onErrorSleepTime = m_configNeedForceRefresh.get() ? m_configUtil.getOnErrorRetryInterval() :\n// m_loadConfigFailSchedulePolicy.fail();\n }\n\n }\n String message = String.format(\n \"Load Apollo Config failed - appId: %s, cluster: %s, namespace: %s, url: %s\",\n appId, cluster, m_namespace, url);\n throw new ApolloConfigException(message, exception);\n }",
"void onConfigChanged(ConfigUpdate update);",
"public void readConfigXml() throws SerializationException {\n\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n lf = pm.getLocalizationFile(lc, CONFIG_FILE_NAME);\n lf.addFileUpdatedObserver(this);\n File file = lf.getFile();\n // System.out.println(\"Reading -- \" + file.getAbsolutePath());\n if (!file.exists()) {\n System.out.println(\"WARNING [FFMP] FFMPRunConfigurationManager: \"\n + file.getAbsolutePath() + \" does not exist.\");\n return;\n }\n\n FFMPRunConfigXML configXmltmp = null;\n\n configXmltmp = jaxb.unmarshalFromXmlFile(file.getAbsolutePath());\n\n configXml = configXmltmp;\n isPopulated = true;\n applySourceConfigOverrides();\n }",
"public void load() throws Exception\n {\n String id = request.getParameter(\"config\");\n if (id != null && id.length() > 0)\n {\n List<DDVConfig> configs = this.getConfigs();\n for (DDVConfig c:configs)\n {\n if (c.getId().equals(id))\n {\n this.config = c;\n return;\n }\n }\n }\n }",
"public synchronized static void initConfig() {\n SeLionLogger.getLogger().entering();\n Map<ConfigProperty, String> initialValues = new HashMap<>();\n\n initConfig(initialValues);\n\n SeLionLogger.getLogger().exiting();\n }",
"public void cache() {\n cache.clear();\n for (String s : getConfig().getKeys(true)) {\n if (getConfig().get(s) instanceof String)\n cache.put(s, getConfig().getString(s));\n }\n }",
"public void loadStorageConfiguration() throws IOException {\n String loadedConfigurationFile;\n if (this.configFile != null) {\n loadedConfigurationFile = this.configFile;\n this.configuration = StorageConfiguration.load(new FileInputStream(new File(this.configFile)));\n } else {\n // We load configuration file either from app home folder or from the JAR\n Path path = Paths.get(appHome + \"/conf/storage-configuration.yml\");\n if (appHome != null && Files.exists(path)) {\n loadedConfigurationFile = path.toString();\n this.configuration = StorageConfiguration.load(new FileInputStream(path.toFile()));\n } else {\n loadedConfigurationFile = StorageConfiguration.class.getClassLoader().getResourceAsStream(\"storage-configuration.yml\")\n .toString();\n this.configuration = StorageConfiguration\n .load(StorageConfiguration.class.getClassLoader().getResourceAsStream(\"storage-configuration.yml\"));\n }\n }\n\n // logLevel parameter has preference in CLI over configuration file\n if (this.logLevel == null || this.logLevel.isEmpty()) {\n this.logLevel = \"info\";\n }\n configureDefaultLog(this.logLevel);\n\n // logFile parameter has preference in CLI over configuration file, we first set the logFile passed\n// if (this.logFile != null && !this.logFile.isEmpty()) {\n// this.configuration.setLogFile(logFile);\n// }\n\n // If user has set up a logFile we redirect logs to it\n// if (this.logFile != null && !this.logFile.isEmpty()) {\n// org.apache.log4j.Logger rootLogger = LogManager.getRootLogger();\n//\n// // If a log file is used then console log is removed\n// rootLogger.removeAppender(\"stderr\");\n//\n// // Creating a RollingFileAppender to output the log\n// RollingFileAppender rollingFileAppender = new RollingFileAppender(new PatternLayout(\"%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - \"\n// + \"%m%n\"), this.logFile, true);\n// rollingFileAppender.setThreshold(Level.toLevel(this.logLevel));\n// rootLogger.addAppender(rollingFileAppender);\n// }\n\n logger.debug(\"Loading configuration from '{}'\", loadedConfigurationFile);\n }",
"@Test\n public final void testConfigurationParser() {\n URL resourceUrl = this.getClass().getResource(configPath);\n File folder = new File(resourceUrl.getFile());\n for (File configFile : folder.listFiles()) {\n try {\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }\n }",
"private void readComponentConfiguration(ComponentContext context) {\n Dictionary<?, ?> properties = context.getProperties();\n\n String addressStr = Tools.get(properties, \"address\");\n address = addressStr != null ? addressStr : DEFAULT_ADDRESS;\n log.info(\"Configured. Ganglia server address is {}\", address);\n\n String metricNameStr = Tools.get(properties, \"metricNames\");\n metricNames = metricNameStr != null ? metricNameStr : DEFAULT_METRIC_NAMES;\n log.info(\"Configured. Metric name is {}\", metricNames);\n\n Integer portConfigured = Tools.getIntegerProperty(properties, \"port\");\n if (portConfigured == null) {\n port = DEFAULT_PORT;\n log.info(\"Ganglia port is not configured, default value is {}\", port);\n } else {\n port = portConfigured;\n log.info(\"Configured. Ganglia port is configured to {}\", port);\n }\n\n Integer ttlConfigured = Tools.getIntegerProperty(properties, \"ttl\");\n if (ttlConfigured == null) {\n ttl = DEFAULT_TTL;\n log.info(\"Ganglia TTL is not configured, default value is {}\", ttl);\n } else {\n ttl = ttlConfigured;\n log.info(\"Configured. Ganglia TTL is configured to {}\", ttl);\n }\n\n Boolean monitorAllEnabled = Tools.isPropertyEnabled(properties, \"monitorAll\");\n if (monitorAllEnabled == null) {\n log.info(\"Monitor all metrics is not configured, \" +\n \"using current value of {}\", monitorAll);\n } else {\n monitorAll = monitorAllEnabled;\n log.info(\"Configured. Monitor all metrics is {}\",\n monitorAll ? \"enabled\" : \"disabled\");\n }\n }",
"private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public void loadConfigProperties() {\n Properties properties = new Properties();\n InputStream inputStream = null;\n try {\n String configFile = Constant.CONFIGURATION_PROPERTIES;\n inputStream = RepositoryParser.class.getClassLoader().getResourceAsStream(configFile);\n // Loading the property file\n properties.load(inputStream);\n } catch (FileNotFoundException e) {\n Log.error(\"Property file was not found\");\n } catch (IOException e) {\n Log.error(\"The key was not found in the property file\");\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n Log.error(\"The property file was not closed\");\n }\n }\n }\n\n // Getting the corresponding value of the key in the property file\n configPropertiesMap = new HashMap<String, String>((Map) properties);\n }",
"public String readConfiguration(String path);",
"public static void loadConfig(){\n String filename = ConfigManager.getConfig().getString(LANG_FILE_KEY);\n String langFileName = Language.LANG_FOLDER_NAME + '/' + filename;\n config.setConfigFile(langFileName);\n\n File file = config.getConfigFile();\n if(file.exists()){\n config.loadConfig();\n }else{\n Logger.warn(\"Lang file \\\"\" + filename + \"\\\" doesn't exist\", false);\n Logger.warn(\"Using English language to avoid errors\", false);\n config.clearConfig();\n try{\n config.getBukkitConfig().load(plugin.getResource(Language.EN.getLangFileName()));\n }catch(Exception ex){\n Logger.err(\"An error occurred while loading English language:\", false);\n Logger.err(ex, false);\n }\n }\n//</editor-fold>\n }",
"AuditYamlConfig loadConfig() throws ConfigurationException\n {\n if (hasCustomConfigPath())\n {\n return loadConfigAtCustomPath();\n }\n else if (hasConfigAtDefaultPath())\n {\n return loadConfigAtDefaultPath();\n }\n else\n {\n return AuditYamlConfig.createWithoutFile();\n }\n }",
"public void loadConfig(){\n \t\tFile configDir = this.getDataFolder();\n \t\tif (!configDir.exists())\n \t\t\tconfigDir.mkdir();\n \n \t\t// Check for existance of config file\n \t\tFile configFile = new File(this.getDataFolder().toString() + \"/config.yml\");\n \t\tconfig = YamlConfiguration.loadConfiguration(configFile);\n \t\t\n \t\t// Adding Variables\n \t\tif(!config.contains(\"Debug\"))\n \t\t{\n \t\t\tconfig.addDefault(\"Debug\", false);\n \t \n \t config.addDefault(\"Worlds\", \"ExampleWorld1, ExampleWorld2\");\n \t\n\t config.addDefault(\"Regions.Residence\", \"ExampleWorld.ExampleResRegion1, ExampleWorld.ExampleResRegion2\");\n \t \n\t config.addDefault(\"Regions.WorldGuard\", \"ExampleWorld.ExampleWGRegion1, ExampleWorld.ExampleWGRegion2\"); \n \t\t}\n \n // Loading the variables from config\n \tdebug = (Boolean) config.get(\"Debug\");\n \tpchestWorlds = (String) config.get(\"Worlds\");\n \tpchestResRegions = (String) config.get(\"Regions.Residence\");\n \tpchestWGRegions = (String) config.get(\"Regions.WorldGuard\");\n \n if(pchestWorlds != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Chests Worlds: \" + pchestWorlds);\n }\n \n if(pchestResRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Residence Regions: \" + pchestResRegions);\n }\n \n if(pchestWGRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All World Guard Regions: \" + pchestWGRegions);\n }\n \n config.options().copyDefaults(true);\n try {\n config.save(configFile);\n } catch (IOException ex) {\n Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, \"Could not save config to \" + configFile, ex);\n }\n }",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"ConfigBlock getConfig();",
"@Before\n\tpublic void loadQueueSettings(){\n\t\textendedBeans = new ClassPathXmlApplicationContext(\"applicationContext-messaging-incoming.xml.optional\");\n\t\tIncomingCommandsListener listener = (IncomingCommandsListener) extendedBeans.getBean(\"incomingCommandsListener\");\n\t\tlog.info(listener);\n\t}",
"public ReadConfig() \n\t{\n\t\tFile scr = new File(\"./Configuration/config.properties\"); //property file\n\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(scr); // READ the DATA (read mode)\n\t\t\tpro = new Properties(); // pro object\n\t\t\tpro.load(fis); // Load method -load at the \n\n\t\t} catch (final Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Except is \" + e.getMessage());\n\t\t} \n\t}",
"private static void loadConfig(String configFile) throws Exception {\n\t\t// System.out.println(\"Loading configuration from file \" + configFile);\n\t\tProperties props = new Properties();\n\t\tFileInputStream fis = new FileInputStream(configFile);\n\t\tprops.load(fis);\n\t\tfis.close();\n\n\t\tfor (String key : props.stringPropertyNames()) {\n\t\t\tif (key.startsWith(\"engine.\")) {\n\t\t\t\tif (key.startsWith(\"engine.jmxport.\")) {\n\t\t\t\t\tString port = props.getProperty(key, \"\").trim();\n\t\t\t\t\tif (port.length() > 0) {\n\t\t\t\t\t\tString host = props.getProperty(key.replaceFirst(\"jmxport\", \"jmxhost\"), \"localhost\").trim();\n\t\t\t\t\t\tString user = props.getProperty(key.replaceFirst(\"jmxport\", \"username\"), \"\").trim();\n\t\t\t\t\t\tString passwd = props.getProperty(key.replaceFirst(\"jmxport\", \"password\"), \"\").trim();\n\t\t\t\t\t\tString name = props.getProperty(key.replaceFirst(\"jmxport\", \"name\"), \"BE\").trim();\n\t\t\t\t\t\tif (user.length() == 0 || passwd.length() == 0) {\n\t\t\t\t\t\t\t// do not use authentication if user or password is\n\t\t\t\t\t\t\t// blank\n\t\t\t\t\t\t\tuser = null;\n\t\t\t\t\t\t\tpasswd = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString jmxKey = host + \":\" + port;\n\t\t\t\t\t\tif (!clientMap.containsKey(jmxKey)) {\n\t\t\t\t\t\t\t// connect to JMX and initialize it for stat\n\t\t\t\t\t\t\t// collection\n\t\t\t\t\t\t\t// System.out.println(String.format(\"Connect to\n\t\t\t\t\t\t\t// engine %s at %s:%s\", name, host, port));\n\t\t\t\t\t\t\tClient c = new Client(name, host, Integer.parseInt(port), user, passwd);\n\t\t\t\t\t\t\tclientMap.put(jmxKey, c);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (key.startsWith(\"report.\")) {\n\t\t\t\tString type = props.getProperty(key, \"\").trim();\n\t\t\t\tif (type.length() > 0) {\n\t\t\t\t\tif (!statTypes.containsKey(type)) {\n\t\t\t\t\t\t// default no special includes, i.e., report all\n\t\t\t\t\t\t// entities\n\t\t\t\t\t\tstatTypes.put(type, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"Add report type \" + type);\n\t\t\t} else if (key.startsWith(\"include.\")) {\n\t\t\t\t// add included entity pattern to specified stat type\n\t\t\t\tString[] tokens = key.split(\"\\\\.\");\n\t\t\t\tSet<String> includes = statTypes.get(tokens[1]);\n\t\t\t\tif (null == includes) {\n\t\t\t\t\tincludes = new HashSet<String>();\n\t\t\t\t\tstatTypes.put(tokens[1], includes);\n\t\t\t\t}\n\t\t\t\tString pattern = props.getProperty(key, \"\").trim();\n\t\t\t\tif (pattern.length() > 0) {\n\t\t\t\t\tincludes.add(pattern);\n\t\t\t\t}\n\t\t\t\t// System.out.println(String.format(\"Report %s includes entity\n\t\t\t\t// pattern %s\", tokens[1], pattern));\n\t\t\t} else if (key.equals(\"interval\")) {\n\t\t\t\tinterval = Integer.parseInt(props.getProperty(key, \"30\").trim());\n\t\t\t\t// System.out.println(\"Write stats every \" + interval + \"\n\t\t\t\t// seconds\");\n\t\t\t} else if (key.equals(\"ignoreInternalEntity\")) {\n\t\t\t\tignoreInternalEntity = Boolean.parseBoolean(props.getProperty(key, \"false\").trim());\n\t\t\t\tif (ignoreInternalEntity) {\n\t\t\t\t\t// System.out.println(\"Ignore stats of BE internal\n\t\t\t\t\t// entities\");\n\t\t\t\t}\n\t\t\t} else if (key.equals(\"reportFolder\")) {\n\t\t\t\treportFolder = props.getProperty(key, \"\").trim();\n\t\t\t\tif (0 == reportFolder.length()) {\n\t\t\t\t\treportFolder = null;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Statistics report is in folder \" + reportFolder);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"ignore config property \" + key);\n\t\t\t}\n\t\t}\n\t}",
"public interface NodeConfigMonitor {\n void readNodeConfigFromDB();\n}",
"public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}",
"public void reload() {\n try {\n this.configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static Config loadConfig(String name) {\n\n\t\tString path;\n\t\tif (name == null) {\n\t\t\tpath = \"application.json\";\n\t\t} else {\n\t\t\tpath = \"src/\"+extensionsPackage+\"/\" + name + \"/config.json\";\n\t\t}\n\n\t\tGson gson = new Gson();\n\t\tConfig config = null;\n\n\t\ttry {\n\t\t\tconfig = gson.fromJson(new FileReader(path), Config.class);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn config;\n\t}",
"public Configs getConfig() {\n boolean[] $jacocoInit = $jacocoInit();\n int defaultPerLineCount = Type.FOLLOW_STORE.getDefaultPerLineCount();\n Type type = Type.FOLLOW_STORE;\n $jacocoInit[1] = true;\n Configs configs = new Configs(this, defaultPerLineCount, type.isFixedPerLineCount());\n $jacocoInit[2] = true;\n return configs;\n }",
"public interface ConfigChangeSubscriber {\n String getInitValue(String key);\n void subscribe(String key);\n List<String> listKeys();\n}",
"public static void loadConfig() throws Exception {\n unloadConfig();\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(new File(\"test_files/stresstest/\" + CONFIG_FILE).getAbsolutePath());\n }",
"public Object getConfig() {\n return config;\n }",
"Config(InfoHandler info){\n \n this.info = info;\n \n config_list = new ArrayList<>();\n \n File test = new File(config_path);\n \n if(test.exists()){ //plik istnieje\n \n info.mode=1; //wlaczenie trybu dla obslugi pliku konfiguracyjnego\n \n \n //tutaj pobieranie informacji z pliku konfiguracyjnego\n //do ciała funkcji\n \n config_file = new DictReader(config_path,info);\n \n //tutaj dodajemy funkcjonalnosci\n \n config_list.add(config_file.szukaj(\"%imie\"));\n config_list.add(config_file.szukaj(\"%dict_path\"));\n \n config = get_config();\n \n info.mode=0;\n \n is_alive = true;\n }\n else{\n config = new ArrayList<>();\n config_file = new DictReader(config_path,info);\n first_start = 1;\n }\n }",
"public Config getConfig() {\n return config;\n }",
"public static Config getConfig() {\r\n\t\treturn cfg;\r\n\t}",
"public KernelConfig getConfig()\n {\n Kernel.checkAccess();\n return config;\n }",
"public void loadSharedConfigurationFromDir(File configDir) throws IOException {\n if (!configDir.exists()) {\n throw new IOException(\"ConfigDir does not exist: \" + configDir.toPath());\n }\n lockSharedConfiguration();\n try {\n File[] groupNames = configDir.listFiles((FileFilter) DirectoryFileFilter.INSTANCE);\n boolean needToCopyJars =\n !configDir.getAbsolutePath().equals(configDirPath.toAbsolutePath().toString());\n\n logger.info(\"loading the cluster configuration: \");\n Map<String, Configuration> sharedConfiguration = new HashMap<>();\n for (File groupName : groupNames) {\n Configuration configuration = readConfiguration(groupName);\n logger.info(configuration.getConfigName() + \" xml content: \" + System.lineSeparator()\n + configuration.getCacheXmlContent());\n logger.info(configuration.getConfigName() + \" properties: \"\n + configuration.getGemfireProperties().size());\n logger.info(configuration.getConfigName() + \" jars: \"\n + Strings.join(configuration.getJarNames(), \", \"));\n sharedConfiguration.put(groupName.getName(), configuration);\n if (needToCopyJars && !configuration.getJarNames().isEmpty()) {\n Path groupDirPath = createConfigDirIfNecessary(configuration.getConfigName()).toPath();\n for (String jarName : configuration.getJarNames()) {\n Files.copy(groupName.toPath().resolve(jarName), groupDirPath.resolve(jarName));\n }\n }\n }\n Region<String, Configuration> clusterRegion = getConfigurationRegion();\n clusterRegion.clear();\n\n String memberId = cache.getMyId().getId();\n clusterRegion.putAll(sharedConfiguration, memberId);\n\n // Overwrite the security settings using the locator's properties, ignoring whatever\n // in the import\n persistSecuritySettings(clusterRegion);\n } finally {\n unlockSharedConfiguration();\n }\n }",
"public ConfigCommon getConfig() {\n return config;\n }",
"public static void acceptConfig() {\r\n\t\t//Here, it tries to read over the config file using try-catch in case of Exception\r\n\t\ttry {\r\n\t\t\tProperties properties = new Properties();\r\n\t\t\tFileInputStream fis = new FileInputStream(new File(\"config.properties\"));\r\n\t\t\tproperties.load(fis);\r\n\t\t\tString storage = properties.getProperty(\"storage\");\r\n\t\t\tif(storage == null) \r\n\t\t\t\tthrow new IllegalArgumentException(\"Property 'storage' not found\");\r\n\t\t\tif(storage.equals(\"tree\"))\r\n\t\t\t\tdata = new BinarySearchTree();\r\n\t\t\tif(storage.equals(\"trie\"))\r\n\t\t\t\tdata = new Trie();\r\n\t\t\tif(data == null) \r\n\t\t\t\tthrow new IllegalArgumentException(\"Not valid storage configuration.\");\r\n\t\t}\r\n\t\t//If an Exception occurs, it just prints a message\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Configuration file not found.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error reading the configuration file.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}",
"Map<String, Object> readConfig(VirtualHost vhost, String id);",
"public void loadConfigurationFromDisk() {\r\n try {\r\n FileReader fr = new FileReader(CONFIG_FILE);\r\n BufferedReader rd = new BufferedReader(fr);\r\n\r\n String line;\r\n while ((line = rd.readLine()) != null) {\r\n if (line.startsWith(\"#\")) continue;\r\n if (line.equalsIgnoreCase(\"\")) continue;\r\n\r\n StringTokenizer str = new StringTokenizer(line, \"=\");\r\n if (str.countTokens() > 1) {\r\n String aux;\r\n switch (str.nextToken().trim()) {\r\n case \"system.voidchain.protocol_version\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.protocolVersion = aux;\r\n continue;\r\n case \"system.voidchain.transaction.max_size\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.transactionMaxSize = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.block.num_transaction\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.numTransactionsInBlock = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.storage.data_file_extension\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.dataFileExtension = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.walletFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.data_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.dataDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.blockFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.walletFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.memory.block_megabytes\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.memoryUsedForBlocks = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.sync.block_sync_port\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockSyncPort = Integer.parseInt(aux);\r\n }\r\n continue;\r\n case \"system.voidchain.crypto.ec_param\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.ecParam = aux;\r\n continue;\r\n case \"system.voidchain.core.block_proposal_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockProposalTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n case \"system.voidchain.blockchain.chain_valid_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockchainValidTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n fr.close();\r\n rd.close();\r\n\r\n if (this.firstRun)\r\n this.firstRun = false;\r\n } catch (IOException e) {\r\n logger.error(\"Could not load configuration\", e);\r\n }\r\n }",
"public void readProperties(ReadListener listener) {\n creatPropertyReferenceList();\n try {\n RequestUtils.readProperties(DeviceService.localDevice, bacnetDevice, propertyReferences, true, listener);\n } catch (BACnetException bac) {\n LOG.warn(\"Can't read properties of \" + getObjectIdentifier());\n }\n }",
"public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}",
"public LocalServerConfig getConfig() {\n return serverConfig;\n }",
"public void loadConfigs() {\n\t configYML = new ConfigYML();\n\t configYML.setup();\n }",
"public interface Config {\n\t/**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tstring value.\n */\n String getString(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tString value.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tint value.\n */\n int getInt(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tint value.\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Return with string in contents of config file.\n *\n * @return\n * \tContents of config file.\n */\n String getContents();\n\n /**\n * Return with Configuration object in contents of config file.\n *\n * @return\n * \tContents of Configuration object.\n */\n Configuration getConfiguration();\n\n List<Object> getList(String key);\n}",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n \tsuper.onConfigurationChanged(newConfig);\n \t\n \tLog.e(\"LIFECYCLE = \", this.getClass().toString() + \".onConfigurationChanged\");\n \treturn;\n }",
"public static void loadConfig() throws IOException {\n\t\t// initialize hash map\n\t\tserverOptions = new HashMap<>();\n\t\t// Get config from file system\n\t\tClass<ConfigurationHandler> configurationHandler = ConfigurationHandler.class;\n\t\tInputStream inputStream = configurationHandler.getResourceAsStream(\"/Config/app.properties\");\n\t\tInputStreamReader isReader = new InputStreamReader(inputStream);\n\t //Creating a BufferedReader object\n\t BufferedReader reader = new BufferedReader(isReader);\n\t String str;\n\t while((str = reader.readLine())!= null){\n\t \t if (str.contains(\"=\")) {\n\t \t\t String[] config = str.split(\" = \", 2);\n\t \t serverOptions.put(config[0], config[1]);\n\t \t }\n\t }\n\t}",
"@PostConstruct\n\tpublic void init() {\n\t\tif (!Files.isDirectory(Paths.get(configFilePath))) {\n\t\t\ttry {\n\t\t\t\tFiles.createDirectory(Paths.get(configFilePath));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\"can't create the folder for the configuration\", e);\n\t\t\t}\n\t\t}\n\t\t// schedule the watch service in repeating loop to look for modification\n\t\t// at the jambel configuration files\n\t\tconfigFilesWatchServiceExecutor.scheduleAtFixedRate(\n\t\t\t\tnew ConfigPathWatchService(configFilePath), 0L, 1L,\n\t\t\t\tTimeUnit.MILLISECONDS);\n\t}",
"public static Config getConfig(){\n return _Config;\n }",
"private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }",
"@Override\n public void configurationChanged(Map<String, ConfiguredVariableItem> changed) {\n LOG.debug(\"External configuration changes are received '{}'\", changed);\n // updating heart-beat-delay parameter\n updateParameter(changed, HB_DELAY_FULL_NAME, i -> setHeartbeatDelay(i.get(Integer.class)));\n config.putAll(changed);\n }",
"private static void manageGameConfigFile(File configFile) {\n Gson gson = new Gson();\n try {\n GameConfig.setInstance(gson.fromJson(new FileReader(configFile), GameConfig.class));\n } catch (FileNotFoundException e) {\n LogUtils.error(\"FileNotFoundException => \", e);\n }\n }",
"public static void ReadConfig() throws IOException\r\n {\r\n ReadConfiguration read= new ReadConfiguration(\"settings/FabulousIngest.properties\");\r\n \t \r\n fedoraStub =read.getvalue(\"fedoraStub\");\r\n \t username = read.getvalue(\"fedoraUsername\");\r\n \t password =read.getvalue(\"fedoraPassword\");\r\n \t pidNamespace =read.getvalue(\"pidNamespace\");\r\n \t contentAltID=read.getvalue(\"contentAltID\");\r\n \t \r\n \t \r\n \t ingestFolderActive =read.getvalue(\"ingestFolderActive\");\r\n \t ingestFolderInActive =read.getvalue(\"ingestFolderInActive\");\r\n \t\r\n logFileNameInitial=read.getvalue(\"logFileNameInitial\");\r\n \r\n DataStreamID=read.getvalue(\"DataStreamID\");\r\n \t DataStreamLabel=read.getvalue(\"DataStreamLabel\");\r\n \r\n \r\n \r\n }",
"private void loadDefaultConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n } else {\r\n LOG.error(\"Can't load default Scope config from: \" + DEFAULT_CONFIG_NAME);\r\n }\r\n }",
"@Override\n\tpublic void loadExtraConfigs(Configuration config)\n\t{\n\n\t}",
"public void setConfig(IndividualCacheLoaderConfig base)\n {\n if (base instanceof TcpDelegatingCacheLoaderConfig)\n {\n this.config = (TcpDelegatingCacheLoaderConfig) base;\n }\n else\n {\n config = new TcpDelegatingCacheLoaderConfig(base);\n }\n }",
"public void reload() {\n FileConfiguration config = plugin.getConfig();\n\n // Set up answers\n answers = new HashMap<>();\n if(config.contains(\"answers\")) {\n Map<String, Object> answersConfig = config.getConfigurationSection(\"answers\").getValues(true);\n for (Map.Entry<String, Object> entry : answersConfig.entrySet()) {\n if(entry.getValue() instanceof String) {\n answers.put(entry.getKey(), (String) entry.getValue());\n } else {\n logger.info(\"Invalid value for answer ID \" + entry.getKey());\n }\n }\n } else {\n logger.info(\"The config does not have answers! Not even for your existence!\");\n }\n\n // Set up questions\n questions = new HashMap<>();\n if(config.contains(\"questions\")) {\n Map<String, Object> questionsConfig = config.getConfigurationSection(\"questions\").getValues(true);\n for (Map.Entry<String, Object> entry : questionsConfig.entrySet()) {\n String answerID = \"\";\n if(entry.getValue() instanceof Integer) {\n answerID = entry.getValue().toString();\n } else if(entry.getValue() instanceof String) {\n answerID = (String) entry.getValue();\n } else if(answerID.isEmpty()) {\n logger.info(\"Invalid value for question regex \" + entry.getKey());\n continue;\n }\n\n if(questions.containsKey(entry.getKey()) && !answers.containsKey(answerID)) {\n logger.warning(\"Answer ID \" + entry.getValue() + \" not found\");\n } else {\n questions.put(entry.getKey(), answerID);\n }\n }\n\n logger.info(\"Registered \" + questions.size() + \" questions\");\n } else {\n logger.info(\"The config does not have questions!\");\n }\n\n commands = new HashMap<>();\n if(config.contains(\"listen-commands\")) {\n Map<String, Object> cmdsConfig = config.getConfigurationSection(\"listen-commands\").getValues(false);\n for (Map.Entry<String, Object> entry : cmdsConfig.entrySet()) {\n String cmdName = entry.getKey().toLowerCase();\n if(commands.containsKey(cmdName)) continue;\n\n CommandConfig newCmd = new CommandConfig(cmdName);\n ConfigurationSection ms = config.getConfigurationSection(\"listen-commands\").getConfigurationSection(cmdName);\n if(ms == null) continue;\n\n if(ms.contains(\"cancel\")) newCmd.cancel = ms.getBoolean(\"cancel\");\n if(ms.contains(\"tell-staff\")) newCmd.tellStaff = ms.getBoolean(\"tell-staff\");\n if(ms.contains(\"args-offset\")) newCmd.offset = ms.getInt(\"args-offset\");\n commands.put(cmdName, newCmd);\n logger.info(\"Listening to command '\" + cmdName + \"'\");\n }\n }\n }",
"@Override\n\tpublic boolean hasConfigChanged() {\n\t\treturn false;\n\t}",
"@Override\n public void run()\n {\n final String actionDescription = \"Register configuration listener\";\n\n boolean listenerRegistered = false;\n\n while (keepTrying)\n {\n /*\n * First register a listener for the group's configuration.\n */\n while ((! listenerRegistered) && (keepTrying))\n {\n try\n {\n IntegrationGroupConfigurationClient configurationClient = new IntegrationGroupConfigurationClient(accessServiceServerName,\n accessServiceRootURL);\n eventClient.registerListener(localServerUserId,\n new GovernanceEngineOutTopicListener(groupName,\n groupHandler,\n configurationClient,\n localServerUserId,\n auditLog));\n listenerRegistered = true;\n\n auditLog.logMessage(actionDescription,\n IntegrationDaemonServicesAuditCode.CONFIGURATION_LISTENER_REGISTERED.getMessageDefinition(localServerName,\n accessServiceServerName));\n }\n catch (UserNotAuthorizedException error)\n {\n auditLog.logException(actionDescription,\n IntegrationDaemonServicesAuditCode.SERVER_NOT_AUTHORIZED.getMessageDefinition(localServerName,\n accessServiceServerName,\n accessServiceRootURL,\n localServerUserId,\n error.getReportedErrorMessage()),\n error);\n waitToRetry();\n }\n catch (Exception error)\n {\n auditLog.logException(actionDescription,\n IntegrationDaemonServicesAuditCode.NO_CONFIGURATION_LISTENER.getMessageDefinition(localServerName,\n accessServiceServerName,\n error.getClass().getName(),\n error.getMessage()),\n error);\n\n waitToRetry();\n }\n }\n\n while (keepTrying)\n {\n /*\n * Request the configuration for the governance group. If it fails just log the error but let the\n * integration daemon server continue to start. It is probably a temporary outage with the metadata server\n * which can be resolved later.\n */\n try\n {\n groupHandler.refreshConfig();\n }\n catch (Exception error)\n {\n auditLog.logException(actionDescription,\n IntegrationDaemonServicesAuditCode.INTEGRATION_GROUP_NO_CONFIG.getMessageDefinition(groupHandler.getIntegrationGroupName(),\n error.getClass().getName(),\n error.getMessage()),\n error.toString(),\n error);\n }\n\n waitToRetry();\n }\n\n waitToRetry();\n }\n }",
"public String addListener(ServiceListener listener) {\n return (orgConfigImpl.addListener(listener));\n }",
"@Override\n public RefConfig getRefConfig(){\n outObject = \"getRefConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (RefConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (RefConfig) inObject;\n }",
"public void notifyConfigChange() {\n }",
"public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }",
"public ConfigManager getConfigManager ()\n {\n return cfgmgr;\n }",
"protected Config getConfig () {\n return this.conf;\n }"
] |
[
"0.60903096",
"0.5985098",
"0.58911544",
"0.58204746",
"0.5777559",
"0.57749975",
"0.5648328",
"0.56114227",
"0.55775744",
"0.55724293",
"0.5565359",
"0.55298257",
"0.55042905",
"0.55030096",
"0.54898036",
"0.54653233",
"0.545627",
"0.5396869",
"0.53715366",
"0.5338612",
"0.53334177",
"0.5330303",
"0.5318307",
"0.5306126",
"0.53008485",
"0.5290236",
"0.52872103",
"0.52839637",
"0.526595",
"0.5262812",
"0.52457523",
"0.5240822",
"0.52268195",
"0.52163666",
"0.5212314",
"0.5189498",
"0.51839876",
"0.5179047",
"0.5179028",
"0.51774496",
"0.51517504",
"0.51410687",
"0.51055855",
"0.51051074",
"0.5095407",
"0.5093999",
"0.507818",
"0.5064715",
"0.50550467",
"0.5050079",
"0.5049509",
"0.504697",
"0.5042328",
"0.5039862",
"0.5039508",
"0.5038596",
"0.50364405",
"0.5020585",
"0.5014968",
"0.50068885",
"0.49942514",
"0.49908665",
"0.49761182",
"0.49724406",
"0.49720418",
"0.4965554",
"0.49618703",
"0.4955331",
"0.49487233",
"0.49452162",
"0.49374014",
"0.49323425",
"0.49295",
"0.49273512",
"0.4923917",
"0.4909479",
"0.48897544",
"0.4880563",
"0.48766643",
"0.48710147",
"0.48681584",
"0.4864568",
"0.4862069",
"0.48576894",
"0.48575744",
"0.4854663",
"0.4854383",
"0.48496503",
"0.48392153",
"0.48372883",
"0.4836007",
"0.48347986",
"0.48311692",
"0.48306227",
"0.48221955",
"0.4819345",
"0.4813811",
"0.4810873",
"0.48099136",
"0.48086146"
] |
0.7265359
|
0
|
Register an event listener: reload cache configuration when something changes.
|
private static void registerEventListener() {
log.info("Registering event listener for Listeners"); //$NON-NLS-1$
try {
ObservationManager observationManager = ContentRepository
.getHierarchyManager(ContentRepository.CONFIG)
.getWorkspace()
.getObservationManager();
observationManager.addEventListener(new EventListener() {
public void onEvent(EventIterator iterator) {
// reload everything
reload();
}
}, Event.NODE_ADDED
| Event.NODE_REMOVED
| Event.PROPERTY_ADDED
| Event.PROPERTY_CHANGED
| Event.PROPERTY_REMOVED, "/" + CONFIG_PAGE + "/" + "IPConfig", true, null, null, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
catch (RepositoryException e) {
log.error("Unable to add event listeners for Listeners", e); //$NON-NLS-1$
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onEnable(AutoReloadEvent event) {\n }",
"@EventListener(ContextRefreshedEvent.class)\n public void contextRefreshEvent() {\n\n MapConfigurationRegistrySingleton.getSingleton()\n .merge(mapConfigurationRegistry);\n }",
"void addChangeListener(Consumer<ConfigurationSourceChangeEvent> changeListener);",
"void addListener( ConfigurationListener listener );",
"private void fireConfigChanged()\n {\n ScmEventBus.getInstance().post(\n new RepositoryHandlerConfigChangedEvent<C>(config));\n }",
"protected void notifyListeners(CacheEvent e) {\n synchronized (listeners) {\n for (int i=0; i<listeners.size(); i++) {\n CacheListener l = (CacheListener) listeners.elementAt(i);\n l.cacheUpdated(e);\n }\n }\n }",
"void onConfigChanged(ConfigUpdate update);",
"void addChangeListener( RegistryListener listener );",
"public void notifyConfigChange() {\n }",
"@SubscribeEvent\r\n\t\tpublic static void onConfigChanged(final ConfigChangedEvent.OnConfigChangedEvent event) {\r\n\t\t\tif (event.getModID().equals(Reference.MOD_ID)) {\r\n\t\t\t\tConfigManager.sync(Reference.MOD_ID, Config.Type.INSTANCE);\r\n\t\t\t}\r\n\t\t}",
"protected void fireConfigUpdated()\r\n {\r\n List executeListeners = new ArrayList(listeners);\r\n \r\n for (int i=0; i < executeListeners.size(); i++)\r\n {\r\n IConfigurationListener listener = (IConfigurationListener) executeListeners.get(i);\r\n listener.configUpdated();\r\n }\r\n }",
"public void cache() {\n cache.clear();\n for (String s : getConfig().getKeys(true)) {\n if (getConfig().get(s) instanceof String)\n cache.put(s, getConfig().getString(s));\n }\n }",
"void configurationChanged(WMSLayerConfigChangeEvent event);",
"@Override\n protected void registerCustomListeners(@NotNull MessageBusConnection connection) {\n connection.subscribe(EncodingManagerListener.ENCODING_MANAGER_CHANGES, (document, propertyName, oldValue, newValue) -> {\n if (propertyName.equals(EncodingManagerImpl.PROP_CACHED_ENCODING_CHANGED)) {\n updateForDocument(document);\n }\n });\n\n connection.subscribe(VirtualFileManager.VFS_CHANGES, new BulkVirtualFileListenerAdapter(new VirtualFileListener() {\n @Override\n public void propertyChanged(@NotNull VirtualFilePropertyEvent event) {\n if (VirtualFile.PROP_ENCODING.equals(event.getPropertyName())) {\n updateForFile(event.getFile());\n }\n }\n }));\n }",
"public abstract void addListener(RegistryChangeListener listener);",
"public static interface CacheListener<T> {\n\n /**\n * An entry has outlived its \"time-to-live.\n * \n * @param key entry key of element being removed\n */\n void expiredElement(T key);\n\n\n /**\n * An entry has been removed to make room for additional elements\n * \n * @param key entry key of element being removed\n */\n void evictedElement(T key);\n }",
"public void notifyCacheAdded(String cacheName) {\n // no-op\n }",
"void addRefreshListener(RefreshListener listener) throws RemoteException;",
"@Override\n\tpublic void onConfigurationUpdate() {\n\t}",
"@SubscribeEvent(priority=EventPriority.NORMAL, receiveCanceled=true)\n\tpublic void onConfigChange(OnConfigChangedEvent event)\n\t{\n\t\tif(event.getModID().equals(Reference.MOD_ID))\n\t\t{\n\t\t\tConfig.config.save();\n\t\t\tConfig.configSync();\n\t\t\t\n\t\t\t//Only run the following code if a world is running and if running on a client; this should make it so the sync only runs when accessing the \"mod options...\" button from the pause menu\n\t\t\tif(event.isWorldRunning() && LizzyAnvil.proxy.isClient())\n\t\t\t{\n\t\t\t\tConfig.sendConfigSyncRequest(); //send an empty packet to the server that initiates the config sync (only initiates if it is a dedicated server)\n\t\t\t}\n\t\t}\n\t}",
"public AdminEventBuilder refreshRealmEventsConfig() {\n return this.updateStore().addListeners();\n }",
"private void registerListener(){\n game.addPropertyChangeListener(PROPERTY_GAME, evt -> {\r\n refresh();\r\n });\r\n }",
"public void addListener(CachePolicyListener listener) {\n if (listener == null) {\n throw new IllegalArgumentException(\"Cannot add null listener.\");\n }\n if ( ! listeners.contains(listener)) {\n listeners.addElement(listener);\n }\n }",
"void configurationUpdated();",
"private void registerToEventBusForUpdates(final EventBus eb) {\n eb\n .<JsonObject>consumer(Constants.CACHE_REDIS_EVENTBUS_ADDRESS)\n .handler(message -> {\n LOGGER.fine(\"I have received a message: \" + message.body());\n LOGGER.fine(\"Message type: \" + message.body().getClass().getName());\n writeDataToCache(message);\n });\n }",
"public interface ConfigurationListener {\n void onConfigurationChanged(WeatherSetting pref, Object newValue);\n}",
"public void addUpdateListener(StoreUpdateListener listener);",
"public static void CacheChanged(Cache cache, Waypoint waypoint) {\n\t\tsynchronized (list) {\n\t\t\tfor (SelectedCacheChangedEventListner event : list) {\n\t\t\t\tif (event == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tevent.SelectedCacheChangedEvent(selectedCache, selectedWaypoint, true, false);\n\t\t\t}\n\t\t}\n\n\t}",
"public ASListener(){\n \t\treload();\n \t}",
"@SubscribeEvent\n\tpublic void registryReload(@Nonnull final RegistryDataEvent.Reload event) {\n\t\tif (event.reg instanceof EffectRegistry)\n\t\t\tclearHandlers();\n\t}",
"@Override\n public void registerConnectionChangeListener(ConnectionChangeListener listener) {\n connectionListeners.add(listener);\n executor.execute(() -> listener.connectionChange(this, isConnected()));\n }",
"private static void cacheContent(Collection listeners) {\r\n\r\n Iterator ipList = listeners.iterator();\r\n while (ipList.hasNext()) {\r\n Content c = (Content) ipList.next();\r\n try {\r\n Map types = new Hashtable();\r\n Listener.cachedContent.put(c.getNodeData(\"IP\").getString(), types); //$NON-NLS-1$\r\n Iterator it = c.getContent(\"Access\").getChildren().iterator(); //$NON-NLS-1$\r\n while (it.hasNext()) {\r\n Content type = (Content) it.next();\r\n types.put(type.getNodeData(\"Method\").getString().toLowerCase(), StringUtils.EMPTY); //$NON-NLS-1$\r\n }\r\n }\r\n catch (RepositoryException re) {\r\n log.error(\"RepositoryException caught while loading listener configuration: \" + re.getMessage(), re); //$NON-NLS-1$\r\n }\r\n }\r\n }",
"void registerUpdateListener(IUpdateListener listener);",
"interface ConfigWatcher {\n\n /**\n * Called when receiving an update on virtual host configurations.\n */\n void onConfigChanged(ConfigUpdate update);\n\n void onError(Status error);\n }",
"public void reload() {\n reloadConfig();\n loadConfiguration();\n }",
"public void addChangeListener(ChangeListener<BufferedImage> listener) {\n observer.add(listener);\n }",
"@Override\n public void addChangeListener(ChangeListener listener, Event[] events) {\n boolean addEvent[] = selectEventsToModify(events);\n if (addEvent[Event.LOAD.ordinal()]) {\n loadListeners.addChangeListener(listener);\n }\n if (addEvent[Event.STORE.ordinal()]) {\n storeListeners.addChangeListener(listener);\n }\n if (addEvent[Event.REMOVE.ordinal()]) {\n removeListeners.addChangeListener(listener);\n }\n }",
"public interface ConfigChangeSubscriber {\n String getInitValue(String key);\n void subscribe(String key);\n List<String> listKeys();\n}",
"public abstract void handleConfigurationChanged(Configuration config);",
"@Override\n public CacheEventListener createCacheEventListener(Properties properties)\n {\n return new YhxiaCacheEventListener();\n }",
"private void registerShutdownHook(Cache cache) {\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n CacheUtils.close(cache);\n running.set(false);\n }));\n }",
"public void changed() {\n // from ChangeHandler\n configSave.enable();\n }",
"void addChangeListener(ChangeListener listener);",
"public void enable() {\n for (int i = 0; i < listeners.size(); i++) {\n CacheManagerListener listener = (CacheManagerListener) \n listeners.get(i);\n listener.cacheManagerEnabled();\n }\n }",
"void addListener(IEventChannelListener<K, V> listener);",
"void addPropertyChangedObserver(PropertyChangeObserver observer);",
"private void pageCacheChanged() {\n // Ok to have a race here, see the field javadoc.\n if (!pageCacheChanged)\n pageCacheChanged = true;\n }",
"@Override\n protected synchronized void subscribeActual(Observer<? super Response<T>> observer) {\n Call<T> call = originalCall.clone();\n\n try {\n for (Annotation annotation : annotations) {\n if (annotation instanceof Cache) {\n time = ((Cache) annotation).time();\n bindParams = ((Cache) annotation).bindParams();\n break;\n }\n }\n MethodFactoryAdapter adapter = new MethodFactoryAdapter(call.request(), bindParams);\n MethodFactory factory = adapter.get();\n HashMap<String, String> parseParameters = factory.parseParameters();\n String url = call.request().url().toString();\n boolean isFirst = true;\n StringBuffer buffer = new StringBuffer();\n for (HashMap.Entry<String, String> entry : parseParameters.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n if (isFirst) {\n buffer.append(\"?\").append(key).append(\"=\").append(value);\n isFirst = false;\n } else {\n buffer.append(\"&\").append(key).append(\"=\").append(value);\n }\n }\n String cacheUrl = url + buffer.toString();\n long nowTime = System.currentTimeMillis();\n fileName = cacheUrl + \"&\" + nowTime;\n\n cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE);\n String responseCacheData = DiskLruCacheHelper.readCacheToString(cache, cacheUrl);\n int indexOfTime = responseCacheData.indexOf(\"\\n\");\n String[] times = responseCacheData.substring(0, indexOfTime).split(\":\");\n responseCacheData = responseCacheData.substring(indexOfTime + 1);\n long diskCacheTime = Long.parseLong(times[1]);\n if (!TextUtils.isEmpty(responseCacheData) && diskCacheTime != -1 && nowTime - time <= diskCacheTime) {\n E e = new Gson().fromJson(responseCacheData, E.class);\n Response<T> cacheResponse = (Response<T>) Response.success(e);\n observer.onNext(cacheResponse);\n } else {\n cache.delete();\n cache = null;\n\n }\n } catch (Exception e) {\n if (cache != null && !cache.isClosed()) {\n try {\n cache.delete();\n } catch (IOException e1) {\n\n }\n call = null;\n }\n }\n\n\n CallDisposable disposable = new CallDisposable(call);\n observer.onSubscribe(disposable);\n\n boolean terminated = false;\n try {\n Response<T> response = call.execute();\n E e = (E) response.body();\n String responseData = new Gson().toJson(e);\n if (cache == null) {\n cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE);\n }\n DiskLruCacheHelper.writeStringToCache(cache, responseData, fileName);\n if (!disposable.isDisposed()) {\n observer.onNext(response);\n }\n if (!disposable.isDisposed()) {\n terminated = true;\n observer.onComplete();\n }\n } catch (Throwable t) {\n Exceptions.throwIfFatal(t);\n if (terminated) {\n RxJavaPlugins.onError(t);\n } else if (!disposable.isDisposed()) {\n try {\n observer.onError(t);\n } catch (Throwable inner) {\n Exceptions.throwIfFatal(inner);\n RxJavaPlugins.onError(new CompositeException(t, inner));\n }\n }\n }\n }",
"@Override\r\n\tpublic void addListener(INotifyChangedListener notifyChangedListener) {\r\n\t\tchangeNotifier.addListener(notifyChangedListener);\r\n\t}",
"public void registerListener(SettingChangeListener<T> listener) {\n\t\tif (this.listeners == null) {\n\t\t\tthis.listeners = new ArrayList<>();\n\t\t}\n\t\tthis.listeners.add(listener);\n\t}",
"public interface ConfigListener {\r\n\r\n /**\r\n * 获取期权交易信息\r\n **/\r\n void success(HashMap<String , String> ininfo);\r\n\r\n /**\r\n * 获取下注记录失败的回调\r\n **/\r\n void fail(String msg);\r\n}",
"public abstract void addPropertyChangeListener(PropertyChangeListener listener, String kenaiHostUrl);",
"public interface OAObjectCacheListener<T extends OAObject> {\n \n /**\n * Called when there is a change to an object.\n */\n public void afterPropertyChange(T obj, String propertyName, Object oldValue, Object newValue);\n\n /** \n * called when a new object is added to OAObjectCache, during the object construction. \n */\n public void afterAdd(T obj);\n \n public void afterAdd(Hub<T> hub, T obj);\n \n public void afterRemove(Hub<T> hub, T obj);\n \n public void afterLoad(T obj);\n \n}",
"public void addListener(EventListener listener);",
"public interface CacheConfigService {\n Cache init();\n\n void close();\n}",
"public static void load() {\r\n\r\n log.info(\"Config : loading Listener info\"); //$NON-NLS-1$\r\n\r\n Collection children = Collections.EMPTY_LIST;\r\n\r\n try {\r\n\r\n Content startPage = ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getContent(CONFIG_PAGE);\r\n Content configNode = startPage.getContent(\"IPConfig\");\r\n children = configNode.getChildren(ItemType.CONTENTNODE); //$NON-NLS-1$\r\n }\r\n catch (RepositoryException re) {\r\n log.error(\"Config : Failed to load Listener info\"); //$NON-NLS-1$\r\n log.error(re.getMessage(), re);\r\n }\r\n\r\n Listener.cachedContent.clear();\r\n Listener.cacheContent(children);\r\n log.info(\"Config : Listener info loaded\"); //$NON-NLS-1$\r\n }",
"@Override\n\tpublic void addListener(INotifyChangedListener notifyChangedListener) {\n\t\tchangeNotifier.addListener(notifyChangedListener);\n\t}",
"@Override\n\tpublic void addListener(INotifyChangedListener notifyChangedListener) {\n\t\tchangeNotifier.addListener(notifyChangedListener);\n\t}",
"@Override\r\n \tpublic void onModelConfigFromCache(OpenGLModelConfiguration model) {\n \t\tboolean hasNewer = getCurrentTarget().getLatestModelVersion() > \r\n \t\t\t\t\t\t model.getOpenGLModel().getModelVersion();\r\n \t\tthis.fireOnModelDataEvent(model, hasNewer);\r\n \t}",
"@Override\n public void onApplicationEvent(ApplicationEvent event) {\n if (event instanceof ContextLoadedEvent) {\n //JD: look up GeoServer and register now rather than use constructor injection\n // to avoid circular dependency during service loading startup\n geoServer = GeoServerExtensions.bean(GeoServer.class, \n ((ContextLoadedEvent) event).getApplicationContext());\n listener = new ConfigurationListenerAdapter() {\n @Override\n public void handleServiceChange(ServiceInfo service, List<String> propertyNames, \n List<Object> oldValues, List<Object> newValues) {\n if (service instanceof WPSInfo) {\n resetProcessMappings();\n }\n }\n };\n geoServer.addListener(listener);\n }\n if (event instanceof ContextRefreshedEvent) {\n Processors.addProcessFactory(this);\n } else if (event instanceof ContextClosedEvent) {\n Processors.removeProcessFactory(this);\n }\n }",
"public interface SettingsListener {\n void changed();\n}",
"public void addUpdateListener(Consumer<List<S>> listener) {\n updateListeners.add(listener);\n }",
"@Override\n public void configurationChanged(Map<String, ConfiguredVariableItem> changed) {\n LOG.debug(\"External configuration changes are received '{}'\", changed);\n // updating heart-beat-delay parameter\n updateParameter(changed, HB_DELAY_FULL_NAME, i -> setHeartbeatDelay(i.get(Integer.class)));\n config.putAll(changed);\n }",
"@Override\n public void addChangeListener(ChangeListener l) {}",
"void subscribeToEvents(Listener listener);",
"@Override\n\tpublic void onApplicationEvent(ApplicationReadyEvent event) \n\t{\n\n\t\tHystrixCommandProperties.Setter().withExecutionTimeoutInMilliseconds(20000);\n\t\tConfigurationManager.getConfigInstance().setProperty(\"execution.isolation.thread.timeoutInMilliseconds\", \"20000\");\n\n\t\tSystem.out.println(\"1 value>>>>>>>>>>>>>>>>>>>>>>>>>>>> \");\n\t\t/*\t\tAbstractConfiguration manager = ConfigurationManager.getConfigInstance();\n\t\tfor (String key : event.getKeys())\n\t\t{\n\t\t\tfor (ConfigurationListener listener : manager.getConfigurationListeners()) \n\t\t\t{\n\t\t\t\tObject source = event.getSource();\n\t\t\t\t// TODO: Handle add vs set vs delete?\n\t\t\t\tint type = AbstractConfiguration.EVENT_SET_PROPERTY;\n\t\t\t\tString value = env.getProperty(key);\n\n\t\t\t\tSystem.out.println(\"value>>>>>>>>>>>>>>>>>>>>>>>>>>>> \"+value);\n\n\t\t\t\tboolean beforeUpdate = false;\n\t\t\t\tlistener.configurationChanged(new ConfigurationEvent(source, type, key, value, beforeUpdate));\n\t\t\t}\n\t\t}*/\n\t}",
"@Override\n public void onConfigurationChanged(Configuration newConfig) {\n \tsuper.onConfigurationChanged(newConfig);\n \t\n \tLog.e(\"LIFECYCLE = \", this.getClass().toString() + \".onConfigurationChanged\");\n \treturn;\n }",
"protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }",
"@Override\n public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName) {\n BasicComponentRegistry gcr = cr.getGlobalComponentRegistry().getComponent(BasicComponentRegistry.class);\n\n if (PROTOBUF_METADATA_CACHE_NAME.equals(cacheName)) {\n BasicComponentRegistry bcr = cr.getComponent(BasicComponentRegistry.class);\n ProtobufMetadataManagerInterceptor protobufInterceptor = new ProtobufMetadataManagerInterceptor();\n bcr.registerComponent(ProtobufMetadataManagerInterceptor.class, protobufInterceptor, true);\n bcr.addDynamicDependency(AsyncInterceptorChain.class.getName(), ProtobufMetadataManagerInterceptor.class.getName());\n bcr.getComponent(AsyncInterceptorChain.class).wired()\n .addInterceptorAfter(protobufInterceptor, EntryWrappingInterceptor.class);\n }\n\n InternalCacheRegistry icr = gcr.getComponent(InternalCacheRegistry.class).running();\n if (!icr.isInternalCache(cacheName)) {\n ProtobufMetadataManagerImpl protobufMetadataManager =\n (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running();\n protobufMetadataManager.addCacheDependency(cacheName);\n\n SerializationContext serCtx = protobufMetadataManager.getSerializationContext();\n RemoteQueryManager remoteQueryManager = buildQueryManager(cfg, serCtx, cr);\n cr.registerComponent(remoteQueryManager, RemoteQueryManager.class);\n }\n }",
"public void refresh() {\n List<ConfigPath> configPaths = getConfigFiles();\n\n // Delete configs from cache which don't exist on disk anymore\n Iterator<String> currentEntriesIt = confs.keySet().iterator();\n while (currentEntriesIt.hasNext()) {\n String path = currentEntriesIt.next();\n boolean found = false;\n for (ConfigPath configPath : configPaths) {\n if (configPath.path.equals(path)) {\n found = true;\n break;\n }\n }\n if (!found) {\n currentEntriesIt.remove();\n if (log.isDebugEnabled()) {\n log.debug(\"Configuration: detected removed config \" + path + \" in \" + location);\n }\n }\n }\n\n // Add/update configs\n for (ConfigPath configPath : configPaths) {\n CachedConfig cachedConfig = confs.get(configPath.path);\n if (cachedConfig == null || cachedConfig.lastModified != configPath.file.lastModified()) {\n if (log.isDebugEnabled()) {\n log.debug(\"Configuration: detected updated or added config \" + configPath.path + \" in \" + location);\n }\n long lastModified = configPath.file.lastModified();\n ConfImpl conf = parseConfiguration(configPath.file);\n cachedConfig = new CachedConfig();\n cachedConfig.lastModified = lastModified;\n cachedConfig.conf = conf;\n cachedConfig.state = conf == null ? ConfigState.ERROR : ConfigState.OK;\n confs.put(configPath.path, cachedConfig);\n }\n }\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"void addChangeListener(ChangeListener cl);",
"@Override\n public void onCacheAvailable(File cacheFile, String url, int percentsAvailable) {\n }",
"@Override\r\n\tpublic void addJobEventListener(JobEventListener eventListener) {\n\r\n\t}",
"void addListener(RosZeroconfListener listener);",
"void registerListeners();",
"@Override\r\n public void onConfigurationChanged(Configuration config) {\r\n Log.d(LOGTAG, \"onConfigurationChanged\");\r\n super.onConfigurationChanged(config);\r\n\r\n vuforiaAppSession.onConfigurationChanged();\r\n }",
"public void addListener(ModifiedEventListener listener) {\n\t\tlisteners.add(listener);\n\t}",
"@Override\r\n\tpublic void notifyJarConfig(JarConfig config) {\n\t\tif (config == null)\r\n\t\t\treturn;\r\n\t\t// cache.add(ObjectHelper.CLASSKEY, ObjectHelper.CLASSVALUE, config);\r\n\t}",
"static void updateConfig(FileConfiguration config)\n\t{\n\t\tProfessionListener.config = config;\n\t}",
"public void addChangeListener(ChangeListener listener) { _changeListeners.add(listener); }",
"@Override\n public void addChangeListener(ChangeListener l) {\n }",
"@Override\n public void addChangeListener(ChangeListener l) {\n }",
"public void registryChange() {\n registryEvent(1);\n }",
"protected void initModifiedListeners()\n\t{\n\t\tif (path != null)\n\t\t{\n\t\t\tpath.addModifiedListener(this);\n\t\t}\n\t}",
"public void addChangeListener(ChangeListener l) {\n }",
"public void addChangeListener(ChangeListener l) {\n }",
"public interface StepCandidateCacheListener {\r\n void cacheLoaded(MethodCache<StepCandidate> cache);\r\n}",
"@Override\n\tpublic void addStateListener(MemcachedClientStateListener arg0) {\n\n\t}",
"@Override\n\tpublic void onEvent(CacheEvent<? extends Object, ? extends Object> cacheEvent) {\n\t\tSystem.out.println(\"cacheEvent.getKey()= \" + cacheEvent.getKey()+\"cacheEvent.getOldValue()=\" +cacheEvent.getOldValue() + \"cacheEvent.getNewValue()=\" + cacheEvent.getNewValue());\n\t}",
"EventChannel refresh();",
"public void addInvalidationListener(Runnable listener)\n {\n myInvalidationChangeSupport.addListener(listener);\n }",
"public void addChangeListener(ChangeListener stackEngineListener);",
"@Override\n public void notifyChange(Path path) {\n if (path.toString().equals(JOSSO_GATEWAY_CONFIGURATION.getName())) {\n configureAccessTokens();\n log.debug(\"AuthService reloaded configuration on change to \"+JOSSO_GATEWAY_CONFIGURATION);\n } else if (path.toString().equals(FOUNDATION_CONFIGURATION.getName())) {\n configure();\n log.debug(\"AuthService reloaded configuration on change to \"+FOUNDATION_CONFIGURATION);\n }\n }",
"public interface ReloadableServicesManager extends ServicesManager {\n\n /**\n * Inform the ServicesManager to reload its list of services if its cached\n * them. Note that this is a suggestion and that ServicesManagers are free\n * to reload whenever they want.\n */\n void reload();\n\n}",
"@Override\r\n\tpublic void registerObserver(Observer observer) {\n\t\t\r\n\t}",
"public synchronized void addConnectionEventListener(ConnectionEventListener connectioneventlistener) {\n/* 130 */ if (this.connectionEventListeners != null) {\n/* 131 */ this.connectionEventListeners.put(connectioneventlistener, connectioneventlistener);\n/* */ }\n/* */ }",
"public abstract void registerListeners();",
"@Scheduled(fixedRate = 30 * 60 * 1000)\n public void clearStaleCache(){\n\n }"
] |
[
"0.6240319",
"0.6169908",
"0.6160754",
"0.6042286",
"0.5922371",
"0.5861004",
"0.5793402",
"0.5734315",
"0.5700436",
"0.56857574",
"0.5646081",
"0.5638458",
"0.55740875",
"0.55637926",
"0.5507482",
"0.5498567",
"0.5475532",
"0.5466416",
"0.5466069",
"0.54508114",
"0.54462004",
"0.54386204",
"0.5437",
"0.5435054",
"0.54130507",
"0.539749",
"0.5393469",
"0.5384129",
"0.5364959",
"0.5360895",
"0.52619797",
"0.5236881",
"0.5229678",
"0.518881",
"0.51787317",
"0.516751",
"0.5160112",
"0.5150529",
"0.5131618",
"0.511583",
"0.5113359",
"0.5113074",
"0.51093817",
"0.5102847",
"0.5101857",
"0.509058",
"0.50831443",
"0.5050785",
"0.5039461",
"0.50382966",
"0.5035804",
"0.50337017",
"0.5029468",
"0.5028133",
"0.50271386",
"0.5025103",
"0.50237006",
"0.50237006",
"0.49989778",
"0.49988505",
"0.4982292",
"0.49813733",
"0.49770427",
"0.49730915",
"0.49730402",
"0.49728864",
"0.49699312",
"0.49681318",
"0.4958041",
"0.49493572",
"0.49470907",
"0.49470907",
"0.49397704",
"0.49393332",
"0.49379736",
"0.4933225",
"0.493026",
"0.49273986",
"0.49258998",
"0.49199",
"0.4913993",
"0.49099323",
"0.4908144",
"0.4908144",
"0.49060315",
"0.48929283",
"0.48848128",
"0.48848128",
"0.48790446",
"0.48762003",
"0.48760164",
"0.48735034",
"0.48651454",
"0.48466536",
"0.4845735",
"0.48419058",
"0.48256996",
"0.48201588",
"0.48180234",
"0.48173758"
] |
0.6763143
|
0
|
Cache listener content from the config repository.
|
private static void cacheContent(Collection listeners) {
Iterator ipList = listeners.iterator();
while (ipList.hasNext()) {
Content c = (Content) ipList.next();
try {
Map types = new Hashtable();
Listener.cachedContent.put(c.getNodeData("IP").getString(), types); //$NON-NLS-1$
Iterator it = c.getContent("Access").getChildren().iterator(); //$NON-NLS-1$
while (it.hasNext()) {
Content type = (Content) it.next();
types.put(type.getNodeData("Method").getString().toLowerCase(), StringUtils.EMPTY); //$NON-NLS-1$
}
}
catch (RepositoryException re) {
log.error("RepositoryException caught while loading listener configuration: " + re.getMessage(), re); //$NON-NLS-1$
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void load() {\r\n\r\n log.info(\"Config : loading Listener info\"); //$NON-NLS-1$\r\n\r\n Collection children = Collections.EMPTY_LIST;\r\n\r\n try {\r\n\r\n Content startPage = ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getContent(CONFIG_PAGE);\r\n Content configNode = startPage.getContent(\"IPConfig\");\r\n children = configNode.getChildren(ItemType.CONTENTNODE); //$NON-NLS-1$\r\n }\r\n catch (RepositoryException re) {\r\n log.error(\"Config : Failed to load Listener info\"); //$NON-NLS-1$\r\n log.error(re.getMessage(), re);\r\n }\r\n\r\n Listener.cachedContent.clear();\r\n Listener.cacheContent(children);\r\n log.info(\"Config : Listener info loaded\"); //$NON-NLS-1$\r\n }",
"public void cache() {\n cache.clear();\n for (String s : getConfig().getKeys(true)) {\n if (getConfig().get(s) instanceof String)\n cache.put(s, getConfig().getString(s));\n }\n }",
"@Bean\n public DownloadCache cache() {\n DownloadCache result = new DownloadCache(TEST_CACHE_DIR);\n result.clear();\n return result;\n }",
"public void refresh() {\n List<ConfigPath> configPaths = getConfigFiles();\n\n // Delete configs from cache which don't exist on disk anymore\n Iterator<String> currentEntriesIt = confs.keySet().iterator();\n while (currentEntriesIt.hasNext()) {\n String path = currentEntriesIt.next();\n boolean found = false;\n for (ConfigPath configPath : configPaths) {\n if (configPath.path.equals(path)) {\n found = true;\n break;\n }\n }\n if (!found) {\n currentEntriesIt.remove();\n if (log.isDebugEnabled()) {\n log.debug(\"Configuration: detected removed config \" + path + \" in \" + location);\n }\n }\n }\n\n // Add/update configs\n for (ConfigPath configPath : configPaths) {\n CachedConfig cachedConfig = confs.get(configPath.path);\n if (cachedConfig == null || cachedConfig.lastModified != configPath.file.lastModified()) {\n if (log.isDebugEnabled()) {\n log.debug(\"Configuration: detected updated or added config \" + configPath.path + \" in \" + location);\n }\n long lastModified = configPath.file.lastModified();\n ConfImpl conf = parseConfiguration(configPath.file);\n cachedConfig = new CachedConfig();\n cachedConfig.lastModified = lastModified;\n cachedConfig.conf = conf;\n cachedConfig.state = conf == null ? ConfigState.ERROR : ConfigState.OK;\n confs.put(configPath.path, cachedConfig);\n }\n }\n }",
"public interface WatchedConfigurationSource {\n /**\n * Add {@link WatchedUpdateListener} listener\n * \n * @param l\n */\n public void addUpdateListener(WatchedUpdateListener l);\n\n /**\n * Remove {@link WatchedUpdateListener} listener\n * \n * @param l\n */\n public void removeUpdateListener(WatchedUpdateListener l);\n\n /**\n * Get a snapshot of the latest configuration data.<BR>\n * \n * Note: The correctness of this data is only as good as the underlying config source's view of the data.\n */\n public Map<String, Object> getCurrentData() throws Exception;\n}",
"@Override\n public void cacheResult(BrokerMessageListener brokerMessageListener) {\n EntityCacheUtil.putResult(BrokerMessageListenerModelImpl.ENTITY_CACHE_ENABLED,\n BrokerMessageListenerImpl.class,\n brokerMessageListener.getPrimaryKey(), brokerMessageListener);\n\n FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_NAME,\n new Object[] {\n brokerMessageListener.getCompanyId(),\n brokerMessageListener.getName()\n }, brokerMessageListener);\n\n brokerMessageListener.resetOriginalValues();\n }",
"static public void readRepository(){\n File cache_file = getCacheFile();\n if (cache_file.exists()) {\n try {\n // Read the cache acutally\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(cache_file);\n NodeList images_nodes = document.getElementsByTagName(\"image\");\n for (int i = 0; i < images_nodes.getLength(); i++) {\n Node item = images_nodes.item(i);\n String image_path = item.getTextContent();\n File image_file = new File(image_path);\n if (image_file.exists()){\n AppImage image = Resources.loadAppImage(image_path);\n images.add(image);\n }\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }",
"private static void registerEventListener() {\r\n\r\n log.info(\"Registering event listener for Listeners\"); //$NON-NLS-1$\r\n\r\n try {\r\n ObservationManager observationManager = ContentRepository\r\n .getHierarchyManager(ContentRepository.CONFIG)\r\n .getWorkspace()\r\n .getObservationManager();\r\n\r\n observationManager.addEventListener(new EventListener() {\r\n\r\n public void onEvent(EventIterator iterator) {\r\n // reload everything\r\n reload();\r\n }\r\n }, Event.NODE_ADDED\r\n | Event.NODE_REMOVED\r\n | Event.PROPERTY_ADDED\r\n | Event.PROPERTY_CHANGED\r\n | Event.PROPERTY_REMOVED, \"/\" + CONFIG_PAGE + \"/\" + \"IPConfig\", true, null, null, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n }\r\n catch (RepositoryException e) {\r\n log.error(\"Unable to add event listeners for Listeners\", e); //$NON-NLS-1$\r\n }\r\n }",
"public CachedConfig get(String path) {\n return confs.get(path);\n }",
"public interface CacheConfigService {\n Cache init();\n\n void close();\n}",
"public CacheStrategy getCacheStrategy();",
"@Override\n public void cacheResult(List<BrokerMessageListener> brokerMessageListeners) {\n for (BrokerMessageListener brokerMessageListener : brokerMessageListeners) {\n if (EntityCacheUtil.getResult(\n BrokerMessageListenerModelImpl.ENTITY_CACHE_ENABLED,\n BrokerMessageListenerImpl.class,\n brokerMessageListener.getPrimaryKey()) == null) {\n cacheResult(brokerMessageListener);\n } else {\n brokerMessageListener.resetOriginalValues();\n }\n }\n }",
"private void fireConfigChanged()\n {\n ScmEventBus.getInstance().post(\n new RepositoryHandlerConfigChangedEvent<C>(config));\n }",
"private Cache configureCache(MemoryStoreEvictionPolicy evictionPolicy) {\n\t\tCacheConfiguration cacheConfiguration = new CacheConfiguration(\n\t\t\t\t\"evictionCache\", 2);\n\t\t// set FIFO eviction policy\n\t\tcacheConfiguration\n\t\t\t\t.setMemoryStoreEvictionPolicyFromObject(evictionPolicy);\n\t\t// set time to idle time\n\t\tcacheConfiguration.setTimeToIdleSeconds(300);\n\t\t// set time to live time\n\t\tcacheConfiguration.setTimeToLiveSeconds(600);\n\n\t\tCacheManager cacheManager = CacheManager.create();\n\t\t// create a new cache\n\t\tCache memoryCache = new Cache(cacheConfiguration);\n\t\tcacheManager.addCache(memoryCache);\n\t\tCache evictionCache = cacheManager.getCache(\"evictionCache\");\n\t\tevictionCache.removeAll();\n\t\treturn evictionCache;\n\t}",
"public interface ConfigChangeSubscriber {\n String getInitValue(String key);\n void subscribe(String key);\n List<String> listKeys();\n}",
"@Override\n public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName) {\n BasicComponentRegistry gcr = cr.getGlobalComponentRegistry().getComponent(BasicComponentRegistry.class);\n\n if (PROTOBUF_METADATA_CACHE_NAME.equals(cacheName)) {\n BasicComponentRegistry bcr = cr.getComponent(BasicComponentRegistry.class);\n ProtobufMetadataManagerInterceptor protobufInterceptor = new ProtobufMetadataManagerInterceptor();\n bcr.registerComponent(ProtobufMetadataManagerInterceptor.class, protobufInterceptor, true);\n bcr.addDynamicDependency(AsyncInterceptorChain.class.getName(), ProtobufMetadataManagerInterceptor.class.getName());\n bcr.getComponent(AsyncInterceptorChain.class).wired()\n .addInterceptorAfter(protobufInterceptor, EntryWrappingInterceptor.class);\n }\n\n InternalCacheRegistry icr = gcr.getComponent(InternalCacheRegistry.class).running();\n if (!icr.isInternalCache(cacheName)) {\n ProtobufMetadataManagerImpl protobufMetadataManager =\n (ProtobufMetadataManagerImpl) gcr.getComponent(ProtobufMetadataManager.class).running();\n protobufMetadataManager.addCacheDependency(cacheName);\n\n SerializationContext serCtx = protobufMetadataManager.getSerializationContext();\n RemoteQueryManager remoteQueryManager = buildQueryManager(cfg, serCtx, cr);\n cr.registerComponent(remoteQueryManager, RemoteQueryManager.class);\n }\n }",
"interface ConfigWatcher {\n\n /**\n * Called when receiving an update on virtual host configurations.\n */\n void onConfigChanged(ConfigUpdate update);\n\n void onError(Status error);\n }",
"void addListener( ConfigurationListener listener );",
"public Map<String, String> getCache() {\n return cache;\n }",
"public interface ConfigListener {\r\n\r\n /**\r\n * 获取期权交易信息\r\n **/\r\n void success(HashMap<String , String> ininfo);\r\n\r\n /**\r\n * 获取下注记录失败的回调\r\n **/\r\n void fail(String msg);\r\n}",
"private Set<Runnable> getConfDirListeners(final String confDir) {\n assert Thread.holdsLock(confDirectoryListeners) : \"confDirListeners lock not held by thread\";\n Set<Runnable> confDirListeners = confDirectoryListeners.get(confDir);\n if (confDirListeners == null) {\n log.debug(\"watch zkdir {}\", confDir);\n confDirListeners = new HashSet<>();\n confDirectoryListeners.put(confDir, confDirListeners);\n setConfWatcher(confDir, new WatcherImpl(confDir), null);\n }\n return confDirListeners;\n }",
"public void loadCache() {\n if (!directory.exists()) {\n directory.mkdirs();\n }\n File[] files = this.directory.listFiles();\n if (files == null) {\n return;\n }\n for (File file : files) {\n if (file.getName().endsWith(\".json\")) {\n cache.put(file.getName().split(\".json\")[0], new JsonDocument(file));\n }\n }\n }",
"static void updateConfig(FileConfiguration config)\n\t{\n\t\tProfessionListener.config = config;\n\t}",
"public static CatalogStructure getCache() {\n return CACHE.get();\n }",
"public JsonArray getCache() {\n return cache;\n }",
"public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }",
"protected void cacheLoadThroughSubjects()\n {\n }",
"private void doLoad( InputStream res )\n {\n try\n {\n String str = IOUtils.toString( res, UTF_8 );\n String md5 = DigestUtils.md5Hex( str ).toUpperCase();\n if ( md5.equals( md5Hex ) )\n {\n logger.info( \"Skip, NO_CHANGE\" );\n return;\n }\n\n ProxyConfiguration parsed = parseConfig( str );\n logger.info( \"Loaded: {}\", parsed );\n\n if ( parsed.readTimeout != null )\n {\n this.readTimeout = parsed.readTimeout;\n }\n\n if ( this.retry == null )\n {\n this.retry = parsed.retry;\n }\n else if ( parsed.retry != null )\n {\n this.retry.copyFrom( parsed.retry );\n }\n\n if ( parsed.services != null )\n {\n parsed.services.forEach( sv -> {\n overrideIfPresent( sv );\n } );\n }\n\n if ( md5Hex != null )\n {\n bus.publish( EVENT_PROXY_CONFIG_CHANGE, \"\" );\n }\n\n md5Hex = md5;\n }\n catch ( IOException e )\n {\n logger.error( \"Load failed\", e );\n }\n }",
"@Autowired\n public CacheConfiguration(@Value(\"${lineserver.cache.lines.size}\") int cacheMaxSize) {\n this.cacheMaxSize = cacheMaxSize;\n }",
"public void cacheBusRouteData()\n\t{\t\n\t\tdataMap = BusRouteDataFileReader.readAndCacheBusRouteData(this.pathname);\n\t}",
"@Override\n protected synchronized void subscribeActual(Observer<? super Response<T>> observer) {\n Call<T> call = originalCall.clone();\n\n try {\n for (Annotation annotation : annotations) {\n if (annotation instanceof Cache) {\n time = ((Cache) annotation).time();\n bindParams = ((Cache) annotation).bindParams();\n break;\n }\n }\n MethodFactoryAdapter adapter = new MethodFactoryAdapter(call.request(), bindParams);\n MethodFactory factory = adapter.get();\n HashMap<String, String> parseParameters = factory.parseParameters();\n String url = call.request().url().toString();\n boolean isFirst = true;\n StringBuffer buffer = new StringBuffer();\n for (HashMap.Entry<String, String> entry : parseParameters.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n if (isFirst) {\n buffer.append(\"?\").append(key).append(\"=\").append(value);\n isFirst = false;\n } else {\n buffer.append(\"&\").append(key).append(\"=\").append(value);\n }\n }\n String cacheUrl = url + buffer.toString();\n long nowTime = System.currentTimeMillis();\n fileName = cacheUrl + \"&\" + nowTime;\n\n cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE);\n String responseCacheData = DiskLruCacheHelper.readCacheToString(cache, cacheUrl);\n int indexOfTime = responseCacheData.indexOf(\"\\n\");\n String[] times = responseCacheData.substring(0, indexOfTime).split(\":\");\n responseCacheData = responseCacheData.substring(indexOfTime + 1);\n long diskCacheTime = Long.parseLong(times[1]);\n if (!TextUtils.isEmpty(responseCacheData) && diskCacheTime != -1 && nowTime - time <= diskCacheTime) {\n E e = new Gson().fromJson(responseCacheData, E.class);\n Response<T> cacheResponse = (Response<T>) Response.success(e);\n observer.onNext(cacheResponse);\n } else {\n cache.delete();\n cache = null;\n\n }\n } catch (Exception e) {\n if (cache != null && !cache.isClosed()) {\n try {\n cache.delete();\n } catch (IOException e1) {\n\n }\n call = null;\n }\n }\n\n\n CallDisposable disposable = new CallDisposable(call);\n observer.onSubscribe(disposable);\n\n boolean terminated = false;\n try {\n Response<T> response = call.execute();\n E e = (E) response.body();\n String responseData = new Gson().toJson(e);\n if (cache == null) {\n cache = DiskLruCacheHelper.createCache(APP.app, URL_CACHE);\n }\n DiskLruCacheHelper.writeStringToCache(cache, responseData, fileName);\n if (!disposable.isDisposed()) {\n observer.onNext(response);\n }\n if (!disposable.isDisposed()) {\n terminated = true;\n observer.onComplete();\n }\n } catch (Throwable t) {\n Exceptions.throwIfFatal(t);\n if (terminated) {\n RxJavaPlugins.onError(t);\n } else if (!disposable.isDisposed()) {\n try {\n observer.onError(t);\n } catch (Throwable inner) {\n Exceptions.throwIfFatal(inner);\n RxJavaPlugins.onError(new CompositeException(t, inner));\n }\n }\n }\n }",
"public interface ConfigService {\n\n /**\n * Retrieve instance with application configuration.\n * Instance is cached and updated when new config is stored.\n *\n * @return may return {@code null} if there is no config yet.\n */\n AppConfig retrieveApplicationConfig();\n\n /**\n * Store config - only config will be overrode and lost.\n * Also update cached config.\n *\n * @param appConfig to store\n */\n void storeApplicationConfig(AppConfig appConfig);\n}",
"private Cache<String, String> getCache() {\n if (protobufSchemaCache == null) {\n throw new IllegalStateException(\"Not started yet\");\n }\n return protobufSchemaCache;\n }",
"void onConfigChanged(ConfigUpdate update);",
"private static void updateTargetConfigCache(String targetCfgPath) throws IOException {\n File targetCfgFile = new File(targetCfgPath);\n List<String> lines = Files.readAllLines(targetCfgFile.toPath());\n\n cachedTargetConfigContents.clear();\n\n for(String line : lines) {\n line = line.trim();\n\n // Ignore empty lines and comments, which are lines that start with '#'.\n if(!line.isEmpty() && '#' != line.charAt(0)) {\n cachedTargetConfigContents.add(line);\n }\n }\n }",
"public ConfigurableCacheFactory getCacheFactory();",
"private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }",
"public interface PermissionService {\n\n @Caching()\n public SysPermission findByUrl(String url);\n\n}",
"void addChangeListener(Consumer<ConfigurationSourceChangeEvent> changeListener);",
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }",
"@Override\r\n\tpublic void notifyJarConfig(JarConfig config) {\n\t\tif (config == null)\r\n\t\t\treturn;\r\n\t\t// cache.add(ObjectHelper.CLASSKEY, ObjectHelper.CLASSVALUE, config);\r\n\t}",
"@Override\n @Path(\"{name}\")\n public CacheResource getCacheResource(@PathParam(\"name\") String sName)\n {\n ResourceConfig configResource = m_config.getResources().get(sName);\n if (configResource == null)\n {\n // register pass-through resource for the specified cache name\n configResource = new ResourceConfig();\n configResource.setCacheName(sName);\n configResource.setKeyClass(String.class);\n configResource.setValueClass(StaticContent.class);\n configResource.setQueryConfig(new QueryConfig().setDirectQuery(new DirectQuery(Integer.MAX_VALUE)));\n configResource.setMaxResults(Integer.MAX_VALUE);\n\n m_config.getResources().put(sName, configResource);\n Logger.info(\"Configured pass-through resource for cache: \" + sName);\n }\n\n return instantiateCacheResourceInternal(configResource);\n }",
"public void loadConfig() {\n\t}",
"public interface NodeConfigMonitor {\n void readNodeConfigFromDB();\n}",
"public void loadSavedConfigsMap() {\n\t\tfinal File folder = new File(serializePath);\n\t\tlistFilesForFolder(folder);\n\t}",
"public void enable() {\n for (int i = 0; i < listeners.size(); i++) {\n CacheManagerListener listener = (CacheManagerListener) \n listeners.get(i);\n listener.cacheManagerEnabled();\n }\n }",
"protected abstract Collection<Cache> loadCaches();",
"@Bean\n\tpublic CacheManager cacheManager() {\n \tCaffeineCacheManager cacheManager = new CaffeineCacheManager();\n \tcacheManager.setCacheSpecification(\"maximumSize=500,expireAfterWrite=60m\");\n \treturn cacheManager;\n\t}",
"protected void fireConfigUpdated()\r\n {\r\n List executeListeners = new ArrayList(listeners);\r\n \r\n for (int i=0; i < executeListeners.size(); i++)\r\n {\r\n IConfigurationListener listener = (IConfigurationListener) executeListeners.get(i);\r\n listener.configUpdated();\r\n }\r\n }",
"public void notifyConfigChange() {\n }",
"Observable<Config> observable();",
"private static void configureCaches(ImagePipelineConfig.Builder configBuilder, Context context) {\r\n final MemoryCacheParams bitmapCacheParams = new MemoryCacheParams(\r\n MAX_MEMORY_CACHE_SIZE, // Max total size of elements in the cache\r\n Integer.MAX_VALUE, // Max entries in the cache\r\n MAX_MEMORY_CACHE_SIZE, // Max total size of elements in eviction queue\r\n Integer.MAX_VALUE, // Max length of eviction queue\r\n Integer.MAX_VALUE); // Max cache entry size\r\n configBuilder\r\n .setBitmapMemoryCacheParamsSupplier(\r\n new Supplier<MemoryCacheParams>() {\r\n public MemoryCacheParams get() {\r\n return bitmapCacheParams;\r\n }\r\n })\r\n .setMainDiskCacheConfig(DiskCacheConfig.newBuilder(context)\r\n .setBaseDirectoryPath(createFile(AppFilePath.APP_SD_CARD_File_PATH))\r\n .setBaseDirectoryName(\"ImageCache\")\r\n .setMaxCacheSize(MAX_DISK_CACHE_SIZE)\r\n .build());\r\n }",
"public static interface CacheListener<T> {\n\n /**\n * An entry has outlived its \"time-to-live.\n * \n * @param key entry key of element being removed\n */\n void expiredElement(T key);\n\n\n /**\n * An entry has been removed to make room for additional elements\n * \n * @param key entry key of element being removed\n */\n void evictedElement(T key);\n }",
"@Override\n\t\t\t\tprotected void setCache(List<E> cache) {\n\t\t\t\t}",
"@Override\n\t\tpublic void configure(JobConf job) {\n\t\t\twords = job.get(\"search.word\").split(\"[ \\t]+\");\n\t\t\ttry {\n\t\t\t\tPath[] filemapcache = DistributedCache.getLocalCacheFiles(job);\n\t\t\t\tfor (Path file : filemapcache) {\n\t\t\t\t\tBufferedReader fis = new BufferedReader(new FileReader(\n\t\t\t\t\t\t\tfile.toString()));\n\t\t\t\t\tparseFileMap(fis, filemap);\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public interface Listener {\n\n /** Called when the tracked downloads changed. */\n void onDownloadsChanged();\n }",
"public void setCached() {\n }",
"Collection<String> readConfigs();",
"public interface ArticlesCache {\n}",
"public interface Config {\n\t/**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tstring value.\n */\n String getString(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tString value.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tint value.\n */\n int getInt(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tint value.\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Return with string in contents of config file.\n *\n * @return\n * \tContents of config file.\n */\n String getContents();\n\n /**\n * Return with Configuration object in contents of config file.\n *\n * @return\n * \tContents of Configuration object.\n */\n Configuration getConfiguration();\n\n List<Object> getList(String key);\n}",
"public ChangeCache(File dir) {\n cacheDir = dir;\n cacheFile = new File(dir, \"changeLog\");\n }",
"public interface StepCandidateCacheListener {\r\n void cacheLoaded(MethodCache<StepCandidate> cache);\r\n}",
"private Source getCacheSource() {\n if (useCache) {\n if (ProfileCache.hasUserBeenCached(userId))\n return Source.CACHE;\n else\n return Source.SERVER;\n } else {\n return Source.SERVER;\n }\n }",
"private void testAllFile(String ehCacheFile) throws Exception {\n ClassLoader existingCl = currentThread().getContextClassLoader();\n DefaultCacheManager dcm = null;\n Cache<Object, Object> sampleDistributedCache2 = null;\n try {\n ClassLoader delegatingCl = new Jbc2InfinispanTransformerTest.TestClassLoader(existingCl);\n currentThread().setContextClassLoader(delegatingCl);\n String fileName = getFileName(ehCacheFile);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n convertor.parse(fileName, baos, ConfigFilesConvertor.TRANSFORMATIONS.get(ConfigFilesConvertor.EHCACHE_CACHE1X), Thread.currentThread().getContextClassLoader());\n\n dcm = (DefaultCacheManager) TestCacheManagerFactory.fromStream(new ByteArrayInputStream(baos.toByteArray()));\n Cache<Object,Object> defaultCache = dcm.getCache();\n defaultCache.put(\"key\", \"value\");\n Configuration configuration = defaultCache.getCacheConfiguration();\n\n assertEquals(configuration.eviction().maxEntries(),10000);\n assertEquals(configuration.expiration().maxIdle(), 121);\n assertEquals(configuration.expiration().lifespan(), 122);\n LoadersConfiguration loaders = configuration.loaders();\n assert loaders.cacheLoaders().get(0) instanceof FileCacheStoreConfiguration;\n\n assertEquals(configuration.expiration().wakeUpInterval(), 119000);\n assertEquals(configuration.eviction().strategy(), EvictionStrategy.LRU);\n\n String definedCacheNames = dcm.getDefinedCacheNames();\n assert definedCacheNames.contains(\"sampleCache1\");\n assert definedCacheNames.contains(\"sampleCache2\");\n assert definedCacheNames.contains(\"sampleCache3\");\n assert definedCacheNames.contains(\"sampleDistributedCache1\");\n assert definedCacheNames.contains(\"sampleDistributedCache2\");\n assert definedCacheNames.contains(\"sampleDistributedCache3\");\n\n sampleDistributedCache2 = dcm.getCache(\"sampleDistributedCache2\");\n Configuration configuration2 = sampleDistributedCache2.getCacheConfiguration();\n assert configuration2.loaders().cacheLoaders().size() == 1;\n assert configuration2.expiration().lifespan() == 101;\n assert configuration2.expiration().maxIdle() == 102;\n assertEquals(configuration2.clustering().cacheMode(), CacheMode.INVALIDATION_SYNC);\n\n } finally {\n currentThread().setContextClassLoader(existingCl);\n TestingUtil.killCaches(sampleDistributedCache2);\n TestingUtil.killCacheManagers(dcm);\n }\n }",
"public static Config config() {\n return LiveEventBusCore.get().config();\n }",
"public interface ICacheManager {\n\tpublic Boolean init();\n public IBoardAgent getBoard(String stGameId);\n public void loadBoardFromFile(String stGameId, String stBoardName);\n public SortedMap<String, Pair<String, Integer>> getPossiblePlayerInEachBoard();\n}",
"public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}",
"protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }",
"public abstract List<String> getCachedLogs(String readerName);",
"public ConfigProvider getConfig() {\n return config;\n }",
"@Override\n public void run()\n {\n final String actionDescription = \"Register configuration listener\";\n\n boolean listenerRegistered = false;\n\n while (keepTrying)\n {\n /*\n * First register a listener for the group's configuration.\n */\n while ((! listenerRegistered) && (keepTrying))\n {\n try\n {\n IntegrationGroupConfigurationClient configurationClient = new IntegrationGroupConfigurationClient(accessServiceServerName,\n accessServiceRootURL);\n eventClient.registerListener(localServerUserId,\n new GovernanceEngineOutTopicListener(groupName,\n groupHandler,\n configurationClient,\n localServerUserId,\n auditLog));\n listenerRegistered = true;\n\n auditLog.logMessage(actionDescription,\n IntegrationDaemonServicesAuditCode.CONFIGURATION_LISTENER_REGISTERED.getMessageDefinition(localServerName,\n accessServiceServerName));\n }\n catch (UserNotAuthorizedException error)\n {\n auditLog.logException(actionDescription,\n IntegrationDaemonServicesAuditCode.SERVER_NOT_AUTHORIZED.getMessageDefinition(localServerName,\n accessServiceServerName,\n accessServiceRootURL,\n localServerUserId,\n error.getReportedErrorMessage()),\n error);\n waitToRetry();\n }\n catch (Exception error)\n {\n auditLog.logException(actionDescription,\n IntegrationDaemonServicesAuditCode.NO_CONFIGURATION_LISTENER.getMessageDefinition(localServerName,\n accessServiceServerName,\n error.getClass().getName(),\n error.getMessage()),\n error);\n\n waitToRetry();\n }\n }\n\n while (keepTrying)\n {\n /*\n * Request the configuration for the governance group. If it fails just log the error but let the\n * integration daemon server continue to start. It is probably a temporary outage with the metadata server\n * which can be resolved later.\n */\n try\n {\n groupHandler.refreshConfig();\n }\n catch (Exception error)\n {\n auditLog.logException(actionDescription,\n IntegrationDaemonServicesAuditCode.INTEGRATION_GROUP_NO_CONFIG.getMessageDefinition(groupHandler.getIntegrationGroupName(),\n error.getClass().getName(),\n error.getMessage()),\n error.toString(),\n error);\n }\n\n waitToRetry();\n }\n\n waitToRetry();\n }\n }",
"public <K, V> Cache<K, V> getCache( String name, Class<K> keyClazz, Class<V> valueClazz )\n {\n if ( cacheManager == null )\n {\n LOG.error( \"Cannot fetch the cache named {}, the CacheServcie is not initialized\", name );\n throw new IllegalStateException( \"CacheService was not initialized\" );\n }\n\n LOG.info( \"fetching the cache named {}\", name );\n\n Cache<K, V> cache = cacheManager.getCache( name, keyClazz, valueClazz );\n\n return cache;\n }",
"@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tMemoryStore store = new MemoryStore(IWBFileUtil.getFileInDataFolder(Config.getConfig().getRepositoryName()));\n\t\t\t\n\t\t\t// create a lucenesail to wrap the memorystore\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// let the lucene index store its data in ram\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, \"true\");\n\t\t\t// wrap memorystore in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\t\t\t\n\t\t\t// create a Repository to access the sails\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}",
"protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }",
"private ApolloConfig loadApolloConfig() {\n if (!m_loadConfigRateLimiter.tryAcquire(5, TimeUnit.SECONDS)) {\n //wait at most 5 seconds\n try {\n TimeUnit.SECONDS.sleep(5);\n } catch (InterruptedException e) {\n }\n }\n String appId = m_configUtil.getAppId();\n String cluster = m_configUtil.getCluster();\n String dataCenter = m_configUtil.getDataCenter();\n Tracer.logEvent(\"Apollo.Client.ConfigMeta\", STRING_JOINER.join(appId, cluster, m_namespace));\n int maxRetries = m_configNeedForceRefresh.get() ? 2 : 1;\n long onErrorSleepTime = 0; // 0 means no sleep\n Throwable exception = null;\n\n List<ServiceDTO> configServices = getConfigServices();\n String url = null;\n for (int i = 0; i < maxRetries; i++) {\n List<ServiceDTO> randomConfigServices = Lists.newLinkedList(configServices);\n Collections.shuffle(randomConfigServices);\n //Access the server which notifies the client first\n if (m_longPollServiceDto.get() != null) {\n randomConfigServices.add(0, m_longPollServiceDto.getAndSet(null));\n }\n\n for (ServiceDTO configService : randomConfigServices) {\n if (onErrorSleepTime > 0) {\n logger.warn(\n \"Load config failed, will retry in {} {}. appId: {}, cluster: {}, namespaces: {}\",\n onErrorSleepTime, m_configUtil.getOnErrorRetryIntervalTimeUnit(), appId, cluster, m_namespace);\n\n try {\n m_configUtil.getOnErrorRetryIntervalTimeUnit().sleep(onErrorSleepTime);\n } catch (InterruptedException e) {\n //ignore\n }\n }\n\n url = assembleQueryConfigUrl(configService.getHomepageUrl(), appId, cluster, m_namespace,\n dataCenter, m_remoteMessages.get(), m_configCache.get());\n\n logger.debug(\"Loading config from {}\", url);\n HttpRequest request = new HttpRequest(url);\n\n\n HttpResponse<ApolloConfig> response = m_httpUtil.doGet(request, ApolloConfig.class);\n m_configNeedForceRefresh.set(false);\n m_loadConfigFailSchedulePolicy.success();\n\n\n if (response.getStatusCode() == 304) {\n logger.debug(\"Config server responds with 304 HTTP status code.\");\n return m_configCache.get();\n }\n\n ApolloConfig result = response.getBody();\n\n logger.debug(\"Loaded config for {}: {}\", m_namespace, result);\n\n return result;\n\n // if force refresh, do normal sleep, if normal config load, do exponential sleep\n// onErrorSleepTime = m_configNeedForceRefresh.get() ? m_configUtil.getOnErrorRetryInterval() :\n// m_loadConfigFailSchedulePolicy.fail();\n }\n\n }\n String message = String.format(\n \"Load Apollo Config failed - appId: %s, cluster: %s, namespace: %s, url: %s\",\n appId, cluster, m_namespace, url);\n throw new ApolloConfigException(message, exception);\n }",
"public LogicTreeProcessor(Cache cache, String key) {\n Properties properties =\n new Gson().fromJson((String) cache.get(key), Properties.class);\n\n config = ConfigurationConverter.getConfiguration(properties);\n }",
"@Override\n public void onCacheAvailable(File cacheFile, String url, int percentsAvailable) {\n }",
"public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }",
"private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}",
"@Override\n public void run() {\n StartupCoordinator startupCoord = new StartupCoordinator();\n boolean openamReady = startupCoord.waitForOpenAMStartupCompletion();\n\n if (!openamReady) {\n cLog.log(Level.SEVERE, \"RADIUS Service Unavailable. Unable to read OpenAM handlerConfig.\");\n // things are looking bad for our hero. Nothing to do but exit the thread and give up on RADIUS features.\n this.coordinatingThread = null;\n return;\n }\n // make sure our service descriptor is loaded into openam before attempting to load that configuration\n ensureDescriptorLoaded(Constants.RADIUS_SERVICE_NAME, Constants.RADIUS_SERVICE_CFG_FILE);\n\n // kick off config loading and registration of change listener\n loader = new ConfigLoader();\n String changeMsg = null;\n\n try {\n while (true) {\n // wait until we see a handlerConfig change\n changeMsg = configChangedQueue.take();\n // wait for changes to take effect\n Thread.sleep(1000);\n // load our handlerConfig\n cLog.log(Level.INFO, changeMsg);\n RadiusServiceConfig cfg = loader.loadConfig(configChangedQueue);\n if (cfg != null) {\n cLog.log(Level.INFO, \"--- Loaded Config ---\\n\" + cfg);\n }\n\n if (cfg == null) {\n cLog.log(Level.INFO, \"Unable to load RADIUS Config. Ignoring change.\");\n // nothing to be done. lets wait for another handlerConfig event and maybe it will be loadable then\n continue;\n }\n\n if (listener == null) { // at startup or after service has been turned off\n if (cfg.isEnabled()) {\n listener = new Listener(cfg);\n } else {\n cLog.log(Level.INFO, \"RADIUS service disabled.\");\n }\n } else { // so we already have a listener running\n if (onlyClientSetChanged(cfg, currentCfg)) {\n listener.updateConfig(cfg);\n } else {\n // all other changes (port, thread pool values, enabledState) require restart of listener\n listener.terminate();\n listener = null;\n if (cfg.isEnabled()) {\n listener = new Listener(cfg);\n } else {\n cLog.log(Level.INFO, \"RADIUS service NOT enabled.\");\n }\n }\n }\n currentCfg = cfg;\n }\n } catch (InterruptedException e) {\n cLog.log(Level.INFO, Thread.currentThread().getName() + \" interrupted. Exiting.\");\n }\n // shutting down so terminate the listener and thread pools\n Listener l = listener;\n\n if (l != null) {\n l.terminate();\n }\n loader.notifyHandlerShutdownListeners();\n cLog.log(Level.INFO, Thread.currentThread().getName() + \" exited.\");\n this.coordinatingThread = null;\n }",
"public interface ServerCache {\n\n CrawlHost getHostFor(String host);\n \n CrawlServer getServerFor(String serverKey);\n\n\n /**\n * Utility for performing an action on every CrawlHost. \n * \n * @param action 1-argument Closure to apply to each CrawlHost\n */\n void forAllHostsDo(Closure action);\n}",
"public TrendrrCache(DynMap config) {\n \t\tthis.config = config;\n \t\t\n \t}",
"@Override\n protected void registerCustomListeners(@NotNull MessageBusConnection connection) {\n connection.subscribe(EncodingManagerListener.ENCODING_MANAGER_CHANGES, (document, propertyName, oldValue, newValue) -> {\n if (propertyName.equals(EncodingManagerImpl.PROP_CACHED_ENCODING_CHANGED)) {\n updateForDocument(document);\n }\n });\n\n connection.subscribe(VirtualFileManager.VFS_CHANGES, new BulkVirtualFileListenerAdapter(new VirtualFileListener() {\n @Override\n public void propertyChanged(@NotNull VirtualFilePropertyEvent event) {\n if (VirtualFile.PROP_ENCODING.equals(event.getPropertyName())) {\n updateForFile(event.getFile());\n }\n }\n }));\n }",
"@PostConstruct\n\tpublic void init() {\n\t\tif (!Files.isDirectory(Paths.get(configFilePath))) {\n\t\t\ttry {\n\t\t\t\tFiles.createDirectory(Paths.get(configFilePath));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\"can't create the folder for the configuration\", e);\n\t\t\t}\n\t\t}\n\t\t// schedule the watch service in repeating loop to look for modification\n\t\t// at the jambel configuration files\n\t\tconfigFilesWatchServiceExecutor.scheduleAtFixedRate(\n\t\t\t\tnew ConfigPathWatchService(configFilePath), 0L, 1L,\n\t\t\t\tTimeUnit.MILLISECONDS);\n\t}",
"@Override\n public ConfigRepositoryConfig getConfigRepositoryConfig(){\n outObject = \"getConfigRepositoryConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (ConfigRepositoryConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (ConfigRepositoryConfig) inObject;\n }",
"protected File getCacheDirectory() {\n \t\treturn Activator.getDefault().getStateLocation().append(\"cache\").toFile(); //$NON-NLS-1$\n \t}",
"public void reloadConfig () {\n if (config == null) {\n if (datafolder == null)\n throw new IllegalStateException();\n config = new File(datafolder, configName);\n }\n this.fileConfiguration = YamlConfiguration.loadConfiguration(config);\n }",
"@Test\n public void test5() throws Exception {\n CuratorFramework client = ZKConfig.getClient();\n final NodeCache nodeCache = new NodeCache(client, \"/test/test1\", false);\n nodeCache.getListenable().addListener(new NodeCacheListener() {\n @Override\n public void nodeChanged() throws Exception {\n logger.info(\"getCurrentData:\" + nodeCache.getCurrentData());\n logger.info(\"stat : \"+nodeCache.getCurrentData().getStat());\n logger.info(\"path : \"+nodeCache.getCurrentData().getPath());\n logger.info(\"data : \"+new String(nodeCache.getCurrentData().getData()));\n }\n });\n nodeCache.start();\n while(true);\n }",
"@Override\n public void run() {\n Node serverValue = serverSyncTree.getServerValue(query.getSpec());\n if (serverValue != null) {\n source.setResult(\n InternalHelpers.createDataSnapshot(\n query.getRef(), IndexedNode.from(serverValue)));\n return;\n }\n serverSyncTree.setQueryActive(query.getSpec());\n final DataSnapshot persisted = serverSyncTree.persistenceServerCache(query);\n if (persisted.exists()) {\n // Prefer the locally persisted value if the server is not responsive.\n scheduleDelayed(() -> source.trySetResult(persisted), GET_TIMEOUT_MS);\n }\n connection\n .get(query.getPath().asList(), query.getSpec().getParams().getWireProtocolParams())\n .addOnCompleteListener(\n ((DefaultRunLoop) ctx.getRunLoop()).getExecutorService(),\n (@NonNull Task<Object> task) -> {\n if (source.getTask().isComplete()) {\n return;\n }\n if (!task.isSuccessful()) {\n if (persisted.exists()) {\n source.setResult(persisted);\n } else {\n source.setException(Objects.requireNonNull(task.getException()));\n }\n } else {\n /*\n * We need to replicate the behavior that occurs when running `once()`. In other words,\n * we need to create a new eventRegistration, register it with a view and then\n * overwrite the data at that location, and then remove the view.\n */\n Node serverNode = NodeUtilities.NodeFromJSON(task.getResult());\n QuerySpec spec = query.getSpec();\n // EventRegistrations require a listener to be attached, so a dummy\n // ValueEventListener was created.\n keepSynced(spec, /*keep=*/ true, /*skipDedup=*/ true);\n List<? extends Event> events;\n if (spec.loadsAllData()) {\n events = serverSyncTree.applyServerOverwrite(spec.getPath(), serverNode);\n } else {\n events =\n serverSyncTree.applyTaggedQueryOverwrite(\n spec.getPath(),\n serverNode,\n getServerSyncTree().tagForQuery(spec));\n }\n repo.postEvents(\n events); // to ensure that other listeners end up getting their cached\n // events.\n source.setResult(\n InternalHelpers.createDataSnapshot(\n query.getRef(),\n IndexedNode.from(serverNode, query.getSpec().getIndex())));\n keepSynced(spec, /*keep=*/ false, /*skipDedup=*/ true);\n }\n });\n }",
"public interface OnGetUploadConfigListener {\n\n void onGetConfigFinish(boolean isSuccess);\n\n}",
"public AdminEventBuilder refreshRealmEventsConfig() {\n return this.updateStore().addListeners();\n }",
"public void configure(Element config) throws ConfigurationException {\r\n\t\ttry {\r\n\t\t\tlock.writeLock().lockInterruptibly();\r\n\t\t\t// configuring pool name\r\n\t\t\tlog.debug(\"Configuring cache instance for \" + this.getClass().getSimpleName() + \" instances.\");\r\n\t\t\tElement dbElement = DOMUtils.getElement(config, DB_ELEMENT, true);\r\n\t\t\tpoolName = DOMUtils.getAttribute(dbElement, POOL_NAME_ATTR, true);\r\n\t\t\tif ((poolName == null) || (poolName.trim().length() == 0)) {\r\n\t\t\t\tthrow new ConfigurationException(\"pool-name was not informed.\");\r\n\t\t\t}\r\n\r\n\t\t\t//sets default pool-name(it is important keeping that on a separated variable, because it can be used later)\r\n\t\t\tdefaultPoolName = poolName;\r\n\r\n\t\t\t//creating the alternate pools map\r\n\t\t\tthis.alternatePoolNames = new HashMap<String,String>();\r\n\t\t\tNodeList altPoolNodeList = DOMUtils.getElements(dbElement, ALTERNATE_POOL_NAME_ELEMENT);\r\n\t\t\tElement altPoolElement;\r\n\t\t\tString key;\r\n\t\t\tString value;\r\n\t\t\tfor (int i = 0; i < altPoolNodeList.getLength(); i++) {\r\n\t\t\t\taltPoolElement = (Element) altPoolNodeList.item(i);\r\n\t\t\t\tkey = DOMUtils.getAttribute(altPoolElement, ALTERNATE_POOL_NAME_ATTR, true);\r\n\t\t\t\tvalue = DOMUtils.getAttribute(altPoolElement, ALTERNATE_POOL_VALUE_ATTR, true);\r\n\t\t\t\tthis.alternatePoolNames.put(key, value);\r\n\t\t\t}\r\n\r\n\t\t\t// initializing cache\r\n\t\t\tint cacheSize = DOMUtils.getIntAttribute(config, CACHE_SIZE_ATTR, false);\r\n\t\t\tif (cacheSize < 1) {\r\n\t\t\t\tcacheSize = DEFAULT_CACHE_SIZE;\r\n\t\t\t}\r\n\t\t\t// if cache already init.ed, then skip loading\r\n\t\t\tif (cache.size() > 0) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfoundKeys = new LRUMap(cacheSize);\r\n\t\t\tloadCache();\r\n\t\t} catch (InterruptedException ie) {\r\n\t\t\tlog.error(ie);\r\n\t\t\tthrow new ConfigurationException(ie);\r\n\t\t} catch (SQLException sqle) {\r\n\t\t\tlog.error(sqle);\r\n\t\t\tthrow new ConfigurationException(sqle);\r\n\t\t} catch (NamingException ne) {\r\n\t\t\tlog.error(ne);\r\n\t\t\tthrow new ConfigurationException(ne);\r\n\t\t} finally {\r\n\t\t\tlock.writeLock().unlock();\r\n\t\t}\r\n\t}",
"public ASListener(){\n \t\treload();\n \t}",
"@Bean\n CacheManager cacheManager() {\n return new CaffeineCacheManager();\n }",
"@Override\n\tpublic void addStateListener(MemcachedClientStateListener arg0) {\n\n\t}",
"protected void notifyListeners(CacheEvent e) {\n synchronized (listeners) {\n for (int i=0; i<listeners.size(); i++) {\n CacheListener l = (CacheListener) listeners.elementAt(i);\n l.cacheUpdated(e);\n }\n }\n }",
"public PlayerContinuousSnap getCache(Player player) {\n\t\treturn this.cached.get(player);\n\t}",
"List<Link> findLinkByCache();",
"Config(InfoHandler info){\n \n this.info = info;\n \n config_list = new ArrayList<>();\n \n File test = new File(config_path);\n \n if(test.exists()){ //plik istnieje\n \n info.mode=1; //wlaczenie trybu dla obslugi pliku konfiguracyjnego\n \n \n //tutaj pobieranie informacji z pliku konfiguracyjnego\n //do ciała funkcji\n \n config_file = new DictReader(config_path,info);\n \n //tutaj dodajemy funkcjonalnosci\n \n config_list.add(config_file.szukaj(\"%imie\"));\n config_list.add(config_file.szukaj(\"%dict_path\"));\n \n config = get_config();\n \n info.mode=0;\n \n is_alive = true;\n }\n else{\n config = new ArrayList<>();\n config_file = new DictReader(config_path,info);\n first_start = 1;\n }\n }"
] |
[
"0.6856741",
"0.64044464",
"0.5512727",
"0.5503422",
"0.5417318",
"0.53885835",
"0.537969",
"0.5314309",
"0.53010815",
"0.52465314",
"0.5231444",
"0.5221378",
"0.51964",
"0.51950336",
"0.51888394",
"0.51617885",
"0.5152821",
"0.51489604",
"0.50971633",
"0.50707704",
"0.50513935",
"0.5031273",
"0.50178653",
"0.5003352",
"0.49769694",
"0.49723208",
"0.4967435",
"0.4960614",
"0.4929823",
"0.49261832",
"0.49214",
"0.49119154",
"0.49102613",
"0.48969832",
"0.4894909",
"0.48913452",
"0.48723495",
"0.48711953",
"0.4870791",
"0.48433805",
"0.48396492",
"0.48374784",
"0.4828636",
"0.48279792",
"0.48252472",
"0.48249942",
"0.48065484",
"0.47975165",
"0.47884333",
"0.47834107",
"0.47795954",
"0.4769651",
"0.4768986",
"0.4760207",
"0.4750805",
"0.47498748",
"0.47498748",
"0.47371385",
"0.4726035",
"0.4713669",
"0.4712271",
"0.47089723",
"0.47053376",
"0.470228",
"0.46997774",
"0.4695409",
"0.4685468",
"0.4678652",
"0.46772456",
"0.46760362",
"0.4671072",
"0.46626377",
"0.46574515",
"0.46556342",
"0.46505928",
"0.46378216",
"0.46366",
"0.46351773",
"0.46190408",
"0.46184355",
"0.46133214",
"0.46070418",
"0.4606273",
"0.46061555",
"0.46046117",
"0.46009088",
"0.4600619",
"0.4599357",
"0.45958298",
"0.45955628",
"0.4594024",
"0.45796764",
"0.45698276",
"0.4564046",
"0.45566732",
"0.45562223",
"0.45524025",
"0.4549978",
"0.4548944",
"0.4538477"
] |
0.71349734
|
0
|
Get access info of the requested IP.
|
public static Map getInfo(String key) throws Exception {
return (Hashtable) Listener.cachedContent.get(key);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getInIp();",
"int getInIp();",
"int getIp();",
"int getIp();",
"int getIp();",
"String getIp();",
"String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"public String getIp();",
"String getAccess();",
"String getAccess();",
"public InetAddress getIP();",
"public int getIp() {\n return ip_;\n }",
"public String getAccess();",
"public java.lang.String getIp(){\r\n return localIp;\r\n }",
"public java.lang.String getIp(){\r\n return localIp;\r\n }",
"java.lang.String getAgentIP();",
"public String getIp() {\n return (String) get(24);\n }",
"public int getIp() {\n return ip_;\n }",
"public int getIp() {\n return ip_;\n }",
"public int getIp() {\n return ip_;\n }",
"public static String getIP() {\n\t\treturn ip;\r\n\t}",
"public static String getIP()\n {\n try\n {\n URL whatismyip = new URL(\"http://checkip.amazonaws.com\");\n BufferedReader in = new BufferedReader(new InputStreamReader(\n whatismyip.openStream()));\n\n String ip = in.readLine(); //you get the IP as a String\n return ip;\n }\n catch (Exception exc)\n {\n System.out.println(\"Get internet IP address error:\" + exc.toString());\n return \"\";\n }\n }",
"public String getIP() {\n return this.IP;\n }",
"String getRemoteIpAddress();",
"public String getIp() {\n return ip;\n }",
"public String getIp() {\r\n return ip;\r\n }",
"public java.lang.String getIp () {\r\n\t\treturn ip;\r\n\t}",
"public java.lang.String getIp () {\r\n\t\treturn ip;\r\n\t}",
"private String getClientIP(){\n try {\n ConnectivityManager connManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n @SuppressWarnings(\"deprecation\")\n NetworkInfo wifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n @SuppressWarnings(\"deprecation\")\n NetworkInfo mobile = connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);\n\n if (wifi.isConnected()) {\n // If Wi-Fi connected\n return getWifiIP();\n }\n\n if (mobile.isConnected()) {\n // If Internet connected\n return getMobileIP();\n }\n\n return null;\n }catch(SecurityException e){\n return null;\n }\n }",
"public java.lang.String getIp() {\r\n return ip;\r\n }",
"public String getIp() {\n return ip;\n }",
"public String getIp() {\n return ip;\n }",
"public String getIp() {\n return ip;\n }",
"public String getIp() {\n return ip;\n }",
"public String getIp() {\n return ip;\n }",
"public String getIp() {\n return ip;\n }",
"public String getIpAddress()\n\t{\n\t\t/* TODO: The IP address returned is in this format: /127.0.0.1:9845\n\t\t * Rewrite to remove the unnessecary data. */\n\t\treturn getSession().getIpAddress();\n\t}",
"public String getIp() {\n return ip;\n }",
"@Override\n\tpublic String getIp() {\n\t\treturn ip;\n\t}",
"public String getIp(){\n\treturn ip;\n }",
"public String getIP() throws Exception {\n this.IPAddress = \"http://192.168.1.15\";\n return this.IPAddress;\n }",
"public int getIp() {\n return instance.getIp();\n }",
"public int getIp() {\n return instance.getIp();\n }",
"public String getIp() {\n return getIpString(inetAddress);\n }",
"public InetAddress getAddress() {\n return ip;\n }",
"public java.lang.String getIP() {\r\n return IP;\r\n }",
"public String getIpAddress() {\n return ipAddress;\n }",
"public InetAddress getIPAddress ( ) { return _IPAddress; }",
"public String getIp() {\n\t\treturn ip.getText();\n\t}",
"public InetAddress getIP()\r\n\r\n {\r\n InetAddress ip=null;\r\n try{\r\n WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n DhcpInfo dhcp = wifi.getDhcpInfo();\r\n int dip=dhcp.ipAddress;\r\n byte[] quads = new byte[4];\r\n for (int k = 0; k < 4; k++)\r\n quads[k] = (byte) (dip >> (k * 8));\r\n ip= InetAddress.getByAddress(quads);\r\n } catch (UnknownHostException e) {\r\n e.printStackTrace();\r\n }\r\n return ip;\r\n }",
"public String getIpAddress() {\n return ipAddress;\n }",
"public String getIpAddress() {\n return ipAddress;\n }",
"public InetAddress getIpAddress() \n\t{\n\t\treturn ipAddress;\n\t}",
"public String getIpaddress ()\n {\n return ipaddress;\n }",
"public String getIpAddr() {\r\n return ipAddr;\r\n }",
"public String get_ipaddress() throws Exception {\n\t\treturn this.ipaddress;\n\t}",
"Map<String, Long> getVisitIpLogs();",
"public int getInIp() {\n return inIp_;\n }",
"public int getInIp() {\n return inIp_;\n }",
"public String getIpAddr() {\n return ipAddr;\n }",
"public void getIP(){\n String requestIP = DomainTextField.getText();\n\n Connection conn = new Connection();\n\n String domain = conn.getIP(requestIP);\n\n output.writeln(requestIP + \" --> \" + domain);\n }",
"public String get()\r\n\t{\r\n\t\tignoreIpAddress = ignoreIpAddressService.getIgnoreIpAddress(id, false);\r\n\t\treturn \"get\";\r\n\t}",
"private Label getIP() { \n\t\tString address = new String(); \n\t\ttry { \n\t\t\tURL IpWebSite = new URL(\"http://bot.whatismyipaddress.com\"); \n\t\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(IpWebSite.openStream())); \n\t\t\t\n\t\t\taddress = sc.readLine(); \n\t\t\t\n\t\t} catch (Exception e) { \n\t address = \"Can't get your IP Address \\n Check your internet connection\"; \n\t } \n\t\t\n\t\tLabel ip = new Label(\"Your IP Address is : \" + address);\n\t\tip.setMaxWidth(Double.MAX_VALUE);\n\t\tip.setAlignment(Pos.CENTER);\n\t\treturn ip;\n\t}",
"public IPAddress getIPAddress() {\n return iPAddress;\n }",
"String getAddr();",
"@SuppressLint(\"DefaultLocale\")\n\tprivate String getIpAddr()\n\t{\n\t\tString ipString = null;\n\t\tWifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);\n\t\tif (wifiManager != null)\n\t\t{\n\t\t\tWifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\t\t\tif (wifiInfo != null)\n\t\t\t{\n\t\t\t\tint ip = wifiInfo.getIpAddress();\n\n\t\t\t\tipString = String.format(\"%d.%d.%d.%d\", (ip & 0xff),\n\t\t\t\t\t(ip >> 8 & 0xff), (ip >> 16 & 0xff), (ip >> 24 & 0xff));\n\n\t\t\t}\n\t\t}\n\t\treturn ipString;\n\t}",
"public int getInIp() {\n return instance.getInIp();\n }",
"public int getInIp() {\n return instance.getInIp();\n }",
"public PublicNetworkAccess publicNetworkAccess() {\n return this.publicNetworkAccess;\n }",
"public PublicNetworkAccess publicNetworkAccess() {\n return this.publicNetworkAccess;\n }",
"public String getIp() {\n\t\treturn InfraUtil.getIpMachine();\n\t}",
"public String ipAddress() {\n return this.ipAddress;\n }",
"public static String getOpenIpAddress() {\n\t\tif (!mInitialized) Log.v(\"OpenIp\", \"Initialisation isn't done\");\n\t\treturn ip;\n\t}",
"public static String getWANIP() {\n URL whatismyip = null;\n BufferedReader in = null;\n try {\n \twhatismyip = new URL(\"http://checkip.amazonaws.com\");\n in = new BufferedReader(new InputStreamReader(whatismyip.openStream()));\n String ip = in.readLine();\n return ip;\n } catch (IOException e) {\n \treturn \"No internet.\";\n\t\t}\n }",
"public String getServerip() {\n return serverip;\n }",
"int getAddr();",
"int getClientIpV4();",
"public String getIP() throws UnknownHostException{\n\t\tInetAddress addr = InetAddress.getLocalHost();//Get local IP\n \t String ip = addr.toString().split(\"\\\\/\")[1];//local IP\n \t //ip = ip.indexOf('\\\\');\n \t if(!getIsLocal()){\n\t \ttry{\n\t\t \tURL whatismyip = new URL(\"http://automation.whatismyip.com/n09230945.asp\");\n\t\t \tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t \t whatismyip.openStream()));\n\t\t \tip = in.readLine(); //you get the IP as a String\n\t\t \t//System.out.println(ip);\n\t\t \tin.close();\n\t\t \treturn ip;\n\n\t \t}\n\t \tcatch(IOException e){\n\t \t\te.printStackTrace();\n\t \t}\n\t \treturn null;\n \t }\n\t\treturn ip;\n\t }",
"public String getClientip() {\n return clientip;\n }",
"public java.lang.String getIpaddress() {\n return ipaddress;\n }",
"public String getIPAddress()\n {\n return fIPAddress;\n }",
"public boolean isIpAccessible(String url) {\n URL img = null;\n try {\n img = new URL(url);\n InputStream s = img.openStream();\n byte[] b = new byte[256];\n s.read(b);\n String str = new String(b);\n System.out.println(str);\n s.close();\n return true;\n } catch (java.io.IOException e) {\n return false;\n }\n }",
"public String getIPAddress () {\n\t\treturn _ipTextField.getText();\n\t}",
"public static String getIpFilter() {\r\n return OWNIP;\r\n }",
"public String getServerIP()\n\t{\n\t\treturn this.serverIP;\n\t}",
"public static String getServerIP() {\n return serverIP;\n }",
"public String getDeviceIp(){\n\t return deviceIP;\n }",
"public static InetAddress getServerInet(){\n return thisServer.getIp();\n }",
"@ReactMethod\n public void getIP(final Callback callback) {\n WifiInfo info = wifi.getConnectionInfo();\n String stringIP = longToIP(info.getIpAddress());\n callback.invoke(stringIP);\n }",
"private String getIPAddress() throws Exception {\n //Don't need the line of code below, TODO: delete it!\n InetAddress getIP = InetAddress.getLocalHost();\n String thisSystemAddress = \"\";\n try{\n URL thisUrl = new URL(\"http://bot.whatismyipaddress.com\");\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(thisUrl.openStream()));\n thisSystemAddress = bufferedReader.readLine().trim();\n } catch (Exception e){\n e.printStackTrace();\n e.getCause();\n }\n\n return thisSystemAddress;\n }",
"private static String getExternalIP() {\n\t\ttry {\n\t URL checkURL = new URL(EXTERNAL_IP_PROVIDER);\n\t BufferedReader in = new BufferedReader(new InputStreamReader(checkURL.openStream()));;\n\t String ip = in.readLine();\n\t return ip;\n\t } catch (IOException e) {\n\t \t DecentLogger.write(\"Unable to get external IP Address\");\n\t }\n\t\treturn null;\n\t}",
"public String getIpaddress() {\n\t\treturn ipaddress;\n\t}",
"java.lang.String getDestinationIp();"
] |
[
"0.64746916",
"0.64746916",
"0.64007574",
"0.64007574",
"0.64007574",
"0.6373828",
"0.6373828",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6294189",
"0.6205542",
"0.61352587",
"0.61352587",
"0.612378",
"0.60516346",
"0.60341036",
"0.6003956",
"0.6003956",
"0.6000246",
"0.59998876",
"0.5972451",
"0.5972451",
"0.5972451",
"0.59717387",
"0.5934217",
"0.5925222",
"0.5912216",
"0.5903294",
"0.59025073",
"0.5899176",
"0.5899176",
"0.58616066",
"0.5858008",
"0.5855347",
"0.5855347",
"0.5855347",
"0.5855347",
"0.5855347",
"0.5855347",
"0.5828588",
"0.5822228",
"0.5795046",
"0.5792312",
"0.5778483",
"0.57781583",
"0.57781583",
"0.5740781",
"0.57240754",
"0.5719631",
"0.5696755",
"0.5689827",
"0.5669551",
"0.5667986",
"0.5661041",
"0.5661041",
"0.56600684",
"0.56461006",
"0.5626932",
"0.5621055",
"0.56208163",
"0.5607151",
"0.5607151",
"0.56058383",
"0.5604117",
"0.560195",
"0.560143",
"0.55612236",
"0.5557542",
"0.5513797",
"0.5508118",
"0.5508118",
"0.55057603",
"0.55057603",
"0.5497103",
"0.5483788",
"0.54780596",
"0.5474801",
"0.54355",
"0.54316556",
"0.54115784",
"0.54020584",
"0.5399261",
"0.53856343",
"0.53797483",
"0.5372912",
"0.53464377",
"0.53434235",
"0.53224325",
"0.53166044",
"0.5303986",
"0.5300442",
"0.52981454",
"0.52893007",
"0.528808",
"0.5281264",
"0.527354"
] |
0.0
|
-1
|
Punto punto = new Punto(AutoIncremental.getAutoIncremental(), lat, lng);
|
@POST
@Consumes({MediaType.APPLICATION_FORM_URLENCODED, MediaType.APPLICATION_JSON} )
@Produces(MediaType.TEXT_HTML)
public void createPunto(Punto punto,
@Context HttpServletResponse servletResponse) throws IOException {
punto.setId(AutoIncremental.getAutoIncremental());
puntoService.agregarPunto(punto);
servletResponse.sendRedirect("./rutas/");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"public Plato(){\n\t\t\n\t}",
"Punto(){\r\n x=0;\r\n y=0;\r\n }",
"public TrazoLibre(Point2D punto) {\n this.linea = new ArrayList();\n this.linea.add(punto);\n }",
"public Incidencia(String tipo, String usuario, String calle, double latitud, double longitud){\n this.tipo = tipo;\n this.usuario = usuario;\n this.calle = calle;\n\n Date date = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\n this.fecha = formatter.format(date);\n this.latitud = latitud;\n this.longitud = longitud;\n\n this.velocidad = null;\n }",
"public PontoAlimentacao(int id, String nome, GeoPt localizacao) {\n \tsetId(id);\n \tsetNome(nome);\n \tsetLocalizacao(localizacao);\n this.situacao = SituacaoDoPA.getDefault();\n this.ultimaActualizacao = MyTimer.getCurrentTime();\n this.votos = new ArrayList<Voto>(); \n }",
"void mo5802a(LatLng latLng);",
"public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }",
"public Ponto(int x, int y){\n this.x = x;\n this.y = y;\n }",
"public Coordenada() {\n }",
"Vaisseau_occupeLaPosition createVaisseau_occupeLaPosition();",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"Position_ordonnee createPosition_ordonnee();",
"public Torretta1(int danno, int x, int y, ArrayList<Proiettile> proiettili) {\r\n super();\r\n velocitàAttacco = 5000;\r\n attacco = danno;\r\n this.proiettili = proiettili;\r\n this.x = x * 40;\r\n this.y = y * 40 - 40;\r\n range = new Ellipse2D.Double();\r\n range.setFrame(this.x - 40, this.y - 40, 119, 119);\r\n temposparo = 200;\r\n finestrasparo = 0;\r\n costoAcquisto = 10;\r\n tipo='a';\r\n }",
"public int getLat();",
"public void set_point ( String id,String longitud,String latitud, String id_cliente){\n this.id = id;\n this.longitud=longitud;\n this.latitud=latitud;\n this.id_cliente = id_cliente;\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\n fecha= df.format(c.getTime()).toString();\n new define_ubicacion_cliente().execute();\n }",
"public TrazoLibre(Point2D punto, Atributo atributo) {\n this.linea = new ArrayList();\n this.linea.add(punto);\n }",
"public PontoAlimentacao(int id, String nome, GeoPt localizacao, int situacaoFila, int funcionamento ) {\n \tsetId(id);\n \tsetNome(nome);\n \tsetLocalizacao(localizacao);\n this.ultimaActualizacao = MyTimer.getCurrentTime();\n \tthis.situacao = new SituacaoDoPA(situacaoFila, funcionamento);\n this.votos = new ArrayList<Voto>(); \n }",
"Geq createGeq();",
"@Override\n public List<Map<String, Object>> tareasOrdenadasPorDistancia(long id_emergencia){\n try(Connection conn = sql2o.open()){\n List<Emergencia> emergencia = conn.createQuery(\"SELECT ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud FROM emergencia WHERE id = :id_eme\")\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetch(Emergencia.class);\n String punto = \"POINT(\" + emergencia.get(0).getLongitud() + \" \" + emergencia.get(0).getLatitud() + \")\";\n return conn.createQuery(\"SELECT id, nombre, ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud, ST_Distance(ST_GeomFromText(:tar_punto, 4326), ubicacion::geography) AS distancia FROM tarea WHERE id_emergencia = :id_eme ORDER BY distancia ASC\")\n .addParameter(\"tar_punto\", punto)\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetchTable()\n .asList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return null;\n }\n }",
"public GPS newInstace(@Nullable Bundle bundle){\n return new GPS();\n }",
"public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}",
"Position_abscisse createPosition_abscisse();",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n if (!multi) {\n LatLng localEntrega = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(localEntrega).title(\"Local de Entrega\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(localEntrega, 14));\n } else {\n myapp = (EntregasApp)getApplicationContext();\n manager = new Manager(myapp);\n LatLng primeiraEntrega;\n\n primeiraEntrega = new LatLng(0,0);\n\n int i = 0;\n List<Documento> documentos = manager.findDocumentoByDataRomaneio(myapp.getDate());\n\n for (Documento documento : documentos ){\n LatLng localEntrega;\n if (documento.getDestinatario().getLatitude()!=null){\n i = i + 1;\n latitude = Double.valueOf(documento.getDestinatario().getLatitude());\n longitude = Double.valueOf(documento.getDestinatario().getLongitude());\n\n localEntrega = new LatLng(latitude, longitude);\n\n if(i==1){\n primeiraEntrega = new LatLng(latitude,longitude);\n }\n\n mMap.addMarker(new MarkerOptions().position(localEntrega)\n .title(documento.getDestinatario().getNome()));\n }\n }\n\n mMap.setMyLocationEnabled(true);\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(primeiraEntrega, 10));\n\n // Check if we were successful in obtaining the map.\n /*\n if (mMap != null) {\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location arg0) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.truck);\n mMap.addMarker(new MarkerOptions().position(new LatLng(arg0.getLatitude(), arg0.getLongitude())).title(\"Minha Localização\").icon(icon));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(arg0.getLatitude(), arg0.getLongitude()), 6));\n }\n });\n\n\n }\n\n */\n\n }\n\n }",
"public interface GPSMetier {\n JSONEntitie createJSON(String Id, double lat, double lon, boolean isServer);\n String jsonToString(JSONEntitie jsonEntitie);\n JSONEntitie stringToJSON(String jsonString, int codeResponse);\n\n}",
"public Transportista() {\n }",
"public void initStartPoint(GeoPointND p, int number);",
"public Mapa(int ancho, int alto) {\r\n this.ancho = ancho;\r\n this.alto = alto;\r\n cuadros = new int[ancho*alto];\r\n generarMapa();\r\n }",
"Parcelle createParcelle();",
"public EmpleadoPOI() {//Constructor\n\t\t// TODO Auto-generated constructor stub\n\t}",
"Obligacion createObligacion();",
"public void setLatitud(String latitud);",
"public PointOfInterest() {\n }",
"private void setMyLatLong() {\n }",
"public Geotemporal() {\n }",
"void crearCampania(GestionPrecioDTO campania);",
"public Joueur(int id, int pa)\r\n/* */ {\r\n/* 34 */ this.id_joueur = id;\r\n/* 35 */ this.points_action = pa;\r\n/* */ }",
"public Puerto()\n {\n alquileres = new ArrayList<>();\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"public GeoPoint(int latitude, int longitude) {\n this.latitude = latitude;\n this.longitude = longitude;\n checkRep();\n }",
"public Gioco(String titolo, int larghezza, int altezza)\n {\n //Inizializzazione degli attributi\n this.larghezza = larghezza;\n this.altezza = altezza;\n this.titolo = titolo;\n gestoreTasti = new GestoreTasti();\n gestoreMouse = new GestoreMouse();\n }",
"public Punto getCentro() {\r\n\treturn centro;\r\n}",
"Vaisseau_positionner createVaisseau_positionner();",
"public MbCoordDpto() {\r\n \r\n }",
"public Corso() {\n\n }",
"public Persona() { // constructor sin parámetros\r\n\t\t\r\n\t\tthis.nif = \"44882229Y\";\r\n\t\tthis.nombre=\"Anonimo\";\r\n\t\tthis.sexo = 'F';\r\n\t\tthis.fecha = LocalDate.now();\r\n\t\tthis.altura = 180;\r\n\t\tthis.madre = null;\r\n\t\tthis.padre = null;\r\n\t\tcontador++;\r\n\t}",
"public Aritmetica(){ }",
"Vaisseau_longueur createVaisseau_longueur();",
"public LocationPoint(){\n this.mLocationID = UUID.randomUUID();\n }",
"public Rettangolo(Punto[] vertici)\n\t{\n\t\tsuper(vertici);\n\n\t\tif(this.direzioneLati[0] != -1.0 / this.direzioneLati[1] && (this.direzioneLati[0] != Double.POSITIVE_INFINITY || this.direzioneLati[1] != 0.0))\n\t\t{\n\t\t\tthis.vertici = null;\n\t\t\tthis.direzioneLati = this.lunghezzaLati = null; // TODO: eccezioni\n\t\t\tSystem.out.println(\"Errore: i quattro punti non individuano un rettangolo.\");\n\t\t}\n\t}",
"public Location() {\r\n \r\n }",
"int getAptitudeId();",
"public Prova() {}",
"public void buscarLugar(){\n String lugar= tv_lugar.getText().toString().trim();\n ubicacionEncontrada=false;\n this.geocoder= new Geocoder(getActivity());\n this.lista = new ArrayList<>();\n\n try {\n lista =geocoder.getFromLocationName(lugar,1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if(lista.size()>0){\n this.localizacion= lista.get(0);\n\n // Snackbar.make(myView,\"Error al crear la quedada\", Snackbar.LENGTH_SHORT).show();\n ubicacionEncontrada=true;\n Log.i(\"UBICACION A BUSCAR\", localizacion.toString());\n this.latLng = new LatLng(localizacion.getLatitude(), localizacion.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 12f));\n this.markerOptions = new MarkerOptions().position(latLng).title(localizacion.getAddressLine(0));\n\n mMap.addMarker(markerOptions);\n\n\n }\n\n }",
"void getReverInfo(int longitude,int latitude);",
"public PointDistributer() {\n }",
"com.google.type.LatLng getLatLng();",
"public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }",
"public CoordenadasDTO asignarCoordenadas(){\n logger.debug(\"MensajeService::asignarCoordenadas()\");\n CoordenadasDTO coordenadas = new CoordenadasDTO();\n try {\n if(listaNave != null && !listaNave.isEmpty()){\n double posicion [][] = new double [listaNave.size()][];\n double distances[] = obtenerDistancias(listaNave);\n for(int i = 0; i<listaNave.size(); i++){\n switch (listaNave.get(i).getName()){\n case \"kenobi\":\n posicion[i] = posiciones[0];\n break;\n\n case \"skywalker\":\n posicion[i] = posiciones[1];\n break;\n\n case \"solo\":\n posicion[i] = posiciones[2];\n break;\n }\n }\n NonLinearLeastSquaresSolver trilateracion = new NonLinearLeastSquaresSolver(new TrilaterationFunction(posicion, distances), new LevenbergMarquardtOptimizer());\n LeastSquaresOptimizer.Optimum optimum = trilateracion.solve();\n double centroid[] = optimum.getPoint().toArray();\n coordenadas.setY(centroid[1]);\n coordenadas.setX(centroid[0]);\n }\n } catch (Exception e){\n\n }\n return coordenadas;\n }",
"public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }",
"public void limpaPontos() {\n\t\tthis.pontos = new ArrayList<Point>();\n\t}",
"public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}",
"public RptPotonganGaji() {\n }",
"public Troco() {\n }",
"Coordinate createCoordinate();",
"public TrazoLibre() {\n this.linea = new ArrayList();\n }",
"private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }",
"long getLatitude();",
"@Override\r\n public void onScrubGeo(long arg0, long arg1) {\n\r\n }",
"@Override\r\n public void onScrubGeo(long arg0, long arg1) {\n\r\n }",
"public PointRecord(){\n \n }",
"private void agregarMarcador(double lat, double lon) {\n LatLng coord = new LatLng(lat, lon);\n CameraUpdate miUbi = CameraUpdateFactory.newLatLngZoom(coord, 16);\n if (mPrueba != null) mPrueba.remove();\n mPrueba = mMap.addMarker(new MarkerOptions()\n .position(coord)\n .title(\"Reporte\")\n .snippet(\"Reportar\"));\n mPrueba.setDraggable(true);\n mPrueba.setTag(0);\n mMap.animateCamera(miUbi);\n }",
"public Latitude getLatitude (){\n return trackLat;\n }",
"public Maps()\n\t{\t\n\t\tsetOnMapReadyHandler( new MapReadyHandler() {\n\t\t\t@Override\n\t\t\tpublic void onMapReady(MapStatus status)\n\t\t\t{\n\t\t\t\tmodelo = new MVCModelo();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tmodelo.cargarInfo();\n\t\t\t\t\tArregloDinamico<Coordenadas> aux = modelo.sacarCoordenadasVertices();\n\t\t\t\t\tLatLng[] rta = new LatLng[aux.darTamano()];\n\t\t\t\t\tfor(int i=0; i< aux.darTamano();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tCoordenadas actual = aux.darElementoPos(i);\n\t\t\t\t\t\trta[i] = new LatLng(actual.darLatitud(), actual.darLongitud());\n\t\t\t\t\t}\n\t\t\t\t\tlocations = rta;\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tif ( status == MapStatus.MAP_STATUS_OK )\n\t\t\t\t\t{\n\t\t\t\t\t\tmap = getMap();\n\n\t\t\t\t\t\t// Configuracion de localizaciones intermedias del path (circulos)\n\t\t\t\t\t\tCircleOptions middleLocOpt= new CircleOptions(); \n\t\t\t\t\t\tmiddleLocOpt.setFillColor(\"#00FF00\"); // color de relleno\n\t\t\t\t\t\tmiddleLocOpt.setFillOpacity(0.5);\n\t\t\t\t\t\tmiddleLocOpt.setStrokeWeight(1.0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i=0; i<locations.length;i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCircle middleLoc1 = new Circle(map);\n\t\t\t\t\t\t\tmiddleLoc1.setOptions(middleLocOpt);\n\t\t\t\t\t\t\tmiddleLoc1.setCenter(locations[i]); \n\t\t\t\t\t\t\tmiddleLoc1.setRadius(20); //Radio del circulo\n\t\t\t\t\t\t}\n\n\t\t\t \t //Configuracion de la linea del camino\n\t\t\t \t PolylineOptions pathOpt = new PolylineOptions();\n\t\t\t \t pathOpt.setStrokeColor(\"#FFFF00\");\t // color de linea\t\n\t\t\t \t pathOpt.setStrokeOpacity(1.75);\n\t\t\t \t pathOpt.setStrokeWeight(1.5);\n\t\t\t \t pathOpt.setGeodesic(false);\n\t\t\t \t \n\t\t\t \t Polyline path = new Polyline(map); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \t path.setOptions(pathOpt); \n\t\t\t \t path.setPath(locations);\n\t\t\t\t\t\tinitMap( map );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t);\n\n\n\t}",
"@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }",
"public LocalResidenciaColaborador() {\n //ORM\n }",
"public Population (Coordinate location){\n this.location = location;\n }",
"public Lat2() {\n initComponents();\n }",
"@Override\n public void onLocationChanged(Location location) {\n LatLng posicio = new LatLng(location.getLatitude(),location.getLongitude());\n //Afegir la camera amb el punt generat abans i un nivell de zoom\n CameraUpdate camera = CameraUpdateFactory.newLatLngZoom(posicio,13);\n //Desplacem la camera al nou punt\n mMap.moveCamera(camera);\n posicioActual = posicio;\n\n }",
"public AntrianPasien() {\r\n\r\n }",
"Persoana(Tools t, int cr) { ob = null; ti = t; currentrowi = cr; }",
"public Retangulo(double[] pLados) {\n super(pLados);\n /* invoca o construtor da classe Pai passando pLados como parametros. */\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n String[] xy = new String[]{\"37.221900\",\"127.18800\",\"37.221804\",\"127.186695\",\"37.220000\",\"127.186666\"};\n\n ArrayList<LatLng> loc=new ArrayList<LatLng>();\n\n int count = 1;\n for (int i=0;i<xy.length;i++){\n\n double tmp = Double.parseDouble(xy[i]);\n double tmp2 = Double.parseDouble(xy[++i]);\n\n\n LatLng latLng = new LatLng(tmp, tmp2);\n\n loc.add(latLng);\n\n\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Pin\"+count).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_pin_purple)));\n count++;\n }\n\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc.get(loc.size()-1)));\n\n\n// // 서울 위치\n// LatLng seoul = new LatLng(37.566535, 126.97796919);\n// mMap.addMarker(new MarkerOptions().position(seoul).title(\"Marker in Seoul\"));\n//\n// // 명지대 위치 추가\n// LatLng MJU = new LatLng(37.221804, 127.186695);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU)\n// .title(\"명지대\"));\n//\n// //핀 연결 확인용 좌표 추가\n// LatLng MJU2 = new LatLng(37.220000, 127.186666);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU2)\n// .title(\"명지대2\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(MJU2));\n\n // 카메라 줌\n mMap.animateCamera(CameraUpdateFactory.zoomTo(17.0f));\n\n // 인포 윈도우 클릭시 전화 걸기 -> 뭔가 게시물 쓸때 쓸수있을거 같아서 남겨둠\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:0312365043\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n //arraylist 다시 배열에 넣는거 아직 않마 까먹ㅇ멋어ㅏ\n LatLng[] line = {\n loc.get(0),loc.get(1),loc.get(2)\n };\n //좌표끼리 선 긋기 좌표가 추가 될때마다 새로운 선을 만들어야 하나.. 아니면 그냥 좌표하나씩 추가해야하나 고민\n //일단 좌표에 들어온 순서로 선이 그어짐 -> 시간별로 추가할수 있도록 해야 함\n\n\n //좌표 두개마다 각각의 polyline을 생성해야 각각 화살표로 나올수 있음\n //for문 사용해서 polyline 만들어보기\n// for(int i=0; i<line.length;){\n// Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n// .clickable(true)\n// .add( line[i], line[++i]\n// ) .width(10)\n//\n// .geodesic(true));\n//\n//\n// }\n\n\n Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n .clickable(true)\n .add( line\n ) .width(10)\n\n .geodesic(true));\n\n polyline1.setEndCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_arrow), 15));\n polyline1.setStartCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_circle), 15));\n\n\n\n googleMap.setOnPolylineClickListener(this);\n googleMap.setOnPolygonClickListener(this);\n\n\n\n }",
"private void xxx() {\n LatLng westfieldNJ = new LatLng(40.659, -74.3474);\n mMap.addMarker(new MarkerOptions().position(westfieldNJ).title(\"Westfield, New Jersey\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(westfieldNJ));\n\n }",
"public Produto() {}",
"public int getLon();",
"public Television(int precioBase, double peso) {\n\t\tsuper(precioBase, peso);\n\t\tthis.resolucion = RESOLUCION;\n\t\tthis.sintonizadorTDT = SINTONIZADOR_TDT;\n\t}",
"public Transportadora() {\r\n super();\r\n this.nif = \"\";\r\n this.raio = 0;\r\n this.precoKm = 0;\r\n this.classificacao = new Classificacao();\r\n this.estaLivre = true;\r\n this.velocidadeMed = 0;\r\n this.kmsTotal = 0;\r\n this.capacidade = 0;\r\n }",
"public LocationData()\n {\n }",
"public GeoPointND getStartPoint();",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n ArrayList<String> ArrayDescripcionMarker = new ArrayList<String>();\n ArrayList<String> ArrayX = new ArrayList<String>();\n ArrayList<String> ArrayY = new ArrayList<String>();\n Integer tamanio=0;\n\n\n new DataMainActivitBuscarUbicacionReservas(mapa.this).execute();\n\n\n\n System.out.println(\"aca lista1 ANTESSSS\" +getIntent().getStringArrayListExtra(\"miLista\"));\n System.out.println(\"aca tamaño ANTESSSS\" +getIntent().getIntExtra(\"tamanio\",0));\n System.out.println(\"aca lista2 ANTESSS\" +getIntent().getStringArrayListExtra(\"miLista2\"));\n System.out.println(\"aca listaCLIENTE ANTESSS\" +getIntent().getStringArrayListExtra(\"milistaCliente\"));\n\n //cantidad de reservas/markes a dibujar\n tamanio = getIntent().getIntExtra(\"tamanio\",0);\n /// Casteo la lista que tiene las latitudes\n double[] failsArray = new double[tamanio]; //create an array with the size of the failList\n for (int i = 0; i < tamanio; ++i) { //iterate over the elements of the list\n failsArray[i] = Double.parseDouble(getIntent().getStringArrayListExtra(\"miLista\").get(i)); //store each element as a double in the array\n // failsArray[i] = Double.parseDouble(lista.get(i)); //store each element as a double in the array\n }\n\n /// Casteo la lista que tiene las longitudes\n double[] failsArray2 = new double[tamanio]; //create an array with the size of the failList\n for (int i = 0; i < tamanio; ++i) { //iterate over the elements of the list\n failsArray2[i] = Double.parseDouble(getIntent().getStringArrayListExtra(\"miLista2\").get(i)); //store each element as a double in the array\n // failsArray2[i] = Double.parseDouble(lista2.get(i)); //store each element as a double in the array\n }\n\n ///// Recorro las listas y genero el marker.\n for (int i = 0; i < tamanio; i++){\n LatLng vol_1 = new LatLng(failsArray[i], failsArray2[i]);\n mMap.addMarker(new MarkerOptions().position(vol_1).title(getIntent().getStringArrayListExtra(\"milistaCliente\").get(i)));\n // mMap.addMarker(new MarkerOptions().position(vol_1));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(vol_1, 12f));\n }\n\n\n\n ///////////// DIUJO ZONAS - POLIGIONOS /////////////////\n\n Polygon polygon1 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4466867, -58.7446665),\n new LatLng(-34.4755556, -58.7870237),\n new LatLng( -34.5313786, -58.7034557),\n new LatLng(-34.5005326, -58.6488037))\n .strokeColor(Color.RED));\n polygon1.setTag(\"ZONA 1\");\n polygon1.setStrokeWidth(4f);\n\n\n\n Polygon polygon2 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4466867, -58.7446665),\n new LatLng(-34.4810476,-58.6806737),\n new LatLng( -34.4541926,-58.6249857),\n new LatLng( -34.3982066,-58.6507117))\n .strokeColor(BLUE));\n polygon2.setTag(\"ZONA 2\");\n polygon2.setStrokeWidth(4f);\n\n\n Polygon polygon3 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4810476,-58.6806737),\n new LatLng(-34.5005326, -58.6488037),\n new LatLng( -34.4786136,-58.6067997),\n new LatLng( -34.4547056,-58.6234267))\n .strokeColor(Color.GREEN));\n polygon3.setTag(\"ZONA 3\");\n polygon3.setStrokeWidth(4f);\n\n\n ///////////// FIN DIUJO ZONAS - POLIGIONOS /////////////////\n\n\n\n\n /*\n //DIBUJO ZONAS DE CIRCULOS\n Circle circle = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.455587, -58.685503))\n .radius(1800)\n .strokeColor(Color.RED));\n circle.setStrokeWidth(4f);\n circle.setTag(\"Zona1\");\n\n\n Circle circle2 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.480523, -58.717237))\n .radius(1600)\n .strokeColor(Color.BLUE));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n\n Circle circle3 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.450193, -58.725039))\n .radius(1800)\n .strokeColor(Color.GREEN));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n\n Circle circle4 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.469302, -58.653062))\n .radius(1500)\n .strokeColor(Color.YELLOW));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n //funcion que revisa si un punto esta dentro del circulo zona 1\n\n float[] disResultado = new float[2];\n // LatLng pos = new LatLng(40.416775, -3.703790);\n LatLng pos = new LatLng(-34.470327, -58.683718);\n double lat = pos.latitude; //getLatitude\n double lng = pos.longitude;//getLongitude\n\n\n Location.distanceBetween( pos.latitude, pos.longitude,\n circle.getCenter().latitude,\n circle.getCenter().longitude,\n disResultado);\n\n if(disResultado[0] > circle.getRadius()){\n System.out.println(\"FUERAAAA ZONA 1\" );\n } else {\n System.out.println(\"DENTROOO ZONA 1\" );\n }\n\n*/\n\n\n\n }",
"public Puerto()\n {\n alquileres = new ArrayList<Alquiler>();\n }",
"public MorteSubita() {\n }",
"@Override\n public void onLocationChanged(Location location) {\n LatLng miUbicacion = new LatLng(location.getLatitude(), location.getLongitude());\n\n //Marcador de la ub. actual\n mMap.addMarker(new MarkerOptions().position(miUbicacion).title(\"Ubicación actual\").icon(BitmapDescriptorFactory.fromResource(R.drawable.marca3)));\n\n //Foco de la camara según la ubicación\n mMap.moveCamera(CameraUpdateFactory.newLatLng(miUbicacion));\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(miUbicacion)\n .zoom(14)\n .bearing(90)\n .tilt(45)\n .build();\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n }",
"public Commune(String id, String nom, int population, double longitude, double latitude) {\n this.id = id;\n this.nom = nom;\n this.population = population;\n this.longitude = longitude;\n this.latitude = latitude;\n }",
"public MyPoint1 (double x, double y) {}",
"public Trip() {\n }",
"public Point() {\n }",
"public Point() {\n }",
"Petunia() {\r\n\t\t}"
] |
[
"0.6911025",
"0.6436523",
"0.62294835",
"0.62216574",
"0.62120515",
"0.6207147",
"0.6153126",
"0.6014229",
"0.5969758",
"0.5942968",
"0.5757354",
"0.57083404",
"0.5693636",
"0.56899196",
"0.56514496",
"0.5647534",
"0.56361675",
"0.56340516",
"0.56012046",
"0.5595928",
"0.5595536",
"0.55355656",
"0.5526674",
"0.5507353",
"0.5496263",
"0.54959327",
"0.54953843",
"0.54798627",
"0.5475413",
"0.5466945",
"0.5448345",
"0.5440858",
"0.5438553",
"0.5436487",
"0.5435412",
"0.5429269",
"0.5428555",
"0.5427431",
"0.54254925",
"0.5425397",
"0.5422272",
"0.54132694",
"0.54084027",
"0.5404582",
"0.5391357",
"0.5335697",
"0.53319633",
"0.53263044",
"0.53238094",
"0.53161585",
"0.53131324",
"0.53123844",
"0.5311955",
"0.5300948",
"0.52888596",
"0.52880144",
"0.5282321",
"0.52758056",
"0.5273212",
"0.5272628",
"0.52639765",
"0.5253255",
"0.5251757",
"0.5249073",
"0.5247494",
"0.52409667",
"0.5240857",
"0.5235561",
"0.5234989",
"0.5234989",
"0.5234715",
"0.52300245",
"0.522159",
"0.5201962",
"0.5200636",
"0.5198834",
"0.51987654",
"0.5198156",
"0.519241",
"0.5185592",
"0.51818776",
"0.5177798",
"0.5174381",
"0.5169929",
"0.516806",
"0.516443",
"0.516335",
"0.5162393",
"0.51575166",
"0.5152603",
"0.5148422",
"0.51467115",
"0.514071",
"0.51386225",
"0.5138015",
"0.5137423",
"0.51358736",
"0.5128455",
"0.5128436",
"0.5128436",
"0.5127416"
] |
0.0
|
-1
|
Created by Administrator on 2017/2/15.
|
public interface OrderMessageContract {
interface Presenter extends BasePresenter {
/**
* 获取消息列表
*/
void getMessage(String type, int page);
/**
* 删除消息
*/
void postDeleteMessage(List<ListBean> masageList);
/**
* 标记已读
*/
void postReadMessage(List<ListBean> masageList);
}
interface View extends BaseNewView<Presenter,String> {
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void create () {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public final void mo51373a() {\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\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public void mo38117a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public contrustor(){\r\n\t}",
"public void mo4359a() {\n }",
"public void create() {\n\t\t\n\t}",
"private TMCourse() {\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n\tpublic void create() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\r\n\tpublic void rozmnozovat() {\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 create() {\n\r\n\t}",
"public void autoDetails() {\n\t\t\r\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n public void init() {\n\n }",
"public Pitonyak_09_02() {\r\n }",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"public void mo55254a() {\n }",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"private Singletion3() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private UsineJoueur() {}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"private static void oneUserExample()\t{\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n void init() {\n }",
"protected Doodler() {\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo12930a() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void init() {\n }",
"protected void onFirstUse() {}",
"protected void mo6255a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public static void created() {\n\t\t// TODO\n\t}"
] |
[
"0.628928",
"0.6083472",
"0.5852473",
"0.5843063",
"0.5812415",
"0.5797142",
"0.57966673",
"0.57447124",
"0.56976366",
"0.56908596",
"0.568323",
"0.56806725",
"0.56806725",
"0.5674008",
"0.56720704",
"0.56720704",
"0.5661574",
"0.56548154",
"0.56397563",
"0.5635253",
"0.56285757",
"0.5617681",
"0.5616766",
"0.5610153",
"0.56018364",
"0.5600318",
"0.5598868",
"0.5588837",
"0.5587156",
"0.5581795",
"0.55795103",
"0.5563431",
"0.55503726",
"0.5543792",
"0.5543473",
"0.5524847",
"0.5512377",
"0.5512377",
"0.5512377",
"0.5512377",
"0.5512377",
"0.5512377",
"0.5512377",
"0.55105424",
"0.5507541",
"0.5501189",
"0.54990476",
"0.5498982",
"0.5498887",
"0.5498887",
"0.5498887",
"0.5498887",
"0.5498887",
"0.5498887",
"0.54978883",
"0.54962367",
"0.54835564",
"0.54509187",
"0.54442734",
"0.5429816",
"0.5417748",
"0.5410877",
"0.5408031",
"0.5395691",
"0.539425",
"0.53926516",
"0.53922683",
"0.53875893",
"0.5386475",
"0.5386475",
"0.53839535",
"0.53838915",
"0.5379064",
"0.5372729",
"0.5369603",
"0.53670675",
"0.5366328",
"0.5357495",
"0.5356063",
"0.5350353",
"0.5344225",
"0.5328138",
"0.5327935",
"0.5327935",
"0.5327935",
"0.5327935",
"0.5327935",
"0.5325405",
"0.5322369",
"0.5318485",
"0.53108966",
"0.53094727",
"0.53061646",
"0.5304809",
"0.5302312",
"0.5298442",
"0.5297585",
"0.5297412",
"0.5297412",
"0.5296927",
"0.52908605"
] |
0.0
|
-1
|
Inflate the layout for this fragment
|
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_reports, container, false);
unbinder = ButterKnife.bind(this, view);
mFromButton.setText("From: " + mPresenter.getFormattedDate(new Date()));
mToButton.setText("To: " + mPresenter.getFormattedDate(new Date()));
mPresenter.start();
return view;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] |
[
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] |
0.0
|
-1
|
When binding a fragment in onCreateView, set the views to null in onDestroyView. ButterKnife returns an Unbinder on the initial binding that has an unbind method to do this automatically.
|
@Override public void onDestroyView() {
super.onDestroyView();
unbinder.unbind();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tunbinder.unbind();\n\t}",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n mUnbinder.unbind();\n }",
"@Override public void onDestroyView() {\n super.onDestroyView();\n ButterKnife.unbind(this);\n }",
"@Override\n public void onDestroyView() {\n mBinding = null;\n super.onDestroyView();\n }",
"@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tLog.d(\"Fragment02\",\"onDestroyView\");\n\t}",
"@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_fragment6, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\n\t}",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n Log.i(sFragmentName, \"onDestroyView()\");\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n notifyOnFinishSearchDialog();\n hideSoftKeyboard();\n unbinder.unbind();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder=ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder1 = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder1 = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\r\n unbinder = ButterKnife.bind(this, rootView);\r\n return rootView;\r\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\r\n unbinder = ButterKnife.bind(this, rootView);\r\n return rootView;\r\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\r\n unbinder = ButterKnife.bind(this, rootView);\r\n return rootView;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tLog.i(TAG, \"onDestroyView\");\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder2 = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder2 = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n recyclerAdapter = null;\n recyclerView = null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tabquanbu, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n ButterKnife.bind(this, rootView);\n// etPhoneNum.getText().clear();\n return rootView;\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n\n }",
"public void unbind() {\n\t\tview.setAdapter(null);\n\t}",
"@Override\n public void onDestroyView(){\n DataStore.getInstance(getActivity()).unregisterLiveLeagueDBObserver(mViewPagerAdapter);\n super.onDestroyView();\n }",
"public void onDestroy() {\n if (view != null) {\n view.clear();\n view = null;\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_p1_one, container, false);\n unbinder = ButterKnife.bind(this, v);\n return v;\n }",
"public void onDestroyView() {\n super.onDestroyView();\n activity.setCastDetailsCreditsBundle(null);\n listView.setAdapter(null);\n }",
"@Override\n public void onViewDestroy() {\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_empty_home, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"public void onViewDestroy(){}",
"void onDestroyView()\n {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n mLayoutInflater = inflater;\n return rootView;\n }",
"public IBinder onUnBind(Intent arg0) {\n return null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_movie, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_data_visible, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"public void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tdoUnbind();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_map_second, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_nav_footer, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\r\n\tpublic void onDestroyView() {\n\t\tLog.v(TAG, \"onDestroyView\");\r\n\t\tsuper.onDestroyView();\r\n\t\t//Toast.makeText(getActivity(), TAG+ \" \"+i+\" onDestroyView\", Toast.LENGTH_SHORT).show();\r\n\t}",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n resume_id = null;\n cellNums = null;\n telNums = null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflatedView = inflater.inflate(R.layout.fragment_partner_cars, container, false);\n unbinder = ButterKnife.bind(this, inflatedView);\n\n return inflatedView;\n }",
"@Override\n protected void onCleared() {\n super.onCleared();\n presenter.clearView();\n }",
"@Override\n protected void onCleared() {\n super.onCleared();\n presenter.clearView();\n }",
"@Override\n public void onViewDestroyed() {\n\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup viewgproup = (ViewGroup) mView.getParent();\n\t\tif (viewgproup != null) {\n\t\t\tviewgproup.removeAllViewsInLayout();\n\t\t}\n\t\treturn mView;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n EventBus.getDefault().register(this);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }",
"@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.d(TAG, \"SearchListFragment.onDestroyView called\");\r\n\t\tmDbHelper.close();\r\n\t\tmSettingsDbHelper.close();\r\n\t}",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n\n/* try {\n Fragment fragment = (getFragmentManager()\n .findFragmentById(R.id.mandiMap));\n if(fragment!=null) {\n FragmentTransaction ft = getActivity().getSupportFragmentManager()\n .beginTransaction();\n ft.remove(fragment);\n ft.commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }*/\n }",
"@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}",
"@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}",
"@Override\n\tpublic View bindView() {\n\t\treturn null;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_product_detail, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n EventBus.getDefault().register(this);\n return rootView;\n }",
"@Override // androidx.lifecycle.ViewModel\n public void onCleared() {\n super.onCleared();\n this.f89534b = null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_playlist, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gap_fill, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n return view;\n }",
"public void onDestroy() {\n super.onDestroy();\n this.mSearchView.setOnQueryTextListener(null);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_step_goal, container, false);\n unbinder = ButterKnife.bind(this, view);\n setInit();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n myBinding = FragmentResetBinding.inflate(inflater);\n return myBinding.getRoot();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_bao_yang_scx, container, false);\n unbinder = ButterKnife.bind(this, view);\n init();\n }\n return view;\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n if (mLocationClient != null) {\n mLocationClient.onDestroy();\n }\n mMapView.onDestroy();\n }",
"@Override\n public void onDestroyView() {\t\t\n \t\t\t \n mIsWebViewAvailable = false;\n super.onDestroyView();\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n playlistDisposables.dispose();\n if (playlistAdapter != null) {\n playlistAdapter.unsetSelectedListener();\n }\n\n playlistDisposables.clear();\n playlistRecyclerView = null;\n playlistAdapter = null;\n }",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tLog.d(\"Fragment02\",\"onDestroy\");\n\t}",
"@Override\n public void onDetach() {\n super.onDetach();\n //\n selectedFragmentFromFAB = null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard_category_pager, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n protected void onReset() {\n if (presenter != null) {\n presenter.destroy();\n }\n\n presenter = null;\n }",
"@Override\n protected void unBindTarget() {\n this.mThemeCallback = null;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup p = (ViewGroup) mMainView.getParent();\r\n\t\tif (p != null) {\r\n\t\t\tp.removeAllViewsInLayout();\r\n\t\t}\r\n\t\treturn mMainView;\r\n\t}",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup p = (ViewGroup) mMainView.getParent();\r\n\t\tif (p != null) {\r\n\t\t\tp.removeAllViewsInLayout();\r\n\t\t}\r\n\t\treturn mMainView;\r\n\t}",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (baseBroadcase != null) {\n\t\t\tgetActivity().unregisterReceiver(baseBroadcase);\n\t\t}\n\t}",
"@Override\n protected void onDestroy() {\n mapView.onDestroy();\n super.onDestroy();\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n uiHelper.onDestroy();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_menu_edit, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }"
] |
[
"0.7956727",
"0.79231286",
"0.7903046",
"0.7823336",
"0.6988607",
"0.68826383",
"0.688071",
"0.68463093",
"0.684459",
"0.6806808",
"0.6797115",
"0.6763939",
"0.6749004",
"0.6749004",
"0.6747528",
"0.6747528",
"0.6747528",
"0.67299455",
"0.67299455",
"0.67282605",
"0.67282605",
"0.6721448",
"0.6712916",
"0.6707715",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.67061615",
"0.6663734",
"0.6663734",
"0.66298985",
"0.6621731",
"0.658681",
"0.6579027",
"0.6566831",
"0.65271664",
"0.6524975",
"0.64897865",
"0.647967",
"0.64777607",
"0.6443788",
"0.64437443",
"0.64417076",
"0.6407281",
"0.63847995",
"0.6377634",
"0.63637227",
"0.63582116",
"0.63512784",
"0.63462114",
"0.6306325",
"0.6298713",
"0.62965846",
"0.6288167",
"0.6288167",
"0.6275487",
"0.624879",
"0.6233668",
"0.62187386",
"0.6201019",
"0.6199509",
"0.6199509",
"0.619453",
"0.61841303",
"0.6175331",
"0.6167879",
"0.61565316",
"0.61225855",
"0.6081105",
"0.6053771",
"0.6047546",
"0.6043672",
"0.604108",
"0.6024689",
"0.60204",
"0.60194564",
"0.60153574",
"0.5987162",
"0.5974824",
"0.5967028",
"0.59669524",
"0.59669524",
"0.5965139",
"0.5962597",
"0.59602314",
"0.59587896"
] |
0.79142076
|
2
|
Method findById__customers definition ends here.. Method destroyById__customers definition
|
public void destroyById__customers( String qualificationId, String fk, final VoidCallback callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.put("fk", fk);
invokeStaticMethod("prototype.__destroyById__customers", hashMapObject, new Adapter.Callback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(String response) {
callback.onSuccess();
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void deleteCustomerById(int customerId);",
"void deleteCustomerById(Long id);",
"public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }",
"@DeleteMapping(\"/customer/id/{id}\")\r\n\tpublic Customer deleteCustomerbyId(@PathVariable(\"id\") int customerId) {\r\n\tif(custService.deleteCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.deleteCustomerbyId(customerId);\r\n\t}",
"public void deleteCustomerbyId(int i) {\n\t\tObjectSet result = db.queryByExample(new Customer(i, null, null, null, null, null));\n\n\t\twhile (result.hasNext()) {\n\t\t\tdb.delete(result.next());\n\t\t}\n\t\tSystem.out.println(\"\\nEsborrat el customer \" + i);\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}",
"@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(int theId) {\n\t\tcustomerDAO.deleteCustomer(theId);\n\t}",
"public void DeleteCust(String id);",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete the object with the primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// delete object with primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\n\t\ttheQuery.executeUpdate();\n\t}",
"void delete(Customer customer);",
"@Override\n\tpublic void deleteCustomer(Long custId) {\n\t\tcustomerRepository.deleteById(custId);\n\t\t\n\t}",
"@Override\n public void deleteCustomer(UUID id) {\n log.debug(\"Customer has been deleted: \"+id);\n }",
"@DELETE\n\t@Path(\"/delete\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic void delCustomer(String id)\n\t\t\tthrows MalformedURLException, RemoteException, NotBoundException, ClassNotFoundException, SQLException {\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Delete the customers table\n\t\tdb.Delete(\"DELETE FROM CUSTOMERS WHERE id='\" + id + \"'\");\n\n\t\t// Delete the bookings table\n\t\tdb.Delete(\"DELETE FROM BOOKINGS WHERE CUSTOMERID='\" + id + \"'\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\t}",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.DELETE)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void removeCustomer(@PathVariable(\"id\") int id){\n //simply remove the customer using the id. If it does not exist, nothing will happen anyways\n service.removeCustomer(id);\n }",
"@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerAddres : {}\", id);\n customerAddresRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerAddres\", id.toString())).build();\n }",
"public Customer findCustomerById(long id) throws DatabaseOperationException;",
"Customer findById(Long id);",
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"@Override\n\t@Transactional\n\tpublic void delete(Long id) {\n\t\tcustomerDAO.deleteById(id);\n\t}",
"@Override\n\tpublic int deleteCustomerReprieve(Integer id) {\n\t\treturn customerDao.deleteCustomerReprieve(id);\n\t}",
"public boolean deleteCustomer(String custId);",
"private void deleteCustomerById(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int idCustomer = Integer.parseInt(request.getParameter(\"id\"));\n CustomerDao.deleteCustomer(idCustomer);\n response.sendRedirect(\"/\");\n }",
"void removeCustomer(Customer customer);",
"@DeleteMapping()\n public Customer deleteCustomer(@RequestBody Customer customer ) {\n customerRepository.delete(customer);\n return customerRepository.findById(customer.getId()).isPresent() ? customer : null;\n }",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now delete the customer using parameter theId i.e., Customer id (primary key)\n\t\t//HQL query\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\n\t\t//prev parameter theId is assigned to customerId\n\t\ttheQuery.setParameter(\"customerId\",theId);\n\n\t\t//this works with update, delete , so on ...\n\t\ttheQuery.executeUpdate();\n\n\t}",
"@Override\n\tpublic void deleteCoustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().delete(customer);\n\t}",
"@DeleteMapping(\"/customers/{customerId}\")\n public String deleteCustomer(@PathVariable int customerId) {\n CustomerHibernate customerHibernate = customerService.findById(customerId);\n\n if (customerHibernate == null) {\n throw new RuntimeException(\"Customer id not found - \" + customerId);\n }\n customerService.deleteById(customerId);\n\n return String.format(\"Deleted customer id - %s \", customerId);\n }",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\")\n\t public ResponseEntity<?> deleteCustomer(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.deleteCustomer(id, customer);\n\t }",
"Customer getCustomerById(int customerId);",
"void deleteCustomerDDPayById(int id);",
"@GetMapping(\"/delete\")\r\n\tpublic String deleteCustomer(@RequestParam(\"customerId\") int id){\n\t\tcustomerService.deleteCustomer(id);\r\n\t\t\r\n\t\t//send over to our form\r\n\t\treturn \"redirect:/customer/list\";\r\n\t}",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n Session session =sessionFactory.getCurrentSession();\n Customer customer= getCustomer(customerId);\n session.delete(customer);\n\t\treturn true;\n\t}",
"@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = DELETE, value = \"/{id}\")\n\tpublic Mono<ResponseEntity<?>> deleteCustomer(@PathVariable @NotNull ObjectId id) {\n\n\t\tfinal Mono<ResponseEntity<?>> noContent = Mono.just(noContent().build());\n\n\t\treturn repo.existsById(id)\n\t\t\t.filter(Boolean::valueOf) // Delete only if customer exists\n\t\t\t.flatMap(exists -> repo.deleteById(id).then(noContent))\n\t\t\t.switchIfEmpty(noContent);\n\t}",
"Customer getCustomerById(final Long id);",
"public void delete(Customer customer) {\n\t\tcustRepo.delete(customer);\n\t}",
"@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }",
"@Override\r\n\tpublic Customer removeCustomer(String custId) {\r\n\r\n\t\tOptional<Customer> optionalCustomer = customerRepository.findById(custId);\r\n\t\tCustomer customer = null;\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\tcustomerRepository.deleteById(custId);\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityDeletionException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic void removeCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName() == null)\n\t\t\tthrow new Exception(\"No Such customer Exists.\");\n\t\t\n\t\tif(custCheck.getCustName().equalsIgnoreCase(customer.getCustName()) && customer.getId() == custCheck.getId()) {\n\t\t\ttry {\n\t\t\t\t\tStatement st = con.createStatement();\n\t\t\t\t\tString remove = String.format(\"delete from customer where id in('%d')\", \n\t\t\t\t\t\tcustomer.getId());\n\t\t\t\t\tst.executeUpdate(remove);\n\t\t\t\t\tSystem.out.println(\"Customer removed successfully\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB\");\n\t\t\t}finally {\n\t\t\t\ttry {\n\t\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void removeCustomer(int id) {\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] != null && customers[i].getID() == id) {\r\n customers[i] = null;\r\n return;\r\n }\r\n }\r\n System.err.println(\"Could not find a customer with id: \" + id);\r\n }",
"public void removeACustomer(long id) {\r\n\t\tSystem.out.println(\"\\nRemoving the customer: \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nCustomer info: \" + customer);\r\n\t\tem.remove(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"@Test\n\tpublic void deleteCustomer() {\n\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tint originalLength = customerController.read().size();\n\n\t\t// When\n\t\tICustomer cus = customerController.delete(id);\n\n\t\t// Then\n\t\tint expected = originalLength - 1;\n\t\tint actual = customerController.read().size();\n\t\tAssert.assertEquals(expected, actual);\n\t\tAssert.assertNotNull(cus);\n\t}",
"@Override\n\tpublic void delete(Customer o) {\n\n\t\tif (o.getId() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString deleteQuery = \"DELETE FROM TB_customer WHERE \" + COLUMN_NAME_ID + \"=\" + o.getId();\n\n\t\ttry (Statement deleteStatement = dbCon.createStatement()) {\n\t\t\tdeleteStatement.execute(deleteQuery);\n\t\t} catch (SQLException s) {\n\t\t\tSystem.out.println(\"Delete of customer \" + o.getId() + \" falied : \" + s.getMessage());\n\t\t}\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(Customer customer) {\n\t\thibernateTemplate.delete(customer);\n\n\t\tSystem.out.println(customer + \"is deleted\");\n\t}",
"public void deleteCustomer(Customer customer){\n _db.delete(\"Customer\", \"customer_name = ?\", new String[]{customer.getName()});\n }",
"public CleaningTransaction findByCustomerId(Long id);",
"public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }",
"@DeleteMapping(\"/customers/{customer_id}\")\n\tpublic String deletecustomer(@PathVariable(\"customer_id\") int customerid ) {\n\t\t\n\t\t//first check if there is a customer with that id, if not there then throw our exception to be handled by @ControllerAdvice\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t//if it is happy path(customer found) then go ahead and delete the customer\n\t\tthecustomerService.deleteCustomer(customerid);\n\t\treturn \"Deleted Customer with id: \"+customerid;\n\t}",
"@DeleteMapping(\"/{id}\")\n public Boolean deleteCustomer(@PathVariable(\"id\") Long customerId) {\n return true;\n }",
"void removeAuthorisationsOfCustomer(CustomerModel customer);",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"@Override\n\tpublic List<Customer> findAllCustomer() {\n\t\treturn customerDao.findAllCustomer();\n\t}",
"@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }",
"@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}",
"BrainTreeCustomerResult removeCustomer(BrainTreeCustomerRequest request);",
"@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic Uni<Boolean> deleteCustomerById(Long cid) {\n\t\treturn repo.deleteById(cid).chain(repo::flush).onItem().transform(ignore ->true);\n\t}",
"@BeforeTransaction\n\tpublic void setupManyCustomers() {\n\t\tint results = template.update(\"delete from Customer\");\n\t\tlogger.debug(\"Before Transaction Deleted {} Customer(s)\", results);\n\t\tSession session = factory.openSession();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tCustomer c = new Customer();\n\t\t\tc.setFirstName(\"Customer #\" + (i + 1));\n\t\t\tc.setLastName(\"Person\");\n\t\t\tsession.save(c);\n\t\t}\n\t\tsession.flush();\n\t\tsession.close();\n\t}",
"public void clearCustomers()\r\n\t{\r\n\t\tfor(int i=0;i<inStore.size();i++)\r\n\t\t{\r\n\t\t\tcustomers.add(inStore.get(i));\r\n\t\t}\r\n\t\tinStore.clear();\r\n\t}",
"public List<Customer> findAllCustomers() throws DatabaseOperationException;",
"@GET\n\t@Path(\"DeleteCustomer\")\n\tpublic Reply deleteCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().deleteCustomer(id);\n\t}",
"@Override\n\tpublic void delete(Long ID) {\n\t\tCustRepo.delete(ID);\n\t}",
"public void delete(Customer customer) {\r\n EntityManagerHelper.beginTransaction();\r\n CUSTOMERDAO.delete(customer);\r\n EntityManagerHelper.commit();\r\n renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()).requestRender();\r\n //renderManager.removeRenderer(renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()));\r\n }",
"@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}",
"public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }",
"@DeleteMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Map<String, Boolean>> deleteCustomer(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\n\t\tcustomerRepository.delete(customer);\n\t\tMap<String, Boolean> response = new HashMap<>();\n\t\tresponse.put(\"deleted\", Boolean.TRUE);\n\t\treturn ResponseEntity.ok(response);\n\t}",
"@Test\n\t// @Disabled\n\tvoid testDeleteCustomer() {\n\t\tCustomer customer = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tcustRep.deleteById(1);\n\t\tCustomer persistedCust = custService.deleteCustomerbyId(1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t\tassertEquals(\"tommy\", persistedCust.getFirstName());\n\n\t}",
"public interface CustomerService {\n\n /**\n * Find all list.\n *\n * @return the list\n */\n List<Customer> findAll();\n\n /**\n * Find all with fetch address.\n * used hQL\n *\n * @return the list of customers\n */\n List<Customer> findAllWithFetch();\n\n /**\n * Find customer by address street list.\n *\n * @param name the name\n * @return the list\n */\n List<Customer> findByAddressStreet(String name);\n\n\n /**\n * Find customer by phone number optional.\n *\n * @param number the number\n * @return the optional\n */\n Optional<Customer> findByPhoneNumber(Long number);\n\n /**\n * Find customer by name or surname list.\n *\n * @param name the name\n * @param surname the surname\n * @return the list\n */\n List<Customer> findByNameOrSurname(String name, String surname);\n\n /**\n * Find customer by id optional.\n *\n * @param id the id\n * @return the optional\n */\n Customer findById(Long id);\n\n /**\n * Delete customer by id.\n *\n * @param id the id\n */\n void deleteById(Long id);\n\n /**\n * Save customer.\n *\n * @param customer the customer\n * @return the customer\n */\n Customer save(Customer customer);\n\n /**\n * Update customer.\n *\n * @param customer the customer\n * @return the customer\n */\n Customer update(Customer customer);\n\n /**\n * Delete.\n *\n * @param customer the customer\n */\n void delete(Customer customer);\n\n}",
"public void deleteCustomer(Integer id) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//query for deleting the account\n\t\tQuery<Customer> query = currentSession.createQuery(\n\t\t\t\t\t\t\t\t\t\"delete from Customer where customerId=:id\",Customer.class);\n\t\tquery.setParameter(id, id);\n\t\tquery.executeUpdate();\n\t}",
"@Override\n\tpublic List<Customer> getCustomerById(int customerid) {\n\t\treturn null;\n\t}",
"@ApiOperation(value = \"Delete a customer\", notes = \"\")\n @DeleteMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public void deleteCustomer(@PathVariable Long customerId) {\n\n customerService.deleteCustomerById(customerId);\n\n }",
"void updateCustomerById(Customer customer);",
"public interface CustomerManager extends GenericManager<Customer, Long> {\n /**\n * Convenience method for testing - allows you to mock the DAO and set it on an interface.\n * @param customerDao the CustomerDao implementation to use\n */\n void setCustomerDao(CustomerDao customerDao);\n\n\n /**\n * Retrieves a customer by code. An exception is thrown if customer not found\n *\n * @param code the identifier for the customer\n * @return Customer\n */\n Customer getCustomerByCustomerName(String code) throws CustomerCodeNotExistsException;\n\n\n /**\n * Retrieves a list of all Customers.\n * @return List\n */\n List<Customer> getCustomers();\n\n /**\n * Saves a Customer's information.\n *\n * @param Customer the Customer's information\n * @throws CustomerExistsException thrown when customer already exists\n * @return customer the updated customer object\n */\n Customer saveCustomer(Customer customer) throws CustomerExistsException;\n\n /**\n * Removes a customer from the database\n *\n * @param customer the customer to remove\n */\n void removeCustomer(Customer customer);\n\n /**\n * Removes a customer from the database by their code\n *\n * @param code the customer's code\n */\n void removeCustomer(String code) throws CustomerCodeNotExistsException;\n\n}",
"@Override\r\n\tpublic boolean deleteCustomer(int customerID) {\n\t\treturn false;\r\n\t}",
"public Customer findById(Integer id) {\n\t\treturn customerDao.findById(id);\r\n\t}",
"public interface CustomerManager {\n void createCustomer(Customer customer);\n\n Customer getCustomerById(Long id);\n\n List<Customer> findAllCustomers();\n\n List<Customer> findCustomerByName(String name);\n\n void updateCustomer(Customer customer);\n\n void deleteCustomer(Customer customer);\n}",
"@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"@Test\n public void deleteCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Delete the Customer from the database\n service.removeCustomer(customer.getCustomerId());\n\n // Test the deleteCustomer() method\n verify(customerDao, times(1)).deleteCustomer(integerArgumentCaptor.getValue());\n assertEquals(customer.getCustomerId(), integerArgumentCaptor.getValue().intValue());\n }",
"@DeleteMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<?> deleteCustomerDetails(@PathVariable(\"id\") long id) {\n\t\tcustomerService.deleteCustomerDetails(id);\n\t\treturn ResponseEntity.ok().body(\"Customer Details is deleted\");\n\n\t}",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"[email protected]\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"[email protected]\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"[email protected]\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"[email protected]\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"[email protected]\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}",
"@Override\n\tpublic void deleteOne(Customer c) {\n\t\tthis.getHibernateTemplate().delete(c);\n\t}",
"@Override\n public Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }",
"public void delete(Customer customer) throws CustomerNotFoundException {\r\n customer = this.entityManager.merge(customer);\r\n this.entityManager.remove(customer);\r\n }",
"@Override\n\tpublic boolean deleteCustomer(Integer id) {\n\n\t\tboolean isDeleted = false;\n\n\t\tfor (Customer customer : customers) {\n\t\t\tif (customer.getId() == id) {\n\t\t\t\tcustomers.remove(customer);\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is deleted from the list\");\n\t\t\t\tisDeleted = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Delete done : deleteCustomer.isDeleted = \" + isDeleted);\n\t\treturn isDeleted;\n\t}",
"@Test\r\n\tpublic void deleteTeamCustomerByManagerCustFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamCustomerByManagerCustFk \r\n\t\tInteger team_teamId_2 = 0;\r\n\t\tInteger related_customerbymanagercustfk_customerId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamCustomerByManagerCustFk(team_teamId_2, related_customerbymanagercustfk_customerId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamCustomerByManagerCustFk\r\n\t}",
"Set<AccountModel> findAllByCustomerId(String customerId) throws CustomerException;",
"@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}",
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);",
"public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }",
"public void updateCustomer(String id) {\n\t\t\n\t}"
] |
[
"0.7327843",
"0.7254525",
"0.6973654",
"0.6939429",
"0.6910097",
"0.6842436",
"0.68320566",
"0.6809333",
"0.67892134",
"0.6770294",
"0.67604387",
"0.67604387",
"0.6756681",
"0.67524016",
"0.67324585",
"0.67175627",
"0.67021817",
"0.66970587",
"0.66689265",
"0.6620056",
"0.6618685",
"0.65969527",
"0.65737164",
"0.6561979",
"0.6558714",
"0.6544853",
"0.6514705",
"0.65091586",
"0.64923966",
"0.6476965",
"0.6471068",
"0.6459066",
"0.6453302",
"0.64444125",
"0.64172536",
"0.6390833",
"0.63905686",
"0.63799596",
"0.63757706",
"0.6346125",
"0.6342749",
"0.6338356",
"0.63319755",
"0.63270736",
"0.6325553",
"0.632356",
"0.6313575",
"0.62896436",
"0.6282361",
"0.6267377",
"0.6243575",
"0.6240585",
"0.6239758",
"0.6238803",
"0.62376887",
"0.62376887",
"0.62345254",
"0.62339765",
"0.62278056",
"0.6207525",
"0.6204296",
"0.6202261",
"0.61916345",
"0.6182843",
"0.6178719",
"0.6169835",
"0.6162615",
"0.61598605",
"0.61571467",
"0.61510634",
"0.6150884",
"0.61415106",
"0.6133961",
"0.6123268",
"0.6117638",
"0.6110849",
"0.61053205",
"0.60998005",
"0.6097765",
"0.60971844",
"0.60863084",
"0.60807776",
"0.6077224",
"0.60765785",
"0.6063487",
"0.60631335",
"0.60626626",
"0.60589087",
"0.6041396",
"0.60375595",
"0.6036309",
"0.60360634",
"0.6023823",
"0.6014286",
"0.6013407",
"0.60078555",
"0.6006105",
"0.59871805",
"0.5983956",
"0.5958247"
] |
0.6178727
|
64
|
Method destroyById__customers definition ends here.. Method updateById__customers definition
|
public void updateById__customers( String qualificationId, String fk, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.put("fk", fk);
hashMapObject.putAll(data);
invokeStaticMethod("prototype.__updateById__customers", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
if(response != null){
CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);
if(context != null){
try {
Method method = customerRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(customerRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
//customerRepo.addStorage(context);
}
Map<String, Object> result = Util.fromJson(response);
Customer customer = customerRepo.createObject(result);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = customer.getClass().getMethod("save__db");
method.invoke(customer);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
callback.onSuccess(customer);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void deleteCustomerById(int customerId);",
"void deleteCustomerById(Long id);",
"void updateCustomerById(Customer customer);",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }",
"public void DeleteCust(String id);",
"public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete the object with the primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// delete object with primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\n\t\ttheQuery.executeUpdate();\n\t}",
"@DeleteMapping(\"/customer/id/{id}\")\r\n\tpublic Customer deleteCustomerbyId(@PathVariable(\"id\") int customerId) {\r\n\tif(custService.deleteCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.deleteCustomerbyId(customerId);\r\n\t}",
"@Override\n public void deleteCustomer(UUID id) {\n log.debug(\"Customer has been deleted: \"+id);\n }",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(int theId) {\n\t\tcustomerDAO.deleteCustomer(theId);\n\t}",
"@Override\n\tpublic void deleteCustomer(Long custId) {\n\t\tcustomerRepository.deleteById(custId);\n\t\t\n\t}",
"@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}",
"void delete(Customer customer);",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now delete the customer using parameter theId i.e., Customer id (primary key)\n\t\t//HQL query\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\n\t\t//prev parameter theId is assigned to customerId\n\t\ttheQuery.setParameter(\"customerId\",theId);\n\n\t\t//this works with update, delete , so on ...\n\t\ttheQuery.executeUpdate();\n\n\t}",
"public void deleteCustomerbyId(int i) {\n\t\tObjectSet result = db.queryByExample(new Customer(i, null, null, null, null, null));\n\n\t\twhile (result.hasNext()) {\n\t\t\tdb.delete(result.next());\n\t\t}\n\t\tSystem.out.println(\"\\nEsborrat el customer \" + i);\n\t}",
"@DELETE\n\t@Path(\"/delete\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic void delCustomer(String id)\n\t\t\tthrows MalformedURLException, RemoteException, NotBoundException, ClassNotFoundException, SQLException {\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Delete the customers table\n\t\tdb.Delete(\"DELETE FROM CUSTOMERS WHERE id='\" + id + \"'\");\n\n\t\t// Delete the bookings table\n\t\tdb.Delete(\"DELETE FROM BOOKINGS WHERE CUSTOMERID='\" + id + \"'\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\t}",
"public boolean deleteCustomer(String custId);",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.DELETE)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void removeCustomer(@PathVariable(\"id\") int id){\n //simply remove the customer using the id. If it does not exist, nothing will happen anyways\n service.removeCustomer(id);\n }",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }",
"@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerAddres : {}\", id);\n customerAddresRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerAddres\", id.toString())).build();\n }",
"private void deleteCustomerById(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int idCustomer = Integer.parseInt(request.getParameter(\"id\"));\n CustomerDao.deleteCustomer(idCustomer);\n response.sendRedirect(\"/\");\n }",
"@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\")\n\t public ResponseEntity<?> deleteCustomer(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.deleteCustomer(id, customer);\n\t }",
"void deleteCustomerDDPayById(int id);",
"@Override\n\t@Transactional\n\tpublic void delete(Long id) {\n\t\tcustomerDAO.deleteById(id);\n\t}",
"@GetMapping(\"/delete\")\r\n\tpublic String deleteCustomer(@RequestParam(\"customerId\") int id){\n\t\tcustomerService.deleteCustomer(id);\r\n\t\t\r\n\t\t//send over to our form\r\n\t\treturn \"redirect:/customer/list\";\r\n\t}",
"@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"@Override\n\tpublic void delete(Customer o) {\n\n\t\tif (o.getId() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString deleteQuery = \"DELETE FROM TB_customer WHERE \" + COLUMN_NAME_ID + \"=\" + o.getId();\n\n\t\ttry (Statement deleteStatement = dbCon.createStatement()) {\n\t\t\tdeleteStatement.execute(deleteQuery);\n\t\t} catch (SQLException s) {\n\t\t\tSystem.out.println(\"Delete of customer \" + o.getId() + \" falied : \" + s.getMessage());\n\t\t}\n\t}",
"@DeleteMapping(\"/customers/{customerId}\")\n public String deleteCustomer(@PathVariable int customerId) {\n CustomerHibernate customerHibernate = customerService.findById(customerId);\n\n if (customerHibernate == null) {\n throw new RuntimeException(\"Customer id not found - \" + customerId);\n }\n customerService.deleteById(customerId);\n\n return String.format(\"Deleted customer id - %s \", customerId);\n }",
"@ApiOperation(value = \"Delete a customer\", notes = \"\")\n @DeleteMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public void deleteCustomer(@PathVariable Long customerId) {\n\n customerService.deleteCustomerById(customerId);\n\n }",
"@DeleteMapping()\n public Customer deleteCustomer(@RequestBody Customer customer ) {\n customerRepository.delete(customer);\n return customerRepository.findById(customer.getId()).isPresent() ? customer : null;\n }",
"@DeleteMapping(\"/{id}\")\n public Boolean deleteCustomer(@PathVariable(\"id\") Long customerId) {\n return true;\n }",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n\t\treturn false;\n\t}",
"void removeCustomer(Customer customer);",
"@Test\n\tpublic void updateCustomer() {\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tlong id = customer.getId();\n\n\t\t// When\n\t\tICustomer cus = customerController.update(id, name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertEquals(name, cus.getName());\n\t\tAssert.assertEquals(address, cus.getAddress());\n\t\tAssert.assertEquals(telephoneNumber, cus.getTelephoneNumber());\n\t\tAssert.assertEquals(id, cus.getId());\n\t}",
"@Override\n\tpublic int deleteCustomerReprieve(Integer id) {\n\t\treturn customerDao.deleteCustomerReprieve(id);\n\t}",
"public void destroyById__customers( String qualificationId, String fk, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n invokeStaticMethod(\"prototype.__destroyById__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n Session session =sessionFactory.getCurrentSession();\n Customer customer= getCustomer(customerId);\n session.delete(customer);\n\t\treturn true;\n\t}",
"public void update(Customer customer) {\n\n\t}",
"public void deleteCustomer(Customer customer){\n _db.delete(\"Customer\", \"customer_name = ?\", new String[]{customer.getName()});\n }",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic boolean deleteCustomer(int customerID) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}",
"@PutMapping(\"/customerupdate\")\n\tpublic void update(@RequestBody Customer theCustomer) {\n\t\t// checking whether the customer exists or not\n\t\tCustomer customerExists = customerServices.findByID(theCustomer.getMobile_number());\n\n\t\tif (customerExists != null) {\n\t\t\tcustomerServices.save(theCustomer);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Customer with customer id - \" + theCustomer + \" not exists\");\n\t\t}\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(Customer customer) {\n\t\thibernateTemplate.delete(customer);\n\n\t\tSystem.out.println(customer + \"is deleted\");\n\t}",
"@Override\n\tpublic void deleteCoustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().delete(customer);\n\t}",
"@Override\n\tpublic void removeCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName() == null)\n\t\t\tthrow new Exception(\"No Such customer Exists.\");\n\t\t\n\t\tif(custCheck.getCustName().equalsIgnoreCase(customer.getCustName()) && customer.getId() == custCheck.getId()) {\n\t\t\ttry {\n\t\t\t\t\tStatement st = con.createStatement();\n\t\t\t\t\tString remove = String.format(\"delete from customer where id in('%d')\", \n\t\t\t\t\t\tcustomer.getId());\n\t\t\t\t\tst.executeUpdate(remove);\n\t\t\t\t\tSystem.out.println(\"Customer removed successfully\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB\");\n\t\t\t}finally {\n\t\t\t\ttry {\n\t\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@PutMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> updateCustomer(@PathVariable Long id, @RequestBody Customer customerDetails) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\tcustomer.setName(customerDetails.getName());\n\t\tcustomer.setAddress(customerDetails.getAddress());\n\t\tcustomer.setNic(customerDetails.getNic());\n\t\tcustomer.setUsername(customerDetails.getUsername());\n\t\tcustomer.setPassword(customerDetails.getPassword());\n\t\tcustomer.setBirthday(customerDetails.getBirthday());\n\t\tcustomer.setMobile(customerDetails.getMobile());\n\t\tcustomer.setReg_date(customerDetails.getReg_date());\n\t\tcustomer.setEmail(customerDetails.getEmail());\n\t\tcustomer.setImage(customerDetails.getImage());\n\t\tcustomer.setSec_ques_no(customerDetails.getSec_ques_no());\n\t\tcustomer.setSec_ques_answer(customerDetails.getSec_ques_answer());\n\t\tcustomer.setGender(customerDetails.getGender());\n\n\t\tCustomer updatedCustomer = customerRepository.save(customer);\n\t\treturn ResponseEntity.ok(updatedCustomer);\n\t}",
"public void deleteCustomer(Integer id) {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//query for deleting the account\n\t\tQuery<Customer> query = currentSession.createQuery(\n\t\t\t\t\t\t\t\t\t\"delete from Customer where customerId=:id\",Customer.class);\n\t\tquery.setParameter(id, id);\n\t\tquery.executeUpdate();\n\t}",
"public void delete__customers( String qualificationId, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n\n \n invokeStaticMethod(\"prototype.__delete__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"private void updateCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer updateCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(updateCustomer);\n response.sendRedirect(\"list\");\n\n }",
"public void delete(String custNo) {\n\t\tcstCustomerDao.update(custNo);\n\t\t\n\t}",
"public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}",
"@Test\n\tpublic void deleteCustomer() {\n\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tint originalLength = customerController.read().size();\n\n\t\t// When\n\t\tICustomer cus = customerController.delete(id);\n\n\t\t// Then\n\t\tint expected = originalLength - 1;\n\t\tint actual = customerController.read().size();\n\t\tAssert.assertEquals(expected, actual);\n\t\tAssert.assertNotNull(cus);\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@PostMapping(\"/customers\")\n\tpublic Customer savecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomer.setId(0); //here 0 is not id, we are telling saveorupdate() DAO method to insert the customer object coz it inserts if id is empty(so give 0 or null)\n\t\tthecustomerService.saveCustomer(thecustomer);\n\t\treturn thecustomer;\n\t}",
"public static void deleteCustomer(int customerID) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String deleteStatement = \"DELETE from customers WHERE Customer_ID = ?;\";\r\n DBQuery.setPreparedStatement(conn, deleteStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.setInt(1,customerID);\r\n ps.execute();\r\n\r\n if (ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n } else {\r\n System.out.println(\"no change\");\r\n }\r\n }",
"public void removeCustomer(int id) {\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] != null && customers[i].getID() == id) {\r\n customers[i] = null;\r\n return;\r\n }\r\n }\r\n System.err.println(\"Could not find a customer with id: \" + id);\r\n }",
"public void delete(Customer customer) {\n\t\tcustRepo.delete(customer);\n\t}",
"public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}",
"CustomerDto updateCustomer(CustomerDto customerDto);",
"void updateCustomer(int id, String[] updateInfo);",
"public void Delete(int id) {\n\t\tString sql4 = \"DELETE FROM customers where customer_id= \" + id;\n\t\ttry {\n\t\t\tstmt.executeUpdate(sql4);\n\t\t\tSystem.out.println(\"Deleted\");\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}",
"@DeleteMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Map<String, Boolean>> deleteCustomer(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\n\t\tcustomerRepository.delete(customer);\n\t\tMap<String, Boolean> response = new HashMap<>();\n\t\tresponse.put(\"deleted\", Boolean.TRUE);\n\t\treturn ResponseEntity.ok(response);\n\t}",
"@DeleteMapping(\"/customers/{customer_id}\")\n\tpublic String deletecustomer(@PathVariable(\"customer_id\") int customerid ) {\n\t\t\n\t\t//first check if there is a customer with that id, if not there then throw our exception to be handled by @ControllerAdvice\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t//if it is happy path(customer found) then go ahead and delete the customer\n\t\tthecustomerService.deleteCustomer(customerid);\n\t\treturn \"Deleted Customer with id: \"+customerid;\n\t}",
"@Override\r\n\tpublic void delete(String cust_ID) {\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(DELETE);\r\n\r\n\t\t\tpstmt.setString(1, cust_ID);\r\n\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured.\" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void deleteCustomer(Customer customer) {\n\n\t\tcustomers.remove(customer);\n\n\t\tString sql = \"UPDATE customer SET active = 0 WHERE customerId = ?\";\n\n\t\ttry ( Connection conn = DriverManager.getConnection(URL, USER_NAME, PASSWORD);\n\t\t\t\tPreparedStatement prepstmt = conn.prepareStatement(sql); ) {\n\n\t\t\tint customerId = Customer.getCustomerId(customer);\n\t\t\tprepstmt.setInt(1, customerId);\n\t\t\tprepstmt.executeUpdate();\n\n\t\t} catch (SQLException e){\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\n\t}",
"public void delete(Customer customer) {\r\n EntityManagerHelper.beginTransaction();\r\n CUSTOMERDAO.delete(customer);\r\n EntityManagerHelper.commit();\r\n renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()).requestRender();\r\n //renderManager.removeRenderer(renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()));\r\n }",
"public void removeACustomer(long id) {\r\n\t\tSystem.out.println(\"\\nRemoving the customer: \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nCustomer info: \" + customer);\r\n\t\tem.remove(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"@Override\n\tpublic void update(Customer t) {\n\n\t}",
"@Override\n\tpublic boolean updateCustomer(Integer id, Customer customer) {\n\n\t\tboolean isUpdated = false;\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcust.setUsername(customer.getUsername());\n\t\t\t\tcust.setFirstName(customer.getFirstName());\n\t\t\t\tcust.setLastName(customer.getLastName());\n\t\t\t\tcust.setEmail(customer.getEmail());\n\t\t\t\tcust.setUserType(customer.getUserType());\n\t\t\t\tcust.setPassword(customer.getPassword());\n\t\t\t\tcust.setAddress(customer.getAddress());\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is updated in the list\");\n\t\t\t\tisUpdated = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Update done : updateCustomer.isUpdated = \" + isUpdated);\n\t\treturn isUpdated;\n\t}",
"public boolean updatecustomer(long id , Customermodel customermodel) {\n\t\t Optional<Customermodel> customerd = customerdb.findById(id);\n\n\t\t\t\t\tif (customerd.isPresent()) {\n\t\t\t\t\t\tCustomermodel customer = customerd.get();\n\t\t\t\t\t\t\n\t\t\t\t\t\tcustomer.setDob(customermodel.getDob());\n\t\t\t\t\t\tcustomer.setName(customermodel.getName());\n\t\t\t\t\t\tcustomerdb.save(customer);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} \n\t\t \n\t }",
"@GET\n\t@Path(\"DeleteCustomer\")\n\tpublic Reply deleteCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().deleteCustomer(id);\n\t}",
"public void update(Customer myCust){\n }",
"@DeleteMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<?> deleteCustomerDetails(@PathVariable(\"id\") long id) {\n\t\tcustomerService.deleteCustomerDetails(id);\n\t\treturn ResponseEntity.ok().body(\"Customer Details is deleted\");\n\n\t}",
"@Override\n\tpublic Customer update(Customer o) {\n\n\t\tif (o == null || o.getId() == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString updateQuery = String.format(\"UPDATE TB_customer SET \");\n\t\tupdateQuery += COLUMN_NAME_FIRST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_LAST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_EMAIL + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_KNICKNAME + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_BIRTHDATE + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_CREDITS + \"= ?\";\n\t\tupdateQuery += \" WHERE \" + COLUMN_NAME_ID + \"= ? ;\";\n\n\t\ttry (PreparedStatement pS = dbCon.prepareStatement(updateQuery)) {\n\n\t\t\tpS.setString(1, o.getFirstName());\n\t\t\tpS.setString(2, o.getLastName());\n\t\t\tpS.setString(3, o.getEmail());\n\t\t\tpS.setString(4, o.getKnickname());\n\t\t\tpS.setDate(5, java.sql.Date.valueOf(o.getBirthdate()));\n\t\t\tpS.setDouble(6, o.getCredits());\n\t\t\tpS.setInt(7, o.getId());\n\t\t\tpS.executeUpdate();\n\n\t\t\tpS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Update of tb_customer \" + o.getId() + \" failed : \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t\treturn o;\n\t}",
"@Override\n\tpublic Uni<Customer> updateCustomer(Customer customer) {\n\t\tFunction<Customer, Uni<? extends Customer>> update = entity -> {\n\t\t\tentity.setName(customer.getName());\n\t\t\tentity.setAddress(customer.getAddress());\n\t\t\treturn repo.flush().onItem().transform(ignore -> entity);\n\t\t};\n\t\treturn repo.findById(customer.getId()).onItem().ifNotNull().transformToUni(update);\n\t}",
"@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = DELETE, value = \"/{id}\")\n\tpublic Mono<ResponseEntity<?>> deleteCustomer(@PathVariable @NotNull ObjectId id) {\n\n\t\tfinal Mono<ResponseEntity<?>> noContent = Mono.just(noContent().build());\n\n\t\treturn repo.existsById(id)\n\t\t\t.filter(Boolean::valueOf) // Delete only if customer exists\n\t\t\t.flatMap(exists -> repo.deleteById(id).then(noContent))\n\t\t\t.switchIfEmpty(noContent);\n\t}",
"@Override\n\tpublic Uni<Boolean> deleteCustomerById(Long cid) {\n\t\treturn repo.deleteById(cid).chain(repo::flush).onItem().transform(ignore ->true);\n\t}",
"public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }",
"void removeAuthorisationsOfCustomer(CustomerModel customer);",
"@Override\n\tpublic void updateCustomer(Customer customer) throws Exception{\n\t\tConnection con = pool.getConnection();\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName()== null)\n\t\t\treturn;\n\t\t\t//throws Exception no customer found in DB\n\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tString update = String.format(\"update customer set CUST_NAME=('%s') where id in ('%d')\" +\n\t\t\t\" update customer set PASSWORD=('%s')\"\n\t\t\t\t\t+ \" where id in('%d')\",\n\t\t\t\t\tcustomer.getCustName(),\n\t\t\t\t\tcustomer.getId(),\n\t\t\t\t\tcustomer.getPassword(),\n\t\t\t\t\tcustomer.getId());\n\t\t\t\n\t\t\tst.executeUpdate(update);\n\t\t\tSystem.out.println(\"Customer updated successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to update A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\n\t}",
"public static void updateCustomer(int customerID, String name, String address, String firstDivision, String postalCode, String phoneNumber) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String insertStatement = \"UPDATE customers SET Customer_Name = ?, Address = ?, Postal_Code = ?, Phone = ?, Last_Update = ?, Last_Updated_By = ?, Division_ID = ? WHERE Customer_ID = ?;\";\r\n DBQuery.setPreparedStatement(conn, insertStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n int divisionID = getDivisionID(firstDivision);\r\n String userName = DBUsers.getUser();\r\n\r\n ps.setString(1,name);\r\n ps.setString(2, address);\r\n ps.setString(3,postalCode);\r\n ps.setString(4,phoneNumber);\r\n ps.setTimestamp(5, Timestamp.valueOf(LocalDateTime.now()));\r\n ps.setString(6,userName);\r\n ps.setInt(7,divisionID);\r\n ps.setInt(8, customerID);\r\n\r\n ps.execute();\r\n\r\n if(ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n }\r\n else {\r\n System.out.println(\"no change\");\r\n }\r\n }",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mobile Customer delete()\");\n\t}",
"public void delete(Customer customer) throws CustomerNotFoundException {\r\n customer = this.entityManager.merge(customer);\r\n this.entityManager.remove(customer);\r\n }",
"public void deleteCustomer(String id) {\n\t\tConnection connection = DBConnect.getDatabaseConnection();\n\t\ttry {\n\t\t\tStatement deleteStatement = connection.createStatement();\n\t\t\t\n\t\t\tString deleteQuery = \"DELETE FROM Customer WHERE CustomerID='\"+id+\"')\";\n\t\t\tdeleteStatement.executeUpdate(deleteQuery);\t\n\t\t\t\n\t\t\t//TODO delete all DB table entries related to this entry:\n\t\t\t//address\n\t\t\t//credit card\n\t\t\t//All the orders?\n\t\t\t\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}finally {\n\t\t\tif(connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\n\t}",
"@Override\n\tpublic void deleteOne(Customer c) {\n\t\tthis.getHibernateTemplate().delete(c);\n\t}",
"@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }"
] |
[
"0.7544591",
"0.7464879",
"0.72973084",
"0.7249688",
"0.711007",
"0.7108712",
"0.7084478",
"0.70258784",
"0.6986334",
"0.698109",
"0.6965555",
"0.692878",
"0.69249326",
"0.69249326",
"0.69208956",
"0.68622375",
"0.68609965",
"0.6837442",
"0.6816167",
"0.68019116",
"0.67956096",
"0.67928946",
"0.67615616",
"0.67591065",
"0.6742744",
"0.67366064",
"0.6715864",
"0.6715273",
"0.66921675",
"0.6660329",
"0.66145027",
"0.6592911",
"0.65853405",
"0.6583251",
"0.6583251",
"0.6570097",
"0.6546512",
"0.65397704",
"0.6533205",
"0.65148777",
"0.65038836",
"0.65032375",
"0.6501755",
"0.64842224",
"0.647498",
"0.6471923",
"0.64681756",
"0.64567494",
"0.6443658",
"0.6429261",
"0.64245075",
"0.64199466",
"0.64184135",
"0.64167356",
"0.639864",
"0.6394973",
"0.63947827",
"0.63790613",
"0.6364761",
"0.63570136",
"0.6356898",
"0.6356471",
"0.63485813",
"0.6334207",
"0.63306296",
"0.63289267",
"0.6326383",
"0.6326383",
"0.63258004",
"0.63194877",
"0.63170254",
"0.6316078",
"0.6291123",
"0.62644464",
"0.62629193",
"0.62567407",
"0.6254459",
"0.6251142",
"0.6249264",
"0.62473136",
"0.6247087",
"0.62460077",
"0.6234642",
"0.6226604",
"0.6225815",
"0.62174326",
"0.62137055",
"0.6197146",
"0.6196021",
"0.61911416",
"0.61847776",
"0.61759126",
"0.6175404",
"0.6172072",
"0.61621577",
"0.6137751",
"0.6137019",
"0.6133589",
"0.6131375",
"0.6128099",
"0.61267036"
] |
0.0
|
-1
|
Method updateById__customers definition ends here.. Method link__customers definition
|
public void link__customers( String qualificationId, String fk, final ObjectCallback<Customer> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.put("fk", fk);
invokeStaticMethod("prototype.__link__customers", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
if(response != null){
CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);
if(context != null){
try {
Method method = customerRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(customerRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
//customerRepo.addStorage(context);
}
Map<String, Object> result = Util.fromJson(response);
Customer customer = customerRepo.createObject(result);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = customer.getClass().getMethod("save__db");
method.invoke(customer);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
callback.onSuccess(customer);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void updateCustomer(String id) {\n\t\t\n\t}",
"void updateCustomerById(Customer customer);",
"public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);",
"@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}",
"public void update(Customer customer) {\n\n\t}",
"@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}",
"@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }",
"void updateCustomer(int id, String[] updateInfo);",
"@Override\n\tpublic void update(Customer t) {\n\n\t}",
"public void update(Customer myCust){\n }",
"@Test\n\tpublic void updateCustomer() {\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tlong id = customer.getId();\n\n\t\t// When\n\t\tICustomer cus = customerController.update(id, name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertEquals(name, cus.getName());\n\t\tAssert.assertEquals(address, cus.getAddress());\n\t\tAssert.assertEquals(telephoneNumber, cus.getTelephoneNumber());\n\t\tAssert.assertEquals(id, cus.getId());\n\t}",
"private void updateCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer updateCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(updateCustomer);\n response.sendRedirect(\"list\");\n\n }",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public boolean updatecustomer(long id , Customermodel customermodel) {\n\t\t Optional<Customermodel> customerd = customerdb.findById(id);\n\n\t\t\t\t\tif (customerd.isPresent()) {\n\t\t\t\t\t\tCustomermodel customer = customerd.get();\n\t\t\t\t\t\t\n\t\t\t\t\t\tcustomer.setDob(customermodel.getDob());\n\t\t\t\t\t\tcustomer.setName(customermodel.getName());\n\t\t\t\t\t\tcustomerdb.save(customer);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} \n\t\t \n\t }",
"public int updateCustomer(Map customerMap, Map allData){\r\n\t\t\r\n\t\treturn 0;\r\n\t}",
"@PutMapping(\"/{id}\")\n public String update(@ModelAttribute(CUSTOMER) CustomerDTO customerDTO, @PathVariable(\"id\") long id) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n customer.getActualAddress().setModified(LocalDateTime.now());\n customerService.updateCustomer(customer, id);\n return REDIRECT_CLIENTS;\n }",
"@Override\n\tpublic boolean updateCustomer(Integer id, Customer customer) {\n\n\t\tboolean isUpdated = false;\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcust.setUsername(customer.getUsername());\n\t\t\t\tcust.setFirstName(customer.getFirstName());\n\t\t\t\tcust.setLastName(customer.getLastName());\n\t\t\t\tcust.setEmail(customer.getEmail());\n\t\t\t\tcust.setUserType(customer.getUserType());\n\t\t\t\tcust.setPassword(customer.getPassword());\n\t\t\t\tcust.setAddress(customer.getAddress());\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is updated in the list\");\n\t\t\t\tisUpdated = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Update done : updateCustomer.isUpdated = \" + isUpdated);\n\t\treturn isUpdated;\n\t}",
"@Override\n\tpublic void updateCustomer(Customer customer) throws Exception{\n\t\tConnection con = pool.getConnection();\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName()== null)\n\t\t\treturn;\n\t\t\t//throws Exception no customer found in DB\n\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tString update = String.format(\"update customer set CUST_NAME=('%s') where id in ('%d')\" +\n\t\t\t\" update customer set PASSWORD=('%s')\"\n\t\t\t\t\t+ \" where id in('%d')\",\n\t\t\t\t\tcustomer.getCustName(),\n\t\t\t\t\tcustomer.getId(),\n\t\t\t\t\tcustomer.getPassword(),\n\t\t\t\t\tcustomer.getId());\n\t\t\t\n\t\t\tst.executeUpdate(update);\n\t\t\tSystem.out.println(\"Customer updated successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to update A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\n\t}",
"@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}",
"@PutMapping(\"/customerupdate\")\n\tpublic void update(@RequestBody Customer theCustomer) {\n\t\t// checking whether the customer exists or not\n\t\tCustomer customerExists = customerServices.findByID(theCustomer.getMobile_number());\n\n\t\tif (customerExists != null) {\n\t\t\tcustomerServices.save(theCustomer);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Customer with customer id - \" + theCustomer + \" not exists\");\n\t\t}\n\t}",
"@Override\n\tpublic Customer update(Customer o) {\n\n\t\tif (o == null || o.getId() == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString updateQuery = String.format(\"UPDATE TB_customer SET \");\n\t\tupdateQuery += COLUMN_NAME_FIRST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_LAST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_EMAIL + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_KNICKNAME + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_BIRTHDATE + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_CREDITS + \"= ?\";\n\t\tupdateQuery += \" WHERE \" + COLUMN_NAME_ID + \"= ? ;\";\n\n\t\ttry (PreparedStatement pS = dbCon.prepareStatement(updateQuery)) {\n\n\t\t\tpS.setString(1, o.getFirstName());\n\t\t\tpS.setString(2, o.getLastName());\n\t\t\tpS.setString(3, o.getEmail());\n\t\t\tpS.setString(4, o.getKnickname());\n\t\t\tpS.setDate(5, java.sql.Date.valueOf(o.getBirthdate()));\n\t\t\tpS.setDouble(6, o.getCredits());\n\t\t\tpS.setInt(7, o.getId());\n\t\t\tpS.executeUpdate();\n\n\t\t\tpS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Update of tb_customer \" + o.getId() + \" failed : \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t\treturn o;\n\t}",
"public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }",
"@Override\n\tpublic Uni<Customer> updateCustomer(Customer customer) {\n\t\tFunction<Customer, Uni<? extends Customer>> update = entity -> {\n\t\t\tentity.setName(customer.getName());\n\t\t\tentity.setAddress(customer.getAddress());\n\t\t\treturn repo.flush().onItem().transform(ignore -> entity);\n\t\t};\n\t\treturn repo.findById(customer.getId()).onItem().ifNotNull().transformToUni(update);\n\t}",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"@PutMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> updateCustomer(@PathVariable Long id, @RequestBody Customer customerDetails) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\tcustomer.setName(customerDetails.getName());\n\t\tcustomer.setAddress(customerDetails.getAddress());\n\t\tcustomer.setNic(customerDetails.getNic());\n\t\tcustomer.setUsername(customerDetails.getUsername());\n\t\tcustomer.setPassword(customerDetails.getPassword());\n\t\tcustomer.setBirthday(customerDetails.getBirthday());\n\t\tcustomer.setMobile(customerDetails.getMobile());\n\t\tcustomer.setReg_date(customerDetails.getReg_date());\n\t\tcustomer.setEmail(customerDetails.getEmail());\n\t\tcustomer.setImage(customerDetails.getImage());\n\t\tcustomer.setSec_ques_no(customerDetails.getSec_ques_no());\n\t\tcustomer.setSec_ques_answer(customerDetails.getSec_ques_answer());\n\t\tcustomer.setGender(customerDetails.getGender());\n\n\t\tCustomer updatedCustomer = customerRepository.save(customer);\n\t\treturn ResponseEntity.ok(updatedCustomer);\n\t}",
"public static void updateCustomer(int customerID, String name, String address, String firstDivision, String postalCode, String phoneNumber) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String insertStatement = \"UPDATE customers SET Customer_Name = ?, Address = ?, Postal_Code = ?, Phone = ?, Last_Update = ?, Last_Updated_By = ?, Division_ID = ? WHERE Customer_ID = ?;\";\r\n DBQuery.setPreparedStatement(conn, insertStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n int divisionID = getDivisionID(firstDivision);\r\n String userName = DBUsers.getUser();\r\n\r\n ps.setString(1,name);\r\n ps.setString(2, address);\r\n ps.setString(3,postalCode);\r\n ps.setString(4,phoneNumber);\r\n ps.setTimestamp(5, Timestamp.valueOf(LocalDateTime.now()));\r\n ps.setString(6,userName);\r\n ps.setInt(7,divisionID);\r\n ps.setInt(8, customerID);\r\n\r\n ps.execute();\r\n\r\n if(ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n }\r\n else {\r\n System.out.println(\"no change\");\r\n }\r\n }",
"CustDataNotesResponseDTO updateCustDataNotes(String id,CustDataNotesRequestDTO custDataNotesRequestDTO) throws Exception;",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"public static void update(Customer aCustomer) throws NotFoundException\r\n\t{\n\t\tphoneNumber = aCustomer.getPhoneNo();\r\n\t\tname = aCustomer.getName();\r\n\t\taddress = aCustomer.getAddress();\r\n\r\n\t\t// define the SQL query statement using the phone number key\r\n\t\tString sqlUpdate = \"Update CustomerTable \" +\r\n\t\t\t\t\t\t\t\t \" SET CustomerName = '\" + name +\"', \" +\r\n\t\t\t\t\t\t\t\t \" address = '\" + address +\"' \" +\r\n\t\t\t\t\t\t\t\t \" WHERE PhoneNo = '\" + phoneNumber + \"'\";\r\n\r\n\t\t// see if this customer exists in the database\r\n\t\t// NotFoundException is thrown by find method\r\n\t\ttry\r\n\t\t{\r\n\t\t\tCustomer c = Customer.find(phoneNumber);\r\n \t\t// if found, execute the SQL update statement\r\n \t\tint result = aStatement.executeUpdate(sqlUpdate);\r\n \t}\r\n\t\tcatch (SQLException e)\r\n\t\t\t{ System.out.println(e);\t}\r\n\t}",
"@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}",
"CustomerDto updateCustomer(CustomerDto customerDto);",
"@Override\n\t@Transactional\n\tpublic void updateCustomer(Customer customer) {\n\n\t\thibernateTemplate.update(customer);\n\t\tSystem.out.println(\"customer is updated \" + customer);\n\n\t}",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"@Override\n\tpublic void updateCustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().update(customer);\n\t}",
"@PutMapping(\"/customers\")\n public void updateCustomer(@RequestBody CustomerHibernate theCustomerHibernate) {\n customerService.save(theCustomerHibernate);\n }",
"@RequestMapping(method = RequestMethod.PUT, value = \"/{id}\")\n\t public ResponseEntity<?> updateUser(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.updateCustomer(id, customer);\n\t }",
"public void editCustomer(Customer c) {\n\t\tconnector.editCustomer(c);\n\t\t\n\t\t// Edit entries in table \"Nummern\"\n\t\tconnector.editNumbers(c, c.getNumbers());\n\t\t\n\t\tupdateCustomers();\n\t}",
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"private void updateCustomer(Customer customer) {\n List<String> args = Arrays.asList(\n customer.getCustomerName(),\n customer.getAddress(),\n customer.getPostalCode(),\n customer.getPhone(),\n customer.getLastUpdate().toString(),\n customer.getLastUpdatedBy(),\n String.valueOf(customer.getDivisionID()),\n String.valueOf(customer.getCustomerID())\n );\n DatabaseConnection.performUpdate(\n session.getConn(),\n Path.of(Constants.UPDATE_SCRIPT_PATH_BASE + \"UpdateCustomer.sql\"),\n args\n );\n }",
"public void update(Customer customer) throws SQLException {\r\n\t\tString updateSql = \"UPDATE \" + tableName\r\n\t\t\t\t+ \" SET name=?,surname=?,birth_date=?,birth_place=?,address=?,city=?,province=?,\"\r\n\t\t\t\t+ \" cap=?,phone_number=?,newsletter=?,email=?\" + \"WHERE (id = ?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(updateSql);\r\n\t\t\tpreparedStatement.setString(1, customer.getName());\r\n\t\t\tpreparedStatement.setString(2, customer.getSurname());\r\n\t\t\tpreparedStatement.setDate(3, (Date) customer.getBirthdate());\r\n\t\t\tpreparedStatement.setString(4, customer.getBirthplace());\r\n\t\t\tpreparedStatement.setString(5, customer.getAddress());\r\n\t\t\tpreparedStatement.setString(6, customer.getCity());\r\n\t\t\tpreparedStatement.setString(7, customer.getProvince());\r\n\t\t\tpreparedStatement.setInt(8, customer.getCap());\r\n\t\t\tpreparedStatement.setString(9, customer.getPhoneNumber());\r\n\t\t\tpreparedStatement.setInt(10, customer.getNewsletter());\r\n\t\t\tpreparedStatement.setString(11, customer.getEmail());\r\n\t\t\tpreparedStatement.setInt(12, customer.getId());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}",
"public void update(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"UPDATE customer SET name = ?, id = ?, phone = ? WHERE customer_key = ?\");\n ppst.setString(1, c.getName());\n ppst.setString(2, c.getId());\n ppst.setString(3, c.getPhone());\n ppst.setInt(4, c.getCustomerKey());\n ppst.executeUpdate();\n System.out.println(\"Updated successfully.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Update error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }",
"public Customer updateCustomer(@RequestBody Customer theCustomer)\n {\n customerService.save(theCustomer);\n return theCustomer;\n }",
"public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}",
"@Override\n\tpublic Customers update(Customers updatecust) {\n\t\tCustomers custpersist= search(updatecust.getId());\n\t\tif (custpersist==null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers upcust = CustRepo.save(updatecust);\n\t\treturn upcust;\n\t}",
"public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}",
"public Customer Update(int id, String attribute, Customer customer) {\n\t\t\n\t\tString sql = \"\";\n\t\t\n\t\tswitch(attribute) {\n\t\tcase \"NAME\":\n\t\t\tsql = \"UPDATE customers set name = '\"+ customer.getName() + \"' where customer_id = \"+id;\n\t\t\tbreak;\n\t\tcase \"EMAIL\":\n\t\t\tsql = \"UPDATE customers set email = '\"+ customer.getEmail() + \"' where customer_id = \"+id;\n\t\t\tbreak;\n\t\tcase \"ADDRESS\":\n\t\t\tsql = \"UPDATE customers set address = '\"+ customer.getAddress() + \"' where customer_id = \"+id;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tstmt.executeUpdate(sql);\n\t\t\treturn readById(id);\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\treturn null;\n\t}",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}",
"@PostMapping(\"/customers\")\n\tpublic Customer savecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomer.setId(0); //here 0 is not id, we are telling saveorupdate() DAO method to insert the customer object coz it inserts if id is empty(so give 0 or null)\n\t\tthecustomerService.saveCustomer(thecustomer);\n\t\treturn thecustomer;\n\t}",
"@Override\r\n\tpublic Customer updateCustomer(Customer customer) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer2 = null;\r\n\t\toptionalCustomer = customerRepository.findById(customer.getUserId());\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer2 = customerRepository.save(customer);\r\n\t\t\treturn customer2;\r\n\t\t} else {\r\n\t\t\tthrow new EntityUpdationException(\"Customer With Id \" + customer.getUserId() + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}",
"public void updateById__customers( String qualificationId, String fk, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"prototype.__updateById__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);\n if(context != null){\n try {\n Method method = customerRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(customerRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //customerRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Customer customer = customerRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = customer.getClass().getMethod(\"save__db\");\n method.invoke(customer);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(customer);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"@Override\n\tpublic boolean update(int customerId,String c) {\n\t\tString query=\"UPDATE Customer SET city=? where Customer_ID=?\";\n\t\ttry {\n\t\t\tPreparedStatement preparedStatement=DatabaseConnectionDAO.geConnection().prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, customerId);\n\t\t\tpreparedStatement.setString(2, c);\n\t\t\tint n=preparedStatement.executeUpdate();\n\t\t\tif(n>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"updated\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"enter valid data\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn false;\n\t}",
"public boolean updateCustomer(String customerJSON);",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.PUT)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updateCustomer(@PathVariable(\"id\") int id, @RequestBody @Valid CustomerViewModel customerViewModel){\n //check if the id matches the request body. Path variable and the\n //user passed data (customerId) must match to proceed.\n //so you need to input in both path variable and the requestbody\n if(id != customerViewModel.getCustomerId()){\n //throw illegal arguement\n }\n\n //if it does match, update that customer\n service.updateCustomer(customerViewModel);\n }",
"@PutMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<?> updateDetails(@PathVariable(\"id\") long id, @RequestBody CustomerDetails customerDetails) {\n\t\tcustomerService.updateDetails(id, customerDetails);\n\t\treturn ResponseEntity.ok().body(\"Customer Details is updated sucessfully\");\n\t}",
"public static void updateCustomerAddress( RESTActions restActions, Hashtable<String,String> data, \n\t\t\tHashtable<String,String> headerTable, String customerId, String addressId ) throws Throwable {\n\t\tint iExpectedResponseCode = 204;\n\t\t\n\t\tString updateAddressURL = buildCustomerAddressURL( customerId, addressId );\n\t\tLOG.info(\"##### Built URL: \" + updateAddressURL);\n\t\t\n\t\tString updateAddressRequestBody = buildPostAddressRequestBody();\n\t\tLOG.info(\"##### Built request body: \" + updateAddressRequestBody);\n\t\t\n\t\tLOG.info(\"##### Making HTTP request to the PUT Address API...\");\n\t\tClientResponse clientResponse = restActions.putClientResponse(\n\t\t\t\tupdateAddressURL, updateAddressRequestBody, headerTable, null,\n\t\t\t\tRESTConstants.APPLICATION_JSON);\n\n\t\tLOG.info(\"##### Verifying HTTP response code...\");\n\t\tint iActualResponseCode = clientResponse.getStatus();\n\t\tString msg = String.format(\"WRONG HTTP RESPONSE CODE - EXPECTED %s, FOUND %s\",\n\t\t\t\tiExpectedResponseCode, iActualResponseCode);\n\t\trestActions.assertTrue(iExpectedResponseCode == iActualResponseCode, msg);\n\t}",
"int updateByPrimaryKey(OcCustContract record);",
"@Override\n\tpublic Customer updateName(Long id, String name) \n\t{\n\t\tCustomer customer = customerRepo.findById(id);\n\t\tcustomer.setName(name);\n\t\tcustomer = customerRepo.updateCustomer(customer);\n\t\treturn customer;\n\t}",
"int updateByPrimaryKey(CustomerVisit record);",
"public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }",
"public void update(Customer customer) throws CustomerNotFoundException {\r\n this.entityManager.merge(customer);\r\n }",
"CustomerOrder update(CustomerOrder customerOrder);",
"public Boolean updateCustomer(String customerId, Customer updatedValuedCustomer){\n Boolean success = false;\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"UPDATE Customer SET FirstName=?, LastName=?, Country=?, PostalCode=?, Phone=?, Email=? WHERE CustomerId = ?\");\n preparedStatement.setString(1, updatedValuedCustomer.getFirstName());\n preparedStatement.setString(2, updatedValuedCustomer.getLastName());\n preparedStatement.setString(3, updatedValuedCustomer.getCountry());\n preparedStatement.setString(4, updatedValuedCustomer.getPostalCode());\n preparedStatement.setString(5, updatedValuedCustomer.getPhoneNumber());\n preparedStatement.setString(6, updatedValuedCustomer.getEmail());\n preparedStatement.setString(7, customerId);\n\n int result = preparedStatement.executeUpdate();\n success = (result != 0);\n System.out.println(\"Added customer\");\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return success;\n }",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\tSession session =sessionFactory.getCurrentSession();\n\t\tsession.update(customer);\n\t\treturn true;\n\t}",
"public abstract CustomerOrder findOneForUpdate(Long id);",
"@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = PUT, value = \"/{id}\", consumes = { APPLICATION_JSON_UTF8_VALUE })\n\tpublic Mono<ResponseEntity<?>> updateCustomer(@PathVariable @NotNull ObjectId id,\n\t\t\t@RequestBody @Valid Customer customerToUpdate) {\n\n\t\treturn repo.existsById(id).flatMap(exists -> {\n\n\t\t\tif (!exists) {\n\t\t\t\tthrow new CustomerServiceException(HttpStatus.BAD_REQUEST,\n\t\t\t\t\t\"Customer does not exist, to create a new customer use POST instead.\");\n\t\t\t}\n\n\t\t\treturn repo.save(customerToUpdate).then(Mono.just(noContent().build()));\n\t\t});\n\t}",
"Boolean updateList(List<Customer> list);",
"@Test\r\n public void testupdateCustomer() throws Exception {\r\n System.out.println(\"updateCustomer\");\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n Server.Customer m = lesClients.get(2);\r\n DAOCustomer.updateCustomer(Con(),1, \"Costa\", \"Rui\",\"15 rue Paul\",\"77290\",\"Paris\",\"[email protected]\",\"M\");\r\n List<Server.Customer> results = DAOCustomer.loadCustomer(Con());\r\n Server.Customer r = results.get(2);\r\n assertFalse(m.getPrenom() == r.getPrenom());\r\n \r\n }",
"public void prepareUpdate() {\r\n\t\tlog.info(\"prepare for update customer...\");\r\n\t\tMap<String, String> params = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getRequestParameterMap();\r\n\t\tString id = params.get(\"customerIdParam\");\r\n\t\tlog.info(\"ID==\" + id);\r\n\t\tCustomer customer = customerService.searchCustomerById(new Long(id));\r\n\t\tcurrent.setCustomerId(customer.getCustomerId());\r\n\t\tcurrent.setCustomerCode(customer.getCustomerCode());\r\n\t\tcurrent.setCustomerName(customer.getCustomerName());\r\n\t\tcurrent.setTermOfPayment(customer.getTermOfPayment());\r\n\t\tcurrent.setCustomerGrade(customer.getCustomerGrade() != null ? customer.getCustomerGrade() : \"\");\r\n\t\tcurrent.setAddress(customer.getAddress());\r\n\t\tlog.info(\"prepare for update customer end...\");\r\n\t}",
"public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }",
"Boolean updateOrInsert(Customer customer);",
"@ApiOperation(value = \"Replace a customer by new data\", notes = \"\")\n @PutMapping(value = {\"/{customerId}\"},produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO updateCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) {\n return customerService.updateCustomer(customerId, customerDTO);\n }",
"@Override\r\n\tpublic void update(CustVO custVO) {\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(UPDATE);\r\n\r\n\t\t\tpstmt.setString(1, custVO.getCust_acc());\r\n\t\t\tpstmt.setString(2, custVO.getCust_pwd());\r\n\t\t\tpstmt.setString(3, custVO.getCust_name());\r\n\t\t\tpstmt.setString(4, custVO.getCust_sex());\r\n\t\t\tpstmt.setString(5, custVO.getCust_tel());\r\n\t\t\tpstmt.setString(6, custVO.getCust_addr());\r\n\t\t\tpstmt.setString(7, custVO.getCust_pid());\r\n\t\t\tpstmt.setString(8, custVO.getCust_mail());\r\n\t\t\tpstmt.setDate(9, custVO.getCust_brd());\r\n\t\t\tpstmt.setDate(10, custVO.getCust_reg());\r\n\t\t\tpstmt.setBytes(11, custVO.getCust_pic());\r\n\t\t\tpstmt.setString(12, custVO.getCust_status());\r\n\t\t\tpstmt.setString(13, custVO.getCust_niname());\r\n\t\t\tpstmt.setString(14, custVO.getCust_ID());\r\n\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured.\" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@PostMapping(\"/customers\")\n public Customer addCustomer(@RequestBody Customer theCustomer)\n {\n //also just in case they pass an id in JSON .. set id to o\n //this is to force a save of new item ... instead od update\n theCustomer.setId(0);\n customerService.save(theCustomer);\n return theCustomer;\n }",
"public void setCustId(Long custId) {\n this.custId = custId;\n }",
"public void updateListView(List<Customer> customers){\n\n this.customers= customers;\n if (recyclerView!=null){\n recyclerView.setAdapter(new CustomerListAdapter(getActivity().getApplicationContext(), customers));\n }\n }",
"@Override\n\t@Transactional\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tcustomerDAO.saveCustomer(theCustomer);\n\t\t\n\t}",
"public static void updatePersonDetails(int customerId, Database d) {\r\n\r\n\r\n\t\tCustomer oldCustomer = d.getCustomer(customerId);\r\n\t\tCustomer newCustomer = oldCustomer;\r\n\r\n\t\tboolean update = true;\r\n\t\tboolean[] updatecheck = new boolean[6];\r\n\t\tfor (int c = 0; c < 6; c++) {\r\n\r\n\t\t\tupdatecheck[c] = false;\r\n\r\n\t\t}\r\n\r\n\t\twhile (update) {\r\n\r\n\t\t\tSystem.out.println(\"Your current personal details are: \" + oldCustomer.name + \" , \" + oldCustomer.address\r\n\t\t\t\t\t+ \" , \" + oldCustomer.phone + \" , \" + oldCustomer.sex + \" , \" + oldCustomer.dob);\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"Press a number to change a value: name (1), address (2), phone(3), sex (4), dob(5), pin(6)\");\r\n\t\t\tSystem.out.println(\"To exit the updating sesson press 0.\");\r\n\t\t\tString input = inputScanner.next();\r\n\t\t\tString newvalue = \"\";\r\n\r\n\t\t\t// stops the updating process\r\n\t\t\tif (input.equals(\"0\")) {\r\n\t\t\t\tupdate = false;\r\n\t\t\t\tSystem.out.println(\"Updating stopped, changes are saved.\");\r\n\t\t\t// changes the customers name\r\n\t\t\t} else if (input.equals(\"1\")) {\r\n\t\t\t\tSystem.out.println(\"Insert new value!\");\r\n\t\t\t\twhile (updatecheck[1] == false) {\r\n\t\t\t\t\tnewvalue = (String) inputScanner.next();\r\n\t\t\t\t\tif (newvalue.length() >= 3 && newvalue.length() < 25) {\r\n\t\t\t\t\t\tnewCustomer.name = newvalue;\r\n\t\t\t\t\t\tupdatecheck[0] = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a name between 3 and 25 charakters.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t// changes the customers address\r\n\t\t\t} else if (input.equals(\"2\")) {\r\n\t\t\t\tSystem.out.println(\"Insert new value!\");\r\n\t\t\t\twhile (updatecheck[1] == false) {\r\n\t\t\t\t\tnewvalue = (String) inputScanner.next();\r\n\t\t\t\t\tif (newvalue.length() >= 5 && newvalue.length() < 40) {\r\n\t\t\t\t\t\tnewCustomer.address = newvalue;\r\n\t\t\t\t\t\tupdatecheck[1] = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a name between 5 and 40 charakters.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t// changes the customers phonenumber\t\r\n\t\t\t} else if (input.equals(\"3\")) {\r\n\t\t\t\tSystem.out.println(\"Insert new value!\");\r\n\t\t\t\twhile (updatecheck[2] == false) {\r\n\t\t\t\t\tnewvalue = (String) inputScanner.next();\r\n\t\t\t\t\tif (newvalue.length() >= 9 && newvalue.length() < 20) {\r\n\t\t\t\t\t\tnewCustomer.phone = newvalue;\r\n\t\t\t\t\t\tupdatecheck[2] = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a name between 9 and 20 charakters.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t// changes the customers gender\r\n\t\t\t} else if (input.equals(\"4\")) {\r\n\t\t\t\tSystem.out.println(\"Insert new value!\");\r\n\t\t\t\twhile (updatecheck[3] == false) {\r\n\t\t\t\t\tnewvalue = (String) inputScanner.next();\r\n\t\t\t\t\tif (newvalue.equals(\"male\") || newvalue.equals(\"female\") || newvalue.equals(\"Male\") || newvalue.equals(\"Female\")) {\r\n\t\t\t\t\t\tnewCustomer.sex = newvalue;\r\n\t\t\t\t\t\tupdatecheck[3] = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(\"please write if the costumer is a ``male`` or a ``female``\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t// changes the customers pin, the old PIN is necessary for updating\r\n\t\t\t} else if (input.equals(\"5\")) {\r\n\t\t\t\tSystem.out.println(\"Insert new value!\");\r\n\t\t\t\tnewvalue = (String) inputScanner.next();\r\n\t\t\t\tnewCustomer.dob = newvalue;\r\n\t\t\t} else if (input.equals(\"6\")) {\r\n\t\t\t\tSystem.out.println(\"Insert new pin!\");\r\n\t\t\t\twhile (updatecheck[5] == false) {\r\n\t\t\t\t\tnewvalue = (String) inputScanner.next();\r\n\t\t\t\t\tif (newvalue.length() >= 0 && newvalue.length() < 5) {\r\n\t\t\t\t\t\tupdatecheck[5] = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(\"Please enter a number between 0 and 5.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Repeat new pin!\");\r\n\t\t\t\tString newvalue2 = (String) inputScanner.next();\t\t\t\t\r\n\t\t\t\tif (newvalue.equals(newvalue2)) {\r\n\t\t\t\t\tSystem.out.println(\"Insert old pin!\");\r\n\t\t\t\t\tnewvalue = (String) inputScanner.next();\r\n\t\t\t\t\tif ((oldCustomer.pin).equals(newvalue)) {\r\n\t\t\t\t\t\tnewCustomer.pin = newvalue2;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(\"Old PIN was not correct!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"The PINs did not match!\");\r\n\t\t\t\t}\r\n\t\t\t} \r\n\r\n\t\t\toldCustomer = newCustomer;\r\n\r\n\t\t}\r\n\r\n\t}",
"void assignAuthorisationsToCustomer(CustomerModel customer);",
"@Override\n\tpublic void addCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().save(customer);\n\t}",
"void deleteCustomerById(int customerId);",
"public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }",
"int updateByPrimaryKey(CustomerTag record);",
"@Test\n\t// @Disabled\n\tvoid testUpdateCustomer() {\n\t\tCustomer customer1 = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer1));\n\t\tMockito.when(custRep.save(customer1)).thenReturn(customer1);\n\t\tCustomer persistedCust = custService.updateCustomer(1, customer1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t}",
"void deleteCustomerById(Long id);",
"public void __connect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"id\", id);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n\n\n \n \n invokeStaticMethod(\"__connect__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"public void setCustomerId(long value) {\n this.customerId = value;\n }",
"@Override\n\tpublic int updateCustomerReprieve(CustomerReprieve customerReprieve) {\n\t\treturn customerDao.updateCustomerReprieve(customerReprieve);\n\t}",
"@Override\n public JSONObject viewCustomerById(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }",
"public void update(String custNo, CstCustomer cstCustomer2) {\n\t\tcstCustomerDao.update(custNo,cstCustomer2);\n\t}",
"@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}",
"@GetMapping(\"/showFormForUpdate\")\r\n\tpublic String showFormForUpdate(@RequestParam(\"customerId\") int id, Model theModel){\n\t\tCustomer theCustomer = customerService.getCustomer(id);\r\n\t\t\r\n\t\t//set customer as model attribute to pre-populate\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\t//send over to our form\r\n\t\treturn \"customer-form\";\r\n\t}",
"public void updateCustomerInfo(){\n nameLabel.setText(customer.getName());\n productWantedLabel.setText(customer.getWantedItem());\n serviceManager.getTotalPrice().updateNode();\n }",
"public void updateSalerCustomer(SalerCustomer salerCustomer) {\n\t\tthis.salerCustomerMapper.updateSalerCustomer(salerCustomer);\n\t}",
"@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t//currentSession.save(theCustomer);\n\t}",
"@PostMapping(\"/customers\")\n public void addCustomer(@RequestBody CustomerHibernate theCustomerHibernate) {\n //this is to force a save for a new item .... instead of update\n\n theCustomerHibernate.setId(0);\n\n customerService.save(theCustomerHibernate);\n }",
"@Override\n\tpublic void updateProfile(CustomerUpdateVO customerVO) {\n\t\tCustomer customer = customerRepository.findById(customerVO.getCid()).get();\n\t\ttry {\n\t\t\tcustomer.setImage(customerVO.getPhoto().getBytes());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcustomer.setName(customerVO.getName());\n\t\tcustomer.setMobile(customerVO.getMobile());\n\t\tcustomer.setDom(new Timestamp(new Date().getTime()));\n\t\t/// customerRepository.save(customer);\n\t}",
"@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save/upate the customer ... finally LOL\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t\n\t}"
] |
[
"0.78826267",
"0.78682196",
"0.75633895",
"0.73050785",
"0.7172885",
"0.71538645",
"0.7112722",
"0.7112722",
"0.71003735",
"0.7094099",
"0.70296293",
"0.70015216",
"0.6995791",
"0.6926436",
"0.6873646",
"0.68643224",
"0.6862481",
"0.68442845",
"0.68293023",
"0.6810218",
"0.6788929",
"0.67552716",
"0.67424333",
"0.67171276",
"0.67063814",
"0.6700455",
"0.6686437",
"0.6661978",
"0.66164833",
"0.65595007",
"0.6556328",
"0.6547932",
"0.6541404",
"0.6531497",
"0.6518441",
"0.6509285",
"0.6509285",
"0.6508322",
"0.65002316",
"0.64879984",
"0.64872116",
"0.64854467",
"0.6448147",
"0.6397657",
"0.6394479",
"0.6306332",
"0.6295971",
"0.62897766",
"0.6282911",
"0.6281448",
"0.6256211",
"0.62513596",
"0.6246177",
"0.6240758",
"0.62360173",
"0.6223171",
"0.62082213",
"0.62081724",
"0.62051094",
"0.6196851",
"0.6196236",
"0.61928713",
"0.61744183",
"0.61713314",
"0.61499655",
"0.61411643",
"0.61368996",
"0.61212176",
"0.61150384",
"0.6111529",
"0.6110304",
"0.6099641",
"0.60787773",
"0.6070524",
"0.60704786",
"0.6048579",
"0.6046436",
"0.6035309",
"0.6022898",
"0.60170555",
"0.6014083",
"0.6002014",
"0.6000168",
"0.5994869",
"0.5993091",
"0.5985206",
"0.5972817",
"0.5972579",
"0.5954496",
"0.59515864",
"0.59382427",
"0.59375834",
"0.5927155",
"0.59247243",
"0.5906286",
"0.5897229",
"0.5886436",
"0.58851224",
"0.588425",
"0.58771133",
"0.5869013"
] |
0.0
|
-1
|
Method link__customers definition ends here.. Method unlink__customers definition
|
public void unlink__customers( String qualificationId, String fk, final VoidCallback callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.put("fk", fk);
invokeStaticMethod("prototype.__unlink__customers", hashMapObject, new Adapter.Callback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(String response) {
callback.onSuccess();
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"void delete(Customer customer);",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mobile Customer delete()\");\n\t}",
"public Customer() {\n\t\tcustref++;\n\t}",
"public void clearCustomers()\r\n\t{\r\n\t\tfor(int i=0;i<inStore.size();i++)\r\n\t\t{\r\n\t\t\tcustomers.add(inStore.get(i));\r\n\t\t}\r\n\t\tinStore.clear();\r\n\t}",
"void removeCustomer(Customer customer);",
"public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }",
"void deleteCustomerById(int customerId);",
"public void delete(Customer customer) {\r\n EntityManagerHelper.beginTransaction();\r\n CUSTOMERDAO.delete(customer);\r\n EntityManagerHelper.commit();\r\n renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()).requestRender();\r\n //renderManager.removeRenderer(renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()));\r\n }",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"void removeAuthorisationsOfCustomer(CustomerModel customer);",
"@Override\n public void deleteCustomer(UUID id) {\n log.debug(\"Customer has been deleted: \"+id);\n }",
"public void linkAccount() {}",
"@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}",
"public void DeleteCust(String id);",
"void deleteCustomerById(Long id);",
"@Override\n\tpublic void deleteCustomer(Long custId) {\n\t\tcustomerRepository.deleteById(custId);\n\t\t\n\t}",
"@Override\n\tpublic void deleteCoustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().delete(customer);\n\t}",
"public boolean deleteCustomer(String custId);",
"@Override\r\n\tpublic boolean deleteCustomer(int customerID) {\n\t\treturn false;\r\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(int theId) {\n\t\tcustomerDAO.deleteCustomer(theId);\n\t}",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void delete(Customer o) {\n\n\t\tif (o.getId() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString deleteQuery = \"DELETE FROM TB_customer WHERE \" + COLUMN_NAME_ID + \"=\" + o.getId();\n\n\t\ttry (Statement deleteStatement = dbCon.createStatement()) {\n\t\t\tdeleteStatement.execute(deleteQuery);\n\t\t} catch (SQLException s) {\n\t\t\tSystem.out.println(\"Delete of customer \" + o.getId() + \" falied : \" + s.getMessage());\n\t\t}\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(Customer customer) {\n\t\thibernateTemplate.delete(customer);\n\n\t\tSystem.out.println(customer + \"is deleted\");\n\t}",
"public boolean deleteCustomer() {\n\t\treturn false;\r\n\t}",
"private void endCustomer(MyCustomer customer){ \n\tDo(\"Table \" + customer.tableNum + \" is cleared!\");\n\thost.msgTableIsFree(customer.tableNum);\n\tcustomers.remove(customer);\n\tstateChanged();\n }",
"public void link__customers( String qualificationId, String fk, final ObjectCallback<Customer> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"prototype.__link__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);\n if(context != null){\n try {\n Method method = customerRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(customerRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //customerRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Customer customer = customerRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = customer.getClass().getMethod(\"save__db\");\n method.invoke(customer);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(customer);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"@DELETE\n\t@Path(\"/delete\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic void delCustomer(String id)\n\t\t\tthrows MalformedURLException, RemoteException, NotBoundException, ClassNotFoundException, SQLException {\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Delete the customers table\n\t\tdb.Delete(\"DELETE FROM CUSTOMERS WHERE id='\" + id + \"'\");\n\n\t\t// Delete the bookings table\n\t\tdb.Delete(\"DELETE FROM BOOKINGS WHERE CUSTOMERID='\" + id + \"'\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\t}",
"@Override\n\tpublic int deleteCustomerReprieve(Integer id) {\n\t\treturn customerDao.deleteCustomerReprieve(id);\n\t}",
"BrainTreeCustomerResult removeCustomer(BrainTreeCustomerRequest request);",
"public void customerJoins(Customer cust);",
"@Test\n public void testExposesDelete() throws Exception {\n List<Link> customers = findCustomersLinks();\n assertThat(\"Customers exist to work with\",\n customers.size(),\n greaterThan(0));\n\n Link customer = customers.get(customers.size() - 1);\n\n mockMvc\n .perform(delete(customer.getHref()))\n .andExpect(status().isNoContent());\n\n mockMvc\n .perform(get(customer.getHref()))\n .andExpect(status().isNotFound());\n }",
"public void remove(Customer c) {\n customers.remove(c);\n\n fireTableDataChanged();\n }",
"public void delete(Customer customer) {\n\t\tcustRepo.delete(customer);\n\t}",
"public void linkRecords();",
"@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }",
"public void purgeRelations() {\n this.purged = true;\n for (AS tCust : this.customers) {\n tCust.providers.remove(this);\n tCust.purgedNeighbors.add(this.asn);\n }\n for (AS tProv : this.providers) {\n tProv.customers.remove(this);\n tProv.purgedNeighbors.add(this.asn);\n }\n for (AS tPeer : this.peers) {\n tPeer.peers.remove(this);\n tPeer.purgedNeighbors.add(this.asn);\n }\n }",
"@Override\n\tpublic void gatherRetailCustomerInfo(RetailCustomer retailCustomer) {\n\t\tretailCustomerUserBill = new Billing();\n\t\tthis.retailCustomer = retailCustomer;\n\t}",
"@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerAddres : {}\", id);\n customerAddresRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerAddres\", id.toString())).build();\n }",
"public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }",
"boolean hasCustomerClientLink();",
"public void exitCustomer(int i)\r\n\t{\r\n\t\tcustomers.add(inStore.get(i));\r\n\t\tinStore.remove(i);\r\n\t}",
"public void _unlinkClient(ModelElement client1);",
"private void deleteCustomerById(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int idCustomer = Integer.parseInt(request.getParameter(\"id\"));\n CustomerDao.deleteCustomer(idCustomer);\n response.sendRedirect(\"/\");\n }",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}",
"@Override\n\tpublic void removeCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName() == null)\n\t\t\tthrow new Exception(\"No Such customer Exists.\");\n\t\t\n\t\tif(custCheck.getCustName().equalsIgnoreCase(customer.getCustName()) && customer.getId() == custCheck.getId()) {\n\t\t\ttry {\n\t\t\t\t\tStatement st = con.createStatement();\n\t\t\t\t\tString remove = String.format(\"delete from customer where id in('%d')\", \n\t\t\t\t\t\tcustomer.getId());\n\t\t\t\t\tst.executeUpdate(remove);\n\t\t\t\t\tSystem.out.println(\"Customer removed successfully\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB\");\n\t\t\t}finally {\n\t\t\t\ttry {\n\t\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setRelCustId(Long relCustId) {\n this.relCustId = relCustId;\n }",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"@Override\n\tpublic void deleteOne(Customer c) {\n\t\tthis.getHibernateTemplate().delete(c);\n\t}",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete the object with the primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// delete object with primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\n\t\ttheQuery.executeUpdate();\n\t}",
"@Override\n\t@Transactional\n\tpublic void delete(Long id) {\n\t\tcustomerDAO.deleteById(id);\n\t}",
"public void __disconnect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"id\", id);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n\n\n \n \n invokeStaticMethod(\"__disconnect__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"public void deleteCustomer(Customer customer){\n _db.delete(\"Customer\", \"customer_name = ?\", new String[]{customer.getName()});\n }",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n Session session =sessionFactory.getCurrentSession();\n Customer customer= getCustomer(customerId);\n session.delete(customer);\n\t\treturn true;\n\t}",
"@Atomic\n public void deleteAdhocCustomer(AdhocCustomer adhocCustomer) {\n }",
"public void detachACustomer() {\r\n\t\tSystem.out.println(\"\\nDetaching a customer\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\r\n\t\tCustomer2 customer= em.find(Customer2.class, (long)90);\r\n\t\tSystem.out.println(customer);\r\n\t\t\r\n\t\ttx.commit(); \r\n\r\n\t\t// customer koparilmis(detached) durumda. Yapilan degisiklikleri VT'ye yazmak icin\r\n\t\t// merge yapilmali.\r\n\t\tcustomer.setLastName(\"Detached\");\r\n\t\tSystem.out.println(\"Does persistent context have customer? \" + em.contains(customer));\r\n\t\tem.close();\r\n\t\t\r\n\t\tem = emf.createEntityManager();\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tem.merge(customer);\r\n\t\ttx.commit();\r\n\t\t\r\n\t\tCustomer2 retrievedCustomer = em.find(Customer2.class, (long)90);\r\n\t\tSystem.out.println(retrievedCustomer);\r\n\t\r\n\t\tem.close();\r\n\t}",
"public void delete(String custNo) {\n\t\tcstCustomerDao.update(custNo);\n\t\t\n\t}",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public abstract void delete(CustomerOrder customerOrder);",
"public void delete__customers( String qualificationId, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n\n \n invokeStaticMethod(\"prototype.__delete__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"@Test\r\n public void testdeleteCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n DAOCustomer.deleteCustomer(Con(),2);\r\n List<Server.Customer> r = DAOCustomer.loadCustomer(Con());\r\n assertEquals(lesClients.size()-1 , r.size());\r\n \r\n \r\n }",
"@Override\n\tpublic void remove(CustomerLogin customerLogin) {\n\t\tdao.delete(customerLogin);\n\t}",
"public void addMigratedCustomers(Bank bank, List<Klient> migratedCustomers) {\n migratedCustomers.forEach(k -> {\n k.setUID(bank.getNextCustomerNumber());\n k.getBills().stream().forEach(r-> {\n fixAccountKind(r);\n fixAccountNumber(r, bank.getNextAccountNumber());\n });\n }\n );\n //ustawiamy rodzaje kont i poprawiamy numery IBAN\n\n //dodajemy zmigrowanych klientow do aktualnych klientow banku\n List<Klient> bankCustomers = bank.getClients();\n bankCustomers.addAll(migratedCustomers);\n bank.setClients(bankCustomers);\n }",
"void deleteCustomerOrderBroadbandASIDById(int id);",
"@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}",
"public void delete(Conseiller c) {\n\t\t\r\n\t}",
"public void deleteCustomer(Customer customer) {\n\n\t\tcustomers.remove(customer);\n\n\t\tString sql = \"UPDATE customer SET active = 0 WHERE customerId = ?\";\n\n\t\ttry ( Connection conn = DriverManager.getConnection(URL, USER_NAME, PASSWORD);\n\t\t\t\tPreparedStatement prepstmt = conn.prepareStatement(sql); ) {\n\n\t\t\tint customerId = Customer.getCustomerId(customer);\n\t\t\tprepstmt.setInt(1, customerId);\n\t\t\tprepstmt.executeUpdate();\n\n\t\t} catch (SQLException e){\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\n\t}",
"public void delete(Customer customer) throws CustomerNotFoundException {\r\n customer = this.entityManager.merge(customer);\r\n this.entityManager.remove(customer);\r\n }",
"public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }",
"public void removeACustomer(long id) {\r\n\t\tSystem.out.println(\"\\nRemoving the customer: \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nCustomer info: \" + customer);\r\n\t\tem.remove(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"void deleteCustomerDDPayById(int id);",
"private void deAllocate() {\n if (getC_Order_ID() != 0) {\n setC_Order_ID(0);\n }\n //\tif (getC_Invoice_ID() == 0)\n //\t\treturn;\n //\tDe-Allocate all\n MAllocationHdr[] allocations = MAllocationHdr.getOfPayment(getCtx(),\n getC_Payment_ID(), get_TrxName());\n log.fine(\"#\" + allocations.length);\n for (int i = 0; i < allocations.length; i++) {\n allocations[i].set_TrxName(get_TrxName());\n allocations[i].setDocAction(DocAction.ACTION_Reverse_Correct);\n allocations[i].processIt(DocAction.ACTION_Reverse_Correct);\n allocations[i].save();\n }\n\n // \tUnlink (in case allocation did not get it)\n if (getC_Invoice_ID() != 0) {\n //\tInvoice\n String sql = \"UPDATE C_Invoice \"\n + \"SET C_Payment_ID = NULL, IsPaid='N' \"\n + \"WHERE C_Invoice_ID=\" + getC_Invoice_ID()\n + \" AND C_Payment_ID=\" + getC_Payment_ID();\n int no = DB.executeUpdate(sql, get_TrxName());\n if (no != 0) {\n log.fine(\"Unlink Invoice #\" + no);\n }\n //\tOrder\n sql = \"UPDATE C_Order o \"\n + \"SET C_Payment_ID = NULL \"\n + \"WHERE EXISTS (SELECT * FROM C_Invoice i \"\n + \"WHERE o.C_Order_ID=i.C_Order_ID AND i.C_Invoice_ID=\" + getC_Invoice_ID() + \")\"\n + \" AND C_Payment_ID=\" + getC_Payment_ID();\n no = DB.executeUpdate(sql, get_TrxName());\n if (no != 0) {\n log.fine(\"Unlink Order #\" + no);\n }\n }\n //\n setC_Invoice_ID(0);\n setIsAllocated(false);\n }",
"@Override\n\tpublic void addCustomer(Customer customer, Branch branch) {\n\t\t\n\t}",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"public void deleteCustomerbyId(int i) {\n\t\tObjectSet result = db.queryByExample(new Customer(i, null, null, null, null, null));\n\n\t\twhile (result.hasNext()) {\n\t\t\tdb.delete(result.next());\n\t\t}\n\t\tSystem.out.println(\"\\nEsborrat el customer \" + i);\n\t}",
"@Test\n\tpublic void deleteCustomer() {\n\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tint originalLength = customerController.read().size();\n\n\t\t// When\n\t\tICustomer cus = customerController.delete(id);\n\n\t\t// Then\n\t\tint expected = originalLength - 1;\n\t\tint actual = customerController.read().size();\n\t\tAssert.assertEquals(expected, actual);\n\t\tAssert.assertNotNull(cus);\n\t}",
"public void registerNewCustomers(Customer c) {\n if (!newCustomers.contains(c)\n && !modifiedCustomers.contains(c)) {\n newCustomers.add(c);\n }\n }",
"@Test\n public void testDeleteCustomer() {\n System.out.println(\"deleteCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n instance.deleteCustomer(customerID);\n Customer result = instance.getCustomer(customerID);\n assertNull(result);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }",
"public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}",
"boolean hasCustomerManagerLink();",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.DELETE)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void removeCustomer(@PathVariable(\"id\") int id){\n //simply remove the customer using the id. If it does not exist, nothing will happen anyways\n service.removeCustomer(id);\n }",
"public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}",
"public void deleteCustomer(String id) {\n\t\tConnection connection = DBConnect.getDatabaseConnection();\n\t\ttry {\n\t\t\tStatement deleteStatement = connection.createStatement();\n\t\t\t\n\t\t\tString deleteQuery = \"DELETE FROM Customer WHERE CustomerID='\"+id+\"')\";\n\t\t\tdeleteStatement.executeUpdate(deleteQuery);\t\n\t\t\t\n\t\t\t//TODO delete all DB table entries related to this entry:\n\t\t\t//address\n\t\t\t//credit card\n\t\t\t//All the orders?\n\t\t\t\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}finally {\n\t\t\tif(connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\n\t}",
"public void removeUser(Customer user) {}",
"public CustomerTableModel() {\n customers = new ArrayList();\n }",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now delete the customer using parameter theId i.e., Customer id (primary key)\n\t\t//HQL query\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\n\t\t//prev parameter theId is assigned to customerId\n\t\ttheQuery.setParameter(\"customerId\",theId);\n\n\t\t//this works with update, delete , so on ...\n\t\ttheQuery.executeUpdate();\n\n\t}",
"public void _unlinkSupplier(ModelElement supplier1);",
"public void editCustomer(Customer c) {\n\t\tconnector.editCustomer(c);\n\t\t\n\t\t// Edit entries in table \"Nummern\"\n\t\tconnector.editNumbers(c, c.getNumbers());\n\t\t\n\t\tupdateCustomers();\n\t}",
"public void __connect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"id\", id);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n\n\n \n \n invokeStaticMethod(\"__connect__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"public void delete(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"DELETE FROM customer WHERE customer_key = ?\");\n ppst.setInt(1, c.getCustomerKey());\n ppst.executeUpdate();\n System.out.println(\"Successfully deleted.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Delete error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }",
"@DeleteMapping(\"/customer/id/{id}\")\r\n\tpublic Customer deleteCustomerbyId(@PathVariable(\"id\") int customerId) {\r\n\tif(custService.deleteCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.deleteCustomerbyId(customerId);\r\n\t}",
"public void removeCustomer(int id) {\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] != null && customers[i].getID() == id) {\r\n customers[i] = null;\r\n return;\r\n }\r\n }\r\n System.err.println(\"Could not find a customer with id: \" + id);\r\n }"
] |
[
"0.6669156",
"0.6669156",
"0.6538112",
"0.6365409",
"0.61464095",
"0.6040761",
"0.6009536",
"0.60090065",
"0.5995333",
"0.59930354",
"0.5971067",
"0.5889432",
"0.5883941",
"0.58823824",
"0.5867638",
"0.58463985",
"0.5800175",
"0.5794335",
"0.5785539",
"0.57771647",
"0.57664996",
"0.57600445",
"0.5755223",
"0.5732415",
"0.5719161",
"0.57182187",
"0.5713557",
"0.57127404",
"0.5698394",
"0.5691963",
"0.56833416",
"0.56488734",
"0.5648508",
"0.56470656",
"0.56434953",
"0.5638448",
"0.5604573",
"0.55686325",
"0.5562851",
"0.55491453",
"0.5539537",
"0.55268455",
"0.5500388",
"0.549623",
"0.5496024",
"0.54930377",
"0.54882306",
"0.54845965",
"0.5477509",
"0.5474565",
"0.5462876",
"0.546259",
"0.5454218",
"0.5434565",
"0.5431105",
"0.5429054",
"0.5426619",
"0.5423283",
"0.54230833",
"0.5418769",
"0.54093194",
"0.5407339",
"0.5407244",
"0.5407244",
"0.5396325",
"0.53866345",
"0.5380379",
"0.5368653",
"0.5362736",
"0.53473365",
"0.5338732",
"0.53364384",
"0.5335821",
"0.5332668",
"0.53312063",
"0.53294355",
"0.5314479",
"0.52992404",
"0.52897614",
"0.5289032",
"0.5288238",
"0.52851176",
"0.52833927",
"0.52821547",
"0.52790415",
"0.5273271",
"0.52687097",
"0.52653617",
"0.52577716",
"0.52532333",
"0.5248831",
"0.52403134",
"0.52329254",
"0.5231781",
"0.52297336",
"0.52268326",
"0.5219824",
"0.5219334",
"0.5218122",
"0.5208721"
] |
0.63292783
|
4
|
Method unlink__customers definition ends here.. Method exists__customers definition
|
public void exists__customers( String qualificationId, String fk, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.put("fk", fk);
invokeStaticMethod("prototype.__exists__customers", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"public boolean deleteCustomer() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"public boolean deleteCustomer(String custId);",
"void delete(Customer customer);",
"@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }",
"@Override\r\n\tpublic boolean deleteCustomer(int customerID) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n\t\treturn false;\n\t}",
"public void clearCustomers()\r\n\t{\r\n\t\tfor(int i=0;i<inStore.size();i++)\r\n\t\t{\r\n\t\t\tcustomers.add(inStore.get(i));\r\n\t\t}\r\n\t\tinStore.clear();\r\n\t}",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mobile Customer delete()\");\n\t}",
"void removeCustomer(Customer customer);",
"void deleteCustomerById(int customerId);",
"public void unlink__customers( String qualificationId, String fk, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n invokeStaticMethod(\"prototype.__unlink__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"@Override\n public void deleteCustomer(UUID id) {\n log.debug(\"Customer has been deleted: \"+id);\n }",
"public void DeleteCust(String id);",
"public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }",
"BrainTreeCustomerResult removeCustomer(BrainTreeCustomerRequest request);",
"@Override\n\tpublic int deleteCustomerReprieve(Integer id) {\n\t\treturn customerDao.deleteCustomerReprieve(id);\n\t}",
"@Test\r\n public void testdeleteCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n DAOCustomer.deleteCustomer(Con(),2);\r\n List<Server.Customer> r = DAOCustomer.loadCustomer(Con());\r\n assertEquals(lesClients.size()-1 , r.size());\r\n \r\n \r\n }",
"public Boolean removeCustomer() {\r\n boolean ok = false;\r\n\t\t//Input customer phone.\r\n\t\tString phone = readString(\"Input the customer phone: \");\r\n\t\tCustomer f = my.findByPhone(phone);\r\n\t\tif (f != null) {\r\n ok = my.remove(f);\r\n\t\t\t\r\n\t\t}\r\n\t\telse alert(\"Customer not found\\n\");\t\r\n return ok;\r\n\t}",
"public boolean updateCustomer() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n Session session =sessionFactory.getCurrentSession();\n Customer customer= getCustomer(customerId);\n session.delete(customer);\n\t\treturn true;\n\t}",
"void removeAuthorisationsOfCustomer(CustomerModel customer);",
"@Test\n\tpublic void deleteCustomer() {\n\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tint originalLength = customerController.read().size();\n\n\t\t// When\n\t\tICustomer cus = customerController.delete(id);\n\n\t\t// Then\n\t\tint expected = originalLength - 1;\n\t\tint actual = customerController.read().size();\n\t\tAssert.assertEquals(expected, actual);\n\t\tAssert.assertNotNull(cus);\n\t}",
"@Override\n\tpublic boolean deleteCustomer(Integer id) {\n\n\t\tboolean isDeleted = false;\n\n\t\tfor (Customer customer : customers) {\n\t\t\tif (customer.getId() == id) {\n\t\t\t\tcustomers.remove(customer);\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is deleted from the list\");\n\t\t\t\tisDeleted = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Delete done : deleteCustomer.isDeleted = \" + isDeleted);\n\t\treturn isDeleted;\n\t}",
"@Override\n\tpublic void removeCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName() == null)\n\t\t\tthrow new Exception(\"No Such customer Exists.\");\n\t\t\n\t\tif(custCheck.getCustName().equalsIgnoreCase(customer.getCustName()) && customer.getId() == custCheck.getId()) {\n\t\t\ttry {\n\t\t\t\t\tStatement st = con.createStatement();\n\t\t\t\t\tString remove = String.format(\"delete from customer where id in('%d')\", \n\t\t\t\t\t\tcustomer.getId());\n\t\t\t\t\tst.executeUpdate(remove);\n\t\t\t\t\tSystem.out.println(\"Customer removed successfully\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB\");\n\t\t\t}finally {\n\t\t\t\ttry {\n\t\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void deleteCustomerById(Long id);",
"@Override\n\tpublic boolean isCustomerExists(int customerId) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void deleteCoustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().delete(customer);\n\t}",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"boolean delete(CustomerOrder customerOrder);",
"public boolean hasCustomer() {\n return customer_ != null;\n }",
"void removeCustomer(String code) throws CustomerCodeNotExistsException;",
"public void exitCustomer(int i)\r\n\t{\r\n\t\tcustomers.add(inStore.get(i));\r\n\t\tinStore.remove(i);\r\n\t}",
"boolean hasCustomerClientLink();",
"boolean hasCustomer();",
"boolean hasCustomer();",
"public void purgeRelations() {\n this.purged = true;\n for (AS tCust : this.customers) {\n tCust.providers.remove(this);\n tCust.purgedNeighbors.add(this.asn);\n }\n for (AS tProv : this.providers) {\n tProv.customers.remove(this);\n tProv.purgedNeighbors.add(this.asn);\n }\n for (AS tPeer : this.peers) {\n tPeer.peers.remove(this);\n tPeer.purgedNeighbors.add(this.asn);\n }\n }",
"@Override\n\tpublic void deleteCustomer(Long custId) {\n\t\tcustomerRepository.deleteById(custId);\n\t\t\n\t}",
"public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }",
"@Test\n\t// @Disabled\n\tvoid testDeleteCustomer() {\n\t\tCustomer customer = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tcustRep.deleteById(1);\n\t\tCustomer persistedCust = custService.deleteCustomerbyId(1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t\tassertEquals(\"tommy\", persistedCust.getFirstName());\n\n\t}",
"private void endCustomer(MyCustomer customer){ \n\tDo(\"Table \" + customer.tableNum + \" is cleared!\");\n\thost.msgTableIsFree(customer.tableNum);\n\tcustomers.remove(customer);\n\tstateChanged();\n }",
"@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}",
"@Test\n public void testDeleteCustomer() {\n System.out.println(\"deleteCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n instance.deleteCustomer(customerID);\n Customer result = instance.getCustomer(customerID);\n assertNull(result);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }",
"public void delete(Customer customer) {\r\n EntityManagerHelper.beginTransaction();\r\n CUSTOMERDAO.delete(customer);\r\n EntityManagerHelper.commit();\r\n renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()).requestRender();\r\n //renderManager.removeRenderer(renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()));\r\n }",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(Customer customer) {\n\t\thibernateTemplate.delete(customer);\n\n\t\tSystem.out.println(customer + \"is deleted\");\n\t}",
"public void deleteCustomer(Customer customer){\n _db.delete(\"Customer\", \"customer_name = ?\", new String[]{customer.getName()});\n }",
"public boolean removeCustomer(String c){\n\t\tif(containsCustomer(c)){\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tif( c.equals(list.get(i).getUsername()) ){\n\t\t\t\t\tlist.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}",
"public void remove(Customer c) {\n customers.remove(c);\n\n fireTableDataChanged();\n }",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}",
"boolean hasCustomerManagerLink();",
"public static boolean deleteCustomer(int id)\n {\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String deleteQuery = \"DELETE FROM customers WHERE Customer_ID=\" + id;\n statement.execute(deleteQuery);\n if(statement.getUpdateCount() > 0)\n System.out.println(statement.getUpdateCount() + \" row(s) affected.\");\n else\n System.out.println(\"No changes were made.\");\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return false;\n }",
"public boolean removeCustomer(int deleteId) {\n\t\tCallableStatement stmt = null;\n\t\tboolean flag = true;\n\t\tCustomer ck= findCustomer(deleteId);\n\t\tif(ck==null){\n\t\t\tSystem.out.println(\"Cutomer ID not present in inventory.\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\telse\n\t\t{\n\t\t\tString query = \"{call deleteCustomer(?)}\";\n\t\t\ttry {\n\t\t\t\tstmt = con.prepareCall(query);\n\t\t\t\tstmt.setInt(1, deleteId);\n\t\t\t\tflag=stmt.execute();\n\t\t\t\t//System.out.println(flag);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"Error in database operation. Try agian!!\");\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\treturn flag;\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}",
"public void detachACustomer() {\r\n\t\tSystem.out.println(\"\\nDetaching a customer\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\r\n\t\tCustomer2 customer= em.find(Customer2.class, (long)90);\r\n\t\tSystem.out.println(customer);\r\n\t\t\r\n\t\ttx.commit(); \r\n\r\n\t\t// customer koparilmis(detached) durumda. Yapilan degisiklikleri VT'ye yazmak icin\r\n\t\t// merge yapilmali.\r\n\t\tcustomer.setLastName(\"Detached\");\r\n\t\tSystem.out.println(\"Does persistent context have customer? \" + em.contains(customer));\r\n\t\tem.close();\r\n\t\t\r\n\t\tem = emf.createEntityManager();\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tem.merge(customer);\r\n\t\ttx.commit();\r\n\t\t\r\n\t\tCustomer2 retrievedCustomer = em.find(Customer2.class, (long)90);\r\n\t\tSystem.out.println(retrievedCustomer);\r\n\t\r\n\t\tem.close();\r\n\t}",
"@DELETE\n\t@Path(\"/delete\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic void delCustomer(String id)\n\t\t\tthrows MalformedURLException, RemoteException, NotBoundException, ClassNotFoundException, SQLException {\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Delete the customers table\n\t\tdb.Delete(\"DELETE FROM CUSTOMERS WHERE id='\" + id + \"'\");\n\n\t\t// Delete the bookings table\n\t\tdb.Delete(\"DELETE FROM BOOKINGS WHERE CUSTOMERID='\" + id + \"'\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}",
"public void containsACustomer() {\r\n\t\tSystem.out.println(\"\\nChecking if a customer object is in persistent context\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n//\t\tEntityTransaction tx = em.getTransaction();\r\n//\t\ttx.begin();\r\n\t\tCustomer2 customerRetrieved = em.find(Customer2.class, (long)10);\r\n\t\tSystem.out.println(customerRetrieved);\r\n\t\tCustomer2 newCustomer = new Customer2(customerRetrieved.getCustId(), \r\n\t\t\t\t\t\t\t\t\t\t\t customerRetrieved.getFirstName(), \r\n\t\t\t\t\t\t\t\t\t\t\t customerRetrieved.getLastName());\r\n\t\tSystem.out.println(newCustomer);\r\n\t\tSystem.out.println(\"Does persistent context have newCustomer? \" + em.contains(newCustomer));\r\n\t\tSystem.out.println(\"Does persistent context have customerRetrieved? \" + em.contains(customerRetrieved));\r\n\t\tem.remove(customerRetrieved);\r\n\t\tSystem.out.println(\"Does persistent context have customerRetrieved? \" + em.contains(customerRetrieved));\r\n//\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"@BeforeTransaction\n\tpublic void setupManyCustomers() {\n\t\tint results = template.update(\"delete from Customer\");\n\t\tlogger.debug(\"Before Transaction Deleted {} Customer(s)\", results);\n\t\tSession session = factory.openSession();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tCustomer c = new Customer();\n\t\t\tc.setFirstName(\"Customer #\" + (i + 1));\n\t\t\tc.setLastName(\"Person\");\n\t\t\tsession.save(c);\n\t\t}\n\t\tsession.flush();\n\t\tsession.close();\n\t}",
"public void removeACustomer(long id) {\r\n\t\tSystem.out.println(\"\\nRemoving the customer: \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nCustomer info: \" + customer);\r\n\t\tem.remove(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"@DeleteMapping(\"/{id}\")\n public Boolean deleteCustomer(@PathVariable(\"id\") Long customerId) {\n return true;\n }",
"@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerAddres : {}\", id);\n customerAddresRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerAddres\", id.toString())).build();\n }",
"public void delete(String custNo) {\n\t\tcstCustomerDao.update(custNo);\n\t\t\n\t}",
"public void delete(Customer customer) {\n\t\tcustRepo.delete(customer);\n\t}",
"public void deleteSalerCustomer(int uid) {\n\t\tthis.salerCustomerMapper.deleteSalerCustomer(uid);\n\t}",
"public void registerNewCustomers(Customer c) {\n if (!newCustomers.contains(c)\n && !modifiedCustomers.contains(c)) {\n newCustomers.add(c);\n }\n }",
"public void removeCustomer(int id) {\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] != null && customers[i].getID() == id) {\r\n customers[i] = null;\r\n return;\r\n }\r\n }\r\n System.err.println(\"Could not find a customer with id: \" + id);\r\n }",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(int theId) {\n\t\tcustomerDAO.deleteCustomer(theId);\n\t}",
"boolean hasCustomerClient();",
"public void delete__customers( String qualificationId, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n\n \n invokeStaticMethod(\"prototype.__delete__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"@Test\r\n\tpublic void removeCustomerTest() {\n\t\tassertNotNull(\"Test if there is valid Customer arraylist to add to\", CustomerList);\r\n\t\t\r\n\t\t//Given an empty list, after adding 1 item, the size of the list is 1 - normal\r\n\t\t//The item just added is as same as the first item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\t\t\r\n\t\tassertEquals(\"Test that Customer arraylist size is 1\", 1, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust1, CustomerList.get(0));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 2? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 2, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust2, CustomerList.get(1));\t\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 3? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 3\", 3, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust3, CustomerList.get(2));\t\r\n\t}",
"@Override\n\tpublic void delete(Customer o) {\n\n\t\tif (o.getId() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString deleteQuery = \"DELETE FROM TB_customer WHERE \" + COLUMN_NAME_ID + \"=\" + o.getId();\n\n\t\ttry (Statement deleteStatement = dbCon.createStatement()) {\n\t\t\tdeleteStatement.execute(deleteQuery);\n\t\t} catch (SQLException s) {\n\t\t\tSystem.out.println(\"Delete of customer \" + o.getId() + \" falied : \" + s.getMessage());\n\t\t}\n\t}",
"public void removeUser(Customer user) {}",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"public void deleteCustomerbyId(int i) {\n\t\tObjectSet result = db.queryByExample(new Customer(i, null, null, null, null, null));\n\n\t\twhile (result.hasNext()) {\n\t\t\tdb.delete(result.next());\n\t\t}\n\t\tSystem.out.println(\"\\nEsborrat el customer \" + i);\n\t}",
"@Test\n public void testExposesDelete() throws Exception {\n List<Link> customers = findCustomersLinks();\n assertThat(\"Customers exist to work with\",\n customers.size(),\n greaterThan(0));\n\n Link customer = customers.get(customers.size() - 1);\n\n mockMvc\n .perform(delete(customer.getHref()))\n .andExpect(status().isNoContent());\n\n mockMvc\n .perform(get(customer.getHref()))\n .andExpect(status().isNotFound());\n }",
"public boolean hasCustomer() {\n return customerBuilder_ != null || customer_ != null;\n }",
"public abstract void delete(CustomerOrder customerOrder);",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Customer)) {\n return false;\n }\n Customer other = (Customer) object;\n if ((this.cusId == null && other.cusId != null) || (this.cusId != null && !this.cusId.equals(other.cusId))) {\n return false;\n }\n return true;\n }",
"@Test\n\t@DisplayName(\"test you can not register a duplicate customer\")\n\tvoid testCustomers() {\n\t\ts.addACustomer(new Customer(\"Gary\", \"Smith\"));\n\t\ts.addACustomer(new Customer(\"Gary\", \"Smith\"));\n\t\tassertEquals(1, s.getCustomers().size());\n\t}",
"@Override\n\tpublic void deleteOne(Customer c) {\n\t\tthis.getHibernateTemplate().delete(c);\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.DELETE)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void removeCustomer(@PathVariable(\"id\") int id){\n //simply remove the customer using the id. If it does not exist, nothing will happen anyways\n service.removeCustomer(id);\n }",
"public void onRemoveRequest(CustomerRequest request);",
"public Customer() {\n\t\tcustref++;\n\t}",
"public void removeCustomer(){\n String message = \"Choose one of the Customer to remove it\";\n if (printData.checkAndPrintCustomer(message)){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfCustomer());\n if (subChoice!=0){\n data.removeCustomer(data.getCustomer(subChoice-1),data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has removed Successfully!\");\n }\n }\n }",
"@PreRemove\n public void removeCouponFromCustomer(){\n for (Customer customer: purchases){\n customer.getCoupons().remove(this);\n }\n }",
"@Override\n\tpublic Uni<Boolean> deleteCustomerById(Long cid) {\n\t\treturn repo.deleteById(cid).chain(repo::flush).onItem().transform(ignore ->true);\n\t}",
"void deleteCustomerDDPayById(int id);",
"public void delete(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"DELETE FROM customer WHERE customer_key = ?\");\n ppst.setInt(1, c.getCustomerKey());\n ppst.executeUpdate();\n System.out.println(\"Successfully deleted.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Delete error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }",
"public void deleteProfile(Customer c) {\n\t\tfor (Customer u : User.customers) {\n\t\t\tif (c.getName().equals(u.getName())) {\n\t\t\t\tUser.customers.remove(c);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t/**\n\t * Removes all Coupons from the Coupon table in the database related to\n\t * Customer ID received\n\t */\n\tpublic void deleteCouponsByCustomerID(int custID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to remove Coupons related to specified\n\t\t\t// Customer ID from the Coupon table via prepared statement\n\t\t\tString deleteCouponsByCustomerIDSQL = \"delete from coupon where id in (select couponid from custcoupon where customerid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(deleteCouponsByCustomerIDSQL);\n\t\t\t// Set Customer ID from variable that method received\n\t\t\tpstmt.setInt(1, custID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint resRemByCust3 = pstmt.executeUpdate();\n\t\t\tif (resRemByCust3 != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupons of specified Customer have been deleted from Coupon table successfully\");\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupons related to\n\t\t\t\t// specified Customer not found in the database\n\t\t\t\tSystem.out.println(\"Coupons removal has been failed - subject entries not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon removal from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupons removal has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"@Atomic\n public void deleteAdhocCustomer(AdhocCustomer adhocCustomer) {\n }",
"public void deleteCustomer(Customer customer) {\n\n\t\tcustomers.remove(customer);\n\n\t\tString sql = \"UPDATE customer SET active = 0 WHERE customerId = ?\";\n\n\t\ttry ( Connection conn = DriverManager.getConnection(URL, USER_NAME, PASSWORD);\n\t\t\t\tPreparedStatement prepstmt = conn.prepareStatement(sql); ) {\n\n\t\t\tint customerId = Customer.getCustomerId(customer);\n\t\t\tprepstmt.setInt(1, customerId);\n\t\t\tprepstmt.executeUpdate();\n\n\t\t} catch (SQLException e){\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\n\t}",
"public int deleteSupplier(int id) {\n\t\t\t String deleteQuery=\"delete from registration_customer_data where id='\"+id+\"' \";\n\t\t\t return template.update(deleteQuery); \n\t\t}",
"public static void removeBankAccount(Customer customer) {\r\n\t\tcustomerBankAccountList.remove(customer);\t\r\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// delete object with primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\n\t\ttheQuery.executeUpdate();\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete the object with the primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}"
] |
[
"0.69280005",
"0.68891275",
"0.6762077",
"0.6762077",
"0.6694822",
"0.6636149",
"0.6588833",
"0.65404373",
"0.648186",
"0.6462914",
"0.6443365",
"0.63410014",
"0.62722653",
"0.62297577",
"0.61801505",
"0.6170341",
"0.6160966",
"0.6143743",
"0.61437005",
"0.613479",
"0.61004525",
"0.6074222",
"0.60733956",
"0.6051838",
"0.60285306",
"0.602355",
"0.601913",
"0.5998781",
"0.5994468",
"0.5971144",
"0.5960619",
"0.5959292",
"0.59171593",
"0.59164476",
"0.5900025",
"0.58990824",
"0.5872153",
"0.5872153",
"0.5835195",
"0.5835016",
"0.5834845",
"0.5827759",
"0.5810651",
"0.58054894",
"0.57971126",
"0.57938623",
"0.57921",
"0.57523966",
"0.57480425",
"0.5740669",
"0.57289374",
"0.5728611",
"0.57256997",
"0.5723589",
"0.5723362",
"0.57228696",
"0.5719505",
"0.5710028",
"0.5709293",
"0.5699578",
"0.56960523",
"0.56903535",
"0.5680632",
"0.5678316",
"0.5677283",
"0.5675432",
"0.56708413",
"0.56692576",
"0.5665408",
"0.56645066",
"0.56580913",
"0.56488264",
"0.5643738",
"0.5640539",
"0.56364155",
"0.56364113",
"0.5628163",
"0.56106687",
"0.5610419",
"0.5610293",
"0.5608337",
"0.5595108",
"0.5594114",
"0.5591918",
"0.55769676",
"0.55728674",
"0.5567843",
"0.556752",
"0.55669224",
"0.5566774",
"0.55665034",
"0.5560817",
"0.5559717",
"0.5552859",
"0.55505866",
"0.5549085",
"0.55346507",
"0.5526431",
"0.55120796",
"0.5499881",
"0.5493481"
] |
0.0
|
-1
|
Method exists__customers definition ends here.. Method get__customers definition
|
public void get__customers( String qualificationId, Map<String, ? extends Object> filter, final DataListCallback<Customer> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.put("filter", filter);
invokeStaticMethod("prototype.__get__customers", hashMapObject, new Adapter.JsonArrayCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONArray response) {
if(response != null){
//Now converting jsonObject to list
DataList<Map<String, Object>> result = (DataList) Util.fromJson(response);
DataList<Customer> customerList = new DataList<Customer>();
CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);
if(context != null){
try {
Method method = customerRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(customerRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
for (Map<String, Object> obj : result) {
Customer customer = customerRepo.createObject(obj);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = customer.getClass().getMethod("save__db");
method.invoke(customer);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
customerList.add(customer);
}
callback.onSuccess(customerList);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasCustomer();",
"boolean hasCustomer();",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}",
"@Override\n\tpublic List<Customer> findAllCustomer() {\n\t\treturn customerDao.findAllCustomer();\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"public boolean hasCustomer() {\n return customer_ != null;\n }",
"List<Customer> getCustomers();",
"public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }",
"io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();",
"public ArrayList<Customer> getAllCustomers();",
"@Override\n\t@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\treturn customerDAO.getCustomers();\n\t\t\n\t}",
"@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}",
"public ArrayList<Customer> getCustomers()\r\n {\r\n return this.Customers;\r\n }",
"protected boolean containsCustomer() {\n return customer.getOptional().isPresent();\n }",
"public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }",
"@Override\n\tpublic Uni<List<Customer>> findAllCustomer() {\n\t\treturn repo.findAll().list();\n\t}",
"@Override\n\tpublic List<CustomerData> getAllCustomer() {\n\t\treturn customerRepository.findAll();\n\t}",
"public List<CustomerModel> getCustomers();",
"Customer getCustomer();",
"boolean hasCustomerClient();",
"public static ArrayList<CustomerInfoBean> getCutomers_notinterested_Super() {\r\n\t\tCustomerInfoBean bean = null;\r\n\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city_district cd ON cs.customer_city=cd.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id WHERE e.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tStatement st = con.prepareStatement(query);\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\tSystem.err.println(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn customerRepository.findAllCustomer();\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_Accepted() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id WHERE e.status=1 or e.status=6;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\r\n\t\tList<Customer> allCustomers = new ArrayList<Customer>();\r\n\t\tallCustomers = customerRepository.findAll();\r\n\t\tif (!allCustomers.isEmpty()) {\r\n\t\t\treturn allCustomers;\r\n\t\t} else {\r\n\t\t\tthrow new EmptyEntityListException(\"No Customers Found.\");\r\n\t\t}\r\n\r\n\t}",
"public static ArrayList<CustomerInfoBean> getCustomers() {\r\n\t\tSystem.out.println(\"CustomerBAL.get_customers()\");\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, e_status, c_status, state;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\r\n\t\t\tif (connection != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{call get_customers()}\");\r\n\t\t\t\tResultSet rs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tcustomerId = rs.getInt(\"customer_id\");\r\n\t\t\t\t\tcustomerName = rs.getString(\"customer_name\");\r\n\t\t\t\t\tcnicNo = rs.getString(\"customer_cnic\");\r\n\t\t\t\t\tphoneNo = rs.getString(\"customer_phone\");\r\n\t\t\t\t\tdistrict = rs.getString(\"district_name\");\r\n\t\t\t\t\tmonthlyIncome = rs.getString(\"salary_range\");\r\n\t\t\t\t\tgsmNumber = rs.getString(\"appliance_gsmno\");\r\n\t\t\t\t\tstate = rs.getInt(\"appliance_status\");\r\n\t\t\t\t\tsalesmanName = rs.getString(\"salesman_name\");\r\n\r\n\t\t\t\t\tapplianceId = rs.getInt(\"appliance_id\");\r\n\t\t\t\t\tsalesmanId = rs.getInt(\"salesman_id\");\r\n\t\t\t\t\tapplianceName = rs.getString(\"appliance_name\");\r\n\t\t\t\t\te_status = rs.getInt(\"e.status\");\r\n\t\t\t\t\tc_status = rs.getInt(\"cs.status\");\r\n\t\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\t\tbean.setApplianceStatus(state);\r\n\t\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\t\tbean.setStatus(e_status);\r\n\t\t\t\t\tbean.setCustomerStatus(c_status);\r\n\t\t\t\t\tcustomerList.add(bean);\r\n\t\t\t\t\t// End Stored Procedure Calling -- Jetander\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (connection != null) {\r\n\t\t\t\tconnection.close();\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public List<Customer> getCustomers() {\n\t\treturn customers;\n\t}",
"List<Customer> getCustomerList();",
"public static ArrayList<CustomerInfoBean> getCutomers_notinterested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id join city c on cs.customer_city=c.city_id WHERE cs.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public boolean hasCustomer() {\n return customerBuilder_ != null || customer_ != null;\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_onInActive() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,a.appliance_status, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE a.appliance_status=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}",
"@GET\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\tpublic ArrayList<Customer> getCustomers() {\r\n\t\treturn custDao.readAll();\r\n\t}",
"@Override\n\tpublic boolean isCustomerExists(int customerId) {\n\t\treturn false;\n\t}",
"public List<Customer> getCustomerList() {\n return new ArrayList<Customer>(customersList);\n }",
"public List<Customer> getCustomerList() {\r\n\t\tList<Object> columnList = null;\r\n\t\tList<Object> valueList = null;\r\n\t\tList<Customer> customers = new ArrayList<Customer>();\r\n\r\n\t\tif (searchValue != null && !searchValue.trim().equals(\"\")) {\r\n\t\t\tcolumnList = new ArrayList<Object>();\r\n\t\t\tvalueList = new ArrayList<Object>();\r\n\t\t\tcolumnList.add(searchColumn);\r\n\t\t\tvalueList.add(searchValue);\r\n\t\t}\r\n\t\tcustomers = customerService.searchCustomer(columnList, valueList,\r\n\t\t\t\tfirst, pageSize);\r\n\t\t\r\n\r\n\t\treturn customers;\r\n\t}",
"com.google.ads.googleads.v6.resources.Customer getCustomer();",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create the query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//get the result list\n\t\tList<Customer> customers = query.getResultList();\n\t\treturn customers;\n\t}",
"public List<Customer> getAllCustomers() {\n return customerRepository.findAll();\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_onCash() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,sld.payement_option, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" WHERE sld.payement_option=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }",
"@RequestMapping( value = CONTEXT_URL,\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public List<CustomerDTO> getCustomers()\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomers\";\n logMethodBegin( methodName );\n List<CustomerDTO> customerDTOs = customerEntityService.getAllCustomers();\n logMethodEnd( methodName, customerDTOs );\n return customerDTOs;\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_suggested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=3\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Customer order by lastName\", Customer.class)\n\t\t\t\t.getResultList();\n\n\t}",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t// create a query ... sort by the lastname\n\t\tQuery<Customer> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\",Customer.class);\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Customer> theQuery =\n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\treturn customers;\n\t}",
"public static List<Customer> getAllCustomers() {\r\n\t\tList<Customer> customerList = new ArrayList<Customer>();\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tCustomer customer = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\r\n\t\t\t\tString customerName = rs.getString(\"customerName\");\r\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\r\n\t\t\t\tPerson primaryContact = Person.getPersonByKey(personKey);\r\n\t\t\t\tint addressKey = rs.getInt(\"addressKey\");\r\n\t\t\t\tAddress address = Address.getAddressByKey(addressKey);\r\n\t\t\t\t\r\n\t\t\t\tif (customerType.equals(\"G\")) {\r\n\t\t\t\t\tcustomer = new GovernmentCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t\tcustomerList.add(customer);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"SQLException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t} finally {\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Override\n\tpublic List<Customer> getCustomerList() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query=session.createQuery(\"Select c from Customer c\");\n\t\tList<Customer> list=(List<Customer>)query.getResultList();\n\t\t/*\n\t\t * Customer customer = (Customer)session.load(Customer.class,customerId);\n\t\t * */\n\t\treturn list;\n\t}",
"@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\t\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t\t\t// create a query ... sort by last name\n\t\t\t\tQuery<Customer> theQuery = currentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t\t\t// execute query and get result list\n\t\t\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\t\t\t// return the results\n\t\t\t\treturn customers;\n\t}",
"public void listAllCustomers() {\n List<Customer> list = model.findAllCustomers();\n if(list != null){\n if(list.isEmpty())\n view.showMessage(not_found_error);\n else\n view.showTable(list);\n }\n else\n view.showMessage(retrieving_data_error); \n }",
"@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}",
"@Accessor(qualifier = \"Customers\", type = Accessor.Type.GETTER)\n\tpublic Collection<B2BCustomerModel> getCustomers()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CUSTOMERS);\n\t}",
"public Customer getCustomerByName(String customerName);",
"@Override\n\tpublic List<MstCustomerDto> getAllCustomer() {\n\t\tList<MstCustomerDto> listMstCustomerDtos=new ArrayList<>();\n\t\tList<Object[]> obj=new ArrayList<>();\n\t\t\n\t\tobj = mstCustomerDao.getAll();\n\t\tlistMstCustomerDtos = mapperFacade.mapAsList(obj, MstCustomerDto.class);\n\t\t\n\t\treturn listMstCustomerDtos;\n\t}",
"public List<Customer> findAll() throws CustomerNotFoundException {\r\n return this.entityManager.createQuery(\"select customer from Customer as customer\").getResultList();\r\n }",
"int getCustomersCount();",
"List<Customer> loadAllCustomer();",
"@Override\n\tpublic List<Customer> getCustomerById(int customerid) {\n\t\treturn null;\n\t}",
"public List<Customer> findAllCustomers() throws DatabaseOperationException;",
"@RequestMapping(value = \"/customers\", method = RequestMethod.GET)\n public ResponseEntity<?> getCustomers() {\n Iterable<Customer> customerList = customerService.getCustomers();\n return new ResponseEntity<>(customerList, HttpStatus.OK);\n }",
"@Override\n\tpublic Iterable<Customer> displayCust() {\n\t\treturn customerRepository.findAll();\n\t}",
"public List<Customer> getAllCustomers() {\n Query query = em.createNamedQuery(\"Customer.findAll\");\r\n // return query result\r\n return query.getResultList();\r\n }",
"@Override\n\tpublic Collection<Customer> getAllCustomers() throws Exception {\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\ttry {\n\t\t\tString getAllCustomers = \"select * from customer\";\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getAllCustomers);\n\t\t\tint result = 0;\n\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tCustomer cust = new Customer();\n\t\t\t\t\tcust.setId(rs.getLong(\"ID\"));\n\t\t\t\t\tcust.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\t\tcust.setPassword(rs.getString(\"Password\"));\n\t\t\t\t\tcustomers.add(cust);\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(result + \" Customers were retrieved.\");\n \n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close the connection to the DB\");\n\t\t\t}\n\t\t}\n\t\treturn customers;\n\t}",
"public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }",
"com.google.cloud.channel.v1.Customer getCustomers(int index);",
"List<Customer> getList();",
"@GetMapping(value = CustomerRestURIConstants.GET_ALL_CUSTOMER )\n\tpublic ResponseEntity<List<Customer>> list() {\n\t\tList<Customer> customers = customerService.getAllCustomers();\n\t\treturn ResponseEntity.ok().body(customers);\n\t}",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}",
"public static ObservableList<Customers> getAllCustomers() {\n return allCustomers;\n }",
"@GetMapping(\"/api/customer\")\n\tpublic ResponseEntity<List<CustomerDetails>> getAllCustomerDetails() {\n\n\t\tList<CustomerDetails> customerDetaillist = customerService.getAllCustomerDetails();\n\n\t\treturn ResponseEntity.ok().body(customerDetaillist);\n\n\t}",
"@GetMapping(\"/customers\")\r\n\tprivate List<Customer> getAllCustomers() {\r\n\t\treturn customerService.getAllCustomers();\r\n\t}",
"private List<AdhocCustomer> getSearchUniverseSearchAdhocCustomerDataSet() {\n // The initialization of the result list must be done here\n //\n //\n return AdhocCustomer.findAll().collect(Collectors.toList());\n }",
"@GET\n\t@Path(\"getAllCustomer\")\n\tpublic List<Customer> getAllCustomer() {\n\t\treturn ManagerHelper.getCustomerManager().getAllCustomer();\n\t}",
"@Override\n\t@Transactional\n\tpublic List<AMOUNT> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<AMOUNT> theQuery = currentSession.createQuery(\"from Customer ORDER BY lastName\", AMOUNT.class);\n\n\t\t// execute query and get result list\n\t\tList<AMOUNT> customers = theQuery.getResultList();\n\n\t\t// return the results\n\t\treturn customers;\n\t}",
"@PreAuthorize(\"#oauth2.hasAnyScope('read','write','read-write')\")\n\t@RequestMapping(method = GET)\n\tpublic Mono<ResponseEntity<List<Customer>>> allCustomers() {\n\n\t\treturn repo.findAll().collectList()\n\t\t\t.filter(customers -> customers.size() > 0)\n\t\t\t.map(customers -> ok(customers))\n\t\t\t.defaultIfEmpty(noContent().build());\n\t}",
"public int Customers()\r\n\t{\r\n\t\treturn customers.size();\r\n\t}",
"public String getCustomer(String custId);",
"public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }",
"public Customer getCustomer() {\r\n return customer;\r\n }",
"public ArrayList<Customer> getCustomerList() {\n\t\treturn customerList;\n\t}",
"@Override\n\tpublic List<Customer> findAll() {\n\t\treturn customerRepository.findAll();\n\t}",
"public ResponseEntity<?> getCustomers();",
"public String getCustomersName()\r\n {\r\n return customersName;\r\n }",
"@Override\n\tpublic List<Customer> searchCustomerByName(String name) throws BusinessException {\n\t\treturn customerViewAllDAO.searchCustomerByName(name);\n\t}",
"public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }",
"public Customer getCustomer(String cID, ArrayList<Customer> customers) throws NotFoundException\r\n\t{\t\r\n\t\tCustomer cust = null;\r\n\t\tfor(int i=0; i<customers.size(); i++)\r\n\t\t{\r\n\t\t\tif(customers.get(i).getcID().equals(cID))\r\n\t\t\t\tcust = customers.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tif(cust == null)\r\n\t\t\tthrow new NotFoundException(cID);\r\n\t\t\r\n\t\treturn cust;\t\t\r\n\t}",
"private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"[email protected]\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"[email protected]\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"[email protected]\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"[email protected]\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"[email protected]\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}",
"static customer getCustomer(String uid) {\n return null;\n }",
"public List<Customer> findAll(){\n\t\treturn custRepo.findAll();\n\t}",
"public ArrayList<Customer> getservedCustomers()\r\n {\r\n return this.servedCustomers;\r\n }",
"Customer getCustomerById(int customerId);",
"public List<Customer> findAll() {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//query to fetch all records\n\t\tQuery<Customer> query = currentSession.createQuery(\n\t\t\t\t\t\t\t\t\"from Customer where customerId!=:customerId\", Customer.class);\n\t\t//get account details of all accounts\n\t\tquery.setParameter(\"customerId\", 9999999);\n\t\tList<Customer> customer = query.getResultList();\n\t\t//return the result\n\t\treturn customer;\n\t}",
"public Customer getCustomer()\n {\n return customer;\n }",
"Customer getCustomer() {\n\t\treturn customer;\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_onWait() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=0;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Test\r\n public void testloadCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n assertNotNull(lesClients);\r\n }",
"@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}"
] |
[
"0.7375537",
"0.7375537",
"0.7219958",
"0.72080153",
"0.7147607",
"0.71237767",
"0.7113414",
"0.7103166",
"0.7095101",
"0.70733064",
"0.70730966",
"0.7061675",
"0.70365256",
"0.7017421",
"0.7001507",
"0.6951698",
"0.69329834",
"0.6926892",
"0.6920157",
"0.6896169",
"0.68942004",
"0.6891653",
"0.6891609",
"0.6889969",
"0.6886775",
"0.687071",
"0.6869946",
"0.6863945",
"0.6859424",
"0.6856208",
"0.6856207",
"0.6832231",
"0.682387",
"0.68167317",
"0.68146867",
"0.6801194",
"0.679899",
"0.6798845",
"0.67933595",
"0.6789986",
"0.6789416",
"0.6788403",
"0.67837274",
"0.6771619",
"0.6765093",
"0.6745879",
"0.67439044",
"0.6738588",
"0.672309",
"0.6721079",
"0.6720102",
"0.6696162",
"0.6693658",
"0.66878337",
"0.66849786",
"0.6679596",
"0.6678867",
"0.6665203",
"0.6658901",
"0.6658617",
"0.66208553",
"0.6615407",
"0.66111577",
"0.6595085",
"0.659477",
"0.6579378",
"0.6575077",
"0.657466",
"0.6573562",
"0.65672904",
"0.65635663",
"0.65567505",
"0.6555143",
"0.6553227",
"0.6548113",
"0.65452254",
"0.6526814",
"0.6526532",
"0.65196645",
"0.65131366",
"0.6511726",
"0.6506222",
"0.6505592",
"0.6495118",
"0.64944917",
"0.64921445",
"0.64880925",
"0.6487496",
"0.64824003",
"0.6476522",
"0.6476371",
"0.64742213",
"0.64552796",
"0.6445546",
"0.6438697",
"0.64264673",
"0.6424138",
"0.6418484",
"0.6413084",
"0.6410317",
"0.6408388"
] |
0.0
|
-1
|
Method get__customers definition ends here.. Method create__customers definition
|
public void create__customers( String qualificationId, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.putAll(data);
invokeStaticMethod("prototype.__create__customers", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
if(response != null){
CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);
if(context != null){
try {
Method method = customerRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(customerRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
//customerRepo.addStorage(context);
}
Map<String, Object> result = Util.fromJson(response);
Customer customer = customerRepo.createObject(result);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = customer.getClass().getMethod("save__db");
method.invoke(customer);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
callback.onSuccess(customer);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Customers createCustomers();",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }",
"private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"[email protected]\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"[email protected]\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"[email protected]\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"[email protected]\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"[email protected]\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}",
"public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"public Customer createCustomer() {\n return new Customer(nameNested, surNameNested, ageNested, streetNested);\n }",
"@Override\n\tpublic void create(Customer t) {\n\n\t}",
"void createCustomers() {\r\n\t\tSystem.out.println(\"\\nCreating 5 customers:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\tCustomer2 c2 = new Customer2(\"Serap\", \"Atik\");\r\n\t\tCustomer2 c3 = new Customer2(\"Kemal\", \"Tanir\");\r\n\t\tCustomer2 c4 = new Customer2(\"Betul\", \"Kara\");\r\n\t\tCustomer2 c5 = new Customer2(\"Selman\", \"Saki\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\tem.persist(c2);\r\n\t\tem.persist(c3);\r\n\t\tem.persist(c4);\r\n\t\tem.persist(c5);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }",
"io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"Customer(){}",
"public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The manager was unable to create a new customer\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<CustomerModel> getCustomers();",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"List<Customer> getCustomers();",
"public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }",
"public static ArrayList<CustomerInfoBean> getCustomers() {\r\n\t\tSystem.out.println(\"CustomerBAL.get_customers()\");\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, e_status, c_status, state;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\r\n\t\t\tif (connection != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{call get_customers()}\");\r\n\t\t\t\tResultSet rs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tcustomerId = rs.getInt(\"customer_id\");\r\n\t\t\t\t\tcustomerName = rs.getString(\"customer_name\");\r\n\t\t\t\t\tcnicNo = rs.getString(\"customer_cnic\");\r\n\t\t\t\t\tphoneNo = rs.getString(\"customer_phone\");\r\n\t\t\t\t\tdistrict = rs.getString(\"district_name\");\r\n\t\t\t\t\tmonthlyIncome = rs.getString(\"salary_range\");\r\n\t\t\t\t\tgsmNumber = rs.getString(\"appliance_gsmno\");\r\n\t\t\t\t\tstate = rs.getInt(\"appliance_status\");\r\n\t\t\t\t\tsalesmanName = rs.getString(\"salesman_name\");\r\n\r\n\t\t\t\t\tapplianceId = rs.getInt(\"appliance_id\");\r\n\t\t\t\t\tsalesmanId = rs.getInt(\"salesman_id\");\r\n\t\t\t\t\tapplianceName = rs.getString(\"appliance_name\");\r\n\t\t\t\t\te_status = rs.getInt(\"e.status\");\r\n\t\t\t\t\tc_status = rs.getInt(\"cs.status\");\r\n\t\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\t\tbean.setApplianceStatus(state);\r\n\t\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\t\tbean.setStatus(e_status);\r\n\t\t\t\t\tbean.setCustomerStatus(c_status);\r\n\t\t\t\t\tcustomerList.add(bean);\r\n\t\t\t\t\t// End Stored Procedure Calling -- Jetander\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (connection != null) {\r\n\t\t\t\tconnection.close();\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"private Customer buildCustomer (ResultSet resultSet) throws SQLException{\r\n long id = resultSet.getLong(1);\r\n String firstName =resultSet.getString(2);\r\n String lastName = resultSet.getString(3);\r\n String email = resultSet.getString(4);\r\n String password = resultSet.getString(5);\r\n return new Customer(id,firstName,lastName,email,password);\r\n }",
"@Transactional\n\t@Override\n\tpublic Customer createCustomer(String name) {\n\t\t\n\t\tvalidateName(name);\n\t\tLocalDateTime now = LocalDateTime.now();\n\t\tAccount account = new Account(5000.0, now);\n\t\taccountRepository.save(account);\n\t\tSet<Item> set = new HashSet<>();\n\t\tCustomer customer = new Customer(name, account,set);\n\t\tcustRepository.save(customer);\n\t\treturn customer;\n\t\t\n\t}",
"public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }",
"@Override\n\tpublic List<MstCustomerDto> getAllCustomer() {\n\t\tList<MstCustomerDto> listMstCustomerDtos=new ArrayList<>();\n\t\tList<Object[]> obj=new ArrayList<>();\n\t\t\n\t\tobj = mstCustomerDao.getAll();\n\t\tlistMstCustomerDtos = mapperFacade.mapAsList(obj, MstCustomerDto.class);\n\t\t\n\t\treturn listMstCustomerDtos;\n\t}",
"Customer getCustomer();",
"public List<Customer> getCustomerList() {\n return new ArrayList<Customer>(customersList);\n }",
"@Override\n\t@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\treturn customerDAO.getCustomers();\n\t\t\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_onCash() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,sld.payement_option, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" WHERE sld.payement_option=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"List<Customer> getCustomerList();",
"public static ArrayList<CustomerInfoBean> getCutomers_Accepted() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id WHERE e.status=1 or e.status=6;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }",
"@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}",
"public ArrayList<Customer> getAllCustomers();",
"@Override\n\tpublic List<CustomerData> getAllCustomer() {\n\t\treturn customerRepository.findAll();\n\t}",
"public static List<Customer> getAllCustomers() {\r\n\t\tList<Customer> customerList = new ArrayList<Customer>();\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tCustomer customer = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\r\n\t\t\t\tString customerName = rs.getString(\"customerName\");\r\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\r\n\t\t\t\tPerson primaryContact = Person.getPersonByKey(personKey);\r\n\t\t\t\tint addressKey = rs.getInt(\"addressKey\");\r\n\t\t\t\tAddress address = Address.getAddressByKey(addressKey);\r\n\t\t\t\t\r\n\t\t\t\tif (customerType.equals(\"G\")) {\r\n\t\t\t\t\tcustomer = new GovernmentCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t\tcustomerList.add(customer);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"SQLException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t} finally {\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}",
"public List<Customer> getCustomers() {\n\t\treturn customers;\n\t}",
"public static ObservableList<Customer> getCustomerList() throws SQLException{\r\n customerList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM customers;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //creates customer and adds to list\r\n while(rs.next())\r\n {\r\n int customerID = rs.getInt(\"Customer_ID\");\r\n String customerName = rs.getString(\"Customer_Name\");\r\n String address = rs.getString(\"Address\");\r\n String state = getDivisionName(rs.getInt(\"Division_ID\"));\r\n String postalCode = rs.getString(\"Postal_Code\");\r\n String country = getCountryName(getCountryID(rs.getInt(\"Division_ID\")));\r\n String phoneNumber = rs.getString(\"Phone\");\r\n Customer customer = new Customer(customerID,customerName,address,state,postalCode,country,phoneNumber);\r\n customerList.add(customer);\r\n }\r\n return customerList;\r\n }",
"@Override\n\tpublic boolean createCustomer(Customer customer) {\n\n\t\tif (customer != null) {\n\t\t\tcustomers.add(customer);\n\t\t\tlogger.info(\"Customer added to the list\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Failed to add customer to the list: createCustomer()\");\n\t\t\treturn false;\n\t\t}\n\t}",
"public Customer getCustomer() {\r\n return customer;\r\n }",
"private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }",
"public ArrayList<Customer> getCustomers()\r\n {\r\n return this.Customers;\r\n }",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Customer> getAllCustomers() throws Exception {\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\ttry {\n\t\t\tString getAllCustomers = \"select * from customer\";\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getAllCustomers);\n\t\t\tint result = 0;\n\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tCustomer cust = new Customer();\n\t\t\t\t\tcust.setId(rs.getLong(\"ID\"));\n\t\t\t\t\tcust.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\t\tcust.setPassword(rs.getString(\"Password\"));\n\t\t\t\t\tcustomers.add(cust);\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(result + \" Customers were retrieved.\");\n \n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close the connection to the DB\");\n\t\t\t}\n\t\t}\n\t\treturn customers;\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_suggested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=3\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public List<Customer> getAllCustomers() {\n return customerRepository.findAll();\n }",
"Customer() \n\t{\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn customerRepository.findAllCustomer();\n\t}",
"public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}",
"public ResponseEntity<?> createCustomer(customer.controller.Customer customer);",
"@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}",
"@Override\n\tpublic Customers create(Customers newcust) {\n\t\tif (newcust.getId()!=null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers savecust = CustRepo.save(newcust);\n\t\treturn savecust;\n\t}",
"@Override\n\tpublic List<Customer> findAllCustomer() {\n\t\treturn customerDao.findAllCustomer();\n\t}",
"private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public Customer getCustomer() {\n return customer;\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_notinterested_Super() {\r\n\t\tCustomerInfoBean bean = null;\r\n\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city_district cd ON cs.customer_city=cd.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id WHERE e.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tStatement st = con.prepareStatement(query);\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\tSystem.err.println(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@GetMapping(\"/customers\")\r\n\tprivate List<Customer> getAllCustomers() {\r\n\t\treturn customerService.getAllCustomers();\r\n\t}",
"public Customer getCustomer()\n {\n return customer;\n }",
"@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}",
"Customer() {\n }",
"public Customer getCustomer()\n {\n return customer;\n }",
"public Customer(String name) {\n this.name=name;\n }",
"public static CustomerBean getCutomer(int customerID) {\r\n\t\tCustomerBean bean = null;\r\n\t\tint customerId;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, city_name, customer_phone,customer_monthly_income, customer_family_income, customr_image,created_on FROM customer join city on customer_city=city_id Where customer_id = ?;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, customerID);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn bean;\r\n\t}",
"@GetMapping(\"/api/customer\")\n\tpublic ResponseEntity<List<CustomerDetails>> getAllCustomerDetails() {\n\n\t\tList<CustomerDetails> customerDetaillist = customerService.getAllCustomerDetails();\n\n\t\treturn ResponseEntity.ok().body(customerDetaillist);\n\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_notinterested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status, cs.customer_family_size FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id join city c on cs.customer_city=c.city_id WHERE cs.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public Customer(){\n\t \n }",
"public Customers(int customerId, String customerName, String customerAddress, String customerPostalCode,\n String customerPhone, int divisionId, String divisionName, int countryId, String countryName) {\n this.customerId = customerId;\n this.customerName = customerName;\n this.customerAddress = customerAddress;\n this.customerPostalCode = customerPostalCode;\n this.customerPhone = customerPhone;\n this.divisionId = divisionId;\n this.divisionName = divisionName;\n this.countryId = countryId;\n this.countryName = countryName;\n }",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"@Test\n public void testCustomerFactoryCreate() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(1, customerController.getCustomerList().size());\n }",
"public static ArrayList<CustomerBean> getCutomers(Date fromDate, Date toDate) {\r\n\t\tCustomerBean bean = null;\r\n\t\tArrayList<CustomerBean> customerList = new ArrayList<CustomerBean>();\r\n\t\tint customerId, familyMember;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, customer_district, customer_family_size, customer_phone,customer_monthly_income, customer_family_income, customer_payment_type, customr_image, created_on FROM customer where created_on BETWEEN(\"\r\n\t\t\t\t\t+ fromDate + \"\" + toDate + \") ;\";\r\n\t\t\tStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tfamilyMember = rs.getInt(6);\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\t\t\t\trs.getString(10);\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setFamilyMember(familyMember);\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"Customer getCustomer() {\n\t\treturn customer;\n\t}",
"public Customer(String name) {\n this.name = name;\n }",
"void createAndManageCustomer() {\r\n\t\tSystem.out.println(\"\\nCreating and managing a customer:\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c = new Customer2(\"Sami\", \"Cemil\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c);\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tc.setLastName(\"Kamil\");\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\tem.close();\r\n\t}",
"SerialResponse createCustomer(PinCustomerPost pinCustomerPost);",
"public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"[email protected]\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"[email protected]\", \"Red\"));\n customers.add(new Customer(\"Recipient\", \"Three\", \"[email protected]\", \"Blue\"));\n customers.add(new Customer(\"Recipient\", \"Four\", \"[email protected]\", \"Orange\"));\n\n return customers;\n }",
"public CustomerDatabase(){\n\t\tlist = new ArrayList<Customer>();\n\t}",
"@ApiOperation(value = \"Lists all the customers\", notes = \"\")\n @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerListDTO getCustomers() {\n\n return new CustomerListDTO(customerService.getCustomers());\n }",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public Customer(int customer_ID, String customer_Name, String address, String postalCode, String phone, String createdDate, String createdBy, String lastUpdate, String lastUpdatedBy, int divisionID) {\n this.customer_ID = customer_ID;\n this.customer_Name = customer_Name;\n this.address = address;\n this.postalCode = postalCode;\n this.phone = phone;\n this.createdDate = createdDate;\n this.createdBy = createdBy;\n this.lastUpdate = lastUpdate;\n this.lastUpdatedBy = lastUpdatedBy;\n this.divisionID = divisionID;\n }",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"public Customers(){\r\n \r\n }",
"@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\t\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t\t\t// create a query ... sort by last name\n\t\t\t\tQuery<Customer> theQuery = currentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t\t\t// execute query and get result list\n\t\t\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\t\t\t// return the results\n\t\t\t\treturn customers;\n\t}",
"public interface CustomerService {\n\t/**\n\t * Metodo para insertar un cliente Customer en la base de datos PostgreSQL\n\t * \n\t * @param customer - Cliente de tipo Customer\n\t */\n\tvoid insert(Customer customer);\n\n\t/**\n\t * Metodo para insertar un bloque (coleccion) de cliente Customer en la base de\n\t * datos PostgreSQL\n\t * \n\t * @param customers - Lista de clientes de tipo List<Customer>\n\t */\n\tvoid insertBatch(List<Customer> customers);\n\n\t/**\n\t * Metodo que devuelve todos los clientes Customer de la base de datos\n\t * PostgreSQL\n\t * \n\t * @return Una Lista (java.utils) de tipo List<Customer> con todos los clientes\n\t * de la base de datos PostgreSQL\n\t */\n\tList<Customer> loadAllCustomer();\n\n\t/**\n\t * Metodo que devuelve un cliente Customer a partir de su identificador\n\t * customerId\n\t * \n\t * @param customerId - Identificador del cliente de tipo Integer\n\t * @return Cliente a devolver de tipo Customer\n\t */\n\tCustomer getCustomerById(int customerId);\n\n\t/**\n\t * Metodo que devuelve el nombre String de un cliente Customer a partir de su\n\t * identificador customerId\n\t * \n\t * @param customerId - Identificador de cliente de tipo Integer\n\t * @return String - Nombre del cliente de tipo String\n\t */\n\tString getCustomerNameById(int customerId);\n\n\t/**\n\t * Metodo que devuelve el numero Integer total de clientes en la base de datos\n\t * PostgreSQL\n\t * \n\t * @return El numero total de clientes de tipo Integer\n\t */\n\tvoid getTotalNumerCustomer();\n\n\t/**\n\t * Metodo que elimina un cliente Customer de la base de datos PostgreSQL a\n\t * partir de su identificador customerId\n\t * \n\t * @param customerId - Identificador del cliente Customer de tipo Integer\n\t */\n\tvoid deleteCustomerById(int customerId);\n\n\t/**\n\t * Metodo que actualiza la informacion un cliente Customer ya existente en la\n\t * base de datos PostgreSQL\n\t * \n\t * @param customer - Cliente con la informacion a ser actualizada de tipo\n\t * Customer\n\t */\n\tvoid updateCustomerById(Customer customer);\n}",
"public int newCustomer(Map customerMap, Map allData) {\r\n\t\t\r\n\t\treturn 0;\r\n\t}",
"@GET\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\tpublic ArrayList<Customer> getCustomers() {\r\n\t\treturn custDao.readAll();\r\n\t}",
"public Customer() {\n\t\tsuper();\n\t}",
"public Customer getCustomer() {\n return this.customer;\n }",
"void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"public CustomerNew () {\n\t\tsuper();\n\t}",
"@RequestMapping(value = \"/customers\", method = RequestMethod.GET)\n public ResponseEntity<?> getCustomers() {\n Iterable<Customer> customerList = customerService.getCustomers();\n return new ResponseEntity<>(customerList, HttpStatus.OK);\n }",
"@Test\n public void testCustomerFactoryGetCustomer() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(CUSTOMER_NAME, customerController.getCustomer(1).getName());\n }",
"public static ArrayList<CustomerInfoBean> getDoCutomers(int districtId) {\r\n\t\tSystem.out.println(\"CustomerBAL.get_do_customers()\");\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status, familySize, state;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\t\t\tif (connection != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{call get_do_customers(?)}\");\r\n\t\t\t\tprepareCall.setInt(1, districtId);\r\n\t\t\t\tResultSet rs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\t\tstate = rs.getInt(8);\r\n\t\t\t\t\tsalesmanName = rs.getString(9);\r\n\t\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\t\tfamilySize = rs.getInt(14);\r\n\t\t\t\t\t// End Stored Procedure Calling -- Jetander\r\n\t\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\t\tbean.setApplianceStatus(state);\r\n\t\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\t\tbean.setStatus(status);\r\n\t\t\t\t\tbean.setFamilySize(familySize);\r\n\t\t\t\t\tcustomerList.add(bean);\r\n\t\t\t\t}\r\n\t\t\t\trs.close();\r\n\t\t\t\tconnection.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public static ArrayList<CustomerBean> getCutomersById(int customerID) {\r\n\t\tCustomerBean bean = null;\r\n\t\tArrayList<CustomerBean> customerList = new ArrayList<CustomerBean>();\r\n\t\tint customerId, familyMember;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, customer_district, customer_family_size, customer_phone,customer_monthly_income, customer_family_income, customer_payment_type, customr_image, created_on FROM customer where customer_id=?;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, customerID);\r\n\t\t\tResultSet rs = stmt.executeQuery(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tfamilyMember = rs.getInt(6);\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\t\t\t\trs.getString(10);\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setFamilyMember(familyMember);\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\tstmt.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"List<Customer> loadAllCustomer();",
"public String getCustomersName()\r\n {\r\n return customersName;\r\n }",
"@Test\n public void getAllCustomer() {\n Customer customer1 = new Customer();\n customer1.setFirstName(\"Dominick\");\n customer1.setLastName(\"DeChristofaro\");\n customer1.setEmail(\"[email protected]\");\n customer1.setCompany(\"Omni\");\n customer1.setPhone(\"999-999-9999\");\n customer1 = service.saveCustomer(customer1);\n\n // Add a second Customer to the mock database (customer2)\n Customer customer2 = new Customer();\n customer2.setFirstName(\"Michael\");\n customer2.setLastName(\"Stuckey\");\n customer2.setEmail(\"[email protected]\");\n customer2.setCompany(\"NuclearFuelServices\");\n customer2.setPhone(\"222-222-2222\");\n customer2 = service.saveCustomer(customer2);\n\n // Collect all the customers into a list using the Customer API\n List<Customer> customerList = service.findAllCustomers();\n\n // Test the getAllCustomer() API method\n TestCase.assertEquals(2,customerList.size());\n TestCase.assertEquals(customer1, customerList.get(0));\n TestCase.assertEquals(customer2, customerList.get(1));\n }",
"public void setCustomersName(String customersName)\r\n {\r\n this.customersName = customersName;\r\n }",
"private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }"
] |
[
"0.80275655",
"0.78002053",
"0.7766854",
"0.7711642",
"0.7553495",
"0.75108963",
"0.75108963",
"0.75108963",
"0.75108963",
"0.7323948",
"0.72462296",
"0.7234175",
"0.71806294",
"0.71744174",
"0.7147126",
"0.70874256",
"0.70561975",
"0.70474887",
"0.70348966",
"0.70321757",
"0.70059687",
"0.7002456",
"0.6995546",
"0.6993847",
"0.6989961",
"0.6975399",
"0.69612455",
"0.69108504",
"0.6893551",
"0.6881553",
"0.6871501",
"0.68662167",
"0.6863578",
"0.6841217",
"0.6832244",
"0.68302596",
"0.6822221",
"0.6804654",
"0.68007004",
"0.67637503",
"0.67625743",
"0.67620814",
"0.67605394",
"0.67466164",
"0.67402565",
"0.67370325",
"0.6735092",
"0.6714601",
"0.67071337",
"0.67060906",
"0.6703191",
"0.6695395",
"0.6694391",
"0.66830754",
"0.66803014",
"0.6678978",
"0.6678323",
"0.66772383",
"0.66760015",
"0.66671544",
"0.66631967",
"0.666167",
"0.6652107",
"0.6651885",
"0.66446596",
"0.6635144",
"0.66344666",
"0.6633143",
"0.6631949",
"0.66284686",
"0.66201866",
"0.6612031",
"0.66095245",
"0.6603893",
"0.6598749",
"0.659653",
"0.65925115",
"0.6587683",
"0.6580668",
"0.6571982",
"0.6568882",
"0.6568313",
"0.65676016",
"0.6565285",
"0.6565087",
"0.6563865",
"0.6555559",
"0.65545475",
"0.6554082",
"0.65466243",
"0.6546027",
"0.6544585",
"0.6541537",
"0.65404737",
"0.65362835",
"0.653062",
"0.65242225",
"0.6521846",
"0.65202963",
"0.6516717",
"0.6513831"
] |
0.0
|
-1
|
Method create__customers definition ends here.. Method delete__customers definition
|
public void delete__customers( String qualificationId, final VoidCallback callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
invokeStaticMethod("prototype.__delete__customers", hashMapObject, new Adapter.Callback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(String response) {
callback.onSuccess();
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"Customers createCustomers();",
"void delete(Customer customer);",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"void deleteCustomerById(int customerId);",
"void createCustomers() {\r\n\t\tSystem.out.println(\"\\nCreating 5 customers:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\tCustomer2 c2 = new Customer2(\"Serap\", \"Atik\");\r\n\t\tCustomer2 c3 = new Customer2(\"Kemal\", \"Tanir\");\r\n\t\tCustomer2 c4 = new Customer2(\"Betul\", \"Kara\");\r\n\t\tCustomer2 c5 = new Customer2(\"Selman\", \"Saki\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\tem.persist(c2);\r\n\t\tem.persist(c3);\r\n\t\tem.persist(c4);\r\n\t\tem.persist(c5);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"@Test\n\tpublic void deleteCustomer() {\n\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tint originalLength = customerController.read().size();\n\n\t\t// When\n\t\tICustomer cus = customerController.delete(id);\n\n\t\t// Then\n\t\tint expected = originalLength - 1;\n\t\tint actual = customerController.read().size();\n\t\tAssert.assertEquals(expected, actual);\n\t\tAssert.assertNotNull(cus);\n\t}",
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"@Override\n\tpublic void create(Customer t) {\n\n\t}",
"@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }",
"public boolean deleteCustomer() {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mobile Customer delete()\");\n\t}",
"public boolean deleteCustomer(String custId);",
"public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }",
"void deleteCustomerById(Long id);",
"@Override\n public void deleteCustomer(UUID id) {\n log.debug(\"Customer has been deleted: \"+id);\n }",
"Customer(){}",
"private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"[email protected]\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"[email protected]\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"[email protected]\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"[email protected]\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"[email protected]\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}",
"public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }",
"private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }",
"public void clearCustomers()\r\n\t{\r\n\t\tfor(int i=0;i<inStore.size();i++)\r\n\t\t{\r\n\t\t\tcustomers.add(inStore.get(i));\r\n\t\t}\r\n\t\tinStore.clear();\r\n\t}",
"@Test\n public void testDeleteCustomer() {\n System.out.println(\"deleteCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n instance.deleteCustomer(customerID);\n Customer result = instance.getCustomer(customerID);\n assertNull(result);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }",
"@BeforeTransaction\n\tpublic void setupManyCustomers() {\n\t\tint results = template.update(\"delete from Customer\");\n\t\tlogger.debug(\"Before Transaction Deleted {} Customer(s)\", results);\n\t\tSession session = factory.openSession();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tCustomer c = new Customer();\n\t\t\tc.setFirstName(\"Customer #\" + (i + 1));\n\t\t\tc.setLastName(\"Person\");\n\t\t\tsession.save(c);\n\t\t}\n\t\tsession.flush();\n\t\tsession.close();\n\t}",
"public void DeleteCust(String id);",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean deleteCustomer(int customerID) {\n\t\treturn false;\r\n\t}",
"public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(int theId) {\n\t\tcustomerDAO.deleteCustomer(theId);\n\t}",
"boolean delete(CustomerOrder customerOrder);",
"public abstract void delete(CustomerOrder customerOrder);",
"@Test\n public void testCustomerFactoryCreate() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(1, customerController.getCustomerList().size());\n }",
"private static void generateDeleteCustomer() {\n long accountNo = getRandAccountD();\n writeToFile(String.format(\"%d\\n\", accountNo));\n }",
"@Override\n\tpublic void deleteCustomer(Long custId) {\n\t\tcustomerRepository.deleteById(custId);\n\t\t\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}",
"public void deleteCustomer(Customer customer){\n _db.delete(\"Customer\", \"customer_name = ?\", new String[]{customer.getName()});\n }",
"@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// delete object with primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\n\t\ttheQuery.executeUpdate();\n\t}",
"public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}",
"public interface CustomerService {\n\t/**\n\t * Metodo para insertar un cliente Customer en la base de datos PostgreSQL\n\t * \n\t * @param customer - Cliente de tipo Customer\n\t */\n\tvoid insert(Customer customer);\n\n\t/**\n\t * Metodo para insertar un bloque (coleccion) de cliente Customer en la base de\n\t * datos PostgreSQL\n\t * \n\t * @param customers - Lista de clientes de tipo List<Customer>\n\t */\n\tvoid insertBatch(List<Customer> customers);\n\n\t/**\n\t * Metodo que devuelve todos los clientes Customer de la base de datos\n\t * PostgreSQL\n\t * \n\t * @return Una Lista (java.utils) de tipo List<Customer> con todos los clientes\n\t * de la base de datos PostgreSQL\n\t */\n\tList<Customer> loadAllCustomer();\n\n\t/**\n\t * Metodo que devuelve un cliente Customer a partir de su identificador\n\t * customerId\n\t * \n\t * @param customerId - Identificador del cliente de tipo Integer\n\t * @return Cliente a devolver de tipo Customer\n\t */\n\tCustomer getCustomerById(int customerId);\n\n\t/**\n\t * Metodo que devuelve el nombre String de un cliente Customer a partir de su\n\t * identificador customerId\n\t * \n\t * @param customerId - Identificador de cliente de tipo Integer\n\t * @return String - Nombre del cliente de tipo String\n\t */\n\tString getCustomerNameById(int customerId);\n\n\t/**\n\t * Metodo que devuelve el numero Integer total de clientes en la base de datos\n\t * PostgreSQL\n\t * \n\t * @return El numero total de clientes de tipo Integer\n\t */\n\tvoid getTotalNumerCustomer();\n\n\t/**\n\t * Metodo que elimina un cliente Customer de la base de datos PostgreSQL a\n\t * partir de su identificador customerId\n\t * \n\t * @param customerId - Identificador del cliente Customer de tipo Integer\n\t */\n\tvoid deleteCustomerById(int customerId);\n\n\t/**\n\t * Metodo que actualiza la informacion un cliente Customer ya existente en la\n\t * base de datos PostgreSQL\n\t * \n\t * @param customer - Cliente con la informacion a ser actualizada de tipo\n\t * Customer\n\t */\n\tvoid updateCustomerById(Customer customer);\n}",
"public void deleteCustomerbyId(int i) {\n\t\tObjectSet result = db.queryByExample(new Customer(i, null, null, null, null, null));\n\n\t\twhile (result.hasNext()) {\n\t\t\tdb.delete(result.next());\n\t\t}\n\t\tSystem.out.println(\"\\nEsborrat el customer \" + i);\n\t}",
"@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerAddres : {}\", id);\n customerAddresRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerAddres\", id.toString())).build();\n }",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete the object with the primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}",
"@Override\n\tpublic void delete(Customer o) {\n\n\t\tif (o.getId() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString deleteQuery = \"DELETE FROM TB_customer WHERE \" + COLUMN_NAME_ID + \"=\" + o.getId();\n\n\t\ttry (Statement deleteStatement = dbCon.createStatement()) {\n\t\t\tdeleteStatement.execute(deleteQuery);\n\t\t} catch (SQLException s) {\n\t\t\tSystem.out.println(\"Delete of customer \" + o.getId() + \" falied : \" + s.getMessage());\n\t\t}\n\t}",
"BrainTreeCustomerResult removeCustomer(BrainTreeCustomerRequest request);",
"void removeCustomer(Customer customer);",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"void createAndManageCustomer() {\r\n\t\tSystem.out.println(\"\\nCreating and managing a customer:\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c = new Customer2(\"Sami\", \"Cemil\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c);\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tc.setLastName(\"Kamil\");\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\tem.close();\r\n\t}",
"private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }",
"void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"@Override\n\tpublic void deleteCoustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().delete(customer);\n\t}",
"@Override\n\tpublic void createCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\ttry {\n\t\t\t\n\t\t\tStatement st = con.createStatement();\n\t\t\tString create = String.format(\"insert into customer values('%s', '%s')\", customer.getCustName(),\n\t\t\t\t\tcustomer.getPassword());\n\t\t\tst.executeUpdate(create);\n\t\t\tSystem.out.println(\"Customer added successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to add A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\t}",
"@Test\r\n public void testdeleteCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n DAOCustomer.deleteCustomer(Con(),2);\r\n List<Server.Customer> r = DAOCustomer.loadCustomer(Con());\r\n assertEquals(lesClients.size()-1 , r.size());\r\n \r\n \r\n }",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(Customer customer) {\n\t\thibernateTemplate.delete(customer);\n\n\t\tSystem.out.println(customer + \"is deleted\");\n\t}",
"public void delete(Customer customer) {\n\t\tcustRepo.delete(customer);\n\t}",
"Customer() {\n }",
"public Customers(int customerId, String customerName, String customerAddress, String customerPostalCode,\n String customerPhone, int divisionId, String divisionName, int countryId, String countryName) {\n this.customerId = customerId;\n this.customerName = customerName;\n this.customerAddress = customerAddress;\n this.customerPostalCode = customerPostalCode;\n this.customerPhone = customerPhone;\n this.divisionId = divisionId;\n this.divisionName = divisionName;\n this.countryId = countryId;\n this.countryName = countryName;\n }",
"public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The manager was unable to create a new customer\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public ResponseEntity<?> createCustomer(customer.controller.Customer customer);",
"@Transactional\n\t@Override\n\tpublic Customer createCustomer(String name) {\n\t\t\n\t\tvalidateName(name);\n\t\tLocalDateTime now = LocalDateTime.now();\n\t\tAccount account = new Account(5000.0, now);\n\t\taccountRepository.save(account);\n\t\tSet<Item> set = new HashSet<>();\n\t\tCustomer customer = new Customer(name, account,set);\n\t\tcustRepository.save(customer);\n\t\treturn customer;\n\t\t\n\t}",
"@DELETE\n\t@Path(\"/delete\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic void delCustomer(String id)\n\t\t\tthrows MalformedURLException, RemoteException, NotBoundException, ClassNotFoundException, SQLException {\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Delete the customers table\n\t\tdb.Delete(\"DELETE FROM CUSTOMERS WHERE id='\" + id + \"'\");\n\n\t\t// Delete the bookings table\n\t\tdb.Delete(\"DELETE FROM BOOKINGS WHERE CUSTOMERID='\" + id + \"'\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\t}",
"private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"void deleteCustomerDDPayById(int id);",
"@Test\r\n\tpublic void removeCustomerTest() {\n\t\tassertNotNull(\"Test if there is valid Customer arraylist to add to\", CustomerList);\r\n\t\t\r\n\t\t//Given an empty list, after adding 1 item, the size of the list is 1 - normal\r\n\t\t//The item just added is as same as the first item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\t\t\r\n\t\tassertEquals(\"Test that Customer arraylist size is 1\", 1, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust1, CustomerList.get(0));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 2? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 2, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust2, CustomerList.get(1));\t\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 3? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 3\", 3, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust3, CustomerList.get(2));\t\r\n\t}",
"@Test\n public void testCreateCustomer() {\n System.out.println(\"createCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n Customer result = instance.getCustomer(customerID);\n assertEquals(\"Gert Hansen\", result.getName());\n assertEquals(\"Grønnegade 12\", result.getAddress());\n assertEquals(\"98352010\", result.getPhone());\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }",
"Customer() \n\t{\n\t}",
"public Customer(int customer_ID, String customer_Name, String address, String postalCode, String phone, String createdDate, String createdBy, String lastUpdate, String lastUpdatedBy, int divisionID) {\n this.customer_ID = customer_ID;\n this.customer_Name = customer_Name;\n this.address = address;\n this.postalCode = postalCode;\n this.phone = phone;\n this.createdDate = createdDate;\n this.createdBy = createdBy;\n this.lastUpdate = lastUpdate;\n this.lastUpdatedBy = lastUpdatedBy;\n this.divisionID = divisionID;\n }",
"@Override\n\tpublic int deleteCustomerReprieve(Integer id) {\n\t\treturn customerDao.deleteCustomerReprieve(id);\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now delete the customer using parameter theId i.e., Customer id (primary key)\n\t\t//HQL query\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\n\t\t//prev parameter theId is assigned to customerId\n\t\ttheQuery.setParameter(\"customerId\",theId);\n\n\t\t//this works with update, delete , so on ...\n\t\ttheQuery.executeUpdate();\n\n\t}",
"@Override\n\tpublic boolean createCustomer(Customer customer) {\n\n\t\tif (customer != null) {\n\t\t\tcustomers.add(customer);\n\t\t\tlogger.info(\"Customer added to the list\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Failed to add customer to the list: createCustomer()\");\n\t\t\treturn false;\n\t\t}\n\t}",
"SerialResponse createCustomer(PinCustomerPost pinCustomerPost);",
"public int insertCustomer() {\n\t\treturn 0;\r\n\t}",
"public void delete(Customer customer) {\r\n EntityManagerHelper.beginTransaction();\r\n CUSTOMERDAO.delete(customer);\r\n EntityManagerHelper.commit();\r\n renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()).requestRender();\r\n //renderManager.removeRenderer(renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()));\r\n }",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n Session session =sessionFactory.getCurrentSession();\n Customer customer= getCustomer(customerId);\n session.delete(customer);\n\t\treturn true;\n\t}",
"@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}",
"public Customer() {\n\t\tsuper();\n\t}",
"private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }",
"@DeleteMapping(\"/customer/id/{id}\")\r\n\tpublic Customer deleteCustomerbyId(@PathVariable(\"id\") int customerId) {\r\n\tif(custService.deleteCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.deleteCustomerbyId(customerId);\r\n\t}",
"private void createCustomersTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE customers \"\n\t\t\t\t\t+ \"(id INT GENERATED ALWAYS AS IDENTITY, \"\n\t\t\t\t\t+ \"name VARCHAR(40), \" + \"email VARCHAR(40), \"\n\t\t\t\t\t+ \"pass VARCHAR(40), \" + \"ssn VARCHAR(9), \"\n\t\t\t\t\t+ \"address VARCHAR(255), \" + \"hphone VARCHAR(10), \"\n\t\t\t\t\t+ \"cphone VARCHAR(10), \" + \"signuptime BIGINT, \"\n\t\t\t\t\t+ \"chkacct BIGINT, \" + \"savacct BIGINT, \" + \"cdacct BIGINT, \"\n\t\t\t\t\t+ \"hasStock VARCHAR(6))\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table users\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of user table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}",
"public void exitCustomer(int i)\r\n\t{\r\n\t\tcustomers.add(inStore.get(i));\r\n\t\tinStore.remove(i);\r\n\t}",
"public Customer() {\n\t\tcustref++;\n\t}",
"@DeleteMapping()\n public Customer deleteCustomer(@RequestBody Customer customer ) {\n customerRepository.delete(customer);\n return customerRepository.findById(customer.getId()).isPresent() ? customer : null;\n }",
"public void setCustomersName(String customersName)\r\n {\r\n this.customersName = customersName;\r\n }",
"@Test\n public void deleteCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Delete the Customer from the database\n service.removeCustomer(customer.getCustomerId());\n\n // Test the deleteCustomer() method\n verify(customerDao, times(1)).deleteCustomer(integerArgumentCaptor.getValue());\n assertEquals(customer.getCustomerId(), integerArgumentCaptor.getValue().intValue());\n }",
"public void delete(String custNo) {\n\t\tcstCustomerDao.update(custNo);\n\t\t\n\t}",
"@PostMapping(\"/customers\")\n\tpublic Customer savecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomer.setId(0); //here 0 is not id, we are telling saveorupdate() DAO method to insert the customer object coz it inserts if id is empty(so give 0 or null)\n\t\tthecustomerService.saveCustomer(thecustomer);\n\t\treturn thecustomer;\n\t}",
"@Override\n\tpublic void addCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().save(customer);\n\t}",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"public boolean addCustomer(Customer customer) throws DatabaseOperationException;",
"@PostMapping(\"/customers\")\n public Customer addCustomer(@RequestBody Customer theCustomer)\n {\n //also just in case they pass an id in JSON .. set id to o\n //this is to force a save of new item ... instead od update\n theCustomer.setId(0);\n customerService.save(theCustomer);\n return theCustomer;\n }",
"@Test\n\t// @Disabled\n\tvoid testDeleteCustomer() {\n\t\tCustomer customer = new Customer(1, \"tommy\", \"cruise\", \"951771122\", \"[email protected]\");\n\t\tMockito.when(custRep.findById(1)).thenReturn(Optional.of(customer));\n\t\tcustRep.deleteById(1);\n\t\tCustomer persistedCust = custService.deleteCustomerbyId(1);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t\tassertEquals(\"tommy\", persistedCust.getFirstName());\n\n\t}",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"void generate(List<Customer> customers);",
"public Customer(){\n\t \n }"
] |
[
"0.7563028",
"0.7407681",
"0.735901",
"0.73555076",
"0.73555076",
"0.70522034",
"0.7011432",
"0.69927675",
"0.69927675",
"0.69927675",
"0.69927675",
"0.69021136",
"0.6880068",
"0.6877782",
"0.6872994",
"0.686668",
"0.68624616",
"0.6819905",
"0.6799363",
"0.67988586",
"0.67447114",
"0.67351586",
"0.67232305",
"0.6716269",
"0.6698929",
"0.668198",
"0.6635786",
"0.6620483",
"0.6618184",
"0.66098946",
"0.6609632",
"0.6594318",
"0.65939075",
"0.65574753",
"0.65323675",
"0.65199745",
"0.6514816",
"0.65128976",
"0.650923",
"0.6503376",
"0.65019417",
"0.6470194",
"0.6464645",
"0.64615947",
"0.6455268",
"0.6451492",
"0.64511704",
"0.64337313",
"0.6416371",
"0.6405568",
"0.64023876",
"0.6379886",
"0.63702726",
"0.63324404",
"0.63317263",
"0.6326914",
"0.63156104",
"0.63114506",
"0.6298051",
"0.62812424",
"0.6281159",
"0.62753975",
"0.6271997",
"0.6271997",
"0.62711394",
"0.6268776",
"0.62637985",
"0.6259721",
"0.62431824",
"0.62338877",
"0.62262076",
"0.62160426",
"0.62077713",
"0.6204219",
"0.6202566",
"0.61961615",
"0.6186971",
"0.61862314",
"0.61779606",
"0.61655265",
"0.61645913",
"0.61569285",
"0.6151691",
"0.6145387",
"0.6140513",
"0.6140057",
"0.6137646",
"0.6128292",
"0.612444",
"0.6118774",
"0.61147594",
"0.6111796",
"0.6109243",
"0.6106286",
"0.60914236",
"0.6090285",
"0.6085454",
"0.6084969",
"0.6077857",
"0.60740745"
] |
0.612874
|
87
|
Method delete__customers definition ends here.. Method count__customers definition
|
public void count__customers( String qualificationId, Map<String, ? extends Object> where, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.put("where", where);
invokeStaticMethod("prototype.__count__customers", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}",
"int getCustomersCount();",
"public int Customers()\r\n\t{\r\n\t\treturn customers.size();\r\n\t}",
"private int getNumberOfCustomers(){\n FileServices fs = new FileServices();\n return fs.loadCustomers().size();\n }",
"@Test\r\n public void testdeleteCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n DAOCustomer.deleteCustomer(Con(),2);\r\n List<Server.Customer> r = DAOCustomer.loadCustomer(Con());\r\n assertEquals(lesClients.size()-1 , r.size());\r\n \r\n \r\n }",
"public int getNumOfCustomers() {\n return this.numOfCustomers;\n }",
"public int count() {\n\t\tint count = cstCustomerDao.count();\n\t\treturn count;\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"public int getTotalCustomers()\n {\n return totalCustomers;\n }",
"@Test\n\tpublic void deleteCustomer() {\n\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tint originalLength = customerController.read().size();\n\n\t\t// When\n\t\tICustomer cus = customerController.delete(id);\n\n\t\t// Then\n\t\tint expected = originalLength - 1;\n\t\tint actual = customerController.read().size();\n\t\tAssert.assertEquals(expected, actual);\n\t\tAssert.assertNotNull(cus);\n\t}",
"public abstract long countByCustomer(Customer customer);",
"public abstract long countByCustomer(Customer customer);",
"void delete(Customer customer);",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mobile Customer delete()\");\n\t}",
"void deleteCustomerById(int customerId);",
"public void setTotalCustomers(int _totalCustomers){\n this.totalCustomers = _totalCustomers;\n\n }",
"public void clearCustomers()\r\n\t{\r\n\t\tfor(int i=0;i<inStore.size();i++)\r\n\t\t{\r\n\t\t\tcustomers.add(inStore.get(i));\r\n\t\t}\r\n\t\tinStore.clear();\r\n\t}",
"public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }",
"void deleteCustomerById(Long id);",
"public int getNonPrunedCustomerCount() {\n return this.customers.size();\n }",
"public boolean deleteCustomer() {\n\t\treturn false;\r\n\t}",
"public boolean deleteCustomer(String custId);",
"public void deleteCustomerbyId(int i) {\n\t\tObjectSet result = db.queryByExample(new Customer(i, null, null, null, null, null));\n\n\t\twhile (result.hasNext()) {\n\t\t\tdb.delete(result.next());\n\t\t}\n\t\tSystem.out.println(\"\\nEsborrat el customer \" + i);\n\t}",
"void getTotalNumerCustomer();",
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}",
"@Override\n\tpublic int deleteCustomerReprieve(Integer id) {\n\t\treturn customerDao.deleteCustomerReprieve(id);\n\t}",
"@Override\n public void deleteCustomer(UUID id) {\n log.debug(\"Customer has been deleted: \"+id);\n }",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(int theId) {\n\t\tcustomerDAO.deleteCustomer(theId);\n\t}",
"@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }",
"@Override\n public int getCount() {\n return customersArrayList.size();\n }",
"public int insertCustomer() {\n\t\treturn 0;\r\n\t}",
"@BeforeTransaction\n\tpublic void setupManyCustomers() {\n\t\tint results = template.update(\"delete from Customer\");\n\t\tlogger.debug(\"Before Transaction Deleted {} Customer(s)\", results);\n\t\tSession session = factory.openSession();\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tCustomer c = new Customer();\n\t\t\tc.setFirstName(\"Customer #\" + (i + 1));\n\t\t\tc.setLastName(\"Person\");\n\t\t\tsession.save(c);\n\t\t}\n\t\tsession.flush();\n\t\tsession.close();\n\t}",
"@Override\r\n\tpublic boolean deleteCustomer(int customerID) {\n\t\treturn false;\r\n\t}",
"@Test\n public void testDeleteCustomer() {\n System.out.println(\"deleteCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n instance.deleteCustomer(customerID);\n Customer result = instance.getCustomer(customerID);\n assertNull(result);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }",
"public void DeleteCust(String id);",
"int getCustomerCount(CustomerVo vo);",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// delete object with primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\n\t\ttheQuery.executeUpdate();\n\t}",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete the object with the primary key\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\t\ttheQuery.setParameter(\"customerId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}",
"boolean delete(CustomerOrder customerOrder);",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"@Override\n\tpublic void deleteCustomer(Long custId) {\n\t\tcustomerRepository.deleteById(custId);\n\t\t\n\t}",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"@Override\n\tpublic void deleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now delete the customer using parameter theId i.e., Customer id (primary key)\n\t\t//HQL query\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Customer where id=:customerId\");\n\n\t\t//prev parameter theId is assigned to customerId\n\t\ttheQuery.setParameter(\"customerId\",theId);\n\n\t\t//this works with update, delete , so on ...\n\t\ttheQuery.executeUpdate();\n\n\t}",
"public abstract void delete(CustomerOrder customerOrder);",
"public void deleteCustomer(Customer customer){\n _db.delete(\"Customer\", \"customer_name = ?\", new String[]{customer.getName()});\n }",
"public void delete__customers( String qualificationId, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n\n \n invokeStaticMethod(\"prototype.__delete__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"@Test\r\n public void testaddCustomer() throws Exception {\r\n System.out.println(\"addCustomer\");\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n DAOCustomer.addCustomer(Con(),\"Costa\", \"Mario\",\"15 rue Paul\",\"77290\",\"Paris\",\"[email protected]\",\"M\");\r\n List<Server.Customer> r = DAOCustomer.loadCustomer(Con());\r\n assertEquals(lesClients.size()+1 , r.size());\r\n }",
"@Test\r\n\tpublic void removeCustomerTest() {\n\t\tassertNotNull(\"Test if there is valid Customer arraylist to add to\", CustomerList);\r\n\t\t\r\n\t\t//Given an empty list, after adding 1 item, the size of the list is 1 - normal\r\n\t\t//The item just added is as same as the first item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\t\t\r\n\t\tassertEquals(\"Test that Customer arraylist size is 1\", 1, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust1, CustomerList.get(0));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 2? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 2, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust2, CustomerList.get(1));\t\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 3? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.removeCustomer(CustomerList);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 3\", 3, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is deleted\", cust3, CustomerList.get(2));\t\r\n\t}",
"public int newCustomer(Map customerMap, Map allData) {\r\n\t\t\r\n\t\treturn 0;\r\n\t}",
"public int countServedCustomers()\r\n {\r\n int count = 0;\r\n //go through list and see which customers have non zero serve times--update count\r\n for(Customer c: this.Customers){\r\n if(c.getserveTime()> 0 ){\t\r\n count++;\r\n //add these customers to their own list\r\n this.servedCustomers.add(c);\r\n }\r\n }\r\n return count;\r\n }",
"public static void deleteCustomer(int customerID) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String deleteStatement = \"DELETE from customers WHERE Customer_ID = ?;\";\r\n DBQuery.setPreparedStatement(conn, deleteStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.setInt(1,customerID);\r\n ps.execute();\r\n\r\n if (ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n } else {\r\n System.out.println(\"no change\");\r\n }\r\n }",
"@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to delete CustomerAddres : {}\", id);\n customerAddresRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"customerAddres\", id.toString())).build();\n }",
"@Test\n\tpublic void totalCustomers()\n\t{\n\t\tassertTrue(controller.getReport().getTotalCustomers() == 3);\n\t}",
"public Customer() {\n\t\tcustref++;\n\t}",
"private static void generateDeleteCustomer() {\n long accountNo = getRandAccountD();\n writeToFile(String.format(\"%d\\n\", accountNo));\n }",
"void deleteCustomerDDPayById(int id);",
"public static int deleteCustomer(long custID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = pool.getConnection();\n\t\t\tStatement stmt = con.createStatement();\n\t\t\treturn stmt.executeUpdate(\"DELETE FROM customersCoupons WHERE customerID=\" + custID);\n\t\t} catch (Exception e) {\n\t\t\tthrow new CouponSystemException(\"Customer Not Deleted\");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\t}",
"@Test\n public void deleteCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"[email protected]\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Delete the Customer from the database\n service.removeCustomer(customer.getCustomerId());\n\n // Test the deleteCustomer() method\n verify(customerDao, times(1)).deleteCustomer(integerArgumentCaptor.getValue());\n assertEquals(customer.getCustomerId(), integerArgumentCaptor.getValue().intValue());\n }",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteCustomer(Customer customer) {\n\t\thibernateTemplate.delete(customer);\n\n\t\tSystem.out.println(customer + \"is deleted\");\n\t}",
"public void deleteCustomer(Connection connection, int CID) throws SQLException {\n\n Scanner scan = new Scanner(System.in);\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs = dmd.getTables(null, null, \"CUSTOMER\", null);\n\n if (rs.next()){\n\n String sql = \"DELETE FROM Customer WHERE c_ID = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCID(CID);\n pStmt.setInt(1, getCID());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }\n else {\n System.out.println(\"ERROR: Error loading CUSTOMER Table.\");\n }\n }",
"@Override\n\tpublic void delete(Customer o) {\n\n\t\tif (o.getId() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString deleteQuery = \"DELETE FROM TB_customer WHERE \" + COLUMN_NAME_ID + \"=\" + o.getId();\n\n\t\ttry (Statement deleteStatement = dbCon.createStatement()) {\n\t\t\tdeleteStatement.execute(deleteQuery);\n\t\t} catch (SQLException s) {\n\t\t\tSystem.out.println(\"Delete of customer \" + o.getId() + \" falied : \" + s.getMessage());\n\t\t}\n\t}",
"@Override\n\t/**\n\t * Removes all Coupons from the Coupon table in the database related to\n\t * Customer ID received\n\t */\n\tpublic void deleteCouponsByCustomerID(int custID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to remove Coupons related to specified\n\t\t\t// Customer ID from the Coupon table via prepared statement\n\t\t\tString deleteCouponsByCustomerIDSQL = \"delete from coupon where id in (select couponid from custcoupon where customerid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(deleteCouponsByCustomerIDSQL);\n\t\t\t// Set Customer ID from variable that method received\n\t\t\tpstmt.setInt(1, custID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint resRemByCust3 = pstmt.executeUpdate();\n\t\t\tif (resRemByCust3 != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupons of specified Customer have been deleted from Coupon table successfully\");\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupons related to\n\t\t\t\t// specified Customer not found in the database\n\t\t\t\tSystem.out.println(\"Coupons removal has been failed - subject entries not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon removal from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupons removal has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"public void listAllCustomers() {\n List<Customer> list = model.findAllCustomers();\n if(list != null){\n if(list.isEmpty())\n view.showMessage(not_found_error);\n else\n view.showTable(list);\n }\n else\n view.showMessage(retrieving_data_error); \n }",
"@Override\n\tpublic int countByCustomer(int customerId) {\n\t\treturn customerBrowseMapper.countByCustomer(customerId);\n\t}",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"BrainTreeCustomerResult removeCustomer(BrainTreeCustomerRequest request);",
"private void deletePurchase(CustomerService customerService) throws DBOperationException\n\t{\n\t\tSystem.out.println(\"To delete coupon purchase enter coupon ID\");\n\t\tString idStr = scanner.nextLine();\n\t\tint id;\n\t\ttry\n\t\t{\n\t\t\tid=Integer.parseInt(idStr);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid id\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// retrieve all coupons of this customer\n\t\tList<Coupon> coupons = customerService.getCustomerCoupons();\n\t\tCoupon coupon = null;\n\t\t\n\t\t// find coupon whose purchase to be deleted\n\t\tfor(Coupon tempCoupon : coupons)\n\t\t\tif(tempCoupon.getId() == id)\n\t\t\t{\n\t\t\t\tcoupon = tempCoupon;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t// delete purchase of the coupon\n\t\tif(coupon != null)\n\t\t{\n\t\t\tcustomerService.deletePurchase(coupon);\n\t\t\tSystem.out.println(customerService.getClientMsg());\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Customer dors not have coupon with this id\");\n\t}",
"@Override\n\tpublic void deleteCoustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().delete(customer);\n\t}",
"public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }",
"@Override\n\tpublic boolean deleteCustomer(int customerId) {\n Session session =sessionFactory.getCurrentSession();\n Customer customer= getCustomer(customerId);\n session.delete(customer);\n\t\treturn true;\n\t}",
"public void delete(Customer customer) {\n\t\tcustRepo.delete(customer);\n\t}",
"void removeCustomer(Customer customer);",
"public void exitCustomer(int i)\r\n\t{\r\n\t\tcustomers.add(inStore.get(i));\r\n\t\tinStore.remove(i);\r\n\t}",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<Customer> findAllCustomer() {\n\t\treturn customerDao.findAllCustomer();\n\t}",
"public void delete(Customer customer) {\r\n EntityManagerHelper.beginTransaction();\r\n CUSTOMERDAO.delete(customer);\r\n EntityManagerHelper.commit();\r\n renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()).requestRender();\r\n //renderManager.removeRenderer(renderManager.getOnDemandRenderer(customer.getCustomernumber().toString()));\r\n }",
"@Override\n public final long countAll() {\n\treturn (long) getEntityManager()\n\t\t.createQuery(\"select count(*) from \"\n\t\t\t+ CustomerUser.class.getName())\n\t\t.getSingleResult();\n }",
"public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }",
"public int getCustomerID() {\n\t\treturn 0;\n\t}",
"public int updateCustomer(Map customerMap, Map allData){\r\n\t\t\r\n\t\treturn 0;\r\n\t}",
"@DeleteMapping(\"/customer/id/{id}\")\r\n\tpublic Customer deleteCustomerbyId(@PathVariable(\"id\") int customerId) {\r\n\tif(custService.deleteCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.deleteCustomerbyId(customerId);\r\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}",
"void deleteAllDiscounts();",
"@Test\n\t@DisplayName(\"test you can not register a duplicate customer\")\n\tvoid testCustomers() {\n\t\ts.addACustomer(new Customer(\"Gary\", \"Smith\"));\n\t\ts.addACustomer(new Customer(\"Gary\", \"Smith\"));\n\t\tassertEquals(1, s.getCustomers().size());\n\t}",
"public void delete(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"DELETE FROM customer WHERE customer_key = ?\");\n ppst.setInt(1, c.getCustomerKey());\n ppst.executeUpdate();\n System.out.println(\"Successfully deleted.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Delete error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }",
"void createCustomers() {\r\n\t\tSystem.out.println(\"\\nCreating 5 customers:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\tCustomer2 c2 = new Customer2(\"Serap\", \"Atik\");\r\n\t\tCustomer2 c3 = new Customer2(\"Kemal\", \"Tanir\");\r\n\t\tCustomer2 c4 = new Customer2(\"Betul\", \"Kara\");\r\n\t\tCustomer2 c5 = new Customer2(\"Selman\", \"Saki\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\tem.persist(c2);\r\n\t\tem.persist(c3);\r\n\t\tem.persist(c4);\r\n\t\tem.persist(c5);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"public static boolean deleteCustomer(int id)\n {\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String deleteQuery = \"DELETE FROM customers WHERE Customer_ID=\" + id;\n statement.execute(deleteQuery);\n if(statement.getUpdateCount() > 0)\n System.out.println(statement.getUpdateCount() + \" row(s) affected.\");\n else\n System.out.println(\"No changes were made.\");\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return false;\n }",
"@Override\n\tpublic List<CustomerData> getAllCustomer() {\n\t\treturn customerRepository.findAll();\n\t}",
"@Override\n\tpublic boolean deleteCustomer(Integer id) {\n\n\t\tboolean isDeleted = false;\n\n\t\tfor (Customer customer : customers) {\n\t\t\tif (customer.getId() == id) {\n\t\t\t\tcustomers.remove(customer);\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is deleted from the list\");\n\t\t\t\tisDeleted = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Delete done : deleteCustomer.isDeleted = \" + isDeleted);\n\t\treturn isDeleted;\n\t}",
"@Query(\"select count(u) from User u where u.role = 'CUSTOMER'\")\n Long getTotalCustomersCount();",
"private void endCustomer(MyCustomer customer){ \n\tDo(\"Table \" + customer.tableNum + \" is cleared!\");\n\thost.msgTableIsFree(customer.tableNum);\n\tcustomers.remove(customer);\n\tstateChanged();\n }",
"@GetMapping(\"/delete\")\r\n\tpublic String deleteCustomer(@RequestParam(\"customerId\") int id){\n\t\tcustomerService.deleteCustomer(id);\r\n\t\t\r\n\t\t//send over to our form\r\n\t\treturn \"redirect:/customer/list\";\r\n\t}",
"@Override\n\t@Transactional\n\tpublic void delete(Long id) {\n\t\tcustomerDAO.deleteById(id);\n\t}",
"public List<Customer> findAllCustomers() throws DatabaseOperationException;"
] |
[
"0.78258437",
"0.7408062",
"0.7192641",
"0.69813514",
"0.69483656",
"0.69165504",
"0.6903407",
"0.6902494",
"0.6902494",
"0.6900698",
"0.6896048",
"0.684946",
"0.684946",
"0.6767989",
"0.66914016",
"0.6677796",
"0.6583254",
"0.6529722",
"0.65277016",
"0.65057",
"0.64688003",
"0.6436746",
"0.64244604",
"0.6392293",
"0.63891286",
"0.635194",
"0.63476664",
"0.6316846",
"0.6312108",
"0.6303493",
"0.6283067",
"0.62812984",
"0.62729615",
"0.6241451",
"0.6225264",
"0.62126607",
"0.62031776",
"0.6183829",
"0.61547804",
"0.61282283",
"0.61160666",
"0.6112326",
"0.60959864",
"0.6095303",
"0.607783",
"0.6075643",
"0.6058567",
"0.60501236",
"0.6048818",
"0.60381645",
"0.6022686",
"0.59982544",
"0.5992639",
"0.5987897",
"0.5973647",
"0.59703916",
"0.59568477",
"0.5948175",
"0.59245455",
"0.5913085",
"0.5912672",
"0.59039986",
"0.5895174",
"0.5881119",
"0.58768684",
"0.58721936",
"0.5868169",
"0.5853306",
"0.58472204",
"0.5837878",
"0.5828299",
"0.5822275",
"0.581524",
"0.5811225",
"0.58077544",
"0.57954",
"0.5787849",
"0.5783115",
"0.57773834",
"0.5765978",
"0.57549924",
"0.57381195",
"0.57284015",
"0.5723391",
"0.5721545",
"0.5719925",
"0.57156515",
"0.5715573",
"0.5713302",
"0.5710304",
"0.5709371",
"0.57071275",
"0.5701559",
"0.569881",
"0.56960446",
"0.56878626",
"0.5685685",
"0.56853217",
"0.5682872",
"0.56801337"
] |
0.59878045
|
54
|
Method count__customers definition ends here.. Method create definition
|
public void create( Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.putAll(data);
invokeStaticMethod("create", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
if(response != null){
QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);
if(context != null){
try {
Method method = qualificationRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(qualificationRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
//qualificationRepo.addStorage(context);
}
Map<String, Object> result = Util.fromJson(response);
Qualification qualification = qualificationRepo.createObject(result);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = qualification.getClass().getMethod("save__db");
method.invoke(qualification);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
callback.onSuccess(qualification);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}",
"int getCustomersCount();",
"Customers createCustomers();",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"public abstract long countByCustomer(Customer customer);",
"public abstract long countByCustomer(Customer customer);",
"public int getNumOfCustomers() {\n return this.numOfCustomers;\n }",
"public int newCustomer(Map customerMap, Map allData) {\r\n\t\t\r\n\t\treturn 0;\r\n\t}",
"public int Customers()\r\n\t{\r\n\t\treturn customers.size();\r\n\t}",
"void createCustomers() {\r\n\t\tSystem.out.println(\"\\nCreating 5 customers:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\tCustomer2 c2 = new Customer2(\"Serap\", \"Atik\");\r\n\t\tCustomer2 c3 = new Customer2(\"Kemal\", \"Tanir\");\r\n\t\tCustomer2 c4 = new Customer2(\"Betul\", \"Kara\");\r\n\t\tCustomer2 c5 = new Customer2(\"Selman\", \"Saki\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\tem.persist(c2);\r\n\t\tem.persist(c3);\r\n\t\tem.persist(c4);\r\n\t\tem.persist(c5);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"@Override\n\tpublic void create(Customer t) {\n\n\t}",
"private int getNumberOfCustomers(){\n FileServices fs = new FileServices();\n return fs.loadCustomers().size();\n }",
"public int count() {\n\t\tint count = cstCustomerDao.count();\n\t\treturn count;\n\t}",
"public int getTotalCustomers()\n {\n return totalCustomers;\n }",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }",
"public int insertCustomer() {\n\t\treturn 0;\r\n\t}",
"int getCustomerCount(CustomerVo vo);",
"Customer(){}",
"public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }",
"public Customer() {\n\t\tcustref++;\n\t}",
"@Test\n public void testCustomerFactoryCreate() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(1, customerController.getCustomerList().size());\n }",
"public void setTotalCustomers(int _totalCustomers){\n this.totalCustomers = _totalCustomers;\n\n }",
"void getTotalNumerCustomer();",
"@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}",
"private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }",
"@Transactional\n\t@Override\n\tpublic Customer createCustomer(String name) {\n\t\t\n\t\tvalidateName(name);\n\t\tLocalDateTime now = LocalDateTime.now();\n\t\tAccount account = new Account(5000.0, now);\n\t\taccountRepository.save(account);\n\t\tSet<Item> set = new HashSet<>();\n\t\tCustomer customer = new Customer(name, account,set);\n\t\tcustRepository.save(customer);\n\t\treturn customer;\n\t\t\n\t}",
"Customer() \n\t{\n\t}",
"private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }",
"public CustomerNew () {\n\t\tsuper();\n\t}",
"public Customer createCustomer() {\n return new Customer(nameNested, surNameNested, ageNested, streetNested);\n }",
"Customer() {\n }",
"@Override\n public int getCount() {\n return customersArrayList.size();\n }",
"@Test\r\n\tpublic void testCreateRandomCustomer() {\r\n\r\n\t\tint NO_FLOORS = 25;\r\n\t\t\r\n\t\tCustomer c = custFact.createRandomCustomer(NO_FLOORS);\r\n\t\t\r\n\t\tassertNotNull(c);\r\n\t\t\r\n\t}",
"void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"public int getNonPrunedCustomerCount() {\n return this.customers.size();\n }",
"public Customers(){\r\n \r\n }",
"private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"[email protected]\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"[email protected]\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"[email protected]\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"[email protected]\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"[email protected]\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}",
"public void createCustomer(int numOfCustomers, double probabilityG) {\n double time = 0;\n\n //0.000 1 arrives\n double randomGreedy = gen.genCustomerType();\n boolean greedy = false;\n if (randomGreedy < probabilityG) {\n greedy = true;\n }\n Customer customer = new Customer(time, greedy);\n ArrivalEvent event = new ArrivalEvent(customer.getID(), \n customer.getArrivalTime(), customer.getType());\n queue.add(event);\n\n for (int i = 0; i < numOfCustomers - 1; i++) {\n double interTime = gen.genInterArrivalTime();\n time = time + interTime;\n\n randomGreedy = gen.genCustomerType();\n greedy = false;\n if (randomGreedy < probabilityG) {\n greedy = true;\n } \n customer = new Customer(time, greedy);\n event = new ArrivalEvent(customer.getID(), \n customer.getArrivalTime(), customer.getType());\n\n queue.add(event);\n }\n }",
"public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The manager was unable to create a new customer\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Customer() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.parcelID = \"\";\r\n\t\tthis.seqNo = 0;\r\n\t}",
"@Test\n\tpublic void totalCustomers()\n\t{\n\t\tassertTrue(controller.getReport().getTotalCustomers() == 3);\n\t}",
"public Customer() {\n\t\tsuper();\n\t}",
"public CustomersByCountry(String country, int numberOfCustomers){\n Country = country;\n this.numberOfCustomers = numberOfCustomers;\n }",
"public Customer (\n\t\t Integer in_customerId\n\t\t) {\n\t\tsuper (\n\t\t in_customerId\n\t\t);\n\t}",
"@GetMapping(\"/customer/reviews/{count}\")\n\tpublic Set<Customer> getCustomerByReviewsCount(@PathVariable(\"count\") Integer count){\n\t\tSet<Customer> set = customerRepository.getCustomerByReviewsCount(count);\n\t\treturn set;\n\t}",
"public void count__customers( String qualificationId, Map<String, ? extends Object> where, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"where\", where);\n \n\n \n\n\n \n \n invokeStaticMethod(\"prototype.__count__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"public Customer(){\n\t \n }",
"private void createCustomersTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE customers \"\n\t\t\t\t\t+ \"(id INT GENERATED ALWAYS AS IDENTITY, \"\n\t\t\t\t\t+ \"name VARCHAR(40), \" + \"email VARCHAR(40), \"\n\t\t\t\t\t+ \"pass VARCHAR(40), \" + \"ssn VARCHAR(9), \"\n\t\t\t\t\t+ \"address VARCHAR(255), \" + \"hphone VARCHAR(10), \"\n\t\t\t\t\t+ \"cphone VARCHAR(10), \" + \"signuptime BIGINT, \"\n\t\t\t\t\t+ \"chkacct BIGINT, \" + \"savacct BIGINT, \" + \"cdacct BIGINT, \"\n\t\t\t\t\t+ \"hasStock VARCHAR(6))\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table users\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of user table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}",
"@Test\r\n public void testaddCustomer() throws Exception {\r\n System.out.println(\"addCustomer\");\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n DAOCustomer.addCustomer(Con(),\"Costa\", \"Mario\",\"15 rue Paul\",\"77290\",\"Paris\",\"[email protected]\",\"M\");\r\n List<Server.Customer> r = DAOCustomer.loadCustomer(Con());\r\n assertEquals(lesClients.size()+1 , r.size());\r\n }",
"public Customer(String name, double initialAmount) { //constructor for our customer class\r\n this.name = name;\r\n addId++;\r\n this.custId=addId;\r\n this.transactions = new ArrayList<>();\r\n balance=initialAmount;\r\n transactions.add(initialAmount);\r\n }",
"public int addMultipleCustomers(TreeSet<Customer> list) {\n\t\tint length = 0;\n\t\ttry {\n\t\t\tStatement stmt = con.createStatement();\n\t\t\t//con.setAutoCommit(false);\n\t\t\tfor(Customer c:list){\n\t\t\t\tint id = c.getCustomer_id();\n\t\t\t\tString name = c.getCustomer_name();\n\t\t\t\tString date = c.getDob();\n\t\t\t\tdouble amount = c.getBalance();\n\t\t\t\tString insertQuery = \"insert into Customer values(\"+id+\",'\"+name+\"',\"+\"STR_TO_DATE('\"+date+\"', '%d-%m-%Y')\" +\",\"+ amount+\")\";\n\t\t\t\t//System.out.println(insertQuery);\n\t\t\t\tstmt.addBatch(insertQuery);\t\n\t\t\t\t//System.out.println(insertQuery);\n\t\t\t\t}\n\t\t\tint[] count = stmt.executeBatch();\n\t\t\t//con.commit();\n\t\t\tlength = count.length;\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Error in database operation. Try agian!!\");\n\t\t\t\t\n\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\n\t\treturn length;\n\t}",
"private Customer buildCustomer (ResultSet resultSet) throws SQLException{\r\n long id = resultSet.getLong(1);\r\n String firstName =resultSet.getString(2);\r\n String lastName = resultSet.getString(3);\r\n String email = resultSet.getString(4);\r\n String password = resultSet.getString(5);\r\n return new Customer(id,firstName,lastName,email,password);\r\n }",
"@Test\n public void testCreateCustomer() {\n System.out.println(\"createCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n Customer result = instance.getCustomer(customerID);\n assertEquals(\"Gert Hansen\", result.getName());\n assertEquals(\"Grønnegade 12\", result.getAddress());\n assertEquals(\"98352010\", result.getPhone());\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }",
"@Query(\"select count(u) from User u where u.role = 'CUSTOMER'\")\n Long getTotalCustomersCount();",
"@Override\n\tpublic void createCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\ttry {\n\t\t\t\n\t\t\tStatement st = con.createStatement();\n\t\t\tString create = String.format(\"insert into customer values('%s', '%s')\", customer.getCustName(),\n\t\t\t\t\tcustomer.getPassword());\n\t\t\tst.executeUpdate(create);\n\t\t\tSystem.out.println(\"Customer added successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to add A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\t}",
"static void register() {\r\n\t\tSystem.out.println(\"enter no of customers\");\r\n\t\tint n=scan.nextInt();\r\n\t\tfor(int i=0;i<n;i++) {\r\n\t\tCustomer cust=new Customer();\r\n\t\tSystem.out.println(\"enter first name\");\r\n\t\tcust.setFirstName(scan.next());\r\n\t\tSystem.out.println(\"enter last name\");\r\n\t\tcust.setLastName(scan.next());\r\n\t\tSystem.out.println(\"enter aadhar number\");\r\n\t\tcust.setAadharNo(scan.nextLong());\r\n\t\tSystem.out.println(\"enter address\");\r\n\t\tcust.setAddress(scan.next());\r\n\t\tSystem.out.println(\"enter mobile number\");\r\n\t\tcust.setMobileNo(scan.nextLong());\r\n\t\tSystem.out.println(\"enter password\");\r\n\t\tcust.setPassword(scan.next());\r\n\t\tSystem.out.println(\"enter account number\");\r\n\t\tlong no= 10000 + new Random().nextInt(90000);\r\n\t\t//System.out.println(Math.abs(cust.getAccNo()));\r\n\t\tlist.add(cust);\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void addCustest() {\n\t\tbc.addCustomer(\"wgl\", myDate, \"Beijing\");\n\t\tint flag = 0;\n\t\tfor(Customer cus : bc.cusList){\n\t\t\tif(cus.getName().equals(\"wgl\")){\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t}\n\t\tassertEquals(1, flag);\n\t}",
"public Integer createRecord(Customer customer) {\n\t\treturn (Integer)sessionFactory.getCurrentSession().save(customer);\r\n\r\n\t}",
"public Customer() {\r\n }",
"public Customer(String name) {\n this.name=name;\n }",
"public int countServedCustomers()\r\n {\r\n int count = 0;\r\n //go through list and see which customers have non zero serve times--update count\r\n for(Customer c: this.Customers){\r\n if(c.getserveTime()> 0 ){\t\r\n count++;\r\n //add these customers to their own list\r\n this.servedCustomers.add(c);\r\n }\r\n }\r\n return count;\r\n }",
"@Query(value = \"SELECT COUNT(*) FROM customers_coupons\", nativeQuery = true)\n int countAllCouponsPurchased();",
"public Customers(int customerId, String customerName, String customerAddress, String customerPostalCode,\n String customerPhone, int divisionId, String divisionName, int countryId, String countryName) {\n this.customerId = customerId;\n this.customerName = customerName;\n this.customerAddress = customerAddress;\n this.customerPostalCode = customerPostalCode;\n this.customerPhone = customerPhone;\n this.divisionId = divisionId;\n this.divisionName = divisionName;\n this.countryId = countryId;\n this.countryName = countryName;\n }",
"public Customer () {\n\t\tsuper();\n\t}",
"public CustomerDatabase(){\n\t\tlist = new ArrayList<Customer>();\n\t}",
"TypicalCustomer() {\n super();\n }",
"@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}",
"@PostMapping(value=\"/createCustomer\")\n\tpublic String createCustomer()\n\t{\n\t\t//return customer\n\t\treturn \"Created Customer\";\n\t}",
"public Customer(String name) {\n this.name = name;\n }",
"@Override\n\tpublic boolean createCustomer(Customer customer) {\n\n\t\tif (customer != null) {\n\t\t\tcustomers.add(customer);\n\t\t\tlogger.info(\"Customer added to the list\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Failed to add customer to the list: createCustomer()\");\n\t\t\treturn false;\n\t\t}\n\t}",
"public ResponseEntity<?> createCustomer(customer.controller.Customer customer);",
"public Customer(){}",
"@Test\n\tpublic void testCustomerRegistration() {\n\t\tString username = \"deColores\";\n\t\tString password = \"inExasperation\";\n\t\t\n\t\tUserFunctions uf = new UserFunctions();\n\t\tint sizeBeforeAddition = uf.getUserDAO().getAllUsers().size();\n\t\tuf.customerRegistration(username, password);\n\t\t\n\t\tassertEquals(sizeBeforeAddition + 1, uf.getUserDAO().getAllUsers().size());\n\t}",
"public Customer(int i) {\r\n \t\t\t\t\t\t\tiD = i;\r\n \t\t\t\t\t\t }",
"@Test\n\tpublic void readAllCustomers() {\n\t\t// Given\n\t\tint originalLength = customerController.read().size();\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tcustomerController.create(name, address, telephoneNumber);\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tcustomerController.create(name, address, telephoneNumber);\n\n\t\t// When\n\t\tList<ICustomer> list = customerController.read();\n\n\t\t// Then\n\t\tint expected = originalLength + 2;\n\t\tint actual = list.size();\n\t\tAssert.assertEquals(expected, actual);\n\t}",
"void generate(List<Customer> customers);",
"@Test\n\tpublic void create() {\n\t\t// Given\n\t\tString name = \"Mark\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"0211616447\";\n\n\t\t// When\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertNotNull(customer);\n\t}",
"public int addCustomer(Customer customer) {\n return model.addCustomer(customer);\n }",
"@Test\n\t@DisplayName(\"test you can not register a duplicate customer\")\n\tvoid testCustomers() {\n\t\ts.addACustomer(new Customer(\"Gary\", \"Smith\"));\n\t\ts.addACustomer(new Customer(\"Gary\", \"Smith\"));\n\t\tassertEquals(1, s.getCustomers().size());\n\t}",
"void createAndManageCustomer() {\r\n\t\tSystem.out.println(\"\\nCreating and managing a customer:\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c = new Customer2(\"Sami\", \"Cemil\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c);\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tc.setLastName(\"Kamil\");\r\n\t\ttx.commit();\r\n\t\tSystem.out.println(c);\r\n\t\tem.close();\r\n\t}",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public Customer()\n {\n\n }",
"public Customer() { }",
"public MyCustomer(CustomerAgent cmr, int num){\n\t this.cmr = cmr;\n\t tableNum = num;\n\t state = CustomerState.NO_ACTION;\n\t}",
"private void createCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n String customerName = request.getParameter(\"CustomerName\");\n System.out.println(\"them mới id\"+ customerName);\n String customerBir = request.getParameter(\"CustomerBir\");\n String gender = request.getParameter(\"Gender\");\n int cusIdNum =Integer.parseInt(request.getParameter(\"CusIdNum\"));\n int cusTelNum = Integer.parseInt(request.getParameter(\"CusTelNum\"));\n String cusEmail = request.getParameter(\"CusEmail\");\n String address = request.getParameter(\"Address\");\n String customerTypeId = request.getParameter(\"CustomerTypeId\");\n System.out.println(\"them mới id\"+ customerName);\n Customer customer = new Customer(customerName,customerBir,gender,cusIdNum,cusTelNum,cusEmail,address, new CustomerType(customerTypeId));\n customerService.save(customer);\n showCustomerList(request,response);\n System.out.println(\"them mới\"+ customer);\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_Accepted() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id WHERE e.status=1 or e.status=6;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"public void newCustomer () {\r\n\t\t//input category id.\r\n\t\t//TODO\r\n boolean ok = false;\r\n do { \r\n my.printCategoies();\r\n try {\r\n System.out.println(\"Category:\");\r\n Scanner scan = new Scanner(System.in);\r\n String cat = scan.next();\r\n \r\n Category c = my.getCategory(cat);\r\n //\r\n if (c!=null ) {\r\n // add the new customer to a category\r\n //input new customer.\r\n Customer theNewCustomer = readCustomer(cat);\r\n if ( theNewCustomer != null ) {\r\n my.add(c, theNewCustomer);\r\n ok = true;\r\n }\r\n \r\n }else{\r\n System.out.println(\"Category not exist\");\r\n }\r\n \r\n } catch (Exception e) {\r\n System.out.println(\"Sorry, try again\");\r\n }\r\n } while (ok == false);\r\n \r\n\t\t\r\n\t}",
"public Customer() {\n }",
"public Customer() {\n }",
"@Test\n public void testAddCustomer() {\n EntityManager em = emf.createEntityManager();\n try {\n facade.addCustomer(new Customer(\"Helle\", \"Andersen\"));\n long count = em.createQuery(\"select c from Customer c\").getResultList().size();\n Assert.assertEquals(4, count);\n } finally {\n em.close();\n }\n }",
"public int addCustomer(String custName,long custMobile,String modelName) \r\n\t{\r\n\t\tint a=(int)((Math.random())*10);\r\n\r\n\t\tprice1=searchModel(modelName);\r\n\r\n\r\n\t\tFile f= new File(\"customerInfo.txt\");\r\n\r\n\t\tif(!f.exists())\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\ttry {\r\n\r\n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(f, true));\r\n\t\t\tpw.println(custName);\r\n\t\t\tpw.println(custMobile);\r\n\t\t\tpw.println(modelName);\r\n\t\t\tpw.println(String.valueOf(price1));\r\n\r\n\r\n\r\n\r\n\t\t\tpw.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\r\n\r\n\t\treturn a;\r\n\r\n\t}",
"public static void createCustomer() throws IOException {\n\t\tString ssn = randomSSN();\n\t\twhile(SSNmap.containsKey(ssn)) {\n\t\t\tssn = randomSSN();\n\t\t}\n\t\tSSNmap.put(ssn, 1);\n\t\t\n\t\tString name = names[random(50)] + \" \" + names[random(50)];\n\t\tString address = randomNumber() + \" \" + streets[random(50)];\n\t\tString phone = randomPhone();\n\t\t\n\t\twriter.write(\"INSERT INTO Customer (Id, SSN, Name, Address, Phone) Values (\" + custId++ +\", '\" + ssn + \"', '\" \n\t\t\t\t+ name + \"', '\" + address + \"', '\" + phone +\"'\" + line);\n\t\twriter.flush();\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_onCash() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,sld.payement_option, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" WHERE sld.payement_option=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public Customer() {\n\n }",
"public CustomerController() {\n\t\tsuper();\n\n\t}",
"public CustomerNew (\n\t\t Long in_id\n ) {\n\t\tthis.setId(in_id);\n }"
] |
[
"0.7687059",
"0.7530548",
"0.7189517",
"0.7142789",
"0.70528334",
"0.70528334",
"0.6905846",
"0.6863703",
"0.68406934",
"0.67679656",
"0.6734457",
"0.67334306",
"0.66686726",
"0.6621093",
"0.65879905",
"0.65879905",
"0.65879905",
"0.65879905",
"0.6579334",
"0.656395",
"0.65054595",
"0.6504318",
"0.6468593",
"0.6430493",
"0.6372113",
"0.6352198",
"0.6346167",
"0.63365245",
"0.63311774",
"0.6318094",
"0.6266536",
"0.62608075",
"0.623433",
"0.62318647",
"0.61644834",
"0.6132841",
"0.6132011",
"0.6085185",
"0.60495806",
"0.6045387",
"0.60319567",
"0.6014598",
"0.60014385",
"0.59717554",
"0.5967327",
"0.5948871",
"0.594863",
"0.5936244",
"0.5919197",
"0.5917716",
"0.5908559",
"0.5902319",
"0.58850765",
"0.5859827",
"0.5848351",
"0.58343035",
"0.58295184",
"0.5807386",
"0.5796372",
"0.5796033",
"0.5788122",
"0.5784917",
"0.57728654",
"0.5771715",
"0.5769518",
"0.57691115",
"0.576125",
"0.57610196",
"0.575028",
"0.57406414",
"0.57249755",
"0.572115",
"0.57196975",
"0.571775",
"0.5717561",
"0.5714941",
"0.5712707",
"0.5712429",
"0.5711534",
"0.57033193",
"0.57008636",
"0.57002765",
"0.5698319",
"0.5684976",
"0.5678514",
"0.56611603",
"0.56552446",
"0.56398475",
"0.56340176",
"0.5632704",
"0.5632625",
"0.5628739",
"0.562173",
"0.562173",
"0.5621239",
"0.56175447",
"0.5615581",
"0.5613975",
"0.5606423",
"0.5600947",
"0.56003034"
] |
0.0
|
-1
|
Method create definition ends here.. Method upsert definition
|
public void upsert( Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.putAll(data);
invokeStaticMethod("upsert", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
if(response != null){
QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);
if(context != null){
try {
Method method = qualificationRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(qualificationRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
//qualificationRepo.addStorage(context);
}
Map<String, Object> result = Util.fromJson(response);
Qualification qualification = qualificationRepo.createObject(result);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = qualification.getClass().getMethod("save__db");
method.invoke(qualification);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
callback.onSuccess(qualification);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Department createOrUpdate(Department department);",
"Dao.CreateOrUpdateStatus createOrUpdate(T data) throws SQLException, DaoException;",
"void createOrUpdate(T entity);",
"int upsert(UserShare5Min record);",
"UpdateResponse upsert(UpdateRequest updateRequest) throws IOException;",
"boolean hasInsertOrUpdate();",
"int insert(GirlInfo record);",
"Object createOrUpdate() {\n if (isNewRecord()) {\n create();\n } else {\n update();\n }\n return this;\n }",
"int insert(Usertype record);",
"int insert(ResourcePojo record);",
"int insert(SrHotelRoomInfo record);",
"int insert(InspectionAgency record);",
"int insert(HotelType record);",
"Update createUpdate();",
"WriteRequest insert(PiEntity entity);",
"int insert(Forumpost record);",
"int insert(PmPost record);",
"int insert(UserInfo record);",
"int insert(Pet record);",
"int insert(Body record);",
"private static CompletionStage<Void> persistOrUpdate(ReactiveMongoCollection collection, Object entity) {\n BsonDocument document = getBsonDocument(collection, entity);\n\n //then we get its id field and create a new Document with only this one that will be our replace query\n BsonValue id = document.get(ID);\n if (id == null) {\n //insert with autogenerated ID\n return collection.insertOne(entity);\n } else {\n //insert with user provided ID or update\n BsonDocument query = new BsonDocument().append(ID, id);\n return collection.replaceOne(query, entity, ReplaceOptions.createReplaceOptions(new UpdateOptions().upsert(true)))\n .thenApply(u -> null);\n }\n }",
"void insertOrUpdate(StockList stockList) throws Exception;",
"int insert(PmKeyDbObj record);",
"int insert(Factory record);",
"int insert(Owner record);",
"int insert(Appraise record);",
"int insert(CmsRoomBook record);",
"int insert(Ltsprojectpo record);",
"int insert(Shipping record);",
"int insert(Depart record);",
"T createOrUpdate(final T domain) throws RequiredValueException, NoEntityFoundException;",
"int insert(Project record);",
"int insert(BookInfo record);",
"Long saveOrUpdate(D dto);",
"int insert(StudentEntity record);",
"int insert(Organization record);",
"Integer insert(JzAct record);",
"int insert(HomeWork record);",
"public void saveOrUpdate(Transaction transaction) throws Exception;",
"int insert(Product record);",
"int insert(Employee record);",
"int insert(Cargo record);",
"int insert(Engine record);",
"int insertSelective(ResourcePojo record);",
"public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;",
"int insert(ParkCurrent record);",
"int insert(CompanyExtend record);",
"int insert(CmIndustryConfig record);",
"int insert(UserInfoUserinfo record);",
"int insert(PrefecturesMt record);",
"int insert(IceApp record);",
"int insert(SwipersDO record);",
"int insert(CptDataStore record);",
"int insert(CliStaffProject record);",
"int insert(Teacher record);",
"int insert(ConfigData record);",
"int insert(DBPublicResources record);",
"int insert(SupplyNeed record);",
"public abstract void saveOrUpdate(T entity);",
"int insertSelective(SrHotelRoomInfo record);",
"int insertSelective(GirlInfo record);",
"int insert(SupplierInfo record);",
"int insert(TUserResources record);",
"int insert(SysTeam record);",
"int insert(TestEntity record);",
"int insert(Emp record);",
"public int addRow(String domain_name, String country_name, List<String> IP) {\n\n\n// Document result = collection.find(Filters.eq(\"domain_name\", domain_name)).first();\n//\n// if (result != null)\n// return -1;\n\n// Document document = new Document(\"domain_name\", domain_name)\n// .append(\"countries\", Arrays.asList(new Document(\"country\", country_name)\n// .append(\"IPs\", IP)));\n Bson updates = Updates.addToSet(\"countries\", new Document(\"country\", country_name)\n .append(\"IPs\", IP));\n Bson updates2 = Updates.set(\"dirty_bit\",\"1\");\n Bson updates3 = Updates.combine(updates,updates2);\n\n // Add country with IPs and if domain doesn't exist create new document.\n collection.updateOne(Filters.eq(\"domain_name\", domain_name),updates3,\n new UpdateOptions().upsert(true));\n\n\n\n //collection.insertOne(document);\n\n return 1;\n\n }",
"int insert(Tourst record);",
"int insert(FeedsUsersKey record);",
"int insert(Disease record);",
"int insert(UserEntity record);",
"int insert(ROmUsers record);",
"int insert(TCpySpouse record);",
"int insert(ScoreProduct record);",
"int insert(CfgSearchRecommend record);",
"@Test\n public void testSaveOrUpdate() {\n Customer customer = new Customer();\n customer.setId(3);\n customer.setName(\"nancy\");\n customer.setAge(18);\n saveOrUpdate(customer);\n }",
"int insert(BasicEquipment record);",
"int insert(ProEmployee record);",
"int insert(ReleaseSystem record);",
"int insert(Storage record);",
"int insert(Storage record);",
"int insert(Storydetail record);",
"int insert(TrainingCourse record);",
"int insert(EhrPersonFile record);",
"int insertSelective(InspectionAgency record);",
"@Insert\n boolean upsertLocation(SpacecraftLocationOverTime reading);",
"int insert(Email record);",
"int insert(Commet record);",
"int insert(Sequipment record);",
"int insert(Location record);",
"public boolean isUpsert() {\n return upsert;\n }",
"int insert(StudentInfo record);",
"int insert(Destinations record);",
"int insert(Course record);",
"int insert(Course record);",
"int insert(EcsSupplierRebate record);",
"int insert(User record);",
"int insert(User record);",
"int insert(User record);",
"int insert(User record);"
] |
[
"0.7061293",
"0.6950966",
"0.6709597",
"0.66716886",
"0.65406543",
"0.64670414",
"0.645889",
"0.6458432",
"0.6413516",
"0.6404172",
"0.63874984",
"0.6340518",
"0.6317972",
"0.6287854",
"0.62833446",
"0.6261783",
"0.6261127",
"0.624913",
"0.6229021",
"0.62266916",
"0.61947954",
"0.6158505",
"0.61388016",
"0.6133091",
"0.61188066",
"0.6109185",
"0.60986155",
"0.60951465",
"0.6092155",
"0.6086322",
"0.6083187",
"0.6066433",
"0.60644543",
"0.6063506",
"0.60612595",
"0.6060699",
"0.60512024",
"0.6051137",
"0.6048201",
"0.6047785",
"0.60264045",
"0.6021957",
"0.6021867",
"0.60198736",
"0.6016891",
"0.6016777",
"0.60163116",
"0.60093176",
"0.59996057",
"0.5995139",
"0.59931695",
"0.5991318",
"0.5988106",
"0.59863865",
"0.5980817",
"0.5980215",
"0.5979411",
"0.59781367",
"0.59771806",
"0.59754777",
"0.59713155",
"0.596988",
"0.5959044",
"0.59555197",
"0.59532297",
"0.5948636",
"0.5946147",
"0.59454167",
"0.5942752",
"0.5942631",
"0.59407514",
"0.59380543",
"0.59368855",
"0.59327537",
"0.5931528",
"0.59212106",
"0.59194434",
"0.5912979",
"0.5912744",
"0.59121037",
"0.59121037",
"0.59103936",
"0.59074974",
"0.5904636",
"0.5902091",
"0.58996046",
"0.58958244",
"0.5895524",
"0.58935934",
"0.5890179",
"0.5890115",
"0.5889053",
"0.588578",
"0.5880281",
"0.5880281",
"0.5879085",
"0.5878209",
"0.5878209",
"0.5878209",
"0.5878209"
] |
0.5987414
|
53
|
Method upsert definition ends here.. Method exists definition
|
public void exists( String id, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("id", id);
invokeStaticMethod("exists", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int upsert(UserShare5Min record);",
"boolean hasInsertOrUpdate();",
"UpdateResponse upsert(UpdateRequest updateRequest) throws IOException;",
"public void upsert( Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"upsert\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);\n if(context != null){\n try {\n Method method = qualificationRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(qualificationRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //qualificationRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Qualification qualification = qualificationRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = qualification.getClass().getMethod(\"save__db\");\n method.invoke(qualification);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(qualification);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"public boolean isUpsert() {\n return upsert;\n }",
"E update(E entiry);",
"@Override\n\tpublic String upsert(PersonKey key, Person person) {\n\t\tif (repo.save(person) != null) {\n\t\t\treturn (\"Data is successfully inserted/updated\");\n\t\t} else {\n\t\t\treturn (\"Data is not successfully inserted\");\n\t\t}\n\t\t\n\t}",
"Dao.CreateOrUpdateStatus createOrUpdate(T data) throws SQLException, DaoException;",
"int insert(Usertype record);",
"int updateByPrimaryKeySelective(GirlInfo record);",
"<T> int update(T obj, String keyColumn);",
"Department createOrUpdate(Department department);",
"public abstract boolean insert(Key key);",
"int insertSelective(SrHotelRoomInfo record);",
"public void attemptToUpdate();",
"int updateByPrimaryKey(GirlInfo record);",
"public abstract void saveOrUpdate(T entity);",
"int updateByPrimaryKey(HotelType record);",
"@Override\n\tpublic void exist() {\n\t\t\n\t}",
"@Insert\n boolean upsertLocation(SpacecraftLocationOverTime reading);",
"@Override\n public void upsert(Novel novel) {\n cassandraTemplate.update(\n Query.query( Criteria.where(\"category\").is(novel.getCategory()))\n .and(Criteria.where(\"author\").is(novel.getAuthor()))\n .and(Criteria.where(\"genre\").is(novel.getGenre()))\n .and(Criteria.where(\"name\").is(novel.getName())),\n Update.empty().increment(\"sale_count\"), Novel.class);\n }",
"int insert(SrHotelRoomInfo record);",
"@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}",
"int insertSelective(GirlInfo record);",
"int updateByPrimaryKeySelective(HotelType record);",
"int updateByPrimaryKeySelective(Assist_table record);",
"int updateByPrimaryKey(Dress record);",
"public Hoppy update(Hoppy hoppy) throws DataAccessException;",
"int insertSelective(HotelType record);",
"int updateByPrimaryKey(Assist_table record);",
"int insert(GirlInfo record);",
"int insertSelective(BookInfo record);",
"void insertOrUpdate(StockList stockList) throws Exception;",
"int insertSelective(InspectionAgency record);",
"int insertSelective(Engine record);",
"int insert(HotelType record);",
"int updateByPrimaryKey(Forumpost record);",
"int updateByPrimaryKey(Disease record);",
"int insert(InspectionAgency record);",
"int updateByPrimaryKey(Pet record);",
"int updateByPrimaryKey(Tourst record);",
"int updateByPrimaryKeySelective(Tourst record);",
"public void saveOrUpdate(Transaction transaction) throws Exception;",
"int insert(Forumpost record);",
"int updateByPrimaryKey(BaseCountract record);",
"int insertSelective(Appraise record);",
"public boolean saveOrUpdate(Data model);",
"@Override\r\npublic int updateByPrimaryKeySelective(Possalesdetail record) {\n\treturn possalesdetail.updateByPrimaryKeySelective(record);\r\n}",
"int updateByPrimaryKeySelective(SrHotelRoomInfo record);",
"void createOrUpdate(T entity);",
"int insertSelective(PmKeyDbObj record);",
"int insert(Pet record);",
"int updateByPrimaryKeySelective(Forumpost record);",
"int insertSelective(Pet record);",
"int insert(CfgSearchRecommend record);",
"int insertSelective(Book record);",
"int insertSelective(Book record);",
"int updateByPrimaryKey(BasicEquipment record);",
"int insertSelective(Forumpost record);",
"Update createUpdate();",
"public interface InsertData extends Update {\n}",
"int updateByPrimaryKeySelective(BaseCountract record);",
"Long saveOrUpdate(D dto);",
"@Override\n public void update(Person p) throws SQLException, ClassNotFoundException\n {\n\n BasicDBObject query = new BasicDBObject();\n query.put(\"Id\", p.getId()); // old data, find key Id\n\n BasicDBObject newDocument = new BasicDBObject();\n\n// newDocument.put(\"Id\", p.getId()); // new data\n newDocument.put(\"FName\", p.getFName()); // new data\n newDocument.put(\"LName\", p.getLName()); // new data\n newDocument.put(\"Age\", p.getAge()); // new data\n System.out.println(newDocument);\n\n BasicDBObject updateObj = new BasicDBObject();\n updateObj.put(\"$set\", newDocument);\n System.out.println(updateObj);\n\n table.update(query, updateObj);\n }",
"int updateByPrimaryKeySelective(organize_infoBean record);",
"int updateByPrimaryKeySelective(Drug_OutWarehouse record);",
"int updateByPrimaryKeySelective(Dress record);",
"@Insert\n boolean upsertSpeed(SpacecraftSpeedOverTime reading);",
"int insert(BookInfo record);",
"@Override\n\tpublic void updateOrSave(String collectionName, Map<String, CustmerCriteria> query, Map<String, Object> document)\n\t\t\tthrows Exception {\n\t\t\n\t}",
"public void saveOrUpdate(Object obj) throws HibException;",
"int insertSelective(HomeWork record);",
"int insertSelective(Body record);",
"public int addRow(String domain_name, String country_name, List<String> IP) {\n\n\n// Document result = collection.find(Filters.eq(\"domain_name\", domain_name)).first();\n//\n// if (result != null)\n// return -1;\n\n// Document document = new Document(\"domain_name\", domain_name)\n// .append(\"countries\", Arrays.asList(new Document(\"country\", country_name)\n// .append(\"IPs\", IP)));\n Bson updates = Updates.addToSet(\"countries\", new Document(\"country\", country_name)\n .append(\"IPs\", IP));\n Bson updates2 = Updates.set(\"dirty_bit\",\"1\");\n Bson updates3 = Updates.combine(updates,updates2);\n\n // Add country with IPs and if domain doesn't exist create new document.\n collection.updateOne(Filters.eq(\"domain_name\", domain_name),updates3,\n new UpdateOptions().upsert(true));\n\n\n\n //collection.insertOne(document);\n\n return 1;\n\n }",
"int updateByPrimaryKeySelective(Pet record);",
"int updateByPrimaryKey(DictDoseUnit record);",
"@Override\n\tpublic boolean update(String sql) {\n\t\treturn false;\n\t}",
"@Override\n public int upsert(Movie obj)\n {\n if(this.search(obj.getTitle()) != null)\n this.delete(obj.getTitle());\n\n this.insert(obj);\n return (this.titles.get(obj.getTitle())).getKey();\n }",
"int updateByPrimaryKey(YzStiveExplosion record);",
"int updateByPrimaryKeySelective(Engine record);",
"int insert(BaseCountract record);",
"public User update(User user)throws Exception;",
"public void saveOrUpdate(Object aObject);",
"int updateByPrimaryKey(SupplyNeed record);",
"int updateByPrimaryKeySelective(Commet record);",
"int updateByPrimaryKey(TCpySpouse record);",
"int updateByPrimaryKey(PrhFree record);",
"int insertSelective(IceApp record);",
"int insertSelective(IntegralBook record);",
"int updateByPrimaryKey(IntegralBook record);",
"int updateByPrimaryKey(SrHotelRoomInfo record);",
"int updateByPrimaryKey(ProEmployee record);",
"int updateByPrimaryKeySelective(ProEmployee record);",
"int updateByPrimaryKeySelective(TCpySpouse record);",
"int updateByPrimaryKey(Engine record);",
"int updateByPrimaryKeySelective(BookInfo record);",
"int insertSelective(ResourcePojo record);",
"int insert(Shipping record);",
"int insert(Body record);",
"public void saveOrUpdate(T o);",
"int insert(ParkCurrent record);"
] |
[
"0.7065614",
"0.6979747",
"0.6922108",
"0.66803837",
"0.6611457",
"0.65366185",
"0.6527603",
"0.64152265",
"0.63813394",
"0.6286104",
"0.62836903",
"0.6249639",
"0.61641127",
"0.6141",
"0.6120172",
"0.6112048",
"0.6108924",
"0.6104254",
"0.61004543",
"0.6098497",
"0.609824",
"0.6096794",
"0.6095896",
"0.6095345",
"0.6089849",
"0.6082324",
"0.6070024",
"0.60673296",
"0.6060383",
"0.6058674",
"0.6057188",
"0.6053088",
"0.6052142",
"0.605048",
"0.60488945",
"0.604719",
"0.6045452",
"0.60434026",
"0.6043151",
"0.6026244",
"0.6022664",
"0.6020392",
"0.60173875",
"0.6011141",
"0.6010585",
"0.6006812",
"0.6000557",
"0.59974116",
"0.59944975",
"0.5985527",
"0.5983607",
"0.5966627",
"0.5957898",
"0.5956656",
"0.59510386",
"0.59480983",
"0.59480983",
"0.5946184",
"0.59451014",
"0.5940243",
"0.59387046",
"0.5937401",
"0.5935551",
"0.5934996",
"0.5931876",
"0.59309465",
"0.5926589",
"0.5926405",
"0.59263057",
"0.5923845",
"0.5919512",
"0.5915749",
"0.5913827",
"0.5911404",
"0.5911125",
"0.5910694",
"0.591031",
"0.59060127",
"0.59035563",
"0.5903074",
"0.5898585",
"0.5893062",
"0.5890595",
"0.5889758",
"0.58889085",
"0.5887982",
"0.5883752",
"0.5882011",
"0.58817244",
"0.5881688",
"0.5881023",
"0.5880898",
"0.58803904",
"0.5873804",
"0.58728206",
"0.5871774",
"0.5864051",
"0.58600175",
"0.58599627",
"0.58592665",
"0.58586663"
] |
0.0
|
-1
|
Method exists definition ends here.. Method findById definition
|
public void findById( String id, Map<String, ? extends Object> filter, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("id", id);
hashMapObject.put("filter", filter);
invokeStaticMethod("findById", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
if(response != null){
QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);
if(context != null){
try {
Method method = qualificationRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(qualificationRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
//qualificationRepo.addStorage(context);
}
Map<String, Object> result = Util.fromJson(response);
Qualification qualification = qualificationRepo.createObject(result);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = qualification.getClass().getMethod("save__db");
method.invoke(qualification);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
callback.onSuccess(qualification);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public abstract T findOne(int id);",
"@Override\npublic boolean existsById(String id) {\n\treturn false;\n}",
"boolean exists(Integer id);",
"public abstract T findByID(ID id) ;",
"T findById(final ID id) throws RequiredValueException, NoEntityFoundException;",
"@Override\n\tpublic boolean existsById(Integer id) {\n\t\treturn false;\n\t}",
"public Data findById(Object id);",
"@Override\n\tpublic Boolean exists(Integer id) {\n\t\treturn null;\n\t}",
"public boolean exists(String id);",
"T findById(ID id) ;",
"public abstract T findEntityById(int id);",
"@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}",
"@Override\n public boolean exists(Long id) {\n return false;\n }",
"@Override\n public boolean exists(Long id) {\n return false;\n }",
"E findById(K id);",
"public boolean exists( Integer idConge ) ;",
"@Override\n public MyBook findById(final int id) {\n System.err.println(\"MyBookRepositoryImpl:159 - not implement\");\n System.exit(1);\n return null;\n }",
"@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}",
"@Override\n public Optional<T> findById(ID id) {\n T entity = getSession().get(this.getPersistentClass(), id);\n return Optional.ofNullable(entity);\n }",
"@Nullable\n <T> T findById( @Nonnull Class<T> type, @Nonnull Object id );",
"@Override\n\tpublic DomainObject find(long id) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Personne find(int id) {\n\t\treturn null;\r\n\t}",
"E find(Id id) throws RepositoryException;",
"@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean exists(String id) {\n\t\treturn false;\r\n\t}",
"Optional<T> find(long id);",
"T findOne(I id);",
"@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }",
"@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n public SideDishEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }",
"boolean exists(PK id);",
"T findById(Integer id);",
"boolean existsByNameAndId(String name, int id);",
"boolean existeId(Long id);",
"@Test\r\n\tpublic void testFindById() throws NoSuchDatabaseEntryException {\r\n\t\tQuestion q = new Question(\"Empty\", 1, 20, quizzes, null, choices);\r\n\t\tdao.create(q);\r\n\t\tassertEquals(q, dao.findById(q.getId()));\r\n\t}",
"@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n public T findById(ID id) {\n return crudRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"Can not find an entity with id: \" + id));\n }",
"Optional<T> findOne(K id);",
"@Override\n\tpublic boolean existsById(UUID id) {\n\t\treturn false;\n\t}",
"protected Object find(Class<?> cls, Serializable id) throws DoesNotExistException {\n\n\t\tif (id == null) {\n\t\t\tthrow new IllegalArgumentException(\"find(class, id) has been given null id. Class is \" + cls.getName()\n\t\t\t\t\t+ \".\");\n\t\t}\n\t\telse if (id.equals(0)) {\n\t\t\tthrow new IllegalArgumentException(\"find(class, id) has been given zero id. Class is \" + cls.getName()\n\t\t\t\t\t+ \".\");\n\t\t}\n\n\t\ttry {\n\t\t\tObject obj = _em.find(cls, id);\n\n\t\t\tif (obj == null) {\n\t\t\t\tthrow new DoesNotExistException(cls, id);\n\t\t\t}\n\n\t\t\treturn obj;\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\t// Invalid id\n\t\t\tthrow new IllegalArgumentException(\"find(class, id) has been given invalid id. Class is \" + cls.getName()\n\t\t\t\t\t+ \", id is \\\"\" + id + \"\\\".\", e);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// Doesn't exist\n\t\t\tthrow new DoesNotExistException(cls, id);\n\t\t}\n\t}",
"boolean existePorId(Long id);",
"E find(final ID identifier) throws ResourceNotFoundException;",
"@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }",
"public boolean existsById(Integer id) {\n\t\treturn false;\n\t}",
"T findById(long pk);",
"public E findById(Serializable pk) ;",
"public Service findById(int theId);",
"@Override\n\tpublic Document find(int id) {\n\t\treturn null;\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }",
"@Override\r\n\tpublic Account findById(int id) {\n\t\treturn daoref.findById(id);\r\n\t}",
"@Override\n\tpublic String findById() {\n\t\treturn null;\n\t}",
"@Test\n\tpublic void findById() {\n\t\tICallsService iCallsService = new CallsServiceImpl(new ArrayList<>());\n\t\tiCallsService.addCallReceived(new Call(1l));\n\t\tAssert.assertTrue(1l == iCallsService.findById(1l).getId().longValue());\n\t}",
"void checkNotFound(Integer id);",
"@Override\n public boolean containsId(int Id) {\n try {\n Entity retValue = null; \n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT * FROM curso where idcurso = ?\");\n\n pstmt.setInt(1, Id);\n\n rs = pstmt.executeQuery();\n\n if (rs.next()) {\n return true; \n } \n \n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }",
"@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}",
"@Override\r\n\tpublic Book findById(Long id) {\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}",
"@Override\n\tpublic User find(int id) {\n\t\tSystem.out.println(\"OracleDao is find\");\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Vtype findById(int id) {\n\t\tVtype v=null;\r\n\t\tHibernateUtil.getCurrentSession().beginTransaction();\r\n\t\ttry{\r\n\t\t\tv=this.vdao.findById(id);\r\n\t\t\tHibernateUtil.getCurrentSession().getTransaction().commit();\r\n\t\t}catch(Exception e){\r\n\t\t\ttry{\r\n\t\t\t\tHibernateUtil.getCurrentSession().getTransaction().rollback();\r\n\t\t\t}catch(Exception e1){\r\n\t\t\t\tthrow e1;\r\n\t\t\t}\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn v;\r\n\t}",
"public Optional<Persona> findById(Long id);",
"public UserInformation findInformationById(int id);",
"@Override\n\tpublic Listing findById(int theId) {\n\t\tOptional<Listing> result = theListingRepo.findById(theId);\n\t\tListing theListing= null;\n\t\tif (result.isPresent()) {\n\t\t\ttheListing = result.get();\n\t\t\t}\n\t\t\telse {\n\t\t\t// we didn't find the employee\t\t\t\t\t\n\t\t\tthrow new RuntimeException(\"Did not find Lisitng id - \" + theId);\t\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\treturn theListing;\t\t\t\t\n\t}",
"@Override\n public Model findByID(PK id) throws ServiceException {\n \t\n \tModel model = getModel();\n \t\n \tMethod method = null;\n\t\ttry {\n\t\t\tmethod = model.getClass().getMethod(\"setId\", new Class[]{ Integer.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tmethod.invoke(model, new Object[]{ id });\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\n \tModel result = null;\n \t\n \ttry {\n \t\tMap<String, Object> map = getDao().findByID(model);\n \tresult = buildModel(map);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n \t\n return result;\n }",
"@Override\n public MyBook findById(final int bookshelfId,\n final int userId, final int bookId) {\n System.err.println(\"MyBookRepositoryImpl:172 - not implement\");\n System.exit(1);\n return null;\n }",
"@Override\n\tpublic EmpType findById(Object id) {\n\t\treturn null;\n\t}",
"public Optional<User> findById(Integer id);",
"public Singer find(int singerId);",
"public Optional<CheckingAcc> find(Long id){\n if (checkingAccRepository.findById(id).isPresent()){\n return checkingAccRepository.findById(id);\n } else {\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"There is no account with the provided id\");\n }\n }",
"@Override\n public Optional<Track> getTrackById(int id) throws TrackNotFoundException{\n if(trackRepository.existsById(id)) {\n Optional<Track> getTrack = trackRepository.findById(id);\n return getTrack;\n }\n else\n {\n throw new TrackNotFoundException(\"Track not present\");\n }\n\n }",
"@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }",
"public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }",
"@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}",
"public abstract T byId(ID id);",
"public abstract T findById(K id, Boolean isAdmin) throws ServiceException;",
"@Override\r\n\tpublic User findById(int id) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic finalDataBean findById(int id) throws Exception {\n\t\treturn null;\n\t}",
"public Doctor findById(int id);",
"@Override\n Optional<Complaint> findById(Integer id);",
"@Override\r\n public Optional<Product> findbyId(Long id) {\r\n return productRepository.findById(id);\r\n }",
"@Override\n public LineEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }",
"@Override\r\n\tpublic T findById(Long id) {\n\t\tif(id==null)\r\n\t\t\treturn null;\r\n\t\treturn (T) getSession().get(clazz, id);\r\n\t}",
"@Override\n public User findById(long id) {\n return dao.findById(id);\n }",
"@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }",
"public Section findById (Section section) throws DataAccessException;",
"public <T> T find(Class<T> entityClass, String id);",
"protected Object find(Class clazz, Long id) {\r\n try {\r\n return entityManager.find(clazz, id);\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }",
"public SavedSearch getSingleSavedSearch(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from SavedSearch as savedSearch where savedSearch.savedSearchId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n //System.out.println(\"resultssssssssss\" + results.toString());\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (SavedSearch) results.get(0);\n }\n\n }",
"@Override\r\n\tpublic Object findById(String objectId) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Person findOne(Integer id) {\n\t\treturn null;\n\t}",
"public interface UserRepository {\n\n User save(User user);\n\n Optional<User> findById(Id<User, Long> userId);\n\n UserExistResponse findByUserID(Id<User, Long> userId);\n\n}",
"public T findById(int id)\n {\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n String query = createSelectQuery(\"id\");\n try\n {\n connection = ConnectionFactory.getConnection();\n statement = connection.prepareStatement(query);\n statement.setInt(1,id);\n resultSet = statement.executeQuery();\n\n return createObjects(resultSet).get(0);\n }catch (SQLException e)\n {\n LOGGER.log(Level.WARNING,type.getName() + \"DAO:findById\"+ e.getMessage());\n }finally {\n ConnectionFactory.close(resultSet);\n ConnectionFactory.close(statement);\n ConnectionFactory.close(connection);\n }\n return null;\n }",
"Coach findById(long id);",
"@Override\n\tpublic User findById(String id) {\n\t\treturn null;\n\t}",
"ReferenceData findById(ReferenceDataId id) throws DataException;",
"Employee findById(int id);",
"public Student findStudent(int id);",
"@Override\n\tdefault Optional<Locations> findById(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic boolean findUser(String findId) {\n\t\tif(session.selectOne(namespace + \".searchUser\", findId) != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic void exist() {\n\t\t\n\t}"
] |
[
"0.7706214",
"0.75456405",
"0.7381904",
"0.7310368",
"0.73094755",
"0.72522724",
"0.72325885",
"0.72288966",
"0.7214623",
"0.72033066",
"0.7197465",
"0.71362656",
"0.71329737",
"0.70874375",
"0.70874375",
"0.7087351",
"0.70792085",
"0.7073509",
"0.7064268",
"0.70164204",
"0.6967319",
"0.69330025",
"0.6915814",
"0.69062483",
"0.687624",
"0.687624",
"0.68536484",
"0.6849282",
"0.6847542",
"0.6814476",
"0.6801109",
"0.67981917",
"0.6795104",
"0.6790831",
"0.6786139",
"0.6775577",
"0.6751664",
"0.6741846",
"0.67221093",
"0.6719639",
"0.6696747",
"0.66723233",
"0.66693294",
"0.6656132",
"0.6648245",
"0.6637309",
"0.6620934",
"0.6615798",
"0.6611715",
"0.6601613",
"0.65949243",
"0.6593047",
"0.6590093",
"0.657837",
"0.6561069",
"0.6541399",
"0.65373224",
"0.65355146",
"0.6534113",
"0.65337515",
"0.65327626",
"0.6525884",
"0.65245646",
"0.6523255",
"0.65175426",
"0.6517072",
"0.65016747",
"0.64985025",
"0.64751905",
"0.6474938",
"0.6471781",
"0.64532727",
"0.6450617",
"0.644384",
"0.6443056",
"0.64420664",
"0.643955",
"0.64385545",
"0.6437598",
"0.6435204",
"0.6431724",
"0.6429182",
"0.6428605",
"0.6427298",
"0.64153624",
"0.64149976",
"0.63975513",
"0.6393022",
"0.6389503",
"0.6389086",
"0.6388981",
"0.6380587",
"0.6378029",
"0.63701165",
"0.6368656",
"0.63682383",
"0.63660854",
"0.63597983",
"0.6356142",
"0.6350761",
"0.6347999"
] |
0.0
|
-1
|
Method findById definition ends here.. Method find definition
|
public void find( Map<String, ? extends Object> filter, final DataListCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("filter", filter);
invokeStaticMethod("find", hashMapObject, new Adapter.JsonArrayCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONArray response) {
if(response != null){
//Now converting jsonObject to list
DataList<Map<String, Object>> result = (DataList) Util.fromJson(response);
DataList<Qualification> qualificationList = new DataList<Qualification>();
QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);
if(context != null){
try {
Method method = qualificationRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(qualificationRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
for (Map<String, Object> obj : result) {
Qualification qualification = qualificationRepo.createObject(obj);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = qualification.getClass().getMethod("save__db");
method.invoke(qualification);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
qualificationList.add(qualification);
}
callback.onSuccess(qualificationList);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public abstract T findOne(int id);",
"T findById(ID id) ;",
"public Data findById(Object id);",
"E findById(K id);",
"public abstract T findByID(ID id) ;",
"@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}",
"@Nullable\n <T> T findById( @Nonnull Class<T> type, @Nonnull Object id );",
"public abstract T findEntityById(int id);",
"E find(Id id) throws RepositoryException;",
"T findOne(I id);",
"T findById(Integer id);",
"@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Personne find(int id) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Account findById(int id) {\n\t\treturn daoref.findById(id);\r\n\t}",
"@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }",
"T findById(long pk);",
"Optional<T> find(long id);",
"@Override\n\tpublic String findById() {\n\t\treturn null;\n\t}",
"@Override\n public Optional<T> findById(ID id) {\n T entity = getSession().get(this.getPersistentClass(), id);\n return Optional.ofNullable(entity);\n }",
"@Override\n public MyBook findById(final int id) {\n System.err.println(\"MyBookRepositoryImpl:159 - not implement\");\n System.exit(1);\n return null;\n }",
"public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }",
"@Override\n\tpublic Document find(int id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}",
"@Override\n\tpublic DomainObject find(long id) {\n\t\treturn null;\n\t}",
"@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }",
"@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }",
"public E findById(Serializable pk) ;",
"@Override\r\n\tpublic T findById(Long id) {\n\t\tif(id==null)\r\n\t\t\treturn null;\r\n\t\treturn (T) getSession().get(clazz, id);\r\n\t}",
"@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}",
"public <T> T find(Class<T> entityClass, String id);",
"@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}",
"T findById(final ID id) throws RequiredValueException, NoEntityFoundException;",
"@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }",
"@Override\n public Model findByID(PK id) throws ServiceException {\n \t\n \tModel model = getModel();\n \t\n \tMethod method = null;\n\t\ttry {\n\t\t\tmethod = model.getClass().getMethod(\"setId\", new Class[]{ Integer.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tmethod.invoke(model, new Object[]{ id });\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\n \tModel result = null;\n \t\n \ttry {\n \t\tMap<String, Object> map = getDao().findByID(model);\n \tresult = buildModel(map);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n \t\n return result;\n }",
"@Override\r\n\tpublic Account findById(int id) {\n\t\tAccount account=accountMapper.findById(id);\t\r\n\t\t\r\n\t\treturn account;\r\n\t\r\n\t}",
"protected Object find(Class clazz, Long id) {\r\n try {\r\n return entityManager.find(clazz, id);\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }",
"E find(final ID identifier) throws ResourceNotFoundException;",
"@Override\n\tpublic Listing findById(int theId) {\n\t\tOptional<Listing> result = theListingRepo.findById(theId);\n\t\tListing theListing= null;\n\t\tif (result.isPresent()) {\n\t\t\ttheListing = result.get();\n\t\t\t}\n\t\t\telse {\n\t\t\t// we didn't find the employee\t\t\t\t\t\n\t\t\tthrow new RuntimeException(\"Did not find Lisitng id - \" + theId);\t\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\treturn theListing;\t\t\t\t\n\t}",
"public Student findStudent(int id);",
"public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}",
"@Override\r\n\tpublic Object findById(String objectId) {\n\t\treturn null;\r\n\t}",
"Optional<T> findOne(K id);",
"@Override\n public User findById(long id) {\n return dao.findById(id);\n }",
"@Override\n public SideDishEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }",
"@Override\n\tpublic User find(int id) {\n\t\tSystem.out.println(\"OracleDao is find\");\n\t\treturn null;\n\t}",
"public Doctor findById(int id);",
"public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }",
"Coach findById(long id);",
"T findOne(Long id);",
"@Override\n public T findById(ID id) {\n return crudRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"Can not find an entity with id: \" + id));\n }",
"Employee findById(int id);",
"@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }",
"public Singer find(int singerId);",
"@Override\n\tpublic Employee findById(int id) {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t// create a query to get an employee based on Id\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee e where e.id =: id\" , Employee.class);\n\t\ttheQuery.setParameter(\"id\", id);\n\t\tEmployee employee = theQuery.getSingleResult();\n\t\treturn employee;\n\t}",
"@Override\n\tpublic Note findById(Serializable id) {\n\t\tString sql = \"select * from cn_note where cn_note_id=?\";\n\t\ttry {\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\n\t\t\tpst.setString(1, (String)id);\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\tif(rs.next()){\n\t\t\t\tNote n = new Note();\n\t\t\t\tString cn_note_id = rs.getString(\"cn_note_id\");\n\t\t\t\tString cn_notebook_id = rs.getString(\"cn_notebook_id\");\n\t\t\t\tString cn_user_id = rs.getString(\"cn_user_id\");\n\t\t\t\tString cn_note_status_id = rs.getString(\"cn_note_status_id\");\n\t\t\t\tString cn_note_type_id = rs.getString(\"cn_note_type_id\");\n\t\t\t\tString cn_note_title = rs.getString(\"cn_note_title\");\n\t\t\t\tString cn_note_body = rs.getString(\"cn_note_body\");\n\t\t\t\tlong cn_note_create_time = rs.getLong(\"cn_note_create_time\");\n\t\t\t\tlong cn_note_last_modify_time = rs.getLong(\"cn_note_last_modify_time\");\n\t\t\t\tn.setCn_note_body(cn_note_body);\n\t\t\t\tn.setCn_note_create_time(cn_note_create_time);\n\t\t\t\tn.setCn_note_id(cn_note_id);\n\t\t\t\tn.setCn_note_last_modify_time(cn_note_last_modify_time);\n\t\t\t\tn.setCn_note_status_id(cn_note_status_id);\n\t\t\t\tn.setCn_note_title(cn_note_title);\n\t\t\t\tn.setCn_note_type_id(cn_note_type_id);\n\t\t\t\tn.setCn_notebook_id(cn_notebook_id);\n\t\t\t\tn.setCn_user_id(cn_user_id);\n\t\t\t\treturn n;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Vtype findById(int id) {\n\t\tVtype v=null;\r\n\t\tHibernateUtil.getCurrentSession().beginTransaction();\r\n\t\ttry{\r\n\t\t\tv=this.vdao.findById(id);\r\n\t\t\tHibernateUtil.getCurrentSession().getTransaction().commit();\r\n\t\t}catch(Exception e){\r\n\t\t\ttry{\r\n\t\t\t\tHibernateUtil.getCurrentSession().getTransaction().rollback();\r\n\t\t\t}catch(Exception e1){\r\n\t\t\t\tthrow e1;\r\n\t\t\t}\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn v;\r\n\t}",
"public T findById(int id)\n {\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n String query = createSelectQuery(\"id\");\n try\n {\n connection = ConnectionFactory.getConnection();\n statement = connection.prepareStatement(query);\n statement.setInt(1,id);\n resultSet = statement.executeQuery();\n\n return createObjects(resultSet).get(0);\n }catch (SQLException e)\n {\n LOGGER.log(Level.WARNING,type.getName() + \"DAO:findById\"+ e.getMessage());\n }finally {\n ConnectionFactory.close(resultSet);\n ConnectionFactory.close(statement);\n ConnectionFactory.close(connection);\n }\n return null;\n }",
"public Employee findEmployee(Long id);",
"public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }",
"@Override\r\n\tpublic User findById(int id) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Facture findById(int id) {\n\t\treturn null ;\n\t}",
"@Override\n public Complex findById(final Integer id) throws PersistentException {\n ComplexDao complexDao = transaction.createDao(ComplexDao.class);\n Complex complex = complexDao.read(id);\n if (complex != null) {\n findExercises(complex);\n }\n return complex;\n }",
"public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}",
"@Override\n\tpublic Carpo findCar(String id) {\n\t\treturn inList.find(id);\n\t}",
"@Override\r\n\tpublic T findEntity(Class<T> c, Serializable id) throws Exception {\n\t\treturn (T) this.getcurrentSession().get(c, id);\r\n\t}",
"public Service findById(int theId);",
"User find(long id);",
"public Student findById(int theStudent_id);",
"@Override\r\n\tpublic Book findById(Long id) {\r\n\t\treturn null;\r\n\t}",
"@Override\n public User findById(Integer id) {\n try {\n return runner.query(con.getThreadConnection(),\"select *from user where id=?\",new BeanHandler<User>(User.class),id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }",
"protected Object findById(Class clazz, Long id) {\r\n try {\r\n Query q = entityManager.createNamedQuery(clazz.getSimpleName() + \".findById\");\r\n q.setParameter(\"id\", id);\r\n return q.getSingleResult();\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic T findObjById(long id, Class<T> type) {\n\t\treturn (T) super.getSessionFactory().getCurrentSession().get(type,id);\r\n\t}",
"T getById(PK id);",
"@Override\n\tpublic Employee findById(int id) {\n\t\tList<Employee> employeeList= \n\t\tlistEmployee().stream().filter((e -> e.getId()==id)).collect(Collectors.toList());\n\t\t\n\t\treturn (Employee)employeeList.get(0);\n\t}",
"E findById(N id);",
"<T> T findById(String typeName, String id, Class<T> clazz);",
"@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}",
"public UserInformation findInformationById(int id);",
"Corretor findOne(Long id);",
"ReferenceData findById(ReferenceDataId id) throws DataException;",
"private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }",
"@Override\n\tpublic EmpType findById(Object id) {\n\t\treturn null;\n\t}",
"@Override\r\n\t@Transactional(readOnly=true)\r\n\tpublic Orden findById(Long id) {\n\t\treturn ordenRepository.findById(id).orElse(null);\r\n\t}",
"public void findById() {\n String answer = view.input(message_get_id);\n if (answer != null){\n try{\n long id = Long.parseLong(answer);\n Customer c = model.findById(id);\n if(c!=null)\n view.showCustomerForm(c);\n else\n view.showMessage(not_found_error);\n }catch(NumberFormatException nfe){\n view.showMessage(\"ID must be number\");\n }\n }\n }",
"@Override\n public DriverDO find(Long driverId) throws EntityNotFoundException {\n return findDriverChecked(driverId);\n }",
"@Override\r\n public Optional<Product> findbyId(Long id) {\r\n return productRepository.findById(id);\r\n }",
"public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }",
"@Override\n\tpublic User findById(String id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Answer findById(String id) {\n\t\treturn answerRepository.findById(id).get();\n\t}",
"public Optional<Persona> findById(Long id);",
"@Override\r\n\tpublic Borne find(long id) {\r\n\t\tBorne borne = new Borne();\r\n\t\t\r\n\t\r\n\t\tStatement st =null;\r\n\t\tResultSet rs =null;\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tst = this.connect.createStatement();\r\n\t\t\tString sql = \"SELECT * FROM Borne WHERE id=\"+id;\r\n\t\t\trs = st.executeQuery(sql);\r\n\t\t\t\r\n\t\t\tif(rs.first()) {\r\n\t\t\t\tborne = new Borne(rs.getInt(\"id\"),\r\n\t\t\t\t\t\t\t\t DAOzone.find(rs.getInt(\"idZone\")));\r\n\t\t\t}\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn borne;\r\n\t}",
"Item findById(String id);",
"public void findbyid() throws Exception {\n try {\n IPi_per_intDAO pi_per_intDAO = getPi_per_intDAO();\n List<Pi_per_intT> listTemp = pi_per_intDAO.getByPK(pi_per_intT);\n\n pi_per_intT = listTemp.size() > 0 ? listTemp.get(0) : new Pi_per_intT();\n\n } catch (Exception e) {\n easyLogger.error(e.getMessage(), e);\n setMsg(ERROR, \"Falha ao realizar consulta!\");\n } finally {\n close();\n }\n }",
"protected Object find(Class<?> cls, Serializable id) throws DoesNotExistException {\n\n\t\tif (id == null) {\n\t\t\tthrow new IllegalArgumentException(\"find(class, id) has been given null id. Class is \" + cls.getName()\n\t\t\t\t\t+ \".\");\n\t\t}\n\t\telse if (id.equals(0)) {\n\t\t\tthrow new IllegalArgumentException(\"find(class, id) has been given zero id. Class is \" + cls.getName()\n\t\t\t\t\t+ \".\");\n\t\t}\n\n\t\ttry {\n\t\t\tObject obj = _em.find(cls, id);\n\n\t\t\tif (obj == null) {\n\t\t\t\tthrow new DoesNotExistException(cls, id);\n\t\t\t}\n\n\t\t\treturn obj;\n\t\t}\n\t\tcatch (IllegalArgumentException e) {\n\t\t\t// Invalid id\n\t\t\tthrow new IllegalArgumentException(\"find(class, id) has been given invalid id. Class is \" + cls.getName()\n\t\t\t\t\t+ \", id is \\\"\" + id + \"\\\".\", e);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// Doesn't exist\n\t\t\tthrow new DoesNotExistException(cls, id);\n\t\t}\n\t}",
"@Override\r\n\tpublic final <S extends MODEL> S find(IDENTIFIER id, Class<S> targetedEntity) {\r\n\t\tLOGGER.trace(\"Finding Entity [{}] with Persistence Identifier [{}]\", targetedEntity, id);\r\n\t\tif (targetedEntity == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotPerformCRUDOnNullEntity();\r\n\t\t}\r\n\r\n\t\tif (id == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotFindEntity(targetedEntity.toString(), null, null);\r\n\t\t}\r\n\t\tS entityToBeFound = null;\r\n\r\n\t\ttry {\r\n\t\t\tentityToBeFound = entityManager.find(targetedEntity, id);\r\n\t\t} catch (Exception exception) {\r\n\t\t\tHandlerUtil.handle(exception);\r\n\t\t\tThrowables.getRootCause(exception);\r\n\t\t\tthrow DaoRuntimeException.cannotFindEntity(targetedEntity.toString(), String.valueOf(id), exception);\r\n\r\n\t\t} finally {\r\n\t\t\tcloseEntityManager(entityManager);\r\n\t\t}\r\n\t\treturn entityToBeFound;\r\n\r\n\t}",
"@Override\r\n\tpublic User findById(int id) {\n\t\treturn userDAO.findById(id);\r\n\t}",
"public SavedSearch getSingleSavedSearch(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from SavedSearch as savedSearch where savedSearch.savedSearchId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n //System.out.println(\"resultssssssssss\" + results.toString());\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (SavedSearch) results.get(0);\n }\n\n }"
] |
[
"0.8179571",
"0.79280776",
"0.7817188",
"0.77281344",
"0.7598666",
"0.75517225",
"0.7547179",
"0.7457473",
"0.7445618",
"0.74455094",
"0.7388743",
"0.73696387",
"0.735429",
"0.7347058",
"0.7306977",
"0.7305732",
"0.72980934",
"0.7285569",
"0.727322",
"0.7263078",
"0.7241548",
"0.7238918",
"0.72271407",
"0.72151935",
"0.7202213",
"0.7196",
"0.7176465",
"0.71638954",
"0.71323043",
"0.7130555",
"0.7103695",
"0.70890886",
"0.70818424",
"0.7075223",
"0.7046126",
"0.7028659",
"0.70113206",
"0.6986185",
"0.69833416",
"0.6952951",
"0.6951371",
"0.6947073",
"0.69424665",
"0.69410694",
"0.693601",
"0.6929477",
"0.6919193",
"0.69189405",
"0.6911392",
"0.6903706",
"0.6900447",
"0.68986124",
"0.6869396",
"0.68691856",
"0.6866646",
"0.686344",
"0.6854302",
"0.68533385",
"0.6850638",
"0.68419516",
"0.68312126",
"0.68215454",
"0.6798987",
"0.679164",
"0.6790009",
"0.6786935",
"0.6783914",
"0.6781836",
"0.67798316",
"0.6772702",
"0.6764939",
"0.676475",
"0.6763206",
"0.6761408",
"0.67450756",
"0.67387",
"0.6738494",
"0.67378974",
"0.67356634",
"0.6735135",
"0.6734404",
"0.673261",
"0.67288965",
"0.6722146",
"0.6721676",
"0.6720956",
"0.67202693",
"0.671246",
"0.6710482",
"0.6710216",
"0.67065144",
"0.67028975",
"0.67007923",
"0.66788024",
"0.667181",
"0.66714156",
"0.6668144",
"0.6662827",
"0.66587675",
"0.66566956",
"0.6654087"
] |
0.0
|
-1
|
Method find definition ends here.. Method findOne definition
|
public void findOne( Map<String, ? extends Object> filter, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("filter", filter);
invokeStaticMethod("findOne", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
if(response != null){
QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);
if(context != null){
try {
Method method = qualificationRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(qualificationRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
//qualificationRepo.addStorage(context);
}
Map<String, Object> result = Util.fromJson(response);
Qualification qualification = qualificationRepo.createObject(result);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = qualification.getClass().getMethod("save__db");
method.invoke(qualification);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
callback.onSuccess(qualification);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void find() {\n\n\t}",
"public abstract T findOne(int id);",
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public abstract T findByID(ID id) ;",
"@Override\r\n\tpublic Personne find(int id) {\n\t\treturn null;\r\n\t}",
"@Override\n public CerereDePrietenie findOne(Long aLong) {\n// String SQL = \"SELECT id,id_1,id_2,status,datac\"\n// + \"FROM cereredeprietenie \"\n// + \"WHERE id = ?\";\n//\n// try (Connection conn = connect();\n// PreparedStatement pstmt = conn.prepareStatement(SQL)) {\n//\n// pstmt.setInt(1, Math.toIntExact(aLong));\n// ResultSet rs = pstmt.executeQuery();\n//\n// while(rs.next()) {\n// Long id = rs.getLong(\"id\");\n// Long id_1 = rs.getLong(\"id_1\");\n// Long id_2 = rs.getLong(\"id_2\");\n//\n// String status = rs.getString(\"status\");\n// LocalDateTime data = rs.getObject( 5,LocalDateTime.class);\n//\n// Utilizator u1=repository.findOne(id_1);\n// Utilizator u2=repository.findOne(id_2);\n//\n// CerereDePrietenie u =new CerereDePrietenie(u1,u2);\n// u.setId(id);\n// u.setStatus(status);\n// u.setData(data);\n// return u;\n// }\n//\n//\n// } catch (SQLException ex) {\n// System.out.println(ex.getMessage());\n// }\n//\n// return null;\n List<CerereDePrietenie> list=new ArrayList<>();\n findAll().forEach(list::add);\n for(CerereDePrietenie cerere: list){\n if(cerere.getId() == aLong)\n return cerere;\n }\n return null;\n }",
"Object find(String name);",
"@Override\n\tpublic Pessoa findOne(Integer arg0) {\n\t\treturn null;\n\t}",
"SyncRecord findObject(String name, int type) throws NotFoundException\r\n\t{\r\n\t\tfor (int i=0; i<syncTable.size(); i++)\r\n\t\t{\r\n\t\t\tSyncRecord myrec = (SyncRecord)syncTable.elementAt(i);\r\n\t\t\tif ((myrec.name).equals(name) && (myrec.type)==type)\r\n\t\t\t\treturn myrec;\r\n\t\t}\r\n\t\tthrow new NotFoundException();\r\n\t}",
"@Override\n\tpublic HelloEntity findOne() {\n\t\tLong id = 1L;\n\t\tHelloEntity entity = entityManager.find(HelloEntity.class, id);\n\t\tSystem.out.println(\"findOne: \" + entity.getName());\n\t\treturn null;\n\t}",
"public default E onFind(E entity) {\n\t\treturn entity;\n\t}",
"public T findOne(String arg0) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void find() {\n\t\tSystem.out.println(\"find method\");\n\t}",
"@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}",
"T findById(ID id) ;",
"@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}",
"T findOne(I id);",
"@Override\n\tpublic DomainObject find(long id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Document find(int id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic <T> T findOne(Map<String, CustmerCriteria> params, Class<T> t) throws Exception {\n\t\treturn null;\n\t}",
"public T find(T element);",
"protected boolean findObject(Object obj){\n \n }",
"@Override\r\n\tpublic Estates findOne(Integer arg0) {\n\t\treturn null;\r\n\t}",
"protected DomainObject findOne( StatementSource stmt ) {\n\t\tDomainObject obj = null;\n\t\tSQLiteDatabase db;\n\t\tCursor c = null;\n\t\ttry {\n\t\t\tUtils.Log( \"opening the database for read.\" );\n\t\t\tdb = Repository.getInstance( mContext ).getReadableDatabase();\n\t\t\tUtils.Log( stmt.sql() );\n\t\t\tc = db.rawQuery( stmt.sql(), stmt.parameters() );\n\t\t\tif ( c != null ) {\n\t\t\t\tc.moveToFirst();\n\t\t\t\tobj = load( c );\n\t\t\t}\n\t\t} catch ( SQLiteException e ) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif ( c != null ) {\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}",
"@Override\r\n\tpublic T find(T element) {\n\t\treturn null;\r\n\t}",
"Optional<T> findOne(K id);",
"@Override\n public Message findOne(Integer key) throws SQLException {\n //Ei toteutettu\n return null;\n }",
"Person findPerson(String name);",
"public abstract T findByName(String name) ;",
"public T find (T target);",
"@Override\n\tpublic Person findOne(Integer id) {\n\t\treturn null;\n\t}",
"public Conge find( Integer idConge ) ;",
"Corretor findOne(Long id);",
"@Override\n\tpublic Pedido findOne(Long arg0) {\n\t\treturn null;\n\t}",
"@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }",
"public R onFindForObject(final R record) {\n return record;\n // can be overridden.\n }",
"@Override\n\tpublic Map<String, Object> findOne(Long arg0) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic <S extends Employee> S findOne(Example<S> arg0) {\n\t\treturn null;\r\n\t}",
"private Answer<BdmDocument> getFindOneAnswer(String id) {\n\t\treturn invocation -> {\n\t\t\tAssert.assertEquals(id, invocation.getArguments()[0]);\n\t\t\treturn new BdmDocument(this.getTestBdm());\n\t\t};\n\t}",
"@Override\n default @NotNull Option<E> find(@NotNull Predicate<? super E> predicate) {\n return firstOption(predicate);\n }",
"@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Place find(Place obj) {\n\t\treturn null;\n\t}",
"Optional<T> find(long id);",
"public E findOne(ID primaryKey) {\n if ((primaryKey != null) && getDao().existsById(primaryKey)) {\n return getOne(primaryKey);\n }\n\n return null;\n }",
"@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}",
"@Override\n\tpublic User find(int id) {\n\t\tSystem.out.println(\"OracleDao is find\");\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic T findOne(final int id) {\r\n\t\tEntityManager manager = factory.createEntityManager();\r\n\t\tEntityTransaction transaction = manager.getTransaction();\r\n\t Object obj = null;\r\n\t \r\n\t try {\r\n\t \t transaction.begin();\r\n\t obj = (T) manager.find(genericClass, id);\r\n\t transaction.commit();\r\n\t } catch (HibernateException e) {\r\n\t \t if(transaction != null)\r\n\t \t\t transaction.rollback();\r\n\t e.printStackTrace(); \r\n\t } finally {\r\n\t manager.close(); \r\n\t }\r\n\t\treturn (T) obj;\r\n\t}",
"@Override\r\n public Match find(Match M) {\n return null;\r\n }",
"@Override\r\n\tpublic Borne find(long id) {\r\n\t\tBorne borne = new Borne();\r\n\t\t\r\n\t\r\n\t\tStatement st =null;\r\n\t\tResultSet rs =null;\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tst = this.connect.createStatement();\r\n\t\t\tString sql = \"SELECT * FROM Borne WHERE id=\"+id;\r\n\t\t\trs = st.executeQuery(sql);\r\n\t\t\t\r\n\t\t\tif(rs.first()) {\r\n\t\t\t\tborne = new Borne(rs.getInt(\"id\"),\r\n\t\t\t\t\t\t\t\t DAOzone.find(rs.getInt(\"idZone\")));\r\n\t\t\t}\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn borne;\r\n\t}",
"E find(Id id) throws RepositoryException;",
"@Override\n\tpublic Model findOne(Model model) throws ServiceException {\n\t\tMap<String, Object> result = getDao().findOne(model, null);\n\t\tmodel = buildModel(result);\n\t\treturn model;\n\t}",
"public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}",
"@Override\r\n\tpublic int find() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic ResponseEntity<?> findOne(Long id) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Employee findOne(Long arg0) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic LookMast findOne(int id) {\n\t\treturn lookMastRepository.findOne(id);\r\n\t}",
"@Nullable\n public DBObject findOne() {\n return findOne(new BasicDBObject());\n }",
"public E find(E item){\n\t\tE found = find(item, root);\n\t\treturn found;\n\t}",
"@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}",
"@Override\n\tpublic Personnes findOne(Long id) {\n\t\treturn null;\n\t}",
"E findById(K id);",
"@Override\n\tpublic String findById() {\n\t\treturn null;\n\t}",
"CE findById(ID id);",
"@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}",
"public T findOne(DBObject dbObjectQuery) throws NoSQLException;",
"@Override\r\n\tpublic Object findById(String objectId) {\n\t\treturn null;\r\n\t}",
"public abstract T findEntityById(int id);",
"public <T extends BaseEntity> T findOne(T entity) {\n T resultEntity = null;\n List<T> results = select(entity);\n if (results != null && !results.isEmpty()) {\n resultEntity = results.get(0);\n }\n return resultEntity;\n }",
"private void findNext() {\n \tthis.find(true);\n }",
"private TreeObject find(String name, int type) {\n\t return widgetRoots[type - 1].find(name);\n\t}",
"@Override\r\n\tpublic final <S extends MODEL> S find(IDENTIFIER id, Class<S> targetedEntity) {\r\n\t\tLOGGER.trace(\"Finding Entity [{}] with Persistence Identifier [{}]\", targetedEntity, id);\r\n\t\tif (targetedEntity == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotPerformCRUDOnNullEntity();\r\n\t\t}\r\n\r\n\t\tif (id == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotFindEntity(targetedEntity.toString(), null, null);\r\n\t\t}\r\n\t\tS entityToBeFound = null;\r\n\r\n\t\ttry {\r\n\t\t\tentityToBeFound = entityManager.find(targetedEntity, id);\r\n\t\t} catch (Exception exception) {\r\n\t\t\tHandlerUtil.handle(exception);\r\n\t\t\tThrowables.getRootCause(exception);\r\n\t\t\tthrow DaoRuntimeException.cannotFindEntity(targetedEntity.toString(), String.valueOf(id), exception);\r\n\r\n\t\t} finally {\r\n\t\t\tcloseEntityManager(entityManager);\r\n\t\t}\r\n\t\treturn entityToBeFound;\r\n\r\n\t}",
"@Override\n\tpublic Resident findOne(int residentId) {\n\t\ttry {\n\t\t\treturn repository.findById(residentId);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn null;\n\t}",
"T findOne(Long id);",
"public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }",
"@Nullable\n <T> T findById( @Nonnull Class<T> type, @Nonnull Object id );",
"Expertise findByName(String name);",
"@Override\n\tpublic Oglas find(Long id) {\n\t\treturn (Oglas) repository.getOne(id);\n\t}",
"private SymObject find(String name) {\n SymObject object = table.find(name);\n if (object == SymbolTable.OBJECT_NONE) {\n error(name + \" can't be resolved to a name\");\n }\n\n return object;\n }",
"@Override\n\tpublic Editore getOneByName(String name) {\n\t\treturn null;\n\t}",
"public void findbyid() throws Exception {\n try {\n IPi_per_intDAO pi_per_intDAO = getPi_per_intDAO();\n List<Pi_per_intT> listTemp = pi_per_intDAO.getByPK(pi_per_intT);\n\n pi_per_intT = listTemp.size() > 0 ? listTemp.get(0) : new Pi_per_intT();\n\n } catch (Exception e) {\n easyLogger.error(e.getMessage(), e);\n setMsg(ERROR, \"Falha ao realizar consulta!\");\n } finally {\n close();\n }\n }",
"@Override\n public MyBook findById(final int id) {\n System.err.println(\"MyBookRepositoryImpl:159 - not implement\");\n System.exit(1);\n return null;\n }",
"@Override\r\n\tpublic Candidat findOne(String id) {\n\t\treturn null;\r\n\t}",
"@Override\n public SideDishEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }",
"@Test\n\tpublic void findOneTest2() {\n\t\tLinija line = linijaService.findOne(2L);\n\t\t\n\t\tassertEquals(null, line);\n\t}",
"public SavedSearch getSingleSavedSearch(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from SavedSearch as savedSearch where savedSearch.savedSearchId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n //System.out.println(\"resultssssssssss\" + results.toString());\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (SavedSearch) results.get(0);\n }\n\n }",
"public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }",
"<A> Where<A> find(A a);",
"@Override\n\tpublic Person findPerson(String login) {\n\t\t// Queries komen in EJB\n\t\t\n\t\tQuery q = em.createQuery(\"SELECT p FROM Person p WHERE p.login = :login\");\n\t\tq.setParameter(\"login\", login);\n\t\tList<Person> persons=new ArrayList<>();\n\t\t\n\t\tpersons = q.getResultList();\n\t\t\n\t\tif(persons.size() == 1){\n\t\t\treturn persons.get(0);\n\t\t}\n\t\telse return null;\n\t}",
"@Test\n\tpublic void findOneTest1() {\n\t\tLinija line = linijaService.findOne(1L);\n\t\t\n\t\tassertNotEquals(null, line);\n\t}",
"@Override\n\tpublic Person findSelf() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\treturn p;\n\t}",
"@Override\n\tpublic EmpType findById(Object id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic T find(T targetElement) {\n\t\tif(contains(targetElement))\n\t\t return targetElement;\n\t\telse \n\t\t\treturn null;\n\t\t\n\t}",
"public FindOnModelObjectOK() {\r\n\t\tsuper();\r\n\t}",
"@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Vtype findById(int id) {\n\t\tVtype v=null;\r\n\t\tHibernateUtil.getCurrentSession().beginTransaction();\r\n\t\ttry{\r\n\t\t\tv=this.vdao.findById(id);\r\n\t\t\tHibernateUtil.getCurrentSession().getTransaction().commit();\r\n\t\t}catch(Exception e){\r\n\t\t\ttry{\r\n\t\t\t\tHibernateUtil.getCurrentSession().getTransaction().rollback();\r\n\t\t\t}catch(Exception e1){\r\n\t\t\t\tthrow e1;\r\n\t\t\t}\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn v;\r\n\t}",
"E find(final ID identifier) throws ResourceNotFoundException;",
"@Override\n\tpublic Product findOne(int a) {\n\t\tProduct p = productRepository.findOne(a);\n\t\treturn p;\n\t}",
"ANode<T> find(IPred<T> p) {\n return header.find(p, true);\n }",
"@Override\n\tpublic Emp findbyId(int eid) {\n\t\treturn eb.findbyId(eid);\n\t}",
"@Test\n public void testFind() {\n System.out.println(\"find\");\n int id = 0;\n Resource expResult = null;\n Resource result = Resource.find(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey) {\n\t\treturn null;\n\t}"
] |
[
"0.7351055",
"0.7333603",
"0.7117427",
"0.67782164",
"0.6709773",
"0.6675192",
"0.66463697",
"0.66458374",
"0.6544797",
"0.64865756",
"0.6483381",
"0.6479609",
"0.6459847",
"0.6457756",
"0.64517194",
"0.64479166",
"0.6442503",
"0.64114785",
"0.63793606",
"0.6367984",
"0.6360252",
"0.635274",
"0.6342361",
"0.6326318",
"0.63254493",
"0.6320621",
"0.6307974",
"0.6300742",
"0.62960595",
"0.6295977",
"0.6276398",
"0.62750554",
"0.62690437",
"0.62629694",
"0.6239826",
"0.6235922",
"0.62328786",
"0.61997664",
"0.61921126",
"0.61903894",
"0.61861724",
"0.61850864",
"0.6137515",
"0.61353403",
"0.6118938",
"0.6115873",
"0.6114086",
"0.6107074",
"0.61045146",
"0.60969603",
"0.60960096",
"0.6089518",
"0.6088534",
"0.607794",
"0.60711163",
"0.6068424",
"0.6056113",
"0.605582",
"0.6048554",
"0.60484767",
"0.604616",
"0.60432214",
"0.6039839",
"0.6032111",
"0.6030104",
"0.60288286",
"0.60178626",
"0.60055727",
"0.60050833",
"0.6000324",
"0.5999907",
"0.5991984",
"0.5989628",
"0.59657556",
"0.5964625",
"0.5962509",
"0.59604096",
"0.5956437",
"0.59545887",
"0.59531575",
"0.59475994",
"0.59438497",
"0.5942836",
"0.5941382",
"0.5939024",
"0.59389496",
"0.5917819",
"0.5917564",
"0.5911845",
"0.5908942",
"0.59045327",
"0.59031636",
"0.5897232",
"0.5895059",
"0.5892557",
"0.5888677",
"0.588737",
"0.58845794",
"0.58817184",
"0.5880549",
"0.5878197"
] |
0.0
|
-1
|
Method findOne definition ends here.. Method updateAll definition
|
public void updateAll( Map<String, ? extends Object> where, Map<String, ? extends Object> data, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("where", where);
hashMapObject.putAll(data);
invokeStaticMethod("updateAll", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void updateSingleRecord(){\n MongoCollection<Document> table = db.getCollection(\"user\");\n Document document = new Document();\n document.put(\"userType\", \"Free\");\n\n Document updateDocument=new Document(\"$set\", document);\n\n ObjectId id = null;\n\n try { id = new ObjectId(\"5ea41b16334a2657d0c26717\"); }\n catch (Exception e) { }\n\n\n table.updateOne(eq(\"_id\", id), updateDocument);\n }",
"E update(E entiry);",
"public abstract CustomerOrder findOneForUpdate(Long id);",
"public void updateMultipleRecord(){\n MongoCollection<Document> table = db.getCollection(\"user\");\n Document document = new Document();\n document.put(\"userName\", \"FreeUser\");\n document.put(\"status\", true);\n\n Document updateDocument=new Document(\"$set\", document);\n\n\n table.updateMany(eq(\"userType\", \"Free\"), updateDocument);\n }",
"@Override\n public CerereDePrietenie findOne(Long aLong) {\n// String SQL = \"SELECT id,id_1,id_2,status,datac\"\n// + \"FROM cereredeprietenie \"\n// + \"WHERE id = ?\";\n//\n// try (Connection conn = connect();\n// PreparedStatement pstmt = conn.prepareStatement(SQL)) {\n//\n// pstmt.setInt(1, Math.toIntExact(aLong));\n// ResultSet rs = pstmt.executeQuery();\n//\n// while(rs.next()) {\n// Long id = rs.getLong(\"id\");\n// Long id_1 = rs.getLong(\"id_1\");\n// Long id_2 = rs.getLong(\"id_2\");\n//\n// String status = rs.getString(\"status\");\n// LocalDateTime data = rs.getObject( 5,LocalDateTime.class);\n//\n// Utilizator u1=repository.findOne(id_1);\n// Utilizator u2=repository.findOne(id_2);\n//\n// CerereDePrietenie u =new CerereDePrietenie(u1,u2);\n// u.setId(id);\n// u.setStatus(status);\n// u.setData(data);\n// return u;\n// }\n//\n//\n// } catch (SQLException ex) {\n// System.out.println(ex.getMessage());\n// }\n//\n// return null;\n List<CerereDePrietenie> list=new ArrayList<>();\n findAll().forEach(list::add);\n for(CerereDePrietenie cerere: list){\n if(cerere.getId() == aLong)\n return cerere;\n }\n return null;\n }",
"public abstract T findOne(int id);",
"@Override\r\n\tpublic void update(Botany botany) {\n\t\tdao.update(botany);\r\n\t}",
"@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}",
"int updateByPrimaryKeySelective(QuestionOne record);",
"@Override\r\npublic int updateByPrimaryKeySelective(Possalesdetail record) {\n\treturn possalesdetail.updateByPrimaryKeySelective(record);\r\n}",
"@Transactional \n\tpublic void updateAll() {\n\t\t\n\t\tIterator<Pharmacy> newList = pharmacyRepository1.getAllEntity().iterator();\n\t\twhile (newList.hasNext()) {\n\t\t\tPharmacy pharmacy = newList.next();\n\t\t\tlistStockInPharmacy(pharmacy);\n\t\t\t}\n\t\t\n\t}",
"public void singleUpdate() {\n\t\ttry {\n\t\t\tthis.updateBy = CacheUtils.getUser().username;\n\t\t} catch (Exception e) {\n\t\t\tif (! getClass().equals(GlobalCurrencyRate.class)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.updateBy = \"super\";\n\t\t}\n\t\tthis.workspace = CacheUtils.getWorkspaceId();\n\t\tthis.updateAt = new Date();\n\n\t\tif (insertBy == null) insertBy = updateBy;\n\t\tif (insertAt == null) insertAt = updateAt;\n\n\t\tsuper.update();\n\t\tCacheUtils.cleanAll(this.getClass(), getAuditRight());\n\t}",
"int updateByPrimaryKeySelective(Ltsprojectpo record);",
"int updateByPrimaryKeySelective(ProEmployee record);",
"int updateByPrimaryKeySelective(GirlInfo record);",
"protected void updateRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Actualiza objeto\r\n\t\tobjectDao.update(object);\r\n\t\t// Actualiza relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.update(relco);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"int updateByPrimaryKeySelective(Body record);",
"int updateByPrimaryKeySelective(Dress record);",
"int updateByPrimaryKeySelective(Orderall record);",
"int updateByPrimaryKeySelective(WayShopCateRoot record);",
"int updateByPrimaryKeySelective(Prueba record);",
"int updateByPrimaryKey(QuestionOne record);",
"int updateByPrimaryKeySelective(TCar record);",
"int updateByPrimaryKeySelective(Employee record);",
"int updateByPrimaryKeySelective(GoodsPo record);",
"Table8 update(Table8 table8) throws EntityNotFoundException;",
"E update(E entity);",
"E update(E entity);",
"public QbUpdate all();",
"public void update() throws NotFoundException {\n\tUserDA.update(this);\n }",
"int updateByPrimaryKeySelective(Collect record);",
"@Override\n public void update(Person p) throws SQLException, ClassNotFoundException\n {\n\n BasicDBObject query = new BasicDBObject();\n query.put(\"Id\", p.getId()); // old data, find key Id\n\n BasicDBObject newDocument = new BasicDBObject();\n\n// newDocument.put(\"Id\", p.getId()); // new data\n newDocument.put(\"FName\", p.getFName()); // new data\n newDocument.put(\"LName\", p.getLName()); // new data\n newDocument.put(\"Age\", p.getAge()); // new data\n System.out.println(newDocument);\n\n BasicDBObject updateObj = new BasicDBObject();\n updateObj.put(\"$set\", newDocument);\n System.out.println(updateObj);\n\n table.update(query, updateObj);\n }",
"@Test\n public void update() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(1, 0, 6, \"GUI\");\n Student s2 = new Student(1,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(1, 1, \"prof\", 10, \"Irelevant\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repo.update(s2);\n repot.update(t2);\n repon.update(n2);\n assert repo.findOne(1).getGrupa()==221;\n assert repot.findOne(1).getDeadline()==8;\n assert repon.findOne(\"11\").getFeedback()==\"Irelevant\";\n\n }\n catch (ValidationException e){\n }\n }",
"int updateByPrimaryKeySelective(Thing record);",
"int updateByPrimaryKeySelective(Commet record);",
"int updateByPrimaryKeySelective(Clazz record);",
"int updateByPrimaryKeySelective(HuoDong record);",
"int updateByPrimaryKeySelective(Forumpost record);",
"int updateByPrimaryKeySelective(ResourcePojo record);",
"int updateByPrimaryKey(Body record);",
"private static CompletionStage<Void> update(ReactiveMongoCollection collection, Object entity) {\n BsonDocument document = getBsonDocument(collection, entity);\n\n //then we get its id field and create a new Document with only this one that will be our replace query\n BsonValue id = document.get(ID);\n BsonDocument query = new BsonDocument().append(ID, id);\n return collection.replaceOne(query, entity).thenApply(u -> null);\n }",
"@Override\n public int updateByQuerySelective( BorrowDO record, BorrowQuery query){\n return borrowExtMapper.updateByQuerySelective(record, query);\n }",
"@Override\n\tpublic Model findOne(Model model, List<SQLOrderbyModel> orderbyList) throws ServiceException {\n\t\tMap<String, Object> result = getDao().findOne(model, orderbyList);\n\t\tmodel = buildModel(result);\n\t\treturn model;\n\t}",
"@GetMapping(\"/{id}\")\n public ResponseEntity updateOne(@PathVariable Long id){\n Employee employee=hr_service.findById(id);\n\n return new ResponseEntity<>(employee, HttpStatus.OK);\n }",
"@Nullable\n public DBObject findOne() {\n return findOne(new BasicDBObject());\n }",
"int updateByPrimaryKeySelective(PrhFree record);",
"int updateByPrimaryKey(Dormitory record);",
"int updateByPrimaryKeySelective(BaseReturn record);",
"int updateByPrimaryKeySelective(BaseCountract record);",
"int updateByPrimaryKeySelective(LitemallUserFormid record);",
"int updateByPrimaryKeySelective(Yqbd record);",
"int updateByPrimaryKeySelective(Enfermedad record);",
"int updateByPrimaryKeySelective(CfgSearchRecommend record);",
"int updateByPrimaryKeySelective(SPerms record);",
"@Override\n\tpublic void updateOne(User u) {\n\t\tdao.updateInfo(u);\n\t}",
"@Override\n public int updateByQuery( BorrowDO record, BorrowQuery query){\n\n return borrowExtMapper.updateByQuery(record, query);\n }",
"int updateByPrimaryKeySelective(SwipersDO record);",
"@Override\n\tprotected Model fetchOne(int id) {\n\t\treturn null;\n\t}",
"int updateByPrimaryKey(Orderall record);",
"int updateByPrimaryKeySelective(TbComEqpModel record);",
"public Mongo mongo_search_for_update(long id, NeUser user) throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\"mongo_search_for_update service operation started !\");\n\n\t\ttry{\n\t\t\tMongo the_Mongo;\n\n\t\t\tthe_Mongo = mongo_Default_Activity_dao.mongo_search_for_update(id, user);\n\n \t\t\tlog.info(\" Object returned from mongo_search_for_update service method !\");\n\t\t\treturn the_Mongo;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\"mongo_search_for_update service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}",
"public Poentity poentity_search_for_update(String id ) throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\"poentity_search_for_update service operation started !\");\n\n\t\ttry{\n\t\t\tPoentity the_Poentity;\n\n\t\t\tthe_Poentity = Poentity_Activity_dao.poentity_search_for_update(id);\n\n \t\t\tlog.info(\" Object returned from poentity_search_for_update service method !\");\n\t\t\treturn the_Poentity;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\"poentity_search_for_update service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}",
"int updateByPrimaryKey(Dress record);",
"int updateByPrimaryKey(Model record);",
"int updateByPrimaryKeySelective(SelectUserRecruit record);",
"int updateByPrimaryKeySelective(IceApp record);",
"int updateByPrimaryKeySelective(ROmUsers record);",
"int updateByPrimaryKey(ProEmployee record);",
"int updateByPrimaryKeySelective(Engine record);",
"int updateByPrimaryKeySelective(Kaiwa record);",
"int updateByPrimaryKeySelective(ResultDto record);",
"@Override\r\n\tpublic Integer updateByPrimaryKeySelective(Filtering record) {\n\t\treturn filteringMapper.updateByPrimaryKeySelective(record);\r\n\t}",
"int updateByPrimaryKeySelective(Tourst record);",
"Patient update(Patient patient);",
"@Action(value=\"update\",results={@Result(name=\"queryAll\",location=\"/zjwqueryMange.jsp\")})\n\tpublic String update()\n\t{\n\t\tkehuDAO.update(kehu);\n\t\t//查询 id kehu\n\t\tkehuList = (ArrayList) kehuDAO.findAll();\n\t\treturn \"queryAll\";\n\t}",
"int updateByPrimaryKeySelective(HomeWork record);",
"int updateByPrimaryKeySelective(NeeqCompanyAccountingFirmOnline record);",
"@Override\n public int updateByPrimaryKeySelective(BorrowDO record){\n return borrowExtMapper.updateByPrimaryKeySelective(record);\n }",
"int updateByPrimaryKey(Collect record);",
"int updateByPrimaryKeySelective(Caiwu record);",
"int updateByPrimaryKeySelective(Basicinfo record);",
"int updateByPrimaryKey(Mallscroerule record);",
"@Nullable\n public DBObject findAndModify(@Nullable final DBObject query, final DBObject update) {\n return findAndModify(query, null, null, false, update, false, false);\n }",
"int updateByPrimaryKeySelective(PracticeClass record);",
"@Override\n public int update(Model model) throws ServiceException {\n try {\n \treturn getDao().updateByID(model);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n }",
"int updateByPrimaryKey(Ltsprojectpo record);",
"int updateByPrimaryKeySelective(HotelType record);",
"int updateByPrimaryKeySelective(Online record);",
"@Override\r\n\tpublic Integer updateByPrimaryKeySelective(Wt_collection record) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}",
"int updateByPrimaryKey(CfgSearchRecommend record);",
"int updateByPrimaryKeySelective(CartDO record);",
"public User update(User user)throws Exception;",
"public void updateByObject()\r\n\t{\n\t}",
"@Override\n\tpublic PI update(PIDTO updated) throws NotFoundException {\n\t\treturn null;\n\t}",
"int updateByPrimaryKeySelective(CptDataStore record);",
"int updateByPrimaryKey(WayShopCateRoot record);",
"int updateByPrimaryKeySelective(SmsEmployeeTeam record);",
"int updateByPrimaryKeySelective(RegsatUser record);",
"@Override\r\n\tpublic void update(Object obj) throws DAOException {\n\r\n\t}"
] |
[
"0.6464086",
"0.61436945",
"0.6103985",
"0.60823715",
"0.6071028",
"0.60603374",
"0.6006854",
"0.5994162",
"0.5969431",
"0.591991",
"0.58820015",
"0.5866406",
"0.58631676",
"0.58534586",
"0.5847507",
"0.5839694",
"0.58389413",
"0.58215207",
"0.5811802",
"0.57973313",
"0.5791651",
"0.57886076",
"0.5774693",
"0.57720125",
"0.57634586",
"0.57605606",
"0.575273",
"0.57433033",
"0.57433033",
"0.5735971",
"0.5727428",
"0.57159966",
"0.5715032",
"0.5709797",
"0.5706655",
"0.5702044",
"0.5700327",
"0.5699149",
"0.5694365",
"0.56942374",
"0.5688231",
"0.56801766",
"0.56799906",
"0.56794786",
"0.5679346",
"0.56787723",
"0.5671741",
"0.5668555",
"0.5659703",
"0.5656128",
"0.5652964",
"0.56484497",
"0.56446636",
"0.56443596",
"0.564319",
"0.5642771",
"0.5642365",
"0.56392545",
"0.5632362",
"0.5631126",
"0.56284535",
"0.56231314",
"0.5616326",
"0.56142455",
"0.5613703",
"0.5613162",
"0.5606247",
"0.5602057",
"0.5601511",
"0.5599791",
"0.55985516",
"0.55976486",
"0.5597551",
"0.55967957",
"0.55957866",
"0.55934346",
"0.55917025",
"0.55888754",
"0.55874103",
"0.55836314",
"0.55801654",
"0.5576185",
"0.55748516",
"0.55694616",
"0.55688405",
"0.55683696",
"0.5567232",
"0.556544",
"0.55651385",
"0.55651015",
"0.55634683",
"0.5561048",
"0.5557988",
"0.5557865",
"0.55531967",
"0.5550895",
"0.55461097",
"0.5545857",
"0.55442184",
"0.55430835",
"0.55430365"
] |
0.0
|
-1
|
Method updateAll definition ends here.. Method deleteById definition
|
public void deleteById( String id, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("id", id);
invokeStaticMethod("deleteById", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void updateDelete(String id) {\n \tUpdate update = new Update();\r\n\t\tupdate.set(\"status\", Constants.MSG_STATUS_DELETED);\r\n\t\t\r\n\t\tmongoTemplate.updateFirst(new Query(Criteria.where(\"id\").is(id)), update, AsxDataVO.class);\r\n\t}",
"@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void deleteById(Long id) {\n\n\t}",
"@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}",
"@Override\npublic void deleteById(String id) {\n\t\n}",
"@Delete(DELETE_BY_ID)\n @Override\n int deleteById(int id);",
"@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}",
"public void deleteAll();",
"@Override\n\tpublic void deleteById(String id) throws Exception {\n\t\t\n\t}",
"public abstract void deleteAll();",
"@Override\n public void delete(Long id) throws Exception {\n\n }",
"@Override\r\n\tpublic void Delete(long id) {\n\t\t\r\n\t}",
"@Override\n\tpublic void deleteById(int theId) {\n\t\t\n\t}",
"void deleteById(Long Id);",
"@Override\n\tpublic void delete(Long id) {\n\n\t}",
"@Override\n\tpublic void delete(Long id) {\n\n\t}",
"@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}",
"@Override\n\tpublic void delete(Long id) {\n\t}",
"@Override\r\n\tpublic void deleteById(Long id) {\n\t\tsuper.deleteById(id);\r\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"public void deleteAll();",
"public void deleteAll();",
"public void deleteAll();",
"void deleteById(int id);",
"@Override\n\tpublic void delete(long id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(long id) {\n\t\t\n\t}",
"public void deleteById(long id) {\n\t\t\n\t}",
"public abstract void deleteByID( int id);",
"@Override\n\tpublic void delete(List<Long> ids) {\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t List<User> userList = selectAllUser();\n\t\t for (User user : userList) {\n\t\t\tuserMapper.deleteUser(user.getId());\n\t\t}\n\t}",
"@Test\r\n\tpublic void testDeleteById() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tfor (E e : entities) {\r\n\t\t\tInteger id = supplyId(e);\r\n\t\t\tdao.deleteById(id);\r\n\t\t\tE read = dao.read(id);\r\n\t\t\tassertNull(read);\r\n\t\t}\r\n\t}",
"public void deleteAll(int[] id) {\n\t\tdao.deleteAll(id);\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\r\n\t}",
"@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}",
"@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}",
"public void deleteAll() {\n\n\t}",
"public void deleteById(long id) {\n\n\t}",
"@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Integer id) {\n\n\t}",
"void deleteById(long id);",
"@Override\n public void delete(int id) {\n }",
"@Override\n\tpublic void delete(int id) {\n\t}",
"@Override\r\n\tpublic void del(Integer id) {\n\t\t\r\n\t}",
"void deleteAll();",
"void deleteAll();",
"void deleteAll();",
"public void deleteAll(MDSKey id) {\n deleteAll(id, x -> true);\n }",
"void deleteById(Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}",
"public abstract void delete(Iterable<Long> ids);",
"public void deleteById(int theId);",
"default void delete(ID id)\n throws TechnicalException, ConflictException{\n delete(find(id));\n }",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"public void deleteById(Long id);",
"@Override\r\n\tpublic void delete(String id) {\n\r\n\t}",
"public void delete(Long id) {\n\r\n\t}",
"@Override\n\tpublic void deleteById(Serializable id) {\n\t\tmapper.deleteById(id);\n\t\t\n\t}",
"public void deleteAll()\n\t{\n\t}",
"public void deleteAll()\n\t{\n\t}",
"@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}",
"@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}",
"public void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void delete(String id) {\n\n\t}",
"public void deleteAll() {\n Session session = getSessionFactory().openSession();\n\n try {\n session.beginTransaction();\n Query query = session.createQuery(\"DELETE FROM Person \");\n query.executeUpdate();\n session.getTransaction().commit();\n LOGGER.log(Level.INFO,\"Successfully deleted all persons.\");\n }\n catch (Exception e){\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO,\"Deletion of all persons failed\");\n }\n finally {\n session.close();\n }\n }",
"public void deleteById(String id);",
"public void deleteById(Integer id) {\n\n\t}",
"public void deleteAll()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.deleteAll();\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void delete(String id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(String id) {\n\t\t\n\t}",
"void deleteById(Integer id);",
"void deleteById(Integer id);",
"@Override\r\n\tpublic void deleteAllInBatch() {\n\t\t\r\n\t}",
"public JiburiVar deleteById(int id){\n jiburiMapper.deleteById(id);\n return jiburiMapper.getAllById(id);\n }",
"@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\n\t}",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);"
] |
[
"0.68786615",
"0.68605685",
"0.6796205",
"0.6752714",
"0.67410684",
"0.6680814",
"0.66805255",
"0.6668458",
"0.66598034",
"0.66340965",
"0.66315496",
"0.66280395",
"0.6618544",
"0.6613486",
"0.6613148",
"0.6613148",
"0.66084564",
"0.65972",
"0.65881205",
"0.65645784",
"0.6539991",
"0.6539991",
"0.6539991",
"0.6531888",
"0.6531888",
"0.6531888",
"0.6531888",
"0.652267",
"0.652267",
"0.652267",
"0.6521609",
"0.6499681",
"0.6499681",
"0.64942235",
"0.64871657",
"0.64797723",
"0.6473997",
"0.64695793",
"0.6458531",
"0.64422584",
"0.6442158",
"0.64327335",
"0.64262545",
"0.64177454",
"0.6409433",
"0.6404268",
"0.6404268",
"0.6404268",
"0.6404268",
"0.6404268",
"0.6404268",
"0.6404268",
"0.6404268",
"0.640033",
"0.63974535",
"0.6382458",
"0.6374091",
"0.6372745",
"0.63724935",
"0.63724935",
"0.63724935",
"0.63632965",
"0.6357968",
"0.6357968",
"0.6357968",
"0.6357968",
"0.6350666",
"0.6346334",
"0.6344609",
"0.63420326",
"0.63395226",
"0.63395226",
"0.63395226",
"0.63395226",
"0.6334951",
"0.63347054",
"0.6327342",
"0.6325068",
"0.63249207",
"0.63249207",
"0.6308484",
"0.630766",
"0.6302029",
"0.62953144",
"0.6280617",
"0.62704647",
"0.6270366",
"0.62577456",
"0.6254487",
"0.6254487",
"0.6246515",
"0.6246515",
"0.6243101",
"0.62378085",
"0.62358576",
"0.6235428",
"0.6235428",
"0.6235428",
"0.6235428",
"0.6235428",
"0.6235428"
] |
0.0
|
-1
|
Method deleteById definition ends here.. Method count definition
|
public void count( Map<String, ? extends Object> where, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("where", where);
invokeStaticMethod("count", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic int deleteById(Integer id) throws Exception {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}",
"@Override\n\tpublic int delete(Integer id) {\n\t\treturn 0;\n\t}",
"Integer delete(int id);",
"@Override\n\tpublic void delete(long id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(long id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Integer id) {\n\n\t}",
"void delete(Integer id);",
"void delete(Integer id);",
"@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}",
"int delete(Long id);",
"@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}",
"@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}",
"@Override\n public void delete(int id) {\n }",
"@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}",
"@Override\n public void delete(Long id) throws Exception {\n\n }",
"@Delete(DELETE_BY_ID)\n @Override\n int deleteById(int id);",
"@Override\n\tpublic void delete(int id) {\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"void deleteById(int id);",
"int deleteById(Long id);",
"@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\n\t}",
"public void delete(Integer id) {\n\r\n\t}",
"@Override\n\tpublic void deleteById(int theId) {\n\t\t\n\t}",
"@Override\r\n\tpublic int deleteById(String id) {\n\t\treturn 0;\r\n\t}",
"public int delete( Integer idConge ) ;",
"public void delete(int id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}",
"public void deleteById(int theId);",
"void delete( Integer id );",
"void delete( Long id );",
"@Override\n\tpublic int deleteById(String id) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void Delete(long id) {\n\t\t\r\n\t}",
"@Override\n\tpublic int delete(Object id) {\n\t\treturn 0;\n\t}",
"void delete(int id) throws Exception;",
"void deleteById(long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);"
] |
[
"0.7639958",
"0.7613061",
"0.75924134",
"0.7584889",
"0.75709754",
"0.75709754",
"0.7566303",
"0.7557716",
"0.7557716",
"0.7556009",
"0.7554765",
"0.7548395",
"0.75415725",
"0.7540542",
"0.75288165",
"0.7523772",
"0.7521573",
"0.7520033",
"0.7496003",
"0.7496003",
"0.7496003",
"0.7496003",
"0.74923146",
"0.7484295",
"0.748303",
"0.7482587",
"0.7478605",
"0.74734473",
"0.74728763",
"0.745564",
"0.7442138",
"0.7442138",
"0.7442138",
"0.7438078",
"0.7433729",
"0.74317485",
"0.74296606",
"0.7426749",
"0.74256945",
"0.7418399",
"0.74147934",
"0.74046916",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999",
"0.739999"
] |
0.0
|
-1
|
Method count definition ends here.. Method updateAttributes definition
|
public void updateAttributes( String qualificationId, Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("qualificationId", qualificationId);
hashMapObject.putAll(data);
invokeStaticMethod("prototype.updateAttributes", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
if(response != null){
QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);
if(context != null){
try {
Method method = qualificationRepo.getClass().getMethod("addStorage", Context.class);
method.invoke(qualificationRepo, context);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
//qualificationRepo.addStorage(context);
}
Map<String, Object> result = Util.fromJson(response);
Qualification qualification = qualificationRepo.createObject(result);
//Add to database if persistent storage required..
if(isSTORE_LOCALLY()){
//http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string
try {
Method method = qualification.getClass().getMethod("save__db");
method.invoke(qualification);
} catch (Exception e) {
Log.e("Database Error", e.toString());
}
}
callback.onSuccess(qualification);
}else{
callback.onSuccess(null);
}
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@java.lang.Override\n public int getAttributesCount() {\n return attributes_.size();\n }",
"final void setAttributes(int param1, int param2) {\n }",
"@Override\n\tpublic int numberOfAttributes() {\n\t\treturn 2 + numberOfCustomFields();\n\t}",
"@Override\n protected void update(ScanningContext context) {\n validateAttributes(context);\n }",
"public void setNumAttributes(int numAttributes) {\n m_NumAttributes = numAttributes;\n }",
"@Override\npublic void processAttributes() {\n\t\n}",
"int getAttributesCount();",
"int getAttributesCount();",
"private void addCreateUpdateAttributes(Context _context) throws EFapsException {\r\n Iterator iter = getType().getAttributes().entrySet().iterator();\r\n while (iter.hasNext()) {\r\n Map.Entry entry = (Map.Entry)iter.next();\r\n Attribute attr = (Attribute)entry.getValue();\r\n AttributeType attrType = attr.getAttributeType();\r\n if (attrType.isCreateUpdate()) {\r\n add(_context, attr, null);\r\n }\r\n }\r\n }",
"public void updateAttributes(Map<String, String> attributes, String accessToken) {\n\t AnonymousAWSCredentials awsCreds = new AnonymousAWSCredentials();\n AWSCognitoIdentityProvider cognitoIdentityProvider = AWSCognitoIdentityProviderClientBuilder\n .standard()\n .withCredentials(new AWSStaticCredentialsProvider(awsCreds))\n .withRegion(Regions.fromName(jwtConfiguration.getREGION()))\n .build();\n UpdateUserAttributesRequest updateAttrRequest = new UpdateUserAttributesRequest();\n updateAttrRequest.setAccessToken(accessToken);\n Set<String> keys = attributes.keySet();\n List<AttributeType> attributeTypeList = new ArrayList<AttributeType>();\n for(String key : keys) {\n \tattributeTypeList.add(createAttributeType(key, attributes.get(key)));\t \t\n }\n updateAttrRequest.setUserAttributes(attributeTypeList);\n cognitoIdentityProvider.updateUserAttributes(updateAttrRequest);\n\t }",
"@Test\n public void testPasswordAgingAttributesWithUpdate() {\n if (getConnection().isNis()) {\n log.info(\"skipping test 'testPasswordAgingAttributesWithUpdate' for NIS configuration, as it is not supported there.\");\n return;\n }\n\n String username = getUsername();\n Set<Attribute> passwordAgingAttrs =\n CollectionUtil.newSet(AttributeBuilder.build(AccountAttribute.MIN.getName(), 2),\n AttributeBuilder.build(AccountAttribute.MAX.getName(), 5), AttributeBuilder\n .build(AccountAttribute.WARN.getName(), 4));\n getFacade().update(ObjectClass.ACCOUNT, new Uid(username), passwordAgingAttrs, null);\n\n ToListResultsHandler handler = new ToListResultsHandler();\n getFacade().search(\n ObjectClass.ACCOUNT,\n FilterBuilder.equalTo(AttributeBuilder.build(Name.NAME, username)),\n handler,\n new OperationOptionsBuilder().setAttributesToGet(\n CollectionUtil.newSet(AccountAttribute.MAX.getName(), AccountAttribute.MIN\n .getName(), AccountAttribute.WARN.getName())).build());\n\n assertTrue(handler.getObjects().size() >= 1);\n ConnectorObject result = handler.getObjects().get(0);\n assertTrue(controlAttributeValue(2, AccountAttribute.MIN, result));\n assertTrue(controlAttributeValue(5, AccountAttribute.MAX, result));\n assertTrue(controlAttributeValue(4, AccountAttribute.WARN, result));\n }",
"protected abstract void createAttributes();",
"public int getAttributeCount()\n/* */ {\n/* 728 */ return this.attributes.size();\n/* */ }",
"protected abstract boolean populateAttributes();",
"int getNumberOfNecessaryAttributes();",
"@Override\npublic void setAttributes() {\n\t\n}",
"int updateByPrimaryKey(TbProductAttributes record);",
"public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }",
"public void setRequestAttributeCount(int requestAttributeCount)\n {\n this.requestAttributeCount = requestAttributeCount;\n }",
"public void setAttributes(java.lang.Integer attributes) {\r\n this.attributes = attributes;\r\n }",
"protected void _updateG2AttributesFromLocal(Structure atts)\n {\n }",
"@Override\n public int getAttributeCount()\n {\n return 3;\n }",
"int updateByPrimaryKeySelective(TbProductAttributes record);",
"public int getNumOfAttributes() {\n\t\treturn numOfAttributes;\n\t}",
"protected void _updateLocalAttributesFromG2(Structure atts)\n {\n }",
"private Attributes adjustForeignAttributes(Attributes attributes) {\n return attributes;\n }",
"public abstract void updateAttributes(TaskRepository repository, IProgressMonitor monitor) throws CoreException;",
"protected abstract void bindAttributes();",
"public void setNumOfAttributes(int numOfAttributes) throws IllegalArgumentException {\n\t\tif(numOfAttributes < 1)\n\t\t\tthrow new IllegalArgumentException(\"The number of attributes cannot be less than 1\");\n\t\tthis.numOfAttributes = numOfAttributes;\n\t}",
"public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"int updateByPrimaryKeySelective(AttributeExtend record);",
"public int getNumOfAttributes()\r\n\t{\r\n\t\tint n = userDefiendAttr.size();\r\n\t\tif (name != null)\r\n\t\t\tn++;\r\n\t\tif (regid != null)\r\n\t\t\tn++;\r\n\t\tif (type != null)\r\n\t\t\tn++;\r\n\t\tif (coord2d != null)\r\n\t\t\tn++;\r\n\t\tif (coord3d != null)\r\n\t\t\tn++;\r\n\t\tif (valences != null)\r\n\t\t\tn++;\r\n\t\treturn n;\r\n\t}",
"protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {\r\n\t}",
"public int getNumAttributes() {\n return numAttributes;\n }",
"public int getNumAttributes() {\n return m_NumAttributes;\n }",
"int updateByPrimaryKey(AttributeExtend record);",
"void updateAttribute(final AuthValues authToken, final UUID garId, final Attribute attribute) throws WorkflowException;",
"@Test(enabled = false)\n public void testPutAttributes() throws SecurityException, NoSuchMethodException, IOException {\n Method method = SimpleDBAsyncClient.class.getMethod(\"putAttributes\", String.class, String.class, Map.class);\n HttpRequest request = processor.createRequest(method, null, \"domainName\");\n\n assertRequestLineEquals(request, \"POST https://sdb.amazonaws.com/ HTTP/1.1\");\n assertNonPayloadHeadersEqual(request, \"Host: sdb.amazonaws.com\\n\");\n assertPayloadEquals(request, \"Version=2009-04-15&Action=PutAttributes&DomainName=domainName&ItemName=itemName\"\n + \"&Attribute.1.Name=name\" + \"&Attribute.1.Value=fuzzy\" + \"&Attribute.1.Replace=true\",\n \"application/x-www-form-urlencoded\", false);\n\n assertResponseParserClassEquals(method, request, ReleasePayloadAndReturn.class);\n assertSaxResponseParserClassEquals(method, null);\n assertExceptionParserClassEquals(method, null);\n\n checkFilters(request);\n }",
"private int countAttributes(String[] attrs)\n {\n int count = 0;\n for (String s : attrs)\n {\n if (isAttributeDefined(s))\n {\n count++;\n }\n }\n return count;\n }",
"public void addAttributesValue() {\r\n\t\t boolean flag=true;\r\n\t\t wsrdModel.setErrorMsg(\"\");\r\n\t\t List<UiAirplaneModel> modelList = new ArrayList<UiAirplaneModel>(uiAirplaneModel.getApNamesList());\t\r\n\t\t\tfor(UiAirplaneModel save:modelList) {\r\n\t\t\t\tif(save.isInputDisplayItem()) {\r\n\t\t\t\t\tflag = false;\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(flag) {\r\n\t\t\t\tmodelList.add(emptyAttributesValue());\r\n\t\t\t\tuiAirplaneModel.setApNamesList(modelList);\r\n\t\t\t}else {\r\n\t\t\t\taddErrorMessage(\"wsrdAdmin:addAirplaneNamesPanelID\", \"edit.edit\");\r\n\t\t\t}\r\n\t\t}",
"public int getAttributesCount() {\n if (attributesBuilder_ == null) {\n return attributes_.size();\n } else {\n return attributesBuilder_.getCount();\n }\n }",
"@Override\n public int getAttributeCount() { return 0; }",
"public final void setAttributes(final String[] newAttributes) {\n this.attributes = newAttributes;\n }",
"public void changeAttrName() {\r\n }",
"@Test\n void update() throws WriteFailedException {\n Config newData = new ConfigBuilder().addAugmentation(NiPfIfCiscoAug.class,\n new NiPfIfCiscoAugBuilder()\n .setInputServicePolicy(\"input-pol1\")\n .build())\n .build();\n\n this.writer.updateCurrentAttributes(iid, data, newData, context);\n\n Mockito.verify(cli, Mockito.times(1))\n .executeAndRead(response.capture());\n\n assertEquals(UPDATE_INPUT, response.getAllValues()\n .get(0)\n .getContent());\n }",
"@Override\n public int getAttributeCount()\n {\n return attributes.getSubNodes().size();\n }",
"private void addAttrAnnotation(List<Iattribute> attributes, String packageName, String className) {\n\n FileSavedAnnotAttr annotAttr;\n\n for (Iattribute itemAttr: attributes) {\n\n for (Iannotation itemAnnot: itemAttr.getAttrAnnotations()) {\n\n if (itemAnnot.isChangen()) {\n\n if (itemAnnot.isParam()) {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), itemAnnot.getValue(), itemAttr.getName(), itemAttr.getType());\n }else {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), null, itemAttr.getName(), itemAttr.getType());\n }\n\n saveAnnotaion.add(annotAttr);\n }\n }\n }\n }",
"@Override\n protected void updateProperties() {\n }",
"@Override\n public final int getAttributeCount() {\n return 7;\n }",
"protected int defaultNumAttributes() {\n return 10;\n }",
"private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}",
"public void attributSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}",
"public static void save_attributes(String table_name, int id, Text[] attrs) throws SQLException{\n\t\t\n\t\tString name=StringEscapeUtils.escapeSql(attrs[0].getText());\n\t\tint rating;\n\t\ttry{\n\t\t\trating=Integer.parseInt(StringEscapeUtils.escapeSql(attrs[1].getText()));\n\t\t}catch (Exception e){\n\t\t\trating=0;\n\t\t}\n\t\tint year;\n\t\ttry{\n\t\t\tyear=Integer.parseInt(StringEscapeUtils.escapeSql(attrs[2].getText()));\n\t\t}catch (Exception e){\n\t\t\tyear=0;\n\t\t}\n\t\tString query=\"\";\n\t\t\n\t\tif(table_name.compareTo(\"Actors\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_cinema_actors \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", year_born=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Movies\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_cinema_movies \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", year_made=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Categories\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_cinema_tags \"+\n\t\t\t\t\t\" SET name='\"+name+\n\t\t\t\t\t\"' WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Artists\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_music_artists \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", birth_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Creations\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_music_creations \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", year_made=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Locations\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_places_locations \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", population=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"NBA players\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_nba_players \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_player=\"+rating+\", birth_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"NBA teams\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_nba_teams \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_team=\"+rating+\", creation_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Israeli soccer players\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_israeli_soccer_players \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_player=\"+rating+\", birth_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Israeli soccer teams\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_israeli_soccer_teams \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_team=\"+rating+\", creation_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"World soccer players\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_world_soccer_players \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_player=\"+rating+\", birth_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"World soccer teams\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_world_soccer_teams \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_team=\"+rating+\", creation_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Countries\")==0){\n\t\t\tdouble area;\n\t\t\ttry{\n\t\t\t\tarea = Double.parseDouble(StringEscapeUtils.escapeSql(attrs[1].getText()));\n\t\t\t}catch(Exception e){\n\t\t\t\tarea=0.0;\n\t\t\t}\n\t\t\tdouble GDP_pc;\n\t\t\ttry{\n\t\t\t\tGDP_pc = Double.parseDouble(StringEscapeUtils.escapeSql(attrs[2].getText()));\n\t\t\t}catch(Exception e){\n\t\t\t\tGDP_pc=0.0;\n\t\t\t}\n\t\t\tdouble population;\n\t\t\ttry{\n\t\t\t\tpopulation = Double.parseDouble(StringEscapeUtils.escapeSql(attrs[3].getText()));\n\t\t\t}catch(Exception e){\n\t\t\t\tpopulation=0.0;\n\t\t\t}\n\t\t\tString capital = StringEscapeUtils.escapeSql(attrs[4].getText());\n\t\t\tdouble GDP;\n\t\t\ttry{\n\t\t\t\tGDP = Double.parseDouble(StringEscapeUtils.escapeSql(attrs[5].getText()));\n\t\t\t}catch(Exception e){\n\t\t\t\tGDP=0.0;\n\t\t\t}\n\t\t\tquery = \" UPDATE IGNORE curr_places_countries \"+\n\t\t\t\t\t\" SET `name`='\"+name+\"', `area (1000 km^2)`=\"+area+\", `GDP per capita (1000 $)`=\"+GDP_pc+\n\t\t\t\t\t\", `population (million)`=\"+population+\", `capital`='\"+capital+\"', `GDP (billion $)`=\"+GDP+\n\t\t\t\t\t\" WHERE `id`=\"+id;\n\t\t}\n\t\tConnection conn = Connection_pooling.cpds.getConnection();\n\t\tStatement stmt = conn.createStatement();\n\t\t\n\t\t\n\t\tconn.setAutoCommit(false);\n\t\tstmt.executeUpdate(query);\n\t\tconn.commit();\n\t\tconn.setAutoCommit(true);\n\t\t\n\t\tstmt.close();\n\t\tconn.close();\n\t}",
"public int attributeSize()\r\n\t{\r\n\t\treturn this.attributes.size();\r\n\t}",
"public void setAttributes (List<GenericAttribute> attributes) {\n this.attributes = attributes;\n }",
"public UpdateAssetAttributesResponse process(UpdateAssetAttributesRequest request) {\n Registry wso2 = RSProviderUtil.getRegistry();\n List<CommonErrorData> errorDataList = new ArrayList<CommonErrorData>();\n UpdateAssetAttributesResponse response = new UpdateAssetAttributesResponse();\n\n try {\n AssetKey assetKey = request.getAssetKey();\n BasicAssetInfo basicInfo = populateMinBasicAssetInfo(assetKey);\n\n AssetFactory factory = new AssetFactory(basicInfo, wso2);\n Asset asset = factory.createAsset();\n\n if (!asset.exists()) {\n return createAssetNotFoundError(errorDataList, response);\n }\n\n asset.findAsset();\n if (!asset.isLocked()) {\n asset.lockAsset();\n asset.save();\n }\n\n // get the existing assetInfo\n AssetInfo assetInfo = getAssetInfo(asset);\n\n if (assetInfo == null) {\n return createAssetTypeException(errorDataList, response);\n }\n\n ExtendedAssetInfo extInfo = request.getExtendedAssetInfo();\n List<AttributeNameValue> attributes = extInfo.getAttribute();\n List<String> respattrs = response.getAttributeName();\n\n if (attributes.size() > 0) {\n if (request.isReplaceCurrent()) {\n replaceAllAttributes(asset, attributes, respattrs);\n } else {\n mergeAttributes(asset, attributes, respattrs);\n }\n asset.save();\n }\n\n // populate the response\n response.setVersion(assetInfo.getBasicAssetInfo().getVersion());\n return RSProviderUtil.setSuccessResponse(response);\n\n } catch (Exception ex) {\n return RSProviderUtil.handleException(ex, response,\n RepositoryServiceErrorDescriptor.SERVICE_PROVIDER_EXCEPTION);\n }\n\n }",
"@Test\n public void testPutDoesNotThrowWhenMaximumNumberOfAttributesIsAlreadyPresentIfPutIsToInactivate()\n throws Exception {\n optimisticPersister.initialise(1, mockLogger);\n\n // Configure attributes for database to return - the get is used for logging\n // only, so does not really matter.\n GetAttributesRequest simpleDBRequest = new GetAttributesRequest(testSimpleDBDomainName,\n testItemName);\n simpleDBRequest.setConsistentRead(true);\n GetAttributesResult getAttributesResult = new GetAttributesResult();\n getAttributesResult.setAttributes(allAttributes);\n mockery.checking(new Expectations() {\n {\n allowing(mockSimpleDBClient).getAttributes(with(equal(simpleDBRequest)));\n will(returnValue(getAttributesResult));\n }\n });\n\n // Don't care about further calls to SimpleDB.\n mockery.checking(new Expectations() {\n {\n ignoring(mockSimpleDBClient);\n }\n });\n\n // ACT\n // Use an 'inactivating' put i.e. value prefixed with 'Inactive'\n ReplaceableAttribute testAttribute = new ReplaceableAttribute();\n testAttribute.setName(\"Name\");\n testAttribute.setValue(\"InactiveValue\");\n // This should not throw even though we already have the max number of\n // attributes.\n optimisticPersister.put(testItemName, Optional.of(42), testAttribute);\n }",
"public int getRequestAttributeCount()\n {\n return requestAttributeCount;\n }",
"public void setAttributes(org.xml.sax.Attributes r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setAttributes(org.xml.sax.Attributes):void\");\n }",
"public java.lang.Integer getAttributes() {\r\n return attributes;\r\n }",
"public void setAttributes(FactAttributes param) {\r\n localAttributesTracker = true;\r\n\r\n this.localAttributes = param;\r\n\r\n\r\n }",
"@Generated\n @Selector(\"setAttributes:\")\n public native void setAttributes(@NUInt long value);",
"public void updateWeights() {\n\t\t\n\t}",
"public void priceUpdate(){\n \n double attractionPrices = 0;\n Attraction attraction;\n for(int i=0; i< getAttractionsList().size();i++)\n {\n attraction = (Attraction) getAttractionsList().get(i);\n attractionPrices += attraction.getPrice();\n }\n hotelPrice = diff(getEndDate(), getStartDate());\n price = getTravel().getPrice() + getHotel().getPrice()*(hotelPrice) \n + getTransport().getPrice()*getTravel().getDistance()\n + attractionPrices;\n }",
"@Override\n public AttributeList setAttributes(AttributeList attributes) {\n return null;\n }",
"@Override\n public void update(Instance instance, Attribute label) {\n for (Attribute att : instance.getAtts()) {\n AttStat attStat = attStats.get(att.getAttributeInfo());\n if (attStat != null)\n attStat.update(att, label);\n }\n numData += 1;\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}",
"@Override\n\t\tpublic Builder attributes(final Attributes attributes) {\n\t\t\tthis.map.put(ATTRIBUTES, attributes);\n\t\t\tthis.previous = ATTRIBUTES;\n\t\t\treturn builder();\n\t\t}",
"@Override\r\n\t\tpublic boolean hasAttributes()\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}",
"public AttributeList setAttributes(AttributeList attributes) {\n if (attributes == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"AttributeList attributes cannot be null\"),\n \"Cannot invoke a setter of \" + dClassName);\n }\n AttributeList resultList = new AttributeList();\n\n if (attributes.isEmpty())\n return resultList;\n\n for (Iterator i = attributes.iterator(); i.hasNext();) {\n Attribute attr = (Attribute) i.next();\n try {\n setAttribute(attr);\n String name = attr.getName();\n Object value = getAttribute(name); \n resultList.add(new Attribute(name,value));\n } catch(Exception e) {\n e.printStackTrace();\n }\n }\n return resultList;\n }",
"public Attributes getAttributes() { return this.attributes; }",
"public boolean setAttributes(Set<String> foundAttributes);",
"@Override\n\tpublic int update(Object model) {\n\t\treturn 0;\n\t}",
"public void setFileAttributes(Attributes fileAttributes)\r\n {\r\n aFileAttributes = fileAttributes;\r\n }",
"int updateByExample(@Param(\"record\") TbProductAttributes record, @Param(\"example\") TbProductAttributesExample example);",
"@Override\n public void removeAttributes()\n {\n attributes.clear();\n }",
"final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}",
"@Generated\n @Selector(\"attributes\")\n @NUInt\n public native long attributes();",
"@Override\n protected void onPrimaryKeyAttributeValue(String attributeName,\n AttributeValue keyAttributeValue) {\n getAttributeValueUpdates().put(attributeName,\n new AttributeValueUpdate().withValue(keyAttributeValue)\n .withAction(\"PUT\"));\n }",
"public void updateNonDynamicFields() {\n\n\t}",
"@Override\n\tpublic int update(Tags tag) {\n\t\treturn 0;\n\t}",
"@Override\n public void updateProperties() {\n // unneeded\n }",
"@Override\n public int getAttributeCount(String name)\n {\n return getAttributes(name).size();\n }",
"int updateByPrimaryKey(SmtOrderProductAttributes record);",
"@Override\r\n public void applyAttributes() {\r\n super.applyAttributes();\r\n getEntity().setColor(color);\r\n getEntity().setOwner(MbPets.getInstance().getServer().getPlayer(getOwner()));\r\n getEntity().setAgeLock(true);\r\n\r\n if (isBaby) {\r\n getEntity().setBaby();\r\n } else {\r\n getEntity().setAdult();\r\n }\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_ATTACK_WOLF);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_FOLLOW_CARAVAN);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.TRADER_LLAMA_DEFEND_WANDERING_TRADER);\r\n }",
"public void addLookupAttributes( Entry[] attrs ) throws RemoteException {\n\t\tlog.config(\"adding attributes: \"+attrs.length );\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdumpItems( \"read state\", log, data.attrs );\n\t\t\tmgr.addAttributes( attrs, true );\n\t\t\tEntry[] newa = mgr.getAttributes();\n\t\t\tdumpItems( \"after add\", log, newa );\n\t\tlog.fine(\"merging arrays\");\n\t\t\tVector v = mergeArrays( data.attrs, attrs );\n\t\t\tdata.attrs = new Entry[v.size()];\n\t\t\tv.copyInto( data.attrs );\n\t\t\tdumpItems( \"merged\", log, data.attrs );\n\t\t\tlog.fine(\"using \"+io+\" to write state(\"+data+\")\");\n\t\t\tio.writeState( data );\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tthrow new ServerException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tthrow new ServerException(ex.toString());\n\t\t}\n\t}",
"public void modify3DAttributes() {\n int groundColor = getGroundColor();\n HomeTexture groundTexture = getGroundPaint() == EnvironmentPaint.TEXTURED\n ? getGroundTextureController().getTexture()\n : null;\n int skyColor = getSkyColor();\n HomeTexture skyTexture = getSkyPaint() == EnvironmentPaint.TEXTURED\n ? getSkyTextureController().getTexture()\n : null;\n int lightColor = getLightColor();\n float wallsAlpha = getWallsAlpha();\n\n HomeEnvironment homeEnvironment = this.home.getEnvironment();\n int oldGroundColor = homeEnvironment.getGroundColor();\n HomeTexture oldGroundTexture = homeEnvironment.getGroundTexture();\n int oldSkyColor = homeEnvironment.getSkyColor();\n HomeTexture oldSkyTexture = homeEnvironment.getSkyTexture();\n int oldLightColor = homeEnvironment.getLightColor();\n float oldWallsAlpha = homeEnvironment.getWallsAlpha();\n \n // Apply modification\n doModify3DAttributes(home, groundColor, groundTexture, skyColor,\n skyTexture, lightColor, wallsAlpha); \n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new Home3DAttributesModificationUndoableEdit(\n this.home, this.preferences,\n oldGroundColor, oldGroundTexture, oldSkyColor,\n oldSkyTexture, oldLightColor, oldWallsAlpha,\n groundColor, groundTexture, skyColor, \n skyTexture, lightColor, wallsAlpha);\n this.undoSupport.postEdit(undoableEdit);\n }\n }",
"int updateByPrimaryKeySelective(SmtOrderProductAttributes record);",
"int updateByExampleSelective(@Param(\"record\") TbProductAttributes record, @Param(\"example\") TbProductAttributesExample example);",
"public int getLength()\n {\n return attributesList.size();\n }",
"public interface UpdateData {\n\n UpdateData UpdateAttributes(String data);\n}",
"@Override\n\tpublic Map changeAttributes(Map arg0) {\n\t\treturn defaultEdgle.changeAttributes(arg0);\n\t}",
"@Override\n public void onRPClassAddAttribute(RPClass rpclass,\n String name, Definition.Type type) {\n }",
"long countByExample(TbProductAttributesExample example);",
"void setAttributes(String path, Map<String, Object> newValue) throws IOException;",
"public int getAttributeCount() {\r\n return type.getAttributeCount();\r\n }",
"public void setAttributes(Map<String, String> attributes){\r\n\t\t\tif (attributes == null){\r\n\t\t\t\tthis.attributes = Collections.emptyMap();\r\n\t\t\t}\r\n\t\t\tthis.attributes = Collections.unmodifiableMap(attributes);\r\n\t\t}",
"@Override\n public void onRPClassAddAttribute(RPClass rpclass,\n String name, Definition.Type type, byte flags) {\n }"
] |
[
"0.67345625",
"0.67287135",
"0.67203826",
"0.6675688",
"0.6649428",
"0.66260904",
"0.65875435",
"0.65875435",
"0.64937294",
"0.64783716",
"0.64542973",
"0.64462125",
"0.63725144",
"0.63412833",
"0.6335944",
"0.62947905",
"0.6251617",
"0.62381285",
"0.6148869",
"0.61361986",
"0.6126594",
"0.61259127",
"0.6125001",
"0.6090994",
"0.6079093",
"0.6071622",
"0.60664403",
"0.60586673",
"0.60155064",
"0.59919184",
"0.59918094",
"0.5988801",
"0.59816325",
"0.5970577",
"0.59632164",
"0.59608835",
"0.5955705",
"0.59495974",
"0.59244",
"0.5907497",
"0.5895845",
"0.5852423",
"0.5845554",
"0.5842862",
"0.58375627",
"0.58159333",
"0.5811646",
"0.5800404",
"0.5799855",
"0.5795903",
"0.578487",
"0.57717407",
"0.5754698",
"0.5746857",
"0.57423735",
"0.5723831",
"0.56982374",
"0.5696845",
"0.5687578",
"0.56742173",
"0.5659726",
"0.56560266",
"0.5655605",
"0.5651187",
"0.56505936",
"0.56402606",
"0.56355906",
"0.5613635",
"0.5613635",
"0.5613635",
"0.5608541",
"0.56041205",
"0.5601695",
"0.5590856",
"0.55862814",
"0.5585456",
"0.55835515",
"0.55598015",
"0.555919",
"0.5553387",
"0.5544919",
"0.5544422",
"0.5540092",
"0.5525009",
"0.5524363",
"0.5522194",
"0.5518416",
"0.55157316",
"0.55076844",
"0.5506527",
"0.5498921",
"0.5495164",
"0.5490414",
"0.548929",
"0.54817754",
"0.5480686",
"0.5478359",
"0.5475494",
"0.5468916",
"0.54675287",
"0.54670274"
] |
0.0
|
-1
|
Method updateAttributes definition ends here.. Method getSchema definition
|
public void getSchema( final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
invokeStaticMethod("getSchema", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void addCreateUpdateAttributes(Context _context) throws EFapsException {\r\n Iterator iter = getType().getAttributes().entrySet().iterator();\r\n while (iter.hasNext()) {\r\n Map.Entry entry = (Map.Entry)iter.next();\r\n Attribute attr = (Attribute)entry.getValue();\r\n AttributeType attrType = attr.getAttributeType();\r\n if (attrType.isCreateUpdate()) {\r\n add(_context, attr, null);\r\n }\r\n }\r\n }",
"private Attributes adjustForeignAttributes(Attributes attributes) {\n return attributes;\n }",
"protected abstract void createAttributes();",
"public void collectAllAttribtueDefinitions() {\r\n dataModel.getAttributeDefinitions().clear();\r\n\r\n // Primary keys\r\n dataModel.getAttributeDefinitions().add(new AttributeDefinition().withAttributeName(dataModel.getHashKeyName()).withAttributeType(dataModel.getHashKeyType()));\r\n if (dataModel.getEnableRangeKey()) {\r\n dataModel.getAttributeDefinitions().add(new AttributeDefinition().withAttributeName(dataModel.getRangeKeyName()).withAttributeType(dataModel.getRangeKeyType()));\r\n }\r\n\r\n // Index keys defined in the second page\r\n dataModel.getAttributeDefinitions().addAll(secondPage.getAllIndexKeyAttributeDefinitions());\r\n }",
"protected abstract boolean populateAttributes();",
"@Override\n protected void update(ScanningContext context) {\n validateAttributes(context);\n }",
"protected static void computeInsertionAllAttributes(IPluginParent pElement, ISchemaElement sElement) {\n ISchemaComplexType type = (ISchemaComplexType) sElement.getType();\n // Get the underlying project\n IResource resource = pElement.getModel().getUnderlyingResource();\n IProject project = null;\n if (resource != null)\n project = resource.getProject();\n // Get all the attributes\n ISchemaAttribute[] attributes = type.getAttributes();\n // Generate a unique number for IDs\n int counter = XMLUtil.getCounterValue(sElement);\n // Process all attributes\n for (int i = 0; i < type.getAttributeCount(); i++) {\n ISchemaAttribute attribute = attributes[i];\n // auto-generation.\n try {\n if (attribute.getUse() == ISchemaAttribute.REQUIRED) {\n String value = generateAttributeValue(project, counter, attribute);\n // Update Model\n setAttribute(pElement, attribute.getName(), value, counter);\n } else if (attribute.getUse() == ISchemaAttribute.DEFAULT) {\n Object value = attribute.getValue();\n if (value instanceof String) {\n if (attribute.getKind() != IMetaAttribute.JAVA) {\n // if type == boolean, make sure the default value is valid\n if (//$NON-NLS-1$\n attribute.getType().getName().equals(//$NON-NLS-1$\n \"boolean\") && !(//$NON-NLS-1$\n ((String) value).equalsIgnoreCase(//$NON-NLS-1$\n \"true\") || //$NON-NLS-1$\n ((String) value).equalsIgnoreCase(//$NON-NLS-1$\n \"false\")))\n continue;\n setAttribute(pElement, attribute.getName(), (String) value, counter);\n }\n }\n }\n // Ignore optional attributes\n } catch (CoreException e) {\n PDEPlugin.logException(e);\n }\n }\n }",
"public void saveSchemaAttributes(String userId,\n String schemaTypeGUID,\n List<SchemaAttribute> schemaAttributes,\n String methodName) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException\n {\n if (schemaAttributes != null)\n {\n for (SchemaAttribute schemaAttribute : schemaAttributes)\n {\n if (schemaAttribute != null)\n {\n saveSchemaTypeAttribute(userId, schemaTypeGUID, schemaAttribute, methodName);\n }\n }\n }\n }",
"protected void _updateLocalAttributesFromG2(Structure atts)\n {\n }",
"protected void _updateG2AttributesFromLocal(Structure atts)\n {\n }",
"protected void preUpdateSchema(CiDb db) throws OrmException, SQLException {\n }",
"public GetAttributesDefinitionV2() {}",
"public void setldschema(String ldap_schema_url) throws Exception{\t\t\r\n\t\tjava.io.InputStream ldschemaxml = null;\t\t\r\n\t\ttry {\r\n\t\t\tldschemaxmlurl = new java.net.URL(ldap_schema_url);\t\t \r\n\t\t\tldschemaxml = ldschemaxmlurl.openStream();\t\t\t\r\n\t\t\tjavax.xml.parsers.DocumentBuilderFactory ldschemaDomFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance();\r\n\t\t\tjavax.xml.parsers.DocumentBuilder ldschemaDB = ldschemaDomFactory.newDocumentBuilder();\r\n\t\t\torg.w3c.dom.Document ldschemaDom = ldschemaDB.parse(ldschemaxml);\r\n\t\t\torg.w3c.dom.Element ldschemaRootElement = ldschemaDom.getDocumentElement();\r\n\t\t\torg.w3c.dom.NodeList ldschemaNodeList = ldschemaRootElement.getChildNodes();\r\n\t\t\torg.w3c.dom.NodeList ldschemaChildNodeList;\r\n\t\t\torg.w3c.dom.Node templdschemaNode;\r\n\t\t\t// Get the number of the schema\r\n\t\t\tint schemaCount = 0;\t\t\t\r\n\t\t\tfor (int i=0; i<ldschemaNodeList.getLength(); i++) {\r\n\t\t\t templdschemaNode = ldschemaNodeList.item(i);\r\n\t\t\t if (templdschemaNode.getNodeName().startsWith(Constant.attNameElement)) schemaCount +=1;\r\n\t\t\t}\r\n\t\t\t//Dimension Attribute and Attribute Type Array \t\r\n\t\t\tconAttName = new String[schemaCount];\r\n\t\t\tconAttType = new String[schemaCount];\r\n\t\t\t//Input Attribute and Attribute Type Array Value\r\n\t\t\tint tempSchemaCount = 0;\r\n\t\t\tlogger.debug(\"[Central LDAP schema Loading \"+schemaCount+\" attributes Start]\");\r\n\t\t\tfor (int i=0; i<ldschemaNodeList.getLength(); i++) {\r\n\t\t\t\t templdschemaNode = ldschemaNodeList.item(i);\t\t \t\t \t \r\n\t\t\t\t if (templdschemaNode.getNodeName().startsWith(Constant.attNameElement)) {\r\n\t\t\t\t\tconAttName[tempSchemaCount] = (templdschemaNode.getFirstChild().getNodeValue()).toUpperCase();\t\t\t\t \r\n\t\t\t\t\tconAttType[tempSchemaCount] = ((org.w3c.dom.Element)templdschemaNode).getAttribute(\"vtype\");\r\n\t\t\t\t\t//Print Attribute and Attribute Type Array Information\r\n\t\t\t\t\tlogger.debug(\"[Central LDAP schema Name]\"+conAttName[tempSchemaCount]+\" [Type] \"+conAttType[tempSchemaCount]);\r\n\t\t\t\t\ttempSchemaCount +=1;\t\t\t\t \r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"[Central LDAP schema Loading End][\"+tempSchemaCount+\" Elements Added\");\r\n\t\t}catch(MalformedURLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(\"[Central LDAP schema Loading]\"+e.getMessage(), e);\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t}catch(org.xml.sax.SAXParseException spe){\r\n\t\t\tlogger.error(\"\\n[Central LDAP schema Loading]** Parsing error, line \" + spe.getLineNumber() + \", uri \" + spe.getSystemId());\r\n\t\t\tlogger.error(\" \" + spe.getMessage());\r\n\t\t\tthrow new Exception(spe.getMessage());\t\t\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlogger.error(\"[Central LDAP schema Loading]\"+ex.getMessage(), ex);\r\n\t\t\tthrow new Exception(ex.getMessage());\r\n\t\t}finally{\r\n\t\t\tif ( ldschemaxml != null ) ldschemaxml.close();\r\n\t\t}\t\t\r\n\t}",
"public void setlldschema(String lldap_schema_url) throws Exception{\t\t\r\n\t\tjava.io.InputStream lldschemaxml = null;\t\t\r\n\t\ttry {\t\t\t\r\n\t\t\tUtil.validateSchemaLocalLDAP(); // Validate the local ldap schema\t\t\t\r\n\t\t\tlldschemaxmlurl = new java.net.URL(lldap_schema_url);\t\t \r\n\t\t lldschemaxml = lldschemaxmlurl.openStream();\t\t\r\n\t\t\tjavax.xml.parsers.DocumentBuilderFactory lldschemaDomFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance();\r\n\t\t\tjavax.xml.parsers.DocumentBuilder lldschemaDB = lldschemaDomFactory.newDocumentBuilder();\r\n\t\t\torg.w3c.dom.Document lldschemaDom = lldschemaDB.parse(lldschemaxml);\r\n\t\t\torg.w3c.dom.Element lldschemaRootElement = lldschemaDom.getDocumentElement();\r\n\t\t\torg.w3c.dom.NodeList lldschemaNodeList = lldschemaRootElement.getChildNodes();\r\n\t\t \torg.w3c.dom.NodeList lldschemaChildNodeList;\r\n\t\t\torg.w3c.dom.Node templldschemaNode;\r\n\t\t\t// Get the number of the schema\r\n\t\t\tint schemaCount = 0;\t\t\r\n\t\t\tfor (int i=0; i<lldschemaNodeList.getLength(); i++) {\r\n\t\t templldschemaNode = lldschemaNodeList.item(i);\r\n\t\t\t if (templldschemaNode.getNodeName().startsWith(Constant.attNameElement)) schemaCount +=1;\r\n\t\t\t}\r\n\t\t\t// Dimension new Attribute and Attribute Type Array \t\r\n\t\t \tString[] tmp_conAttName = new String[conAttName.length + schemaCount];\r\n\t\t \tString[] tmp_conAttType = new String[conAttType.length + schemaCount];\r\n\t\t \t// Reload old Attribute and Attribute Type to Temp Array \r\n\t\t \tfor (int i=0; i<conAttName.length; i++){\r\n\t\t \t\ttmp_conAttName[i] = conAttName[i];\r\n\t\t \t\ttmp_conAttType[i] = conAttType[i];\r\n\t\t \t}\r\n\t\t\t//Input Attribute and Attribute Type Array Value\r\n\t\t\tint tempSchemaCount = conAttName.length;\r\n\t\t\tlogger.debug(\"[Local LDAP schema Loading Start]\");\r\n\t\t for (int i=0; i<lldschemaNodeList.getLength(); i++) {\r\n\t\t \ttemplldschemaNode = lldschemaNodeList.item(i);\r\n\t\t if (templldschemaNode.getNodeName().startsWith(Constant.attNameElement)) {\t\t \t\r\n\t\t \tif ( templldschemaNode.getFirstChild() == null ) throw new Exception(\"xml element called attibute_name not allow empty string\");\r\n\t\t tmp_conAttName[tempSchemaCount] = templldschemaNode.getFirstChild().getNodeValue();\r\n\t\t\t\t tmp_conAttType[tempSchemaCount] = ((org.w3c.dom.Element)templldschemaNode).getAttribute(\"vtype\");\t\t\t\t \r\n\t\t\t\t\tlogger.debug(\"[Local LDAP schema Name] \"+tmp_conAttName[tempSchemaCount]+\" [Type] \"+tmp_conAttType[tempSchemaCount]);\r\n\t\t\t\t tempSchemaCount +=1;\t\t\t\t \r\n\t\t \t\t }\r\n\t\t\t}\r\n\t\t\tif (tempSchemaCount == conAttName.length) {\r\n\t\t\t\tlogger.debug(\"No Local LDAP Schema Attribute Added !\");\r\n\t\t\t} else {\r\n\t\t\t// Reload Attribute and Attribute Type to Array \r\n\t\t\t\tconAttName = new String[tempSchemaCount];\r\n\t\t\t\tconAttType = new String[tempSchemaCount];\r\n\t\t\t\tfor (int i=0; i<conAttName.length; i++){\r\n\t\t\t\t\tconAttName[i] = tmp_conAttName[i];\r\n\t\t\t\t\tconAttType[i] = tmp_conAttType[i];\r\n\t\t\t\t}\t\t\t\t \r\n\t\t\t}\r\n\t\t\tlogger.debug(\"[Local LDAP schema Loading End][Total \"+tempSchemaCount+\" Attriutes in Array]\");\r\n\t\t} catch(MalformedURLException e){\r\n\t\t\te.printStackTrace();\t\t\t\r\n\t\t\tlogger.error(\"[Local LDAP schema Loading]\"+e.getMessage(), e);\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t} catch(org.xml.sax.SAXParseException spe){\r\n\t\t\tlogger.error(\"\\n[Local LDAP schema Loading]** Parsing error, line \" + spe.getLineNumber() + \", uri \" + spe.getSystemId());\r\n\t\t\tlogger.error(\" \" + spe.getMessage());\r\n\t\t\tthrow new Exception(spe.getMessage());\t\t\t\t\r\n\t\t} catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlogger.error(\"[Local LDAP schema Loading]\"+ex.getMessage(), ex);\r\n\t\t\tthrow new Exception(ex.getMessage());\r\n\t\t} finally {\r\n\t\t\tif ( lldschemaxml != null ) lldschemaxml.close();\r\n\t\t}\r\n\t}",
"public void updateTapSchema(SchemaConfig newSchema, boolean createOnly) throws ConfigurationException;",
"protected abstract void bindAttributes();",
"static void schemaUpdated(Configuration conf) {\n conf.setInt(SCHEMA_UPDATE_PROP, getCurrentIteration(conf));\n }",
"public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }",
"@Override\npublic void processAttributes() {\n\t\n}",
"private String addSchemaAttribute(String userId,\n SchemaAttribute schemaAttribute) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException\n {\n final String methodName = \"addSchemaAttribute\";\n\n SchemaAttributeBuilder schemaAttributeBuilder = this.getSchemaAttributeBuilder(schemaAttribute);\n\n /*\n * Work out if this is a local cohort schema attribute or external?\n */\n ElementType type = schemaAttribute.getType();\n String schemaAttributeGUID;\n\n if (isLocalCohortInstance(type))\n {\n schemaAttributeGUID = repositoryHandler.createEntity(userId,\n this.getSchemaAttributeTypeGUID(schemaAttribute),\n this.getSchemaAttributeTypeName(schemaAttribute),\n schemaAttributeBuilder.getInstanceProperties(methodName),\n methodName);\n }\n else\n {\n schemaAttributeGUID = repositoryHandler.createExternalEntity(userId,\n this.getSchemaAttributeTypeGUID(schemaAttribute),\n this.getSchemaAttributeTypeName(schemaAttribute),\n type.getElementHomeMetadataCollectionId(),\n type.getElementHomeMetadataCollectionName(),\n schemaAttributeBuilder.getInstanceProperties(methodName),\n methodName);\n }\n\n SchemaType schemaType = schemaAttribute.getAttributeType();\n\n if (schemaType != null)\n {\n if ((schemaType.getExtendedProperties() == null) &&\n ((schemaType instanceof ComplexSchemaType) ||\n (schemaType instanceof LiteralSchemaType) ||\n (schemaType instanceof SimpleSchemaType)))\n {\n /*\n * The schema type can be represented as a classification on the schema attribute.\n */\n SchemaTypeBuilder schemaTypeBuilder = this.getSchemaTypeBuilder(schemaType);\n\n repositoryHandler.classifyEntity(userId,\n schemaAttributeGUID,\n SchemaElementMapper.TYPE_EMBEDDED_ATTRIBUTE_CLASSIFICATION_TYPE_GUID,\n SchemaElementMapper.TYPE_EMBEDDED_ATTRIBUTE_CLASSIFICATION_TYPE_NAME,\n schemaTypeBuilder.getInstanceProperties(methodName),\n methodName);\n }\n else\n {\n String schemaTypeGUID = addSchemaType(userId, schemaType);\n if (schemaTypeGUID != null)\n {\n if (isLocalCohortInstance(type))\n {\n repositoryHandler.createRelationship(userId,\n SchemaElementMapper.ATTRIBUTE_TO_TYPE_RELATIONSHIP_TYPE_GUID,\n schemaAttributeGUID,\n schemaTypeGUID,\n null,\n methodName);\n }\n else\n {\n repositoryHandler.createExternalRelationship(userId,\n SchemaElementMapper.ATTRIBUTE_TO_TYPE_RELATIONSHIP_TYPE_GUID,\n type.getElementHomeMetadataCollectionId(),\n type.getElementHomeMetadataCollectionName(),\n schemaAttributeGUID,\n schemaTypeGUID,\n null,\n methodName);\n }\n }\n }\n }\n else if (schemaAttribute.getExternalAttributeType() != null)\n {\n final String guidParameterName = \"schemaAttribute.getExternalAttributeType().getLinkedSchemaTypeGUID()\";\n SchemaLink schemaLink = schemaAttribute.getExternalAttributeType();\n\n SchemaType linkedType = this.getSchemaType(userId,\n schemaLink.getLinkedSchemaTypeGUID(),\n guidParameterName,\n methodName);\n\n if (linkedType != null)\n {\n SchemaLinkBuilder builder = new SchemaLinkBuilder(schemaLink.getQualifiedName(),\n schemaLink.getDisplayName(),\n repositoryHelper,\n serviceName,\n serverName);\n\n String schemaLinkGUID = repositoryHandler.createEntity(userId,\n SchemaElementMapper.SCHEMA_LINK_TYPE_GUID,\n SchemaElementMapper.SCHEMA_LINK_TYPE_NAME,\n builder.getInstanceProperties(methodName),\n methodName);\n\n if (schemaLinkGUID != null)\n {\n repositoryHandler.createRelationship(userId,\n SchemaElementMapper.ATTRIBUTE_TO_TYPE_RELATIONSHIP_TYPE_GUID,\n schemaLinkGUID,\n schemaType.getGUID(),\n null,\n methodName);\n }\n }\n }\n\n return schemaAttributeGUID;\n }",
"List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}",
"private void preProcessDataModel() {\r\n collectAllAttribtueDefinitions();\r\n\r\n for (AttributeDefinition attribute : dataModel.getAttributeDefinitions()) {\r\n attribute.setAttributeType(UINameToValueMap.get(attribute.getAttributeType()));\r\n }\r\n\r\n if (null != dataModel.getLocalSecondaryIndexes()) {\r\n for (LocalSecondaryIndex index : dataModel.getLocalSecondaryIndexes()) {\r\n index.getProjection().setProjectionType(UINameToValueMap.get(index.getProjection().getProjectionType()));\r\n }\r\n }\r\n\r\n if (null != dataModel.getGlobalSecondaryIndexes()) {\r\n for (GlobalSecondaryIndex index : dataModel.getGlobalSecondaryIndexes()) {\r\n index.getProjection().setProjectionType(UINameToValueMap.get(index.getProjection().getProjectionType()));\r\n }\r\n }\r\n }",
"@Test\n public void testPasswordAgingAttributesWithUpdate() {\n if (getConnection().isNis()) {\n log.info(\"skipping test 'testPasswordAgingAttributesWithUpdate' for NIS configuration, as it is not supported there.\");\n return;\n }\n\n String username = getUsername();\n Set<Attribute> passwordAgingAttrs =\n CollectionUtil.newSet(AttributeBuilder.build(AccountAttribute.MIN.getName(), 2),\n AttributeBuilder.build(AccountAttribute.MAX.getName(), 5), AttributeBuilder\n .build(AccountAttribute.WARN.getName(), 4));\n getFacade().update(ObjectClass.ACCOUNT, new Uid(username), passwordAgingAttrs, null);\n\n ToListResultsHandler handler = new ToListResultsHandler();\n getFacade().search(\n ObjectClass.ACCOUNT,\n FilterBuilder.equalTo(AttributeBuilder.build(Name.NAME, username)),\n handler,\n new OperationOptionsBuilder().setAttributesToGet(\n CollectionUtil.newSet(AccountAttribute.MAX.getName(), AccountAttribute.MIN\n .getName(), AccountAttribute.WARN.getName())).build());\n\n assertTrue(handler.getObjects().size() >= 1);\n ConnectorObject result = handler.getObjects().get(0);\n assertTrue(controlAttributeValue(2, AccountAttribute.MIN, result));\n assertTrue(controlAttributeValue(5, AccountAttribute.MAX, result));\n assertTrue(controlAttributeValue(4, AccountAttribute.WARN, result));\n }",
"public static AttributeType update( AttributeType documentAttributeType )\n {\n _dao.store( documentAttributeType );\n\n return documentAttributeType;\n }",
"int updateByPrimaryKey(TbProductAttributes record);",
"final private void setupAttributes() {\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DPI, DEFAULT_BASE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_DENSITY, DEFAULT_BASE_DENSITY));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BASE_SCREEN, DEFAULT_BASE_SCREEN));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_FROM, DEFAULT_PROPORTION_FROM));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_PROPORTION_MODE, DEFAULT_PROPORTION_MODES));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_BACKGROUND_COLOR, DEFAULT_BACKGROUND_COLOR));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_CALIBRATE_DPI, DEFAULT_CALIBRATE_DPI));\r\n\t\tmAttributes.add(new com.org.multigear.mginterface.engine.Configuration.Attr(ATTR_RESTORER_NOTIFICATION, new Object()));\r\n\t}",
"@Test\n public void testCopyAttributesTable() throws SQLException {\n AlterTableUtils.testCopyAttributesTable(activity, geoPackage);\n }",
"@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }",
"private static void atualizarBD(){\n SchemaUpdate se = new SchemaUpdate(hibernateConfig);\n se.execute(true, true);\n }",
"private Map<String, AttributeInfo> getUserSchemaMap() {\n if (userSchemaMap == null) {\n schema();\n }\n return userSchemaMap;\n }",
"private void createSchemaInfo() {\n\t\tfor (String tableName : tableSchemas.keySet()) {\n\t\t\tERWinSchemaInfo schemaInfo = new ERWinSchemaInfo();\n\t\t\tschemaInfo.setType(\"user\");\n\t\t\tschemaInfo.setUniqueName(tableName);\n\t\t\tschemaInfos.put(tableName, schemaInfo);\n\t\t}\n\n\t\tinitCache();\n\t\tparseKeyGroupGroups();\n\n\t\tparseEntityProps();\n\t\tparseRelationGroups();\n\t\tparseAttributes();\n\n\t\tcreateSchemaDDL();\n\t}",
"public List<SchemaAttribute> getSchemaAttributes(String userId,\n String schemaTypeGUID,\n int elementStart,\n int maxElements,\n String methodName) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException\n {\n final String guidParameterName = \"schemaTypeGUID\";\n\n invalidParameterHandler.validateUserId(userId, methodName);\n invalidParameterHandler.validateGUID(schemaTypeGUID, guidParameterName, methodName);\n\n List<EntityDetail> entities = repositoryHandler.getEntitiesForRelationshipType(userId,\n schemaTypeGUID,\n SchemaElementMapper.SCHEMA_TYPE_TYPE_NAME,\n SchemaElementMapper.TYPE_TO_ATTRIBUTE_RELATIONSHIP_TYPE_GUID,\n SchemaElementMapper.TYPE_TO_ATTRIBUTE_RELATIONSHIP_TYPE_NAME,\n elementStart,\n maxElements,\n methodName);\n\n List<SchemaAttribute> results = new ArrayList<>();\n\n if (entities != null)\n {\n for (EntityDetail schemaAttributeEntity : entities)\n {\n if (schemaAttributeEntity != null)\n {\n EntityDetail attributeTypeEntity = repositoryHandler.getEntityForRelationshipType(userId,\n schemaAttributeEntity.getGUID(),\n SchemaElementMapper.SCHEMA_ATTRIBUTE_TYPE_NAME,\n SchemaElementMapper.ATTRIBUTE_TO_TYPE_RELATIONSHIP_TYPE_GUID,\n SchemaElementMapper.ATTRIBUTE_TO_TYPE_RELATIONSHIP_TYPE_NAME,\n methodName);\n SchemaType attributeType = null;\n if (attributeTypeEntity != null)\n {\n attributeType = this.getSchemaTypeForAttribute(userId, attributeTypeEntity, methodName);\n }\n\n SchemaAttributeConverter converter = new SchemaAttributeConverter(schemaAttributeEntity,\n attributeType,\n null, // TODO\n null, // TODO\n repositoryHelper,\n serviceName);\n results.add(converter.getBean());\n }\n }\n }\n\n if (results.isEmpty())\n {\n return null;\n }\n else\n {\n return results;\n }\n }",
"public void updateSchemaVersion() {\n // The schema version should never regress, so make sure we don't change\n // anything if this code is older than what's currently in the database\n if (latestCodeVersion > getVersionForSchema()) {\n updateSchemaVersionId(this.latestCodeVersion);\n }\n }",
"@Override\n protected void allocateAttributes() {\n super.allocateAttributes();\n\n owner = new ByteArrayAttribute(Attribute.OWNER);\n acIssuer = new ByteArrayAttribute(Attribute.AC_ISSUER);\n serialNumber = new ByteArrayAttribute(Attribute.SERIAL_NUMBER);\n attrTypes = new ByteArrayAttribute(Attribute.ATTR_TYPES);\n value = new ByteArrayAttribute(Attribute.VALUE);\n\n putAttributesInTable(owner, acIssuer, serialNumber, attrTypes, value);\n }",
"public void migrateOldAttrAVMLocks(RowHandler rowHandler)\n {\n getOldAttrAVMLocksImpl(rowHandler);\n }",
"public void updateAttributes(Map<String, String> attributes, String accessToken) {\n\t AnonymousAWSCredentials awsCreds = new AnonymousAWSCredentials();\n AWSCognitoIdentityProvider cognitoIdentityProvider = AWSCognitoIdentityProviderClientBuilder\n .standard()\n .withCredentials(new AWSStaticCredentialsProvider(awsCreds))\n .withRegion(Regions.fromName(jwtConfiguration.getREGION()))\n .build();\n UpdateUserAttributesRequest updateAttrRequest = new UpdateUserAttributesRequest();\n updateAttrRequest.setAccessToken(accessToken);\n Set<String> keys = attributes.keySet();\n List<AttributeType> attributeTypeList = new ArrayList<AttributeType>();\n for(String key : keys) {\n \tattributeTypeList.add(createAttributeType(key, attributes.get(key)));\t \t\n }\n updateAttrRequest.setUserAttributes(attributeTypeList);\n cognitoIdentityProvider.updateUserAttributes(updateAttrRequest);\n\t }",
"void syncSchema(org.kaleta.entity.xml.Schema data);",
"public Vector getAttributes(boolean create) {\n\treturn attributeFields;\n }",
"int updateByPrimaryKey(AttributeExtend record);",
"protected void executeSchemaOperations() {\n }",
"public static void save_attributes(String table_name, int id, Text[] attrs) throws SQLException{\n\t\t\n\t\tString name=StringEscapeUtils.escapeSql(attrs[0].getText());\n\t\tint rating;\n\t\ttry{\n\t\t\trating=Integer.parseInt(StringEscapeUtils.escapeSql(attrs[1].getText()));\n\t\t}catch (Exception e){\n\t\t\trating=0;\n\t\t}\n\t\tint year;\n\t\ttry{\n\t\t\tyear=Integer.parseInt(StringEscapeUtils.escapeSql(attrs[2].getText()));\n\t\t}catch (Exception e){\n\t\t\tyear=0;\n\t\t}\n\t\tString query=\"\";\n\t\t\n\t\tif(table_name.compareTo(\"Actors\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_cinema_actors \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", year_born=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Movies\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_cinema_movies \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", year_made=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Categories\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_cinema_tags \"+\n\t\t\t\t\t\" SET name='\"+name+\n\t\t\t\t\t\"' WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Artists\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_music_artists \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", birth_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Creations\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_music_creations \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", year_made=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Locations\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_places_locations \"+\n\t\t\t\t\t\" SET name='\"+name+\"', num_links=\"+rating+\", population=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"NBA players\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_nba_players \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_player=\"+rating+\", birth_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"NBA teams\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_nba_teams \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_team=\"+rating+\", creation_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Israeli soccer players\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_israeli_soccer_players \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_player=\"+rating+\", birth_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Israeli soccer teams\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_israeli_soccer_teams \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_team=\"+rating+\", creation_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"World soccer players\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_world_soccer_players \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_player=\"+rating+\", birth_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"World soccer teams\")==0){\n\t\t\tquery = \" UPDATE IGNORE curr_world_soccer_teams \"+\n\t\t\t\t\t\" SET name='\"+name+\"', links_to_team=\"+rating+\", creation_year=\"+year+\n\t\t\t\t\t\" WHERE id=\"+id;\n\t\t}\n\t\tif(table_name.compareTo(\"Countries\")==0){\n\t\t\tdouble area;\n\t\t\ttry{\n\t\t\t\tarea = Double.parseDouble(StringEscapeUtils.escapeSql(attrs[1].getText()));\n\t\t\t}catch(Exception e){\n\t\t\t\tarea=0.0;\n\t\t\t}\n\t\t\tdouble GDP_pc;\n\t\t\ttry{\n\t\t\t\tGDP_pc = Double.parseDouble(StringEscapeUtils.escapeSql(attrs[2].getText()));\n\t\t\t}catch(Exception e){\n\t\t\t\tGDP_pc=0.0;\n\t\t\t}\n\t\t\tdouble population;\n\t\t\ttry{\n\t\t\t\tpopulation = Double.parseDouble(StringEscapeUtils.escapeSql(attrs[3].getText()));\n\t\t\t}catch(Exception e){\n\t\t\t\tpopulation=0.0;\n\t\t\t}\n\t\t\tString capital = StringEscapeUtils.escapeSql(attrs[4].getText());\n\t\t\tdouble GDP;\n\t\t\ttry{\n\t\t\t\tGDP = Double.parseDouble(StringEscapeUtils.escapeSql(attrs[5].getText()));\n\t\t\t}catch(Exception e){\n\t\t\t\tGDP=0.0;\n\t\t\t}\n\t\t\tquery = \" UPDATE IGNORE curr_places_countries \"+\n\t\t\t\t\t\" SET `name`='\"+name+\"', `area (1000 km^2)`=\"+area+\", `GDP per capita (1000 $)`=\"+GDP_pc+\n\t\t\t\t\t\", `population (million)`=\"+population+\", `capital`='\"+capital+\"', `GDP (billion $)`=\"+GDP+\n\t\t\t\t\t\" WHERE `id`=\"+id;\n\t\t}\n\t\tConnection conn = Connection_pooling.cpds.getConnection();\n\t\tStatement stmt = conn.createStatement();\n\t\t\n\t\t\n\t\tconn.setAutoCommit(false);\n\t\tstmt.executeUpdate(query);\n\t\tconn.commit();\n\t\tconn.setAutoCommit(true);\n\t\t\n\t\tstmt.close();\n\t\tconn.close();\n\t}",
"public void setAttributes(TableAttributes attrs) {\n\tthis.attrs = attrs;\n }",
"public TableAttributes getAttributes() {\n\treturn attrs;\n }",
"@Override\n\tpublic int numberOfAttributes() {\n\t\treturn 2 + numberOfCustomFields();\n\t}",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"Attributes getAttributes();",
"void addAttribute(AttributeDefinition ad) throws ResultException, DmcValueException {\n \t\n \tattributeDefinitions.add(ad);\n \t\n if (checkAndAddDOT(ad.getDotName(),ad,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(ad.getObjectName(),ad,globallyUniqueMAP,\"definition names\"));\n \tthrow(ex);\n }\n \n if (ad.getDmdID() == null){\n \tResultException ex = new ResultException(\"Missing dmdID for attribute: \" + ad.getName());\n \tthrow(ex);\n }\n \n if (ad.getDefinedIn() == null){\n \tResultException ex = new ResultException(\"definedIn missing for attribute: \" + ad.getName());\n \tthrow(ex);\n }\n else{\n \tif (performIDChecks){\n\t \tif ( (ad.getDefinedIn().getSchemaBaseID() == null) ||\n\t \t\t (ad.getDefinedIn().getSchemaIDRange() == null) ){\n\t \tResultException ex = new ResultException(\"schemaBaseID or schemaIDRange missing for schema: \" + ad.getDefinedIn().getName());\n\t \tthrow(ex);\n\t \t}\n \t}\n \t\n }\n \n if (performIDChecks){\n\t // Bump up the DMD ID by the amount of schemaBaseID\n\t int base = ad.getDefinedIn().getSchemaBaseID();\n\t int range = ad.getDefinedIn().getSchemaIDRange();\n\t int current = ad.getDmdID();\n\t \n\t if (current >= range){\n\t \tResultException ex = new ResultException(\"Number of attributes exceeds schema ID range: \" + ad.getName());\n\t \tthrow(ex); \t\n\t }\n\t \n\t ad.setDmdID(base + current);\n }\n \n \tif (attrByID.get(ad.getDmdID()) != null){\n \tResultException ex = new ResultException();\n \tex.addError(clashingIDsMsg(ad.getDmdID(),ad,attrByID,\"dmdID\"));\n \tthrow(ex);\n }\n attrByID.put(ad.getDmdID(), ad);\n \n if (ad.getAbbrev() != null){\n // We have an abbreviation - so it must also be unique and\n // added to the appropriate maps\n \tDefinitionName abbrevName = new DefinitionName(ad.getAbbrev());\n \t\n DotName dotAbbrevName = new DotName(ad.getDefinedIn().getName() + \".\" + ad.getAbbrev());\n if (checkAndAddDOT(dotAbbrevName,ad,globallyUniqueMAP,null) == false){\n \tDefinitionName errName = new DefinitionName(ad.getDefinedIn().getName() + \".\" + ad.getAbbrev());\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(errName,ad,globallyUniqueMAP,\"definition names\"));\n \tthrow(ex);\n }\n\n attrAbbrevs.put(abbrevName,ad);\n }\n \n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addAttribute(ad);\n \t}\n }\n \n }",
"public void setAttributes(Attributes attributes) {\n this.attributes = attributes;\n }",
"public Collection<HbAttributeInternal> attributes();",
"public String updateSchemaAttribute(String userId,\n String existingSchemaAttributeGUID,\n SchemaAttribute schemaAttribute) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException\n {\n final String methodName = \"updateSchemaAttribute\";\n\n SchemaAttributeBuilder builder = this.getSchemaAttributeBuilder(schemaAttribute);\n\n repositoryHandler.updateEntity(userId,\n existingSchemaAttributeGUID,\n this.getSchemaAttributeTypeGUID(schemaAttribute),\n this.getSchemaAttributeTypeName(schemaAttribute),\n builder.getInstanceProperties(methodName),\n methodName);\n\n return existingSchemaAttributeGUID;\n }",
"public void changeAttrName() {\r\n }",
"@Override\npublic void setAttributes() {\n\t\n}",
"@Override\n\tpublic void buildSchema() {\n\t\tchild.buildSchema();\n\t\tschema = child.schema;\n\t}",
"@Test(enabled = false)\n public void testPutAttributes() throws SecurityException, NoSuchMethodException, IOException {\n Method method = SimpleDBAsyncClient.class.getMethod(\"putAttributes\", String.class, String.class, Map.class);\n HttpRequest request = processor.createRequest(method, null, \"domainName\");\n\n assertRequestLineEquals(request, \"POST https://sdb.amazonaws.com/ HTTP/1.1\");\n assertNonPayloadHeadersEqual(request, \"Host: sdb.amazonaws.com\\n\");\n assertPayloadEquals(request, \"Version=2009-04-15&Action=PutAttributes&DomainName=domainName&ItemName=itemName\"\n + \"&Attribute.1.Name=name\" + \"&Attribute.1.Value=fuzzy\" + \"&Attribute.1.Replace=true\",\n \"application/x-www-form-urlencoded\", false);\n\n assertResponseParserClassEquals(method, request, ReleasePayloadAndReturn.class);\n assertSaxResponseParserClassEquals(method, null);\n assertExceptionParserClassEquals(method, null);\n\n checkFilters(request);\n }",
"public void setAttributes(Attributes atts) {\n _length = atts.getLength();\n if (_length > 0) {\n \n if (_length >= _algorithmData.length) {\n resizeNoCopy();\n }\n \n int index = 0;\n for (int i = 0; i < _length; i++) {\n _data[index++] = atts.getURI(i);\n _data[index++] = atts.getLocalName(i);\n _data[index++] = atts.getQName(i);\n _data[index++] = atts.getType(i);\n _data[index++] = atts.getValue(i);\n index++;\n _toIndex[i] = false;\n _alphabets[i] = null;\n }\n }\n }",
"Object[] getAttributes() throws SQLException;",
"@Override\n public void handleSchemaChange(ConnectSchema lastSchema, ConnectSchema currSchema, String\n dpSchemaName, PrimaryKey primaryKey, boolean shouldStageData) {\n System.out.println(\"New schema has fields as \" + currSchema.fields().stream().map\n (Field::name).collect(Collectors.joining(\", \")));\n\n List<Field> lastFilelds = lastSchema.fields();\n List<Field> currFilelds = currSchema.fields();\n\n }",
"@java.lang.Override\n public int getAttributesCount() {\n return attributes_.size();\n }",
"Schema createSchema();",
"private void recreateDatabaseSchema() {\n\t\t// Fetch database schema\n\t\tlogger.info(\"Reading database schema from file\");\n\t\tString[] schemaSql = loadFile(\"blab_schema.sql\", new String[] { \"--\", \"/*\" }, \";\");\n\n\t\tConnection connect = null;\n\t\tStatement stmt = null;\n\t\ttry {\n\t\t\t// Get the Database Connection\n\t\t\tlogger.info(\"Getting Database connection\");\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconnect = DriverManager.getConnection(Constants.create().getJdbcConnectionString());\n\n\t\t\tstmt = connect.createStatement();\n\n\t\t\tfor (String sql : schemaSql) {\n\t\t\t\tsql = sql.trim(); // Remove any remaining whitespace\n\t\t\t\tif (!sql.isEmpty()) {\n\t\t\t\t\tlogger.info(\"Executing: \" + sql);\n\t\t\t\t\tSystem.out.println(\"Executing: \" + sql);\n\t\t\t\t\tstmt.executeUpdate(sql);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException ex) {\n\t\t\tlogger.error(ex);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\tstmt.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tlogger.error(ex);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (connect != null) {\n\t\t\t\t\tconnect.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tlogger.error(ex);\n\t\t\t}\n\t\t}\n\t}",
"public void updateNonDynamicFields() {\n\n\t}",
"private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}",
"public SchemaInfo getSchema () throws Exception;",
"AstroSchema getSchema();",
"public Schema getSchema();",
"public abstract ImportAttributes getAttributes();",
"S getSchema();",
"public void displaySchema() {\n for (String s : attributes)\n System.out.print(s + \"\");\n }",
"public WSLAttributeList getAttributes() {return attributes;}",
"private void buildAttrsIndex() {\n\t\tsortAttrsIndex = new Vector<Integer>();\n\t\tboolean[] inAttrs = new boolean[schema.size()];\n\t\tfor(int i = 0; i < inAttrs.length; i++) {\n\t\t\tinAttrs[i] = false;\n\t\t}\n\t\tfor(String attr: sortAttrs) {\n\t\t\tsortAttrsIndex.add(schema.get(attr));\n\t\t\tinAttrs[schema.get(attr)] = true;\n\t\t}\n\t\tfor(int i = 0; i < inAttrs.length; i++) {\n\t\t\tif(!inAttrs[i]) {\n\t\t\t\tsortAttrsIndex.add(i);\n\t\t\t}\n\t\t}\n\t}",
"public abstract Map getAttributes();",
"public void setAttributes(ShapeAttributes normalAttrs)\n {\n this.normalAttrs = normalAttrs;\n }",
"public org.apache.spark.sql.SchemaRDD applySchemaToPythonRDD (org.apache.spark.rdd.RDD<java.lang.Object[]> rdd, org.apache.spark.sql.catalyst.types.StructType schema) { throw new RuntimeException(); }",
"@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }",
"public UpdateAssetAttributesResponse process(UpdateAssetAttributesRequest request) {\n Registry wso2 = RSProviderUtil.getRegistry();\n List<CommonErrorData> errorDataList = new ArrayList<CommonErrorData>();\n UpdateAssetAttributesResponse response = new UpdateAssetAttributesResponse();\n\n try {\n AssetKey assetKey = request.getAssetKey();\n BasicAssetInfo basicInfo = populateMinBasicAssetInfo(assetKey);\n\n AssetFactory factory = new AssetFactory(basicInfo, wso2);\n Asset asset = factory.createAsset();\n\n if (!asset.exists()) {\n return createAssetNotFoundError(errorDataList, response);\n }\n\n asset.findAsset();\n if (!asset.isLocked()) {\n asset.lockAsset();\n asset.save();\n }\n\n // get the existing assetInfo\n AssetInfo assetInfo = getAssetInfo(asset);\n\n if (assetInfo == null) {\n return createAssetTypeException(errorDataList, response);\n }\n\n ExtendedAssetInfo extInfo = request.getExtendedAssetInfo();\n List<AttributeNameValue> attributes = extInfo.getAttribute();\n List<String> respattrs = response.getAttributeName();\n\n if (attributes.size() > 0) {\n if (request.isReplaceCurrent()) {\n replaceAllAttributes(asset, attributes, respattrs);\n } else {\n mergeAttributes(asset, attributes, respattrs);\n }\n asset.save();\n }\n\n // populate the response\n response.setVersion(assetInfo.getBasicAssetInfo().getVersion());\n return RSProviderUtil.setSuccessResponse(response);\n\n } catch (Exception ex) {\n return RSProviderUtil.handleException(ex, response,\n RepositoryServiceErrorDescriptor.SERVICE_PROVIDER_EXCEPTION);\n }\n\n }",
"final void setAttributes(int param1, int param2) {\n }",
"public Attributes getAttributes() { return this.attributes; }",
"SchemaAttributesResponse callSchemaAttributeGetRESTCall(String methodName,\n String urlTemplate,\n Object... params) throws PropertyServerException\n {\n return (SchemaAttributesResponse)this.callGetRESTCall(methodName, SchemaAttributesResponse.class, urlTemplate, params);\n }",
"int updateByPrimaryKeySelective(AttributeExtend record);",
"public void addAttributesValue() {\r\n\t\t boolean flag=true;\r\n\t\t wsrdModel.setErrorMsg(\"\");\r\n\t\t List<UiAirplaneModel> modelList = new ArrayList<UiAirplaneModel>(uiAirplaneModel.getApNamesList());\t\r\n\t\t\tfor(UiAirplaneModel save:modelList) {\r\n\t\t\t\tif(save.isInputDisplayItem()) {\r\n\t\t\t\t\tflag = false;\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(flag) {\r\n\t\t\t\tmodelList.add(emptyAttributesValue());\r\n\t\t\t\tuiAirplaneModel.setApNamesList(modelList);\r\n\t\t\t}else {\r\n\t\t\t\taddErrorMessage(\"wsrdAdmin:addAirplaneNamesPanelID\", \"edit.edit\");\r\n\t\t\t}\r\n\t\t}",
"public ShapeAttributes getAttributes()\n {\n return this.normalAttrs;\n }",
"public BusinessObjectFormat updateBusinessObjectFormatAttributes(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatAttributesUpdateRequest businessObjectFormatAttributesUpdateRequest);",
"public void copyAttribute(String oldAttrName, String newAttrName) {\n log.debug(\"copyAttribute: \" + oldAttrName + \", \" + newAttrName);\n if (isAttributeDefined(newAttrName)) {\n deleteAttribute(newAttrName);\n }\n String typeDef = getAttrTypeDef(oldAttrName);\n defineAttribute(newAttrName, typeDef);\n NST oldAttrNST = getAttrDataNST(oldAttrName);\n NST newAttrNST = getAttrDataNST(newAttrName);\n newAttrNST.insertRowsFromNST(oldAttrNST);\n oldAttrNST.release();\n newAttrNST.release();\n }",
"@Override\n public synchronized Set<AttributeType> getAttributes() {\n return attributes = nonNullSet(attributes, AttributeType.class);\n }",
"void updateDeviceEndpointAttributes(@Nonnull final UpdateDeviceEndpointAttributesRequest request);",
"int updateByPrimaryKeySelective(TbProductAttributes record);",
"public abstract Map<String, Object> getAttributes();",
"public BusinessObjectFormat updateBusinessObjectFormatAttributeDefinitions(BusinessObjectFormatKey businessObjectFormatKey,\n BusinessObjectFormatAttributeDefinitionsUpdateRequest businessObjectFormatAttributeDefinitionsUpdateRequest);",
"public void setSchema(Schema schema)\n {\n this.schema = schema;\n }",
"public java.util.Collection getAttributes();",
"void updateAttribute(final AuthValues authToken, final UUID garId, final Attribute attribute) throws WorkflowException;",
"int getNumberOfNecessaryAttributes();",
"@Override\n public void removeAttributes()\n {\n attributes.clear();\n }",
"public AttributeList setAttributes(AttributeList attributes) {\n if (attributes == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"AttributeList attributes cannot be null\"),\n \"Cannot invoke a setter of \" + dClassName);\n }\n AttributeList resultList = new AttributeList();\n\n if (attributes.isEmpty())\n return resultList;\n\n for (Iterator i = attributes.iterator(); i.hasNext();) {\n Attribute attr = (Attribute) i.next();\n try {\n setAttribute(attr);\n String name = attr.getName();\n Object value = getAttribute(name); \n resultList.add(new Attribute(name,value));\n } catch(Exception e) {\n e.printStackTrace();\n }\n }\n return resultList;\n }",
"Map<String, String> getAttributes();",
"java.util.Map<java.lang.String, java.lang.String> getAttributesMap();",
"private void readAttribute(final CyAttributes attributes,\n \t\t\tfinal String targetName, final Att curAtt) {\n \n \t\t// check args\n \t\tfinal String dataType = curAtt.getType();\n \t\tif (dataType == null) {\n \t\t\treturn;\n \t\t}\n \n \t\t// null value only ok when type is list or map\n \t\tif (!dataType.equals(LIST_TYPE) && !dataType.equals(MAP_TYPE)\n \t\t\t\t&& curAtt.getValue() == null) {\n \t\t\treturn;\n \t\t}\n \n \t\t// string\n \t\tif (dataType.equals(STRING_TYPE)) {\n \t\t\tattributes.setAttribute(targetName, curAtt.getName(), curAtt\n \t\t\t\t\t.getValue());\n \t\t}\n \t\t// integer\n \t\telse if (dataType.equals(INT_TYPE)) {\n \t\t\tattributes.setAttribute(targetName, curAtt.getName(), new Integer(\n \t\t\t\t\tcurAtt.getValue()));\n \t\t}\n \t\t// float\n \t\telse if (dataType.equals(FLOAT_TYPE)) {\n \t\t\tattributes.setAttribute(targetName, curAtt.getName(), new Double(\n \t\t\t\t\tcurAtt.getValue()));\n \t\t}\n \t\t// boolean\n \t\telse if (dataType.equals(BOOLEAN_TYPE)) {\n \t\t\tattributes.setAttribute(targetName, curAtt.getName(), new Boolean(\n \t\t\t\t\tcurAtt.getValue()));\n \t\t}\n \t\t// list\n \t\telse if (dataType.equals(LIST_TYPE)) {\n \t\t\tfinal ArrayList listAttr = new ArrayList();\n \t\t\tfinal Iterator listIt = curAtt.getContent().iterator();\n \t\t\twhile (listIt.hasNext()) {\n \t\t\t\tfinal Object listItem = listIt.next();\n \t\t\t\tif (listItem != null && listItem.getClass() == AttImpl.class) {\n \t\t\t\t\tfinal Object itemClassObject = createObjectFromAttValue((AttImpl) listItem);\n \t\t\t\t\tif (itemClassObject != null)\n \t\t\t\t\t\tlistAttr.add(itemClassObject);\n \t\t\t\t}\n \t\t\t}\n \t\t\tattributes.setAttributeList(targetName, curAtt.getName(), listAttr);\n \t\t}\n \t\t// map\n \t\telse if (dataType.equals(MAP_TYPE)) {\n \t\t\tfinal HashMap mapAttr = new HashMap();\n \t\t\tfinal Iterator mapIt = curAtt.getContent().iterator();\n \t\t\twhile (mapIt.hasNext()) {\n \t\t\t\tfinal Object mapItem = mapIt.next();\n \t\t\t\tif (mapItem != null && mapItem.getClass() == AttImpl.class) {\n \t\t\t\t\tfinal Object mapClassObject = createObjectFromAttValue((AttImpl) mapItem);\n \t\t\t\t\tif (mapClassObject != null) {\n \t\t\t\t\t\tmapAttr.put(((AttImpl) mapItem).getName(),\n \t\t\t\t\t\t\t\tmapClassObject);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tattributes.setAttributeMap(targetName, curAtt.getName(), mapAttr);\n \t\t}\n \t\t// complex type\n \t\telse if (dataType.equals(COMPLEX_TYPE)) {\n \t\t\tfinal String attributeName = curAtt.getName();\n \t\t\tfinal int numKeys = Integer.valueOf((String) curAtt.getValue())\n \t\t\t\t\t.intValue();\n\t\t\tdefineComplexAttribute(attributeName, attributes, curAtt, null, 0,\n\t\t\t\t\tnumKeys);\n \t\t\tcreateComplexAttribute(attributeName, attributes, targetName,\n \t\t\t\t\tcurAtt, null, 0, numKeys);\n \t\t}\n \t}",
"public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}",
"private void setAllAttributesFromController() {\n obsoData.setSupplier(supplier);\n \n obsoData.setEndOfOrderDate(endOfOrderDate);\n obsoData.setObsolescenceDate(obsolescenceDate);\n \n obsoData.setEndOfSupportDate(endOfSupportDate);\n obsoData.setEndOfProductionDate(endOfProductionDate);\n \n obsoData.setCurrentAction(avlBean.findAttributeValueListById(\n ActionObso.class, actionId));\n obsoData.setMtbf(mtbf);\n \n obsoData.setStrategyKept(avlBean.findAttributeValueListById(\n Strategy.class,\n strategyId));\n obsoData.setContinuityDate(continuityDate);\n \n obsoData.setManufacturerStatus(avlBean.findAttributeValueListById(\n ManufacturerStatus.class, manufacturerStatusId));\n obsoData.setAirbusStatus(avlBean.findAttributeValueListById(\n AirbusStatus.class, airbusStatusId));\n \n obsoData.setLastObsolescenceUpdate(lastObsolescenceUpdate);\n obsoData.setConsultPeriod(avlBean.findAttributeValueListById(\n ConsultPeriod.class, consultPeriodId));\n \n obsoData.setPersonInCharge(personInCharge);\n obsoData.setCommentOnStrategy(comments);\n }",
"private FastVector getAccInstanceAttributes() {\n Attribute x_mean = new Attribute(\"x-axis mean\");\n Attribute x_var = new Attribute(\"x-axis var\");\n Attribute y_mean = new Attribute(\"y-axis mean\");\n Attribute y_var = new Attribute(\"y-axis var\");\n Attribute z_mean = new Attribute(\"z-axis mean\");\n Attribute z_var = new Attribute(\"z-axis var\");\n\n // Declare the class attribute along with its values\n FastVector fvClassVal = new FastVector(2);\n fvClassVal.addElement(\"none\");\n fvClassVal.addElement(\"tap\");\n Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n // Declare the feature vector\n FastVector fvWekaAttributes = new FastVector(7);\n\n fvWekaAttributes.addElement(x_mean);\n fvWekaAttributes.addElement(x_var);\n fvWekaAttributes.addElement(y_mean);\n fvWekaAttributes.addElement(y_var);\n fvWekaAttributes.addElement(z_mean);\n fvWekaAttributes.addElement(z_var);\n fvWekaAttributes.addElement(classAttribute);\n\n// // Declare the numeric attributes\n// Attribute x_var = new Attribute(\"var_x\");\n// Attribute x_var_delta = new Attribute(\"delta_var_x\");\n// Attribute y_var = new Attribute(\"var_y\");\n// Attribute y_var_delta = new Attribute(\"delta_var_y\");\n// Attribute z_var = new Attribute(\"var_z\");\n// Attribute z_var_delta = new Attribute(\"delta_var_z\");\n//\n// // Declare the class attribute along with its values\n// FastVector fvClassVal = new FastVector(3);\n// fvClassVal.addElement(\"none\");\n// fvClassVal.addElement(\"motion\");\n// fvClassVal.addElement(\"tap\");\n// Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n// // Declare the feature vector\n// FastVector fvWekaAttributes = new FastVector(7);\n//\n// fvWekaAttributes.addElement(x_var);\n// fvWekaAttributes.addElement(x_var_delta);\n// fvWekaAttributes.addElement(y_var);\n// fvWekaAttributes.addElement(y_var_delta);\n// fvWekaAttributes.addElement(z_var);\n// fvWekaAttributes.addElement(z_var_delta);\n// fvWekaAttributes.addElement(classAttribute);\n\n return fvWekaAttributes;\n }",
"IAttributes getAttributes();"
] |
[
"0.655383",
"0.6217703",
"0.6141155",
"0.6081176",
"0.5956701",
"0.5892119",
"0.5747427",
"0.57312185",
"0.57168347",
"0.5695026",
"0.56469643",
"0.5602525",
"0.5588495",
"0.5554345",
"0.5532806",
"0.54838467",
"0.5479002",
"0.5478916",
"0.54604816",
"0.5454026",
"0.5451723",
"0.54095286",
"0.53662217",
"0.53622276",
"0.5361127",
"0.53592855",
"0.5343322",
"0.534267",
"0.53422236",
"0.5333426",
"0.5331147",
"0.5328505",
"0.5323784",
"0.53222346",
"0.5321803",
"0.5309078",
"0.5299726",
"0.5297023",
"0.5285555",
"0.5269262",
"0.5269009",
"0.52454424",
"0.5228541",
"0.522834",
"0.52235883",
"0.522287",
"0.5218237",
"0.5215434",
"0.5213509",
"0.5208788",
"0.51930964",
"0.5188311",
"0.5183348",
"0.51803774",
"0.5176868",
"0.516861",
"0.516714",
"0.5162746",
"0.51558644",
"0.5155811",
"0.51515734",
"0.51394445",
"0.51388246",
"0.5134948",
"0.5134648",
"0.51106834",
"0.5092147",
"0.5089445",
"0.50732976",
"0.50715333",
"0.50615066",
"0.50597984",
"0.5057802",
"0.5041664",
"0.5035859",
"0.50342214",
"0.50329655",
"0.50256145",
"0.50246775",
"0.50157905",
"0.50126576",
"0.50117373",
"0.49996984",
"0.4990968",
"0.49851424",
"0.49824956",
"0.49801078",
"0.49781105",
"0.4977666",
"0.49676812",
"0.4962623",
"0.49610713",
"0.4955439",
"0.49546233",
"0.49489367",
"0.49376315",
"0.49292377",
"0.49281204",
"0.49244553",
"0.49171805",
"0.49161622"
] |
0.0
|
-1
|
Method getSchema definition ends here.. Method getAbsoluteSchema definition
|
public void getAbsoluteSchema( final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
invokeStaticMethod("getAbsoluteSchema", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getSchemaLocation();",
"S getSchema();",
"public Schema getSchema();",
"AstroSchema getSchema();",
"public abstract String getSchemaURI();",
"SchemaDefinition createSchemaDefinition();",
"public SchemaDef getSourceSchema();",
"public SchemaInfo getSchema () throws Exception;",
"String getRemoteSchema();",
"public String getSchema()\n {\n return schema;\n }",
"Schema createSchema();",
"String getSchemaFile();",
"public Schema getSchema()\n {\n return schema;\n }",
"public Schema getSchema() {\n return schema;\n }",
"public Schema getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public Schema getSchema() {\n\t\treturn _schema;\n\t}",
"public Schema getSchema() {\n return mSchema;\n }",
"public java.lang.String getSchema() {\r\n return schema;\r\n }",
"public String getSchemaLocation() {\r\n return schemaLocation;\r\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"public TypeDescription getSchema() {\n return schema;\n }",
"List<GlobalSchema> schemas();",
"public abstract SchemaClass getSchemaClass();",
"@Override\n\tpublic void buildSchema() {\n\t\tchild.buildSchema();\n\t\tschema = child.schema;\n\t}",
"@Override\r\n\t\tpublic String getSchema() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public SchemaInfo getAssociatedSchema() {\n return lookupSchema(getTargetNamespace());\n }",
"private String getSchema(Document doc) {\n\t\tElement rootElement = doc.getRootElement();\n\t\treturn rootElement.getAttributeValue(\"schemaLocation\", xsiNamespace).replace(\"http://www.github.com/biosemantics\", \"\").trim();\n\t}",
"public Schema() {\n\t\tsuper();\n\t}",
"SchemaManager getSchemaManager();",
"public String getSchemaLocation() {\r\n\t\treturn mSchemaLocation;\r\n\t}",
"public String getObject_schema() {\n return object_schema;\n }",
"public String getSchema()\n {\n String schema = \"\";\n if(this.props != null && !this.props.isEmpty())\n {\n schema = this.props.getProperty(\"db.schema\");\n }\n \n return schema;\n }",
"static Path getSchemaPath(Configuration conf) {\n int iteration = lastSchemaUpdate(conf);\n return getOutputPath(conf, SCHEMA_BASE + iteration);\n }",
"@Override\n public Schema getSchema () throws BlinkException\n {\n return schema;\n }",
"public String getSchema()\n\t{\n\t\t//begin vpj-cd e-evolution 03/04/2005\n\t\treturn \"compiere\";\n\t\t//end vpj-cd e-evolution 03/04/2005\n\t}",
"String handlerSchema();",
"@ApiModelProperty(value = \"A URI to a JSON-Schema file that defines additional attributes and relationships\")\n\n\n public String getSchemaLocation() {\n return schemaLocation;\n }",
"@ApiModelProperty(value = \"A URI to a JSON-Schema file that defines additional attributes and relationships\")\n\n\n public String getSchemaLocation() {\n return schemaLocation;\n }",
"public ArrayList<Column> getSchema();",
"public AbsSchema() {\n this(null, null);\n }",
"public List<String> getSchema() {\n\t\treturn schema;\n\t}",
"public String schema() {\n return schemaName;\n }",
"public String schema() {\n return schemaName;\n }",
"String getSchemaName();",
"String getSchemaName();",
"void schema(String schema);",
"void schema(String schema);",
"public static Schema getClassSchema() {\n return schema$;\n }",
"public static Schema getClassSchema() {\n return schema$;\n }",
"public static Schema getClassSchema() {\n return schema$;\n }",
"public static Schema getClassSchema() {\n return schema$;\n }",
"@Override\n public Schema getXMLSchema() throws XMLPlatformException {\n return documentBuilderFactory.getSchema();\n }",
"public org.w3c.dom.Document getSchema() {\r\n return schema;\r\n }",
"public String getRawSchema() {\n return rawSchema;\n }",
"public MetaSchema getMetaSchema(int iSchema);",
"public Integer getSchema()\r\n\t{\r\n\t\tif(element instanceof Schema)\r\n\t\t\treturn ((Schema)element).getId();\r\n\t\treturn ((SchemaElement)element).getBase();\r\n\t}",
"public List<Schema> getAllOf() {\n\t\treturn allOf;\n\t}",
"public SchemaInfo readServerSchema() {\n String path = \"/schema\";\n Span span = this.tracer.buildSpan(\"Client.Schema\").start();\n try {\n try (CloseableHttpResponse response = clientExecute(\"GET\", path, null, null, \"Error while reading schema\",\n ReturnClientResponse.ERROR_CHECKED_RESPONSE, false)) {\n HttpEntity entity = response.getEntity();\n if (entity != null) {\n try (InputStream src = entity.getContent()) {\n return SchemaInfo.fromInputStream(src);\n }\n }\n throw new PilosaException(\"Server returned empty response\");\n }\n } catch (IOException ex) {\n throw new PilosaException(\"Error while reading response\", ex);\n } finally {\n span.finish();\n }\n }",
"public static Schema loadSchema(Configuration conf) {\n SchemaWritable schema = new SchemaWritable();\n try {\n FileSystem fs = FileSystem.get(conf);\n Path schemaPath = getSchemaPath(conf);\n if (fs.isDirectory(schemaPath)) {\n for (FileStatus status : fs.listStatus(schemaPath)) {\n schemaPath = status.getPath();\n if (status.isFile() && status.getLen() > 0\n && !schemaPath.getName().startsWith(DEBUG_OUT)) {\n break;\n }\n }\n }\n SequenceFile.Reader in = new SequenceFile.Reader(conf,\n SequenceFile.Reader.file(schemaPath));\n NullWritable key = NullWritable.get();\n in.next(key, schema);\n in.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return schema;\n }",
"abstract Pipe.Schema<T> getPipeSchema();",
"public void setSchemaLocation(String schemaLocation) {\n\t\t\r\n\t}",
"public IntermediateDef getOutputSchema() throws PhysicalPlanException {\n\t\treturn outSchema;\n\t}",
"SchemaComponentType createSchemaComponentType();",
"public SchemaElement getDatabaseSchema() {\n return SchemaElement.forName(getDatabaseSchemaName());\n }",
"public Collection<Map<String, String>> getSchemas() {\n\t\treturn null;\r\n\t}",
"public org.apache.avro.Schema getSchema() { return SCHEMA$; }",
"public Schema readSchema() {\n Schema result = Schema.defaultSchema();\n SchemaInfo schema = readServerSchema();\n for (IndexInfo indexInfo : schema.getIndexes()) {\n Index index =\n result.index(indexInfo.getName(), indexInfo.getIndexOptions(), indexInfo.getShardWidth());\n List<FieldInfo> fields = indexInfo.getFields();\n if (fields != null) {\n for (IFieldInfo fieldInfo : indexInfo.getFields()) {\n // do not read system fields\n if (systemFields.contains(fieldInfo.getName())) {\n continue;\n }\n index.field(fieldInfo.getName(), fieldInfo.getOptions());\n }\n }\n }\n return result;\n }",
"public AbsSchema(String basePath) {\n this(basePath, null);\n }",
"public int getMetaSchemas();",
"public void setSchema(Schema schema)\n {\n this.schema = schema;\n }",
"public String getSchemaName() { return schemaName; }",
"public Collection<TapSchema> findAllSchemas();",
"public Iterator<SchemaDefinition> getSchemas(){\n return(schemaDefs.values().iterator());\n }",
"@Override\n public String getSchema() throws IOException, AutomationException {\n serverLog.addMessage(3, 200, \"Request received in Sample Object Interceptor for getSchema\");\n\n /*\n * Add code to manipulate schema requests here\n */\n\n IRESTRequestHandler restRequestHandler = soiHelper.findRestRequestHandlerDelegate(so);\n if (restRequestHandler != null) {\n return restRequestHandler.getSchema();\n }\n\n return null;\n }",
"protected void executeSchemaOperations() {\n }",
"public FeatureTypeSchema_Impl() {\r\n schema = XMLTools.create();\r\n }",
"public FeatureFilter getSchema();",
"public void testSchemaResolving()\r\n {\r\n SchemaImpl schema = new SchemaImpl(\"module\");\r\n schema.setId(\"Baz\");\r\n\r\n DefaultErrorHandler errorHandler = new DefaultErrorHandler();\r\n RegistryDefinition definition = new RegistryDefinitionImpl();\r\n\r\n ModuleDescriptor fooBar = new ModuleDescriptor(null, errorHandler);\r\n fooBar.setModuleId(\"foo.bar\");\r\n\r\n fooBar.addSchema(schema);\r\n\r\n ModuleDescriptor zipZoop = new ModuleDescriptor(null, errorHandler);\r\n zipZoop.setModuleId(\"zip.zoop\");\r\n\r\n ConfigurationPointDescriptor cpd = new ConfigurationPointDescriptor();\r\n cpd.setId(\"Zap\");\r\n cpd.setContributionsSchemaId(\"foo.bar.Baz\");\r\n\r\n zipZoop.addConfigurationPoint(cpd);\r\n\r\n XmlModuleDescriptorProcessor processor = new XmlModuleDescriptorProcessor(definition,\r\n errorHandler);\r\n processor.processModuleDescriptor(fooBar);\r\n processor.processModuleDescriptor(zipZoop);\r\n \r\n XmlExtensionResolver extensionResolver = new XmlExtensionResolver(definition, errorHandler);\r\n extensionResolver.resolveSchemas();\r\n\r\n ConfigurationPointDefinition point = definition.getConfigurationPoint(\"zip.zoop.Zap\");\r\n \r\n ConfigurationParserDefinition parserDef = point.getParser(HiveMindSchemaParser.INPUT_FORMAT_NAME);\r\n assertNotNull(parserDef);\r\n \r\n assertEquals(parserDef.getParserConstructor().getClass(), HiveMindSchemaParserConstructor.class);\r\n\r\n HiveMindSchemaParserConstructor constructor = (HiveMindSchemaParserConstructor) parserDef.getParserConstructor();\r\n assertEquals(schema, constructor.getSchema());\r\n }",
"protected DefaultSchemaComponent() {\n\t\tparameters = new SchemaParameterCollection();\n\t\tschemaports = new ArrayList<SchemaPort>();\n\t\tportrelations = new ArrayList<PortRelation>();\n\t}",
"void addSchema(SchemaDefinition sd) throws ResultException, DmcValueException {\n currentSchema = sd;\n\n if (checkAndAdd(sd.getObjectName(),sd,schemaDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(sd.getObjectName(),sd,schemaDefs,\"schema names\"));\n currentSchema = null;\n \tthrow(ex);\n }\n\n if (checkAndAddDOT(sd.getDotName(),sd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(sd.getObjectName(),sd,globallyUniqueMAP,\"definition names\"));\n currentSchema = null;\n \tthrow(ex);\n }\n \n if (sd.getObjectName().getNameString().length() > longestSchemaName)\n longestSchemaName = sd.getObjectName().getNameString().length();\n\n currentSchema = null;\n \n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addSchema(sd);\n \t}\n }\n\n }",
"@Test\n public void atSchemaLocationTest() {\n // TODO: test atSchemaLocation\n }",
"public ObjectSchema() {\n }",
"public void setSchema(String schema) {\n this.schema = schema;\n }",
"private DefaultSchema() {\n super(\"\", null);\n }",
"public Schema getOutputSchema(Schema inputSchema) {\n\n\t\tList<Schema.Field> fields = new ArrayList<>();\n\t\t\n\t\tfields.add(Schema.Field.of(\"ante_token\", Schema.of(Schema.Type.STRING)));\n\t\tfields.add(Schema.Field.of(\"ante_tag\", Schema.of(Schema.Type.STRING)));\n\t\t\n\t\tfields.add(Schema.Field.of(\"cons_token\", Schema.of(Schema.Type.STRING)));\n\t\tfields.add(Schema.Field.of(\"cons_tag\", Schema.of(Schema.Type.STRING)));\n\t\t\n\t\tfields.add(Schema.Field.of(\"toc_score\", Schema.of(Schema.Type.DOUBLE)));\n\t\tfields.add(Schema.Field.of(\"doc_score\", Schema.of(Schema.Type.DOUBLE)));\n\t\t\n\t\treturn Schema.recordOf(inputSchema.getRecordName() + \".related\", fields);\n\n\t}",
"@Override\n protected SourceXmlSchemaHelper setUpSchema() {\n return null; // cause a plugin exception to get thrown\n }",
"@Override\n protected SourceXmlSchemaHelper setUpSchema() {\n return null; // cause a plugin exception to get thrown\n }",
"public DataSchemaModel getDataSchemaModel()\n {\n return reportDesignerContext.getActiveContext().getReportDataSchemaModel();\n }",
"public MetaSchema getMetaSchema(String sName);",
"public void testSchema() throws IOException, JAXBException {\n\t\tJAXBContext context = JAXBContext.newInstance(WorksheetDocument.class);\n\n\t\tString out;\n\t\tfinal StringWriter writer = new StringWriter();\n\t\t// generate the schema\n\t\tcontext.generateSchema(\n\t\t// need to define a SchemaOutputResolver to store to\n\t\tnew SchemaOutputResolver() {\n\n\t\t\t@Override\n\t\t\tpublic Result createOutput(String ns, String file)\n\t\t\t\t\tthrows IOException {\n\t\t\t\t// save the schema to the list\n\t\t\t\tStreamResult res = new StreamResult(writer);\n\t\t\t\tres.setSystemId(\"no-id\");\n\t\t\t\treturn res;\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(writer.toString());\n\n\t}",
"public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }",
"public YangTreeNode getSchemaTree() {\n\t\treturn schemaTree;\n\t}",
"@Override\r\n\tpublic String geSchemaInfoWithPath(Context context, String strSchemaName, String strExportPath) throws Exception {\n\t\treturn null;\r\n\t}",
"@java.lang.Override\n public java.lang.String getSchemaUrl() {\n java.lang.Object ref = schemaUrl_;\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 schemaUrl_ = s;\n return s;\n }\n }"
] |
[
"0.79272115",
"0.7845075",
"0.7772726",
"0.77048236",
"0.75939727",
"0.735138",
"0.731109",
"0.72510606",
"0.71614337",
"0.7120227",
"0.7110397",
"0.7046837",
"0.702286",
"0.6995758",
"0.6985566",
"0.69768685",
"0.6921628",
"0.6921628",
"0.69110143",
"0.68714976",
"0.68654203",
"0.6855255",
"0.68523085",
"0.68523085",
"0.68523085",
"0.68523085",
"0.68465424",
"0.68200886",
"0.6807923",
"0.68019354",
"0.6730398",
"0.6706886",
"0.668636",
"0.6672866",
"0.66394234",
"0.66343516",
"0.66293424",
"0.6527262",
"0.65057606",
"0.6498579",
"0.6487545",
"0.64729893",
"0.64490545",
"0.64490545",
"0.6437717",
"0.6436681",
"0.6435542",
"0.6420011",
"0.6420011",
"0.64109576",
"0.64109576",
"0.6404286",
"0.6404286",
"0.6382584",
"0.6382584",
"0.6382584",
"0.6382584",
"0.63668156",
"0.6355826",
"0.63445926",
"0.62783223",
"0.6217882",
"0.6215876",
"0.61928755",
"0.61769074",
"0.61610854",
"0.6140157",
"0.6140101",
"0.6126962",
"0.6079506",
"0.60746515",
"0.60687363",
"0.6068525",
"0.6058996",
"0.60585797",
"0.60397786",
"0.603942",
"0.60304576",
"0.59818965",
"0.59697276",
"0.5953948",
"0.5950433",
"0.5935284",
"0.5930974",
"0.5910716",
"0.5896795",
"0.5887738",
"0.5864475",
"0.5850785",
"0.58473337",
"0.58451647",
"0.5842362",
"0.5842362",
"0.583396",
"0.58276707",
"0.58272326",
"0.5826764",
"0.5821186",
"0.58001024",
"0.5798273"
] |
0.6349451
|
59
|
Method getAbsoluteSchema definition ends here.. Method __connect__customers definition
|
public void __connect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("id", id);
hashMapObject.put("fk", fk);
invokeStaticMethod("__connect__customers", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getSchemaLocation();",
"public abstract String getSchemaURI();",
"S getSchema();",
"protected void executeSchemaOperations() {\n }",
"public void setSchemaLocation(String schemaLocation) {\n\t\t\r\n\t}",
"public Schema getSchema();",
"@Override\n public void createSchema(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Drop Indexes\n dropIndex(statement, \"CONFFRIENDSHIP_INVITEEID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"CONFFRIENDSHIP_INVITERID\", \"CONFFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITEEID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"PENDFRIENDSHIP_INVITERID\", \"PENDFRIENDSHIP\");\n dropIndex(statement, \"MANIPULATION_RID\", \"MANIPULATION\");\n dropIndex(statement, \"MANIPULATION_CREATORID\", \"MANIPULATION\");\n dropIndex(statement, \"RESOURCES_WALLUSERID\", \"RESOURCES\");\n dropIndex(statement, \"RESOURCE_CREATORID\", \"RESOURCES\");\n \n //Drop Tables\n dropTable(statement, \"CONFFRIENDSHIP\");\n dropTable(statement, \"PENDFRIENDSHIP\");\n dropTable(statement, \"MANIPULATION\");\n dropTable(statement, \"RESOURCES\");\n dropTable(statement, \"USERS\");\n \n //Create Tables\n statement.executeUpdate(\"CREATE TABLE CONFFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE PENDFRIENDSHIP \" + \"(INVITERID INTEGER NOT NULL, \" + \"INVITEEID INTEGER NOT NULL, \" + \"PRIMARY KEY (INVITERID, INVITEEID))\");\n statement.executeUpdate(\"CREATE TABLE MANIPULATION \" + \"(MID INTEGER NOT NULL, \" + \"MODIFIERID INTEGER NOT NULL, \" + \"RID INTEGER NOT NULL, \" + \"CREATORID INTEGER NOT NULL, \" + \"TIMESTAMP VARCHAR(200), \" + \"TYPE VARCHAR(200), \" + \"CONTENT VARCHAR(200), \" + \"PRIMARY KEY (MID,RID))\");\n statement.executeUpdate(\"CREATE TABLE RESOURCES \" + \"(RID INTEGER NOT NULL , \" + \"CREATORID INTEGER NOT NULL, \" + \"WALLUSERID INTEGER NOT NULL, \" + \"TYPE VARCHAR(200), \" + \"BODY VARCHAR(200), \" + \"DOC VARCHAR(200), \" + \"PRIMARY KEY (RID))\");\n statement.executeUpdate(\"CREATE TABLE USERS \" + \"(USERID INTEGER NOT NULL , \" + \"USERNAME VARCHAR(200), \" + \"PW VARCHAR(200), \" + \"FNAME VARCHAR(200), \" + \"LNAME VARCHAR(200), \" + \"GENDER VARCHAR(200),\" + \"DOB VARCHAR(200), \" + \"JDATE VARCHAR(200), \" + \"LDATE VARCHAR(200), \" + \"ADDRESS VARCHAR(200),\" + \"EMAIL VARCHAR(200), \" + \"TEL VARCHAR(200), \" + \"PRIMARY KEY (USERID))\");\n \n //Add Foreign Keys\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE CONFFRIENDSHIP \" + \"ADD CONSTRAINT CONFFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK1 FOREIGN KEY (INVITERID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE PENDFRIENDSHIP \" + \"ADD CONSTRAINT PENDFRIENDSHIP_USERS_FK2 FOREIGN KEY (INVITEEID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_RESOURCES_FK1 FOREIGN KEY (RID)\" + \"REFERENCES RESOURCES (RID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE MANIPULATION \" + \"ADD CONSTRAINT MANIPULATION_USERS_FK2 FOREIGN KEY (MODIFIERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK1 FOREIGN KEY (CREATORID)\" + \"REFERENCES USERS (USERID) ON DELETE CASCADE\");\n statement.executeUpdate(\"ALTER TABLE RESOURCES \" + \"ADD CONSTRAINT RESOURCES_USERS_FK2 FOREIGN KEY (WALLUSERID)\" + \"REFERENCES USERS (USERID) ON DELETE NO ACTION\");\n \n //Create Indexes\n buildIndexes(null);\n }\n catch (SQLException ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in creating schema!\");\n }\n }",
"@Override\r\n\t\tpublic String getSchema() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"protected DefaultSchemaComponent() {\n\t\tparameters = new SchemaParameterCollection();\n\t\tschemaports = new ArrayList<SchemaPort>();\n\t\tportrelations = new ArrayList<PortRelation>();\n\t}",
"public Schema() {\n\t\tsuper();\n\t}",
"@Override\r\n\t\tpublic void setSchema(String schema) throws SQLException {\n\t\t\t\r\n\t\t}",
"public SchemaInfo getSchema () throws Exception;",
"String getRemoteSchema();",
"@Override\n\tpublic void moveToPublicSchema(DwcaResourceModel resourceModel) {\n\n\t}",
"Schema createSchema();",
"public abstract SchemaClass getSchemaClass();",
"public void setSchema(Schema schema)\n {\n this.schema = schema;\n }",
"public SchemaDef getSourceSchema();",
"protected static Connection MySqlCustomersConnection() {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = MySqlConn().getConnection();\n\t\t\treturn conn;\n\t\t}\n\t\tcatch (SQLException sqe){\n\t\t\tsqe.printStackTrace();\n\t\t}\n\t\treturn conn;\n\t}",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"public String getSchemaLocation() {\r\n return schemaLocation;\r\n }",
"SchemaManager getSchemaManager();",
"public void connect()\n\t{\n\t\t//Database driver required for connection\n\t\tString jdbcDriver = \"com.mysql.jdbc.Driver\";\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Loading JDBC Driver class at run-time\n\t\t\tClass.forName(jdbcDriver);\n\t\t}\n\t\tcatch (Exception excp)\n\t\t{\n\t\t\tlog.error(\"Unexpected exception occurred while attempting user schema DB connection... \" + excp.getMessage());\n\t\t}\t\t\n\t\t\n\t\tlog.info(\"Initiating connection to user schema database \" + dbUrl + \"...\");\n\t\t\n\t\ttry\n\t\t{\n\t\t\tdbConnection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n\t\t}\n\t\tcatch (SQLException sqle)\n\t\t{\n\t\t\tdbConnection = null;\n\t\t\tlog.error(\"SQLException occurred while connecting to user schema database... \" + sqle.getMessage());\n\t\t}\n\t}",
"public void setSchema(String schema) {\n this.schema = schema;\n }",
"public Schema getSchema()\n {\n return schema;\n }",
"public void createDBSchema() throws NoConnectionToDBException, SQLException, IOException {\n \n InputStream in = EDACCApp.class.getClassLoader().getResourceAsStream(\"edacc/resources/edacc.sql\");\n if (in == null) {\n throw new SQLQueryFileNotFoundException();\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line;\n String text = \"\";\n String l;\n while ((line = br.readLine()) != null) {\n if (!(l = line.replaceAll(\"\\\\s\", \"\")).isEmpty() && !l.startsWith(\"--\")) {\n text += line + \" \";\n }\n }\n in.close();\n Vector<String> queries = new Vector<String>();\n String query = \"\";\n String delimiter = \";\";\n int i = 0;\n while (i < text.length()) {\n if (text.toLowerCase().startsWith(\"delimiter\", i)) {\n i += 10;\n delimiter = text.substring(i, text.indexOf(' ', i));\n i = text.indexOf(' ', i);\n } else if (text.startsWith(delimiter, i)) {\n queries.add(query);\n i += delimiter.length();\n query = \"\";\n } else {\n query += text.charAt(i);\n i++;\n }\n }\n if (!query.replaceAll(\" \", \"\").equals(\"\")) {\n queries.add(query);\n }\n boolean autoCommit = getConn().getAutoCommit();\n try {\n getConn().setAutoCommit(false);\n Statement st = getConn().createStatement();\n for (String q : queries) {\n st.execute(q);\n }\n st.close();\n getConn().commit();\n } catch (SQLException e) {\n getConn().rollback();\n throw e;\n } finally {\n getConn().setAutoCommit(autoCommit);\n }\n }",
"List<GlobalSchema> schemas();",
"@Override\n\tpublic void buildSchema() {\n\t\tchild.buildSchema();\n\t\tschema = child.schema;\n\t}",
"AstroSchema getSchema();",
"@BeforeClass\n public static void externalSchemaCheck() {\n assumeTrue(\"can access \" + NameSpace.DC.xsd, canConnect(NameSpace.DC.xsd));\n }",
"@Override\n protected SourceXmlSchemaHelper setUpSchema() {\n return null; // cause a plugin exception to get thrown\n }",
"@Override\n protected SourceXmlSchemaHelper setUpSchema() {\n return null; // cause a plugin exception to get thrown\n }",
"@Override\n //TODO move out\n public void fillInitialSchemaData(DBRProgressMonitor monitor, Connection connection) throws DBException, SQLException {\n exclusiveConnection = new DelegatingConnection<Connection>(connection) {\n @Override\n public void close() throws SQLException {\n // do nothing\n }\n };\n\n try {\n // Fill initial data\n\n CBDatabaseInitialData initialData = getInitialData();\n if (initialData == null) {\n return;\n }\n\n String adminName = initialData.getAdminName();\n String adminPassword = initialData.getAdminPassword();\n List<SMTeam> initialTeams = initialData.getTeams();\n String defaultTeam = application.getAppConfiguration().getDefaultUserTeam();\n if (CommonUtils.isNotEmpty(defaultTeam)) {\n Set<String> initialTeamNames = initialTeams == null\n ? Set.of()\n : initialTeams.stream().map(SMTeam::getTeamId).collect(Collectors.toSet());\n if (!initialTeamNames.contains(defaultTeam)) {\n throw new DBException(\"Initial teams configuration doesn't contain default team \" + defaultTeam);\n }\n }\n if (!CommonUtils.isEmpty(initialTeams)) {\n // Create teams\n for (SMTeam team : initialTeams) {\n adminSecurityController.createTeam(team.getTeamId(), team.getName(), team.getDescription(), adminName);\n if (adminName != null && !application.isMultiNode()) {\n adminSecurityController.setSubjectPermissions(\n team.getTeamId(),\n new ArrayList<>(team.getPermissions()),\n adminName\n );\n }\n }\n }\n\n if (!CommonUtils.isEmpty(adminName)) {\n // Create admin user\n createAdminUser(adminName, adminPassword);\n }\n } finally {\n exclusiveConnection = null;\n }\n }",
"public ConnectorDataSource() {\n super(CONNECTOR_BEAN_NAME, CONNECTOR_TABLE_NAME);\n }",
"public UpdateableDataContext connect(String uname,String pward,String secTocken)\r\n\t{\n\t\tUpdateableDataContext dataContext = new SalesforceDataContext(uname,pward,secTocken);\r\n\t\t\r\n\t\t/*Table accountTable = dataContext.getDefaultSchema().getTableByName(\"Account\");\r\n\t\t \r\n\t\tDataSet dataSet = dataContext.query().from(accountTable).select(\"Id\", \"Name\").where(\"BillingCity\").eq(\"New York\").execute();\r\n\t\t \r\n\t\twhile (dataSet.next()) {\r\n\t\t Row row = dataSet.getRow();\r\n\t\t Object id = row.getValue(0);\r\n\t\t Object name = row.getValue(1);\r\n\t\t System.out.println(\"Account '\" + name + \"' from New York has id: \" + row.getValue(0));\r\n\t\t}\r\n\t\tdataSet.close();*/\r\n\t\treturn dataContext;\r\n\t}",
"public Schema getSchema() {\n return schema;\n }",
"public String getObject_schema() {\n return object_schema;\n }",
"@Test\n public void atSchemaLocationTest() {\n // TODO: test atSchemaLocation\n }",
"void schema(String schema);",
"void schema(String schema);",
"private void createSchemaInfo() {\n\t\tfor (String tableName : tableSchemas.keySet()) {\n\t\t\tERWinSchemaInfo schemaInfo = new ERWinSchemaInfo();\n\t\t\tschemaInfo.setType(\"user\");\n\t\t\tschemaInfo.setUniqueName(tableName);\n\t\t\tschemaInfos.put(tableName, schemaInfo);\n\t\t}\n\n\t\tinitCache();\n\t\tparseKeyGroupGroups();\n\n\t\tparseEntityProps();\n\t\tparseRelationGroups();\n\t\tparseAttributes();\n\n\t\tcreateSchemaDDL();\n\t}",
"public abstract void setupReferences() throws SQLException;",
"public BooksSchema() {\n super();\n\n Managers.getManager(IBeansManager.class).inject(this);\n }",
"@Override\n protected SourceXmlSchemaHelper setUpSchema(CachedUrl cu) {\n if (JatsPublishingHelper != null) {\n return JatsPublishingHelper;\n }\n JatsPublishingHelper = new JatsPublishingSchemaHelper();\n return JatsPublishingHelper;\n }",
"@Override\n\tpublic ResultSet getSchemas(String catalog, String schemaPattern)\n\t\t\tthrows SQLException {\n\t\treturn null;\n\t}",
"public String getSchema()\n {\n return schema;\n }",
"public Schema getSchema() {\n return schema;\n }",
"private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public void getAbsoluteSchema( final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n\n \n\n\n \n \n invokeStaticMethod(\"getAbsoluteSchema\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"public OpenClusterManagementAppsSchema() {\n }",
"void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}",
"@Override\n protected SourceXmlSchemaHelper setUpSchema(CachedUrl cu, Document doc) {\n // Once you have it, just keep returning the same one. It won't change.\n String system = null;\n String release = null;\n \n if (doc == null) return null;\n DocumentType doctype = doc.getDoctype();\n if (doctype != null) {\n system = doctype.getSystemId();\n log.debug3(\"DOCTYPE URI: \" + doctype.getSystemId());\n }\n Element root = doc.getDocumentElement();\n if (root != null) {\n release = root.getAttribute(\"release\");\n if (release != null) {\n log.debug3(\"releaseNum : \" + release);\n }\n }\n if( ((system != null) && system.contains(\"/onix/2\")) ||\n (( release != null) && release.startsWith(\"2\")) ) {\n if (Onix2Helper == null) {\n Onix2Helper = new Onix2BooksSchemaHelper();\n }\n return Onix2Helper;\n } else if ( ((system != null) && system.contains(\"/onix/3\")) ||\n (( release != null) && release.startsWith(\"3\")) ) {\n if (Onix3Helper == null) {\n Onix3Helper = new Onix3BooksSchemaHelper();\n }\n return Onix3Helper;\n } else {\n log.warning(\"guessing at XML schema - using ONIX2\");\n }\n if (Onix2Helper == null) {\n Onix2Helper = new Onix2BooksSchemaHelper();\n }\n return Onix2Helper;\n }",
"public String getSchemaLocation() {\r\n\t\treturn mSchemaLocation;\r\n\t}",
"@Override\r\n\tprotected String getSchemaSpacePattern() throws SQLException {\r\n\t\tString schema = databaseConnection.getSchema();\r\n\t\tif ((schema == null) || schema.isEmpty()) {\r\n\t\t\tschema = dbmd.getUserName();\r\n\t\t}\r\n\t\treturn schema;\r\n\t}",
"public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}",
"public Db2CatalogDAO(IDatabaseTranslator w, String catalogSchema) {\n this.writer = w;\n this.catalogSchema = catalogSchema;\n }",
"public Schema getSchema() {\n\t\treturn _schema;\n\t}",
"public String schema() {\n return schemaName;\n }",
"public String schema() {\n return schemaName;\n }",
"public String getSchemaName() { return schemaName; }",
"void setSchema(S schema);",
"@ApiModelProperty(value = \"A URI to a JSON-Schema file that defines additional attributes and relationships\")\n\n\n public String getSchemaLocation() {\n return schemaLocation;\n }",
"@ApiModelProperty(value = \"A URI to a JSON-Schema file that defines additional attributes and relationships\")\n\n\n public String getSchemaLocation() {\n return schemaLocation;\n }",
"String getSchemaName();",
"String getSchemaName();",
"private void connectDatabase(){\n }",
"public void setSchema(java.lang.String schema) {\r\n this.schema = schema;\r\n }",
"public JsonSchemaMappingLookup() {\n // initialize all mappings from URLs to the respective schema\n businessObjectToJsonSchema.put(\"/rules\", DCC_VALIDATION_RULE_JSON_CLASSPATH);\n businessObjectToJsonSchema.put(\"/bnrules\", DCC_VALIDATION_RULE_JSON_CLASSPATH);\n businessObjectToJsonSchema.put(\"/cclrules\", CCL_JSON_SCHEMA);\n }",
"public String getSchema() {\n return schema;\n }",
"SchemaComponentType createSchemaComponentType();",
"public FlightBookingDAO(Connection conn) {\n\t\tsuper(conn);\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\r\n\t\tpublic String getCatalog() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public SchemaInfo getAssociatedSchema() {\n return lookupSchema(getTargetNamespace());\n }",
"private void adjustAllSchemaReferences() throws Exception {\n File[] schemas = new File(new File(getRootDir(), ToolboxFoldersFileConstants.WEB_INF), ToolboxFoldersFileConstants.SCHEMAS).listFiles(new FileFilter() {\n\n public boolean accept(File file) {\n return file.getName().endsWith(\".xsd\");\n }\n });\n for (int index = 0; index < schemas.length; adjustSchemaReferences(schemas[index++]));\n }",
"public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernhart1234\");\n }",
"public void consulterCatalog() {\n\t\t\n\t}",
"public String getSchema()\n\t{\n\t\t//begin vpj-cd e-evolution 03/04/2005\n\t\treturn \"compiere\";\n\t\t//end vpj-cd e-evolution 03/04/2005\n\t}",
"public interface ConnectorConstants {\n\n /**\n * Represents the connector container module name / type\n */\n public static final String CONNECTOR_MODULE = \"connector\";\n\n /**\n * JAXR system resource adapter name.\n */\n public static final String JAXR_RA_NAME = \"jaxr-ra\";\n\n /** \n * JDBC datasource system resource adapter name.\n */\n public static final String JDBCDATASOURCE_RA_NAME = \"__ds_jdbc_ra\";\n \n /** \n * JDBC connectionpool datasource system resource adapter name.\n */\n public static final String JDBCCONNECTIONPOOLDATASOURCE_RA_NAME = \"__cp_jdbc_ra\";\n \n /** \n * JDBC XA datasource system resource adapter name.\n */\n public static final String JDBCXA_RA_NAME = \"__xa_jdbc_ra\";\n\n /**\n * JDBC Driver Manager system resource adapter name.\n */\n public static final String JDBCDRIVER_RA_NAME = \"__dm_jdbc_ra\";\n\n /** \n * JMS datasource system resource adapter name.\n */\n public static final String DEFAULT_JMS_ADAPTER = \"jmsra\";\n\n /**\n * List of jdbc system resource adapter names\n */\n public static final List<String> jdbcSystemRarNames = Collections.unmodifiableList(\n Arrays.asList(\n JDBCDATASOURCE_RA_NAME,\n JDBCCONNECTIONPOOLDATASOURCE_RA_NAME,\n JDBCXA_RA_NAME,\n JDBCDRIVER_RA_NAME\n ));\n\n\n /**\n * List of system resource adapter names \n */\n public static final List<String> systemRarNames = Collections.unmodifiableList(\n Arrays.asList(\n JAXR_RA_NAME,\n JDBCDATASOURCE_RA_NAME,\n JDBCCONNECTIONPOOLDATASOURCE_RA_NAME,\n JDBCXA_RA_NAME,\n JDBCDRIVER_RA_NAME,\n DEFAULT_JMS_ADAPTER\n ));\n\n /**\n * Indicates the list of system-rars for which connector connection pools can be created\n */\n public static final List<String> systemRarsAllowingPoolCreation = Collections.unmodifiableList(\n Arrays.asList(\n DEFAULT_JMS_ADAPTER,\n JAXR_RA_NAME\n ));\n\n \n /** \n * Reserver JNDI context under which sub contexts for default resources \n * and all connector connection pools are created\n * Subcontext for connector descriptors bounding is also done under \n * this context.\n */\n public static String RESERVE_PREFIX = \"__SYSTEM\";\n\n /**\n * Sub context for binding connector descriptors.\n */\n public static final String DD_PREFIX= RESERVE_PREFIX+\"/descriptors/\";\n\n /**\n * Constant used to determine whether execution environment is appserver\n * runtime. \n */\n public static final int SERVER = 1;\n\n /**\n * Constant used to determine whether execution environment is application\n * client container. \n */\n public static final int CLIENT = 2;\n\n /** \n * Token used for generation of poolname pertaining to sun-ra.xml. \n * Generated pool name will be \n * rarName+POOLNAME_APPENDER+connectionDefName+SUN_RA_POOL.\n * SUNRA connector connections pools are are named and bound after \n * this name. Pool object will be bound under POOLS_JNDINAME_PREFIX \n * subcontext. To lookup a pool the jndi name should be \n * POOLS_JNDINAME_PREFIX/rarName+POOLNAME_APPENDER+connectionDefName\n * +SUN_RA_POOL\n */\n public static final String SUN_RA_POOL = \"sunRAPool\";\n public static final String ADMINISTERED_OBJECT_FACTORY =\n \"com.sun.enterprise.resource.naming.AdministeredObjectFactory\";\n\n /**\n * Meta char for mapping the security for connection pools\n */\n public static String SECURITYMAPMETACHAR=\"*\";\n\n /** \n * Token used for default poolname generation. Generated pool name will be \n * rarName+POOLNAME_APPENDER+connectionDefName.Default connector connections\n * pools are are named and bound after this name. Pool object will be bound\n * under POOLS_JNDINAME_PREFIX subcontext. To lookup a pool the jndi name\n * should be \n * POOLS_JNDINAME_PREFIX/rarName+POOLNAME_APPENDER+connectionDefName\n */\n public static String POOLNAME_APPENDER=\"#\";\n\n /** \n * Token used for default connector resource generation.Generated connector\n * resource name and JNDI names will be \n * RESOURCE_JNDINAME_PREFIX+rarName+RESOURCENAME_APPENDER+connectionDefName\n * This name should be used to lookup connector resource.\n */\n public static String RESOURCENAME_APPENDER=\"#\";\n\n /**\n * resource-adapter archive extension name\n */\n public static String RAR_EXTENSION=\".rar\";\n\n\n /**\n * represents the monitoring-service level element name\n */\n public static String MONITORING_CONNECTOR_SERVICE_MODULE_NAME = \"connector-service\";\n public static String MONITORING_JMS_SERVICE_MODULE_NAME = \"jms-service\";\n\n /**\n * represents the monitoring-service hierarchy elements <br>\n * eg: server.connector-service.<RA-NAME>.work-management<br>\n */\n public static String MONITORING_CONNECTOR_SERVICE = \"connector-service\";\n public static String MONITORING_JMS_SERVICE = \"jms-service\";\n public static String MONITORING_WORK_MANAGEMENT = \"work-management\";\n public static String MONITORING_SEPARATOR = \"/\";\n\n /**\n * Reserved sub-context where datasource-definition objets (resource and pool) are bound with generated names.\n */\n public static String DATASOURCE_DEFINITION_JNDINAME_PREFIX=\"__datasource_definition/\";\n\n /**\n * Reserved sub-context where pool objets are bound with generated names.\n */\n public static String POOLS_JNDINAME_PREFIX=RESERVE_PREFIX+\"/pools/\";\n\n /**\n * Reserved sub-context where connector resource objects are bound with \n * generated names.\n */\n public static String RESOURCE_JNDINAME_PREFIX=RESERVE_PREFIX+\"/resource/\";\n public static String USERGROUPDISTINGUISHER=\"#\";\n public static String CAUTION_MESSAGE=\"Please add the following permissions to the \" +\n \"server.policy file and restart the appserver.\";\n \n /**\n * Token used for generating the name to refer to the embedded rars.\n * It will be AppName+EMBEDDEDRAR_NAME_DELIMITER+embeddedRarName.\n */\n\n public static String EMBEDDEDRAR_NAME_DELIMITER=\"#\";\n\n /**\n * Property name for distinguishing the transaction exceptions \n * propagation capability.\n */\n public final static String THROW_TRANSACTED_EXCEPTIONS_PROP\n = \"resourceadapter.throw.transacted.exceptions\";\n \n /**\n * System Property value for distinguishing the transaction exceptions \n * propagation capability.\n */\n static String sysThrowExcp\n = System.getProperty(THROW_TRANSACTED_EXCEPTIONS_PROP);\n\n /**\n * Property value for distinguishing the transaction exceptions \n * propagation capability.\n */\n public static boolean THROW_TRANSACTED_EXCEPTIONS\n = sysThrowExcp != null && !(sysThrowExcp.trim().equals(\"true\")) ?\n false : true;\n \n public static final int DEFAULT_RESOURCE_ADAPTER_SHUTDOWN_TIMEOUT = 30;\n \n public String JAVAX_SQL_DATASOURCE = \"javax.sql.DataSource\";\n \n public String JAVAX_SQL_CONNECTION_POOL_DATASOURCE = \"javax.sql.ConnectionPoolDataSource\";\n \n public String JAVAX_SQL_XA_DATASOURCE = \"javax.sql.XADataSource\";\n \n public String JAVA_SQL_DRIVER = \"java.sql.Driver\";\n\n /**\n * Property value for defining NoTransaction transaction-support in\n * a connector-connection-pool\n */\n public String NO_TRANSACTION_TX_SUPPORT_STRING = \"NoTransaction\";\n \n /**\n * Property value for defining LocalTransaction transaction-support in\n * a connector-connection-pool\n */\n public String LOCAL_TRANSACTION_TX_SUPPORT_STRING = \"LocalTransaction\";\n \n /**\n * Property value for defining XATransaction transaction-support in\n * a connector-connection-pool\n */\n public String XA_TRANSACTION_TX_SUPPORT_STRING = \"XATransaction\";\n \n /**\n * Property value defining the NoTransaction transaction-support value\n * as an integer\n */\n \n public int NO_TRANSACTION_INT = 0;\n /**\n * Property value defining the LocalTransaction transaction-support value\n * as an integer\n */\n \n public int LOCAL_TRANSACTION_INT = 1;\n \n /**\n * Property value defining the XATransaction transaction-support value\n * as an integer\n */\n public int XA_TRANSACTION_INT = 2;\n \n /**\n * Property value defining an undefined transaction-support value\n * as an integer\n */\n public int UNDEFINED_TRANSACTION_INT = -1;\n\n /**\n * Min pool size for JMS connection pools.\n */\n public static int JMS_POOL_MINSIZE = 1;\n\n /**\n * Min pool size for JMS connection pools.\n */\n public static int JMS_POOL_MAXSIZE = 250;\n \n public static enum PoolType {\n\n ASSOCIATE_WITH_THREAD_POOL, STANDARD_POOL, PARTITIONED_POOL,\n POOLING_DISABLED;\n }\n\n public static int NON_ACC_CLIENT = 0;\n\n public static String PM_JNDI_SUFFIX = \"__pm\";\n\n public static String NON_TX_JNDI_SUFFIX = \"__nontx\" ;\n\n /**\n * Name of the JNDI environment property that can be provided so that the \n * <code>ObjectFactory</code> can decide which type of datasource create.\n */\n public static String JNDI_SUFFIX_PROPERTY = \"com.sun.enterprise.connectors.jndisuffix\";\n \n /**\n * Valid values that can be provided to the JNDI property.\n */\n public static String[] JNDI_SUFFIX_VALUES = { PM_JNDI_SUFFIX , NON_TX_JNDI_SUFFIX };\n\n public static final String CCP = \"ConnectorConnectionPool\";\n public static final String CR = \"ConnectorResource\";\n public static final String AOR = \"AdminObjectResource\";\n public static final String SEC = \"Security\";\n public static final String RA = \"ResourceAdapter\";\n public static final String JDBC = \"Jdbc\";\n\n public static final String INSTALL_ROOT = \"com.sun.aas.installRoot\";\n\n /**\n * Constant to denote external jndi resource type.\n */\n public static final String RES_TYPE_EXTERNAL_JNDI = \"external-jndi\";\n\n public static final String RES_TYPE_JDBC = \"jdbc\";\n\n /**\n * Constant to denote jdbc connection pool resource type.\n */\n public static final String RES_TYPE_JCP = \"jcp\";\n\n /**\n * Constant to denote connector connection pool resource type.\n */\n public static final String RES_TYPE_CCP = \"ccp\";\n\n /**\n * Constant to denote connector resource type.\n */\n public static final String RES_TYPE_CR = \"cr\";\n\n /**\n * Constant to denote custom resource type.\n */\n public static final String RES_TYPE_CUSTOM = \"custom\";\n\n /**\n * Constant to denote admin object resource type.\n */\n public static final String RES_TYPE_AOR = \"aor\";\n\n /**\n * Constant to denote resource adapter config type.\n */\n public static final String RES_TYPE_RAC = \"rac\";\n\n /**\n * Constant to denote connector-work-security-map type.\n */\n public static final String RES_TYPE_CWSM = \"cwsm\";\n\n /**\n * Constant to denote mail resource type.\n */\n public static final String RES_TYPE_MAIL = \"mail\";\n\n public static final String JMS_QUEUE = \"javax.jms.Queue\";\n public static final String JMS_TOPIC = \"javax.jms.Topic\";\n public static final String JMS_QUEUE_CONNECTION_FACTORY = \"javax.jms.QueueConnectionFactory\";\n public static final String JMS_TOPIC_CONNECTION_FACTORY = \"javax.jms.TopicConnectionFactory\";\n public static final String JMS_MESSAGE_LISTENER = \"javax.jms.MessageListener\";\n /** resource type residing in an external JNDI repository */\n public static final String EXT_JNDI_RES_TYPE = \"external-jndi-resource\";\n\n // name by which connector's implemenation of message-bean-client-factory service is available.\n // MDB-Container can use this constant to get connector's implementation of the factory\n public static final String CONNECTOR_MESSAGE_BEAN_CLIENT_FACTORY=\"ConnectorMessageBeanClientFactory\";\n\n public static final String EXPLODED_EMBEDDED_RAR_EXTENSION=\"_rar\";\n\n public static final String JAVA_BEAN_FACTORY_CLASS = \"org.glassfish.resources.custom.factory.JavaBeanFactory\";\n public static final String PRIMITIVES_AND_STRING_FACTORY_CLASS =\n \"org.glassfish.resources.custom.factory.PrimitivesAndStringFactory\";\n public static final String URL_OBJECTS_FACTORY = \"org.glassfish.resources.custom.factory.URLObjectFactory\";\n public static final String PROPERTIES_FACTORY = \"org.glassfish.resources.custom.factory.PropertiesFactory\";\n\n //service-names for the ActiveResourceAdapter contract's implementations\n // service providing inbound support\n public static final String AIRA = \"ActiveInboundResourceAdapter\";\n // service providing outbound support\n public static final String AORA = \"ActiveOutboundResourceAdapter\";\n\n public static final String CLASSLOADING_POLICY_DERIVED_ACCESS = \"derived\";\n public static final String CLASSLOADING_POLICY_GLOBAL_ACCESS = \"global\";\n\n public static final String RAR_VISIBILITY = \"rar-visibility\";\n public static final String RAR_VISIBILITY_GLOBAL_ACCESS = \"*\";\n\n //flag to indicate that all applications have access to all deployed standalone RARs\n public static final String ACCESS_ALL_RARS = \"access-all-rars\";\n //flag to indiate additional RARs required for an application, apart from the ones referred via app's DD\n public static final String REQUIRED_RARS_FOR_APP_PREFIX=\"required-rars-for-\";\n}",
"public ArrayList<Column> getSchema();",
"public OracleSchema(JdbcTemplate jdbcTemplate, OracleDbSupport dbSupport, String name) {\n super(jdbcTemplate, dbSupport, name);\n }",
"private void printSchema() {\n ArrayList<String> schema = sqlMngr.getSchema();\n\n System.out.println(\"\");\n System.out.println(\"------------\");\n System.out.println(\"Total number of tables: \" + schema.size());\n for (int i = 0; i < schema.size(); i++) {\n System.out.println(\"Table: \" + schema.get(i));\n }\n System.out.println(\"------------\");\n System.out.println(\"\");\n }",
"public String getSchema()\n {\n String schema = \"\";\n if(this.props != null && !this.props.isEmpty())\n {\n schema = this.props.getProperty(\"db.schema\");\n }\n \n return schema;\n }",
"@Override\n public SqlSchema getTableSchema(ExecutionContext context, String tableName) throws ExecutorException {\n int execId = execIdSeq.incrementAndGet();\n Map<String, String> staticConfigs = fetchSamzaSqlConfig(execId);\n Config samzaSqlConfig = new MapConfig(staticConfigs);\n SqlSchema sqlSchema;\n try {\n SqlIOResolver ioResolver = SamzaSqlApplicationConfig.createIOResolver(samzaSqlConfig);\n SqlIOConfig sourceInfo = ioResolver.fetchSourceInfo(tableName);\n RelSchemaProvider schemaProvider =\n SamzaSqlApplicationConfig.initializePlugin(\"RelSchemaProvider\", sourceInfo.getRelSchemaProviderName(),\n samzaSqlConfig, SamzaSqlApplicationConfig.CFG_FMT_REL_SCHEMA_PROVIDER_DOMAIN,\n (o, c) -> ((RelSchemaProviderFactory) o).create(sourceInfo.getSystemStream(), c));\n sqlSchema = schemaProvider.getSqlSchema();\n } catch (SamzaException ex) {\n throw new ExecutorException(ex);\n }\n return sqlSchema;\n }",
"public static void printSchemaStats(java.sql.Connection con, BaseDatabaseVendor vendor, final DatabaseMetaData md,\n final String catalog, final String schemaPattern) {\n\n ResultSet rs;\n\n // Get the list of catalogs\n try {\n writeMessage(\" Getting catalogs\");\n int counter = 0;\n rs = vendor.getCatalogs(con, md);\n writeMessage(\" Catalog Name\");\n while (rs.next()) {\n writeMessage(\" \" + rs.getString(1));\n counter++;\n }\n writeMessage(\"*** Total:\" + counter);\n rs.close();\n } catch (Exception e) {\n logError(\"Exception getting catalogs\", e);\n }\n\n // Get the list of catalogs\n try {\n writeMessage(\" Getting schemas\");\n int counter = 0;\n rs = vendor.getSchemas(con,md);\n writeMessage(\" Schema, Catalog\");\n while (rs.next()) {\n writeMessage(\" \" + rs.getString(1) + \",\" + rs.getString(2));\n counter++;\n }\n writeMessage(\"*** Total:\" + counter);\n rs.close();\n } catch (Exception e) {\n logError(\"Exception getting schemas\", e);\n }\n\n try {\n writeMessage(\" Getting tables\");\n int counter = 0;\n rs = vendor.getTables(con,md, catalog, schemaPattern);\n writeMessage(\" Catalog, Schema, Table Name\");\n while (rs.next()) {\n writeMessage(\" \" + rs.getString(1) + \",\" + rs.getString(2) + \",\"\n + rs.getString(3));\n counter++;\n }\n writeMessage(\"*** Total:\" + counter);\n rs.close();\n } catch (Exception e) {\n logError(\"Exception getting tables\", e);\n }\n\n try {\n writeMessage(\" Getting views\");\n int counter = 0;\n rs = vendor.getViews(con,md, catalog, schemaPattern);\n writeMessage(\" Catalog, Schema, Table Name\");\n while (rs.next()) {\n writeMessage(\" \" + rs.getString(1) + \",\" + rs.getString(2) + \",\"\n + rs.getString(3));\n counter++;\n }\n writeMessage(\"*** Total:\" + counter);\n rs.close();\n } catch (Exception e) {\n logError(\"Exception getting views\", e);\n }\n\n try {\n writeMessage(\" Getting functions\");\n int counter = 0;\n rs = vendor.getFunctions(con,md, catalog, schemaPattern);\n writeMessage(\" Catalog, Schema, Function Name\");\n while (rs.next()) {\n writeMessage(\" \" + rs.getString(1) + \",\" + rs.getString(2) + \",\"\n + rs.getString(3));\n counter++;\n }\n writeMessage(\"*** Total:\" + counter);\n rs.close();\n } catch (Exception e) {\n logError(\"Exception getting functions\", e);\n }\n\n try {\n writeMessage(\" Getting procedures\");\n int counter = 0;\n rs = vendor.getProcedures(con,md, catalog, schemaPattern);\n writeMessage(\" Catalog, Schema, Function Name\");\n while (rs.next()) {\n writeMessage(\" \" + rs.getString(1) + \",\" + rs.getString(2) + \",\"\n + rs.getString(3));\n counter++;\n }\n writeMessage(\"*** Total:\" + counter);\n rs.close();\n } catch (Exception e) {\n logError(\"Exception getting procedures\", e);\n }\n }",
"public SchemaRegistryControllerImpl(MetastoreConfiguration schemaConfig,\n IDataResourceDao dataResourceDao,\n IUrl2PathDao url2PathDao) {\n this.schemaConfig = schemaConfig;\n this.dataResourceDao = dataResourceDao;\n this.url2PathDao = url2PathDao;\n LOG.info(\"------------------------------------------------------\");\n LOG.info(\"------{}\", schemaConfig);\n LOG.info(\"------------------------------------------------------\");\n }",
"public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }",
"public ObjectSchema() {\n }",
"@Override\r\n\tpublic String geSchemaInfoWithPath(Context context, String strSchemaName, String strExportPath) throws Exception {\n\t\treturn null;\r\n\t}",
"public void dbConnector(){\n\t log.info(\"Extracting device information ... \");\n\t dbConnect.getTableInfo(properties.getProperty(\"deviceDetailsTable\"));\n\t deviceName=dbConnect.findValue(\"deviceIP\", deviceIP, \"deviceName\");\n\t log.info(\"deviceName set to \"+deviceName+\" deviceIP= \"+deviceIP);\n\t if(dbConnect.findValue(\"deviceIP\",deviceIP, \"deviceType\").equals(\"CISCO\"))\n\t\t deviceType=RouterType.CISCO;\n\t else\n\t\t deviceType=RouterType.JUNIPER;\n\t log.info(\"deviceType set to \"+deviceType);\n\t devicePassword=dbConnect.findValue(\"deviceIP\", deviceIP, \"devicePassword\");\n\t deviceEnPassword=dbConnect.findValue(\"deviceIP\",deviceIP,\"deviceEnPassword\");\n\t log.info(\"Successfully extracted device data\\nExtracting backupServer details\");\n\t log.info(\"Seraching for backupServerDetailsTable ... \");\n\t dbConnect.getTableInfo(properties.getProperty(\"backupServerDetailsTable\"));\n\t log.info(\"Found the table containing backup server data\");\n\t backupServerIP=properties.getProperty(\"backupServerIP\");\n\t backupServerName=dbConnect.findValue(\"backupServerIP\", properties.getProperty(\"backupServerIP\"), \"backupServerName\");\n\t backupServerPassword=dbConnect.findValue(\"backupServerIP\", properties.getProperty(\"backupServerIP\"), \"backupServerPassword\");\n\t if(dbConnect.findValue(\"backupServerIP\", properties.getProperty(\"backupServerIP\"), \"backupServerType\").equals(\"scp\"))\n\t\t backupServerType=BackupServerType.scp;\n\t else\n\t\t backupServerType=BackupServerType.tftp;\n\t backupServerFolderLocation=dbConnect.findValue(\"backupServerIP\", backupServerIP, \"backupServerFolderLocation\");\n\t if(dbConnect.findValue(\"backupServerIP\", backupServerIP, \"connectionType\").equals(\"TELNET\"))\n\t\t connectionType=ConnectionType.TELNET;\n\t else\n\t\t connectionType=ConnectionType.SSH;\n\t log.info(\"Succesfully collected data about the backup sever IP=\"+backupServerIP+\" folderLoaction=\"+backupServerFolderLocation+\" connection type= \"+connectionType+\" backupServerType= \"+backupServerType+\" username= \"+backupServerName+\" password= ******\");\n }",
"@Override\n protected SourceXmlSchemaHelper setUpSchema(CachedUrl cu) {\n if (ElsevierDTD5PublishingHelper == null) {\n ElsevierDTD5PublishingHelper = new ElsevierDTD5XmlSchemaHelper();\n }\n return ElsevierDTD5PublishingHelper;\n }",
"public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }",
"public String getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"public SchemataRecord() {\n\t\tsuper(com.davidm.mykindlenews.generated.jooq.information_schema.tables.Schemata.SCHEMATA);\n\t}",
"public SchemaCustom getSchemaCustom() {\n return m_schemaCustom;\n }",
"public Schema getSchema() {\n return mSchema;\n }",
"public void setSchemaInstance(String schemaInstance) {\n\t\t\r\n\t}",
"private void createDbRecords() throws IOException, JAXBException {\n }"
] |
[
"0.65404415",
"0.65285605",
"0.6289872",
"0.61557436",
"0.61265504",
"0.60937196",
"0.60616356",
"0.6000618",
"0.598137",
"0.59421194",
"0.59382415",
"0.593286",
"0.58794254",
"0.5847543",
"0.5834506",
"0.582272",
"0.5818779",
"0.5780179",
"0.5775748",
"0.5743",
"0.5743",
"0.5743",
"0.5743",
"0.57407665",
"0.5736023",
"0.5670051",
"0.56625915",
"0.5660942",
"0.56365854",
"0.56166685",
"0.5614786",
"0.5613593",
"0.5602536",
"0.5587867",
"0.5587867",
"0.5582861",
"0.5566427",
"0.55482495",
"0.5547901",
"0.5544321",
"0.5541768",
"0.5528524",
"0.5528524",
"0.55258375",
"0.55228925",
"0.5511978",
"0.5510642",
"0.55016387",
"0.54977965",
"0.54953134",
"0.54888934",
"0.5483589",
"0.54596525",
"0.5449711",
"0.54451615",
"0.54235244",
"0.54008174",
"0.5392489",
"0.5391762",
"0.53886443",
"0.5385004",
"0.5385004",
"0.53758484",
"0.53674793",
"0.5352383",
"0.5352383",
"0.5346781",
"0.5346781",
"0.5342383",
"0.5338649",
"0.53316504",
"0.53278023",
"0.5324819",
"0.53228647",
"0.53167933",
"0.53068507",
"0.5305791",
"0.52960247",
"0.52933264",
"0.5290797",
"0.52855986",
"0.52808285",
"0.5279554",
"0.52758205",
"0.52741504",
"0.526463",
"0.5263348",
"0.5262664",
"0.52616394",
"0.5253806",
"0.52513844",
"0.5251034",
"0.5249586",
"0.52450913",
"0.52450806",
"0.52450806",
"0.52445173",
"0.52431357",
"0.5241383",
"0.52391857",
"0.52338314"
] |
0.0
|
-1
|
Method __connect__customers definition ends here.. Method __disconnect__customers definition
|
public void __disconnect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("id", id);
hashMapObject.put("fk", fk);
invokeStaticMethod("__disconnect__customers", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void __connect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"id\", id);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n\n\n \n \n invokeStaticMethod(\"__connect__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"protected static Connection MySqlCustomersConnection() {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = MySqlConn().getConnection();\n\t\t\treturn conn;\n\t\t}\n\t\tcatch (SQLException sqe){\n\t\t\tsqe.printStackTrace();\n\t\t}\n\t\treturn conn;\n\t}",
"@Override\n public void disconnect() {\n\n }",
"@Override\n\tpublic void disconnect() {\n\n\t}",
"@Override\n\tpublic void disconnect() {\n\n\t}",
"@Override\n public abstract void connect();",
"@Override\n\tpublic void connect() {\n\t\t\n\t}",
"@Override\n\tpublic void connect() {\n\t\t\n\t}",
"private DataConnection() {\n \tperformConnection();\n }",
"public void setDatabaseConnection(Connection customerUI, Integer user, ObservableList<Customer> customer, ObservableList<Appointments> appointments)\n {\n conn = customerUI;\n userID = user;\n customerList = customer;\n appointmentsList = appointments;\n setCountryLabels();\n }",
"public void connect() {}",
"@Override\n\tpublic void disconnect() {\n\t\t\n\t}",
"@Override\n\tpublic void disconnect() {\n\t\t\n\t}",
"@Override\n public void destroyConnectionWithYourTower() {\n }",
"public buyMedicine() {\n initComponents();\n getConnection();\n getConnection1();\n }",
"@Override\r\n\tpublic void disconnect();",
"private static void getConnectionTest() {\n\t\ttry {\r\n\t\t\tConnection conn=CartDao.getConnection();\r\n\t\t\tif(conn==null) System.out.println(\"disconnect\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void disconnect() {\n\t\t\n\t}",
"public void connect();",
"public void connect();",
"public void connect();",
"public void disconnect() {}",
"@Override\r\n protected void onConnected() {\n \r\n }",
"public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }",
"@Override\n public abstract void disconnect();",
"public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}",
"public void initializeConnections(){\n cc = new ConnectorContainer();\n cc.setLayout(null);\n cc.setAutoscrolls(true);\n connections = new LinkedList<JConnector>();\n agents = new LinkedList<JConnector>();\n }",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"void getConnection() {\n }",
"@Override\n public void establishConnectionWithYourTower() {\n }",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public Connector()\n\t{\n\t\tconn = null;\n\t}",
"@Override\n public void Disconnect() {\n bReConnect = true;\n }",
"@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t}",
"@Override\r\n\tpublic void connect() {\n\t\tport=\"tastecard\";\r\n\t\tSystem.out.println(\"This is the implementation of db for the taste card\"+port);\r\n\t}",
"protected void beforeDisconnect() {\n // Empty implementation.\n }",
"public void setConn(Connection conn) {this.conn = conn;}",
"public void disconnect() {\r\n\ttry {\r\n\r\n\t if (isConnected() && conn != null) {\r\n\t\tconn.close();\r\n\r\n\t\tif (countTables() <= 0 && conn.isClosed()) {\r\n\t\t setConnected(false);\r\n\t\t}\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n }",
"public UpdateableDataContext connect(String uname,String pward,String secTocken)\r\n\t{\n\t\tUpdateableDataContext dataContext = new SalesforceDataContext(uname,pward,secTocken);\r\n\t\t\r\n\t\t/*Table accountTable = dataContext.getDefaultSchema().getTableByName(\"Account\");\r\n\t\t \r\n\t\tDataSet dataSet = dataContext.query().from(accountTable).select(\"Id\", \"Name\").where(\"BillingCity\").eq(\"New York\").execute();\r\n\t\t \r\n\t\twhile (dataSet.next()) {\r\n\t\t Row row = dataSet.getRow();\r\n\t\t Object id = row.getValue(0);\r\n\t\t Object name = row.getValue(1);\r\n\t\t System.out.println(\"Account '\" + name + \"' from New York has id: \" + row.getValue(0));\r\n\t\t}\r\n\t\tdataSet.close();*/\r\n\t\treturn dataContext;\r\n\t}",
"protected void onConnect() {}",
"public abstract void disconnect() throws OrmException;",
"@Override\n public void onConnect() {\n connected.complete(null);\n }",
"public void connect() {\n\t\tif (connected) return;\n\t\tconnected = true;\n\t\tfor (SQLConnection sqlConnection: sqlConnections) {\n\t\t\tsqlConnection.connection();\n\t\t}\n\t}",
"protected void onDisconnect() {}",
"public void getConnect() \n {\n con = new ConnectDB().getCn();\n \n }",
"public void reconnected() { }",
"protected abstract void onConnect();",
"public Customer() {\n\t\tcustref++;\n\t}",
"@Override\r\n\t\tpublic void onDisconnect(Connection connection) {\n\r\n\t\t}",
"@Override\r\n\t\tpublic void onConnect(Connection connection) {\n\r\n\t\t}",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"public abstract void connect() throws OrmException;",
"public void connecting() {\n\n }",
"abstract void onConnect();",
"@Override\n\tpublic void reconnect() {\n\n\t}",
"public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }",
"public void connect(String hostname, int port, String username, String database, String password, boolean useSSL, boolean compress, int maxconnections) throws ClassNotFoundException, SQLException {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n tconn.conn.close();\n }\n if (watchDog != null) {\n watchDog.terminate();\n }\n try {\n this.isCompetitionDB = null;\n this.hostname = hostname;\n this.port = port;\n this.username = username;\n this.password = password;\n this.database = database;\n properties = new Properties();\n properties.put(\"user\", username);\n properties.put(\"password\", password);\n properties.put(\"rewriteBatchedStatements\", \"true\");\n //properties.put(\"profileSQL\", \"true\");\n //properties.put(\"traceProtocol\", \"true\");\n //properties.put(\"logger\", \"edacc.model.MysqlLogger\");\n //properties.put(\"useUnbufferedInput\", \"false\");\n //properties.put(\"useServerPrepStmts\", \"true\");\n if (useSSL) {\n properties.put(\"useSSL\", \"true\");\n properties.put(\"requireSSL\", \"true\");\n }\n if (compress) {\n properties.put(\"useCompression\", \"true\");\n }\n /*java.io.PrintWriter w =\n new java.io.PrintWriter(new java.io.OutputStreamWriter(System.out));\n DriverManager.setLogWriter(w);*/\n \n Class.forName(\"com.mysql.jdbc.Driver\");\n this.maxconnections = maxconnections;\n watchDog = new ConnectionWatchDog();\n connections.add(new ThreadConnection(Thread.currentThread(), getNewConnection(), System.currentTimeMillis()));\n watchDog.start();\n } catch (ClassNotFoundException e) {\n throw e;\n } catch (SQLException e) {\n throw e;\n } finally {\n // inform Observers of changed connection state\n this.setChanged();\n this.notifyObservers();\n }\n }",
"public CustomerDatabase(){\n\t\tlist = new ArrayList<Customer>();\n\t}",
"@Override\r\n\tpublic void closeConnection() {\n\t\t\r\n\t}",
"public ColaProdAndes() {\n\t\tdinamicos = new ArrayList();\n\t\tdao = new ConsultaDAO();\n\t\ttry {\n\t\t\t// Inicia el contexto seg�n la interfaz dada por JBOSS.\n\t\t\tHashtable<String, String> env = new Hashtable<String, String>();\n\t\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY,\n\t\t\t\t\t\"org.jnp.interfaces.NamingContextFactory\");\n\t\t\tSystem.out.println(\"CONTEXT FACTORY\");\n\t\t\tenv.put(Context.PROVIDER_URL, \"jnp://localhost:1099\");\n\t\t\tenv.put(Context.URL_PKG_PREFIXES,\n\t\t\t\t\t\"org.jboss.naming:org.jnp.interfaces\");\n\t\t\tSystem.out.println(\"LOCALHOST\");\n\t\t\tctx = new InitialContext(env);\n\t\t\tSystem.out.println(\"CTX \" + ctx);\n\t\t\t// Inicializa los datasource por JNDI.\n\t\t\tds = (DataSource) ctx.lookup(\"java:XAProd\");\n\t\t\tSystem.out.println(\"PASOOOOOO \");\n\t\t\t// Inicializa la fabrica de conexiones JMS.\n\t\t\tconnectionFactory = (SpyConnectionFactory) ctx\n\t\t\t\t\t.lookup(\"ConnectionFactory\");\n\t\t\tSystem.out.println(\"CONNECTION FACTORY\");\n\t\t\t// inicializa la coneccion\n\t\t\tconn = connectionFactory.createConnection();\n\t\t\tSystem.out.println(\"HIZO CONN\");\n\n\t\t\t// inicializa la sesion\n\t\t\tSession session = conn.createSession(false,\n\t\t\t\t\tSession.AUTO_ACKNOWLEDGE);\n\t\t\tSystem.out.println(\"SESSION \");\n\t\t\t// inicializa las colas\n\t\t\tcolaRequests1 = (Queue) ctx.lookup(\"queue/Requests1\");\n\t\t\tMessageConsumer consumer2 = session.createConsumer(colaRequests1);\n\t\t\tconsumer2.setMessageListener(this);\n\n\t\t\tcolaReplies1 = (Queue) ctx.lookup(\"queue/Replies1\");\n\t\t\tMessageConsumer consumer = session.createConsumer(colaReplies1);\n\t\t\tconsumer.setMessageListener(this);\n\n\t\t\tconn.start();\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"ProdAndes - Se cargo el data source & la fabrica de conexiones de forma adecuada..\");\n\n\t\t} catch (Exception e) {\n\t\t\t// Ocurrio un error y se imprimira por consola\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void dbConnector(){\n\t log.info(\"Extracting device information ... \");\n\t dbConnect.getTableInfo(properties.getProperty(\"deviceDetailsTable\"));\n\t deviceName=dbConnect.findValue(\"deviceIP\", deviceIP, \"deviceName\");\n\t log.info(\"deviceName set to \"+deviceName+\" deviceIP= \"+deviceIP);\n\t if(dbConnect.findValue(\"deviceIP\",deviceIP, \"deviceType\").equals(\"CISCO\"))\n\t\t deviceType=RouterType.CISCO;\n\t else\n\t\t deviceType=RouterType.JUNIPER;\n\t log.info(\"deviceType set to \"+deviceType);\n\t devicePassword=dbConnect.findValue(\"deviceIP\", deviceIP, \"devicePassword\");\n\t deviceEnPassword=dbConnect.findValue(\"deviceIP\",deviceIP,\"deviceEnPassword\");\n\t log.info(\"Successfully extracted device data\\nExtracting backupServer details\");\n\t log.info(\"Seraching for backupServerDetailsTable ... \");\n\t dbConnect.getTableInfo(properties.getProperty(\"backupServerDetailsTable\"));\n\t log.info(\"Found the table containing backup server data\");\n\t backupServerIP=properties.getProperty(\"backupServerIP\");\n\t backupServerName=dbConnect.findValue(\"backupServerIP\", properties.getProperty(\"backupServerIP\"), \"backupServerName\");\n\t backupServerPassword=dbConnect.findValue(\"backupServerIP\", properties.getProperty(\"backupServerIP\"), \"backupServerPassword\");\n\t if(dbConnect.findValue(\"backupServerIP\", properties.getProperty(\"backupServerIP\"), \"backupServerType\").equals(\"scp\"))\n\t\t backupServerType=BackupServerType.scp;\n\t else\n\t\t backupServerType=BackupServerType.tftp;\n\t backupServerFolderLocation=dbConnect.findValue(\"backupServerIP\", backupServerIP, \"backupServerFolderLocation\");\n\t if(dbConnect.findValue(\"backupServerIP\", backupServerIP, \"connectionType\").equals(\"TELNET\"))\n\t\t connectionType=ConnectionType.TELNET;\n\t else\n\t\t connectionType=ConnectionType.SSH;\n\t log.info(\"Succesfully collected data about the backup sever IP=\"+backupServerIP+\" folderLoaction=\"+backupServerFolderLocation+\" connection type= \"+connectionType+\" backupServerType= \"+backupServerType+\" username= \"+backupServerName+\" password= ******\");\n }",
"void disconnect();",
"void disconnect();",
"protected DAO()\r\n\t{\r\n\t\tcustomers = new ArrayList<Customer>();\r\n\t}",
"public void setConnection(Connection conn);",
"protected void connectionEstablished() {}",
"public ViewCustomerKamera() {\n initComponents();\n connectDatabase();\n //updateTable();\n }",
"public void clearCustomers()\r\n\t{\r\n\t\tfor(int i=0;i<inStore.size();i++)\r\n\t\t{\r\n\t\t\tcustomers.add(inStore.get(i));\r\n\t\t}\r\n\t\tinStore.clear();\r\n\t}",
"public ServerConnectionWidgetController() {\n\t\tsetUpMVC(model, view);\n\t\tregister(InBankServer.DB_CONNECTED);\n\t\tregister(InBankServer.DB_DISCONNECTED);\n\t\tregister(InBankServer.RMI_CONNECTED);\n\t\tmodel.dbDisconnected();\n\t\tmodel.rmiDisconnected();\n\t}",
"@Override\n\tpublic void onDisconnectDone(ConnectEvent arg0) {\n\t\t\n\t}",
"@Override\r\n protected void connect() {\r\n try {\r\n this.setDatabase();\r\n } catch (SQLException e) {\r\n Log.w(NoteTraitDataSource.class.getName(), \"Error setting database.\");\r\n }\r\n }",
"public abstract void onConnect();",
"private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }",
"public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }",
"public void customerdownloadFromSQL(Connection connection) throws SQLException{\n String sql1 = \"SELECT * FROM customers\";\r\n Statement statement1 = connection.createStatement();\r\n\r\n ResultSet result1 = statement1.executeQuery(sql1);\r\n customers.clear();\r\n while(result1.next()){\r\n int id = result1.getInt(\"id\");\r\n String firstname = result1.getString(\"first_name\");\r\n String lastname = result1.getString(\"last_name\");\r\n int age = result1.getInt(\"age\");\r\n int gender = result1.getInt(\"gender\");\r\n double money = result1.getDouble(\"money\");\r\n\r\n Customer customer = new Customer(firstname,lastname,age,gender,money);\r\n customers.add(customer);\r\n }\r\n }",
"@Override\n \tpublic void connectionClosed() {\n \t\t\n \t}",
"void onDisconnect();",
"void onDisconnect();",
"@Override\n\tpublic void closeConnection() {\n\t\t\n\t}",
"public void disconnect() {\n\t\tdisconnect(true);\n\t}",
"public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"@Override\n public String provideCustomerConnectionId( )\n {\n return _signaleur.getGuid( );\n }",
"@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}",
"private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }",
"protected void afterDisconnect() {\n // Empty implementation.\n }",
"abstract T connect();",
"public void disconnect() {\n\t\tdisconnect(null);\n\t}",
"public Customers(){\r\n \r\n }",
"public CustomerService() {\n\n Customer c1 = new Customer(\"Brian May\", \"45 Dalcassian\", \"[email protected]\", 123);\n Customer c2 = new Customer(\"Roger Taylor\", \"40 Connaught Street\", \"[email protected]\", 123);\n Customer c3 = new Customer(\"John Deacon\", \"2 Santry Avenue\", \"[email protected]\", 123);\n Customer c4 = new Customer(\"Paul McCartney\", \"5 Melville Cove\", \"[email protected]\", 123);\n\n c1.setIdentifier(1);\n c2.setIdentifier(2);\n c3.setIdentifier(3);\n c4.setIdentifier(4);\n customers.add(c1);\n customers.add(c2);\n customers.add(c3);\n customers.add(c4);\n\n c1.addAccount(new Account(101));\n c2.addAccount(new Account(102));\n c2.addAccount(new Account(102));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c3.addAccount(new Account(103));\n c4.addAccount(new Account(104));\n\n }",
"@Override\n public void connect(String name) throws Exception {\n }",
"@Test\r\n public void testloadCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n assertNotNull(lesClients);\r\n }",
"public void disconnect() {\n/* 244 */ this.delegate.disconnect();\n/* */ }",
"public ClientsSpeicher() {\n mDb = new MyArrowDB().getInstance();\n }",
"public DAOCliente() {\n\t\trecursos = new ArrayList<Object>();\n\t}",
"@Override\n\tpublic boolean connect() {\n\t\treturn false;\n\t}",
"public static void disconnect() {\n \t\tconnPool.stop();\n \t}"
] |
[
"0.6129264",
"0.6078721",
"0.6053738",
"0.60336655",
"0.60336655",
"0.6017923",
"0.6009218",
"0.6009218",
"0.59696156",
"0.5949104",
"0.5923319",
"0.5919241",
"0.5919241",
"0.5891548",
"0.5884838",
"0.58694947",
"0.58159626",
"0.5811571",
"0.5791479",
"0.5791479",
"0.5791479",
"0.57836777",
"0.57760465",
"0.57505816",
"0.57504946",
"0.5730228",
"0.5727413",
"0.5719877",
"0.5717822",
"0.56919175",
"0.5676827",
"0.5676827",
"0.5676827",
"0.5676827",
"0.5665065",
"0.5664817",
"0.56637853",
"0.56496346",
"0.56413096",
"0.56171995",
"0.561675",
"0.5600526",
"0.55900437",
"0.55858606",
"0.55749035",
"0.5570363",
"0.5569317",
"0.55686814",
"0.554996",
"0.55478555",
"0.5541602",
"0.55348235",
"0.55314803",
"0.5530688",
"0.5528449",
"0.5518806",
"0.5517871",
"0.55168635",
"0.55055803",
"0.54897803",
"0.54868364",
"0.5477646",
"0.54741544",
"0.5461062",
"0.54577804",
"0.54577804",
"0.54414713",
"0.5440892",
"0.5436802",
"0.54305893",
"0.5422181",
"0.54131114",
"0.5405833",
"0.5380813",
"0.5379649",
"0.5373058",
"0.53717095",
"0.5366479",
"0.5359696",
"0.5353569",
"0.5353569",
"0.53532445",
"0.53484726",
"0.5347611",
"0.534523",
"0.53444463",
"0.53437215",
"0.53433025",
"0.53406346",
"0.5336371",
"0.5333661",
"0.533271",
"0.53326803",
"0.53217953",
"0.53216493",
"0.53165144",
"0.53146183",
"0.5313599",
"0.5309701",
"0.5306639"
] |
0.5786121
|
21
|
Method __disconnect__customers definition ends here.. Method updateQualification definition
|
public void updateQualification( String customerId, DataList<String> qualificationIdList, final ObjectCallback<JSONObject> callback ){
/**
Call the onBefore event
*/
callback.onBefore();
//Definging hashMap for data conversion
Map<String, Object> hashMapObject = new HashMap<>();
//Now add the arguments...
hashMapObject.put("customerId", customerId);
hashMapObject.put("qualificationIdList", qualificationIdList);
invokeStaticMethod("updateQualification", hashMapObject, new Adapter.JsonObjectCallback() {
@Override
public void onError(Throwable t) {
callback.onError(t);
//Call the finally method..
callback.onFinally();
}
@Override
public void onSuccess(JSONObject response) {
callback.onSuccess(response);
//Call the finally method..
callback.onFinally();
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void unlink__customers( String qualificationId, String fk, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n invokeStaticMethod(\"prototype.__unlink__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"public void destroyById__customers( String qualificationId, String fk, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n invokeStaticMethod(\"prototype.__destroyById__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"public void delete__customers( String qualificationId, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n\n \n invokeStaticMethod(\"prototype.__delete__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"public void __disconnect__customers( String id, DataList<String> fk, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"id\", id);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n\n\n \n \n invokeStaticMethod(\"__disconnect__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"public boolean updateCustomer() {\n\t\treturn false;\r\n\t}",
"int updateByPrimaryKey(PcQualificationInfo record);",
"private void endCustomer(MyCustomer customer){ \n\tDo(\"Table \" + customer.tableNum + \" is cleared!\");\n\thost.msgTableIsFree(customer.tableNum);\n\tcustomers.remove(customer);\n\tstateChanged();\n }",
"@Override\n\tpublic void updateCustomerStatus() {\n\t\tfor(int i=0;i<customersInLine.size();i++) {\n\t\t\tif((customersInLine.get(i).getArrival() + customersInLine.get(i).getPatience()) <= this.getCurrentTurn()) {\n\t\t\t\tcustomersInLine.remove(i);\n\t\t\t\tcustomersInRestaurant--;\n\t\t\t\tunsatisfiedCustomers++;\n\t\t\t\ti=-1;\n\t\t\t}\n\t\t}\n\t}",
"void updateCustomerOrderBroadbandASID(CustomerOrderBroadbandASID cobasid);",
"@Override\n\tpublic void update(Customer t) {\n\n\t}",
"int reInitializeCommunities();",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"private void concede() {\n this.claimStatus = new ClaimOrConcession(); // conceded claim\n }",
"public void disconnect() {\n try {\n theCoorInt.unregisterForCallback(this);\n theCoorInt = null;\n }\n catch (Exception e) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"closeSimManager\", \"Exception in unregistering Simulation\" +\n \"Manager from the CAD Simulator.\", e);\n }\n }",
"@Override\n\t/**\n\t * Removes all Coupons from the Coupon table in the database related to\n\t * Customer ID received\n\t */\n\tpublic void deleteCouponsByCustomerID(int custID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to remove Coupons related to specified\n\t\t\t// Customer ID from the Coupon table via prepared statement\n\t\t\tString deleteCouponsByCustomerIDSQL = \"delete from coupon where id in (select couponid from custcoupon where customerid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(deleteCouponsByCustomerIDSQL);\n\t\t\t// Set Customer ID from variable that method received\n\t\t\tpstmt.setInt(1, custID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint resRemByCust3 = pstmt.executeUpdate();\n\t\t\tif (resRemByCust3 != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupons of specified Customer have been deleted from Coupon table successfully\");\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupons related to\n\t\t\t\t// specified Customer not found in the database\n\t\t\t\tSystem.out.println(\"Coupons removal has been failed - subject entries not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon removal from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupons removal has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"public void update(Customer myCust){\n }",
"public void deleteapply(int cid) {\n\t\tcomprehensive c=comprehensiveDao.get(comprehensive.class, cid);\r\n\t\tc.setReason(\"\");\r\n\t\tc.setStatus(2);\r\n\t\tcomprehensiveDao.update(c);\r\n\t\t\r\n\t}",
"protected void afterDisconnect() {\n // Empty implementation.\n }",
"public void notifyChangementCroyants();",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}",
"int updateByPrimaryKeySelective(PcQualificationInfo record);",
"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 }",
"@Override\n public void onDisconnectLegRequest(DisconnectLegRequest ind) {\n\n }",
"@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 void dealapply(int cid) {\n\t\tcomprehensive c=comprehensiveDao.get(comprehensive.class, cid);\r\n\t\tfloat cha=c.getFinal_()-c.getLast();\r\n\t\tcomprehensive_record cRecord=comprehensiveRecordDao.findByStudent(c.getPersonInfo().getStudentid());\r\n\t\tcRecord.setScore(cRecord.getScore()-cha);\r\n\t\tcomprehensiveRecordDao.update(cRecord);\r\n\t\t\r\n\t\tc.setStatus(1);\r\n\t\tcomprehensiveDao.update(c);\r\n\t}",
"public abstract void disconnect() throws OrmException;",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mobile Customer delete()\");\n\t}",
"public void terminate_Account(Citizen citizen)\n\t{\n\t\tPersonalDetails details = citizen.getDetails();\n\t\tString user = citizen.getUsername(), \n\t\t\t pass = citizen.getPassword();\n\t\t\n\t\taccounts.remove(citizen);\n\t\taccounts.add(new Citizen(user, pass));\n\t\taccounts.get(accounts.size() - 1).setPersonalDetails(details);\n\t}",
"public void customerInquiry(short w, short d, int c)\n throws SQLException\n {\n \n PreparedStatement customerInquiry = prepareStatement(\n \"SELECT C_BALANCE, C_FIRST, C_MIDDLE, C_LAST, \" +\n \"C_STREET_1, C_STREET_2, C_CITY, C_STATE, C_ZIP, \" +\n \"C_PHONE \" +\n \"FROM CUSTOMER WHERE C_W_ID = ? AND C_D_ID = ? AND C_ID = ?\");\n \n customerInquiry.setShort(1, w);\n customerInquiry.setShort(2, d);\n customerInquiry.setInt(3, c);\n ResultSet rs = customerInquiry.executeQuery();\n rs.next();\n \n customer.clear();\n customer.setBalance(rs.getString(\"C_BALANCE\"));\n customer.setFirst(rs.getString(\"C_FIRST\"));\n customer.setMiddle(rs.getString(\"C_MIDDLE\"));\n customer.setLast(rs.getString(\"C_LAST\"));\n \n customer.setAddress(getAddress(address, rs, \"C_STREET_1\"));\n \n customer.setPhone(rs.getString(\"C_PHONE\"));\n \n reset(customerInquiry);\n conn.commit();\n }",
"public void setQualificationType(String qualificationType) {\n this.qualificationType = qualificationType;\n }",
"@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Mobile Customer update()\");\n\t}",
"@Override\n\tpublic void disconnect() {\n\n\t}",
"@Override\n\tpublic void disconnect() {\n\n\t}",
"protected void onDisconnect() {}",
"public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}",
"@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}",
"public void update() {\n suggestions = model.getDebtRepaymentSuggestions();\n }",
"public void refreshComboSubjects(){ \r\n bookSubjectData.clear();\r\n updateBookSubjects();\r\n }",
"public void setQualifications(List<Qualification> qualifications) {\n this.qualifications = qualifications;\n }",
"public void prepareUpdate() {\r\n\t\tlog.info(\"prepare for update customer...\");\r\n\t\tMap<String, String> params = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getRequestParameterMap();\r\n\t\tString id = params.get(\"customerIdParam\");\r\n\t\tlog.info(\"ID==\" + id);\r\n\t\tCustomer customer = customerService.searchCustomerById(new Long(id));\r\n\t\tcurrent.setCustomerId(customer.getCustomerId());\r\n\t\tcurrent.setCustomerCode(customer.getCustomerCode());\r\n\t\tcurrent.setCustomerName(customer.getCustomerName());\r\n\t\tcurrent.setTermOfPayment(customer.getTermOfPayment());\r\n\t\tcurrent.setCustomerGrade(customer.getCustomerGrade() != null ? customer.getCustomerGrade() : \"\");\r\n\t\tcurrent.setAddress(customer.getAddress());\r\n\t\tlog.info(\"prepare for update customer end...\");\r\n\t}",
"public void disociarMedidorDeCliente (Cliente c){\r\n\t\t//TODO Implementar metodo\r\n\t}",
"void updateCustomerDDPay(CustomerDDPay cddp);",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-24 16:07:21.635 -0400\", hash_original_method = \"0561F1244FBCC9805D1AE0BB60B97B01\", hash_generated_method = \"0DCFBFD22CC66A3CE57FC05CFE303286\")\n \n public static void closeSupplicantConnection(){\n }",
"public void updateById__customers( String qualificationId, String fk, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"prototype.__updateById__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);\n if(context != null){\n try {\n Method method = customerRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(customerRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //customerRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Customer customer = customerRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = customer.getClass().getMethod(\"save__db\");\n method.invoke(customer);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(customer);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"@Override\n\tpublic void update(ConditionalCharacteristicSpecification acs) {\n\n\t}",
"public void disconnect() {\n\t\tfinal String METHOD = \"disconnect\";\n\t\tLoggerUtility.fine(CLASS_NAME, METHOD, \"Disconnecting from the IBM Watson IoT Platform ...\");\n\t\ttry {\n\t\t\tthis.disconnectRequested = true;\n\t\t\tmqttAsyncClient.disconnect();\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, \"Successfully disconnected \"\n\t\t\t\t\t+ \"from the IBM Watson IoT Platform\");\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void destroyConnectionWithYourTower() {\n }",
"@Override\n\tpublic void disconnect() {\n\t\t\n\t}",
"@Override\n\tpublic void disconnect() {\n\t\t\n\t}",
"@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}",
"int deleteByExample(PcQualificationInfoExample example);",
"public void customerQuery(){\n }",
"public void update(Customer customer) {\n\n\t}",
"@Override\n\tpublic void notifyCustomer() {\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Customer Credit has been Charged more than $400\", \"Warning\",\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t}",
"private final void m118787c(bkcr bkcr) {\n if (getAdapter() instanceof bkcq) {\n ((bkcq) getAdapter()).remove(bkcr);\n }\n }",
"public void updateAttributes( String qualificationId, Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"prototype.updateAttributes\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);\n if(context != null){\n try {\n Method method = qualificationRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(qualificationRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //qualificationRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Qualification qualification = qualificationRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = qualification.getClass().getMethod(\"save__db\");\n method.invoke(qualification);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(qualification);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"@Override\n public void disconnect() {\n\n }",
"public void setQualificationName(String qualificationName) {\n this.qualificationName = qualificationName;\n }",
"public void refreshCompanies() {\n\t\t \n\t\t mDbHelper.refreshTable(mDatabase, MySQLiteHelper.TABLE_COMPANIES);\n\t }",
"@Override\n protected void updateEliminations() {\n\n }",
"public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }",
"@Override\r\n\t\tpublic void onDisconnect(Connection connection) {\n\r\n\t\t}",
"@Override\r\n\tpublic void closeConnection() {\n\t\t\r\n\t}",
"@Override\n public void onFinish() {\n EventBus.getDefault().post(new SyncContactsFinishedEvent());\n //to prevent initial sync contacts when the app is launched for first time\n SharedPreferencesManager.setContactSynced(true);\n stopSelf();\n }",
"public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }",
"void removeAuthorisationsOfCustomer(CustomerModel customer);",
"public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }",
"@Override\n public void onDisconnectLegResponse(DisconnectLegResponse ind) {\n\n }",
"@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n\n enquiryModels.clear();\n enquiryModels.addAll((List) results.values);\n notifyDataSetChanged();\n }",
"@Override\n\tpublic void updateConseille(Conseille c) {\n\t\t\n\t}",
"public void exists__customers( String qualificationId, String fk, final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n\n\n \n \n invokeStaticMethod(\"prototype.__exists__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"public static void setNewCustomer(String rfc, String name, String lastName, Double sal, String address) {\n\t\t\n\t\ttry\n\t\t{\n\t\t\tquery = \"DELETE FROM CREDIT.CUSTOMER WHERE RFC = '\" + rfc + \"'\";\n\t\t\tstmt.executeUpdate(query);\n\t\t\t\n\t\t\tquery = \"INSERT INTO CREDIT.CUSTOMER VALUES(\" + \"'\" + rfc + \"'\" + \", '\" + name + \"'\" + \", '\" + lastName + \"'\" + \", '\"\n\t\t\t\t\t+ getQualification(rfc) + \"'\" + \", sysdate\" + \", \" + sal + \"\" + \", '\" + address + \"'\" + \")\";\n\t\t\tstmt.executeUpdate(query);\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void updateEncuestaConExito() {\n\n\t}",
"protected void beforeDisconnect() {\n // Empty implementation.\n }",
"@Override\r\n\tpublic void Suprremier_rec(reclamation rec) {\n\t\t\r\n\t\treclamations.remove(rec);\r\n\r\n\t}",
"public void confirmRegistration(RegistrationData d) {}",
"@Override\r\n\t@Transactional\r\n\tpublic void update(CodeRangeDis t) {\n\t\t\r\n\t}",
"public void closeAccount() {}",
"public void closeAccount() {}",
"@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t}",
"public void updateAssociates(String uid, String modified_by, String modiedCounter, String strname, String strmob_no, String selectedPhoneType, String selectedIsd_codeType, String strEmail, String selectedSpeciality, String selectedAssociateType, String straddress, String strcity, String selectedState, String strpin, String strdistrict, String dateTimeddmmyyyy, String flag, String nameTitle, String contactForPatient, String selectedIsd_code_altType, String selectedcontactForPatientType) throws ClirNetAppException {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(MODIFIED_BY, modified_by);\n values.put(PHONE_NUMBER, strmob_no);\n values.put(KEY_NAME, strname);\n values.put(PHONE_TYPE, selectedPhoneType);\n values.put(ISD_CODE, selectedIsd_codeType);\n values.put(KEY_EMAIL, strEmail);\n values.put(SPECIALTY, selectedSpeciality);\n values.put(ASSOCIATE_TYPE, selectedAssociateType);\n values.put(ASSOCIATE_ADDRESS, straddress);\n values.put(CITY_TOWN, strcity);\n values.put(ASSOCIATE_STATE, selectedState);\n values.put(PIN_CODE, strpin);\n values.put(DISTRICT, strdistrict);\n values.put(MODIFIED_ON, dateTimeddmmyyyy);\n values.put(FLAG, flag);\n values.put(MODIFIED_COUNTER, modiedCounter);\n values.put(NAME_TITLE, nameTitle);\n values.put(CONTACT_FOR_PATIENT, contactForPatient);\n values.put(\"selectedIsd_code_altType\", selectedIsd_code_altType);\n values.put(\"selectedcontactForPatientType\", selectedcontactForPatientType);\n\n // Inserting Row\n db.update(TABLE_ASSOCIATE_MASTER, values, KEY_ID + \"=\" + uid, null);\n\n } catch (Exception e) {\n throw new ClirNetAppException(\"Error inserting data\");\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n }",
"@Override\n public void onDelectComfireInfo(ServResrouce info)\n {\n }",
"public void m12816c() {\n this.f10116c.getContentResolver().unregisterContentObserver(this.f10122i);\n }",
"@Override\n protected void dispose(boolean finalizing) {\n NSNotificationCenter.getDefaultCenter().removeObserver(this, StoreManager.IAPProductRequestNotification,\n StoreManager.getInstance());\n super.dispose(finalizing);\n }",
"public PreferredCustomer() \n\t{\n\t\tsuper();\n\t\tcustomerPurchase = 0; \n\t}",
"public void assignDiscountType(int acc_no, String discount_type){\n try {\n Stm = conn.prepareStatement(\"UPDATE `bapers`.`Customer` SET Discount_type = ? WHERE Account_no =? AND Customer_type = ?;\");\n Stm.setString(1, discount_type);\n Stm.setInt(2,acc_no);\n Stm.setString(3, \"Valued\");\n Stm.executeUpdate();\n Stm.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"@Override\n public void finish() {\n\n super.finish();\n //construction.updateConstructionZones();\n }",
"@Override\n\t\tpublic void onConnectionSuspended(int arg0) {\n\t\t\tLocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, appLocationService);\n\t\t}",
"@Override\r\n\tpublic void updateTranCode(Purchase Purchase) throws Exception {\n\t\t\r\n\t}",
"@PreRemove\n public void removeCouponFromCustomer(){\n for (Customer customer: purchases){\n customer.getCoupons().remove(this);\n }\n }",
"public void disconnect() {\n\t\t\n\t}",
"@Override\n\t/**\n\t * Removes all Coupons from the Coupon table in the database related to\n\t * Company ID received\n\t */\n\tpublic void deleteCouponsByCompanyID(int compID) throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\n\t\ttry {\n\t\t\t// Defining SQL string to remove Coupons related to specified\n\t\t\t// Company ID from the Coupon table via prepared statement\n\t\t\tString deleteCouponsByCompanyIDSQL = \"delete from coupon where id in (select couponid from compcoupon where companyid = ?)\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(deleteCouponsByCompanyIDSQL);\n\t\t\t// Set Company ID from variable that method received\n\t\t\tpstmt.setInt(1, compID);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute check\n\t\t\tint resRemByComp3 = pstmt.executeUpdate();\n\t\t\tif (resRemByComp3 != 0) {\n\t\t\t\t// If result row count is not equal to zero - execution has been\n\t\t\t\t// successful\n\t\t\t\tSystem.out.println(\"Coupons of specified Company have been deleted from Coupon table successfully\");\n\t\t\t} else {\n\t\t\t\t// Otherwise execution failed due to Coupons related to\n\t\t\t\t// specified Company not found in the database\n\t\t\t\tSystem.out.println(\"Coupons removal has been failed - subject entries not found in the database\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon removal from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupons removal has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\t}",
"public void disconnect()\n\t{\n\t\toriginal = null;\n\t\tsource = null;\n\t\tl10n = null;\n\t}",
"@Override\n public void Disconnect() {\n bReConnect = true;\n }",
"@Override\n\tpublic void updateCustomer(Customer customer) throws Exception{\n\t\tConnection con = pool.getConnection();\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName()== null)\n\t\t\treturn;\n\t\t\t//throws Exception no customer found in DB\n\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tString update = String.format(\"update customer set CUST_NAME=('%s') where id in ('%d')\" +\n\t\t\t\" update customer set PASSWORD=('%s')\"\n\t\t\t\t\t+ \" where id in('%d')\",\n\t\t\t\t\tcustomer.getCustName(),\n\t\t\t\t\tcustomer.getId(),\n\t\t\t\t\tcustomer.getPassword(),\n\t\t\t\t\tcustomer.getId());\n\t\t\t\n\t\t\tst.executeUpdate(update);\n\t\t\tSystem.out.println(\"Customer updated successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to update A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\n\t}",
"public void c() {\n List<DBUserBrief> b2 = this.f16688d.b(this.f16687c.c());\n ArrayList arrayList = new ArrayList();\n for (DBUserBrief a2 : b2) {\n UserBriefInfo userBriefInfo = new UserBriefInfo();\n b.a(a2, userBriefInfo);\n arrayList.add(userBriefInfo);\n }\n com.garena.android.appkit.b.b.a(\"MY_CUSTOMER_LOAD\", new a(arrayList), b.a.NETWORK_BUS);\n }",
"private void saveRolodexInfo() throws Exception{\r\n /* If the function Type is not 'V' then proceed */\r\n if (functionType != 'V') {\r\n \t\r\n \t// JM 7-11-2011 added to validated email format\r\n \tString email = txtEMail.getText().trim();\r\n \ttxtEMail.setText(email);\r\n \tif (txtEMail.getText().length() > 0) {\r\n\t \tEmailValidator ev = new EmailValidator(email);\r\n\t if (!ev.validateEmail()) {\r\n\t String msg = ev.errorMessage();\r\n\t txtEMail.setText(\"\");\r\n\t txtEMail.requestFocus();\r\n\t throw new Exception(msg);\r\n\t }\r\n \t}\r\n \t// END \t\r\n \t\r\n String sponsorName = null;\r\n String sponsorCode =txtSponsorCode.getText().trim();\r\n if (!sponsorCode.trim().equals(\"\")) {\r\n /* Get the sponsor name for the user entered sponsorCode if not\r\n * available inform the user with error message\r\n */\r\n \r\n /**\r\n * Updated for REF ID :0003 Feb'21 2003.\r\n * Hour Glass implementation while DB Trsactions Wait\r\n * by Subramanya Feb' 21 2003\r\n */\r\n dlgWindow.setCursor( new Cursor( Cursor.WAIT_CURSOR ) );\r\n sponsorName = rldxController.getSponsorName(sponsorCode);\r\n //Added for COEUSQA-1434 : Add the functionality to set a status on a Sponsor record - start\r\n SponsorMaintenanceFormBean sponsorMaintenanceFormBean = new SponsorMaintenanceFormBean();\r\n String sponsorStatus = rldxController.getSponsorStatus();\r\n dlgWindow.setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );\r\n if ( (sponsorName ==null) || (sponsorName.trim().equals(CoeusGuiConstants.EMPTY_STRING)) && (!(SPONSOR_INACTIVE_STATUS.equals(sponsorStatus)))) {\r\n String msg = txtSponsorCode.getText().trim() +\r\n \" is invalid sponsor code. Please enter a valid sponsor code.\" ;\r\n lblSponsorName.setText(CoeusGuiConstants.EMPTY_STRING);\r\n txtSponsorCode.requestFocus();\r\n throw new Exception(msg);\r\n }\r\n //Added for COEUSQA-1434 : Add the functionality to set a status on a Sponsor record - end\r\n }\r\n lblSponsorName.setText( trimSponsorName( sponsorName ) );\r\n if (!txtOrganization.getText().trim().equals(\"\") ) {\r\n //Modified for Case#4252 - Rolodex state dropdown associated with country - Start\r\n// boolean saveData =false;\r\n boolean saveData =true;\r\n /* Check if the country is selected USA force the user\r\n * to select state info\r\n */\r\n \r\n// if (((ComboBoxBean)cmbCountry.getSelectedItem()).getCode().equals(\"USA\")) {\r\n// if (((ComboBoxBean)cmbState.getSelectedItem()).getCode().equals(\"\")) {\r\n// saveData =false;\r\n// throw new Exception(\r\n// coeusMessageResources.parseMessageKey(\r\n// \"roldxMntDetFrm_exceptionCode.1105\"));\r\n// \r\n// }else {\r\n// boolean exists = false;\r\n// Vector comboList = rldxBean.getStates();\r\n// int comboLength = comboList.size();\r\n// String selectedState=\r\n// ((ComboBoxBean)cmbState.getSelectedItem()).getCode();\r\n// /* Check the state info entered is in the list if\r\n// * not prompt the error message\r\n// */\r\n// for(int comboIndex=0;comboIndex<comboLength;\r\n// comboIndex++){\r\n// ComboBoxBean listBox =\r\n// (ComboBoxBean)comboList.elementAt(comboIndex);\r\n// if (listBox.getCode().toString().trim().equalsIgnoreCase(selectedState)) {\r\n// exists =true;\r\n// }\r\n// }\r\n// if (!exists) {\r\n// cmbState.requestFocus();\r\n// saveData =false;\r\n// throw new Exception(\r\n// coeusMessageResources.parseMessageKey(\r\n// \"roldxMntDetFrm_exceptionCode.1106\"));\r\n// }else {\r\n// saveData =true;\r\n// }\r\n// }\r\n// }else {\r\n// String selectedState = \"\";\r\n// if (cmbState.getEditor().getEditorComponent() instanceof JTextField){\r\n// //Modified for Case#4252 - Rolodex state dropdown associated with country - Start\r\n//// selectedState=\r\n//// ((JTextField)cmbState.getEditor().getEditorComponent()).getText();\r\n// selectedState = ((ComboBoxBean)cmbState.getSelectedItem()) == null ? CoeusGuiConstants.EMPTY_STRING : ((ComboBoxBean)cmbState.getSelectedItem()).toString();\r\n// //Case#4252 - End\r\n// }\r\n// if ( selectedState.trim().length() > 30) {\r\n// throw new Exception(coeusMessageResources.parseMessageKey(\r\n// \"roldxMntDetFrm_exceptionCode.1144\"));\r\n// }else {\r\n// saveData =true;\r\n// }\r\n// }\r\n //Case#4252 - End\r\n \r\n if (saveData){\r\n //connect to server and get org detail form\r\n requester = new RequesterBean();\r\n requester.setRequestedForm(\"Rolodex Details\");\r\n RolodexDetailsBean rdBean = getRolodexInfo();\r\n if ( (functionType == 'I') || (functionType == 'C') ) {\r\n /* for adding and copying the infor set requester\r\n * function type as 'I' and set the Ac_Type as 'I'.\r\n * This specifies the procedure to insert the record\r\n */\r\n requester.setFunctionType('I');\r\n rdBean.setAcType(\"I\");\r\n }else {\r\n /* for updating the info set requester function\r\n * type as 'U' and set the Ac_Type as 'U'.This\r\n * specifies the procedure to update the existing\r\n * record.\r\n */\r\n requester.setFunctionType('U');\r\n rdBean.setAcType(\"U\");\r\n }\r\n requester.setDataObject(rdBean);\r\n /**\r\n * Updated for REF ID :0003 Feb'21 2003.\r\n * Hour Glass implementation while DB Trsactions Wait\r\n * by Subramanya Feb' 21 2003\r\n */\r\n dlgWindow.setCursor( new Cursor( Cursor.WAIT_CURSOR ) );\r\n ResponderBean res =\r\n rldxController.sendToServer(\"/rolMntServlet\",requester);\r\n dlgWindow.setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );\r\n \r\n this.rldxBean = (RolodexDetailsBean)res.getDataObject();\r\n //added by ravi for implementing oberserver pattern - START\r\n String stateName = \"\";\r\n if (cmbState.getSelectedItem() != null){\r\n stateName = (((ComboBoxBean)cmbState.getSelectedItem()).getDescription());\r\n }\r\n rldxBean.setState( stateName );\r\n rldxBean.setCountry( ((ComboBoxBean)cmbCountry.getSelectedItem()).getDescription() );\r\n observable.setFunctionType(functionType);\r\n observable.notifyObservers(rldxBean);\r\n // added by ravi - END\r\n //coeusqa-1528 start\r\n if(radioInActiveStatus.isSelected()) {\r\n rldxBean.setStatus(INACTIVE_STATUS);\r\n }\r\n else if(radioActiveStatus.isSelected()) {\r\n rldxBean.setStatus(ACTIVE_STATUS);\r\n }\r\n //coeusqa-1528 end\r\n if (res != null ) {\r\n }\r\n if (!res.isSuccessfulResponse()){\r\n CoeusOptionPane.showErrorDialog(res.getMessage());\r\n if (res.isCloseRequired()) {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }else {\r\n return;\r\n }\r\n }\r\n dataSaved = true;\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }else {\r\n txtOrganization.requestFocus();\r\n throw new Exception(coeusMessageResources.parseMessageKey(\r\n \"roldxMntDetFrm_exceptionCode.1107\"));\r\n }\r\n //}\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }"
] |
[
"0.6079061",
"0.58843935",
"0.58034104",
"0.54558927",
"0.5305382",
"0.5278392",
"0.5208451",
"0.5200317",
"0.519703",
"0.5165149",
"0.5135472",
"0.51206136",
"0.5093142",
"0.5093142",
"0.50529206",
"0.50277656",
"0.50233686",
"0.49908596",
"0.49887455",
"0.4981898",
"0.49715248",
"0.4945616",
"0.49430117",
"0.49329802",
"0.49317336",
"0.49297032",
"0.49285132",
"0.49171486",
"0.49116042",
"0.49077553",
"0.4905128",
"0.4904559",
"0.48972547",
"0.48907268",
"0.48907268",
"0.48869225",
"0.4886426",
"0.4873988",
"0.4873454",
"0.4861937",
"0.48539463",
"0.4833461",
"0.48317772",
"0.48302242",
"0.482804",
"0.48209858",
"0.48199055",
"0.48109916",
"0.48094344",
"0.48088068",
"0.48088068",
"0.48081595",
"0.48080808",
"0.48013812",
"0.4800999",
"0.47980565",
"0.4791499",
"0.47856095",
"0.47835",
"0.47760707",
"0.47735956",
"0.47725785",
"0.47650334",
"0.47616807",
"0.47535455",
"0.47523654",
"0.47503188",
"0.47479346",
"0.4746045",
"0.474574",
"0.47454807",
"0.4739777",
"0.47383952",
"0.47301942",
"0.4726802",
"0.4722524",
"0.47218075",
"0.47197947",
"0.4712791",
"0.47085044",
"0.47085044",
"0.47082496",
"0.4706295",
"0.47055778",
"0.4702103",
"0.4700994",
"0.4689415",
"0.46845224",
"0.46821493",
"0.46780056",
"0.46736047",
"0.46629697",
"0.465559",
"0.46529266",
"0.46524537",
"0.4649155",
"0.46463796",
"0.46405616",
"0.4635994",
"0.46340084"
] |
0.594507
|
1
|
TODO Autogenerated method stub
|
@Override
public int getMenCount() {
return 5;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] |
0.0
|
-1
|
Returns the value of the 'Expression' containment reference. If the meaning of the 'Expression' containment reference isn't clear, there really should be more of a description here...
|
Expression getExpression();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Expression getValue();",
"Expression getValue();",
"XExpression getExpression();",
"public Expression getExpression() {\r\n\t\treturn this.expression;\r\n\t}",
"public Node getExpression() {\r\n return expression;\r\n }",
"public Object getExpression();",
"@Nullable\n public Expression getValue() {\n // for *args, **kwargs, this should be 'args' or 'kwargs' identifiers.\n // otherwise the expression after the (optional) '='\n ASTNode node = getNode().getLastChildNode();\n while (node != null) {\n IElementType type = node.getElementType();\n if (BuildElementTypes.EXPRESSIONS.contains(type)) {\n return (Expression) node.getPsi();\n }\n if (type == BuildToken.fromKind(TokenKind.EQUALS)\n || type == BuildToken.fromKind(TokenKind.STAR)\n || type == BuildToken.fromKind(TokenKind.STAR_STAR)) {\n break;\n }\n node = node.getTreePrev();\n }\n return null;\n }",
"public XPathExpression getUnderlyingExpression() {\n return exp;\n }",
"public ExpressionInterface getExpression() {\r\n\t\treturn this.expression;\r\n\t}",
"DExpression getExpression();",
"public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\n }",
"public default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}",
"public Node getExpressionOrigin() {\n return element;\n }",
"public Expression getExpression() {\n \treturn nullCheck;\n }",
"public String getExpression() {\n return _expression;\n }",
"public String getExpression() {\n return expression;\n }",
"public String getExpression() {\n return expression;\n }",
"public String getExpression() {\n return expression;\n }",
"public XPath getValue()\n {\n return m_valueExpr;\n }",
"public PrimaryExpression getExpression()\r\n {\r\n\treturn m_expression;\r\n }",
"public IExpressionPart getExpressionPart()\r\n\t{\r\n\t\treturn expressionPart;\r\n\t}",
"public abstract XPathExpression getExpression();",
"private Expr expression() {\n return assignment();\n }",
"public Expression getExpression() {\n if (this.expression == null) {\n // lazy init must be thread-safe for readers\n synchronized (this) {\n if (this.expression == null) {\n preLazyInit();\n this.expression = new SimpleName(this.ast);\n postLazyInit(this.expression, EXPRESSION_PROPERTY);\n }\n }\n }\n return this.expression;\n }",
"com.google.type.Expr getCelExpression();",
"String getExpression();",
"String getExpression();",
"CriteriaExpression<?> getLeftHandOperand();",
"public org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression getExpression();",
"public CsdlExpression getValue() {\n return value;\n }",
"public String getExpression() {\r\n return tree.infixExpression();\r\n }",
"@Override\n\tpublic boolean isExpression() {\n\t\treturn heldObj.isExpression();\n\t}",
"Expression getExp();",
"Object getExpressionValue(ExpressionParams params);",
"public boolean isExpression (Object value);",
"public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}",
"Object getContainedValue();",
"public Expression asExpression() {\n switch (TYPE) {\n case EXPRESSION:\n return EXPRESSION;\n case IDENTIFIER:\n return new Variable(VALUE);\n case LITERAL:\n if (VALUE.matches(\"\\\\d+\")) {\n return new LInteger(Integer.parseInt(VALUE));\n } else if (VALUE.equals(\"true\") || VALUE.equals(\"false\")) {\n return LBoolean.resolve(VALUE.equals(\"true\"));\n } else if (VALUE.equals(\"null\")) {\n return LNull.NULL;\n } else {\n return new LString(VALUE);\n }\n default:\n throw ErrorLog.get(\"Unexpected symbol '%s'\", VALUE);\n }\n }",
"Expression getRValue();",
"CriteriaExpression<?> getRightHandOperand();",
"LogicExpression getExpr();",
"public String toString() {\n return m_expression;\n }",
"public final ManchesterOWLSyntaxAutoComplete.expression_return expression() {\n ManchesterOWLSyntaxAutoComplete.expression_return retval = new ManchesterOWLSyntaxAutoComplete.expression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.conjunction_return c = null;\n ManchesterOWLSyntaxAutoComplete.expression_return chainItem = null;\n ManchesterOWLSyntaxAutoComplete.conjunction_return conj = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return cpe = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:106:2:\n // ( ^( DISJUNCTION (c= conjunction )+ ) | ^( PROPERTY_CHAIN\n // (chainItem= expression )+ ) | conj= conjunction | cpe=\n // complexPropertyExpression )\n int alt4 = 4;\n switch (input.LA(1)) {\n case DISJUNCTION: {\n alt4 = 1;\n }\n break;\n case PROPERTY_CHAIN: {\n alt4 = 2;\n }\n break;\n case IDENTIFIER:\n case ENTITY_REFERENCE:\n case CONJUNCTION:\n case NEGATED_EXPRESSION:\n case SOME_RESTRICTION:\n case ALL_RESTRICTION:\n case VALUE_RESTRICTION:\n case CARDINALITY_RESTRICTION:\n case ONE_OF: {\n alt4 = 3;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt4 = 4;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 4, 0, input);\n throw nvae;\n }\n switch (alt4) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:4:\n // ^( DISJUNCTION (c= conjunction )+ )\n {\n match(input, DISJUNCTION, FOLLOW_DISJUNCTION_in_expression226);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:19:\n // (c= conjunction )+\n int cnt2 = 0;\n loop2: do {\n int alt2 = 2;\n int LA2_0 = input.LA(1);\n if (LA2_0 >= IDENTIFIER && LA2_0 <= ENTITY_REFERENCE\n || LA2_0 == CONJUNCTION || LA2_0 == NEGATED_EXPRESSION\n || LA2_0 >= SOME_RESTRICTION && LA2_0 <= ONE_OF) {\n alt2 = 1;\n }\n switch (alt2) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:21:\n // c= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression235);\n c = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(c.node.getCompletions());\n }\n }\n break;\n default:\n if (cnt2 >= 1) {\n break loop2;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(2, input);\n throw eee;\n }\n cnt2++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:6:\n // ^( PROPERTY_CHAIN (chainItem= expression )+ )\n {\n match(input, PROPERTY_CHAIN, FOLLOW_PROPERTY_CHAIN_in_expression248);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:24:\n // (chainItem= expression )+\n int cnt3 = 0;\n loop3: do {\n int alt3 = 2;\n int LA3_0 = input.LA(1);\n if (LA3_0 >= IDENTIFIER && LA3_0 <= ENTITY_REFERENCE\n || LA3_0 >= DISJUNCTION && LA3_0 <= NEGATED_EXPRESSION\n || LA3_0 >= SOME_RESTRICTION && LA3_0 <= ONE_OF\n || LA3_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt3 = 1;\n }\n switch (alt3) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:25:\n // chainItem= expression\n {\n pushFollow(FOLLOW_expression_in_expression256);\n chainItem = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(chainItem.node\n .getCompletions());\n }\n }\n break;\n default:\n if (cnt3 >= 1) {\n break loop3;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(3, input);\n throw eee;\n }\n cnt3++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:114:5:\n // conj= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression276);\n conj = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(conj.node\n .getCompletions());\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:118:5:\n // cpe= complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_expression291);\n cpe = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(cpe.node\n .getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }",
"private Expression addressOf (Expression expression) {\n return expression;\n }",
"Expr expr();",
"Expression<T> getValue() {\n return value;\n }",
"EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }",
"public Value getValue() {\n if (!dirty && !expressionUsesTime) {\n return cachedValue;\n }\n try {\n // System.out.print(\"/// {\" + number + \"} calculate \" + element.getTagName() + \"#\" + element.getAttributeNS(null, \"id\")\n // + \".\" + attributeLocalName + \" = \" + expression + \": \");\n // System.out.println(\"Executing XPath: \" + expression);\n // dumpDocument(element.getOwnerDocument(), 0);\n\n // System.out.println(\"[\" + st + \"] \" + expression);\n // long t1 = java.util.Calendar.getInstance().getTime().getTime();\n // for (int i = 0; i < 100; i++) {\n // xpath.execute(constraintEngine.xpathContext, element, prefixResolver);\n // }\n // long t2 = System.currentTimeMillis();\n st++;\n //constraintEngine.xpathContext = new XPathContext(constraintEngine);\n \n \n //xpath = new XPath(expression, prefixResolver);\n //System.out.println(\"Constraint.getValue() width context: \" + constraintEngine.xpathContext);\n //constraintEngine.xpathContext.reset(); // xgx\n XObject xo = xpath.execute(constraintEngine.xpathContext, element, prefixResolver);\n st--;\n // long t3 = System.currentTimeMillis();\n // if (st == 0) {\n // System.out.println(\"evaluation: \" + (t2 - t1) / 100.0);\n // }\n Value v = Value.createValue(/*constraintEngine,*/ xo);\n Value newValue;\n if (type == Value.TYPE_UNKNOWN) {\n newValue = v;\n } else {\n newValue = v.convertTo(type, element);\n }\n if (!newValue.equals(cachedValue)) {\n // System.out.println(newValue);\n cachedValue = newValue;\n // propagate changes\n // System.out.println(\"== propagating:\");\n // System.out.println(\"== getting constraints that depend on \" + element.getNodeName() + \"/@\" + attributeNamespaceURI + \":\" + attributeLocalName);\n propagateChanges(\n constraintEngine.getReverseDependencies(element,\n attributeNamespaceURI, \n attributeLocalName));\n propagateChanges(\n constraintEngine.getReverseDependencies(element,\n null, \n null));\n propagateChanges(\n constraintEngine.getReverseBboxDependencies(element));\n } else {\n // System.out.println(\"unnecessary\");\n }\n // System.out.println(\"Result: \" + cachedValue);\n dirty = false;\n return cachedValue;\n } catch (javax.xml.transform.TransformerException te) {\n constraintEngine.stopTimer();\n throw new ConstraintException(\"Error evaluating XPath expression: \"\n + te.getMessageAndLocation(), te);\n }\n }",
"TrgExpression getPushedValue();",
"Expression eqExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = relExpression();\r\n\t\twhile(isKind(OP_EQ, OP_NEQ)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = relExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"Expr getExpr();",
"@Override\n public String toString() {\n return \"Expression\";\n }",
"public com.vmware.converter.AlarmExpression getExpression() {\r\n return expression;\r\n }",
"@Override\r\n\tpublic BasicDBObject getExpression() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}",
"public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }",
"public Expression getE1() {\r\n return e1;\r\n }",
"public gov.nasa.arc.l2tools.livingstone.code.logic.BasicExpression getExpandedAndInstantiatedExpression() {\n\treturn expandedAndInstantiatedExpression;\n}",
"public final ManchesterOWLSyntaxAutoComplete.propertyExpression_return propertyExpression() {\n ManchesterOWLSyntaxAutoComplete.propertyExpression_return retval = new ManchesterOWLSyntaxAutoComplete.propertyExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER6 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE7 = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return complexPropertyExpression8 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:171:1:\n // ( IDENTIFIER | ENTITY_REFERENCE | complexPropertyExpression )\n int alt8 = 3;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt8 = 1;\n }\n break;\n case ENTITY_REFERENCE: {\n alt8 = 2;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt8 = 3;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 8, 0, input);\n throw nvae;\n }\n switch (alt8) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:172:7:\n // IDENTIFIER\n {\n IDENTIFIER6 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_propertyExpression462);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER6.getText()));\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:176:9:\n // ENTITY_REFERENCE\n {\n ENTITY_REFERENCE7 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE,\n FOLLOW_ENTITY_REFERENCE_in_propertyExpression480);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE7.getText()));\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:180:7:\n // complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_propertyExpression494);\n complexPropertyExpression8 = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable()\n .match(complexPropertyExpression8 != null ? complexPropertyExpression8.node\n .getText() : null));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }",
"@NotNull\n public final Promise<XExpression> calculateEvaluationExpression() {\n return myValueContainer.calculateEvaluationExpression();\n }",
"public String toString() {\n return fullExpression;\n }",
"E getValue();",
"ValueExpression getValueExpression(String attributeName);",
"public T expr(final Expression expression) {\r\n\t\tif (expression.values() == null)\r\n\t\t\treturn expr(expression.expression());\r\n\t\treturn expr(expression.expression(), expression.values()\r\n\t\t\t\t.toArray());\r\n\t}",
"String getContainmentReference();",
"private static Expression retrieveAssignExpressionValue(Expression expression) {\n return retrieveAssignExpression(expression).getValue();\n }",
"public abstract Value getReferenceValue();",
"Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"public static Expression getExpression(Object value) {\n\t\tif (isBool(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprBool((Boolean) value);\n\t\t} else if (isFloat(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprFloat((BigDecimal) value);\n\t\t} else if (isInt(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprInt((BigInteger) value);\n\t\t} else if (isString(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprString((String) value);\n\t\t} else if (isList(value)) {\n\t\t\tExprList list = IrFactory.eINSTANCE.createExprList();\n\t\t\tint length = Array.getLength(value);\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\tlist.getValue().add(getExpression(Array.get(value, i)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"OclExpression getArgument();",
"public XbaseGrammarAccess.XParenthesizedExpressionElements getXParenthesizedExpressionAccess() {\r\n\t\treturn gaXbase.getXParenthesizedExpressionAccess();\r\n\t}",
"public XbaseGrammarAccess.XParenthesizedExpressionElements getXParenthesizedExpressionAccess() {\n\t\treturn gaXbase.getXParenthesizedExpressionAccess();\n\t}",
"public XbaseGrammarAccess.XParenthesizedExpressionElements getXParenthesizedExpressionAccess() {\n\t\treturn gaXbase.getXParenthesizedExpressionAccess();\n\t}",
"public Type getExpressionType();",
"public E value()\r\n\t// post: returns value associated with this node\r\n\t{\r\n\t\treturn val;\r\n\t}",
"public Number getOperand() {\n return (Number)getAttributeInternal(OPERAND);\n }",
"public Xnode getLhs() {\n return child(Xnode.LHS);\n }",
"@Override\n public Expression toExpression()\n {\n return new ComparisonExpression(getType(this.compareType), lvalue.toExpression(), rvalue.toExpression());\n }",
"private Expression toExpression() {\n Expression lhs = null, rhs = null;\n if (base instanceof DerefSymbol) {\n lhs = ((DerefSymbol)base).toExpression();\n } else if (base instanceof AccessSymbol) {\n lhs = ((AccessSymbol)base).toExpression();\n } else if (base instanceof Identifier) {\n lhs = new Identifier(base);\n } else {\n PrintTools.printlnStatus(0,\n \"[WARNING] Unexpected access expression type\");\n return null;\n }\n rhs = new Identifier(member);\n return new AccessExpression(lhs, AccessOperator.MEMBER_ACCESS, rhs);\n }",
"public E getValue() {\n\t\treturn value;\n\t}",
"public int evaluate(){\r\n\t\tString value = expressionTree.getValue();\r\n\t\tint result = 0;\r\n\t\tif (isNumber(value)){\r\n\t\t\treturn stringToNumber(value);\r\n\t\t}\r\n\t\tif (value.equals(\"+\")){\r\n\t\t\tresult = 0;\r\n\t\t\tfor (Iterator<Tree<String>> i = expressionTree.iterator(); i.hasNext();){\r\n\t\t\t\tresult += (new Expression(i.next().toString())).evaluate();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (value.equals(\"*\")){\r\n\t\t\tresult = 1;\r\n\t\t\tfor (Iterator<Tree<String>> i = expressionTree.iterator(); i.hasNext();){\r\n\t\t\t\tresult *= (new Expression(i.next().toString())).evaluate();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (value.equals(\"-\")){\r\n\t\t\tresult = (new Expression(expressionTree.getChild(0).toString())).evaluate() -\r\n\t\t\t(new Expression(expressionTree.getChild(1).toString())).evaluate();\r\n\t\t}\r\n\t\tif (value.equals(\"/\")){\r\n\t\t\tresult = (new Expression(expressionTree.getChild(0).toString())).evaluate() /\r\n\t\t\t(new Expression(expressionTree.getChild(1).toString())).evaluate();\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public int getExpressionId() {\n return this.id;\n }",
"public Expression getAccessExpression()\r\n {\r\n\treturn m_accessExpression;\r\n }",
"public interface CompositeExpression extends Expression {\n\n\t/**\n\t * Returns the list of current subexpressions; null if none\n\t */\n\tArrayList<Expression> getChildren();\n\n\t/**\n\t * Adds a subexpression\n\t */\n\tExpression addChild(boolean composite);\n\n\t/**\n\t * Removes a subexpression\n\t */\n\tvoid removeChild(Expression e);\n}",
"public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}",
"public static Object getValue(Expression expr) {\n\t\tif (expr != null) {\n\t\t\tif (expr.isExprBool()) {\n\t\t\t\treturn ((ExprBool) expr).isValue();\n\t\t\t} else if (expr.isExprFloat()) {\n\t\t\t\treturn ((ExprFloat) expr).getValue();\n\t\t\t} else if (expr.isExprInt()) {\n\t\t\t\treturn ((ExprInt) expr).getValue();\n\t\t\t} else if (expr.isExprString()) {\n\t\t\t\treturn ((ExprString) expr).getValue();\n\t\t\t} else if (expr.isExprList()) {\n\t\t\t\tthrow new OrccRuntimeException(\n\t\t\t\t\t\t\"list type not supported yet in getValue\");\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static Expression referenceEqual(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.Equal, expression0, expression1);\n }",
"public abstract Expression getInitialExpression();",
"public CompoundExpression getParent (){\n return _parent;\n }",
"public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}",
"FullExpression createFullExpression();",
"public boolean evaluate() {\r\n\t\t\tif (this.isKnownValue()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// handle the case when this.getValue() is null\r\n\t\t\tif (this.getValue() == null) {\r\n\t\t\t\t// if the value is null, then we just need to see if expected evaluation is also null\r\n\t\t\t\treturn this.getCurrentEvaluation() == null;\r\n\t\t\t}\r\n\t\t\t// if entities have the same name, they are equals.\r\n\t\t\tif (this.getCurrentEvaluation().getName().equalsIgnoreCase(this.getValue().getName())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"Expression getBindingExpression();",
"@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}",
"public String toString() {\n if (mExpression.size() == 1 && mExpression.get(0).startsWith(\"-\")) {\n return mExpression.get(0);\n }\n\n StringBuilder output = new StringBuilder();\n boolean first = true;\n int size = mExpression.size();\n\n for (int i = 0; i < size; i++) {\n String element = mExpression.get(i);\n\n if (first) {\n first = false;\n } else {\n output.append(\"\");\n }\n\n\n if (isOperand(element) && element.startsWith(\"-\")) {\n output.append(\"(\")\n .append(element)\n .append(\")\");\n } else {\n output.append(element);\n }\n }\n\n return output.toString();\n }",
"protected Expression buildExpression() {\r\n ExpressionBuilder builder = new ExpressionBuilder();\r\n\r\n return builder.getField(getWriteLockField()).equal(builder.getParameter(getWriteLockField()));\r\n }",
"public Expression getExpression() {\n return optionalConditionExpression; }"
] |
[
"0.70037025",
"0.70037025",
"0.66962683",
"0.66294223",
"0.65888715",
"0.65805167",
"0.6576622",
"0.6521752",
"0.6429465",
"0.64220047",
"0.63964176",
"0.6355739",
"0.6345876",
"0.62771237",
"0.6208891",
"0.614135",
"0.614135",
"0.614135",
"0.61333007",
"0.6114418",
"0.60868794",
"0.6084033",
"0.605412",
"0.60090387",
"0.60005784",
"0.5978951",
"0.5978951",
"0.59715486",
"0.59656155",
"0.5934198",
"0.59296477",
"0.5887203",
"0.58411616",
"0.5829252",
"0.5810736",
"0.5793383",
"0.5787282",
"0.5785237",
"0.577711",
"0.5764507",
"0.5763328",
"0.5749098",
"0.56881714",
"0.5688155",
"0.56856865",
"0.56599253",
"0.5650803",
"0.56335115",
"0.5630465",
"0.56272924",
"0.5612977",
"0.56028336",
"0.5539441",
"0.5535985",
"0.5531126",
"0.5521183",
"0.55180985",
"0.54590344",
"0.54271036",
"0.5398073",
"0.53835547",
"0.5381053",
"0.5311115",
"0.53088367",
"0.53050244",
"0.52876365",
"0.5283094",
"0.526388",
"0.52422285",
"0.51816005",
"0.51757824",
"0.514394",
"0.514394",
"0.5142188",
"0.5122129",
"0.5106011",
"0.5095241",
"0.5090658",
"0.5072424",
"0.50724167",
"0.5072311",
"0.50685155",
"0.5062017",
"0.50504076",
"0.5039889",
"0.5033942",
"0.5027086",
"0.50211555",
"0.50207996",
"0.5019734",
"0.5018782",
"0.5017921",
"0.50061166",
"0.5004537",
"0.5004413",
"0.49994895",
"0.49884117"
] |
0.6743059
|
5
|
Returns the value of the 'Assign op' containment reference. If the meaning of the 'Assign op' containment reference isn't clear, there really should be more of a description here...
|
assign_op getAssign_op();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Long getAssignOperatorId() {\n return assignOperatorId;\n }",
"@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }",
"@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }",
"public Assignment getOperatorAssignment_2() { return cOperatorAssignment_2; }",
"public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }",
"@Override\r\n\tpublic Object visit(YoyooAssignmentOperator node, Object data) {\r\n\t\tassignOptMark = new OperatorMark(node.first_token.image);\r\n\t\treturn null;\r\n\t}",
"private boolean onlyOneAssign(ILogicalOperator op, List<AssignOperator> assignOps) {\n if (op.getOperatorTag() == LogicalOperatorTag.ASSIGN) {\n AssignOperator aOp = (AssignOperator) op;\n assignOps.add(aOp);\n op = op.getInputs().get(0).getValue();\n }\n return (joinClause(op));\n }",
"private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }",
"protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }",
"@Override\n public ExprType analyzeAssign(AnalyzeInfo info, ExprGenerator value)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n objGen.analyze(info);\n\n value.analyze(info);\n\n // php/3a6e, php/39o3\n // objGen.analyzeSetReference(info);\n objGen.analyzeSetModified(info);\n\n return ExprType.VALUE;\n }",
"public XbaseGrammarAccess.OpMultiAssignElements getOpMultiAssignAccess() {\r\n\t\treturn gaXbase.getOpMultiAssignAccess();\r\n\t}",
"public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }",
"public XbaseGrammarAccess.OpMultiAssignElements getOpMultiAssignAccess() {\n\t\treturn gaXbase.getOpMultiAssignAccess();\n\t}",
"public XbaseGrammarAccess.OpMultiAssignElements getOpMultiAssignAccess() {\n\t\treturn gaXbase.getOpMultiAssignAccess();\n\t}",
"public Assign createAssign(Position pos, Expr target, Operator op, Expr source) {\n return (Assign) xnf.Assign(pos, target, op, source).type(target.type());\n }",
"public Integer visitAssign(ExprParser.AssignContext ctx) {\n String id = ctx.ID().getText();\n int value = visit(ctx.expr());\n memory.put(id, value);\n return value;\n }",
"public String getAssignType() {\n return assignType;\n }",
"public void getAssignment() {\n \n }",
"private static Expression retrieveAssignExpressionValue(Expression expression) {\n return retrieveAssignExpression(expression).getValue();\n }",
"@Override\n\tpublic String visitAssignst(AssignstContext ctx) {\n\t\tParseTree cur = ctx.getChild(0);\n\t\tString left = null;\n\t\tString right = null;\n\t\tif(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\tleft = id.getReturnType();\n\t\t}\n\t\telse {left = visit(cur);}\n\t\tright = visit(ctx.getChild(2));\n\t\tif(right.equals(left)){\t\t\t\n\t\t\treturn right;\t\t\t\n\t\t}\n\t\telse throw new RuntimeException(\"Not the same type in left and right of Assign\");\n\t}",
"@Override\n public void visit(final OpAssign opAssign) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpAssign\");\n }\n addOp(OpAssign.assign(rewriteOp1(opAssign), opAssign.getVarExprList()));\n }",
"public Operator operator() {\n\treturn this.op;\n }",
"public boolean isAssignment() {\n\t\treturn true;\n\t}",
"public KSMemberBaseAssignment assignment() {\n return assignment;\n }",
"@Override\n public String visit(AssignExpr n, Object arg) {\n return null;\n }",
"public String getDirectAssignmentString() {\r\n return this.directAssignmentString;\r\n }",
"private Expr visitLocalAssign(LocalAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Local left = (Local) n.left();\n Expr right = n.right();\n Type R = left.type();\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }",
"private Operation expression(Scope scope, Vector queue)\r\n {\r\n Operation root = expression1(scope, queue);\r\n\r\n if (assign.contains(nextSymbol))\r\n {\r\n Operation op = new Operation();\r\n\r\n op.left = root;\r\n\r\n op.operator = assignmentOperator();\r\n op.right = expression(scope, queue);\r\n\r\n root = op;\r\n }\r\n\r\n return root;\r\n }",
"public boolean equals(AssignOpType t) {\n\t\treturn this.toString().equals(t.toString());\n\t}",
"protected Element evalAssurance(Assurance ass){\n\t\tRecord r1 = ass.getLeftRecord();\n\t\tRecord r2 = ass.getRightRecord();\n\t\tOperator op = ass.getOperator();\n\t\tElement an = el(\"bpws:assign\");\n\t\tif (r1.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r1.getFormular(), \"nswomoxsd:leftValue\"));\n\t\tif (r2.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r2.getFormular(), \"nswomoxsd:rightValue\"));\n\t\tan.appendChild(\n\t\t\tsetExpr(\n\t\t\t\tgetMyVarPath(\"/nswomoxsd:leftValue\") + \n\t\t\t\top.value() +\n\t\t\t\tgetMyVarPath(\"nswomoxsd:rightValue\"),\n\t\t\t\t\"nswomoxsd:value\"\n\t\t\t)\n\t\t);\n\t\treturn an;\n\t}",
"public String getAssignno() {\n return assignno;\n }",
"public String operator() {\n return this.operator;\n }",
"@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}",
"public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}",
"public LlvmValue visit(Assign n){\n\t\t\n\t\tSystem.out.format(\"assign********\\n\");\n\t\t\n\t\tLlvmValue rhs = n.exp.accept(this);\n\t\tLlvmRegister returns;\n\t\t//Nesta parte, para retornarmos o tipo certo, tivemos que converter todos os parametros do tipo\n\t\t//[ A x iB] para ponteiros. o Assembly reclamava quando tinha algum store ou algo do genero com tipos\n\t\t// diferentes\n\t\tif(rhs.type.toString().contains(\"x i\")){\n\t\t\t//System.out.format(\"expressao de rhs envolve arrays. fazendo casting...\\n\");\n\t\t\t\n\t\t\t//Fazer bitcast\n\t\t\tif(rhs.type.toString().contains(\" x i32\")){\n\t\t\t\treturns = new LlvmRegister(LlvmPrimitiveType.I32PTR);\n\t\t\t}else if(rhs.type.toString().contains(\" x i8\")){\n\t\t\t\treturns = new LlvmRegister(new LlvmPointer(LlvmPrimitiveType.I8));\n\t\t\t//Esse else eh meio inutil, mas pelo fato de eu querer usar elseif, deixei ele aqui mesmo.\n\t\t\t}else{\n\t\t\t\treturns = new LlvmRegister(rhs.type);\n\t\t\t}\n\t\t\t\n\t\t\tassembler.add(new LlvmBitcast(returns, rhs, returns.type));\n\t\t\tassembler.add(new LlvmStore(returns, n.var.accept(this)));\n\t\t}else{\n\t\t\t//Caso o tipo ja esteja ok, soh damos store com o rhs mesmo.\n\t\t\tassembler.add(new LlvmStore(rhs, n.var.accept(this)));\n\t\t}\n\t\treturn null;\n\t}",
"public Operator getOp() {\n return op;\n }",
"public String getAssignid() {\n return assignid;\n }",
"public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }",
"private ILogicalOperator addRemainingAssignsAtTheTop(ILogicalOperator op, List<AssignOperator> assignOps) {\n ILogicalOperator root = op;\n for (AssignOperator aOp : assignOps) {\n aOp.getInputs().get(0).setValue(root);\n root = aOp;\n }\n return root;\n }",
"Assign createAssign();",
"public final Operator operator() {\n return operator;\n }",
"private ILogicalOperator addAssignToLeafInput(ILogicalOperator leafInput, AssignOperator aOp) {\n aOp.getInputs().get(0).setValue(leafInput);\n return aOp;\n }",
"@Override\n\tpublic Object visit(ASTAssign node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" := \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}",
"private Expr expression() {\n return assignment();\n }",
"public final void ruleOpSingleAssign() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:299:2: ( ( '=' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:300:1: ( '=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:300:1: ( '=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:301:1: '='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n match(input,11,FOLLOW_11_in_ruleOpSingleAssign580); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public XbaseGrammarAccess.OpEqualityElements getOpEqualityAccess() {\r\n\t\treturn gaXbase.getOpEqualityAccess();\r\n\t}",
"public final void ruleOpMultiAssign() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:329:2: ( ( '+=' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:330:1: ( '+=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:330:1: ( '+=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:331:1: '+='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \n }\n match(input,12,FOLLOW_12_in_ruleOpMultiAssign642); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final SymbolNode getOperator() { return this.operator; }",
"public XbaseGrammarAccess.OpEqualityElements getOpEqualityAccess() {\n\t\treturn gaXbase.getOpEqualityAccess();\n\t}",
"public XbaseGrammarAccess.OpEqualityElements getOpEqualityAccess() {\n\t\treturn gaXbase.getOpEqualityAccess();\n\t}",
"@Override\n\tpublic Void visit(Assign assign) {\n\t\tprintIndent(\"<-\");\n\t\tindent++;\n\t\tassign.id.accept(this);\n\t\tassign.expr.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"public String getOp() {\n return op;\n }",
"public String getOp() {\n return op;\n }",
"public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"static InfixExpression.Operator assignmentToInfix(final Assignment.Operator o) {\n return o == PLUS_ASSIGN ? InfixExpression.Operator.PLUS\n : o == MINUS_ASSIGN ? MINUS\n : o == TIMES_ASSIGN ? TIMES\n : o == DIVIDE_ASSIGN ? DIVIDE\n : o == BIT_AND_ASSIGN ? AND\n : o == BIT_OR_ASSIGN ? OR\n : o == BIT_XOR_ASSIGN ? XOR\n : o == REMAINDER_ASSIGN ? REMAINDER\n : o == LEFT_SHIFT_ASSIGN ? LEFT_SHIFT\n : o == RIGHT_SHIFT_SIGNED_ASSIGN ? RIGHT_SHIFT_SIGNED\n : o == RIGHT_SHIFT_UNSIGNED_ASSIGN ? RIGHT_SHIFT_UNSIGNED : null;\n }",
"public void setAssignOperatorId(Long assignOperatorId) {\n this.assignOperatorId = assignOperatorId;\n }",
"public Stmt createAssignment(Position pos, Expr target, Operator op, Expr source) {\n return createAssignment(createAssign(pos, target, op, source));\n }",
"public T caseAssignPlus(AssignPlus object)\n {\n return null;\n }",
"public Operator getOperator()\n {\n return operator;\n }",
"public boolean visit(ExtensionAssignOperation extensionAssignOperation) {\n return false;\n }",
"public Operator getOperator() {\n return this.operator;\n }",
"@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}",
"public final void mMULTIPLY_ASSIGN() throws RecognitionException {\n try {\n int _type = MULTIPLY_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:232:2: ( '*=' )\n // /Users/benjamincoe/HackWars/C.g:232:4: '*='\n {\n match(\"*=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"public String getOperator()\r\n {\r\n return operator;\r\n }",
"public ScaleRuleMetricDimensionOperationType operator() {\n return this.operator;\n }",
"public int getOp() {\n\t\treturn op;\n\t}",
"@Override\n\tpublic Object visitStatement_Assign(Statement_Assign statement_Assign, Object arg) throws Exception {\n\t\tif(statement_Assign.lhs.getTypeName().isType(Type.INTEGER) ||statement_Assign.lhs.getTypeName().isType(Type.BOOLEAN) ){\n\t\t\tstatement_Assign.e.visit(this, arg);\t\t\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t}\n\t\telse if(statement_Assign.lhs.getTypeName().isType(Type.IMAGE)){\n\t\t\t//if(statement_Assign.lhs.isCartesian){\n\t\t\t\tmv.visitFieldInsn(GETSTATIC, className, statement_Assign.lhs.name, ImageSupport.ImageDesc);\n\t\t\t\tmv.visitInsn(DUP);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getX\", ImageSupport.getXSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 3);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getY\", ImageSupport.getYSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 4);\t\t\t\t\n\t\t\t//}\n\t\t\t\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 1);\n\t\t\tLabel l1 = new Label();\n\t\t\tmv.visitLabel(l1);\n\t\t\tLabel l2 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l2);\n\t\t\tLabel l3 = new Label();\n\t\t\tmv.visitLabel(l3);\n\t\t\tmv.visitLineNumber(11, l3);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 2);\n\t\t\tLabel l4 = new Label();\n\t\t\tmv.visitLabel(l4);\n\t\t\tLabel l5 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l5);\n\t\t\tLabel l6 = new Label();\n\t\t\tmv.visitLabel(l6);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\t\n\t\t\tstatement_Assign.e.visit(this, arg);\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t\t\n\t\t\tmv.visitIincInsn(2, 1);\n\t\t\tmv.visitLabel(l5);\n\t\t\tmv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 2);\n\t\t\tmv.visitIntInsn(ILOAD, 4); // Y MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l6);\n\t\t\tLabel l7 = new Label();\n\t\t\tmv.visitLabel(l7);\n\t\t\tmv.visitIincInsn(1, 1);\n\t\t\tmv.visitLabel(l2);\n\t\t\tmv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 1);\n\t\t\tmv.visitIntInsn(ILOAD, 3); // X MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l3);\n\t\t}\n\t\treturn null;\n\t}",
"@Test\r\n public void testApplyTo() throws Exception {\r\n// System.out.println(\"applyTo\");\r\n// Expression leftOperand = new Literal(new Value(\"B1\"));\r\n// Expression rightOperand = new Literal(new Value(5));\r\n// Assignment instance = new Assignment();\r\n// Value expResult = new Value(5);\r\n// Value result = instance.applyTo(leftOperand, rightOperand);\r\n// assertEquals(expResult.toText(), result.toText());\r\n }",
"public boolean associates(Operator op){\n\t return false;\n }",
"public String getAssignmentName() {\n return this.assignmentName;\n }",
"public static BinaryExpression assign(Expression left, Expression right) { throw Extensions.todo(); }",
"public java.lang.Integer getOperator() {\n\treturn operator;\n}",
"String getOp();",
"String getOp();",
"String getOp();",
"@FunctionalInterface\n\tpublic interface Assignment<V> {\n\t\tV set(Program p,V v);\n\t}",
"public final void ruleOpSingleAssign() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:517:2: ( ( '=' ) )\r\n // InternalDroneScript.g:518:2: ( '=' )\r\n {\r\n // InternalDroneScript.g:518:2: ( '=' )\r\n // InternalDroneScript.g:519:3: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n match(input,13,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public boolean isDirectAssignment() {\r\n return GrouperUtil.booleanValue(this.directAssignmentString, false);\r\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"private void assignment() {\n\n\t\t\t}",
"public User getOperator () {\n\t\treturn operator;\n\t}",
"public final void mDECREMENT_ASSIGN() throws RecognitionException {\n try {\n int _type = DECREMENT_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:230:2: ( '-=' )\n // /Users/benjamincoe/HackWars/C.g:230:4: '-='\n {\n match(\"-=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public String visit(AssignmentStatement n, LLVMRedux argu) throws Exception {\n String Identifier = n.f0.accept(this, argu);\n String storeArg1 = u.decodeIdentifier(Identifier);\n String type = u.getIdentifierType(Identifier);\n String storeArg2 = n.f2.accept(this, argu);\n u.println(\"store \"+u.javaTypeToLLVMType(type)+\" \"+storeArg2+\", \"+u.pointer(u.javaTypeToLLVMType(type))+\" \"+storeArg1);\n return storeArg1;\n }",
"public Assignment.Operator getReverse(Assignment.Operator op) {\n if (op == Assignment.Operator.PLUS_ASSIGN)\n return Assignment.Operator.MINUS_ASSIGN;\n else if (op == Assignment.Operator.MINUS_ASSIGN)\n return Assignment.Operator.PLUS_ASSIGN;\n else if (op == Assignment.Operator.TIMES_ASSIGN)\n return Assignment.Operator.DIVIDE_ASSIGN;\n else if (op == Assignment.Operator.DIVIDE_ASSIGN)\n return Assignment.Operator.TIMES_ASSIGN;\n else\n return op;\n }",
"public Long getAssignOrgId() {\n return assignOrgId;\n }",
"public int getOperatorNum() {\n return operatorNum;\n }",
"public JCExpressionStatement makeAssignment(JCExpression lhs, JCExpression rhs) {\n return treeMaker.Exec(treeMaker.Assign(lhs, rhs));\n }",
"@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }",
"public final void ruleOpMultiAssign() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:412:2: ( ( '+=' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:413:1: ( '+=' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:413:1: ( '+=' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:414:1: '+='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \r\n }\r\n match(input,15,FOLLOW_15_in_ruleOpMultiAssign822); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__AddExp__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8345:1: ( ( ( rule__AddExp__OpAssignment_1_1 ) ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8346:1: ( ( rule__AddExp__OpAssignment_1_1 ) )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8346:1: ( ( rule__AddExp__OpAssignment_1_1 ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8347:1: ( rule__AddExp__OpAssignment_1_1 )\n {\n before(grammarAccess.getAddExpAccess().getOpAssignment_1_1()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8348:1: ( rule__AddExp__OpAssignment_1_1 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8348:2: rule__AddExp__OpAssignment_1_1\n {\n pushFollow(FOLLOW_rule__AddExp__OpAssignment_1_1_in_rule__AddExp__Group_1__1__Impl16759);\n rule__AddExp__OpAssignment_1_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAddExpAccess().getOpAssignment_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n public void visit(VariableAssignNode variableAssignNode) {\n }",
"public BigDecimal getOperator() {\n return operator;\n }"
] |
[
"0.6772184",
"0.6767813",
"0.66189516",
"0.6410031",
"0.6218059",
"0.62178487",
"0.6206518",
"0.61916876",
"0.607589",
"0.6068688",
"0.60531414",
"0.6030414",
"0.600461",
"0.600461",
"0.5995957",
"0.5938861",
"0.59014827",
"0.5896417",
"0.58855456",
"0.58790356",
"0.58731896",
"0.58349586",
"0.57874095",
"0.57413256",
"0.5738665",
"0.57323706",
"0.5710437",
"0.57063097",
"0.56838423",
"0.5642432",
"0.5631348",
"0.5630272",
"0.56235754",
"0.56190205",
"0.56159294",
"0.55995554",
"0.55992484",
"0.5592136",
"0.5561684",
"0.55601484",
"0.55276436",
"0.5523452",
"0.550823",
"0.55051374",
"0.5504419",
"0.54932725",
"0.5472312",
"0.5463725",
"0.54629946",
"0.54629946",
"0.5442438",
"0.54150325",
"0.54150325",
"0.54140544",
"0.5402815",
"0.53837335",
"0.5381756",
"0.5374008",
"0.5365378",
"0.5346527",
"0.5343663",
"0.5341509",
"0.53369594",
"0.53331476",
"0.533154",
"0.52932024",
"0.5283443",
"0.5275578",
"0.5262686",
"0.5256069",
"0.5250814",
"0.52400637",
"0.5238305",
"0.5238305",
"0.5238305",
"0.5225591",
"0.5223973",
"0.52213687",
"0.5219271",
"0.5214653",
"0.5214653",
"0.5214653",
"0.5214653",
"0.5214653",
"0.5214653",
"0.5204696",
"0.5198743",
"0.51966345",
"0.5195031",
"0.5195031",
"0.5169263",
"0.516272",
"0.51497084",
"0.5148057",
"0.51451933",
"0.5140828",
"0.5135163",
"0.5134485",
"0.51291215",
"0.5126791"
] |
0.7859097
|
0
|
Returns the value of the 'Expression List' containment reference. If the meaning of the 'Expression List' containment reference isn't clear, there really should be more of a description here...
|
ExpressionList getExpressionList();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@ASTNodeAnnotation.ListChild(name=\"Expr\")\n public List<Expr> getExprList() {\n List<Expr> list = (List<Expr>) getChild(1);\n return list;\n }",
"List getExpressions();",
"Expression getValue();",
"Expression getValue();",
"public List<Expression> getSubExpressions();",
"public List<EntityAndArguments> getEvaluationList() {\r\n\t\t\treturn evaluationList;\r\n\t\t}",
"public Expression getExpression() {\r\n\t\treturn this.expression;\r\n\t}",
"public Node getExpressionOrigin() {\n return element;\n }",
"public default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}",
"Object getContainedValue();",
"public Node getExpression() {\r\n return expression;\r\n }",
"public List<?> getValue() {\n return value;\n }",
"public ExpressionInterface getExpression() {\r\n\t\treturn this.expression;\r\n\t}",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"public Object getExpression();",
"public XPathExpression getUnderlyingExpression() {\n return exp;\n }",
"XExpression getExpression();",
"String getContainmentReference();",
"public EntityAndArguments getCurrentEntityAndArguments() {\r\n\t\t\tif (this.evaluationList == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\treturn this.evaluationList.get(this.currentEvaluationIndex);\r\n\t\t}",
"public List<Expr> getExprListNoTransform() {\n return (List<Expr>) getChildNoTransform(1);\n }",
"@Nullable\n public Expression getValue() {\n // for *args, **kwargs, this should be 'args' or 'kwargs' identifiers.\n // otherwise the expression after the (optional) '='\n ASTNode node = getNode().getLastChildNode();\n while (node != null) {\n IElementType type = node.getElementType();\n if (BuildElementTypes.EXPRESSIONS.contains(type)) {\n return (Expression) node.getPsi();\n }\n if (type == BuildToken.fromKind(TokenKind.EQUALS)\n || type == BuildToken.fromKind(TokenKind.STAR)\n || type == BuildToken.fromKind(TokenKind.STAR_STAR)) {\n break;\n }\n node = node.getTreePrev();\n }\n return null;\n }",
"public List<Expression> getElements() {\n\t\treturn elements;\n\t}",
"private List<Object> getConstantValue()\r\n/* 97: */ {\r\n/* 98:117 */ return (List)this.constant.getValue();\r\n/* 99: */ }",
"public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\n }",
"DExpression getExpression();",
"public Expression getExpression() {\n \treturn nullCheck;\n }",
"public String getExpression() {\n return _expression;\n }",
"public List<Expr> getExprs() {\n return getExprList();\n }",
"public String toString() {\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tbuf.append(\"[ Expression \");\r\n\t\tif (text() != null) {\r\n\t\t\tbuf.append(\"[\");\r\n\t\t\tbuf.append(text().toString());\r\n\t\t\tbuf.append(\"]\");\r\n\t\t}\r\n\t\tbuf.append(\": \");\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tbuf.append(elements.get(n));\r\n\t\t\tif (n < elements.size() - 1) {\r\n\t\t\t\tbuf.append(\",\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tbuf.append(\" ]\");\r\n\t\treturn new String(buf);\r\n\t}",
"public List<Subscription> getExpressions() {\n return expressions;\n }",
"com.google.type.Expr getCelExpression();",
"public CsdlExpression getValue() {\n return value;\n }",
"public IExpressionPart getExpressionPart()\r\n\t{\r\n\t\treturn expressionPart;\r\n\t}",
"public Expression getArray()\n {\n return getExpression();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s[%s]\", name.getValue().getSValue(), exprNode.toString());\n\t}",
"public static Expression getExpression(Object value) {\n\t\tif (isBool(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprBool((Boolean) value);\n\t\t} else if (isFloat(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprFloat((BigDecimal) value);\n\t\t} else if (isInt(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprInt((BigInteger) value);\n\t\t} else if (isString(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprString((String) value);\n\t\t} else if (isList(value)) {\n\t\t\tExprList list = IrFactory.eINSTANCE.createExprList();\n\t\t\tint length = Array.getLength(value);\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\tlist.getValue().add(getExpression(Array.get(value, i)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getExpression() {\n return expression;\n }",
"public String getExpression() {\n return expression;\n }",
"public String getExpression() {\n return expression;\n }",
"public ReferenceList getRefList( )\n {\n return _refList;\n }",
"public List<String> getEquityValueList() {\n return equityValueList;\n }",
"public static Object getValue(Expression expr) {\n\t\tif (expr != null) {\n\t\t\tif (expr.isExprBool()) {\n\t\t\t\treturn ((ExprBool) expr).isValue();\n\t\t\t} else if (expr.isExprFloat()) {\n\t\t\t\treturn ((ExprFloat) expr).getValue();\n\t\t\t} else if (expr.isExprInt()) {\n\t\t\t\treturn ((ExprInt) expr).getValue();\n\t\t\t} else if (expr.isExprString()) {\n\t\t\t\treturn ((ExprString) expr).getValue();\n\t\t\t} else if (expr.isExprList()) {\n\t\t\t\tthrow new OrccRuntimeException(\n\t\t\t\t\t\t\"list type not supported yet in getValue\");\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public XPath getValue()\n {\n return m_valueExpr;\n }",
"public Element compileExpressionList() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean contFlag = false;\n\n\t\tElement expListParent = document.createElement(\"expressionList\");\n\t\ttoken = jTokenizer.returnTokenVal();\n\t\tif (token.equals(\")\")) {\n\t\t\t// expListParent.setTextContent(\"\\n\");\n\t\t\treturn expListParent;\n\t\t}\n\t\tdo {\n\t\t\texpListParent.appendChild(compileExpression());\n\n\t\t\tjTokenizer.advance();\n\t\t\ttoken = jTokenizer.returnTokenVal();\n\n\t\t\tif (token.equals(\",\")) {\n\t\t\t\t// tokenType= jTokenizer.tokenType();\n\t\t\t\t// ele= createXMLnode(tokenType);\n\t\t\t\t// expListParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\tcontFlag = true;\n\t\t\t} else {\n\t\t\t\tcontFlag = false;\n\t\t\t}\n\t\t} while (contFlag);\n\t\treturn expListParent;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}",
"public String getElement()\n\t{\n\t\treturn \"list\";\n\t}",
"public String getExpression() {\r\n return tree.infixExpression();\r\n }",
"public List<ProductInner> value() {\n return this.value;\n }",
"public String toString() {\n\t\treturn this.issueEvaluationList.toString();\n\t}",
"public ElementList getDefiningFormula() {\r\n return definingFormula;\r\n }",
"@Override\n\tpublic void visit(ValueListExpression arg0) {\n\t\t\n\t}",
"public String toString() {\n return m_expression;\n }",
"@Override\n public String toString() {\n return \"Expression\";\n }",
"public ExploreList getExploreList() {\n return this.exploreList;\n }",
"public List<String> getExpIdentifierList() {\r\n return expIdentifierList;\r\n }",
"public final ManchesterOWLSyntaxAutoComplete.expression_return expression() {\n ManchesterOWLSyntaxAutoComplete.expression_return retval = new ManchesterOWLSyntaxAutoComplete.expression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.conjunction_return c = null;\n ManchesterOWLSyntaxAutoComplete.expression_return chainItem = null;\n ManchesterOWLSyntaxAutoComplete.conjunction_return conj = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return cpe = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:106:2:\n // ( ^( DISJUNCTION (c= conjunction )+ ) | ^( PROPERTY_CHAIN\n // (chainItem= expression )+ ) | conj= conjunction | cpe=\n // complexPropertyExpression )\n int alt4 = 4;\n switch (input.LA(1)) {\n case DISJUNCTION: {\n alt4 = 1;\n }\n break;\n case PROPERTY_CHAIN: {\n alt4 = 2;\n }\n break;\n case IDENTIFIER:\n case ENTITY_REFERENCE:\n case CONJUNCTION:\n case NEGATED_EXPRESSION:\n case SOME_RESTRICTION:\n case ALL_RESTRICTION:\n case VALUE_RESTRICTION:\n case CARDINALITY_RESTRICTION:\n case ONE_OF: {\n alt4 = 3;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt4 = 4;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 4, 0, input);\n throw nvae;\n }\n switch (alt4) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:4:\n // ^( DISJUNCTION (c= conjunction )+ )\n {\n match(input, DISJUNCTION, FOLLOW_DISJUNCTION_in_expression226);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:19:\n // (c= conjunction )+\n int cnt2 = 0;\n loop2: do {\n int alt2 = 2;\n int LA2_0 = input.LA(1);\n if (LA2_0 >= IDENTIFIER && LA2_0 <= ENTITY_REFERENCE\n || LA2_0 == CONJUNCTION || LA2_0 == NEGATED_EXPRESSION\n || LA2_0 >= SOME_RESTRICTION && LA2_0 <= ONE_OF) {\n alt2 = 1;\n }\n switch (alt2) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:21:\n // c= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression235);\n c = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(c.node.getCompletions());\n }\n }\n break;\n default:\n if (cnt2 >= 1) {\n break loop2;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(2, input);\n throw eee;\n }\n cnt2++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:6:\n // ^( PROPERTY_CHAIN (chainItem= expression )+ )\n {\n match(input, PROPERTY_CHAIN, FOLLOW_PROPERTY_CHAIN_in_expression248);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:24:\n // (chainItem= expression )+\n int cnt3 = 0;\n loop3: do {\n int alt3 = 2;\n int LA3_0 = input.LA(1);\n if (LA3_0 >= IDENTIFIER && LA3_0 <= ENTITY_REFERENCE\n || LA3_0 >= DISJUNCTION && LA3_0 <= NEGATED_EXPRESSION\n || LA3_0 >= SOME_RESTRICTION && LA3_0 <= ONE_OF\n || LA3_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt3 = 1;\n }\n switch (alt3) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:25:\n // chainItem= expression\n {\n pushFollow(FOLLOW_expression_in_expression256);\n chainItem = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(chainItem.node\n .getCompletions());\n }\n }\n break;\n default:\n if (cnt3 >= 1) {\n break loop3;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(3, input);\n throw eee;\n }\n cnt3++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:114:5:\n // conj= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression276);\n conj = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(conj.node\n .getCompletions());\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:118:5:\n // cpe= complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_expression291);\n cpe = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(cpe.node\n .getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }",
"public String toString() {\r\n\treturn expressions.get(0).getCdata();\r\n }",
"public PrimaryExpression getExpression()\r\n {\r\n\treturn m_expression;\r\n }",
"public ExprList expr_list(ExprList el) {\n if (el == null) {\n el = new ExprList();\n }\n el.add(expr());\n expr_list_tail(el);\n return el;\n }",
"final public Expression Collection(Exp stack) throws ParseException {\n ArrayList<Expression> list;\n Expression node, head;\n RDFList rlist;\n int arobase = ASTQuery.L_DEFAULT, save = ASTQuery.L_LIST;\n list = new ArrayList<Expression>();\n save = astq.getListType();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case AT:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n jj_consume_token(ATLIST);\n arobase = ASTQuery.L_LIST; astq.setListType(arobase);\n break;\n case ATPATH:\n case AT:\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AT:\n jj_consume_token(AT);\n break;\n case ATPATH:\n jj_consume_token(ATPATH);\n break;\n default:\n jj_la1[225] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n arobase = ASTQuery.L_PATH; astq.setListType(arobase);\n break;\n default:\n jj_la1[226] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n break;\n default:\n jj_la1[227] = jj_gen;\n ;\n }\n jj_consume_token(LPAREN);\n label_42:\n while (true) {\n node = GraphNode(stack);\n list.add(node);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case Q_IRIref:\n case QNAME_NS:\n case QNAME:\n case BLANK_NODE_LABEL:\n case VAR1:\n case VAR2:\n case ATLIST:\n case ATPATH:\n case TRUE:\n case FALSE:\n case INTEGER:\n case DECIMAL:\n case DOUBLE:\n case STRING_LITERAL1:\n case STRING_LITERAL2:\n case STRING_LITERAL_LONG1:\n case STRING_LITERAL_LONG2:\n case LPAREN:\n case LBRACKET:\n case ANON:\n case AT:\n ;\n break;\n default:\n jj_la1[228] = jj_gen;\n break label_42;\n }\n }\n jj_consume_token(RPAREN);\n head = list(stack, list, arobase);\n astq.setListType(save);\n {if (true) return head;}\n throw new Error(\"Missing return statement in function\");\n }",
"public static boolean expressionList(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"expressionList\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, EXPRESSION_LIST, \"<expression list>\");\n r = expression(b, l + 1);\n r = r && expressionList_1(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public Expression getE1() {\r\n return e1;\r\n }",
"@Override\n public List<IExpression> getElements() {\n return elements;\n }",
"Gt(ExpList e)\r\n\t{\r\n\t\texpList = e;\r\n\t}",
"private Expr expression() {\n return assignment();\n }",
"public java.util.List getPosition()\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(POSITION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getListValue();\n }\n }",
"public String toString() {\n if (mExpression.size() == 1 && mExpression.get(0).startsWith(\"-\")) {\n return mExpression.get(0);\n }\n\n StringBuilder output = new StringBuilder();\n boolean first = true;\n int size = mExpression.size();\n\n for (int i = 0; i < size; i++) {\n String element = mExpression.get(i);\n\n if (first) {\n first = false;\n } else {\n output.append(\"\");\n }\n\n\n if (isOperand(element) && element.startsWith(\"-\")) {\n output.append(\"(\")\n .append(element)\n .append(\")\");\n } else {\n output.append(element);\n }\n }\n\n return output.toString();\n }",
"public java.lang.String getZqu__Associated_Sub_List__c() {\r\n return zqu__Associated_Sub_List__c;\r\n }",
"public List<String> getValue() {\r\n return value;\r\n }",
"public String toString() {\n return fullExpression;\n }",
"String getExpression();",
"String getExpression();",
"@Override\n\tpublic String getValue() {\n\t\tString temp = \"\";\n\t\tif(anotherExps.size() == 0)\n\t\t{\n\t\t\tif(exp == null) return \"\";\n\t\t}\n\t\telse if(anotherExps.size() == 1)temp += \",\"+anotherExps.get(0).getValue();\n\t\telse\n\t\t{\n\t\t\tfor(int i = 0 ; i < anotherExps.size() ; i++)\n\t\t\t{\n\t\t\t\ttemp += \",\" + anotherExps.get(i).getValue();\n\t\t\t}\n\t\t}\n\t\treturn exp.getValue() + temp;\n\t}",
"public gov.nasa.arc.l2tools.livingstone.code.logic.BasicExpression getExpandedAndInstantiatedExpression() {\n\treturn expandedAndInstantiatedExpression;\n}",
"public void setExprList(List<Expr> list) {\n setChild(list, 1);\n }",
"@Override\n public IExpressionObjects getExpressionObjects() {\n if (this.expressionObjects == null) {\n this.expressionObjects = new ExpressionObjects(this, this.configuration.getExpressionObjectFactory());\n }\n return this.expressionObjects;\n }",
"public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}",
"public Expression getExpression() {\n if (this.expression == null) {\n // lazy init must be thread-safe for readers\n synchronized (this) {\n if (this.expression == null) {\n preLazyInit();\n this.expression = new SimpleName(this.ast);\n postLazyInit(this.expression, EXPRESSION_PROPERTY);\n }\n }\n }\n return this.expression;\n }",
"public org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression getExpression();",
"@Override\n public boolean visit(SQLInListExpr expr) {\n expr.getExpr().setParent(expr);\n return true;\n }",
"ArrayList<Expression> getChildren();",
"public abstract Value getReferenceValue();",
"@objid (\"f06e9701-bed5-478b-88af-6a964a67a2f4\")\n EList<Event> getEOccurence();",
"public final List<Element> getReferences() {\r\n return this.getReferences(true, true);\r\n }",
"public final ManchesterOWLSyntaxAutoComplete.propertyExpression_return propertyExpression() {\n ManchesterOWLSyntaxAutoComplete.propertyExpression_return retval = new ManchesterOWLSyntaxAutoComplete.propertyExpression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxTree IDENTIFIER6 = null;\n ManchesterOWLSyntaxTree ENTITY_REFERENCE7 = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return complexPropertyExpression8 = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:171:1:\n // ( IDENTIFIER | ENTITY_REFERENCE | complexPropertyExpression )\n int alt8 = 3;\n switch (input.LA(1)) {\n case IDENTIFIER: {\n alt8 = 1;\n }\n break;\n case ENTITY_REFERENCE: {\n alt8 = 2;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt8 = 3;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 8, 0, input);\n throw nvae;\n }\n switch (alt8) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:172:7:\n // IDENTIFIER\n {\n IDENTIFIER6 = (ManchesterOWLSyntaxTree) match(input, IDENTIFIER,\n FOLLOW_IDENTIFIER_in_propertyExpression462);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n IDENTIFIER6.getText()));\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:176:9:\n // ENTITY_REFERENCE\n {\n ENTITY_REFERENCE7 = (ManchesterOWLSyntaxTree) match(input,\n ENTITY_REFERENCE,\n FOLLOW_ENTITY_REFERENCE_in_propertyExpression480);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable().match(\n ENTITY_REFERENCE7.getText()));\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:180:7:\n // complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_propertyExpression494);\n complexPropertyExpression8 = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(getSymbolTable()\n .match(complexPropertyExpression8 != null ? complexPropertyExpression8.node\n .getText() : null));\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }",
"public Row getValue()\n\t{\n\t\treturn valueList;\n\t}",
"public String val() {\n\t\treturn ValFunction.val(this.elements);\n\t}",
"TrgExpression getPushedValue();",
"public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }",
"public org.purl.dc.elements.x11.SimpleLiteral getReferences()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.purl.dc.elements.x11.SimpleLiteral target = null;\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().find_element_user(REFERENCES$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"io.dstore.values.StringValue getConditionList();",
"public ModificationExpressionElements getModificationExpressionAccess() {\r\n\t\treturn pModificationExpression;\r\n\t}",
"public interface CompositeExpression extends Expression {\n\n\t/**\n\t * Returns the list of current subexpressions; null if none\n\t */\n\tArrayList<Expression> getChildren();\n\n\t/**\n\t * Adds a subexpression\n\t */\n\tExpression addChild(boolean composite);\n\n\t/**\n\t * Removes a subexpression\n\t */\n\tvoid removeChild(Expression e);\n}",
"Expression getExp();",
"public /*@ non_null @*/ String toString() {\n String ret = \"[\";\n JMLListEqualsNode<E> thisLst = this;\n boolean firstTime = true;\n while (thisLst != null) {\n if (!firstTime) {\n ret += \", \";\n } else {\n firstTime = false;\n }\n if (thisLst.val == null) {\n ret += \"null\";\n } else {\n ret += thisLst.val.toString();\n }\n thisLst = thisLst.next;\n }\n ret += \"]\";\n return ret;\n }",
"public XbaseGrammarAccess.XParenthesizedExpressionElements getXParenthesizedExpressionAccess() {\r\n\t\treturn gaXbase.getXParenthesizedExpressionAccess();\r\n\t}",
"public java.util.List getAnchor();"
] |
[
"0.6135304",
"0.5872015",
"0.57638127",
"0.57638127",
"0.57589185",
"0.574945",
"0.56770444",
"0.56581366",
"0.5657008",
"0.5578704",
"0.5574667",
"0.5544571",
"0.55312276",
"0.5472378",
"0.5472378",
"0.5472378",
"0.5472378",
"0.5460033",
"0.54570806",
"0.53920305",
"0.5383712",
"0.53713316",
"0.536948",
"0.53680676",
"0.5366336",
"0.5352311",
"0.5347345",
"0.5332004",
"0.53253466",
"0.53047764",
"0.5292628",
"0.52685696",
"0.5266026",
"0.52634794",
"0.526148",
"0.52591217",
"0.52551514",
"0.52522814",
"0.5243254",
"0.52413046",
"0.52413046",
"0.52413046",
"0.5234071",
"0.5222811",
"0.5211212",
"0.51894724",
"0.51861775",
"0.51861703",
"0.51798123",
"0.5167754",
"0.5162757",
"0.51573896",
"0.51571506",
"0.51557106",
"0.5153345",
"0.51169807",
"0.5114423",
"0.5094281",
"0.5076315",
"0.50705117",
"0.503281",
"0.5028448",
"0.50031817",
"0.49896014",
"0.49888968",
"0.4985968",
"0.49844426",
"0.49768856",
"0.49732658",
"0.496358",
"0.49494153",
"0.49484858",
"0.4940242",
"0.49308848",
"0.49308848",
"0.49264675",
"0.4925171",
"0.49241215",
"0.492058",
"0.49188608",
"0.49094906",
"0.4905919",
"0.4905275",
"0.489208",
"0.48815015",
"0.48810205",
"0.4876156",
"0.487189",
"0.48651975",
"0.48631924",
"0.4859235",
"0.48513198",
"0.48486146",
"0.48400274",
"0.48386565",
"0.4832273",
"0.48322323",
"0.4831043",
"0.48263928",
"0.48214477"
] |
0.7032033
|
0
|
Returns the value of the 'ANY OTHER' attribute. If the meaning of the 'ANY OTHER' attribute isn't clear, there really should be more of a description here...
|
String getANY_OTHER();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getOthers() {\n return others;\n }",
"public String getOthers() {\n return others;\n }",
"public boolean matchesAny() {\n return value == ANY;\n }",
"public Object getAny() {\n return any;\n }",
"public boolean isSetOther()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(OTHER$18) != 0;\r\n }\r\n }",
"@Override\n @XmlElement(name = \"other\")\n public synchronized String getOther() {\n return other;\n }",
"public int getAny() {\n\t\treturn any;\n\t}",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2539:16: ( . )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2539:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void setMatchAny() {\n this.value = ANY;\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6940:16: ( . )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6940:18: .\n {\n matchAny(); \n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalStateMachine.g:857:16: ( . )\n // InternalStateMachine.g:857:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalEsm.g:13312:16: ( . )\n // InternalEsm.g:13312:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalVizualizer.g:1764:16: ( . )\n // InternalVizualizer.g:1764:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16741:16: ( . )\n // InternalDSL.g:16741:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public String getOthers1() {\n return others1;\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:2298:16: ( . )\n // InternalDSL.g:2298:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public Value restrictToAttributes() {\n Value r = new Value(this);\n r.num = null;\n r.str = null;\n r.var = null;\n r.flags &= ATTR | ABSENT | UNKNOWN;\n if (!isUnknown() && isMaybePresent())\n r.flags |= UNDEF; // just a dummy value, to satisfy the representation invariant for PRESENT\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSpeADL.g:23496:16: ( . )\n // InternalSpeADL.g:23496:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"@JsonAnyGetter\n @Nullable\n public Map<String, Object> getOthers() {\n return others;\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\r\n try {\r\n int _type = RULE_ANY_OTHER;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19818:16: ( . )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19818:18: .\r\n {\r\n matchAny(); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public XbaseGrammarAccess.OpOtherElements getOpOtherAccess() {\r\n\t\treturn gaXbase.getOpOtherAccess();\r\n\t}",
"public Map<QName, String> getOtherAttributes() {\n\t\treturn otherAttributes;\n\t}",
"public Map<QName, String> getOtherAttributes() {\n\t\treturn otherAttributes;\n\t}",
"public Map<QName, String> getOtherAttributes() {\n\t\treturn otherAttributes;\n\t}",
"public Map<QName, String> getOtherAttributes() {\r\n return otherAttributes;\r\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2146:16: ( . )\n // ../org.xtext.example.mydslsample/src-gen/org/xtext/example/mydsl/parser/antlr/internal/InternalMyDslSample.g:2146:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:7240:16: ( . )\n // InternalIotLuaXtext.g:7240:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public org.apache.axis.message.MessageElement [] get_any() {\n return _any;\n }",
"public Map<QName, String> getOtherAttributes() {\n return otherAttributes;\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:15380:16: ( . )\n // InternalMyDsl.g:15380:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public Map<QName, String> getOtherAttributes() {\n\t\t\treturn otherAttributes;\n\t\t}",
"public Map<QName, String> getOtherAttributes() {\n\t\t\treturn otherAttributes;\n\t\t}",
"public XbaseGrammarAccess.OpOtherElements getOpOtherAccess() {\n\t\treturn gaXbase.getOpOtherAccess();\n\t}",
"public XbaseGrammarAccess.OpOtherElements getOpOtherAccess() {\n\t\treturn gaXbase.getOpOtherAccess();\n\t}",
"public Map<QName, String> getOtherAttributes() {\n\t\t\t\treturn otherAttributes;\n\t\t\t}",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalReqLNG.g:1730:16: ( . )\n // InternalReqLNG.g:1730:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:6380:16: ( . )\n // InternalMyDsl.g:6380:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:2397:16: ( . )\n // InternalMyDsl.g:2397:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public boolean isAny() {\n return m_item.getSchemaComponent().type() == SchemaBase.ANY_TYPE;\n }",
"public Collection<T> getOthers() {\n return others;\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:673:16: ( . )\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:673:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40371:16: ( . )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:40371:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public String getOther() {\n return other;\n }",
"public String getOther() {\n return other;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other getOther()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other)get_store().find_element_user(OTHER$18, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\n try {\n int _type = RULE_ANY_OTHER;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:105:16: ( . )\n // ../org.leta.plugin.ui/src-gen/org/ui/contentassist/antlr/lexer/InternalLetaLexer.g:105:18: .\n {\n matchAny(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\r\n try {\r\n int _type = RULE_ANY_OTHER;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2493:16: ( . )\r\n // ../ooi.coi.bspl.ui/src-gen/ooi/coi/bspl/ui/contentassist/antlr/internal/InternalBSPL.g:2493:18: .\r\n {\r\n matchAny(); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public abstract Any read_any();",
"public boolean isOther() {\n\t\t\treturn this == OTHER;\n\t\t}",
"public double get_Northing() {\n return this.Northing;\n }",
"public abstract Any value();",
"public void setOthers(String others) {\n this.others = others == null ? null : others.trim();\n }",
"public void setOthers(String others) {\n this.others = others == null ? null : others.trim();\n }",
"public static Value makeAnyNumOther() {\n return theNumOther;\n }",
"public AnyURIElements getAnyURIAccess() {\n\t\treturn pAnyURI;\n\t}",
"public Value restrictToNonAttributes() {\n Value r = new Value(this);\n r.flags &= ~(PROPERTYDATA | ABSENT | PRESENT_DATA | PRESENT_ACCESSOR);\n return canonicalize(r);\n }",
"public static Value makeAnyBool() {\n return theBoolAny;\n }",
"public T any(final QueryBuilder<?> parent) {\r\n\t\treturn op(ConditionValueType.ANY, parent);\r\n\t}",
"public Optional<String> getSpecial()\n {\n return m_special;\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\r\n try {\r\n int _type = RULE_ANY_OTHER;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3485:16: ( . )\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:3485:18: .\r\n {\r\n matchAny(); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"@Override\n public OptionalInt getValence() {\n return IndigoUtil.valueOrEmpty(atom.explicitValence());\n }",
"IfaceValue findAnyValue(IfaceType typ);",
"@Override\n\tpublic Instances relationalValue(final Attribute att) {\n\t\treturn null;\n\t}",
"public java.lang.Object getAnyType() {\n return localAnyType;\n }",
"public String getOtherinfo() {\n return otherinfo;\n }",
"public void set_any(org.apache.axis.message.MessageElement [] _any) {\n this._any = _any;\n }",
"@Override\n public boolean isMaybeAnyStr() {\n checkNotPolymorphicOrUnknown();\n return (flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) == (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER); // note: ignoring excluded_strings and included_strings, see javadoc\n }",
"public org.apache.axis2.databinding.types.URI getAnyURI() {\n return localAnyURI;\n }",
"public int getAnyFi() {\n\t\treturn anyfi;\n\t}",
"public void unsetOther()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(OTHER$18, 0);\r\n }\r\n }",
"public final void mRULE_ANY_OTHER() throws RecognitionException {\r\n try {\r\n int _type = RULE_ANY_OTHER;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:34503:16: ( . )\r\n // InternalSpringConfigDsl.g:34503:18: .\r\n {\r\n matchAny(); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public static final boolean isAny(String value) {\r\n return value != null && value.equals(ANY_VALUE);\r\n }",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"public String getExtraValue() {\n\t\t\treturn null;\r\n\t\t}",
"@Override @AvailMethod\n\tA_Type o_Kind (\n\t\tfinal AvailObject object)\n\t{\n\t\treturn Types.ANY.o();\n\t}",
"public boolean isOtherOption() {\n return (alias.indexOf(Constants.MULTIPLE_QUESTION_OTHER_START_STRING) > 0);\n }",
"public String getGroupOther() {\n return groupOther;\n }",
"public Value restrictToNotAbsent() {\n checkNotUnknown();\n if (isNotAbsent())\n return this;\n Value r = new Value(this);\n r.flags &= ~ABSENT;\n if (r.var != null && (r.flags & (PRESENT_DATA | PRESENT_ACCESSOR)) == 0)\n r.var = null;\n return canonicalize(r);\n }",
"public void test_anon_0() {\n String NS = \"http://example.org/foo#\";\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:ex='http://example.org/foo#'\"\n + \" xmlns:owl='http://www.w3.org/2002/07/owl#'>\"\n + \" <owl:ObjectProperty rdf:about='http://example.org/foo#p' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#A' />\"\n + \" <ex:A rdf:about='http://example.org/foo#x' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#B'>\"\n + \" <owl:equivalentClass>\"\n + \" <owl:Restriction>\" \n + \" <owl:onProperty rdf:resource='http://example.org/foo#p' />\" \n + \" <owl:hasValue rdf:resource='http://example.org/foo#x' />\" \n + \" </owl:Restriction>\"\n + \" </owl:equivalentClass>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n OntClass B = m.getOntClass( NS + \"B\");\n Restriction r = B.getEquivalentClass().asRestriction();\n HasValueRestriction hvr = r.asHasValueRestriction();\n RDFNode n = hvr.getHasValue();\n \n assertTrue( \"Should be an individual\", n instanceof Individual );\n }",
"public List<Schema> getAnyOf() {\n\t\treturn anyOf;\n\t}",
"public boolean isAnyAllowed() {\n return _types.size() == 0 || hasType(JSONSchemaTypes.ANY.getClass());\n }",
"public String getNullAttribute();",
"public final ManchesterOWLSyntaxAutoComplete.oneOf_return oneOf() {\n ManchesterOWLSyntaxAutoComplete.oneOf_return retval = new ManchesterOWLSyntaxAutoComplete.oneOf_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.unary_return individual = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:257:2:\n // ( ^( ONE_OF (individual= unary )+ ) )\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:258:3:\n // ^( ONE_OF (individual= unary )+ )\n {\n match(input, ONE_OF, FOLLOW_ONE_OF_in_oneOf849);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:258:12:\n // (individual= unary )+\n int cnt15 = 0;\n loop15: do {\n int alt15 = 2;\n int LA15_0 = input.LA(1);\n if (LA15_0 >= IDENTIFIER && LA15_0 <= ENTITY_REFERENCE\n || LA15_0 == NEGATED_EXPRESSION || LA15_0 >= SOME_RESTRICTION\n && LA15_0 <= ONE_OF) {\n alt15 = 1;\n }\n switch (alt15) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:258:13:\n // individual= unary\n {\n pushFollow(FOLLOW_unary_in_oneOf854);\n individual = unary();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(individual.node.getCompletions());\n }\n }\n break;\n default:\n if (cnt15 >= 1) {\n break loop15;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(15, input);\n throw eee;\n }\n cnt15++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }",
"@Override\n public BL equal(final ANY that) {\n\t\tif (that instanceof TS) {\n\t\t\tfinal TS thatTS = (TS) that;\n\t\t\treturn this.minus(thatTS).isZero();\n\t\t} else {\n\t\t\treturn BLimpl.FALSE;\n\t\t}\n\t}",
"Object getUnless();",
"Object getUnless();",
"@Override\n public final boolean hasSpecialDefenseValueAttribute() {\n return true;\n }",
"public Attraction getOtherEndpoint(Attraction w) {\n return w.equals(u) ? v : u;\n }"
] |
[
"0.6273265",
"0.6273265",
"0.5838343",
"0.5761033",
"0.5687683",
"0.5668273",
"0.5665926",
"0.56577295",
"0.5649689",
"0.55874854",
"0.5587264",
"0.5557852",
"0.5555987",
"0.55534744",
"0.55247855",
"0.551569",
"0.54922354",
"0.54854965",
"0.54727155",
"0.5470194",
"0.5460225",
"0.54577225",
"0.54577225",
"0.54577225",
"0.5447257",
"0.5440496",
"0.543681",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54338664",
"0.54325414",
"0.54302114",
"0.54281455",
"0.5422831",
"0.5422831",
"0.5415082",
"0.5415082",
"0.5410032",
"0.5406233",
"0.5399307",
"0.53834426",
"0.5377381",
"0.5351697",
"0.5348746",
"0.53482294",
"0.5303604",
"0.5303604",
"0.53002846",
"0.52838415",
"0.5282049",
"0.5257905",
"0.51612604",
"0.51249474",
"0.5124225",
"0.5122824",
"0.5122824",
"0.5097461",
"0.5095456",
"0.508064",
"0.5076008",
"0.50474924",
"0.50344026",
"0.50234544",
"0.50125027",
"0.49417993",
"0.49393752",
"0.49080044",
"0.4905828",
"0.4894689",
"0.48822254",
"0.4878631",
"0.48751056",
"0.48608434",
"0.4859011",
"0.48475868",
"0.48467353",
"0.48467353",
"0.4817593",
"0.4809916",
"0.4793633",
"0.4784763",
"0.47711423",
"0.47666594",
"0.47627437",
"0.47431555",
"0.47373432",
"0.4736867",
"0.47127998",
"0.47127998",
"0.46895316",
"0.4689219"
] |
0.7221216
|
0
|
Create a Date with the chosen year, month, day, hour and minute.
|
public Date(int year, int month, int day, int hour, int minute) throws InvalidDateException {
this.setYear(year);
this.setMonth(month);
this.setDay(day);
this.setHour(hour);
this.setMinute(minute);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Date createDate(int yyyy, int month, int day, int hour, int min) {\n/* 93 */ CALENDAR.clear();\n/* 94 */ CALENDAR.set(yyyy, month - 1, day, hour, min);\n/* 95 */ return CALENDAR.getTime();\n/* */ }",
"public static native JsDate create(int year, int month, int dayOfMonth, int hours,\n int minutes, int seconds) /*-{\n return new Date(year, month, dayOfMonth, hours, minutes, seconds);\n }-*/;",
"public static native JsDate create(int year, int month, int dayOfMonth, int hours,\n int minutes) /*-{\n return new Date(year, month, dayOfMonth, hours, minutes);\n }-*/;",
"public Date createDate()\n {\n Timestamp maxDate = new\n Timestamp(2021 - 1900, 11,\n 31, 23, 59, 59, 0);\n Timestamp minDate = new\n Timestamp(2017 - 1900, 0,\n 1, 0, 0, 0, 0);\n long range = maxDate.getTime() - minDate.getTime();\n long randTime = Math.abs(Main.rnd.nextLong()) % range;\n //we use abs because random number might be negative\n return new Date(minDate.getTime() + randTime);\n }",
"public static native JsDate create(int year, int month, int dayOfMonth, int hours,\n int minutes, int seconds, int millis) /*-{\n return new Date(year, month, dayOfMonth, hours, minutes, seconds, millis);\n }-*/;",
"public static Date newDate(final int year, final int month, final int day, final int hour,\r\n\t\tfinal int min, final int sec)\r\n\t{\r\n\t\treturn newDate(year, month, day, hour, min, sec, 0);\r\n\t}",
"public static Date newDate(final int year, final int month, final int day, final int hour,\r\n\t\tfinal int minute, final int seconds, final int milliSecond)\r\n\t{\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\r\n\t\tcalendar.set(Calendar.YEAR, year);\r\n\t\tcalendar.set(Calendar.MONTH, month - 1);\r\n\t\tcalendar.set(Calendar.DATE, day);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, hour);\r\n\t\tcalendar.set(Calendar.MINUTE, minute);\r\n\t\tcalendar.set(Calendar.SECOND, seconds);\r\n\t\tcalendar.set(Calendar.MILLISECOND, milliSecond);\r\n\t\treturn calendar.getTime();\r\n\t}",
"private static Calendar createCalendar(int year, int month, int date,\r\n\t\t\tint hour, int minute) {\r\n\t\tCalendar calendar = createCalendar(year, month, date);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, hour);\r\n\t\tcalendar.set(Calendar.MINUTE, minute);\r\n\t\treturn calendar;\r\n\t}",
"public static native JsDate create(int year, int month, int dayOfMonth, int hours) /*-{\n return new Date(year, month, dayOfMonth, hours);\n }-*/;",
"public static Date newDate(final int year, final int month, final int day)\r\n\t{\r\n\t\treturn newDate(year, month, day, 0, 0, 0);\r\n\t}",
"public Date(int year, int month, int day) {\n this.year = year;\n this.day = day;\n this.month = month;\n }",
"public void setDate(int day, int month, int year, int hour, int minute) // Maybe\n\n {\n this.day = day;\n this.month = month;\n this.year = year;\n this.hour = hour;\n this.minute = minute;\n }",
"public MyDate(int inYear, int inDay, int inMonth)\n {\n year = inYear;\n day = inDay;\n month = inMonth;\n }",
"public Date(int day, int month, int year) {\r\n this.day = day;\r\n this.month = month;\r\n this.year = year;\r\n\r\n }",
"public Date(String dateType, int year, int month, int day, int hour,\r\n\t\t\tint min, int sec) throws BogusDataException\r\n\t{\r\n\t\tsuper(dateType, \"\");\r\n\t\t// code below by Jeremy//\r\n\t\tthis.dateType = dateType;\r\n\t\t// code above by Jeremy//\r\n\t\tthis.year = year;\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.hour = hour;\r\n\t\tthis.minute = min;\r\n\t\tthis.second = sec;\r\n\t\tthis.dateOnly = false;\r\n\r\n\t\tString yearStr, monthStr, dayStr, hourStr, minStr, secStr;\r\n\r\n\t\tyearStr = \"\" + year;\r\n\t\tmonthStr = \"\" + month;\r\n\t\tdayStr = \"\" + day;\r\n\t\thourStr = \"\" + hour;\r\n\t\tminStr = \"\" + min;\r\n\t\tsecStr = \"\" + sec;\r\n\r\n\t\twhile (yearStr.length() < 4)\r\n\t\t\tyearStr = '0' + yearStr;\r\n\t\tif (monthStr.length() < 2)\r\n\t\t\tmonthStr = '0' + monthStr;\r\n\t\tif (dayStr.length() < 2)\r\n\t\t\tdayStr = '0' + dayStr;\r\n\t\tif (hourStr.length() < 2)\r\n\t\t\thourStr = '0' + hourStr;\r\n\t\tif (minStr.length() < 2)\r\n\t\t\tminStr = '0' + minStr;\r\n\t\tif (secStr.length() < 2)\r\n\t\t\tsecStr = '0' + secStr;\r\n\r\n\t\t// TODO: use StringBuffer to speed this up\r\n\t\t// TODO: validate values\r\n\t\tvalue = yearStr + monthStr + dayStr + 'T' + hourStr + minStr + secStr;\r\n\r\n\t\t// Add attribute that says date has a time\r\n\t\taddAttribute(\"VALUE\", \"DATE-TIME\");\r\n\t}",
"public static Date createDate(int year, int month, int date) {\n\n LocalDate localDate = LocalDate.of(year, month, date);\n ZoneId zoneId = ZoneId.systemDefault();\n Date result = Date.from(localDate.atStartOfDay(zoneId).toInstant());\n return result;\n }",
"public DateTime(final int year, final int month, final int day, final int hour, final int minute) {\n this(null, year, month, day, hour, minute, 0);\n }",
"public Date(int month, int day, int year) {\n if (!isValid(month, day, year)) throw new IllegalArgumentException(\"Invalid date\");\n this.month = month;\n this.day = day;\n this.year = year;\n }",
"public Date(){\n\t\tyear=0;\n\t\tmonth=0;\n\t\tday=0;\n\t}",
"public static native JsDate create(int year, int month) /*-{\n return new Date(year, month);\n }-*/;",
"public static Date createDate(int yyyy, int month, int day) {\n/* 75 */ CALENDAR.clear();\n/* 76 */ CALENDAR.set(yyyy, month - 1, day);\n/* 77 */ return CALENDAR.getTime();\n/* */ }",
"public DateTime(final int year, final int month, final int day, final int hour, final int minute, final int second) {\n this(null, year, month, day, hour, minute, second);\n }",
"public static native JsDate create(int year, int month, int dayOfMonth) /*-{\n return new Date(year, month, dayOfMonth);\n }-*/;",
"public DateAndTime(int hour, int minute, int second, int month, int day, int year) \n { \n if (hour < 0 || hour >= 24)\n throw new IllegalArgumentException(\"hour must be 0-23\");\n\n if (minute < 0 || minute >= 60)\n throw new IllegalArgumentException(\"minute must be 0-59\");\n\n if (second < 0 || second >= 60)\n throw new IllegalArgumentException(\"second must be 0-59\");\n\n this.hour = hour;\n this.minute = minute; \n this.second = second; \n \n // check if month in range\n if (month <= 0 || month > 12)\n throw new IllegalArgumentException(\n \"month (\" + month + \") must be 1-12\");\n\n // check if day in range for month\n if (day <= 0 || \n (day > daysPerMonth[month] && !(month == 2 && day == 29)))\n throw new IllegalArgumentException(\"day (\" + day + \n \") out-of-range for the specified month and year\");\n\n // check for leap year if month is 2 and day is 29\n if (month == 2 && day == 29 && !(year % 400 == 0 || \n (year % 4 == 0 && year % 100 != 0)))\n throw new IllegalArgumentException(\"day (\" + day +\n \") out-of-range for the specified month and year\");\n\n // check for nonnegative years\n if (year < 0)\n {\n \t throw new IllegalArgumentException(\"year (\" + year + \n \t\t\") must be greater than 0\");\n }\n this.month = month;\n this.day = day;\n this.year = year;\n\n System.out.printf(\n \"DateAndTime object constructor for DateAndTime %s%n\", this);\n }",
"public static Date getDate(int year, int month, int day, int hour, int minute, int second) \n\t{\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(year, month, day, hour, minute, second);\n\t\tDate date = calendar.getTime();\n\t\t\n\t\treturn date;\n\t}",
"public Date(int day, Month month, int year){\n\tif (day > 0 && day <= month.nbJours(year)){\n\t this.day = day;\n\t}\t\n\tthis.month = month;\n\tif (year > 0){\n\t this.year = year;\n\t}\n }",
"private Date createDate(final int year, final int month, final int dayOfMonth) {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.YEAR, year);\n cal.set(Calendar.MONTH, month);\n cal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n return cal.getTime();\n }",
"public Date(int y, int m, int d){\n\t\tif((y<2015 || m<=0 || m>12 || d<=0 || d>31)){\n\t\t\tyear=0;\n\t\t\tmonth=0;\n\t\t\tday=0;\n\t\t}else{\n\t\t\tyear=y;\n\t\t\tmonth=m;\n\t\t\tday=d;\n\t\t}\n\t\t\n\t}",
"@Override\n public Date generate() {\n int year = 2000 + Rng.instance().nextInt(20);\n int date = Rng.instance().nextInt(28) + 1;\n int month = Rng.instance().nextInt(10) + 1;\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, date);\n\n return calendar.getTime();\n }",
"public DateTime(int year, int month, int date, int hour, int minute) {\r\n\t\tCalendar calendar = createCalendar(year, month, date, hour, minute);\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_FORMATTER.format(calendar\r\n\t\t\t\t.getTime());\r\n\t}",
"private static Calendar createCalendar(int year, int month, int date,\r\n\t\t\tint hour, int minute, int second) {\r\n\t\tCalendar calendar = createCalendar(year, month, date, hour, minute);\r\n\t\tcalendar.set(Calendar.SECOND, second);\r\n\t\treturn calendar;\r\n\t}",
"public MyDate(int month, int day, int year) {\n\t\tsetDate(month, day, year);\n\t}",
"private static Calendar createCalendar(int year, int month, int date) {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setLenient(false);\r\n\t\tcalendar.set(Calendar.YEAR, year);\r\n\t\tcalendar.set(Calendar.MONTH, month - 1);\r\n\t\tcalendar.set(Calendar.DAY_OF_MONTH, date);\r\n\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\treturn calendar;\r\n\t}",
"public DateTime(int year, int month, int date) {\r\n\t\tCalendar calendar = createCalendar(year, month, date);\r\n\t\tthis.timeString = YYYY_MM_DD_FORMATTER.format(calendar.getTime());\r\n\t}",
"public static String create(int year, int month, int date, int hour,\r\n\t\t\tint minute) {\r\n\t\tCalendar dateTime = createCalendar(year, month, date, hour, minute);\r\n\t\treturn YYYY_MMT_DD_T_HH_MM_FORMATTER.format(dateTime.getTime());\r\n\t}",
"public Date(String dateType, int year, int month, int day, int hour,\r\n\t\t\tint min, int sec, int ehour, int emin, int esec)\r\n\t\t\tthrows BogusDataException\r\n\t{\r\n\t\tsuper(dateType, \"\");\r\n\r\n\t\tthis.dateType = dateType;\r\n\t\tthis.year = year;\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.hour = hour;\r\n\t\tthis.minute = min;\r\n\t\tthis.second = sec;\r\n\t\tthis.ehour = ehour;\r\n\t\tthis.eminute = emin;\r\n\t\tthis.esecond = esec;\r\n\t\tthis.dateOnly = false;\r\n\r\n\t\tString yearStr, monthStr, dayStr, hourStr, minStr, secStr, ehourStr, eminStr, esecStr;\r\n\r\n\t\tyearStr = \"\" + year;\r\n\t\tmonthStr = \"\" + month;\r\n\t\tdayStr = \"\" + day;\r\n\t\thourStr = \"\" + hour;\r\n\t\tminStr = \"\" + min;\r\n\t\tsecStr = \"\" + sec;\r\n\t\tehourStr = \"\" + ehour;\r\n\t\teminStr = \"\" + emin;\r\n\t\tesecStr = \"\" + esec;\r\n\r\n\t\twhile (yearStr.length() < 4)\r\n\t\t\tyearStr = '0' + yearStr;\r\n\t\tif (monthStr.length() < 2)\r\n\t\t\tmonthStr = '0' + monthStr;\r\n\t\tif (dayStr.length() < 2)\r\n\t\t\tdayStr = '0' + dayStr;\r\n\t\tif (hourStr.length() < 2)\r\n\t\t\thourStr = '0' + hourStr;\r\n\t\tif (minStr.length() < 2)\r\n\t\t\tminStr = '0' + minStr;\r\n\t\tif (secStr.length() < 2)\r\n\t\t\tsecStr = '0' + secStr;\r\n\t\tif (ehourStr.length() < 2)\r\n\t\t\tehourStr = '0' + ehourStr;\r\n\t\tif (eminStr.length() < 2)\r\n\t\t\teminStr = '0' + eminStr;\r\n\t\tif (esecStr.length() < 2)\r\n\t\t\tesecStr = '0' + esecStr;\r\n\r\n\t\t// TODO: use StringBuffer to speed this up\r\n\t\t// TODO: validate values\r\n\t\tvalue = yearStr + monthStr + dayStr + 'T' + hourStr + minStr + secStr\r\n\t\t\t\t+ ehourStr + eminStr + esecStr;\r\n\r\n\t\t// Add attribute that says date has a time\r\n\t\taddAttribute(\"VALUE\", \"DATE-TIME\");\r\n\t}",
"public DateTime(\n int year,\n int month,\n int day,\n int hours,\n int minutes,\n int seconds) {\n setCharacteristic(null);\n setYear(year);\n setMonth(month);\n setDay(day);\n setHours(hours);\n setMinutes(minutes);\n setSeconds(seconds);\n }",
"public SweDate(int year, int month, int day, double hour) {\n\t\tsetFields(year, month, day, hour);\n\t}",
"public Date(int month, int day, int year) {\r\n\t\t// check if month in range\r\n\t\tif (month <= 0 || month > 12)\r\n\t\t\tthrow new IllegalArgumentException(\"month (\" + month + \") must be 1-12\");\r\n\r\n\t\t// check if day in range for month\r\n\t\tif (day <= 0 || (day > daysPerMonth[month] && !(month == 2 && day == 29)))\r\n\t\t\tthrow new IllegalArgumentException(\"day (\" + day + \") out-of-range for the specified month and year\");\r\n\r\n\t\t// check for leap year if month is 2 and day is 29\r\n\t\tif (month == 2 && day == 29 && !(year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)))\r\n\t\t\tthrow new IllegalArgumentException(\"day (\" + day + \") out-of-range for the specified month and year\");\r\n\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.year = year;\r\n\r\n\t\tSystem.out.printf(\"Date object constructor for date %s%n\", this);\r\n\t}",
"public Date(String dateType, int year, int month, int day)\r\n\t\t\tthrows BogusDataException\r\n\t{\r\n\t\tsuper(dateType, \"\");\r\n\r\n\t\tthis.year = year;\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.hour = this.minute = this.second = 0;\r\n\t\tthis.dateOnly = true;\r\n\r\n\t\tString yearStr, monthStr, dayStr;\r\n\r\n\t\tyearStr = \"\" + year;\r\n\t\tmonthStr = \"\" + month;\r\n\t\tdayStr = \"\" + day;\r\n\t\twhile (yearStr.length() < 4)\r\n\t\t\tyearStr = '0' + yearStr;\r\n\t\tif (monthStr.length() < 2)\r\n\t\t\tmonthStr = '0' + monthStr;\r\n\t\tif (dayStr.length() < 2)\r\n\t\t\tdayStr = '0' + dayStr;\r\n\t\tvalue = yearStr + monthStr + dayStr;\r\n\r\n\t\t// Add attribute that says date-only\r\n\t\taddAttribute(\"VALUE\", \"DATE\");\r\n\t}",
"public DateUtil (int yyyy, int mm, int dd)\n {\n set(yyyy, mm, dd, CHECK);\n }",
"DateConstant createDateConstant();",
"public Date() {\r\n\t\tGregorianCalendar c = new GregorianCalendar();\r\n\t\tmonth = c.get(Calendar.MONTH) + 1; // our month starts from 1\r\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\r\n\t\tyear = c.get(Calendar.YEAR);\r\n\t}",
"public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}",
"public Date(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }",
"public Date(int m, int d, int y) {\r\n\t\tif (!isValid(m, d, y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date\");\r\n\t\tmonth = m;\r\n\t\tday = d;\r\n\t\tyear = y;\r\n\t}",
"public static String create(int year, int month, int date, int hour,\r\n\t\t\tint minute, int second) {\r\n\t\tCalendar dateTime = createCalendar(year, month, date, hour, minute,\r\n\t\t\t\tsecond);\r\n\t\treturn YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(dateTime.getTime());\r\n\t}",
"public Date(int m, int d, int y) {\n\t\t\n\t\tmonth = m;\n\t\tday = d;\n\t\tyear = y;\n\t\t\n\t}",
"Year createYear();",
"public static Date today() // should it be void?\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int day = currentDate.get(GregorianCalendar.DATE);\n int month = currentDate.get(GregorianCalendar.MONTH) + 1;\n int year = currentDate.get(GregorianCalendar.YEAR);\n int hour = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minute = currentDate.get(GregorianCalendar.MINUTE);\n return new Date(day, month, year, hour, minute);\n }",
"public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }",
"public SimpleDate(final int year, final int month, final int day) {\n\t\tthis.year = year;\n\t\tthis.month = month;\n\t\tthis.day = day;\n\t}",
"public DateTime(int year, int month, int date, int hour, int minute,\r\n\t\t\tint second) {\r\n\t\tCalendar calendar = createCalendar(year, month, date, hour, minute,\r\n\t\t\t\tsecond);\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(calendar\r\n\t\t\t\t.getTime());\r\n\t}",
"public Date(int d, int m, int a) {\n\t\tthis.dia = d;\n\t\tthis.mes = m;\n\t\tthis.ano = a;\n\t}",
"public date2(int theYear, int theMonth, int theDay) {\n\t\tmonth = checkMonth(theMonth); // validate month\n\t\tyear = checkYear(theYear); // validate year\n\t\tday = checkDay(theDay); // validate day\n\t}",
"private Calendar createNewCalendar(String dateAndTime) {\n // initiate a calendar\n Calendar calendar = Calendar.getInstance();\n // take the given dateandTime string and split it into the different values\n String date = dateAndTime.split(\" \")[0];\n String time = dateAndTime.split(\" \")[1];\n int year = Integer.valueOf(date.split(\"-\")[0]);\n int month = Integer.valueOf(date.split(\"-\")[1]) - 1;\n int day = Integer.valueOf(date.split(\"-\")[2]);\n int hour = Integer.valueOf(time.split(\":\")[0]);\n int min = Integer.valueOf(time.split(\":\")[1]);\n // set the calendar to the wanted values\n calendar.set(year, month, day, hour, min);\n return calendar;\n }",
"public Date(int m, int y) {\r\n\r\n\t\tif (!isValid(m, DAYS[m], y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date; correct input\");\r\n\t\tmonth = m;\r\n\t\tday = DAYS[m];\r\n\t\tyear = y;\r\n\t}",
"public static String createDate(String day, String month, String year) {\n\n if (day == null || month == null || year == null) {\n log.error(\"In createDate method is at least one argument NULL\");\n throw new NullPointerException(\"createDate util\");\n }\n\n if (year.trim().isEmpty()) {\n return \"\";\n } else {\n switch (year.length()) {\n case 1:\n year = \"0\" + year;\n case 2:\n year = \"0\" + year;\n case 3:\n year = \"0\" + year;\n }\n }\n return year + (month.isEmpty() ? \"00\" : month.length() == 1 ? \"0\" + month : month) + (day.isEmpty() ? \"00\" : day.length() == 1 ? \"0\" + day : day);\n }",
"public Date (final Integer d, final Integer m, final Integer y) throws CGException {\n\n try {\n setSentinel();\n }\n catch (Exception e){\n\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n if (!this.pre_Date(d, m, y).booleanValue()) \n UTIL.RunTime(\"Run-Time Error:Precondition failure in Date\");\n {\n\n day = UTIL.NumberToInt(UTIL.clone(d));\n month = UTIL.NumberToInt(UTIL.clone(m));\n year = UTIL.NumberToInt(UTIL.clone(y));\n }\n }",
"public Date createDate(int birthDate) {\r\n try {\r\n int year = birthDate / 10000;\r\n int month = (birthDate % 10000) / 100;\r\n int date = birthDate % 100;\r\n String formatDate = year + \"/\" + month + \"/\" + date; // Creates a formatted date.\r\n\r\n SimpleDateFormat formatted = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n return formatted.parse(formatDate);\r\n } catch (java.text.ParseException ex) {\r\n return null;\r\n }\r\n }",
"public DateCustom(int __day, int __month, int __year) {\n this._day = __day;\n this._month = __month;\n this._year = __year;\n }",
"public Date(int day, int month, int year) throws DateException{\n\t\tthis.year = year;\n\t\tif (month < 1 || month > 12) {\n\t\t\tthrow new DateException(\"Mes \" + month + \" no valido\" +\n\t\t\t\t\t\" Valores posibles entre 1 y 12.\");\n\t\t} else {\n\t\t\tthis.month = month;\n\t\t}\n\t\t\n\t\tswitch (this.month){\n\t\t\tcase 1:\n\t\t\tcase 3:\n\t\t\tcase 5:\n\t\t\tcase 7:\n\t\t\tcase 8:\n\t\t\tcase 10:\n\t\t\tcase 12:\n\t\t\t\tif(day<1 || day>31){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\tcase 6:\n\t\t\tcase 9:\n\t\t\tcase 11:\n\t\t\t\tif(day<1 || day>30){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(day<1 || day>28){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t}\n\n\t}",
"public DateTime(Date date,Time12 time)\n {\n\t\tthis.date=date;\n\t\tthis.time=time;\n }",
"public Date(int y) {\r\n\r\n\t\tmonth = LAST_MONTH;\r\n\t\tday = DAYS[LAST_MONTH];\r\n\t\tyear = y;\r\n\t}",
"public SweDate(int year, int month, int day, double hour, boolean calType) {\n\t\tsetFields(year, month, day, hour, calType);\n\t}",
"public DateHour(int year, int month, int day, int hour)\n\t{\n\t\tm_year = year;\n\t\tm_month = month;\n\t\tm_day = day;\n\t\tm_hour = hour;\n\t}",
"public static String generateDate()\r\n\t{\r\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat datef = new SimpleDateFormat(\"YYYY_MM_dd_ss\");\r\n\t\treturn datef.format(d);\r\n\r\n\r\n\t}",
"String dateToString(int year, int month, int day, int hour, int minute, double seconds);",
"public static String create(int year, int month, int date) {\r\n\t\tCalendar dateTime = createCalendar(year, month, date);\r\n\t\treturn YYYY_MM_DD_FORMATTER.format(dateTime.getTime());\r\n\t}",
"public Date() {\r\n }",
"Date getCreateDate();",
"Date getCreateDate();",
"DateLiteral createDateLiteral();",
"public Date(String month, int year) {\n\t\t\tthis.weekday = 0;\n\t\t\tthis.day = 0;\n\t\t\tthis.month = notEmpty(month);\n\t\t\tthis.year = zeroOrMore(year);\n\t\t}",
"public String getDate(){\n String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }",
"public Date(String sDate) {\r\n\t\tint m, d, y;\r\n\t\tString[] chopDate = sDate.split(\"-\");\r\n\t\tm = Integer.parseInt(chopDate[ZEROI]);\r\n\t\td = Integer.parseInt(chopDate[ONEI]);\r\n\t\ty = Integer.parseInt(chopDate[TWOI]);\r\n\t\tif (!isValid(m, d, y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date\");\r\n\t\tmonth = m;\r\n\t\tday = d;\r\n\t\tyear = y;\r\n\t}",
"public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }",
"public static Date newRandomDate(final Date from)\r\n\t{\r\n\t\tfinal Random secrand = new SecureRandom();\r\n\t\tfinal double randDouble = -secrand.nextDouble() * from.getTime();\r\n\t\tfinal double randomDouble = from.getTime() - secrand.nextDouble();\r\n\t\tfinal double result = randDouble * randomDouble;\r\n\t\treturn new Date((long)result);\r\n\t}",
"public DateUtil (int yyyy, int mm, int dd, int how)\n {\n // save yyyy, mm, dd, and compete the ordinal equivalent\n set(yyyy, mm, dd, how);\n }",
"public void setDateAndTime(int d,int m,int y,int h,int n,int s);",
"private Date randomDate() {\n int minDay = (int) LocalDate.of(2012, 1, 1).toEpochDay();\n int maxDay = (int) LocalDate.now().toEpochDay();\n int randomDay = minDay + intRandom(maxDay - minDay);\n LocalDate randomDate = LocalDate.ofEpochDay(randomDay);\n Date d = toDate(randomDate);\n return d;\n }",
"public DateIn(int day, int month, int year){\n\tthis.day = day;\n\tthis.month = month;\n\tthis.year = year;\n\t}",
"public int MagicDate(){\n return month = day = year = 1;\n \n }",
"private ARXDate() {\r\n this(\"Default\");\r\n }",
"public SweDate() {\n\t\tCalendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\t\tsetFields(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH),\n\t\t\t\tcal.get(Calendar.HOUR_OF_DAY) + cal.get(Calendar.MINUTE) / 60. + cal.get(Calendar.SECOND) / 3600.\n\t\t\t\t\t\t+ cal.get(Calendar.MILLISECOND) / 3600000.,\n\t\t\t\tSE_GREG_CAL);\n\t}",
"public static native JsDate create() /*-{\n return new Date();\n }-*/;",
"Date getForDate();",
"public static String getYYYYMMDD()\r\n/* 65: */ {\r\n/* 66: 81 */ String nowTime = \"\";\r\n/* 67: 82 */ Date now = new Date();\r\n/* 68: 83 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 69: 84 */ nowTime = formatter.format(now);\r\n/* 70: 85 */ return nowTime;\r\n/* 71: */ }",
"public static Date fromString(String fullDate) {\n\t\tString[] parsed = fullDate.split(\",\");\n\t\tif (parsed.length != 3 && parsed.length != 5) {\n\t\t\tthrow new InvalidParsingStringException(Date.class.getName());\n\t\t}\n\t\tDate date = new Date();\n\t\tdate.setYear(Integer.valueOf(parsed[0]));\n\t\tdate.setMonth(Integer.valueOf(parsed[1]));\n\t\tdate.setDay(Integer.valueOf(parsed[2]));\n\t\tif (parsed.length == 5) {\n\t\t\tdate.setHour(Integer.valueOf(parsed[3]));\n\t\t\tdate.setMin(Integer.valueOf(parsed[4]));\n\t\t}\n\t\treturn date;\n\t}",
"@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}",
"public DateTime(\n int year,\n int month,\n int day,\n int hours,\n int minutes,\n int seconds,\n BluetoothGattCharacteristic characteristic) {\n setCharacteristic(characteristic);\n setYear(year);\n setMonth(month);\n setDay(day);\n setHours(hours);\n setMinutes(minutes);\n setSeconds(seconds);\n }",
"Date getDate();",
"Date getDate();",
"Date getDate();",
"protected static Date fromInts(final Integer year, final Integer month, final Integer day, \r\n final Integer hour, final Integer minute, final Integer second, final Integer milli) \r\n throws Exception {\r\n Validate.notNull(year);\r\n Validate.notNull(month);\r\n Validate.notNull(day);\r\n Validate.notNull(hour);\r\n Validate.notNull(minute);\r\n Validate.notNull(second);\r\n Validate.notNull(milli);\r\n \r\n Integer safeYear = year; \r\n String yearAsString = year.toString();\r\n if ((safeYear.intValue() >= 0) && (yearAsString.length() <= 2)) {\r\n final SimpleDateFormat sdf = new SimpleDateFormat(\"yy\");\r\n final Calendar calendar = Calendar.getInstance();\r\n \r\n //It uses ParsePosition to make sure the whole \r\n //string has been converted into a number\r\n ParsePosition pp = new ParsePosition(0);\r\n Date date = sdf.parse(yearAsString, pp);\r\n if (pp.getIndex() != yearAsString.length()) {\r\n throw new ParseException(\"The whole input String does not represent a valid Date\", \r\n pp.getIndex());\r\n } \r\n calendar.setTime(date);\r\n safeYear = Integer.valueOf(calendar.get(Calendar.YEAR));\r\n } \r\n \r\n final Calendar result = Calendar.getInstance();\r\n result.set(Calendar.YEAR, safeYear.intValue());\r\n result.set(Calendar.MONTH, month.intValue() - 1);\r\n result.set(Calendar.DAY_OF_MONTH, day.intValue());\r\n result.set(Calendar.HOUR_OF_DAY, hour.intValue());\r\n result.set(Calendar.MINUTE, minute.intValue());\r\n result.set(Calendar.SECOND, second.intValue());\r\n result.set(Calendar.MILLISECOND, milli.intValue());\r\n \r\n return result.getTime();\r\n }",
"private static String getDate() {\n Scanner input = new Scanner(System.in);\n\n String monthName = input.next();\n int month = monthNum(monthName);\n int day = input.nextInt();\n String date = \"'2010-\" + month + \"-\" + day + \"'\";\n return date;\n }",
"public void createDate(){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy_MM_dd\"); //TODO -HHmm si dejo diagonales separa bonito en dia, pero para hacer un armado de excel creo que debo hacer un for mas\n currentDateandTime = sdf.format(new Date());\n Log.e(TAG, \"todays date is: \"+currentDateandTime );\n\n}",
"public DateTime(Date date) {\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(date);\r\n\t}",
"public Value(int year, int month, int day) {\n\n // Construct the Calendar\n _calendar = Calendar.getInstance();\n _calendar.set(year, month - 1, day);\n }",
"public final DateWithTypeDateFormat newDate() throws RIFCSException {\n return new DateWithTypeDateFormat(this.newElement(\n Constants.ELEMENT_DATE));\n }"
] |
[
"0.71219945",
"0.7071629",
"0.7068238",
"0.68700564",
"0.6841458",
"0.6793828",
"0.67841643",
"0.6750528",
"0.6721832",
"0.6600586",
"0.65939176",
"0.65527964",
"0.6535001",
"0.6531231",
"0.6447601",
"0.6428972",
"0.64257675",
"0.63954926",
"0.6363467",
"0.63009286",
"0.6272365",
"0.6270845",
"0.6243147",
"0.62247384",
"0.62144655",
"0.6179999",
"0.616734",
"0.61431247",
"0.61369866",
"0.61369467",
"0.6096574",
"0.6076957",
"0.60676044",
"0.60514915",
"0.604018",
"0.6037844",
"0.60377747",
"0.603074",
"0.6028324",
"0.60274905",
"0.6020477",
"0.5975119",
"0.5951858",
"0.5946141",
"0.59415245",
"0.59397167",
"0.5939664",
"0.5923925",
"0.58932287",
"0.5836328",
"0.58311504",
"0.5808608",
"0.57933336",
"0.57748044",
"0.5769122",
"0.57610005",
"0.57591516",
"0.5752066",
"0.56855375",
"0.5666005",
"0.56399596",
"0.5618911",
"0.56044424",
"0.5593297",
"0.5576546",
"0.5559003",
"0.5549126",
"0.55421233",
"0.55156577",
"0.5491955",
"0.54780537",
"0.54780537",
"0.54589635",
"0.5441609",
"0.54350287",
"0.5422521",
"0.5417026",
"0.5416747",
"0.54036915",
"0.5389298",
"0.53724843",
"0.5349445",
"0.5347887",
"0.5346971",
"0.53296167",
"0.53033525",
"0.52910614",
"0.52849424",
"0.5277499",
"0.527042",
"0.5264126",
"0.5261503",
"0.5261503",
"0.5261503",
"0.5258928",
"0.52319485",
"0.5206239",
"0.5204677",
"0.5199002",
"0.5183123"
] |
0.6177247
|
26
|
Allows to add a certain number of minutes to the date.
|
public void addTime(int minutes) throws InvalidDateException{
if (minutes >= 0) {
int totalMinutes = this.minute + minutes;
if (totalMinutes > 59) {
int totalHours = this.hour + totalMinutes/60;
this.minute = totalMinutes%60;
if (totalHours > 23) {
int totalDays = this.day + totalHours/24;
this.hour = totalHours%24;
if (totalDays > 31) {
int totalMonths = this.month + totalDays/31;
if(totalDays%31 ==0) {
totalMonths -= 1;
this.day = 31;
} else {
this.day = totalDays%31;
}
if (totalMonths > 12) {
int totalYears = this.year + totalMonths/12;
if(totalMonths%12 == 0) {
totalYears -= 1;
this.month = 12;
} else {
this.month = totalMonths%12;
}
this.year = totalYears;
} else {
this.month = totalMonths;
}
} else {
this.day = totalDays;
}
} else {
this.hour = totalHours;
}
} else {
this.minute = totalMinutes;
}
} else {
throw new InvalidDateException("You can't go back in time !");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addMinutes(int minutes)\n {\n\n int h = minutes / 60;\n int m = minutes - (h * 60);\n\n hour += h;\n\n if (minute == 30 && m == 30)\n {\n minute = 0;\n hour++;\n }\n else\n {\n minute += m;\n }\n }",
"public static Date addMinutes(final Date date, final int minutes) {\n return Dates.add(date, minutes, Calendar.MINUTE);\n }",
"public static Date addMinutes(final Date date, final int amount) {\n final Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.add(Calendar.MINUTE, amount);\n return calendar.getTime();\n }",
"public static Date addMinutes(Date inputDate, int minutes) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(inputDate);\n calendar.add(Calendar.MINUTE, minutes);\n return calendar.getTime();\n }",
"public static final Function<Date,Date> addMinutes(final int amount) {\r\n return new Add(Calendar.MINUTE, amount);\r\n }",
"@Nonnull\n public final MutableClock plusMinutes(final int minutes) {\n getOrCreateNow().addMinutes(minutes);\n return this;\n }",
"public void uneMinuteDePlus() {\n\t\tthis.m = m+1 > 59 ? 0 : m+1;\n\t}",
"public void setMinutes(int minutes) {\n this.minutes = minutes;\n }",
"public InactivityTimeout minutes(int n) {\n millis += 60 * n * 1000;\n return this;\n }",
"public static Date sumMinutes(Date date, int minutes) {\n if (minutes == 0) {\n return date;\n }\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.add(Calendar.MINUTE, minutes);\n return calendar.getTime();\n }",
"public MyTime nextMinute(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\t\n\t\tif (minute!=59){\n\t\t\tminute++;\n\t\t}\n\t\telse{\n\t\t\tminute = 0;\n\t\t\tif (hours!=23){\n\t\t\t\thour++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thour = 0;\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}",
"public final native double setMinutes(int minutes) /*-{\n this.setMinutes(minutes);\n return this.getTime();\n }-*/;",
"public void setTime(double minutes) {\n\t\t// implement this method.\n\n\t}",
"private static void increment_time()\n\t{\n\t\ttime_of_day = time_of_day + 1;\n\t\tif(time_of_day>=120)\n\t\t{\n\t\t\ttime_of_day=time_of_day-120;\n\t\t}\n\t}",
"public void setMinute(int value) {\n this.minute = value;\n }",
"public void setMinute(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: gov.nist.javax.sip.header.SIPDate.setMinute(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setMinute(int):void\");\n }",
"public void setMinutes(String minutes) {\n this.minutes = parseMinutes(minutes);\n }",
"public void add(final int hours, final int minutes, final int seconds) {\n Calendar cal = Calendar.getInstance();\n\n cal.setTime(date);\n cal.add(Calendar.SECOND, seconds);\n cal.add(Calendar.MINUTE, minutes);\n cal.add(Calendar.HOUR_OF_DAY, hours);\n set(cal);\n }",
"public void setMinute(int value) {\n this.minute = value;\n }",
"public boolean isSupportMinutes() {\r\n return true;\r\n }",
"private Date stepTime(Date d, int mins) {\n\t\tif (d == null) return d;\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(d);\n\t\tcal.add(Calendar.MINUTE, mins);\n\t\treturn cal.getTime();\n\t}",
"public void setMinute(int nMinute) { m_nTimeMin = nMinute; }",
"public void addBeatsPerMinute(java.lang.Integer value) {\r\n\t\tBase.add(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}",
"public void addBeatsPerMinute( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}",
"public final native double setMinutes(int minutes, int seconds) /*-{\n this.setMinutes(minutes, seconds);\n return this.getTime();\n }-*/;",
"public Time( int minutes ) {\n this.minutes = minutes;\n }",
"public String getMinutes();",
"public void setOccupiedMinutes(int minutes){\n \t\tif(minutes > 0 && minutes*60 > 0)\n \t\t\tsetOccupiedSeconds(minutes*60);\n \t}",
"public Time4 setMinute( int minute ) \r\n { \r\n this.minute = \r\n ( minute >= 0 && minute < 60 ) ? minute : 0;\r\n\r\n return this; // enables chaining\r\n }",
"public void add(int hours, int minutes) {\n\t\tthis.hours += hours;\n\t\tthis.minutes += minutes;\n\n\t\t// convert each 60 minutes into one hour\n\t\tthis.hours += this.minutes / 60;\n\t\tthis.minutes = this.minutes % 60;\n\t}",
"Integer getMinute();",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"public final native double setMinutes(int minutes, int seconds, int millis) /*-{\n this.setMinutes(minutes, seconds, millis);\n return this.getTime();\n }-*/;",
"public void addToReminders(Date reminders);",
"public static Date addTime(final Date date, final int hours, final int minutes, final int seconds) {\n final Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.add(Calendar.HOUR_OF_DAY, hours);\n calendar.add(Calendar.MINUTE, minutes);\n calendar.add(Calendar.SECOND, seconds);\n return calendar.getTime();\n }",
"public static void addBeatsPerMinute(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) {\r\n\t\tBase.add(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}",
"public void setMinutes(int minutes) throws BlablakidException {\n\t\tif(checkTime(this.hour, minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The minute introduced is wrong : \"+minutes);\n\t\t}\n\t\telse {\n\t\t\tthis.minutes = minutes;\n\t\t}\n\t}",
"public static String addTime(String time, int increase)\r\n/* 96: */ {\r\n/* 97:129 */ SimpleDateFormat format = new SimpleDateFormat(\"HH:mm\");\r\n/* 98:130 */ String retTime = \"\";\r\n/* 99: */ try\r\n/* 100: */ {\r\n/* 101:133 */ Date date = format.parse(time);\r\n/* 102:134 */ long Time = date.getTime() / 1000L + increase * 60;\r\n/* 103:135 */ date.setTime(Time * 1000L);\r\n/* 104:136 */ retTime = format.format(date);\r\n/* 105: */ }\r\n/* 106: */ catch (Exception localException) {}\r\n/* 107:141 */ return retTime;\r\n/* 108: */ }",
"public void addTime(Time a){\n\t\ttimes.add(a);\n\t}",
"private void scheduleSnooze(int minutes) {\n final Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, minutes);\n alarmManager.set(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n createAlarmIntent(this, ID_SNOOZE));\n Log.d(CLASS_NAME, String.format(\"Scheduled snooze for Minutes=%d\", minutes));\n }",
"public static void addBeatsPerMinute( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}",
"public int getMinute() { return this.minute; }",
"public static final Function<Date,Date> setMinute(final int value) {\r\n return new Set(Calendar.MINUTE, value);\r\n }",
"public void setMinute(int minute)\n {\n this.minute = minute;\n }",
"public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }",
"public void shift(int minutes) {\n if (minutes < 0)\n throw new IllegalArgumentException(\"minutes should not be negative\");\n\n minute += minutes;\n int hoursToAdd = minute / 60 % 24;\n minute %= 60;\n\n if (hoursToAdd == 0) return;\n\n int adjustedHour = hour;\n if (adjustedHour == 12) adjustedHour = 0;\n adjustedHour += hoursToAdd;\n\n int numFlip = adjustedHour/12;\n\n if (numFlip%2 == 1)\n isPM = !isPM;\n\n hour += hoursToAdd;\n hour %= 12;\n if(hour ==0) hour =12;\n }",
"public DateTimeFormatterBuilder appendMinuteOfDay(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfDay(), minDigits, 4);\r\n }",
"public void setMinute(int minute) \n { \n if (minute < 0 || minute >= 60)\n throw new IllegalArgumentException(\"minute must be 0-59\");\n\n this.minute = minute; \n }",
"public int getMinutes(){\r\n return Minutes;\r\n }",
"public void setLaMinutes(int laMinutes) {\n this.laMinutes = laMinutes;\n }",
"Builder addTimeRequired(Duration value);",
"public Builder byMinute(Collection<Integer> minutes) {\n\t\t\tbyMinute.addAll(minutes);\n\t\t\treturn this;\n\t\t}",
"public static LocalTime time1(double maxMinutes)\n\t{\n\t\t//declare variables\n\t\tString str;\n\t\tlong newMaxMinutes;\n\t\t\n\t\t//create new scanner object\n\t\tScanner keyboard = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Please enter your time of departure as hh:mm AM or PM: \");\n\t\tstr = keyboard.nextLine(); //gets user input\n\t\tString t = str.toString(); //converts user input\n\t\tDateTimeFormatter x = DateTimeFormatter.ofPattern(\"hh:mm a\"); //provides format for user input\n\t\tLocalTime time1 = LocalTime.parse(t, x); //parses converted input and format\n\t\tnewMaxMinutes = Math.round(maxMinutes); //converts maxMinutes to long with Math.round function\n\t\tLocalTime arrive = time1.plusMinutes(newMaxMinutes); //adds minutes of maxMinutes to time1 using time class\n\t\t\n\t\treturn arrive;\n\t\t\n\t}",
"public int getMinutes() {\n return this.minutes;\n }",
"public void setMinutes(int[] minutes) {\n if (minutes == null)\n minutes = new int[] {};\n this.minutes = minutes;\n }",
"public void setAddTime(Integer addTime) {\n this.addTime = addTime;\n }",
"public void addExtraTime (int t) {\n\t\textraTime += t;\n\t\textTime.setText(String.valueOf(extraTime));\n\t}",
"public final native double setUTCMinutes(int minutes) /*-{\n this.setUTCMinutes(minutes);\n return this.getTime();\n }-*/;",
"public int getMinute() {\n return minute;\n }",
"public int getIntervalMinutes();",
"private void advanceTime(){\n\t minute++;\n\t while (minute > 59) {\n\t minute -= 60;\n\t hour++;\n\t }\n\t while (hour > 23) {\n\t hour -= 24;\n\t day++;\n\t }\n\t while (day > 6) {\n\t day -= 7;\n\t }\n\n\t }",
"public void addTime(long in) {\n if (current < max) {\n times[current] = in;\n current++;\n }\n else System.out.println(\"Adding past max\");\n }",
"public int getMinute() {\n return minute;\n }",
"public void setMinute(int minute) throws InvalidDateException {\r\n\t\tif (minute < 60 & minute >= 0) {\r\n\t\t\tthis.minute = minute;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic minute for the date (between 0 and 59) !\");\r\n\t\t}\r\n\t}",
"public DateTimeFormatterBuilder appendMinuteOfHour(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfHour(), minDigits, 2);\r\n }",
"public void setAddtime(Date addtime) {\r\n this.addtime = addtime;\r\n }",
"public void setAddtime(Date addtime) {\n this.addtime = addtime;\n }",
"private static Date add(final Date date, final int units, final int field) {\n if (date == null) {\n throw new NullPointerException(\"date\");\n }\n\n final Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.setTime(date);\n calendar.setTimeZone(Dates.TIMEZONE_UTC);\n calendar.add(field, units);\n return calendar.getTime();\n }",
"public void addDelayTime(int add)\r\n\t{\r\n\t\tString[] parts = departureTime.split(\":\");\r\n\t\tString[] parts1 = arrivalTime.split(\":\");\r\n\t\tString departureHour = parts[0];\r\n\t\tString departureMin = parts[1];\r\n\t\tString arrivalHour = parts1[0];\r\n\t\tString arrivalMin = parts1[1];\r\n\t\t// converting string to integer\r\n\t\tint departureHour1 = Integer.parseInt(departureHour);\r\n\t\tint arrivalHour1 = Integer.parseInt(arrivalHour);\r\n\t\t// adding delay time and start form 0 if it is 24\r\n\t\tint departHour = (departureHour1 + add)%24;\r\n\t\tint arriveHour = (arrivalHour1+add)%24;\r\n\t\tString dHour = String.format(\"%02d\",departHour);\r\n\t\tString aHour = String.format(\"%02d\",arriveHour);\r\n\t\t// combining hour and minute.\r\n\t\tthis.departureTime = dHour + \":\" + departureMin;\r\n\t\tthis.arrivalTime = aHour + \":\" + arrivalMin;\r\n\t\t\r\n\t}",
"public int getMinutes() {\n\t\treturn minutes;\n\t}",
"public Builder byMinute(Integer... minutes) {\n\t\t\treturn byMinute(Arrays.asList(minutes));\n\t\t}",
"public void setMinutesPerDay(Number minutesPerDay)\r\n {\r\n if (minutesPerDay != null)\r\n {\r\n m_minutesPerDay = minutesPerDay;\r\n }\r\n }",
"public static DateTime floorToFiveMinutes(DateTime value) {\n return floorToMinutePeriod(value, 5);\n }",
"public void updateAlarmTime (){\r\n\t\tint newHour, newMinut;\r\n\t\t\r\n\t\tif (relative) { //Before\r\n\t\t\tnewMinut = reference.getMinutes() - alarmMinutes;\r\n\t\t\tnewHour = reference.getHours() - alarmHours - ((newMinut<0)?1:0);\r\n\t\t\tnewMinut = (newMinut<0)?newMinut+60:newMinut;\r\n\t\t\tnewHour = (newHour<0)?newHour+24:newHour;\r\n\t\t} else {\r\n\t\t\tnewMinut = reference.getMinutes() + alarmMinutes;\r\n\t\t\tnewHour = reference.getHours() + alarmHours + ((newMinut>=60)?1:0);\r\n\t\t\tnewMinut = (newMinut>=60)?newMinut-60:newMinut;\r\n\t\t\tnewHour = (newHour>=240)?newHour-24:newHour;\r\n\t\t}\r\n\r\n\t\tthis.alarmTime.setHours(newHour);\r\n\t\tthis.alarmTime.setMinutes(newMinut);\r\n\t}",
"public void grantTickets(){\n //45mins\n if (tempTime >= 10){\n addTicket();\n }\n tempTime = 0;\n }",
"public int getMinute()\n {\n return minute;\n }",
"protected int convertToMinutes() {\n\t\treturn this.getMinutes() + (this.getHours() * 60);\n\t}",
"private void setReminder(String vaccinationDate1) {\n try {\n Calendar c = Calendar.getInstance();\n c.setTime(new Date(vaccinationDate1));\n c.add(Calendar.DATE, 30);\n String vaccineDate2 = new SimpleDateFormat(\"d MMMM yyyy\").format(c.getTime());\n createNotificationChannel();\n Intent intent = new Intent(this, ReminderBroadcast.class);\n intent.putExtra(\"vaccineDate2\", vaccineDate2);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);\n\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n\n long timeAtButtonClick = System.currentTimeMillis();\n\n long tenSecondsInMillis = 1000 * 10;\n\n alarmManager.set(AlarmManager.RTC_WAKEUP, timeAtButtonClick + tenSecondsInMillis, pendingIntent);\n Toast.makeText(this, \"Reminder created\", Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n Toast.makeText(this, \"Could not create reminder | \" + e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }",
"private void updateClock(String timeToAdd) {\n\t\tint TTA = Integer.parseInt(timeToAdd);\n\t\thours += TTA / 60;\n\t\tminutes += TTA % 60;\n\t\tif (minutes > 60) {\n\t\t\thours++;\n\t\t\tminutes -= 60;\n\t\t}\n\t}",
"public void setBeatsPerMinute(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}",
"@Override\n\tpublic void setAddTime(Date addTime) {\n\t\t\n\t}",
"public static Date add(final Date date, final int years, final int months, final int days, final int hours,\n final int minutes, final int seconds) {\n final Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.add(Calendar.YEAR, years);\n calendar.add(Calendar.MONTH, months);\n calendar.add(Calendar.DAY_OF_YEAR, days);\n calendar.add(Calendar.HOUR_OF_DAY, hours);\n calendar.add(Calendar.MINUTE, minutes);\n calendar.add(Calendar.SECOND, seconds);\n return calendar.getTime();\n }",
"public boolean setMinutes(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mMinutes = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }",
"void addDate(long t) {\n\tif (act != null) {\n\t long date = act.getDate() + t;\n\t act.setLocation(act.getMap(), act.getX(), act.getY(), date);\n\t}\n }",
"public DateTimeFormatterBuilder appendSecondOfMinute(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.secondOfMinute(), minDigits, 2);\r\n }",
"public void setMinute(int minute) {\n\t\tthis.minute = minute;\n\t}",
"static Timestamp plusMillis(Timestamp base, long millisToAdd) {\n return toTimestamp(toInstant(base).plusMillis(millisToAdd));\n }",
"public void setExpireMinutes (int expireMinutes)\n\t{\n\t\tif (expireMinutes > 0)\n\t\t{\n\t\t\tm_expire = expireMinutes;\n\t\t\tlong addMS = 60000L * m_expire;\n\t\t\tm_timeExp = System.currentTimeMillis() + addMS;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm_expire = 0;\n\t\t\tm_timeExp = 0;\n\t\t}\n\t}",
"public void setTime(int mins, int sec){\r\n this.Minutes = mins;\r\n this.Seconds = sec;\r\n }",
"@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}",
"public void incrementShieldOnFor(int minutes, IServerCallback callback) {\n try {\n JSONObject data = new JSONObject();\n data.put(Parameter.minutes.name(), minutes);\n\n ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.INCREMENT_SHIELD_ON_FOR, data, callback);\n _client.sendRequest(sc);\n } catch (JSONException ignored) {\n }\n }",
"public void advanceTime(){\n\t\tminute++;\r\n\t\twhile (minute > 59) {\r\n\t\t\tminute -= 60;\r\n\t\t\thour++;\r\n\t\t}\r\n\t\twhile (hour > 23) {\r\n\t\t\thour -= 24;\r\n\t\t\tday++;\r\n\t\t}\r\n\t\twhile (day > 6) {\r\n\t\t\tday -= 7;\r\n\t\t\tweek++;\r\n\t\t\ttotalMoney += abonnementen * 40;\r\n\t\t}\r\n\t\twhile(week > 51) {\r\n\t\t\tweek -= 52;\r\n\t\t}\r\n\t\t//System.out.println(\"advanceTime: \"+\"week: \"+ week + \" day: \"+ day +\" hour: \" + hour +\" minute: \"+ minute+ \" Money earned = \" + Math.round(totalMoney));\r\n\t}",
"public void addToReminders(List<Date> reminders);",
"public void addTime(long time)\r\n {\r\n listOfTimes.add(time);\r\n }",
"public static void setBeatsPerMinute(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) {\r\n\t\tBase.set(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}",
"public void setLoMinutes(int loMinutes) {\n this.loMinutes = loMinutes;\n }",
"public InactivityTimeout milliseconds(long n) {\n millis += n;\n return this;\n }",
"public static Date addMilliseconds(final Date date, final int amount) {\n final Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n calendar.add(Calendar.MILLISECOND, amount);\n return calendar.getTime();\n }",
"public M csmiAddTimeStart(Object start){this.put(\"csmiAddTimeStart\", start);return this;}",
"public void setBeatsPerMinute( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}"
] |
[
"0.7140778",
"0.6800216",
"0.6797791",
"0.6690599",
"0.65754175",
"0.65477216",
"0.6373754",
"0.630786",
"0.61612976",
"0.6131847",
"0.61185557",
"0.60446286",
"0.59700376",
"0.5939722",
"0.58790904",
"0.5844693",
"0.5844034",
"0.58269316",
"0.5818002",
"0.58092433",
"0.5799382",
"0.57769436",
"0.57573587",
"0.57561415",
"0.5725187",
"0.5704321",
"0.56872034",
"0.564184",
"0.5629512",
"0.55920106",
"0.5586554",
"0.55848724",
"0.5545541",
"0.55130166",
"0.5480467",
"0.54697955",
"0.54582727",
"0.54472804",
"0.5434215",
"0.54260457",
"0.5414227",
"0.5409437",
"0.5372128",
"0.5364838",
"0.53616494",
"0.53434974",
"0.5333455",
"0.5286831",
"0.52837306",
"0.52731955",
"0.5236226",
"0.5230365",
"0.52252007",
"0.52234346",
"0.522142",
"0.5215666",
"0.5210483",
"0.51949435",
"0.5167218",
"0.5160365",
"0.5157358",
"0.5155056",
"0.5146489",
"0.51459414",
"0.513652",
"0.5130142",
"0.5122648",
"0.51134276",
"0.5097016",
"0.50915796",
"0.5089962",
"0.5089146",
"0.5085115",
"0.5068",
"0.50662273",
"0.50642085",
"0.50471497",
"0.5039891",
"0.5036492",
"0.50302464",
"0.5028966",
"0.502786",
"0.5025245",
"0.5017605",
"0.5003079",
"0.49988747",
"0.4987768",
"0.49856603",
"0.4982115",
"0.49770275",
"0.49767154",
"0.49668652",
"0.4953429",
"0.49487215",
"0.4947179",
"0.4943752",
"0.4940322",
"0.49392286",
"0.49295667",
"0.492835"
] |
0.64859253
|
6
|
Computes the difference in time between two dates.
|
public int timeSpentSince(Date beginDate) throws InvalidDateException {
int diffYears = this.year - beginDate.getYear();
int diffMonths = this.month - beginDate.getMonth();
int diffDays = this.day - beginDate.getDay();
int diffHours = this.hour - beginDate.getHour();
int diffMinutes = (this.minute - beginDate.getMinute()) + 60*(diffHours + 24*(diffDays + 31*(diffMonths + 12*diffYears)));
if (diffMinutes < 0) {
throw new InvalidDateException("The beginning date is posterior to the ending date !");
} else {
return diffMinutes;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected double difftime(double t2, double t1) {\n\t\treturn t2 - t1;\n\t}",
"private static long timeDiff(final Date startDate, final Date endDate, final TimeUnit timeUnit) {\n if (startDate == null) {\n throw new NullPointerException(\"start\");\n }\n\n if (endDate == null) {\n throw new NullPointerException(\"end\");\n }\n\n return timeUnit.convert(endDate.getTime() - startDate.getTime(), TimeUnit.MILLISECONDS);\n }",
"public long getDifference(Date startDate, Date endDate){\n\n //milliseconds\n long different = endDate.getTime() - startDate.getTime();\n\n System.out.println(\"startDate : \" + startDate);\n System.out.println(\"endDate : \"+ endDate);\n System.out.println(\"different : \" + different);\n\n long secondsInMilli = 1000;\n long minutesInMilli = secondsInMilli * 60;\n long hoursInMilli = minutesInMilli * 60;\n long daysInMilli = hoursInMilli * 24;\n\n long elapsedDays = different / daysInMilli;\n different = different % daysInMilli;\n\n long elapsedHours = different / hoursInMilli;\n different = different % hoursInMilli;\n\n long elapsedMinutes = different / minutesInMilli;\n different = different % minutesInMilli;\n\n long elapsedSeconds = different / secondsInMilli;\n\n System.out.printf(\n \"%d days, %d hours, %d minutes, %d seconds%n\",\n elapsedDays,\n elapsedHours, elapsedMinutes, elapsedSeconds);\n\n return elapsedMinutes;\n }",
"public static long getDiffInMilliSeconds(Date date1, Date date2){\n return date1.getTime() - date2.getTime();\n }",
"public long difference() {\n long differenceBetweenDate = ChronoUnit.DAYS.between(startDate.toInstant(), endDate.toInstant());\n\n return differenceBetweenDate;\n\n }",
"private static long getDateDiff(Date date1, Date date2, TimeUnit timeUnit) {\n long diffInMillies = date2.getTime() - date1.getTime();\n return timeUnit.convert(diffInMillies, TimeUnit.MILLISECONDS);\n }",
"public static int[] getElapsedTime(Date first, Date second) {\n if (first.compareTo(second) == 1 ) {\n return null;\n }\n int difDays = 0;\n int difHours = 0;\n int difMinutes = 0;\n\n Calendar c = Calendar.getInstance();\n c.setTime(first);\n int h1 = c.get(Calendar.HOUR_OF_DAY);\n int m1 = c.get(Calendar.MINUTE);\n\n c.setTime(second);\n int h2 = c.get(Calendar.HOUR_OF_DAY);\n int m2 = c.get(Calendar.MINUTE);\n\n if (sameDay(first, second)) {\n difHours = h2 - h1;\n } else {\n difDays = getNumberOfDays(first, second)-1;\n if (h1 >= h2) {\n difDays--;\n difHours = (24 - h1) + h2;\n } else {\n difHours = h2 - h1;\n }\n }\n\n if (m1 >= m2) {\n difHours--;\n difMinutes = (60 - m1) + m2;\n } else {\n difMinutes = m2 - m1;\n }\n\n int[] result = new int[3];\n result[0] = difDays;\n result[1] = difHours;\n result[2] = difMinutes;\n return result;\n }",
"private long getTimeDifference(Time timeValue1, Time timeValue2){\n return (timeValue2.getTime()-timeValue1.getTime())/1000;\n }",
"static int calculateTimeDelta(TimeInterval interval_1, TimeInterval interval_2) {\n TimeInterval earlier;\n TimeInterval later;\n if (interval_1.getStartTime().before(interval_2.getStartTime())) {\n earlier = interval_1;\n later = interval_2;\n } else {\n earlier = interval_2;\n later = interval_1;\n }\n\n return (int) (later.getStartTime().getTime() - earlier.getStopTime().getTime());\n }",
"public static String dateDiff(Date date1, Date date2) {\n long lower = Math.min(date1.getTime(), date2.getTime());\n long upper = Math.max(date1.getTime(), date2.getTime());\n long diff = upper - lower;\n\n long days = diff / (24 * 60 * 60 * 1000);\n long hours = diff / (60 * 60 * 1000) % 24;\n long minutes = diff / (60 * 1000) % 60;\n long seconds = diff / 1000 % 60;\n\n return String.format(\"%02d:%02d:%02d:%02d\", days, hours, minutes, seconds);\n\t}",
"public static long getDateDiff(Date date1, Date date2, TimeUnit timeUnit) {\n\t\t long diffInMillies = date2.getTime() - date1.getTime();\n\t\t return timeUnit.convert(diffInMillies,TimeUnit.MILLISECONDS);\n\t\t}",
"public static long substract(Date source, Date target) {\n long t = STARDARD_FROM_TIMEMILLS;\n long sTimeMills = source.getTime() - t;\n long tTimeMills = target.getTime() - t;\n if (sTimeMills < tTimeMills) {\n long temp = sTimeMills;\n sTimeMills = tTimeMills;\n tTimeMills = temp;\n }\n long start = sTimeMills / TIME_MILLS_ONE_DAY;\n long end = tTimeMills / TIME_MILLS_ONE_DAY;\n return start - end;\n }",
"public static void calTime() {\n time = new Date().getTime() - start;\n }",
"public static long getDateDiff(java.util.Date date1, java.util.Date date2, TimeUnit timeUnit) {\n\t long diffInMillies = date2.getTime() - date1.getTime();\n\t return timeUnit.convert(diffInMillies, timeUnit);\n\t}",
"public static float diffDate(String timeStart, String timeStop) throws Exception {\n SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT, Locale.ENGLISH);\n Date firstDate = sdf.parse(timeStart);\n Date secondDate = sdf.parse(timeStop);\n long diffInMilliSeconds = Math.abs(secondDate.getTime() - firstDate.getTime());\n return TimeUnit.MINUTES.convert(diffInMilliSeconds, TimeUnit.MILLISECONDS) / 60f;\n }",
"public long timeDifference(Datum datum) {\n\t\treturn (date.getTime() - datum.getTime()) / 60000;\n }",
"public static int CalcularDiferenciaDiasFechas(Date fecha1, Date fecha2){\n Calendar cal1 = Calendar.getInstance();\r\n Calendar cal2 = Calendar.getInstance();\r\n cal1.setTime(fecha1);\r\n cal2.setTime(fecha2);\r\n // conseguir la representacion de la fecha en milisegundos\r\n long milis1 = cal1.getTimeInMillis();\r\n long milis2 = cal2.getTimeInMillis();\r\n // calcular la diferencia en milisengundos\r\n long diff = milis2 - milis1;\r\n // calcular la diferencia en horas\r\n Long diffHours = diff / (24 * 60 * 60 * 1000);\r\n return diffHours.intValue();\r\n }",
"public long getDifference(DateTime dt) {\n return (this.date.getTime() - dt.date.getTime()) / 1000;\r\n }",
"public static long CalcularDiferenciaHorasFechas(Date fecha1, Date fecha2){\n Calendar cal1 = Calendar.getInstance();\r\n Calendar cal2 = Calendar.getInstance();\r\n cal1.setTime(fecha1);\r\n cal2.setTime(fecha2);\r\n // conseguir la representacion de la fecha en milisegundos\r\n long milis1 = cal1.getTimeInMillis();\r\n long milis2 = cal2.getTimeInMillis();\r\n // calcular la diferencia en milisengundos\r\n long diff = milis2 - milis1;\r\n // calcular la diferencia en horas\r\n long diffHours = diff / (60 * 60 * 1000);\r\n return diffHours;\r\n }",
"public double getWaitTime(Flight flight2) {\n Calendar date1 = createNewCalendar(arrivalDateTime);\n Calendar date2 = createNewCalendar(flight2.getDepartureDateTime());\n // get the difference in time in milliseconds\n double timeDifference = date2.getTimeInMillis() - date1.getTimeInMillis();\n // convert to hours\n return timeDifference / (1000 * 60 * 60);\n }",
"public long dayDiffCalculator(String a, String b){\n\n long dateDiff = 0;\n\n Date d1 = null;\n Date d2 = null;\n\n try{\n d1 = sdf.parse(a);\n d2 = sdf.parse(b);\n\n long diff = d2.getTime() - d1.getTime();\n\n long diffSeconds = diff / 1000 % 60;\n long diffMinutes = diff / (60 * 1000) % 60;\n long diffHours = diff / (60 * 60 * 1000) % 24;\n long diffDays = diff / (24 * 60 * 60 * 1000);\n\n dateDiff = diffDays;\n\n } catch (Exception e){}\n\n return dateDiff;\n }",
"private long getDuration() throws Exception {\n\treturn dtEnd.getTime() - dtStart.getTime();\n }",
"public static long hoursBetween(final Date start, final Date end) {\n return Dates.timeDiff(start, end, TimeUnit.HOURS);\n }",
"public static void DateDiff(Date date1, Date date2) {\n int diffDay = diff(date1, date2);\n System.out.println(\"Different Day : \" + diffDay);\n }",
"public long printDifferenceDay(Date startDate, Date endDate){\n\n //milliseconds\n long different = endDate.getTime() - startDate.getTime();\n\n long secondsInMilli = 1000;\n long minutesInMilli = secondsInMilli * 60;\n long hoursInMilli = minutesInMilli * 60;\n long daysInMilli = hoursInMilli * 24;\n\n double elapsedDays = (double) Math.ceil((different / daysInMilli) + 0.5);\n different = different % daysInMilli;\n\n long elapsedHours = different / hoursInMilli;\n different = different % hoursInMilli;\n\n long elapsedMinutes = different / minutesInMilli;\n different = different % minutesInMilli;\n\n long elapsedSeconds = different / secondsInMilli;\n\n return (long) elapsedDays;\n //System.out.printf(\"%d days, %d hours, %d minutes, %d seconds%n\",elapsedDays,elapsedHours, elapsedMinutes, elapsedSeconds);\n\n }",
"public static void printDifference(Date startDate, Date endDate) {\n\n //milliseconds\n long different = endDate.getTime() - startDate.getTime();\n\n System.out.println(\"startDate : \" + startDate);\n System.out.println(\"endDate : \" + endDate);\n System.out.println(\"different : \" + different);\n\n long secondsInMilli = 1000;\n long minutesInMilli = secondsInMilli * 60;\n long hoursInMilli = minutesInMilli * 60;\n long daysInMilli = hoursInMilli * 24;\n\n long elapsedDays = different / daysInMilli;\n different = different % daysInMilli;\n\n long elapsedHours = different / hoursInMilli;\n different = different % hoursInMilli;\n\n long elapsedMinutes = different / minutesInMilli;\n different = different % minutesInMilli;\n\n long elapsedSeconds = different / secondsInMilli;\n\n System.out.printf(\n \"%d days, %d hours, %d minutes, %d seconds%n\",\n elapsedDays,\n elapsedHours, elapsedMinutes, elapsedSeconds);\n\n }",
"public static long getDateDiffer(Calendar cal1, Calendar cal2){\n long millis1 = cal1.getTimeInMillis();\n long millis2 = cal2.getTimeInMillis();\n\n // Calculate difference in milliseconds\n long diff = millis2 - millis1;\n\n // Calculate difference in seconds\n long diffSeconds = diff / 1000;\n\n // Calculate difference in minutes\n long diffMinutes = diff / (60 * 1000);\n\n // Calculate difference in hours\n long diffHours = diff / (60 * 60 * 1000);\n\n // Calculate difference in days\n long diffDays = diff / (24 * 60 * 60 * 1000);\n\n System.out.println(\"In milliseconds: \" + diff + \" milliseconds.\");\n System.out.println(\"In seconds: \" + diffSeconds + \" seconds.\");\n System.out.println(\"In minutes: \" + diffMinutes + \" minutes.\");\n System.out.println(\"In hours: \" + diffHours + \" hours.\");\n System.out.println(\"In days: \" + diffDays + \" days.\");\n\n return diffDays;\n }",
"public long getTimeDifference(Event event) {\n return this.getDate().getTimeInMillis() - event.getDate().getTimeInMillis();\n }",
"public static String calcualte_timeDifference(String datetobeFormatted) {\n\n int days = 0,hours = 0,minutes = 0,seconds = 0,weeks=0;\n try {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df_current = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = df_current.format(c.getTime());\n Date date_current = df_current.parse(formattedDate);\n\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = df.parse(datetobeFormatted);\n\n\n DateTime dt1 = new DateTime(date);\n DateTime dt2 = new DateTime(date_current);\n\n days = Days.daysBetween(dt1, dt2).getDays();\n hours = Hours.hoursBetween(dt1, dt2).getHours() % 24;\n minutes = Minutes.minutesBetween(dt1, dt2).getMinutes() % 60;\n seconds = Seconds.secondsBetween(dt1, dt2).getSeconds() % 60;\n weeks = Weeks.weeksBetween(dt1, dt2).getWeeks();\n\n\n Log.i(\"Date \",datetobeFormatted);\n Log.i(\"Days \",(Days.daysBetween(dt1, dt2).getDays() + \" days, \"));\n //Log.i(\"Days \",Hours.hoursBetween(dt1, dt2).getHours() % 24 + \" hours, \");\n //Log.i(\"Days \",Minutes.minutesBetween(dt1, dt2).getMinutes() % 60 + \" minutes, \");\n\n\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(weeks>1)\n {\n return weeks+\"w\";\n }else\n {\n return days+\"d\";\n }\n /* else if(hours>1 && days<1)\n {\n return hours+\"h\";\n }\n else if(minutes>1 && hours<1)\n {\n return minutes+\"m\";\n }else\n {\n return seconds+\"s\";\n }*/\n }",
"public static long deltaSeconds(Date d1, Date d2) {\n Arguments.Ensure.NotNull(d1, d2);\n long difference = d2.getTime() - d1.getTime();\n return difference / 1000;\n }",
"public long days(Date date2) {\n\t\tlong getDaysDiff =0;\n\t\t DateFormat simpleDateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n\t\t Date currentDate = new Date();\n\t\t Date date1 = null;\n\t\t Date date3 = null;\n\n\t\t\n\n\t\t try {\n\t\t String startDate = simpleDateFormat.format(date2);\n\t\t String endDate = simpleDateFormat.format(currentDate);\n\n\t\t date1 = simpleDateFormat.parse(startDate);\n\t\t date3 = simpleDateFormat.parse(endDate);\n\n\t\t long getDiff = date3.getTime() - date1.getTime();\n\n\t\t getDaysDiff = getDiff / (24 * 60 * 60 * 1000);\n\t\t \n\t\t \n\t\t \n\t\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t return getDaysDiff;\n\n}",
"public static long dateDiff(String dateString1, String dateString2) throws TestingException, ParseException {\n\n\t\tdateString1 = dateString1.replaceAll(\"T\", \" \");\n\t\tdateString2 = dateString2.replaceAll(\"T\", \" \");\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n\t\tdateString1 = formatDateTime(dateString1, \"yyyy-MM-dd HH:mm:ss\");\n\t\tdateString2 = formatDateTime(dateString2, \"yyyy-MM-dd HH:mm:ss\");\n\n\t\tDate date1 = format.parse(dateString1);\n\t\tDate date2 = format.parse(dateString2);\n\n\t\tlong ret = date2.getTime() - date1.getTime();\n\t\treturn ret / 1000;\n\t}",
"public double TimeTaken(Date dtStartDate) {\n\t\t\tDate dtEndDate = new Date();\n\t\t\tdouble dtTimeTaken = dtEndDate.getTime() - dtStartDate.getTime();\n\t\t\tdtTimeTaken = dtTimeTaken / 1000;\n\t\t\treturn dtTimeTaken;\n\t\t}",
"protected EditorLanguage timeDiff(String varStart, String varEnd)\n\t{\n\t\treturn text('(').text(varEnd).text(\" - \").text(varStart).text(\") / 1000.0\");\n\t}",
"public static void duration(){\n Instant instant1 = Instant.ofEpochSecond(3);\n Instant instant2 = Instant.ofEpochSecond(3, 0);\n\n// Duration d1 = Duration.between(time1, time2);\n// Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(instant1, instant2);\n }",
"public static void dateDifference(){\r\n\t\t\r\n\t\tLocalDate firstDate = LocalDate.of(2013, 3, 20);\r\n\t\tLocalDate secondDate = LocalDate.of(2015, 8, 12);\r\n\t\t\r\n\t\tPeriod diff = Period.between(firstDate, secondDate);\r\n\t\tSystem.out.println(\"The Difference is ::\"+diff.getDays());\r\n\t}",
"private static int hoursDifference(Date date1, Date date2,TypeDate typeDate) {\n\n\t\tfinal int MILLI_TO_HOUR = 1000 * 60 * 60;\n\t\tfinal int MILLI_TO_DAY = MILLI_TO_HOUR*24;\n\t\tfinal int MILLI_TO_WEEK = MILLI_TO_DAY*7;\n\n\t\tint result=0;\n\t\tswitch (typeDate) {\n\n\t\tcase HOUR:\n\t\t\tresult= (int) (date2.getTime() - date1.getTime()) / MILLI_TO_HOUR;\n\t\t\tbreak;\n\n\t\tcase DAY:\n\t\t\tresult= (int) (date2.getTime() - date1.getTime()) / MILLI_TO_DAY;\n\t\t\tbreak;\n\n\t\tcase WEEK:\n\t\t\tresult= (int) (date2.getTime() - date1.getTime()) / MILLI_TO_WEEK;\n\t\t\tbreak;\n\n\t\t}\n\t\treturn result;\n\t}",
"DateTime getTime();",
"public static long getDiffDays(Date date1,Date date2) {\n Calendar calendar1= Calendar.getInstance();\n Calendar calendar2 = Calendar.getInstance();\n\n calendar1.setTime(date1);\n calendar2.setTime(date2);\n\n long msDiff = calendar1.getTimeInMillis()-calendar2.getTimeInMillis();\n long daysDiff = TimeUnit.MILLISECONDS.toDays(msDiff);\n Log.e(\"Amarneh\",\"diffDays>>\"+daysDiff);\n return daysDiff;\n }",
"public long getElapsedTime(){\n long timePassed = endTime - startTime;\n return timePassed;\n }",
"protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}",
"private long dateDiffInNumberOfDays(LocalDate startDate, LocalDate endDate) {\n\n return ChronoUnit.DAYS.between(startDate, endDate);\n }",
"public Long getTime() {\n if (timeEnd == null) {\n return null;\n }\n return timeEnd - timeStart;\n }",
"public static long secondsBetween(final Date start, final Date end) {\n return Dates.timeDiff(start, end, TimeUnit.SECONDS);\n }",
"DateDiff(Datum date1, Datum date2)\r\n\t{\r\n\t\t// Return when equal\r\n\t\tif (date1.equals(date2))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Switch Min / Max\r\n\t\tDatum Maxdate = date1.kleinerDan(date2) ? date2 : date1;\r\n\t\tDatum minDate = date1.kleinerDan(date2) ? date1 : date2;\r\n\t\tminDate = new Datum(minDate); //Cloned for calculations\r\n\r\n\t\t// Not in same month or year? -> Add 1 month\r\n\t\twhile (minDate.getMonth() != Maxdate.getMonth()\r\n\t\t\t\t|| minDate.getYear() != Maxdate.getYear())\r\n\t\t{\r\n\t\t\t//Get the days of the month being processed.\r\n\t\t\tint dim = Maanden.get(minDate.getMonth()).GetLength(minDate.getYear());\r\n\t\t\tminDate.veranderDatum(dim); // Add 1 month\r\n\t\t\tdays += dim; //add days\r\n\t\t\tmonths++; // add one month\r\n\t\t}\r\n\t\t// Add or subtract remaining days (in same month)\r\n\t\tdays += Maxdate.getDay() - minDate.getDay();\r\n\t\t//Subtract one month if the MaxDay is bigger then MinDay\r\n\t\tmonths -= (Maxdate.getDay() < minDate.getDay() ? 1 : 0);\r\n\t}",
"public Double waitTimeCalculatior(long start) {\n\t\t\t\tdouble difference = (System.currentTimeMillis() - start);\n\t\t\t\treturn difference;\n\t\t\t}",
"public int getDifference(DaysBetween dt1, DaysBetween dt2)\n {\n // COUNT TOTAL NUMBER OF DAYS BEFORE FIRST DATE 'dt1'\n \n // initialize count using years and day\n int n1 = dt1.y * 365 + dt1.d;\n \n // Add days for months in given date\n for (int i = 0; i < dt1.m - 1; i++) \n {\n n1 += monthDays[i];\n }\n \n // Since every leap year is of 366 days,\n // Add a day for every leap year\n n1 += countLeapYears(dt1);\n \n // SIMILARLY, COUNT TOTAL NUMBER OF DAYS BEFORE 'dt2'\n int n2 = dt2.y * 365 + dt2.d;\n for (int i = 0; i < dt2.m - 1; i++)\n {\n n2 += monthDays[i];\n }\n n2 += countLeapYears(dt2);\n \n // return difference between two counts\n return (n2 - n1);\n }",
"private static void testDuration() {\n LocalTime time1 = LocalTime.of(15, 20, 38);\n LocalTime time2 = LocalTime.of(21, 8, 49);\n\n LocalDateTime dateTime1 = time1.atDate(LocalDate.of(2014, 5, 27));\n LocalDateTime dateTime2 = time2.atDate(LocalDate.of(2015, 9, 15));\n\n Instant i1 = Instant.ofEpochSecond(1_000_000_000);\n Instant i2 = Instant.now();\n\n // create duration between two points\n Duration d1 = Duration.between(time1, time2);\n Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(i1, i2);\n Duration d4 = Duration.between(time1, dateTime2);\n\n // create duration from some random value\n Duration threeMinutes;\n threeMinutes = Duration.ofMinutes(3);\n threeMinutes = Duration.of(3, ChronoUnit.MINUTES);\n }",
"public long differenceBetweenDates(Date uno, Date due) {\r\n Calendar c1 = Calendar.getInstance();\r\n Calendar c2 = Calendar.getInstance();\r\n c1.setTime(uno);\r\n c2.setTime(due);\r\n\r\n long giorni = (c2.getTime().getTime() - c1.getTime().getTime()) / (24 * 3600 * 1000);\r\n\r\n return giorni;\r\n }",
"public float getTime() {\n return Math.abs(endTime - startTime) / 1000000f;\n }",
"public int getDifferenceInDate(String sPreviousDate, String sCurrentDate) {\n Calendar calPrevious = null;\n Calendar calCurrent = null;\n String[] arrTempDate = null;\n long longPreviousDate = 0;\n long longCurrentTime = 0;\n int timeDelay = 0;\n try {\n if (sPreviousDate.contains(\":\") && sCurrentDate.contains(\":\")) {\n arrTempDate = sPreviousDate.split(\":\");\n calPrevious = Calendar.getInstance();\n calPrevious.set(Integer.parseInt(arrTempDate[0]), (Integer.parseInt(arrTempDate[1]) - 1),\n Integer.parseInt(arrTempDate[2]), Integer.parseInt(arrTempDate[3]), Integer.parseInt(arrTempDate[4]));\n arrTempDate = sCurrentDate.split(\":\");\n\n calCurrent = Calendar.getInstance();\n calCurrent.set(Integer.parseInt(arrTempDate[0]), (Integer.parseInt(arrTempDate[1]) - 1),\n Integer.parseInt(arrTempDate[2]), Integer.parseInt(arrTempDate[3]), Integer.parseInt(arrTempDate[4]));\n longPreviousDate = Long.parseLong(new SimpleDateFormat(\"yyyyMMddHHmm\").format(calPrevious.getTime()));\n longCurrentTime = Long.parseLong(new SimpleDateFormat(\"yyyyMMddHHmm\").format(calCurrent.getTime()));\n ///println(\"Previous Time In Int= \"+longPreviousDate);\n //println(\"Current Time In Int= \"+longCurrentTime);\n if (longCurrentTime > longPreviousDate) {\n while (true) {\n timeDelay++;\n calCurrent.add(Calendar.MINUTE, -1);\n longCurrentTime = Long.parseLong(new SimpleDateFormat(\"yyyyMMddHHmm\").format(calCurrent.getTime()));\n //println(\"Previous Time In Int= \"+longPreviousDate);\n //println(\"Current Time In Int= \"+longCurrentTime);\n if (longCurrentTime < longPreviousDate) {\n break;\n }\n }\n }\n }\n } catch (Exception e) {\n println(\"getDifferenceInDate : Exception : \" + e.toString());\n } finally {\n return timeDelay;\n }\n }",
"public static int diff(Date date1, Date date2) {\n Calendar c1 = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n\n c1.setTime(date1);\n c2.setTime(date2);\n int diffDay = 0;\n\n if (c1.before(c2)) {\n diffDay = countDiffDay(c1, c2);\n } else {\n diffDay = countDiffDay(c2, c1);\n }\n\n return diffDay;\n }",
"public void calculateHours(String time1, String time2) {\n Date date1, date2;\n int days, hours, min;\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"hh:mm aa\", Locale.US);\n try {\n date1 = simpleDateFormat.parse(time1);\n date2 = simpleDateFormat.parse(time2);\n\n long difference = date2.getTime() - date1.getTime();\n days = (int) (difference / (1000 * 60 * 60 * 24));\n hours = (int) ((difference - (1000 * 60 * 60 * 24 * days)) / (1000 * 60 * 60));\n min = (int) (difference - (1000 * 60 * 60 * 24 * days) - (1000 * 60 * 60 * hours)) / (1000 * 60);\n hours = (hours < 0 ? -hours : hours);\n SessionHour = hours;\n SessionMinit = min;\n Log.i(\"======= Hours\", \" :: \" + hours + \":\" + min);\n\n if (SessionMinit > 0) {\n if (SessionMinit < 10) {\n SessionDuration = SessionHour + \":\" + \"0\" + SessionMinit + \" hrs\";\n } else {\n SessionDuration = SessionHour + \":\" + SessionMinit + \" hrs\";\n }\n } else {\n SessionDuration = SessionHour + \":\" + \"00\" + \" hrs\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }",
"public static String calFormatDateDifference(final Date start, final Date end) {\r\n\t\tlong l1 = start.getTime();\r\n\t\tlong l2 = end.getTime();\r\n\t\tlong diff = l2 - l1;\r\n\r\n\t\tlong secondInMillis = 1000;\r\n\t\tlong minuteInMillis = secondInMillis * 60;\r\n\t\tlong hourInMillis = minuteInMillis * 60;\r\n\t\tlong dayInMillis = hourInMillis * 24;\r\n\t\tlong yearInMillis = dayInMillis * 365;\r\n\r\n\t\tlong elapsedYears = diff / yearInMillis;\r\n\t\tdiff = diff % yearInMillis;\r\n\t\tlong elapsedDays = diff / dayInMillis;\r\n\t\tdiff = diff % dayInMillis;\r\n\t\tlong elapsedHours = diff / hourInMillis;\r\n\t\tdiff = diff % hourInMillis;\r\n\t\tlong elapsedMinutes = diff / minuteInMillis;\r\n\t\tdiff = diff % minuteInMillis;\r\n\t\tlong elapsedSeconds = diff / secondInMillis;\r\n\t\t\r\n\t\treturn elapsedYears + \" years, \" + elapsedDays + \" days, \" + elapsedHours + \" hrs, \" + elapsedMinutes + \" mins, \" + elapsedSeconds + \" secs\";\r\n\t}",
"public String fnTimeDiffference(long startTime, long endTime) {\r\n\r\n\t\t//Finding the difference in milliseconds\r\n\t\tlong delta = endTime - startTime;\r\n\r\n\t\t//Finding number of days\r\n\t\tint days = (int) delta / (24 * 3600 * 1000);\r\n\r\n\t\t//Finding the remainder\r\n\t\tdelta = (int) delta % (24 * 3600 * 1000);\r\n\r\n\t\t//Finding number of hrs\r\n\t\tint hrs = (int) delta / (3600 * 1000);\r\n\r\n\t\t//Finding the remainder\r\n\t\tdelta = (int) delta % (3600 * 1000);\r\n\r\n\t\t//Finding number of minutes\r\n\t\tint min = (int) delta / (60 * 1000);\r\n\r\n\t\t//Finding the remainder\r\n\t\tdelta = (int) delta % (60 * 1000);\r\n\r\n\t\t//Finding number of seconds\r\n\t\tint sec = (int) delta / 1000;\r\n\r\n\t\t//Concatenting to get time difference in the form day:hr:min:sec \r\n\t\t//String strTimeDifference = days + \":\" + hrs + \":\" + min + \":\" + sec;\r\n\t\tString strTimeDifference = days + \"d \" + hrs + \"h \" + min + \"m \" + sec + \"s\";\r\n\t\treturn strTimeDifference;\r\n\t}",
"double getTime();",
"public int computeDuration() {\n return (int) Duration.between(getStart_time(), getEnd_time()).toSeconds();\n }",
"protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}",
"public long getTime() {\n\t\tDate _date = new Date();\n\t\tlong _time = _date.getTime();\n\t\t_time = _time + getDeltaDate();\n\t\treturn _time;\n\t}",
"private double calculateTime(final @NonNull DateTime shiftStartTime) {\n final DateTime currentDate = new DateTime();\n final Seconds seconds = Seconds.secondsBetween(shiftStartTime, currentDate);\n final double secondsDouble = seconds.getSeconds();\n return secondsDouble / 3600;\n }",
"public int totalTime()\n {\n return departureTime - arrivalTime;\n }",
"public static void main(String[] args) {\n\t\t\tCalendar ca1 = Calendar.getInstance();\r\n\t Calendar ca2 = Calendar.getInstance();\r\n\t // Set the date for both of the calendar to get difference\r\n\t ca1.set(1980,2,20);\r\n\t ca2.set(2014, 2, 25);\r\n\r\n\t // Get date in milliseconds\r\n\t long milisecond1 = ca1.getTimeInMillis();\r\n\t long milisecond2 = ca2.getTimeInMillis();\r\n\r\n\t // Find date difference in milliseconds\r\n\t long diffInMSec = milisecond2 - milisecond1;\r\n\r\n\t // Find date difference in days \r\n\t // (24 hours 60 minutes 60 seconds 1000 millisecond)\r\n\t long diffOfDays = diffInMSec / (24 * 60 * 60 * 1000);\r\n\r\n\t System.out.println(\"Date Difference in : \" + diffOfDays + \" days.\");\r\n\r\n\t}",
"public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }",
"public int compareTo(Time other) {\n // if both times have a date, return the difference if there is one, else\n // continue with standard comparison\n if (this.date != null && other.date != null) {\n if (this.date.compareTo(other.date) != 0) {\n return this.date.compareTo(other.date);\n }\n }\n\n boolean nextDay = DayOfWeek.isNextDay(this.day, other.day);\n\n // if other day is not the day after this day and days aren't the same\n if (!nextDay && !DayOfWeek.isSameDay(this.day, other.day)) {\n return this.day - other.day;\n\n // if other day is day after this day\n } else if (nextDay) {\n return this.hour - (other.hour + 24); // add 24 to represent next day\n\n // if day is the same\n } else {\n if (this.hour != other.hour) {\n return this.hour - other.hour;\n } else {\n return this.minute - other.minute;\n }\n }\n }",
"private String getTimestampDifference(){\r\n Log.d(TAG, \"getTimestampDifference: getting timestamp difference.\");\r\n\r\n String difference = \"\";\r\n Calendar c = Calendar.getInstance();\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", Locale.UK);\r\n sdf.setTimeZone(TimeZone.getTimeZone(\"Asia/Dubai\"));//google 'android list of timezones'\r\n Date today = c.getTime();\r\n sdf.format(today);\r\n Date timestamp;\r\n\r\n final String photoTimestamp = mJobPhoto.getDate_created();\r\n try{\r\n timestamp = sdf.parse(photoTimestamp);\r\n difference = String.valueOf(Math.round(((today.getTime() - timestamp.getTime()) / 1000 / 60 / 60 / 24 )));\r\n }catch (ParseException e){\r\n Log.e(TAG, \"getTimestampDifference: ParseException: \" + e.getMessage() );\r\n difference = \"0\";\r\n }\r\n return difference;\r\n }",
"private static int dateDiff(final Date startDate, final Date endDate, final int field) {\n if (startDate == null) {\n throw new NullPointerException(\"start\");\n }\n\n if (endDate == null) {\n throw new NullPointerException(\"end\");\n }\n\n final Calendar start = Dates.toUTCCalendarWithoutTime(startDate);\n final Calendar end = Dates.toUTCCalendarWithoutTime(endDate);\n int elapsed = 0;\n\n if (start.before(end)) {\n while (start.before(end)) {\n start.add(field, 1);\n elapsed++;\n }\n } else if (start.after(end)) {\n while (start.after(end)) {\n start.add(field, -1);\n elapsed--;\n }\n }\n\n return elapsed;\n }",
"public int getTotalTime();",
"public static double diff(double a, double b) {\n return a - b;\n }",
"public double computeElapsedTime() {\r\n\r\n long now = System.currentTimeMillis();\r\n\r\n elapsedTime = (double) (now - startTime);\r\n\r\n // if elasedTime is invalid, then set it to 0\r\n if (elapsedTime <= 0) {\r\n elapsedTime = (double) 0.0;\r\n }\r\n\r\n return (double) (elapsedTime / 1000.0); // return in seconds!!\r\n }",
"private long getDaysBetween(LocalDateTime d1, LocalDateTime d2) {\n return d1.until(d2,DAYS);\n }",
"public Duration getDurationFrom(Date startDate);",
"public long elapsedTime(long startTime,long endTime){\r\n\t\tlong elapsedTime=(endTime-startTime)/1000;\r\n\t\treturn elapsedTime;\r\n\t}",
"public int duration (long start, long end){\n\t\tlong duration = end - start;\n\t\tint time = (int)(duration /1000);\n\t\treturn time;\n\t}",
"public static void main(String[] args) {\n LocalDate endofCentury = LocalDate.of(2014, 01, 01);\n LocalDate now = LocalDate.now();\n\n Period diff = Period.between(endofCentury, now);\n\n System.out.printf(\"Difference is %d years, %d months and %d days old\",\n diff.getYears(), diff.getMonths(), diff.getDays());\n\n\n //-----------------------------------------------------------------\n // java.time.temporal.ChronoUnit example to know the difference in days/months/years\n LocalDate dateOfBirth = LocalDate.of(1980, Month.JULY, 4);\n LocalDate currentDate = LocalDate.now();\n long diffInDays = ChronoUnit.DAYS.between(dateOfBirth, currentDate);\n long diffInMonths = ChronoUnit.MONTHS.between(dateOfBirth, currentDate);\n long diffInYears = ChronoUnit.YEARS.between(dateOfBirth, currentDate);\n\n\n LocalDateTime dateTime1 = LocalDateTime.of(1988, 7, 4, 0, 0);\n LocalDateTime dateTime2 = LocalDateTime.now();\n long diffInNano1 = ChronoUnit.NANOS.between(dateTime1, dateTime2);\n long diffInSeconds1 = ChronoUnit.SECONDS.between(dateTime1, dateTime2);\n long diffInMilli1 = ChronoUnit.MILLIS.between(dateTime1, dateTime2);\n long diffInMinutes1 = ChronoUnit.MINUTES.between(dateTime1, dateTime2);\n long diffInHours1 = ChronoUnit.HOURS.between(dateTime1, dateTime2);\n\n //-----------------------------------------------------------------\n // java.time.Duration example to know the difference in millis/seconds/minutes etc\n LocalDateTime dateTime3 = LocalDateTime.of(1988, 7, 4, 0, 0);\n LocalDateTime dateTime4 = LocalDateTime.now();\n int diffInNano2 = java.time.Duration.between(dateTime3, dateTime4).getNano();\n long diffInSeconds2 = java.time.Duration.between(dateTime3, dateTime4).getSeconds();\n long diffInMilli2 = java.time.Duration.between(dateTime3, dateTime4).toMillis();\n long diffInMinutes2 = java.time.Duration.between(dateTime3, dateTime4).toMinutes();\n long diffInHours2 = java.time.Duration.between(dateTime3, dateTime4).toHours();\n }",
"private double getTimeRemainingInUTCDay(){\n\t\tdouble daysLeftInDay;\n\n\t\tInstant origin = Instant.ofEpochMilli (cur_mainshock.getOriginTime());\n\t\tZonedDateTime zdt = ZonedDateTime.ofInstant (origin, ZoneOffset.UTC);\n\t\tZonedDateTime zdt2 = zdt.toLocalDate().atStartOfDay (ZoneOffset.UTC);\n\t\tInstant daybreak = zdt2.toInstant();\n\n//\t\tSimpleDateFormat formatter=new SimpleDateFormat(\"d MMM yyyy, HH:mm:ss\");\n//\t\tformatter.setTimeZone(utc); //utc=TimeZone.getTimeZone(\"UTC\"));\n//\t\tSystem.out.println(formatter.format(Date.from (origin)));\n//\t\tSystem.out.println(formatter.format(Date.from (daybreak)));\n\t\t\n\t\tdaysLeftInDay = 1.0 - ((double)(origin.toEpochMilli() - daybreak.toEpochMilli()))/ComcatOAFAccessor.day_millis;\n\t\tif (daysLeftInDay == 1.0) {\n\t\t\tdaysLeftInDay = 0.0;\n\t\t}\n\t\treturn daysLeftInDay;\n\t}",
"long elapsedTime();",
"public double getTime();",
"public void calculateTimeDifferences() {\n\n findExits();\n\n try {\n\n\n if (accumulate.size() > 0) {\n\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value > accumulate.get(i - 1).value\n && timeOfExists.size() > 0) {\n\n double timeOfEntry = accumulate.get(i).timeOfChange;\n double timeOfExit = timeOfExists.get(0);\n\n timeOfExists.remove(timeOfExit);\n timeOfChanges.add(timeOfExit - timeOfEntry);\n }\n\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"calculateTimeDifferences \"\n + \"Method as thrown an OutOfBoundsException: \"\n + exception\n + \"Your timeOfChanges seems to be null\");\n }\n }",
"public String twoDatesBetweenTime(Date oldtime)\n {\n int day = 0;\n int hh = 0;\n int mm = 0;\n int ss =0;\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date oldDate = oldtime;\n Date cDate = new Date();\n Long timeDiff = cDate.getTime() - oldDate.getTime();\n day = (int) TimeUnit.MILLISECONDS.toDays(timeDiff);\n hh = (int) (TimeUnit.MILLISECONDS.toHours(timeDiff) - TimeUnit.DAYS.toHours(day));\n mm = (int) (TimeUnit.MILLISECONDS.toMinutes(timeDiff) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(timeDiff)));\n ss = (int) (TimeUnit.MILLISECONDS.toSeconds(timeDiff)- TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(timeDiff)));\n DecimalFormat formatter = new DecimalFormat(\"00\");\n String hhf = formatter.format(hh);\n String mmf = formatter.format(mm);\n String ssf = formatter.format(ss);\n return hhf+\":\"+mmf+\":\"+ssf;\n }",
"Duration getRemainingTime();",
"public static long minutesBetween(final Date start, final Date end) {\n return Dates.timeDiff(start, end, TimeUnit.MINUTES);\n }",
"public double getTimeRemaining() {\n\t\treturn (startingTime + duration) - System.currentTimeMillis();\n\t}",
"public static int secondsDifference(String start, String end) {\n int difference; //difference is initialized,and will be returned at the end.\n //firstsec is the amount of seconds past midnight in the start time, and\n //secondsec is the amount of seconds past midnight in the end time. In order to\n //calculate this, secondsAfterMidnight() method was called for start and end.\n int firstsec = secondsAfterMidnight(start); \n int secondsec = secondsAfterMidnight(end);\n //If start or end returns -1 through secondsAfterMidnight(), then the input was \n //not proper, so difference is set to -99999.\n if (firstsec == -1 || secondsec == -1){\n difference = -99999;\n }else { //if both inputs are proper, then proceed to calculating difference.\n difference = secondsec - firstsec;\n }\n return difference; //difference is returned to main. \n }",
"private long calculateTime(LocalDate date, long secondsSinceMidnight) {\n GregorianCalendar gregorianCalendar = new GregorianCalendar(timeZone);\n gregorianCalendar.setTimeInMillis(0);\n gregorianCalendar.set(date.getYear(), date.getMonthValue() - 1, date.getDayOfMonth());\n gregorianCalendar.add(java.util.Calendar.SECOND, (int)secondsSinceMidnight);\n\n return gregorianCalendar.getTimeInMillis();\n }",
"static int gregorianTimeDifference(GregorianCalendar fromTime, GregorianCalendar toTime) {\n\t\tDate fromDate = fromTime.getTime();\n\t\tDate toDate = toTime.getTime();\n\t\tlong fromLong = fromDate.getTime();\n\t\tlong toLong = toDate.getTime();\n\t\tlong timeDifference = toLong - fromLong;\n\t\tint intDiff = (int) timeDifference;\n\t\treturn intDiff;\n\t}",
"public double getElapsedTime(){\n double CurrentTime = System.currentTimeMillis();\n double ElapseTime = (CurrentTime - startTime)/1000;\n return ElapseTime;\n }",
"public double getDifference()\n {\n return first - second;\n }",
"public double getDuration() {\n if (null == firstTime) {\n return 0.0;\n }\n return lastTime.timeDiff_ns(firstTime);\n }",
"public static String timeDifference(long start) {\r\n\t\treturn timeDifference(start, System.currentTimeMillis());\r\n\t}",
"long getElapsedTime();",
"@Override\n\tpublic long getTime() {\n\t\treturn System.nanoTime() - startTime;\n\t}",
"@Override\n\tpublic long getTimeLapsed(long start, long end) {\n\t\tlong difference=(end - start);\n\t\treturn difference;\t}",
"Double getRemainingTime();",
"public int getDuration() {\n\t\treturn (int) ((endTime.getTime()-startTime.getTime())/1000) + 1;\n\t}",
"@Transient\n \tpublic int getDuration() {\n \t\tint duration = (int) (this.endTime.getTime() - this.startTime.getTime());\n \t\treturn duration / 1000;\n \t}",
"@Test\n @ExcludeIn({ DB2, HSQLDB, SQLITE, TERADATA })\n public void date_diff2() {\n SQLQuery<?> query = query().from(Constants.employee).orderBy(Constants.employee.id.asc());\n LocalDate localDate = new LocalDate(1970, 1, 10);\n java.sql.Date date = new java.sql.Date(localDate.toDateMidnight().getMillis());\n int years = query.select(SQLExpressions.datediff(year, date, Constants.employee.datefield)).fetchFirst();\n int months = query.select(SQLExpressions.datediff(month, date, Constants.employee.datefield)).fetchFirst();\n // weeks\n int days = query.select(SQLExpressions.datediff(day, date, Constants.employee.datefield)).fetchFirst();\n int hours = query.select(SQLExpressions.datediff(hour, date, Constants.employee.datefield)).fetchFirst();\n int minutes = query.select(SQLExpressions.datediff(minute, date, Constants.employee.datefield)).fetchFirst();\n int seconds = query.select(SQLExpressions.datediff(second, date, Constants.employee.datefield)).fetchFirst();\n Assert.assertEquals(949363200, seconds);\n Assert.assertEquals(15822720, minutes);\n Assert.assertEquals(263712, hours);\n Assert.assertEquals(10988, days);\n Assert.assertEquals(361, months);\n Assert.assertEquals(30, years);\n }",
"public static int diferenciaFechas(Date f1, Date f2){\n \n long difMili = f1.getTime() - f2.getTime();\n long dif = (difMili / (1000*60*60*24));\n return (int) dif;\n }",
"Time getTime();",
"private int getDifferenceDays(Date d1, Date d2) {\n int daysdiff = 0;\n long diff = d2.getTime() - d1.getTime();\n long diffDays = diff / (24 * 60 * 60 * 1000) + 1;\n daysdiff = (int) diffDays;\n return daysdiff;\n }",
"public Duration getDurationWithin(Date startDate,Date endDate);"
] |
[
"0.69837904",
"0.6659508",
"0.6516603",
"0.6465042",
"0.6363082",
"0.6353079",
"0.63479745",
"0.633875",
"0.6277154",
"0.6171184",
"0.6124775",
"0.6122258",
"0.6094387",
"0.6033419",
"0.6020052",
"0.5992816",
"0.5958011",
"0.5946988",
"0.5900437",
"0.58914",
"0.5873582",
"0.58290994",
"0.5817693",
"0.58133304",
"0.5808462",
"0.576651",
"0.57318866",
"0.57269216",
"0.5708876",
"0.56703657",
"0.5655435",
"0.56434345",
"0.56314766",
"0.56236625",
"0.5618345",
"0.56134194",
"0.5601726",
"0.558706",
"0.55814993",
"0.55753565",
"0.55703485",
"0.5567721",
"0.55495894",
"0.5508432",
"0.5494244",
"0.54762334",
"0.54762256",
"0.5473188",
"0.5469885",
"0.54684746",
"0.5465309",
"0.54558223",
"0.54255784",
"0.5405358",
"0.53953236",
"0.53915393",
"0.53691626",
"0.5369039",
"0.5362907",
"0.53260046",
"0.5325261",
"0.5322859",
"0.5309272",
"0.53080326",
"0.53063804",
"0.5285826",
"0.5284219",
"0.5279611",
"0.5271305",
"0.52652866",
"0.5264948",
"0.5258609",
"0.52427524",
"0.5234122",
"0.521957",
"0.5218642",
"0.52168787",
"0.5208271",
"0.5198153",
"0.5178162",
"0.51768583",
"0.5172784",
"0.51727444",
"0.5152627",
"0.5148533",
"0.51471484",
"0.51446295",
"0.5136632",
"0.5131109",
"0.51292056",
"0.5100343",
"0.50800806",
"0.5075404",
"0.5073898",
"0.50506526",
"0.503839",
"0.50362945",
"0.502481",
"0.5022876",
"0.5012449"
] |
0.50526136
|
94
|
Returns a boolean indicating if the Date that calls the method is posterior to the Date passed as argument.
|
public boolean isPosteriorTo(Date argdate) {
try {
this.timeSpentSince(argdate);
} catch (InvalidDateException e) {
return false;
}
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected boolean isOverdue() {\n\t\t// this might be backwards, go back and check later\n\t\t/*int i = todaysDate.compareTo(returnDate);// returns 0, a positive num, or a negative num\n\t\tif (i == 0) { return false;}\t\t// the dates are equal, not overdue\n\t\telse if (i > 0) { return true; }\t// positive value if the invoking object is later than date\n\t\telse { return false; } */\t\t\t// negative value if the invoking object is earlier than date\n\t\t\n\t\t// can also do\n\t\tif (todaysDate.getTime() > returnDate.getTime() ) { return true; }\n\t\telse { return false; }\t// if the difference in time is less than or equal\n\t}",
"boolean hasDate();",
"public boolean isAfter(Date that) {\n return compareTo(that) > 0;\n }",
"public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }",
"boolean isSetDate();",
"public boolean isAfter(Date date)\n {\n return isAfter(new SpentOn(date));\n }",
"public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }",
"public boolean isAfter(Date b) {\r\n\t\treturn compareTo(b) > 0;\r\n\t}",
"boolean hasDeliveryDateAfter();",
"public boolean isDate() {\n if ( expiryDate==null) return false;\n else return expiryDate.isSIPDate();\n }",
"private boolean isOutdatedDate(LocalDate date) {\n return date.isBefore(LocalDate.now());\n }",
"public boolean hasDate() {\n return true;\n }",
"boolean isSetFoundingDate();",
"boolean hasEndDate();",
"public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}",
"public static boolean before(Date target, Date date){\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(target);\n\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date);\n\n if(cal1.compareTo(cal2) == -1) return true;\n return false;\n }",
"public boolean isFuture()\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int dayT = currentDate.get(GregorianCalendar.DATE);\n int monthT = currentDate.get(GregorianCalendar.MONTH) + 1;\n int yearT = currentDate.get(GregorianCalendar.YEAR);\n int hourT = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minuteT = currentDate.get(GregorianCalendar.MINUTE);\n\n if (yearT < year)\n {\n return true;\n }\n else if (yearT == year && monthT < month)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT < day)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT < hour)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT == hour\n && minuteT < minute)\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"boolean hasSettlementDate();",
"boolean hasDeliveryDateBefore();",
"boolean hasStartDate();",
"public boolean isBefore(Date that) {\n return compareTo(that) < 0;\n }",
"private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean runsAt(Date date);",
"boolean hasTradeDate();",
"private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }",
"boolean hasOrderDate();",
"public static boolean notInFuture(Date data) {\r\n if (data != null) {\r\n return data.before(new Date());\r\n }\r\n return false;\r\n }",
"boolean hasToDay();",
"boolean hasFromDay();",
"boolean hasAcquireDate();",
"public boolean pastDueDate(Date d){\r\n if(dueDate.after(d)){\r\n return false;\r\n }\r\n return true;\r\n }",
"boolean hasDateTime();",
"boolean hasBeginDate();",
"public static boolean checkDate(LocalDate birthDate, LocalDate currentDate) {\n if(birthDate.isBefore(currentDate)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }",
"public boolean getADateChanged() {\r\n return !OpbComparisonHelper.isEqual(\r\n aDate, aDateDataSourceValue);\r\n }",
"public boolean isAfter(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret > 0;\r\n\t}",
"public boolean hasDate() {\n return fieldSetFlags()[5];\n }",
"public static boolean isDateAfter(LocalDate secondDate, LocalDate firstDate) {\n return secondDate.isAfter(firstDate);\n }",
"public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"public boolean isDate() {\n return false;\n }",
"public boolean isBefore(Date date)\n {\n return isBefore(new SpentOn(date));\n }",
"public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }",
"public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }",
"public boolean isAfter(SpentOn spentOn)\n {\n return ( (calendar.get(Calendar.YEAR) > spentOn.calendar.get(Calendar.YEAR))\n )\n || ( (calendar.get(Calendar.YEAR) == spentOn.calendar.get(Calendar.YEAR))\n && (calendar.get(Calendar.MONTH) > spentOn.calendar.get(Calendar.MONTH))\n )\n || ( (calendar.get(Calendar.YEAR) == spentOn.calendar.get(Calendar.YEAR))\n && (calendar.get(Calendar.MONTH) == spentOn.calendar.get(Calendar.MONTH))\n && (calendar.get(Calendar.DAY_OF_MONTH) > spentOn.calendar.get(Calendar.DAY_OF_MONTH))\n );\n }",
"public boolean checkDateEqual(LocalDate date) {\n return date.equals(this.date);\n }",
"public boolean isAfter(@NonNull final CalendarDay other) {\n return date.isAfter(other.getDate());\n }",
"boolean isSetAppliesDateTime();",
"public boolean isSetAfter() {\n return this.after != null;\n }",
"public boolean isSetRepayDate() {\n return this.repayDate != null;\n }",
"public boolean isBefore(Date b) {\r\n\t\treturn compareTo(b) < 0;\r\n\t}",
"boolean isFilterByDate();",
"private boolean equalsDate(Date thisDate, Date otherDate) {\n if (otherDate == null) {\n return false;\n }\n SimpleDateFormat dateFormating = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n String thisDateString = dateFormating.format(thisDate);\n String otherDateString = dateFormating.format(otherDate);\n if (!thisDateString.equals(otherDateString)) {\n return false;\n }\n \n return true;\n }",
"private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}",
"public boolean hasPast();",
"@Override\npublic final boolean eval(final Object value) {\n\n if (value instanceof Date) {\n return true;\n }\n\n return false;\n }",
"boolean isValidFor (@Nonnull DATATYPE aDate);",
"private static boolean isDate(final Object obj) {\n return dateClass != null && dateClass.isAssignableFrom(obj.getClass());\n }",
"public static boolean dueDateHasPassed(String currentDate, String dueDate){\n if(getYear(currentDate)>getYear(dueDate)){\n return true;\n }\n else if(getYear(currentDate) == getYear(dueDate)){\n if(getMonth(currentDate)>getMonth(dueDate)){\n return true;\n }\n else if(getMonth(currentDate) == getMonth(dueDate)){\n if(getDay(currentDate)>getDay(dueDate)){\n return true;\n }\n }\n }\n return false;\n }",
"private boolean isToday(Date lectureDate){\n Date now = new Date();\n if(lectureDate.getYear()<now.getYear()|| lectureDate.getYear()>now.getYear()){\n return false;\n }else{\n if(lectureDate.getMonth()<now.getMonth()||(lectureDate.getMonth()>now.getMonth())){\n return false;\n }else{\n if(lectureDate.getDate()<now.getDate()|| lectureDate.getDate()>now.getDate()){\n return false;\n }else{\n return true;\n }\n }\n }\n }",
"boolean isMatch(ZonedDateTime date);",
"public static final Function<Date,Boolean> after(final Date date) {\r\n return new After(date);\r\n }",
"private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }",
"public boolean isPartialAfter(Date b) {\r\n\t\treturn comparePartialTo(b) > 0;\r\n\t}",
"boolean hasExpirationDate();",
"public boolean hasToDay() {\n return toDay_ != null;\n }",
"public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }",
"boolean hasExpireDate();",
"public boolean isSetDate() {\n return EncodingUtils.testBit(__isset_bitfield, __DATE_ISSET_ID);\n }",
"public boolean hasBegDate() {\n return fieldSetFlags()[1];\n }",
"public boolean isAfter(Group3Date b) {\n\t\t\treturn compareTo(b) > 0;\n\t\t}",
"public boolean isLate(){\n Date d = givenBack != null ? givenBack : new Date();\n return expirationDate.before(d);\n }",
"public static boolean isPastDue(Date date) {\n\t\tthrow new IllegalStateException(\"no database connection\");\r\n\t}",
"boolean hasDepositEndTime();",
"public boolean canHaveAsModificationTime(Date date) {\r\n return (date == null) ||\r\n ( (date.getTime() >= getCreationTime().getTime()) &&\r\n (date.getTime() <= System.currentTimeMillis()) );\r\n }",
"public boolean isAfterNow() {\r\n return isAfter(DateTimeUtils.currentTimeMillis());\r\n }",
"public static boolean isValidCreationTime(Date date) {\r\n \treturn \t(date!=null) &&\r\n \t\t\t(date.getTime()<=System.currentTimeMillis());\r\n }",
"public boolean checkDate(Date dateNow, Date maxAccess) {\n return dateNow.after(maxAccess);\n }",
"public static boolean isAfterDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isAfterDay(cal1, cal2);\n }",
"public boolean wasToday() {\n\t\tlong endInMillis = endTime.getTime();\n\t\tCalendar endTimeDate = Calendar.getInstance();\n\t\tendTimeDate.setTimeInMillis(endInMillis);\n\t\tCalendar today = Calendar.getInstance();\n\t\tif (today.get(Calendar.YEAR) == endTimeDate.get(Calendar.YEAR) && today.get(Calendar.DAY_OF_YEAR) == endTimeDate.get(Calendar.DAY_OF_YEAR)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean isValidForDate(LocalDate date);",
"public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }",
"public boolean isSetReportDate() {\n return this.reportDate != null;\n }",
"final boolean isDateRollEnforced() {\n return this.dateRollEnforced;\n }",
"@Override\n\tpublic boolean ate() {\n\t\treturn false;\n\t}",
"public boolean verifyReturnDate(Date date){\n\t\tLocale en = new Locale(\"en\");\n\t\tString rDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn returnDate.getText().equals(rDate);\n\t}",
"boolean isPostive();",
"public boolean hasFinished() {\n\t\treturn new Date(startDate.getTime() + duration).before(new Date());\n\t}",
"public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"@Override\n\tpublic boolean update(Dates obj) {\n\t\treturn false;\n\t}",
"public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }",
"public boolean recordFinish()\n\t{\n\t\t_lFinishNanos = System.nanoTime();\n\n\t\t_dtFinish = new java.util.Date();\n\n\t\treturn true;\n\t}",
"boolean hasVotingEndTime();",
"public boolean isSetRelease_date() {\r\n return this.release_date != null;\r\n }",
"public static boolean isDateBetweenSpecifiedDate(Date date, Date from, Date to) {\n return date.compareTo(from) >= 0 && date.compareTo(to) <= 0;\n }",
"public abstract boolean inDaylightTime(java.util.Date date);",
"public boolean runsOn( GTFSDate date ) {\n\t\tif( date.before( this.start_date) ) {\n\t\t\tthrow new DateOutOfBoundsException( date+\" is before period start \"+this.start_date );\n\t\t}\n\t\tif( date.after( this.end_date) ) {\n\t\t\tthrow new DateOutOfBoundsException( date+\" is after period end \"+this.end_date );\n\t\t}\n\t\t\n\t\t//Return false if service is canceled on this day; true of it specifically runs\n\t\tServiceCalendarDate exception = this.getServiceCalendarDate(date);\n\t\tif(exception != null) {\n\t\t\tif( exception.exception_type.intValue() == ServiceCalendarDateExceptionType.ADDED ) {\n\t\t\t\treturn true;\n\t\t\t} else if( exception.exception_type.intValue() == ServiceCalendarDateExceptionType.REMOVED ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Return true if it runs on today's DOW\n\t\tGregorianCalendar cal = new GregorianCalendar(date.year,date.month-1,date.day);\n\t\tint dow = cal.get(GregorianCalendar.DAY_OF_WEEK);\n\t\tif((dow==GregorianCalendar.MONDAY && this.monday.val ) ||\n\t\t (dow==GregorianCalendar.TUESDAY && this.tuesday.val ) ||\n\t\t (dow==GregorianCalendar.WEDNESDAY && this.wednesday.val) ||\n\t\t (dow==GregorianCalendar.THURSDAY && this.thursday.val ) ||\n\t\t (dow==GregorianCalendar.FRIDAY && this.friday.val ) ||\n\t\t (dow==GregorianCalendar.SATURDAY && this.saturday.val ) ||\n\t\t (dow==GregorianCalendar.SUNDAY && this.sunday.val )) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public boolean isDateAllowed(LocalDate date) {\n \n return startDates.contains(date) || endDates.contains(date);\n }",
"public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isSetRequestDate() {\n return this.RequestDate != null;\n }"
] |
[
"0.6891451",
"0.6870763",
"0.6789317",
"0.6715417",
"0.663412",
"0.66213757",
"0.6457686",
"0.6366704",
"0.62730265",
"0.62633526",
"0.62418276",
"0.6225422",
"0.62157255",
"0.62140405",
"0.61828023",
"0.6177787",
"0.616524",
"0.61549115",
"0.6152467",
"0.61134475",
"0.6097619",
"0.609252",
"0.6079312",
"0.6060268",
"0.60592747",
"0.60127974",
"0.59750444",
"0.59732795",
"0.5951098",
"0.5950248",
"0.5935454",
"0.58695096",
"0.5866228",
"0.58617556",
"0.5858446",
"0.5857004",
"0.58522797",
"0.5843586",
"0.57929224",
"0.57917494",
"0.5755314",
"0.57272565",
"0.57272565",
"0.5724389",
"0.57155687",
"0.57120425",
"0.571132",
"0.5707295",
"0.56892556",
"0.5679696",
"0.5676737",
"0.56674314",
"0.566099",
"0.56337315",
"0.56242853",
"0.5621819",
"0.5617564",
"0.5599429",
"0.55959505",
"0.5593987",
"0.5592571",
"0.5583884",
"0.5569279",
"0.5566374",
"0.5563558",
"0.55492747",
"0.55451345",
"0.5538088",
"0.5531353",
"0.55261886",
"0.55186296",
"0.551389",
"0.5501206",
"0.5498198",
"0.54958534",
"0.5493641",
"0.5485299",
"0.548486",
"0.54794145",
"0.547345",
"0.54595864",
"0.54590017",
"0.5447718",
"0.54290795",
"0.54253334",
"0.5423408",
"0.5415522",
"0.5406753",
"0.5400068",
"0.5395808",
"0.5391925",
"0.53909296",
"0.5385614",
"0.5382585",
"0.5379411",
"0.53746843",
"0.53743523",
"0.53716356",
"0.53665346",
"0.535769"
] |
0.75386596
|
0
|
Returns a representation of the date as a String.
|
@Override
public String toString() {
String dispyear = "" + this.year;
String dispmonth = "" + this.month;
String dispday = "" + this.day;
String disphour = "" + this.hour;
String dispminute = "" + this.minute;
if (this.month < 10) {
dispmonth = "0" + dispmonth;
}
if (this.day < 10) {
dispday = "0" + dispday;
}
if (this.hour < 10) {
disphour = "0" + disphour;
}
if (this.minute < 10) {
dispminute = "0" + dispminute;
}
return disphour + ":" + dispminute + ", " + dispday +"/" + dispmonth +"/" + dispyear;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }",
"public String getDateString(){\n return Utilities.dateToString(date);\n }",
"public String getDateString() {\n DateFormat format = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return format.format(mDate);\n }",
"public String toString() {\r\n String date = month + \"/\" + day;\r\n return date;\r\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 }",
"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}",
"java.lang.String getDate();",
"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 }",
"@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\tDate date = formatter.parse(month + \"/\" + day + \"/\" + year);\n\n\t\t\treturn formatter.format(date);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public String toString() {\n\t\treturn String.format(\"%d/%d/%d\", year, month, day);\n\t}",
"public String getDate(){\n\t\treturn toString();\n\t}",
"public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}",
"private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMddyyy\");\n\t\tString dateStr = dateFormat.format(date);\n\t\treturn dateStr;\n\t}",
"private String stringifyDate(Date date){\n\t\tDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\treturn dateFormatter.format(date);\n\t}",
"public String getEntryDateString() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy MMM dd\");\n return sdf.format(entryDate.getTime());\n }",
"public String getPrintFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }",
"public static String getDate()\n {\n Date date = new Date();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n return dateFormat.format(date);\n }",
"public static String getDateAsString(Date date) {\r\n\t\tSimpleDateFormat dateform = new SimpleDateFormat(_dateFormat);\r\n\r\n\t\treturn dateform.format(date);\r\n\t}",
"public String toString() {\n\treturn String.format(\"%d/%d/%d\", year, month, day);\t\r\n\t}",
"public String getDateCreatedAsString() {\n return dateCreated.toString(\"MM/dd/yyyy\");\n }",
"private String dateToString(Date d){\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.format(d);\r\n\t}",
"public static String getDate() {\n\t\tDate date = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"ddMMYYYY\");\n\t\tString strDate = formatter.format(date);\n\t\treturn strDate;\n\t}",
"public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}",
"public String toString(){\n\t\t\n\t\treturn month+\"/\"+day+\"/\"+year;\n\t}",
"String getDate();",
"String getDate();",
"public String toString() {\n synchronized (FORMATTER) {\n return FORMATTER.format(_calendar.getTime());\n }\n }",
"public String getStringDate(){\n String finalDate = \"\";\n Locale usersLocale = Locale.getDefault();\n DateFormatSymbols dfs = new DateFormatSymbols(usersLocale);\n String weekdays[] = dfs.getWeekdays();\n int day = date.get(Calendar.DAY_OF_WEEK);\n String nameOfDay = weekdays[day];\n\n finalDate += nameOfDay + \" \" + date.get(Calendar.DAY_OF_MONTH) + \", \";\n\n String months[] = dfs.getMonths();\n int month = date.get(Calendar.MONTH);\n String nameOfMonth = months[month];\n\n finalDate += nameOfMonth + \", \" + date.get(Calendar.YEAR);\n\n return finalDate;\n }",
"public String getDate()\n {\n return day + \"/\" + month + \"/\" + year;\n }",
"public String toStringDateOfBirth() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\treturn dateofbirth.format(format);\n\t}",
"public static String getDate() {\n return getDate(System.currentTimeMillis());\n }",
"public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}",
"protected String getRentDateString() { return \"\" + dateFormat.format(this.rentDate); }",
"public String getDateString(Date date) {\n Calendar cal = Calendar.getInstance();\n\n cal.setTime(date);\n int year = cal.get(Calendar.YEAR);\n String month = String.format(\"%02d\", cal.get(Calendar.MONTH) + 1);\n String day = String.format(\"%02d\", cal.get(Calendar.DAY_OF_MONTH));\n return year + month + day;\n }",
"public String convertDateToString(Date date) {\n\t\tString dateTime = SDF.format(date);\n\t\treturn dateTime;\t\n\t}",
"public String getFormattedDate() {\n return transactionDate.toString();\n }",
"public java.lang.String getDate() {\n return date;\n }",
"public String toString() {\n\t\t\treturn month + \"/\" + day + \"/\" + year;\n\t\t}",
"public static String getDate() {\n return getDate(DateUtils.BASE_DATE_FORMAT);\n }",
"public String toString() {\r\n\t\treturn String.format(\"%02d/%02d/%02d\", month, day, year);\r\n\r\n\t}",
"public String toString() {\n\t\tdouble hour = getHour();\n\t\tString h = (hour < 10 ? \" \" : \"\") + (int) hour + \":\";\n\t\thour = 60 * (hour - (int) hour);\n\t\th += (hour < 10 ? \"0\" : \"\") + (int) hour + \":\";\n\t\thour = 60 * (hour - (int) hour);\n\t\th += (hour < 10 ? \"0\" : \"\") + hour;\n\n\t\treturn \"(YYYY/MM/DD) \" + getYear() + \"/\" + (getMonth() < 10 ? \"0\" : \"\") + getMonth() + \"/\"\n\t\t\t\t+ (getDay() < 10 ? \"0\" : \"\") + getDay() + \", \" + h + \"h \" + (getCalendarType() ? \"(greg)\" : \"(jul)\")\n\t\t\t\t+ \"\\n\" + \"Jul. Day: \" + getJulDay() + \"; \" + \"DeltaT: \" + getDeltaT();\n\t}",
"public static String dateToString(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n return df.format(date);\r\n }",
"java.lang.String getToDate();",
"public static String dateToString(Date date) {\n\t\tDateTime dt = new DateTime(date.getTime());\n\t\tDateTimeFormatter fmt = DateTimeFormat.forPattern(SmartMoneyConstants.DATE_FORMAT);\n\t\tString dtStr = fmt.print(dt);\n\n\t\treturn dtStr;\n\t}",
"public static String dateToString(Date date)\r\n/* 19: */ {\r\n/* 20: 23 */ return sdfDate.format(date);\r\n/* 21: */ }",
"protected String getDateString() {\n String result = null;\n if (!suppressDate) {\n result = currentDateStr;\n }\n return result;\n }",
"public String Get_date() \n {\n \n return date;\n }",
"public static String dateOnly() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}",
"public String toString() {\n\t\treturn new String(dateToString() + \" \"\n\t\t\t\t+ timeToString());\n }",
"@Override\n public String toString() {\n return String.format(year + \",\" + month + \",\" + day);\n\n }",
"@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }",
"public String toString(){\n\t\tString result = Integer.toString(day) + \" \";\n\t\tswitch (month){\n\t\t\tcase 1:\n\t\t\t\tresult += \"January, \";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tresult += \"February, \";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tresult += \"March, \";\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tresult += \"April, \";\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tresult += \"May, \";\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tresult += \"June, \";\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tresult += \"July, \";\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tresult += \"August, \";\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tresult += \"September, \";\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tresult += \"October, \";\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tresult += \"November, \";\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\tresult += \"December, \";\n\t\t\t\tbreak;\n\t\t}\n\t\tresult += Integer.toString((year / 10 % 10)) + Integer.toString((year % 10));\n\n\t\treturn result;\n\t}",
"public static synchronized String utilDateToString(java.util.Date date) {\r\n\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n return sdf.format(date.getTime());\r\n }",
"public String getDate() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\treturn sdf.format(txtDate.getDate());\n\t}",
"protected final static String getDateStamp() {\n\n\t\treturn\n\n\t\tnew SimpleDateFormat(\"MMM d, yyyy h:mm:ss a zzz\").format(new Date());\n\n\t}",
"@Override\n public String toString() {\n return (this.month + \"/\" + this.day + \"/\" + this.year);\n }",
"public static String getTimeString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss yyyy\");\n return formatter.format(new java.util.Date());\n }",
"public String toString(){\n\t\treturn \"Name: \"+name +\" Date: \"+date.getDate();\n\t}",
"public String toString() {\n \tSimpleDateFormat formatter = new SimpleDateFormat(\"MMM dd, yyyy\");\n \t\n \t// convert the released date from calendar object to a date object\n \tDate gameDateobject = this.released.getTime();\n \t\n \t// convert the date object to a specific format\n \tString printDate = formatter.format(gameDateobject);\n \t\n \t// build and return the final string\n \tString finalOutput = \"\\\"\" + this.name + \"\\\"\" + \", released on: \" + printDate;\n \t\n\t\treturn finalOutput;\n }",
"public String retornaData(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn df.format(calendar.getTime());\n\t}",
"public static String dateToString(Date date){\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MMddyy\");\n\t\treturn formatter.format(date);\n\t}",
"public String getFileFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n }",
"public String toString() {\n StringBuilder output = new StringBuilder();\n LocalDateTime currentTime = getCurrentTime();\n output.append(currentTime.getYear()).append(\":\").append(currentTime.getMonthValue()).append(\":\")\n .append(currentTime.getDayOfMonth());\n return output.toString();\n }",
"public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}",
"public String getEventDate() {\n return eventDate.format(INPUT_FORMATTER);\n }",
"public String getFormatedDate() {\n DateFormat displayFormat = new SimpleDateFormat(\"EEEE', ' dd. MMMM yyyy\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }",
"private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}",
"public String toString()\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM-yyyy\");\n\t\t\n\t\treturn getBank() + \" \" + getAccount() + \" \" + format.format(getDate());\n\t}",
"public String marshal( Date value )\n {\n String val = \"\";\n \tif (value != null) {\n \tCalendar cal = new GregorianCalendar();\n \tcal.setTime( value );\n \treturn DatatypeConverter.printDateTime( cal );\n }\n\t\t\n\t\tSystem.out.println(\"Date value: \" + value);\n return val;\n }",
"public String toString() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"M/d/yyyy\");\n\t\treturn employeeName + \" \" + EID + \" \" + address + \" \" + phoneNumber + \" \" + sdf.format(DOB) + \" \" + securityClearance;\n\t}",
"public String toString() {\n return this.day + \" \" + this.month + \" \" + this.time;\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}",
"private String dateToString(Date datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tString dat = df.format(datum);\r\n\t\treturn dat;\r\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 }",
"public String getDataNascimentoString() {\r\n\r\n\t\tSimpleDateFormat data = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\treturn data.format(this.dataNascimento.getTime());\r\n\r\n\t}",
"public static String convert( Date date )\r\n {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat( \"yyyy-MM-dd\" );\r\n\r\n return simpleDateFormat.format( date );\r\n }",
"@Override\n public String toString() {\n String outputDate = this.date.format(outputDateFormat);\n return \"[D]\" + super.toString() + \" (by: \" + outputDate + \")\";\n }",
"public String getDate()\n\t\t{\n\t\t\treturn date;\n\t\t}",
"public String toString()\n {\n String str = \"\";\n\n if (day < 10)\n {\n str += \"0\";\n }\n str += day + \"/\";\n\n if (month < 10)\n {\n str += \"0\";\n }\n str += month + \"/\";\n\n str += year + \"; \";\n\n if (hour < 10)\n {\n str += \"0\";\n }\n str += hour + \":\";\n\n if (minute < 10)\n {\n str += \"0\";\n }\n str += minute;\n\n return str;\n }",
"public String toString()\n\t{\n\t\treturn date.toString()+\" \"+time.toString();\n\t}",
"public String getDate(){\n\t\t\n\t\treturn this.date;\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 String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }",
"public String getDate() {\n return date;\n }",
"public static String dateToString(long date) {\n return DATE_FORMAT.format(date);\n }",
"public String getDate() {\r\n return date;\r\n }",
"public String date() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}",
"public String toString() {\n if(getPersistedAttribute().getDatevalue() == null) {\n return \"null\";\n }\n return DateUtil.formatRfc3339Calendar(getValue());\n }",
"private static Date dateToString(Date start) {\n\t\treturn start;\n\t}",
"public String getDate() {\r\n\t\treturn date;\r\n\t}",
"@Override\n public String toString() {\n return month + \"/\" + day + \"/\" + year;\n }",
"public String getDate() {\n\t\treturn date;\n\t}",
"public String getDate() {\n\t\treturn date;\n\t}",
"public static String toDisplayString(HISDate date) {\r\n String foo = \"\";\r\n if (date != null) {\r\n foo = date.toDisplayString();\r\n }\r\n\r\n return foo;\r\n }",
"private String getDateTime() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.GERMANY);\n Date date = new Date();\n return dateFormat.format(date);\n }",
"@Override\n\tpublic String asString(Object object) {\n\t\t// at this point object is a Date\n\n\t\tCalendar calendar = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\t\tcalendar.setTime((Date) object);\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tint year = calendar.get(Calendar.YEAR);\n\t\tif (calendar.get(Calendar.ERA) == 0) {\n\t\t\t// https://en.wikipedia.org/wiki/ISO_8601\n\t\t\t// by convention 1 BC is labeled +0000, 2 BC is labeled −0001, ...\n\n\t\t\tif (year > 1) {\n\t\t\t\tbuilder.append('-');\n\t\t\t}\n\t\t\t--year;\n\t\t}\n\n\t\tbuilder.append(String.format(\"%04d\", year));\n\t\tbuilder.append('-');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.MONTH) + 1));\n\t\tbuilder.append('-');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.DATE)));\n\t\tbuilder.append('T');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.HOUR_OF_DAY)));\n\t\tbuilder.append(':');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.MINUTE)));\n\t\tbuilder.append(':');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.SECOND)));\n\t\tbuilder.append('Z');\n\n\t\treturn builder.toString();\n\t}"
] |
[
"0.8693063",
"0.86121386",
"0.7898898",
"0.7857493",
"0.78499854",
"0.77291256",
"0.7685381",
"0.7570496",
"0.75423306",
"0.7526682",
"0.7459297",
"0.7456914",
"0.74448866",
"0.7435607",
"0.74099725",
"0.74000996",
"0.7381051",
"0.7364031",
"0.7363955",
"0.73368853",
"0.7330328",
"0.7307773",
"0.7305393",
"0.7295167",
"0.72867405",
"0.72867405",
"0.7286291",
"0.7269654",
"0.7267543",
"0.72260886",
"0.72191775",
"0.7217899",
"0.721119",
"0.72087413",
"0.7199808",
"0.71988",
"0.7157064",
"0.7155636",
"0.7151003",
"0.71497035",
"0.71434075",
"0.7139936",
"0.7139352",
"0.71361774",
"0.71278465",
"0.71091145",
"0.710763",
"0.70978963",
"0.70816386",
"0.70610154",
"0.7030771",
"0.7018556",
"0.70044816",
"0.69911486",
"0.698827",
"0.69709516",
"0.69482833",
"0.69443154",
"0.69426507",
"0.69327277",
"0.69321215",
"0.6915931",
"0.690496",
"0.6904752",
"0.68951935",
"0.68876475",
"0.68798107",
"0.68712384",
"0.6863234",
"0.68623716",
"0.68607026",
"0.6857647",
"0.6857647",
"0.6856218",
"0.685605",
"0.6842851",
"0.68416256",
"0.683865",
"0.683823",
"0.6835724",
"0.6834562",
"0.6825956",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.682511",
"0.6823959",
"0.68232805",
"0.68228304",
"0.6813752",
"0.6806215",
"0.68048865",
"0.6802419",
"0.68017465",
"0.67971265",
"0.6790782",
"0.6790782",
"0.6770431",
"0.6768685",
"0.67647713"
] |
0.0
|
-1
|
Changes the current date's year to the value of the year parameter (has to be between 2000 and 2100 included).
|
public void setYear(int year) throws InvalidDateException {
if (year <= 2100 & year >= 2000) {
this.year = year;
} else {
throw new InvalidDateException("Please enter a realistic year for the date (between 2000 and 2100) !");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setYear(int year) {\n\t\tthis.date.setYear(year);\n\t}",
"public void setYear (int yr) {\n year = yr;\n }",
"public void setYear(int y){\n\t\tyear = y ; \n\t}",
"public void setYear(int value) {\n\tthis.year = value;\n }",
"public void setYear(final int year) {\n\t\tthis.year = year;\n\t}",
"public void setYear(int _year) { year = _year; }",
"public void setYear(int value) {\r\n this.year = value;\r\n }",
"public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}",
"public void setYear(int year) {\n\t\tthis.year = year;\n\t}",
"public void setYear(int year) {\n\t\tthis.year = year;\n\t}",
"public void setCurrentYear(BigDecimal currentYear) {\n this.currentYear = currentYear;\n }",
"public void setYear(int year) {\r\n this.year = year;\r\n }",
"public void setYear(int year) \n\t{\n\t\tthis.year = year;\n\t}",
"public void setYear(int year) {\n this.year = year;\n }",
"@Override\n\tpublic void setYear(int year) {\n\t\t_esfShooterAffiliationChrono.setYear(year);\n\t}",
"public void setYear(int year)\n {\n this.year = year;\n }",
"public void setYear(String value) {\n setAttributeInternal(YEAR, value);\n }",
"public void setYear(int year) {\n\tthis.year = year;\n}",
"public void setYear(Integer year) {\r\n this.year = year;\r\n }",
"public void setYear(Integer year) {\r\n this.year = year;\r\n }",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setYear(Integer year) {\n this.year = year;\n }",
"public void setCalendarYear(int year) {\r\n\t\tcalendar.setCalendarYear(year);\r\n\t}",
"public void setYear(int Year) {\n\t this.year= Year;\n\t}",
"public void setYear(String year)\r\n {\r\n this.year = year; \r\n }",
"private static Date getYearDate(int year) {\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, year);\n return calendar.getTime();\n }",
"public void setYear(String year) {\n\t\tthis.year = year;\n\t}",
"public DueDateBuilder setYear(int year) {\n this.year = year;\n return this;\n }",
"public boolean setYear(int newYear) {\n\t\tthis.year = newYear;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\treturn true;\n\t}",
"public void setNextYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()+1);\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\n\t}",
"public void setYear(String year) {\n this.year = year;\n }",
"public void setYear(String year) {\n this.year = year;\n }",
"public void addYear(int year) {\n if (month < 0) {\n subtractYear(year);\n return;\n }\n\n this.year += year;\n }",
"public static void moveToDateYear(Date date, int year) {\n final Calendar cal = toCalendar(date);\n moveToCalendarYear(cal, year);\n date.setTime(cal.getTimeInMillis());\n }",
"public static int getCurrentYear()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.YEAR);\n\t}",
"public void setDocumentYear(int documentYear);",
"public void setYearToDate(Date value) {\r\n setAttributeInternal(YEARTODATE, value);\r\n }",
"public void setYear(int year){\r\n\t\ttry{\r\n\t\t\tif(year>=1900)\r\n\t\t\tthis.year = year;\r\n\t\t\telse\r\n\t\t\t\tthrow new cardYearException();\r\n\t\t}catch(cardYearException ex){\r\n\t\t\tSystem.out.println(\"Baseball Cards weren't invented \"\r\n\t\t\t\t\t+ \"before 1900!\");\r\n\t\t\tSystem.out.print(\"Please enter a valid year: \");\r\n\t\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\tint retry = input.nextInt();\r\n\t\t\t\tsetYear(retry);\r\n\t\t}\r\n\t}",
"private static int returnsCurrentYear() {\n\t\treturn Calendar.getInstance().get(Calendar.YEAR);\n\t}",
"public void setYearParam(String yearParam) {\r\n this.yearParam = yearParam;\r\n }",
"public void setYear(String year) {\n this.put(\"year\", year);\n }",
"public void setOriginalReleaseYear(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setRecordingYear(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), RECORDINGYEAR, value);\r\n\t}",
"@Override\n\tpublic void setYear(int year) throws RARException {\n\t\tthis.year = year;\n\t}",
"public void setYear(short value) {\r\n this.year = value;\r\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public void setYear(short value) {\n this.year = value;\n }",
"public Builder setYear(final int year) {\n this.year = year;\n return this;\n }",
"public boolean setYear(int newYear, boolean check) {\n\t\tthis.year = newYear;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\tif (check) {\n\t\t\tdouble oldMonth = this.month;\n\t\t\tdouble oldDay = this.day;\n\t\t\tIDate dt = swe_revjul(this.jd, this.calType); // -> erzeugt neues\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Datum\n\t\t\tthis.year = dt.year;\n\t\t\tthis.month = dt.month;\n\t\t\tthis.day = dt.day;\n\t\t\tthis.hour = dt.hour;\n\t\t\treturn (this.year == newYear && this.month == oldMonth && this.day == oldDay);\n\t\t}\n\t\treturn true;\n\t}",
"public final native double setFullYear(int year) /*-{\n this.setFullYear(year);\n return this.getTime();\n }-*/;",
"public void setYear (jkt.hms.masters.business.MasStoreFinancial year) {\n\t\tthis.year = year;\n\t}",
"public void setPrevYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()-1);\n\n\t}",
"int getYear();",
"public static String generateCurrentInYearString() {\n\t Calendar cal = Calendar.getInstance();\n\t cal.setTime(new Date());\n\t int currentYear = cal.get(Calendar.YEAR);\n\t return new Integer(currentYear).toString();\n\t}",
"public void goToYear(int year) {\n if (mPager != null) {\n mPager.setCurrentItem(year - EPOCH_TIME_YEAR_START);\n }\n }",
"public YearToCentury(int year) // defining method YearToCentury with int value year\r\n\t{\r\n\t\tthis.year = year; // value of year = this.year\r\n\t}",
"public void setRecordingYear( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), RECORDINGYEAR, value);\r\n\t}",
"public void addYear(){\n\t\tyearAdd++;\n\t}",
"Year createYear();",
"public int getYear() {\r\n\t\treturn year;\r\n\t}",
"public int getYear(){\r\n\t\treturn year;\r\n\t}",
"public void setSelectedYear(int selectedYear) {\n this.selectedYear = selectedYear;\n }",
"public ConcreteYear(int year) {\r\n if (year > 0) {\r\n this.year = year;\r\n }\r\n }",
"public static int getTodaysYear() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.year;\t\r\n\t\t\r\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public EventsCalendarYear(Integer year) {\n initYear(year);\n }",
"public void setSelectedYear(int year) {\n this.selectedYear = year;\n }",
"public static int normalizeYear(int year) {\n if (year < 100 && year >= 0) {\n Calendar now = Calendar.getInstance();\n String currentYear = String.valueOf(now.get(Calendar.YEAR));\n String prefix = currentYear.substring(0, currentYear.length() - 2);\n year = Integer.parseInt(String.format(Locale.US, \"%s%02d\", prefix, year));\n }\n return year;\n }",
"public int getYear() {\n\t\treturn year; \n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear() {\n\t\treturn year;\n\t}",
"public int getYear(){\n\t\treturn year; \n\t}",
"public void setYears(int years) {\n this.years = years;\n }",
"public int getYear(){\n\t\treturn year;\n\t}",
"public int getYear() {\n\t return year;\n\t}",
"public static final Function<Date,Date> setYear(final int value) {\r\n return new Set(Calendar.YEAR, value);\r\n }",
"public int getYear() {\n\treturn year;\n }",
"private static String getNewYearAsString() {\n\t\t// calculate the number of days since new years\n\t\tGregorianCalendar now = new GregorianCalendar();\n\t\t\n\t\t// create a date and string representing the new year\n\t\tGregorianCalendar newYearsDay = new GregorianCalendar( now.get(GregorianCalendar.YEAR), 0, 1);\n\t\tDateFormat fmt = new SimpleDateFormat(\"MMM dd, yyyy \");\n\t\n\t\treturn fmt.format( newYearsDay.getTime() );\n\t}",
"public void setDocumentYear(int documentYear) {\n\t\t_tempNoTiceShipMessage.setDocumentYear(documentYear);\n\t}",
"public static void setOriginalReleaseYear(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALRELEASEYEAR, value);\r\n\t}",
"public void addYear(int amount) {\r\n int oldValue = getYear();\r\n calendarTable.getCalendarModel().addYear(amount);\r\n yearChanged(oldValue);\r\n }",
"private static double toFullYear(double year) {\n if (-1 < year && year < 100) {\n return 1900 + (int) year;\n }\n return year;\n }",
"public int getYear() \n\t{\n\t\treturn year;\n\t}",
"public int getYear() {\r\n return year;\r\n }",
"public String getYear() {\n\t\treturn year;\r\n\t}",
"public void setStartYear(int startYear) {\n\t\tthis.startYear = startYear;\n\t}",
"public void setStartYear(java.math.BigInteger startYear) {\r\n this.startYear = startYear;\r\n }",
"public String getYear() {\n\t\treturn year;\n\t}",
"public String getYear() {\n\t\treturn year;\n\t}",
"public void setOriginalReleaseYear( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}",
"public BigDecimal getCurrentYear() {\n return currentYear;\n }",
"public int getYear() {\n return year;\n }",
"@Override\n\tpublic int getYear() {\n\t\treturn year;\n\t}",
"public void addOriginalReleaseYear(java.lang.Integer value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}"
] |
[
"0.8041857",
"0.77533084",
"0.7741114",
"0.7717305",
"0.7689251",
"0.7681412",
"0.76604253",
"0.76236635",
"0.7568602",
"0.7568602",
"0.75673294",
"0.75470513",
"0.7542344",
"0.7481239",
"0.74751866",
"0.7445723",
"0.7390994",
"0.73898566",
"0.7344054",
"0.7344054",
"0.73012257",
"0.73012257",
"0.73012257",
"0.72958755",
"0.7208876",
"0.7202788",
"0.7184931",
"0.71796453",
"0.71461505",
"0.7125719",
"0.71163446",
"0.71111214",
"0.71111214",
"0.7080135",
"0.70634073",
"0.7051263",
"0.70372164",
"0.7021488",
"0.69897485",
"0.6984467",
"0.69699067",
"0.6942401",
"0.693936",
"0.6938063",
"0.6928363",
"0.6915677",
"0.69133955",
"0.69084567",
"0.68979365",
"0.68979365",
"0.68979365",
"0.68859035",
"0.68616337",
"0.68414116",
"0.68346536",
"0.6825747",
"0.67965174",
"0.67726284",
"0.6707389",
"0.6684257",
"0.66787875",
"0.6662161",
"0.66295797",
"0.6621466",
"0.661601",
"0.6608689",
"0.6600937",
"0.6595762",
"0.65883416",
"0.65853083",
"0.65788627",
"0.6566815",
"0.65543795",
"0.65537846",
"0.65465575",
"0.65465575",
"0.65465575",
"0.6545266",
"0.65423167",
"0.6532699",
"0.6519998",
"0.6519062",
"0.64958566",
"0.648764",
"0.64753884",
"0.64735603",
"0.64728117",
"0.64727247",
"0.64710927",
"0.6458935",
"0.6457886",
"0.6456225",
"0.6439128",
"0.64295906",
"0.64295906",
"0.6426921",
"0.6425649",
"0.6422394",
"0.6408961",
"0.6406577"
] |
0.7407935
|
16
|
Changes the current date's month to the value of the month parameter (has to be between 1 and 12 included).
|
public void setMonth(int month) throws InvalidDateException {
if (month <= 12 & month >= 1) {
this.month = month;
} else {
throw new InvalidDateException("Please enter a realistic month for the date (between 1 and 12) !");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setMonth(int month) {\n\t\tthis.date.setMonth(month);\n\t}",
"public void setMonth(int newMonth) {\n setMonth(newMonth, true);\n }",
"public void setMonth(int month) {\n if(month < 1 || month > 12) {\n this.month = 1;\n } else {\n this.month = month;\n }\n }",
"public void changeMonth(int newMonth) {\n this.month = newMonth;\n }",
"public void setMonth(final int month) {\n\t\tthis.month = month;\n\t}",
"public void setMonth(final int month) {\n this.month = month;\n }",
"public void setMonth(int month) {\n\t\tthis.month = month;\n\t}",
"public static int getCurrentMonth(int month) {\n month++;\n return month;\n }",
"public void setMonth(int month)\n {\n this.month = month;\n }",
"public DueDateBuilder setMonth(int month) {\n this.month = month;\n return this;\n }",
"public void setMonth(Integer month) {\r\n this.month = month;\r\n }",
"@Override\r\n public boolean setMonth(int month) {\r\n try {\r\n GregorianCalendar tempCalendar =(GregorianCalendar) calendar.clone();\r\n tempCalendar.setLenient(false); \r\n tempCalendar.set(Calendar.MONTH, month);\r\n tempCalendar.getTime();\r\n }\r\n catch (Exception e) {\r\n return false;\r\n }\r\n calendar.set(Calendar.MONTH, month); \r\n return true;\r\n }",
"public void setMonth(String month) {\r\n this.month = month;\r\n }",
"public final native double setMonth(int month) /*-{\n this.setMonth(month);\n return this.getTime();\n }-*/;",
"public void setMonth(Integer month) {\n this.month = month;\n }",
"public void setMonth(Integer month) {\n this.month = month;\n }",
"public void setMonthParam(String monthParam) {\r\n this.monthParam = monthParam;\r\n }",
"public void setMonth(byte value) {\n this.month = value;\n }",
"public void setMonth(byte value) {\r\n this.month = value;\r\n }",
"public void setMonth(byte value) {\n this.month = value;\n }",
"public void setMonth(byte value) {\n this.month = value;\n }",
"public void setMonth(byte value) {\n this.month = value;\n }",
"public void setMonth(byte value) {\n this.month = value;\n }",
"public void updateMonth(int value)\n {\n this.currentCalendar.add(Calendar.MONTH, value);\n }",
"public final native double setMonth(int month, int dayOfMonth) /*-{\n this.setMonth(month, dayOfMonth);\n return this.getTime();\n }-*/;",
"public boolean setMonth(int newMonth) {\n\t\tthis.month = newMonth;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\treturn true;\n\t}",
"public static int getCurrentMonth()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t}",
"public final native double setUTCMonth(int month) /*-{\n this.setUTCMonth(month);\n return this.getTime();\n }-*/;",
"public void printMonth() {\r\n switch (cur.getMonth()){\r\n case 1:\r\n System.out.println(\"JANUARY\");\r\n break;\r\n case 2:\r\n System.out.println(\"FEBRUARY\");\r\n break;\r\n case 3:\r\n System.out.println(\"MARCH\");\r\n break;\r\n case 4:\r\n System.out.println(\"APRIL\");\r\n break;\r\n case 5:\r\n System.out.println(\"MAY\");\r\n break;\r\n case 6:\r\n System.out.println(\"JUNE\");\r\n break;\r\n case 7:\r\n System.out.println(\"JULY\");\r\n break;\r\n case 8:\r\n System.out.println(\"AUGUST\");\r\n break;\r\n case 9:\r\n System.out.println(\"SEPTEMBER\");\r\n break;\r\n case 10:\r\n System.out.println(\"OCTOBER\");\r\n break;\r\n case 11:\r\n System.out.println(\"NOVEMBER\");\r\n break;\r\n case 12:\r\n System.out.println(\"DECEMBER\");\r\n break;\r\n }\r\n }",
"public void setDate(int year, int month, int dayOfMonth)\n {\n this.date = new GregorianCalendar(year, month-1, dayOfMonth);\n }",
"public static void printMonth(int year, int month) {\n System.out.println(month + \" : \" + year);\n }",
"private void setMonthSelection() {\n int displayMonth = getIntent().getIntExtra(\"month\", -1);\n if (displayMonth == -1) {\n Calendar cal = Calendar.getInstance();\n selectMonth.setSelection(cal.get(Calendar.MONTH) + 1);\n } else {\n selectMonth.setSelection(displayMonth);\n }\n }",
"public CinemaDate setMonth(String m) {\n return new CinemaDate(m, this.day, this.time);\n }",
"public String getMonth() {\r\n return month;\r\n }",
"public static void printMonth(int year, int month) {\n System.out.println(\" \");\n System.out.println(\" \");\n getMonthName(month,year);\n printTitle(year,month);//call the method printTitle with the values year and month\n printMonthBody(year,month);//call the method printMonthBody with the values year and month\n }",
"private void monthFormat() {\n\t\ttry {\n\t\t\tString currentMonth = monthFormat.format(new Date()); //Get current month\n\t\t\tstartDate = monthFormat.parse(currentMonth); //Parse to first of the month\n\t\t\tString[] splitCurrent = currentMonth.split(\"-\");\n\t\t\tint month = Integer.parseInt(splitCurrent[0]) + 1; //Increase the month\n\t\t\tif (month == 13) { //If moving to next year\n\t\t\t\tint year = Integer.parseInt(splitCurrent[1]) + 1;\n\t\t\t\tendDate = monthFormat.parse(\"01-\" + year);\n\t\t\t} else {\n\t\t\t\tendDate = monthFormat.parse(month + \"-\" + splitCurrent[1]);\n\t\t\t}\n\t\t\t//Create SQL times\n\t\t\tstartDateSQL = new java.sql.Date(startDate.getTime());\n\t\t\tendDateSQL = new java.sql.Date(endDate.getTime());\n\t\t\tmonthString = new SimpleDateFormat(\"MMMM\").format(startDate);\n\t\t} catch (ParseException e) {\n\t\t\t_.log(Level.SEVERE, GameMode.Sonic, \"Failed to parse dates. Monthly leaderboard disabled.\");\n\t\t}\n\t}",
"public int getMonth() {\n\t\treturn month;\n\t}",
"public int getMonth() {\n\t\treturn month;\n\t}",
"public void setJP_AcctMonth (String JP_AcctMonth);",
"public int getMonth(){\n\t\treturn month;\n\t}",
"public String getMonth() {\n return month;\n }",
"public boolean setMonth(int newMonth, boolean check) {\n\t\tthis.month = newMonth;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\tif (check) {\n\t\t\tdouble oldYear = this.year;\n\t\t\tdouble oldDay = this.day;\n\t\t\tIDate dt = swe_revjul(this.jd, this.calType); // -> erzeugt neues\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Datum\n\t\t\tthis.year = dt.year;\n\t\t\tthis.month = dt.month;\n\t\t\tthis.day = dt.day;\n\t\t\tthis.hour = dt.hour;\n\t\t\treturn (this.year == oldYear && this.month == newMonth && this.day == oldDay);\n\t\t}\n\t\treturn true;\n\t}",
"public int getMonth() {\n return month;\n }",
"public void setDate(int month, int day) {\r\n\t\tString dayString = \"\";\r\n\t\tif(day < 10)\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < 10; i++)\r\n\t\t\t{\r\n\t\t\t\tif(day == i)\r\n\t\t\t\t{\r\n\t\t\t\t\tdayString = \"0\" + i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.date = month + \"-\" + dayString;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.date = month + \"-\" + day;\r\n\t\t}\r\n\t}",
"public int getMonth() {\r\n // ersetzt deprecated Methode Date.getMonth()\r\n return this.month;\r\n }",
"public void inputMonth () {\n\t\tSystem.out.print(\"Enter a month: \");\r\n\t\tmonth = input.nextInt();\r\n\t}",
"public static void printMonth(int year, int month, int dayofweek, int lengthOfMonth) {\n\t\tprintMonthBody(year, month, dayofweek, lengthOfMonth);\r\n\t}",
"public void setDate(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }",
"public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}",
"public String getMonth(int month) {\n\t\t\t\treturn new DateFormatSymbols().getMonths()[month];\n\t\t\t}",
"public String getMonth(int month) {\n\t\treturn new DateFormatSymbols().getMonths()[month-1];\n\t}",
"@Override\n public void onMonthChanged(Date date) {\n }",
"private int checkMonth(int testMonth) {\n\t\tif (testMonth > 0 && testMonth <= 12) // validate month\n\t\t\treturn testMonth;\n\t\telse // month is invalid\n\t\t\tthrow new IllegalArgumentException(\"month must be 1-12\");\n\t}",
"public void setMonths(String months) {\n this.months = parseMonths(months);\n }",
"public Integer getMonth() {\r\n return month;\r\n }",
"public static final Function<Date,Date> setMonth(final int value) {\r\n return new Set(Calendar.MONTH, value);\r\n }",
"public void enterMonthField(String month) {\n Reporter.addStepLog(\" Enter month\" + month + \" to month field \" + _monthField.toString());\n sendTextToElement(_monthField, month);\n log.info(\" Enter momth\" + month + \" to month field \" + _monthField.toString());\n }",
"public void setMonth(int d)\n\t{\n\t\tm_calendar.set(Calendar.MONTH,d);\n\n\t}",
"public final native double setUTCMonth(int month, int dayOfMonth) /*-{\n this.setUTCMonth(month, dayOfMonth);\n return this.getTime();\n }-*/;",
"public int getMonth() {\n return this.month;\n }",
"public int getMonth() {\n return this.month;\n }",
"private void adjustDayInMonthIfNeeded(int month, int year) {\n int day = mCurrentDate.get(Calendar.DAY_OF_MONTH);\n int daysInMonth = getDaysInMonth(month, year);\n if (day > daysInMonth) {\n mCurrentDate.set(Calendar.DAY_OF_MONTH, daysInMonth);\n }\n }",
"public static void printMonthBody(int year, int month) {\n\n }",
"public Integer getMonth() {\n return month;\n }",
"public Integer getMonth() {\n return month;\n }",
"public int getMonth()\n {\n return month;\n }",
"public void setMonths(int months) {\n this.months = months;\n }",
"public static void printMonthTitle(int year, int month) {\n\n }",
"public String asMonth() {\n \treturn new SimpleDateFormat(\"MM\").format(expiredAfter);\n }",
"public void setMonth(java.lang.String r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: gov.nist.javax.sip.header.SIPDate.setMonth(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setMonth(java.lang.String):void\");\n }",
"private void setDataCurrentMonth() {\r\n\t\tguiControl.sendToServer(new ClientMessage(ClientMessageType.INCOME_REPORT, reportDate));\r\n\t\tMap<Integer, VisitorReport> parkReportMap = (Map<Integer, VisitorReport>) guiControl.getServerMsg()\r\n\t\t\t\t.getMessage();\r\n\t\tXYChart.Series<String, Integer> price = new XYChart.Series<>();\r\n\t\tint total_price = 0;\r\n\t\tint i = 1;\r\n\t\tfor (VisitorReport vr : parkReportMap.values()) {\r\n\t\t\tprice.getData().add(new XYChart.Data<>(String.valueOf(i), new Integer(vr.getPrice())));\r\n\t\t\ti++;\r\n\t\t\ttotal_price = total_price + vr.getPrice();\r\n\t\t}\r\n\t\tlineChar.getData().add(price);\r\n\t\tString totalP = String.valueOf(total_price);\r\n\t\ttotal.setText(totalP + \" \" + \"NIS\");\r\n\r\n\t}",
"public static String formatMonth(String time) {\n Date tempTime = DateUtils.parseStringToDateYYMMDD(time);\n DateFormat format = new SimpleDateFormat(MONTH);\n return format.format(tempTime);\n }",
"public boolean setMonth(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mMonth = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }",
"public int getMonth() {\n\t\treturn date.getMonthValue();\n\t}",
"public static int getTodaysMonth() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.month + 1;\t\r\n\t\t\r\n\t}",
"public int getMonthInt() {\n return month;\r\n }",
"public final native int getMonth() /*-{\n return this.getMonth();\n }-*/;",
"public byte getMonth() {\n return month;\n }",
"public byte getMonth() {\r\n return month;\r\n }",
"public byte getMonth() {\n return month;\n }",
"public byte getMonth() {\n return month;\n }",
"public byte getMonth() {\n return month;\n }",
"protected void setMonthDisplayed(MonthAdapter.CalendarDay date) {\n mCurrentMonthDisplayed = date.month;\n }",
"public String getMonth() {\n return month.getText();\n }",
"private void monthChanged(int oldMonthValue, int oldYearValue) {\r\n updateControlsFromTable();\r\n\r\n // fire property change\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, getMonth());\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n\r\n // clear selection when changing the month in view\r\n calendarTable.getSelectionModel().clearSelection();\r\n\r\n calendarTable.repaint();\r\n }",
"public static void changeTemp(int month, float change){\n monthlyHighestTemp[month - 1] = change;\n }",
"public int getMonthValue(){\n\t\treturn monthValue;\n\t}",
"public void setExpirationMonth(java.math.BigInteger expirationMonth) {\r\n this.expirationMonth = expirationMonth;\r\n }",
"public byte getMonth() {\n return month;\n }",
"public String checkDateMonth(Date aDate){\n if (aDate.getMonth() < 10) {\r\n String newDate = \"0\" + Integer.toString(aDate.getMonth()+1);\r\n \r\n return newDate;\r\n }\r\n return Integer.toString(aDate.getMonth());\r\n \r\n }",
"public String getMonth()\n {\n return Month.get();\n }",
"@Override\n\tpublic int updateMonth(Month11DTO mon) {\n\t\treturn getSqlSession().update(\"monUpdate\", mon);\n\t}",
"public String getMonth(int Month)\n {\n String[] months = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\n String realMonth = months[Month] + \" \" + i.getYear();\n return realMonth;\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date = month + \"/\" + dayOfMonth + \"/\" + year;\n dayPass = dayOfMonth;\n yearPass = year;\n monthPass = month;\n mDisplayDate.setText(date);\n }",
"private int getCalendarMonth(String month){\n month = month.toUpperCase();\n if (month.indexOf(\"JAN\") == 0 ) {\n return Calendar.JANUARY;\n } else if (month.indexOf(\"FEB\") == 0) {\n return Calendar.FEBRUARY;\n } else if (month.indexOf(\"MAR\") == 0) {\n return Calendar.MARCH ;\n } else if (month.indexOf(\"APR\") == 0) {\n return Calendar.APRIL;\n } else if (month.indexOf(\"MAY\") == 0) {\n return Calendar.MAY;\n } else if (month.indexOf(\"JUN\") == 0) {\n return Calendar.JUNE;\n } else if (month.indexOf(\"JUL\") == 0) {\n return Calendar.JULY;\n } else if (month.indexOf(\"AUG\") == 0) {\n return Calendar.AUGUST;\n } else if (month.indexOf(\"SEP\") == 0) {\n return Calendar.SEPTEMBER;\n } else if (month.indexOf(\"OCT\") == 0) {\n return Calendar.OCTOBER;\n } else if (month.indexOf(\"NOV\") == 0) {\n return Calendar.NOVEMBER;\n } else if (month.indexOf(\"DEC\") == 0) {\n return Calendar.DECEMBER;\n } else {\n throw new IllegalArgumentException(\"month must be one of {JAN, \" +\n \"FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV ,DEC)\");\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.nextMonth();\n\t\t\t\tc.add(Calendar.MONTH, 1);\n\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t}",
"public void setStartMonth(java.math.BigInteger startMonth) {\r\n this.startMonth = startMonth;\r\n }",
"@Step\n\t public SignUpStep2Page selectMonth(String monthInput) {\n\t Select monthDropdown = new Select(selectMonth);\n\t monthDropdown.selectByVisibleText(monthInput);\n\t return this;\n\t }",
"public String getMonth(int month) {\r\n\t\tString str = \"\";\r\n\t\tswitch (month) {\r\n\t\tcase 1:\r\n\t\t\tstr = \"January\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tstr = \"February\";\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tstr = \"March\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tstr = \"April\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tstr = \"May\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tstr = \"June\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tstr = \"July\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tstr = \"August\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tstr = \"September\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tstr = \"October\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tstr = \"November\";\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tstr = \"December\";\r\n\t\t}\r\n\t\treturn str;\r\n\t}",
"public void subtractMonth(int month) {\n if (month < 0) month = Math.abs(month);\n\n while (month != 0) {\n month--;\n this.subtractSingleMonth();\n }\n }"
] |
[
"0.76031065",
"0.7467364",
"0.74508625",
"0.7388153",
"0.73393756",
"0.7312535",
"0.73099595",
"0.7309068",
"0.72793156",
"0.7177469",
"0.7136857",
"0.7131555",
"0.7124117",
"0.7120971",
"0.7099856",
"0.7099856",
"0.6893621",
"0.68086594",
"0.6790647",
"0.6758248",
"0.6758248",
"0.6758248",
"0.67484534",
"0.66791755",
"0.65584695",
"0.6521568",
"0.6468968",
"0.64230216",
"0.6389915",
"0.6380152",
"0.6350939",
"0.6291891",
"0.6232158",
"0.6230373",
"0.6181636",
"0.61766666",
"0.61630887",
"0.61495167",
"0.6148246",
"0.6130527",
"0.61296976",
"0.61241215",
"0.6051634",
"0.6007061",
"0.59893155",
"0.5974185",
"0.59687936",
"0.5955057",
"0.5945572",
"0.59453344",
"0.5941435",
"0.59407175",
"0.59234565",
"0.59019756",
"0.58987546",
"0.58950317",
"0.58843356",
"0.58830357",
"0.58787405",
"0.5864372",
"0.5864372",
"0.58551484",
"0.5853706",
"0.58389115",
"0.58389115",
"0.583567",
"0.5832666",
"0.58028567",
"0.57882494",
"0.57832813",
"0.57757235",
"0.57632935",
"0.57598984",
"0.57476455",
"0.5731679",
"0.5730205",
"0.57256114",
"0.57231194",
"0.57049215",
"0.57019794",
"0.57019794",
"0.57019794",
"0.5699531",
"0.5691857",
"0.5685847",
"0.566499",
"0.566421",
"0.5662974",
"0.56587374",
"0.5654099",
"0.5646639",
"0.56402904",
"0.5636827",
"0.5630893",
"0.56299084",
"0.56251174",
"0.56166476",
"0.5595306",
"0.5592678",
"0.5591899"
] |
0.6519796
|
26
|
Changes the current date's day to the value of the day parameter (has to be between 1 and 31 included).
|
public void setDay(int day) throws InvalidDateException {
if (day <= 31 & day >= 1) {
this.day = day;
} else {
throw new InvalidDateException("Please enter a realistic day for the date (between 1 and 31) !");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\n this.day = day;\n }",
"public void setDay(final int day) {\n\t\tthis.day = day;\n\t}",
"public void setCalendarDay(int day)\n {\n this.currentCalendar.set(Calendar.DAY_OF_MONTH, day);\n }",
"public void setDay(int day) {\n\t\tthis.day = day;\n\t}",
"public void setDay(int day) {\n\t\tthis.day = day;\n\t}",
"public void setDay(int day) {\r\n this.day = day;\r\n }",
"public void setDay(int day) {\n if(day < 1 || day > 31) {\n this.day = 1;\n } else {\n this.day = day;\n }\n\n if(month == 2 && this.day > 29) {\n this.day = 29;\n } else if((month==4 || month==6 || month==8 || month==11) && this.day > 30) {\n this.day = 30;\n }\n }",
"public void setDay(int day)\n {\n this.day = day;\n }",
"public void setDay(final short day) {\r\n\t\tthis.day = day;\r\n\t}",
"public void setDay(int day)\r\n {\n \tif (!(day <= daysInMonth(month) || (day < 1)))\r\n\t\t{\r\n \t\tthrow new IllegalArgumentException(\"Bad day: \" + day);\r\n\t\t}\r\n this.day = day;\r\n }",
"public void setDay(int day) {\r\n if ((day >= 1) && (day <= 31)) {\r\n this.day = day; //Validate day if true set else throws an exception\r\n } else {\r\n throw new IllegalArgumentException(\"Invalid Day!\");\r\n }\r\n\r\n }",
"public void setDay(int year, int month, int day) {\n cal = Calendar.getInstance();\n cal.set(year, month, day);\n }",
"public void setDay(String day) {\n\n\t\tthis.day = day;\n\t}",
"private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }",
"public void setDay(java.lang.String day)\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(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DAY$0);\n }\n target.setStringValue(day);\n }\n }",
"public void setDay(int year, int month, int day)\n\t{\n\t\t m_calendar.set(year,month-1,day);\n\n\t}",
"public void setDay(java.lang.String param) {\r\n localDayTracker = param != null;\r\n\r\n this.localDay = param;\r\n }",
"public void setDay(java.lang.String param) {\r\n localDayTracker = param != null;\r\n\r\n this.localDay = param;\r\n }",
"public void advanceDay(long day) {\n clock = Clock.offset(clock, Duration.ofDays(day));\n }",
"public void setDate(int month, int day) {\r\n\t\tString dayString = \"\";\r\n\t\tif(day < 10)\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < 10; i++)\r\n\t\t\t{\r\n\t\t\t\tif(day == i)\r\n\t\t\t\t{\r\n\t\t\t\t\tdayString = \"0\" + i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.date = month + \"-\" + dayString;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.date = month + \"-\" + day;\r\n\t\t}\r\n\t}",
"public void updateDay(int value)\n {\n this.currentCalendar.add(Calendar.DAY_OF_MONTH, value);\n }",
"public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }",
"public boolean setDay(int newDay) {\n\t\tthis.day = newDay;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t\treturn true;\n\t}",
"public void setDay(Day day, int dayNum) {\n\t\tif (dayNum <= days.length) {\n\t\t\tdays[dayNum - 1] = day;\n\t\t}\n\t}",
"public void setDayDate(Number value) {\n setAttributeInternal(DAYDATE, value);\n }",
"void setDayOrNight(int day) {\n setStat(day, dayOrNight);\n }",
"public void setDay(byte value) {\n this.day = value;\n }",
"public void setDay(byte value) {\r\n this.day = value;\r\n }",
"public void setDate(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }",
"public void xsetDay(org.apache.xmlbeans.XmlString day)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DAY$0);\n }\n target.set(day);\n }\n }",
"public void setDay(byte value) {\n this.day = value;\n }",
"public void setDay(byte value) {\n this.day = value;\n }",
"public void setDay(byte value) {\n this.day = value;\n }",
"public void setDay(byte value) {\n this.day = value;\n }",
"private void changeNextDay(){\n\t\tplanet.getClimate().nextDay();\n\t}",
"String updateDay(String userName, Day day);",
"public void setCurrentDate(String d) {\n currentDate = d;\n }",
"public void setDayParam(String dayParam) {\r\n this.dayParam = dayParam;\r\n }",
"private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }",
"public void goToToday() {\n goToDate(today());\n }",
"public boolean setDay(int newDay, boolean check) {\n\t\tthis.day = newDay;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\tif (check) {\n\t\t\tdouble oldYear = this.year;\n\t\t\tdouble oldMonth = this.month;\n\t\t\tIDate dt = swe_revjul(this.jd, this.calType); // -> erzeugt neues\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Datum\n\t\t\tthis.year = dt.year;\n\t\t\tthis.month = dt.month;\n\t\t\tthis.day = dt.day;\n\t\t\tthis.hour = dt.hour;\n\t\t\treturn (this.year == oldYear && this.month == oldMonth && this.day == newDay);\n\t\t}\n\t\treturn true;\n\t}",
"public void setDayNumber(String day) {\r\n this.dayNumber.setText(day);\r\n }",
"public void incrementDay(){\n //Step 1\n this.currentDate.incrementDay();\n //step2\n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementDay();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementDay();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementDay();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementDay();\n //step 3\n if (this.getDate().getDay() == 1) {\n \n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementMonth();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementMonth();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementMonth();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementMonth();\n }\n \n }",
"public void setWorkDay(Date workDay) {\n\t\tthis.workDay = workDay;\n\t}",
"public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }",
"public void setDate(Date newDate) {\n this.currentDate = newDate;\n }",
"public void updateChangedDate(int year, int month, int day);",
"public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }",
"protected abstract void updateDayTime(fr.inria.phoenix.diasuite.framework.datatype.daytime.DayTime currentTime) throws Exception;",
"public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}",
"void updateChangedDate(int year, int month, int day);",
"public Date getDay() {\r\n return day;\r\n }",
"public Date getDay() {\r\n return day;\r\n }",
"public Date getDay() {\r\n return day;\r\n }",
"public Date getDay() {\r\n return day;\r\n }",
"public Date getDay() {\r\n return day;\r\n }",
"public void setDay(Calendar cal) {\n this.cal = (Calendar) cal.clone();\n }",
"public void setMday(int value) {\n this.mday = value;\n }",
"public void setDayOfTheWeek(String day){\r\n this.dayOfTheWeek.setText(day);\r\n }",
"public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }",
"public Date getDay() {\n return day;\n }",
"public Builder setDayValue(int value) {\n \n day_ = value;\n onChanged();\n return this;\n }",
"public void setDate(int dt) {\n date = dt;\n }",
"public void setDate(int day, int month, int year, int hour, int minute) // Maybe\n\n {\n this.day = day;\n this.month = month;\n this.year = year;\n this.hour = hour;\n this.minute = minute;\n }",
"protected void updateTodaysDate() {\n\t\tthis.todaysDate = new Date();\n\t}",
"public void updateDate(Date date);",
"public void nextDay() {\r\n int daysMax = daysInMonth();\r\n \r\n if (day == daysMax && month == 12) { // If end of the year, set date to Jan 1\r\n setDate(1, 1);\r\n } else if (day == daysMax) { // If last day of month, set to first day of next month\r\n setDate(month + 1, 1);\r\n } else { // Otherwise, simply increment this day\r\n day++;\r\n }\r\n }",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n et_date.setText(day + \"/\" + (month + 1) + \"/\" + year);\n }",
"public void setBirthDay(Date birthDay) {\n\t\tthis.birthDay = birthDay;\n\t}",
"void updateDays(WheelView year, WheelView month, WheelView day) {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.YEAR,\n\t\t\t\tcalendar.get(Calendar.YEAR) + year.getCurrentItem());\n\t\tcalendar.set(Calendar.MONTH, month.getCurrentItem());\n\n\t\tint maxDays = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\tday.setViewAdapter(new DateNumericAdapter(getContext(), 1, maxDays,\n\t\t\t\tcureantDate));\n\t\tint curDay = Math.min(maxDays, day.getCurrentItem() + 1);\n\t\tday.setCurrentItem(curDay - 1, true);\n\t}",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n\n callerActivity.setSelectedDate(year,month+1,day);\n }",
"public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n DateEdit.setText(day + \"/\" + (month + 1) + \"/\" + year);\n }",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n DateEdit.setText(day + \"/\" + (month + 1) + \"/\" + year);\n }",
"public void setDay(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setDay(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setDay(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setDay(int):void\");\n }",
"private static void incrementDate() {\n\t\ttry {\r\n\t\t\tint days = Integer.valueOf(input(\"Enter number of days: \")).intValue();\r\n\t\t\tcalculator.incrementDate(days); // variable name changes CAL to calculator\r\n\t\t\tlibrary.checkCurrentLoans(); // variable name changes LIB to library\r\n\t\t\toutput(sdf.format(cal.date())); // variable name changes SDF to sdf , CAL to cal , method changes Date() to date()\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t output(\"\\nInvalid number of days\\n\");\r\n\t\t}\r\n\t}",
"public void setDate(int year, int month, int dayOfMonth)\n {\n this.date = new GregorianCalendar(year, month-1, dayOfMonth);\n }",
"private Day(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public static int getCurrentDay()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.DATE);\n\t}",
"@Override\n\tpublic void proceedNewDay(int p_date) \n\t\t\tthrows RemoteException \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public final native double setDate(int dayOfMonth) /*-{\n this.setDate(dayOfMonth);\n return this.getTime();\n }-*/;",
"public void setBirthday(Date birthday) {\r\n this.birthday = birthday;\r\n }",
"public void setBirthday(Date birthday) {\r\n this.birthday = birthday;\r\n }",
"public void setBirthday(Date birthday) {\n this.birthday = birthday;\n }",
"public void setBirthday(Date birthday) {\n this.birthday = birthday;\n }",
"public void setBirthday(Date birthday) {\n this.birthday = birthday;\n }",
"public final void setMonday(final TimeSlot monday) {\n this.monday = monday;\n log.info(this.monday.toString());\n }",
"public void setDayOfWeek(int dayOfWeek) {\n this.dayOfWeek = dayOfWeek;\n }",
"public void setDayId(String dayId) {\r\n this.dayId = dayId;\r\n }",
"public void setBirthday(Date birthday);",
"public void setCalDay() {\n\t\tfloat goal_bmr;\n\t\tif(gender==\"male\") {\n\t\t\tgoal_bmr= (float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age + 5);\n\t\t}\n\t\telse {\n\t\t\tgoal_bmr=(float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age - 161);\n\t\t}\n\t\tswitch (gymFrequency) {\n\t\tcase 0:calDay = goal_bmr*1.2;\n\t\t\t\tbreak;\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 3:calDay = goal_bmr*1.375;\n\t\t\t\tbreak;\n\t\tcase 4:\n\t\tcase 5:calDay = goal_bmr*1.55;\n\t\t\n\t\t\t\tbreak;\n\t\tcase 6:\n\t\tcase 7:calDay = goal_bmr*1.725;\n\t\t\t\tbreak;\n\t\t}\n\t}",
"@java.lang.Override public int getDayValue() {\n return day_;\n }",
"public void setDayOfWeek(final int dayOfWeek) {\n this.dayOfWeek = dayOfWeek;\n }",
"public void setReadingDay(GregorianCalendar readingDay) throws NullPointerException{\n\t\tif(readingDay == null) throw new NullPointerException(\"Null date invalid for reading point\");\n\t\tthis.readingDay = (GregorianCalendar)readingDay.clone();\n\t\tfireDateChanged();\n\t}",
"public void seteBirthday(Date eBirthday) {\n this.eBirthday = eBirthday;\n }"
] |
[
"0.78107715",
"0.78107715",
"0.78107715",
"0.78107715",
"0.78107715",
"0.7775454",
"0.7598849",
"0.7565784",
"0.7520757",
"0.7520757",
"0.74522865",
"0.7393161",
"0.7346788",
"0.7326706",
"0.7164289",
"0.7080724",
"0.70556706",
"0.70086116",
"0.69355935",
"0.69066644",
"0.6845872",
"0.67834115",
"0.67834115",
"0.67655313",
"0.6705315",
"0.6702279",
"0.6609052",
"0.65920824",
"0.65882254",
"0.65763974",
"0.65409786",
"0.65339226",
"0.65164894",
"0.6515841",
"0.6514358",
"0.6503951",
"0.6503951",
"0.6503951",
"0.64917547",
"0.64316195",
"0.641652",
"0.62894094",
"0.62884474",
"0.61918896",
"0.6150488",
"0.61248606",
"0.6111966",
"0.6111612",
"0.6083991",
"0.6066407",
"0.60654336",
"0.606039",
"0.60593325",
"0.6028516",
"0.60224676",
"0.6008365",
"0.5981832",
"0.5981832",
"0.5981832",
"0.5981832",
"0.5981832",
"0.5970595",
"0.5915854",
"0.5882168",
"0.5873927",
"0.5858605",
"0.58548236",
"0.582385",
"0.5795828",
"0.57821536",
"0.57794",
"0.576109",
"0.5728284",
"0.57098585",
"0.5704519",
"0.57034624",
"0.5696186",
"0.56898284",
"0.56898284",
"0.56664795",
"0.566531",
"0.56639683",
"0.5638518",
"0.5604119",
"0.56002456",
"0.5597956",
"0.55956185",
"0.55956185",
"0.55810887",
"0.55810887",
"0.55810887",
"0.55801004",
"0.55798304",
"0.5579091",
"0.5578846",
"0.5578101",
"0.55653423",
"0.555687",
"0.5552974",
"0.55522794"
] |
0.68908745
|
20
|
Changes the current date's hour to the value of the hour parameter (has to be between 0 and 23 included).
|
public void setHour(int hour) throws InvalidDateException {
if (hour < 24 & hour >= 0) {
this.hour = hour;
} else {
throw new InvalidDateException("Please enter a realistic hour for the date (between 0 and 23) !");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }",
"public void setHour(int hour){\n if(hour < 0 || hour > 23) {System.out.println(\"wrong input!\"); return;}\n this.hour = hour;\n }",
"public void setHour(int hour)\n {\n this.hour = hour;\n }",
"public void setHour(int hour) \n { \n if (hour < 0 || hour >= 24)\n throw new IllegalArgumentException(\"hour must be 0-23\");\n\n this.hour = hour;\n }",
"public void setHour(int hour) {\n\t\tthis.hour = hour;\n\t}",
"public void setHour(Integer hour) {\n this.hour = hour;\n }",
"public void setHour(int nHour) { m_nTimeHour = nHour; }",
"public Time4 setHour( int hour ) \r\n { \r\n this.hour = ( hour >= 0 && hour < 24 ? hour : 0 ); \r\n\r\n return this; // enables chaining\r\n }",
"public void setHour(int hour) throws BlablakidException {\n\t\tif(checkTime(hour,this.minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The hour introduced is wrong : \"+hour);\n\t\t}\n\t\telse {\n\t\tthis.hour = hour;\n\t\t}\n\t}",
"public void setHour(Pair<Double, Double> value) {\r\n\t\thour = value;\r\n\t}",
"private void setTime(int hour, int minute){\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n persistLong(calendar.getTimeInMillis());\n\n notifyChanged();\n notifyDependencyChange(shouldDisableDependents());\n }",
"public void setTime(String newHour) { // setTime sets the appointment's hour in standard time\n \n // this divides the newHour string into the hour part and the 'am'/'pm' part\n int timeHour = Integer.parseInt(newHour.substring(0, newHour.length()-2)); // the number of the hour\n String timeAmPm = newHour.substring(newHour.length()-2); // whether it is 'am' or 'pm'\n\n // 4 possible cases exist and are handled in this order:\n // 1. after midnight/before noon\n // 2. midnight (12am)\n // 3. noon (12pm)\n // 4. afternoon\n if(timeAmPm.equalsIgnoreCase(\"am\") && timeHour != 12) {\n this.hour = timeHour;\n }\n else if(timeAmPm.equalsIgnoreCase(\"am\")) {\n this.hour = 0;\n }\n else if(timeHour == 12){\n this.hour = timeHour;\n }\n else {\n this.hour = timeHour + 12;\n }\n }",
"public Builder setHour(final int hour) {\n this.hour = hour;\n return this;\n }",
"public void advanceHour(long hour) {\n clock = Clock.offset(clock, Duration.ofHours(hour));\n }",
"public void updateChangedTime(int hour, int minute);",
"public boolean setHour(double newHour) {\n\t\tthis.hour = newHour;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t\treturn true;\n\t}",
"public static void setHour(String HourString) {\n\t\thour = HourString;\n\t}",
"public DateHour(int year, int month, int day, int hour)\n\t{\n\t\tm_year = year;\n\t\tm_month = month;\n\t\tm_day = day;\n\t\tm_hour = hour;\n\t}",
"public void setWorkingHour (int newWorkingHour) {\n this.workingHour = newWorkingHour;\n }",
"public void addTime(LocalDate date, String hour) {\n spr.addTime(date, hour);\n }",
"public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }",
"@Deprecated\n/* */ public void setCurrentHour(@RecentlyNonNull Integer currentHour) {\n/* 89 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setHours(double hours) {\r\n this.hours = hours;\r\n }",
"@Override\r\n public boolean setHours(int hours) {\r\n if(hours<0||hours>23)\r\n {\r\n return false;\r\n }\r\n calendar.set(Calendar.HOUR_OF_DAY, hours);\r\n return true;\r\n }",
"public void setHour(int hour) {\n/* 51 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setHours(int hours) {\n this.hours = hours;\n }",
"public void sethourNeed(Integer h){hourNeed=h;}",
"public void setOne(int day, int hour, Integer newValue) {\r\n weekData[day][hour] = newValue;\r\n }",
"public void increaseHour() {\n\t\tthis.total++;\n\t}",
"public void goToHour(int hour) {\n if (viewState.areDimensionsInvalid) {\n viewState.setScrollToHour(hour);\n return;\n }\n\n hour = min(hour, HOURS_PER_DAY);\n float verticalOffset = config.hourHeight * hour;\n\n final float dayHeight = config.getTotalDayHeight();\n final double viewHeight = getHeight();\n\n final double desiredOffset = dayHeight - viewHeight;\n verticalOffset = min((float)desiredOffset, verticalOffset);\n\n config.drawingConfig.currentOrigin.y = -verticalOffset;\n invalidate();\n }",
"public void setHours(int hours) {\n\t\tthis.hours = hours;\n\t}",
"public final native double setHours(int hours) /*-{\n this.setHours(hours);\n return this.getTime();\n }-*/;",
"public int getHour() { return this.hour; }",
"public void setHours(int x, double h) {\r\n hours[x] = h;\r\n }",
"public static void setGreeting(int hourOfDay) {\n if (hourOfDay >= 0 && hourOfDay < 12) {\n dayHourGreeting = MORNING;\n } else if (hourOfDay >= 12 && hourOfDay < 16) {\n dayHourGreeting = AFTERNOON;\n } else if (hourOfDay >= 16 && hourOfDay < 21) {\n dayHourGreeting = EVENING;\n } else if (hourOfDay >= 21 && hourOfDay < 24) {\n dayHourGreeting = NIGHT;\n }\n }",
"public Builder setStartHour(int value) {\n \n startHour_ = value;\n onChanged();\n return this;\n }",
"public Time4( int hour ) \r\n { \r\n this.setTime( hour, 0, 0 ); \r\n }",
"public static void setTime(Clock clock, int hour, int minute, int second) {\n\t\tif (hour < 0 || hour > 24) {\r\n\t\t\thour = 0;\r\n\t\t}\r\n\t\tif (minute < 0 || minute > 60) {\r\n\t\t\tminute = 0;\r\n\t\t}\r\n\t\tif (second < 0 || second > 60) {\r\n\t\t\tsecond = 0;\r\n\t\t}\r\n\r\n\t\tclock.setHour(hour);\r\n\t\tclock.setMinute(minute);\r\n\t\tclock.setSecond(second);\r\n\r\n\t}",
"public void setHours(String hours) {\n this.hours = parseHours(hours);\n }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n DateEdit.setText(DateEdit.getText() + \" -\" + hourOfDay + \":\" + minute);\n }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }",
"public void setEHour(int ehour)\r\n\t{\r\n\t\tthis.ehour = ehour;\r\n\t}",
"Integer getHour();",
"@Override\n public String onHourChange(long hour) {\n return null;\n }",
"public Builder setFinishHour(int value) {\n \n finishHour_ = value;\n onChanged();\n return this;\n }",
"public void setTime(int hour, int minute, int second)\r\n\t{\r\n\t\tHours.setValue(hour);\r\n\t\tMinutes.setValue(minute);\r\n\t\tSeconds.setValue(second);\r\n\t\t\r\n\t\tupdateTime();\r\n\t}",
"public int getHour() {\n\t\treturn hour;\n\t}",
"public int getHour() {\n\t\treturn hour;\n\t}",
"public int getHour()\n {\n return hour;\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(0, 0, 0, hourOfDay, minute, 0);\n Date date = calendar.getTime();\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh.mm aa\", Locale.getDefault());\n\n mBinding.time.setText(sdf.format(date));\n }",
"public self hour(int currentHour) {\n\t\tfor (X vaporView : members)\n\t\t\tvaporView.hour(currentHour);\n\t\treturn (self) this;\n\n\t}",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n et_time.setText(et_time.getText() + \"\" + hourOfDay + \":\" + minute);\n }",
"public static final Function<Date,Date> setHour(final int value) {\r\n return new Set(Calendar.HOUR, value);\r\n }",
"public static void set24Hour( boolean hour24 ) {\n AM_PM = !hour24;\n }",
"public void setHours(double hours) {\r\n // if hours is negative, hours is 0\r\n if (hours < 0) {\r\n this.hours = 0;\r\n }\r\n else {\r\n this.hours = hours;\r\n }\r\n // calls calculateSalary to update the salary once hours is changed\r\n calculateSalary();\r\n }",
"@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getStarttime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getStarttime().set(Calendar.MINUTE, minute);\n updateStartTime();\n }",
"public Time( int hour, int minute ) {\n this( hour * MINS_PER_HR + minute );\n }",
"public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}",
"public void setHour(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setHour(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setHour(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setHour(int):void\");\n }",
"public int getHour(){\n return hour;\n }",
"public int getHour() \n { \n return hour; \n }",
"private void setClock(int day, int hour, int minute) {\n String dayString;\n switch(day) {\n case 0: dayString = \"Maandag\";\n break;\n case 1: dayString = \"Dinsdag\";\n break;\n case 2: dayString = \"Woensdag\";\n break;\n case 3: dayString = \"Donderdag\";\n break;\n case 4: dayString = \"Vrijdag\";\n break;\n case 5: dayString = \"Zaterdag\";\n break;\n case 6: dayString = \"Zondag\";\n break;\n default: dayString = \"Ongeldige dag\";\n break;\n }\n //\tLaat de tijd 02 zijn in plaats van 2\n String hourString = String.format(\"%02d\", hour);\n String minuteString = String.format(\"%02d\", minute);\n clock.setText(\"<html><h2>\"+dayString + \" \" + hourString + \":\" + minuteString+\"</h2></html>\");\n }",
"public Integer getHour() {\n\t\treturn hour;\n\t}",
"public void setSleepHour(int hours) {\n\t\tif (hours >= 0)\n\t\t\tsleepHours = hours;\n\t\telse\n\t\t\tsleepHours = -1;\n\t}",
"public final native double setHours(int hours, int mins) /*-{\n this.setHours(hours, mins);\n return this.getTime();\n }-*/;",
"public Integer getHour() {\n return hour;\n }",
"public void updateHour() {\n\t\thilo = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tLabelHora.setText(calculateHour());\n\t\t\t}\n\t\t});\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t}\n\n\t\t\t// UI update is run on the Application thread\n\t\t\tPlatform.runLater(hilo);\n\t\t}\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getEndtime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getEndtime().set(Calendar.MINUTE, minute);\n updateEndTime();\n }",
"public static int getCurrentHour()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\n\t}",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n String newValue = String.format(\"%d:%02d\", hourOfDay, minute);\n mPrefs.edit().putString(mPreference.getKey(), newValue).apply();\n mPreference.setSummary(DateFormatter.getSummaryTimestamp(getActivity(), newValue));\n mListener.onPreferenceChange(mPreference, newValue);\n SettingsFragment.updateAlarmManager(getActivity(), true);\n }",
"float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }",
"void updateTaskHours(int id, float hours);",
"public JobLog setHours(String hours) {\n this.hours = hours;\n return this;\n }",
"public int getHour() {\n\t\treturn this.hour;\n\t}",
"public void update(int hours){\n this.setNbrHours(hours);\n }",
"public double getHour() {\n\t\treturn this.hour;\n\t}",
"private void updateTime() \r\n\t {\r\n\t\t \r\n\t\t \tif(Hours.getValue() < 12)\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" am\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \telse if (Hours.getValue() > 12 && Hours.getValue() < 24 )\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" pm\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t }",
"public MyTime nextHour(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\t\n\t\tif (hours!=23){\n\t\t\thour++;\n\t\t}\n\t\telse{\n\t\t\thour = 0;\n\t\t}\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}",
"public void setDate(int day, int month, int year, int hour, int minute) // Maybe\n\n {\n this.day = day;\n this.month = month;\n this.year = year;\n this.hour = hour;\n this.minute = minute;\n }",
"public void setHours(int[] hours) {\n if (hours == null)\n hours = new int[] {};\n this.hours = hours;\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"public int getHour() {\n return dateTime.getHour();\n }",
"public void setHourlyRate(double hr)\n\t{\n\t\thourlyRate = hr;\n\t}",
"Integer getStartHour();",
"private static void updateTime(int hours, int mins) {\n String timeSet;\n if (hours > 12) {\n hours -= 12;\n timeSet = \"PM\";\n } else if (hours == 0) {\n hours += 12;\n timeSet = \"AM\";\n } else if (hours == 12)\n timeSet = \"PM\";\n else\n timeSet = \"AM\";\n\n String minutes;\n if (mins < 10)\n minutes = \"0\" + mins;\n else\n minutes = String.valueOf(mins);\n\n // Append the time to a stringBuilder\n String theTime = String.valueOf(hours) + ':' + minutes + \" \" + timeSet;\n\n // Set the timePickButton as the converted time\n timePickButton.setText(theTime);\n\n }",
"public String getCurrentHours() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public void setPriceperhour(int priceperhour) {\n this.priceperhour = priceperhour;\n }",
"public DayHourGreeting () {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n setGreeting(hourOfDay);\n }",
"public final native double setHours(int hours, int mins, int secs) /*-{\n this.setHours(hours, mins, secs);\n return this.getTime();\n }-*/;",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }",
"public void update(int hour, int value) {\n for (int i = hour; i < prefixSum.length; i++) {\n if (i + 1 < prefixSum.length)\n prefixSum[i + 1][0]+= value;\n\n prefixSum[i][1]+=value;\n }\n }",
"private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }",
"public void setAditionalNightHours(int hours){\r\n\t this.addings = (double)(40*hours);\r\n }",
"default LocalDateTime getLocalTime(int hour, int minute) {\n return getLocalTime(2017, 1, 31, hour, minute);\n }",
"public LocalTime setBusinessHoursToLocalHours(int hr){\n LocalDateTime now = LocalDateTime.now();\n LocalDateTime ldt = LocalDateTime.of(now.getYear(), now.getMonthValue(), now.getDayOfMonth(), hr, 0);\n return ZonedDateTime.\n of(ldt, ZoneId.of(\"America/New_York\"))\n .toOffsetDateTime()\n .atZoneSameInstant(ZoneId.systemDefault())\n .toLocalDateTime().toLocalTime();\n }",
"public void onTimeSet(TimePicker tp, int hourOfDay,\n\t\t\t\t\t\t\tint minute) {\n\t\t\t\t\t\tString s1 = String.valueOf(hourOfDay);\n\t\t\t\t\t\tString s2 = String.valueOf(minute);\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tContentValues cvtime = new ContentValues();// 实例化ContentValues\n\t\t\t\t\t\tcvtime.put(\"time_hour\", hourOfDay);\n\t\t\t\t\t\tcvtime.put(\"time_min\", minute);// 添加要更改的字段及内容\n\t\t\t\t\t\tString whereClause = \"time_number=?\";\n\t\t\t\t\t\tString[] whereday = new String[] { String.valueOf(i) };\n\t\t\t\t\t\tdb.update(\"time\", cvtime, whereClause,\n\t\t\t\t\t\t\t\twhereday);\n\n\t\t\t\t\t\tif (minute < 10) {\n\t\t\t\t\t\t\ts2 = \"0\" + s2;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (hourOfDay < 10) {\n\t\t\t\t\t\t\ts1 = \"0\" + s1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttv.setText(s1 + \":\" + s2);\n\n\t\t\t\t\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 SweDate(int year, int month, int day, double hour) {\n\t\tsetFields(year, month, day, hour);\n\t}",
"public void setMaxHour(Integer maxHour) {\r\n this.maxHour = maxHour;\r\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n editASLTStime.setText((((hourOfDay < 10) ? \"0\" + hourOfDay : hourOfDay) + \":\" + ((minute < 10) ? \"0\" + minute : minute) + \":00\"));\n }"
] |
[
"0.76116467",
"0.75459075",
"0.750744",
"0.7462543",
"0.7411131",
"0.7339087",
"0.72847635",
"0.7176758",
"0.7053705",
"0.6941704",
"0.6775655",
"0.674819",
"0.6704269",
"0.6681094",
"0.66643995",
"0.6642898",
"0.6594539",
"0.6546921",
"0.6543096",
"0.6494594",
"0.645319",
"0.6414412",
"0.6377849",
"0.63777936",
"0.6280765",
"0.62760717",
"0.62293303",
"0.62245405",
"0.61628413",
"0.61557263",
"0.61339384",
"0.6106296",
"0.608204",
"0.604329",
"0.60214764",
"0.60170007",
"0.60020995",
"0.5982285",
"0.5934195",
"0.5923261",
"0.59223175",
"0.5921066",
"0.59064233",
"0.58870834",
"0.5879616",
"0.5845314",
"0.58264875",
"0.58264875",
"0.5821836",
"0.5811576",
"0.57934785",
"0.5784957",
"0.57773936",
"0.57616156",
"0.57495",
"0.57418025",
"0.5731801",
"0.5718404",
"0.57082254",
"0.5707222",
"0.5706393",
"0.5705208",
"0.57035637",
"0.56945074",
"0.569399",
"0.5693548",
"0.56754047",
"0.56602526",
"0.56437826",
"0.56363684",
"0.56335706",
"0.56324714",
"0.55859214",
"0.5583236",
"0.5576326",
"0.55614924",
"0.55530655",
"0.5551933",
"0.554321",
"0.5541199",
"0.55377954",
"0.5523546",
"0.5521614",
"0.551934",
"0.55126935",
"0.54975176",
"0.54968333",
"0.5494875",
"0.54880214",
"0.54762083",
"0.54736537",
"0.5458761",
"0.5458237",
"0.54458",
"0.54367477",
"0.54358107",
"0.5424712",
"0.5405797",
"0.5405606",
"0.53888726"
] |
0.7100184
|
8
|
Changes the current date's minute to the value of the minute parameter (has to be between 0 and 59 included).
|
public void setMinute(int minute) throws InvalidDateException {
if (minute < 60 & minute >= 0) {
this.minute = minute;
} else {
throw new InvalidDateException("Please enter a realistic minute for the date (between 0 and 59) !");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setMinute(int minute)\n {\n this.minute = minute;\n }",
"public void setMinute(int minute) {\n\t\tthis.minute = minute;\n\t}",
"public void setMinute(int value) {\n this.minute = value;\n }",
"public Time4 setMinute( int minute ) \r\n { \r\n this.minute = \r\n ( minute >= 0 && minute < 60 ) ? minute : 0;\r\n\r\n return this; // enables chaining\r\n }",
"public void setMinute(int value) {\n this.minute = value;\n }",
"public void setMinute(int minute) \n { \n if (minute < 0 || minute >= 60)\n throw new IllegalArgumentException(\"minute must be 0-59\");\n\n this.minute = minute; \n }",
"public void setTimestampMinute(Date timestampMinute) {\n\tthis.timestampMinute = timestampMinute;\n }",
"public void setMinute(int nMinute) { m_nTimeMin = nMinute; }",
"public int getMinute() { return this.minute; }",
"@Deprecated\n/* */ public void setCurrentMinute(@RecentlyNonNull Integer currentMinute) {\n/* 107 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setMinutes(int minutes) {\n this.minutes = minutes;\n }",
"public self minute(int currentMinute) {\n\t\tfor (X vaporView : members)\n\t\t\tvaporView.minute(currentMinute);\n\t\treturn (self) this;\n\n\t}",
"public int getMinute() {\n return minute;\n }",
"public int getMinute() {\n return minute;\n }",
"public int getMinute() {\n\t\treturn minute;\n\t}",
"public void setTime(double minutes) {\n\t\t// implement this method.\n\n\t}",
"public int getMinute()\n {\n return minute;\n }",
"public Date getTimestampMinute() {\n\treturn timestampMinute;\n }",
"public static int getCurrentMinute()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MINUTE);\n\t}",
"public final native double setMinutes(int minutes) /*-{\n this.setMinutes(minutes);\n return this.getTime();\n }-*/;",
"public void setMinutes(String minutes) {\n this.minutes = parseMinutes(minutes);\n }",
"public int getMinute() {\n\t\treturn this.minute;\n\t}",
"public int getMinute() {\n return dateTime.getMinute();\n }",
"public final native double setMinutes(int minutes, int seconds) /*-{\n this.setMinutes(minutes, seconds);\n return this.getTime();\n }-*/;",
"Integer getMinute();",
"public void setMinute(int minute) {\n/* 70 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void setTime(int hour, int minute){\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n persistLong(calendar.getTimeInMillis());\n\n notifyChanged();\n notifyDependencyChange(shouldDisableDependents());\n }",
"public DateTimeFormatterBuilder appendMinuteOfDay(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfDay(), minDigits, 4);\r\n }",
"public MyTime nextMinute(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\t\n\t\tif (minute!=59){\n\t\t\tminute++;\n\t\t}\n\t\telse{\n\t\t\tminute = 0;\n\t\t\tif (hours!=23){\n\t\t\t\thour++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thour = 0;\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}",
"public void setMinutes(int minutes) throws BlablakidException {\n\t\tif(checkTime(this.hour, minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The minute introduced is wrong : \"+minutes);\n\t\t}\n\t\telse {\n\t\t\tthis.minutes = minutes;\n\t\t}\n\t}",
"public final native double setMinutes(int minutes, int seconds, int millis) /*-{\n this.setMinutes(minutes, seconds, millis);\n return this.getTime();\n }-*/;",
"public Builder setMinuteOfHour(final int minuteOfHour) {\n this.minuteOfHour = minuteOfHour;\n return this;\n }",
"public void setMinute(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: gov.nist.javax.sip.header.SIPDate.setMinute(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setMinute(int):void\");\n }",
"public int getStartMinute() {\n return startMinute;\n }",
"public void setMinTime(Integer minTime) {\n this.minTime = minTime;\n }",
"public Time( int minutes ) {\n this.minutes = minutes;\n }",
"public void setMin(int min) throws MinuteInputException{\n\t\tif (min < 0)\n\t\t\tthrow new MinuteInputException(\"Invalid minute\");\n\t\tthis.min = min;\n\t}",
"public int getStartMinute() {\n\treturn start.getMinute();\n }",
"public void setBeatsPerMinute(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}",
"public void setcurrent_time() {\n\t\tthis.current_time = LocalTime.now();\n\t}",
"public void setBeatsPerMinute( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}",
"public static void setBeatsPerMinute( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}",
"public static void setBeatsPerMinute(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) {\r\n\t\tBase.set(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}",
"void setCurrentTime(long currentTime);",
"public void onTimeSet(TimePicker tp, int hourOfDay,\n\t\t\t\t\t\t\tint minute) {\n\t\t\t\t\t\tString s1 = String.valueOf(hourOfDay);\n\t\t\t\t\t\tString s2 = String.valueOf(minute);\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tContentValues cvtime = new ContentValues();// 实例化ContentValues\n\t\t\t\t\t\tcvtime.put(\"time_hour\", hourOfDay);\n\t\t\t\t\t\tcvtime.put(\"time_min\", minute);// 添加要更改的字段及内容\n\t\t\t\t\t\tString whereClause = \"time_number=?\";\n\t\t\t\t\t\tString[] whereday = new String[] { String.valueOf(i) };\n\t\t\t\t\t\tdb.update(\"time\", cvtime, whereClause,\n\t\t\t\t\t\t\t\twhereday);\n\n\t\t\t\t\t\tif (minute < 10) {\n\t\t\t\t\t\t\ts2 = \"0\" + s2;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (hourOfDay < 10) {\n\t\t\t\t\t\t\ts1 = \"0\" + s1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttv.setText(s1 + \":\" + s2);\n\n\t\t\t\t\t}",
"public DateTimeFormatterBuilder appendSecondOfMinute(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.secondOfMinute(), minDigits, 2);\r\n }",
"public void uneMinuteDePlus() {\n\t\tthis.m = m+1 > 59 ? 0 : m+1;\n\t}",
"public final flipsParser.minute_return minute() throws RecognitionException {\n flipsParser.minute_return retval = new flipsParser.minute_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal379=null;\n Token string_literal380=null;\n Token string_literal381=null;\n Token string_literal382=null;\n\n CommonTree string_literal379_tree=null;\n CommonTree string_literal380_tree=null;\n CommonTree string_literal381_tree=null;\n CommonTree string_literal382_tree=null;\n RewriteRuleTokenStream stream_257=new RewriteRuleTokenStream(adaptor,\"token 257\");\n RewriteRuleTokenStream stream_254=new RewriteRuleTokenStream(adaptor,\"token 254\");\n RewriteRuleTokenStream stream_256=new RewriteRuleTokenStream(adaptor,\"token 256\");\n RewriteRuleTokenStream stream_255=new RewriteRuleTokenStream(adaptor,\"token 255\");\n\n try {\n // flips.g:564:2: ( ( 'min' | 'mins' | 'minute' | 'minutes' ) -> MINUTE )\n // flips.g:564:4: ( 'min' | 'mins' | 'minute' | 'minutes' )\n {\n // flips.g:564:4: ( 'min' | 'mins' | 'minute' | 'minutes' )\n int alt144=4;\n switch ( input.LA(1) ) {\n case 254:\n {\n alt144=1;\n }\n break;\n case 255:\n {\n alt144=2;\n }\n break;\n case 256:\n {\n alt144=3;\n }\n break;\n case 257:\n {\n alt144=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 144, 0, input);\n\n throw nvae;\n }\n\n switch (alt144) {\n case 1 :\n // flips.g:564:5: 'min'\n {\n string_literal379=(Token)match(input,254,FOLLOW_254_in_minute3275); \n stream_254.add(string_literal379);\n\n\n }\n break;\n case 2 :\n // flips.g:564:11: 'mins'\n {\n string_literal380=(Token)match(input,255,FOLLOW_255_in_minute3277); \n stream_255.add(string_literal380);\n\n\n }\n break;\n case 3 :\n // flips.g:564:18: 'minute'\n {\n string_literal381=(Token)match(input,256,FOLLOW_256_in_minute3279); \n stream_256.add(string_literal381);\n\n\n }\n break;\n case 4 :\n // flips.g:564:27: 'minutes'\n {\n string_literal382=(Token)match(input,257,FOLLOW_257_in_minute3281); \n stream_257.add(string_literal382);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 565:2: -> MINUTE\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(MINUTE, \"MINUTE\"));\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"public String getCurrentMinutes() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(0, 0, 0, hourOfDay, minute, 0);\n Date date = calendar.getTime();\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh.mm aa\", Locale.getDefault());\n\n mBinding.time.setText(sdf.format(date));\n }",
"public void addMinutes(int minutes)\n {\n\n int h = minutes / 60;\n int m = minutes - (h * 60);\n\n hour += h;\n\n if (minute == 30 && m == 30)\n {\n minute = 0;\n hour++;\n }\n else\n {\n minute += m;\n }\n }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n et_time.setText(et_time.getText() + \"\" + hourOfDay + \":\" + minute);\n }",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"public static final Function<Date,Date> setMinute(final int value) {\r\n return new Set(Calendar.MINUTE, value);\r\n }",
"public void setMinutes(int[] minutes) {\n if (minutes == null)\n minutes = new int[] {};\n this.minutes = minutes;\n }",
"public static DateTime floorToMinute(DateTime value) {\n if (value == null) {\n return null;\n }\n return new DateTime(value.getYear(), value.getMonthOfYear(), value.getDayOfMonth(), value.getHourOfDay(), value.getMinuteOfHour(), 0, 0, value.getZone());\n }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n DateEdit.setText(DateEdit.getText() + \" -\" + hourOfDay + \":\" + minute);\n }",
"public void setCurrentTime(long currentTime) {\n this.currentTime = currentTime;\n }",
"public final native double setUTCMinutes(int minutes) /*-{\n this.setUTCMinutes(minutes);\n return this.getTime();\n }-*/;",
"public void setMonthStartTime(int nHour, int nMin)\n\t{\n\t\tsetType(AT_MONTH_START);\n\t\tsetHour(nHour);\n\t\tsetMinute(nMin);\n\t\tsetData(null);\n\t}",
"public Builder setSecondOfMinute(final int secondOfMinute) {\n this.secondOfMinute = secondOfMinute;\n return this;\n }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n String newValue = String.format(\"%d:%02d\", hourOfDay, minute);\n mPrefs.edit().putString(mPreference.getKey(), newValue).apply();\n mPreference.setSummary(DateFormatter.getSummaryTimestamp(getActivity(), newValue));\n mListener.onPreferenceChange(mPreference, newValue);\n SettingsFragment.updateAlarmManager(getActivity(), true);\n }",
"@Nonnull\n public final MutableClock plusMinutes(final int minutes) {\n getOrCreateNow().addMinutes(minutes);\n return this;\n }",
"public DateTimeFormatterBuilder appendMinuteOfHour(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfHour(), minDigits, 2);\r\n }",
"public static void setTime(Clock clock, int hour, int minute, int second) {\n\t\tif (hour < 0 || hour > 24) {\r\n\t\t\thour = 0;\r\n\t\t}\r\n\t\tif (minute < 0 || minute > 60) {\r\n\t\t\tminute = 0;\r\n\t\t}\r\n\t\tif (second < 0 || second > 60) {\r\n\t\t\tsecond = 0;\r\n\t\t}\r\n\r\n\t\tclock.setHour(hour);\r\n\t\tclock.setMinute(minute);\r\n\t\tclock.setSecond(second);\r\n\r\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 String getCurrentTimeHourMin() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public Builder byMinute(Integer... minutes) {\n\t\t\treturn byMinute(Arrays.asList(minutes));\n\t\t}",
"public void setCurrentTime(double currentTime) {\n\t\tthis.currentTime = currentTime;\n\t}",
"public void setDate(int day, int month, int year, int hour, int minute) // Maybe\n\n {\n this.day = day;\n this.month = month;\n this.year = year;\n this.hour = hour;\n this.minute = minute;\n }",
"public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }",
"public void setCurrentTime(String currentTime) {\n this.currentTime = currentTime;\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);\n calendar.set(Calendar.MINUTE, minute - 2);\n calendar.set(Calendar.SECOND, 0);\n\n startAlarm(calendar);\n }",
"@Override\n public void onTimeSet(TimePicker timePicker, int hour, int minute) {\n String str_min = \"\" + minute;\n if (minute < 10) {\n str_min = \"0\" + minute;\n }\n btnHoraCitaver.setText(hour + \":\" + str_min);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"public void setMon6059(double mon6059) {\r\n\t\tthis.mon6059 = mon6059;\r\n\t}",
"public void updateChangedTime(int hour, int minute);",
"private static String minuteInWord(final int minute) {\n\t\tif( minute == 0 ) {\n\t\t\treturn \"o' clock\";\n\t\t}else if(minute == 15 || minute == 30) {\n\t\t\treturn getFromNumber(minute).getWord();\n\t\t} else {\n\t\t\treturn getFromNumber(minute).getWord() + (minute > 1 ? \" minutes\" : \" minute\");\n\t\t}\n\t}",
"public void setTime(int hour, int minute, int second)\r\n\t{\r\n\t\tHours.setValue(hour);\r\n\t\tMinutes.setValue(minute);\r\n\t\tSeconds.setValue(second);\r\n\t\t\r\n\t\tupdateTime();\r\n\t}",
"public void setTime(int mins, int sec){\r\n this.Minutes = mins;\r\n this.Seconds = sec;\r\n }",
"private static void increment_time()\n\t{\n\t\ttime_of_day = time_of_day + 1;\n\t\tif(time_of_day>=120)\n\t\t{\n\t\t\ttime_of_day=time_of_day-120;\n\t\t}\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getStarttime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getStarttime().set(Calendar.MINUTE, minute);\n updateStartTime();\n }",
"public String getCurrentDateTimeHourMin() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public Time( int hour, int minute ) {\n this( hour * MINS_PER_HR + minute );\n }",
"public int timeToMinute (int time){\n\t\tif (time<100){\n\t\t\treturn time;\n\t\t}\n\t\telse {\n\t\t\tint hour = time/100;\n\t\t\tint min = time %100;\n\t\t\treturn hour*60 + min;\n\t\t}\n\t\t\n\t}",
"public void setSecond(int second) \n { \n if (second < 0 || second >= 60)\n throw new IllegalArgumentException(\"second must be 0-59\");\n\n this.second = second; \n }",
"private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.HOUR_OF_DAY,hourOfDay);\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.MINUTE,minute);\n\t\t\t\t\t\t\t\tcalendar.set(Calendar.SECOND,0);\n\t\t\t\t\t\t\t\tdate=new SimpleDateFormat(\"yyyy/MM/dd hh:mm\").format(calendar.getTimeInMillis());\n\t\t\t\t\t\t\t\ttv_tiem.setText(date);\n\t\t\t\t\t\t\t}",
"public void setMinutesPerDay(Number minutesPerDay)\r\n {\r\n if (minutesPerDay != null)\r\n {\r\n m_minutesPerDay = minutesPerDay;\r\n }\r\n }",
"public int getMinutes() {\n\t\treturn minutes;\n\t}",
"private int getMinute() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[1]);\n\t}",
"public int minuteOfHour() {\r\n\t\treturn mC.get(Calendar.MINUTE);\r\n\t}",
"public Builder byMinute(Collection<Integer> minutes) {\n\t\t\tbyMinute.addAll(minutes);\n\t\t\treturn this;\n\t\t}",
"public final native void setMinimumStartTime(DateTime minimumStartTime) /*-{\n this.setMinimumStartTime(minimumStartTime);\n }-*/;",
"public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }",
"public void setTime(Date time) {\r\n\t\tthis.time = time;\r\n\t}",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\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 }",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\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 }",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\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 }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }"
] |
[
"0.7519458",
"0.7508155",
"0.74747545",
"0.74678993",
"0.7459453",
"0.7438823",
"0.7076689",
"0.70466787",
"0.65864086",
"0.6505848",
"0.648862",
"0.6459823",
"0.64540505",
"0.64466023",
"0.63715464",
"0.63200396",
"0.6280991",
"0.6278151",
"0.6275926",
"0.6267221",
"0.6203933",
"0.6186932",
"0.618038",
"0.6008241",
"0.60011536",
"0.5983406",
"0.5921386",
"0.5878434",
"0.5864846",
"0.5833161",
"0.5826467",
"0.57923317",
"0.5790022",
"0.5752758",
"0.5715594",
"0.57075864",
"0.569263",
"0.56646186",
"0.5626863",
"0.5625732",
"0.56139684",
"0.55679077",
"0.5531456",
"0.5507322",
"0.5489274",
"0.5487137",
"0.5484619",
"0.5480191",
"0.5478306",
"0.54678655",
"0.54670894",
"0.5458856",
"0.54496366",
"0.5426342",
"0.539816",
"0.53901654",
"0.5378586",
"0.53783756",
"0.53778094",
"0.5374987",
"0.53268033",
"0.5313552",
"0.5308301",
"0.5289623",
"0.5273589",
"0.5264698",
"0.5260679",
"0.5257525",
"0.52470577",
"0.5232485",
"0.5230393",
"0.52254945",
"0.52253807",
"0.5219841",
"0.52072006",
"0.52060175",
"0.5198409",
"0.5186495",
"0.5185768",
"0.5171112",
"0.5163304",
"0.51489115",
"0.5138471",
"0.5137157",
"0.51320463",
"0.5121402",
"0.5121369",
"0.5121311",
"0.5117496",
"0.510516",
"0.51017976",
"0.50917566",
"0.5087142",
"0.5084636",
"0.5076523",
"0.50713044",
"0.50683796",
"0.50683796",
"0.50683796",
"0.50645477"
] |
0.6875858
|
8
|
TODO: `List events` if use batch listener TODO: process the event here
|
@KafkaListener(topics = TW_SERVICE_TEMPLATE_EXAMPLE_TOPIC, containerFactory = EXAMPLE_CUSTOM_LISTENER)
public void process(TemplateEvent event) {
log.info(event.toString());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void onEvent(EventIterator events) {\n\n }",
"public void processEvent(Event event) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public void process(WatchedEvent event) {\n\t\t\n\t}",
"public void processEvents(Events events) {\n\n log.info(\"events processed: [{}]\", events.toString());\n }",
"@Override\n public void handleEvents(List<Event> processorEvents) {\n\n }",
"void onNewEvent(Event event);",
"void subscribeToEvents(Listener listener);",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"protected void dispatchEvent(GraphEvent event) {\n synchronized (listenerConfigs) {\n Iterator<ListenerConfiguration> iter = listenerConfigs.iterator();\n while (iter.hasNext()) {\n ListenerConfiguration config = iter.next();\n GraphListener registeredListener = config.getListener();\n if (registeredListener == null) {\n iter.remove();\n continue;\n }\n if (config.getFilter().match(event.getTriple())) {\n delayedNotificator.sendEventToListener(registeredListener, event);\n }\n }\n }\n }",
"public abstract void processEvent(Object event);",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"void postEvent(final StorageManagerEvent event)\n {\n // Notify all listeners. Use a local copy of the ccList so it does not\n // change while we are using it.\n CallerContext ccList = this.ccList;\n if (ccList != null)\n {\n // Execute the runnable in each caller context in ccList\n ccList.runInContext(new Runnable()\n {\n public void run()\n {\n // Notify listeners. Use a local copy of data so that it\n // does not change while we are using it.\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 }\n });\n }\n }",
"@EventName(\"receivedMessageFromTarget\")\n EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"public void callReceiveEvent(PacketEvent event) {\n\t\tfor(PacketListener l : PACKET_IN_LISTENER) \n\t\t\tl.onEvent(event);\n\t}",
"public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }",
"private void delegate(MessageEvent event) throws IOException {\n MessageChannel channel = event.getChannel();\n BullyAlgorithmParticipantImpl.Message messageType = BullyAlgorithmParticipantImpl.Message.valueOf(event.getActionCommand());\n\n int senderProcessId = 0;\n try {\n senderProcessId = channel.readNextInt();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n switch(messageType) {\n case Election:\n self.onElectionMessage(senderProcessId);\n break;\n case Answer:\n self.onAnswerMessage(senderProcessId);\n break;\n case Victory:\n self.onVictoryMessage(senderProcessId);\n break;\n }\n }",
"private void createEvents() {\n\t}",
"public interface OnEventAvailableListener {\n\tpublic void OnEventAvailable(Message msg);\n}",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"public void fireChessEventEvent(ChessEventEvent evt){\r\n Object [] listeners = listenerList.getListenerList();\r\n for (int i = 0; i < listeners.length; i += 2){\r\n if (listeners[i] == ChessEventListener.class){\r\n ChessEventListener listener = (ChessEventListener)listeners[i+1];\r\n try{\r\n switch (evt.getID()){\r\n case ChessEventEvent.EVENT_ADDED:\r\n listener.chessEventAdded(evt);\r\n break;\r\n case ChessEventEvent.EVENT_REMOVED:\r\n listener.chessEventRemoved(evt);\r\n break;\r\n }\r\n } catch (RuntimeException e){\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }",
"public void doService() {\n EventManager eventManager = new EventManager();\n while (!queue.isEmpty()) {\n Event firstEvent = queue.poll();\n if (!(firstEvent instanceof ServerBackEvent) &&\n !(firstEvent instanceof ServerRestEvent)) {\n System.out.println(firstEvent);\n } \n Event nextEvent = eventManager.getNext(servers, gen, firstEvent, stats, probability);\n if (nextEvent != null) {\n queue.add(nextEvent);\n }\n }\n System.out.println(stats);\n \n\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"protected abstract void collectFires(Collection<Object> evAndListeners);",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n public void ProcessEvent(XMSEvent evt){\n FunctionLogger logger=new FunctionLogger(\"ProcessEvent\",this,myLogger);\n logger.args(evt);\n if(evt.getCall() == myInboundCall){\n ProcessInboundEvent(evt);\n } else if(evt.getCall() == myOutboundCall){\n ProcessOutboundEvent(evt);\n } else{\n logger.error(\"Event Received for an unknown Call. Ignoring\");\n }\n \n }",
"@Override\r\n\tpublic void addJobEventListener(JobEventListener eventListener) {\n\r\n\t}",
"com.google.speech.logs.timeline.InputEvent.Event getEvent();",
"@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}",
"public interface EventListener {\n\n /**\n * Called when an event (function call) finishes successfully in MockRestRequest. Does *not* trigger if the event\n * (function) fails.\n * @param mockRestRequest the {@link MockRestRequest} where the event occurred.\n * @param event the {@link Event} that occurred.\n */\n public void onEventComplete(MockRestRequest mockRestRequest, Event event);\n }",
"void onBusEvent(Event event);",
"public interface EventListener {\n\n\t/**\n\t * Called when a task event has occurred.\n\t * \n\t * @param event\n\t * the task event which has occurred\n\t */\n\tvoid eventOccurred(AbstractTaskEvent event);\n}",
"@Subscribe\n public void onEvent(Object event) {\n }",
"@Subscribe\n public void onEvent(Object event) {\n }",
"public synchronized void triggerEvents(E e){\n Iterator<T> iterator = callbackList.listIterator();\n while(iterator.hasNext()){\n iterator.next().onEvent(e);\n }\n }",
"private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}",
"public abstract void onEvent(T event);",
"EventType getEvent();",
"public void listReceivedEvents() {\r\n for (Event event : receivedEvents) {\r\n System.out.print(event);\r\n }\r\n }",
"public interface MonitoringEventListener {\n\n /**\n * Callback for received STDOUT lines.\n * \n * @param line stdout line\n */\n void appendStdout(String line);\n\n /**\n * Callback for received STDERR lines.\n * \n * @param line stderr line\n */\n void appendStderr(String line);\n\n /**\n * Callback for additional user information lines (validation, progress, ...).\n * \n * @param line information line\n */\n void appendUserInformation(String line);\n}",
"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}",
"@EventName(\"targetInfoChanged\")\n EventListener onTargetInfoChanged(EventHandler<TargetInfoChanged> eventListener);",
"private void execute() {\n this.waitForFinish();\n this.stop();\n logger.info(\"Finished eventing test {}\", this.getClass().getSimpleName());\n Event currentEvent = null;\n Map<Long, Integer> orderVerifyMap = new HashMap<Long, Integer>();\n while((currentEvent =eventRecievedList.poll()) != null)\n {\n \tInteger index = (Integer)currentEvent.getProperty(\"index\");\n \tLong threadId = (Long)currentEvent.getProperty(\"thread\");\n\n \tif(index != null && threadId != null){\n \t\tInteger previousIndex = orderVerifyMap.get(threadId);\n \t\tif(previousIndex == null)\n \t\t{\n \t\t\tif(index != 0)\n \t\t\t{\n \t\t\t\tSystem.out.println(\"Event \" + index + \" recieved first for thread \" + threadId);\n \t\t\t}\n \t\t\torderVerifyMap.put(threadId, index);\n \t\t}\n \t\telse\n \t\t{\n \t\t\tif(previousIndex > index)\n \t\t\t{\n \t\t\t\tSystem.out.println(\"Events for thread \" + threadId + \" out of order. Event \" + previousIndex + \" recieved before \" + index);\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\torderVerifyMap.put(threadId, index);\n \t\t\t}\n \t\t}\n \t}\n }\n try {\n Thread.sleep(15 * 1000);\n } catch (final InterruptedException ie) {\n // ignore\n }\n }",
"@Override\n public void onEvent(Event event) {\n if (event.getClass() != MessageReceivedEvent.class)\n return;\n MessageReceivedEvent msgEvent = (MessageReceivedEvent) event;\n\n String threadName = Thread.currentThread().getName();\n\n for (Command command : commands) {\n if (!command.match(msgEvent))\n continue;\n\n LOG.info(\"Dispatching event to command {}\", command);\n\n // Metrics\n METRICS_RUNNING.labels(command.toString(), threadName)\n .inc();\n Histogram.Timer timer = METRICS_LATENCY.labels(command.toString(), threadName)\n .startTimer();\n\n // Invoke\n Object ret = null;\n try {\n ret = command.getMethod().invoke(command.getInstance(), event);\n } catch (InvocationTargetException ex) {\n // Exception in listener's code\n //todo better logging\n LOG.error(ex.getTargetException());\n continue;\n } catch (IllegalAccessException ex) {\n // Should never happen\n throw new RuntimeException(ex);\n } finally {\n // Metrics\n Runnable endMetrics = () -> {\n LOG.debug(\"Finished dispatching event for {}\", command);\n METRICS_RUNNING.labels(command.toString(), threadName)\n .dec();\n timer.observeDuration();\n };\n\n if (ret instanceof CompletionStage) {\n CompletionStage<?> future = (CompletionStage<?>) ret;\n future.thenRunAsync(endMetrics);\n } else {\n endMetrics.run();\n }\n }\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}",
"private void runPacketEvent(ClientPacketEvent l) {\n for (ClientConnectionListener l2 : listeners) {\n l2.clientPacketEvent(l);\n }\n }",
"public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }",
"public void onEvent(TCPReceiverThread receiverThread, Event event) throws IOException;",
"private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }",
"protected void notifyListeners(BAEvent event) {\n \t\ttmc.callListeners(event); /// Call our listeners listening to only this match\n \t\tevent.callEvent(); /// Call bukkit listeners for this event\n \t}",
"public void processEvent(GovernanceEngineEvent event)\n {\n if (listener != null)\n {\n // todo\n }\n }",
"public interface WFEventListener extends ActivityInsEventListener, ProcessInsEventListener {\r\n\r\n /**\r\n * called when a timer event is fired;\r\n */\r\n public void onTimerEvent();\r\n\r\n public void addECAList(ECAList list);\r\n\r\n}",
"@PostConstruct\n public void listenToEvents() {\n kafkaReceiver\n .receive()\n .subscribe(a -> log.info(\"Number of events received {}\", counter.incrementAndGet()));\n }",
"private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}",
"public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}",
"public List<String> listeners();",
"@Override\n public void eventEpoch(int eventNum, int val, long epoch) {\n }",
"@EncoderThread\n protected void onEvent(@NonNull String event, @Nullable Object data) {}",
"@Test\n public void testAddEventListener() {\n List<SimulatorEventListener> eventListeners = eventDispatcher.getSimulatorEventListeners();\n assertTrue(eventListeners.size() == 0);\n SimulatorEventListener listener = new SimulatorEventListener() {\n\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n\n }\n };\n eventDispatcher.addSimulatorEventListener(listener);\n assertTrue(eventListeners.size() == 1);\n }",
"public void startOldEvent() {\n // JCuda.cudaEventRecord(oldEvent, oldStream);\n }",
"public interface CommonEventListener extends EventListener {\n\n\n default boolean filterProject(byte[] data, int project, int clazz, int cmd) {\n\n return data[7] == project && data[8] == clazz && data[9] == cmd;\n }\n}",
"public synchronized void dispatchEvent(Event event) {\n // Loop through all registered Listener\n \n for (Entry<Listener, HashMap<Class, Collection<Method>>> eventMethodMap : permanentEventMethodCache.entrySet()) {\n // Loop through all methods accepting this class\n HashMap<Class, Collection<Method>> listenerMethods = eventMethodMap.getValue();\n if (!listenerMethods.containsKey(event.getClass())) {\n continue;\n }\n for (Method method : listenerMethods.get(event.getClass())) {\n try {\n method.invoke(eventMethodMap.getKey(), event);\n } catch (Exception e) {\n System.err.println(\"Could not invoke event handler!\");\n e.printStackTrace(System.err);\n }\n }\n }\n }",
"private static void handleEvent(Object listener, Object event) {\n RxAnnotatedHandlerFinder.handleEvent(listener, event);\n }",
"public void processOffers(List<OfferPublishedEvent> events) {\n }",
"protected void ProcessOutboundEvent(XMSEvent evt){\n switch(evt.getEventType()){\n case CALL_CONNECTED:\n System.out.println(\"***** Outbound call connected *****\");\n SetOutboundCallState(OutboundCallStates.CALLCONNECTED);\n ConnectCalls();\n break;\n case CALL_RECORD_END:\n \n break; \n case CALL_SENDDTMF_END:\n System.out.println(\"***** END_DTMF *****\");\n System.out.println(\"***** ReJoin Calls *****\");\n ConnectCalls();\n \n break; \n case CALL_DTMF:\n \n System.out.println(\"***** outbound CALL_DTMF *****\");\n System.out.println(\"data=\" + evt.getData());\n myInboundCall.SendInfo(\"DTMF_\" + evt.getData());\n \n break; \n case CALL_INFO:\n \n System.out.println(\"***** Outbound CALL_INFO *****\");\n System.out.println(\"data=\" + evt.getData());\n myInboundCall.SendInfo(evt.getData());\n\n break;\n case CALL_PLAY_END:\n //May need to do something here\n break;\n case CALL_DISCONNECTED: // The far end hung up will simply wait for the media\n System.out.println(\"***** outbound CALL_Disconnected *****\");\n DisconnectCalls();\n break;\n default:\n System.out.println(\"Unknown Event Type!!\");\n }\n }",
"@Override\n\t\t\tpublic void onEvent(ObjectEvent event) {\n\t\t\t\t\n\t\t\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\t\t\tif(rankInfo!=null){\n\t\t\t\t\tgetTask().updateProcess((int)rankInfo.getSoul());\n\t\t\t\t}\n\t\t\n\t\t\t\t\n\t\t\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate void processEvent(ActionEvent e) {\n\t\tArrayList<ActionListener> list;\n\n\t\tsynchronized (this) {\n\t\t\tif (actionListenerList == null)\n\t\t\t\treturn;\n\t\t\tlist = (ArrayList<ActionListener>) actionListenerList.clone();\n\t\t}\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tActionListener listener = list.get(i);\n\t\t\tlistener.actionPerformed(e);\n\t\t}\n\t}",
"public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }",
"public void handleEvent(Event event) {\n\t\t\t\t}",
"public void callSendEvent(PacketEvent event) {\n\t\tfor(PacketListener l : PACKET_OUT_LISTENER) \n\t\t\tl.onEvent(event);\n\t}",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"public interface ImageProcessListener extends EventListener, Serializable {\n\n void process(ImageProcessEvent event);\n}",
"public void invokeEvents() {\n\t\tIntent i = alertMe.createIntentFromSession();\n\t\ti.setClass(this, AlertMeEventHistory.class);\n\t\ti.putExtra(AlertMeConstants.INTENT_REQUEST_KEY, AlertMeConstants.INVOKE_HISTORY);\n startActivityForResult(i, AlertMeConstants.INVOKE_HISTORY);\n }",
"public interface ChatxEventListener extends EventListener {\n public void OnChatEvtNewMsg(String msg);\n public void OnChatEvtConnectServerFailed();\n public void OnChatActivityQuit();\n public void OnChatEvtConnected();\n public void OnChatEvtDisConnected();\n public void OnNoAgents(String reason);\n\n public void OnVideoGuestJoin(String vendor,String param1,String param2,String param3,String param4 );\n public void OnVideoQuit();\n}",
"@Override\n public synchronized void processEvent(GovernanceEngineEvent event)\n {\n if ((listenerMap != null) && (event != null))\n {\n for (String connectorId : listenerMap.keySet())\n {\n if (connectorId != null)\n {\n WatchdogListener watchdogListener = listenerMap.get(connectorId);\n\n if (watchdogListener != null)\n {\n watchdogListener.processEvent(event);\n }\n }\n }\n }\n }",
"public void onDocumentoSubidoEventListener(DocumentoSubidoEvent event){}",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"public interface SelectEventFragmentEventsListener {\n void eventIdConfirmed(String eventId) throws IncompleteDataException;\n}",
"public synchronized void dispatch(IpcEvent event) {\n\t\tfor (IIpcEventListener listener : listeners) {\n\t\t\tlistener.handleEvent(event);\n\t\t}\n\t}",
"@Override\n\tprotected void processPostUpdateStream(KStream<String, Event> events) {\n\n\t}",
"public interface ISemanticEventListener {\n\n\t/**\n\t * Notifies this listener that a semantic event has happened.\n\t * @param event - the semantic event\n\t */\n\tvoid notify(IUISemanticEvent event);\n \n\t////////////////////////////////////////////////////////////////////////////\n\t//\n\t// Meta events\n\t//\n\t////////////////////////////////////////////////////////////////////////////\n\n\t//TODO: maybe these meta-notifications should not have there own methods?\n\t\n /**\n * Notifies this listener that event recording has started.\n */\n void notifyStart();\n \n /**\n * Notifies this listener that event recording has stopped.\n */\n void notifyStop();\n\n /**\n * Notifies this listener that the event stream is to be written.\n */\n void notifyWrite();\n \n /**\n * Notifies this listener that root display has been disposed (effectively, recording is terminated).\n */ \n void notifyDispose();\n\n\t/**\n\t * Notifies this listener that the event stream is to be flushed and restarted.\n\t */\n\tvoid notifyRestart();\n\n\t/**\n\t * Notifies this listener that the event stream is to be paused.\n\t */\n\tvoid notifyPause();\n\t\n\t/**\n\t * Notifies this listener that an error occured during recording.\n\t * @param event - the error event\n\t */\n\tvoid notifyError(RecorderErrorEvent event);\n\n\t/**\n\t * Notifies this listener that a trace event was sent during recording.\n\t * @param event - the trace event\n\t */\n\tvoid notifyTrace(RecorderTraceEvent event);\n\n\t/**\n\t * Notifies this listener that a hook added vent was sent during recording.\n\t * @param hookName \n\t */\n\tvoid notifyAssertionHookAdded(String hookName);\n\t\n\t/**\n\t * Notifies that Recorder Controller was started and listens on specific port \n\t * @param port the port number that this controller started listen on\n\t */\n\tpublic void notifyControllerStart(int port);\n\t\n\t/**\n\t * Notifies this listener that Display instance was not found in the application process\n\t */\n\tpublic void notifyDisplayNotFound();\n\n\t/**\n\t * Notifies the listener that spy mode has been toggled.\n\t */\n\tvoid notifySpyModeToggle();\n}",
"void dispatchEvent(DistributedEvent event);",
"public void handle(Object e){\n\t\tif(e.getClass().equals(GetResultRequestEvent.class)){\n\t\t\tgetResults((GetResultRequestEvent)e);\n\t\t}else if(e.getClass().equals(RefreshAllDataEvent.class)){\n\t\t\ttf.getData(app);\n\t\t}else if(e.getClass().equals(ExportDataEvent.class)){\n\t\t\ttf.exportItemDB();\n\t\t}\n\t}",
"public interface EventListener {\n void onMessage(GenericRequest message);\n}",
"@Test\n public void createManyEventsTest() {\n int numEvents = 8;\n Set<Long> eventSet = new HashSet<>();\n try (Context context = GrCUDATestUtil.buildTestContext().build()) {\n Value createEvent = context.eval(\"grcuda\", \"cudaEventCreate\");\n IntStream.range(0, numEvents).forEach(i -> {\n Value event = createEvent.execute();\n eventSet.add(event.asNativePointer());\n assertNotNull(event);\n assertTrue(event.isNativePointer());\n });\n assertEquals(numEvents, eventSet.size());\n }\n }",
"@Override\n\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\tInputEvent inputEvent = (InputEvent) event;\n\t\t\tString input = inputEvent.getValue();\n\t\t\tloadData(input);\n\t\t}",
"public void onEvent(LMAXEvent event, long sequence, boolean endOfBatch) {\n int pos = 1;\n if (event.getReplicatedMessage() != null) {\n pos++;\n }\n if (event.getJournalMessage() != null) {\n pos++;\n }\n // modify the event in place\n //\tOK because we know that no other sequencial handler is using this field\n event.setUnmarshalledMessage(\"Unmarshalled. Pos: \" + pos);\n }",
"private void notifyListeners() \n\t{\n\t\tSystem.out.println(\"Event Source: Notifying all listeners\");\n\n\t\tfor(IListener listener : listeners)\n\t\t{\n\t\t\tlistener.eventOccured(new Event(this));//passing and object of source\n\t\t}\n\n\t}",
"public void onEvent(LinkEvent event, long sequence, boolean endOfBatch) throws IOException, ClassNotFoundException, InterruptedException\n {\n\n\n if ((sequence % numberOfConsumers) == ordinal) {\n\n\n LinkDataRaw newLink = (LinkDataRaw) deserialize(event.get());\n\n disruptorLinksLatch.countDown();\n\n\n //bucket.add(event.get());\n\n if (endOfBatch) {\n //logger.info(\"LkHndlr1 count: \" + counter++);\n //this desearialize will slow things down.\n //LinkDataRaw newLink = (LinkDataRaw) deserialize(event.get());\n //logger.info(\"LinkEventHandler endOfBatch. obj speed limit: \" + newLink.getSpeedLimit());\n //logger.info(\"LinkEventHandler endOfBatch. counter: \" + counter);\n\n// ListIterator<byte[]> iter = bucket.listIterator();\n// while (iter.hasNext()){\n// logger.info(\"LH1\" + iter.next());\n// counter++;\n// disruptorLinksLatch.countDown();\n// }\n// bucket.clear();\n\n }\n }\n\n }",
"void onEvent (ZyniEvent event, Object ... params);",
"@Override\n public void handle(Event event) {\n }",
"public interface OnChatEvents {\n void onSendChatMessage(String time, String displayName, String buddyPicture, String message, String to);\n void onMessageRead();\n void onSendFile(String time, String displayName, String buddyPicture, String message, long size, String name, String mime, String to);\n\n void onDownload(int position, String id, FileInfo fileinfo);\n }",
"public String getEventName();"
] |
[
"0.6756034",
"0.6718437",
"0.67025965",
"0.66970444",
"0.6643415",
"0.6611045",
"0.64395165",
"0.63940966",
"0.6325205",
"0.6317102",
"0.63107246",
"0.62876856",
"0.62657815",
"0.62387145",
"0.62184465",
"0.62184465",
"0.62184465",
"0.62184465",
"0.62184465",
"0.6202352",
"0.61789054",
"0.61637676",
"0.6150028",
"0.61416227",
"0.6132458",
"0.6124566",
"0.6121077",
"0.61190516",
"0.61190516",
"0.60780483",
"0.60779047",
"0.60779047",
"0.60779047",
"0.6075727",
"0.60625774",
"0.6058243",
"0.60566",
"0.6032867",
"0.6032212",
"0.6010135",
"0.60084593",
"0.60084593",
"0.60032773",
"0.599282",
"0.59872824",
"0.5986662",
"0.5981359",
"0.59672403",
"0.5959174",
"0.5949416",
"0.594443",
"0.5942075",
"0.59356874",
"0.5934516",
"0.5923351",
"0.5913185",
"0.5902372",
"0.5897788",
"0.58960325",
"0.58804363",
"0.5877773",
"0.58776724",
"0.5875975",
"0.5867316",
"0.58609945",
"0.5858726",
"0.58548564",
"0.5854376",
"0.5853347",
"0.5853175",
"0.58483636",
"0.5823895",
"0.58217674",
"0.58202076",
"0.582019",
"0.58138025",
"0.58058274",
"0.58048075",
"0.5802837",
"0.5800512",
"0.5796508",
"0.57925737",
"0.57901907",
"0.57896346",
"0.5787712",
"0.57871324",
"0.57827276",
"0.5768493",
"0.57661057",
"0.57649726",
"0.5761829",
"0.5752645",
"0.5750727",
"0.57490194",
"0.57454354",
"0.57399935",
"0.57386076",
"0.57317966",
"0.5728046",
"0.5725646",
"0.5723578"
] |
0.0
|
-1
|
Constructs an entity with default values.
|
Creature()
{
super();
this.glyph = new Glyph('c', TextColor.ANSI.WHITE, TextColor.ANSI.BLACK);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }",
"public NamedEntity() { this(\"\", \"\"); }",
"public static BII createEntity() {\n BII bII = new BII()\n .name(DEFAULT_NAME)\n .type(DEFAULT_TYPE)\n .biiId(DEFAULT_BII_ID)\n .detectionTimestamp(DEFAULT_DETECTION_TIMESTAMP)\n .sourceId(DEFAULT_SOURCE_ID)\n .detectionSystemName(DEFAULT_DETECTION_SYSTEM_NAME)\n .detectedValue(DEFAULT_DETECTED_VALUE)\n .detectionContext(DEFAULT_DETECTION_CONTEXT)\n .etc(DEFAULT_ETC)\n .etcetc(DEFAULT_ETCETC);\n return bII;\n }",
"public static AnnotationType createEntity() {\n return new AnnotationType()\n .name(DEFAULT_NAME)\n .label(DEFAULT_LABEL)\n .description(DEFAULT_DESCRIPTION)\n .emotional(DEFAULT_EMOTIONAL)\n .weight(DEFAULT_WEIGHT)\n .color(DEFAULT_COLOR)\n .projectId(DEFAULT_PROJECT_ID);\n }",
"public static DataModel createEntity(EntityManager em) {\n DataModel dataModel = new DataModel()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .dataFormat(DEFAULT_DATA_FORMAT)\n .maxLength(DEFAULT_MAX_LENGTH)\n .precision(DEFAULT_PRECISION)\n .modelValues(DEFAULT_MODEL_VALUES);\n return dataModel;\n }",
"public AbstractEntity() {\r\n\t}",
"@Override\r\n\tpublic Item constructItem() {\r\n try {\r\n @SuppressWarnings(\"unchecked\")\r\n T entity = (T) entityClass.newInstance();\r\n BeanInfo info = Introspector.getBeanInfo(entityClass);\r\n for (PropertyDescriptor pd : info.getPropertyDescriptors()) {\r\n for (Object propertyId : queryDefinition.getPropertyIds()) {\r\n if (pd.getName().equals(propertyId)) {\r\n Method writeMethod = pd.getWriteMethod();\r\n Object propertyDefaultValue = queryDefinition.getPropertyDefaultValue(propertyId);\r\n writeMethod.invoke(entity, propertyDefaultValue);\r\n }\r\n }\r\n }\r\n return toItem(entity);\r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Error in bean construction or property population with default values.\", e);\r\n }\r\n }",
"public ExpertiseEntity() {\n }",
"public NamedEntity() {}",
"public static Bounty createEntity() {\n Bounty bounty = new Bounty()\n// .status(DEFAULT_STATUS)\n// .issueUrl(DEFAULT_URL)\n .amount(DEFAULT_AMOUNT)\n// .experience(DEFAULT_EXPERIENCE)\n// .commitment(DEFAULT_COMMITMENT)\n// .type(DEFAULT_TYPE)\n// .category(DEFAULT_CATEGORY)\n// .keywords(DEFAULT_KEYWORDS)\n .permission(DEFAULT_PERMISSION)\n .expiryDate(DEFAULT_EXPIRES);\n return bounty;\n }",
"public SurveyEntity(){\n id = -1;\n description = \"No Description Available\";\n date_created = Calendar.getInstance();\n is_default = 0;\n }",
"Entity createEntity();",
"public static Attribute createEntity(EntityManager em) {\n Attribute attribute = new Attribute()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .showOrder(DEFAULT_SHOW_ORDER)\n .active(DEFAULT_ACTIVE);\n return attribute;\n }",
"TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }",
"public static CommonTableField createEntity() {\n CommonTableField commonTableField = new CommonTableField()\n .title(DEFAULT_TITLE)\n .entityFieldName(DEFAULT_ENTITY_FIELD_NAME)\n .type(DEFAULT_TYPE)\n .tableColumnName(DEFAULT_TABLE_COLUMN_NAME)\n .columnWidth(DEFAULT_COLUMN_WIDTH)\n .order(DEFAULT_ORDER)\n .editInList(DEFAULT_EDIT_IN_LIST)\n .hideInList(DEFAULT_HIDE_IN_LIST)\n .hideInForm(DEFAULT_HIDE_IN_FORM)\n .enableFilter(DEFAULT_ENABLE_FILTER)\n .validateRules(DEFAULT_VALIDATE_RULES)\n .showInFilterTree(DEFAULT_SHOW_IN_FILTER_TREE)\n .fixed(DEFAULT_FIXED)\n .sortable(DEFAULT_SORTABLE)\n .treeIndicator(DEFAULT_TREE_INDICATOR)\n .clientReadOnly(DEFAULT_CLIENT_READ_ONLY)\n .fieldValues(DEFAULT_FIELD_VALUES)\n .notNull(DEFAULT_NOT_NULL)\n .system(DEFAULT_SYSTEM)\n .help(DEFAULT_HELP)\n .fontColor(DEFAULT_FONT_COLOR)\n .backgroundColor(DEFAULT_BACKGROUND_COLOR)\n .nullHideInForm(DEFAULT_NULL_HIDE_IN_FORM)\n .endUsed(DEFAULT_END_USED)\n .options(DEFAULT_OPTIONS);\n return commonTableField;\n }",
"public static Ailment createEntity(EntityManager em) {\n Ailment ailment = new Ailment()\n .name(DEFAULT_NAME)\n .symptoms(DEFAULT_SYMPTOMS)\n .treatments(DEFAULT_TREATMENTS);\n return ailment;\n }",
"public UserEntity() {\n\t\tsuper();\n\t}",
"public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }",
"public EntityPropertyBean() {}",
"public static QueryData createEntity(EntityManager em) {\n QueryData queryData = new QueryData()\n .dataValue(DEFAULT_DATA_VALUE);\n return queryData;\n }",
"public static Model createEntity(EntityManager em) {\n\t\tModel model = new Model().name(DEFAULT_NAME).type(DEFAULT_TYPE).algorithm(DEFAULT_ALGORITHM)\n\t\t\t\t.status(DEFAULT_STATUS).owner(DEFAULT_OWNER).performanceMetrics(DEFAULT_PERFORMANCE_METRICS)\n\t\t\t\t.modelLocation(DEFAULT_MODEL_LOCATION).featureSignificance(DEFAULT_FEATURE_SIGNIFICANCE)\n\t\t\t\t.builderConfig(DEFAULT_BUILDER_CONFIG).createdDate(DEFAULT_CREATED_DATE)\n\t\t\t\t.deployedDate(DEFAULT_DEPLOYED_DATE).trainingDataset(DEFAULT_TRAINING_DATASET)\n .library(DEFAULT_LIBRARY).project(DEFAULT_PROJECT).version(DEFAULT_VERSION);\n\t\treturn model;\n\t}",
"DefaultAttribute()\n {\n }",
"public static Personel createEntity(EntityManager em) {\n Personel personel = new Personel()\n .fistname(DEFAULT_FISTNAME)\n .lastname(DEFAULT_LASTNAME)\n .sexe(DEFAULT_SEXE);\n return personel;\n }",
"public static Demand createEntity(EntityManager em) {\n Demand demand = new Demand()\n .name(DEFAULT_NAME)\n .value(DEFAULT_VALUE);\n return demand;\n }",
"public static Cnae createEntity(EntityManager em) {\n Cnae cnae = new Cnae()\n .level(DEFAULT_LEVEL)\n .cod(DEFAULT_COD)\n .description(DEFAULT_DESCRIPTION);\n return cnae;\n }",
"public static Article createEntity(EntityManager em) {\n Article article = new Article()\n .name(DEFAULT_NAME)\n .content(DEFAULT_CONTENT)\n .creationDate(DEFAULT_CREATION_DATE)\n .modificationDate(DEFAULT_MODIFICATION_DATE);\n return article;\n }",
"public static Posicion createEntity(EntityManager em) {\n Posicion posicion = new Posicion()\n .titulo(DEFAULT_TITULO)\n .descripcion(DEFAULT_DESCRIPCION)\n .numeroPuestos(DEFAULT_NUMERO_PUESTOS)\n .salarioMinimo(DEFAULT_SALARIO_MINIMO)\n .salarioMaximo(DEFAULT_SALARIO_MAXIMO)\n .fechaAlta(DEFAULT_FECHA_ALTA)\n .fechaNecesidad(DEFAULT_FECHA_NECESIDAD);\n return posicion;\n }",
"public EntityID() {\n }",
"public static Info createEntity(EntityManager em) {\n Info info = new Info()\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .etablissement(DEFAULT_ETABLISSEMENT);\n return info;\n }",
"public MapEntity() {\n\t}",
"@Override\n\tpublic void initEntity() {\n\n\t}",
"public void initDefaultValues() {\n }",
"public static Source createEntity(EntityManager em) {\n Source source = new Source()\n .idGloden(DEFAULT_ID_GLODEN)\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .updateDate(DEFAULT_UPDATE_DATE)\n .creationDate(DEFAULT_CREATION_DATE);\n return source;\n }",
"public static Key createEntity(EntityManager em) {\n Key key = new Key()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n return key;\n }",
"public static Points createEntity() {\n Points points = new Points()\n .date(DEFAULT_DATE)\n .exercise(DEFAULT_EXERCISE)\n .meals(DEFAULT_MEALS)\n .alcohol(DEFAULT_ALCOHOL)\n .notes(DEFAULT_NOTES);\n return points;\n }",
"protected abstract ENTITY createEntity();",
"public static PropertyMstBean createEntity(EntityManager em) {\n PropertyMstBean propertyMstBean = new PropertyMstBean()\n .name(DEFAULT_NAME)\n .modifiedBy(DEFAULT_MODIFIED_BY);\n return propertyMstBean;\n }",
"public static Ordre createEntity(EntityManager em) {\n Ordre ordre = new Ordre()\n .name(DEFAULT_NAME)\n .status(DEFAULT_STATUS)\n .price(DEFAULT_PRICE)\n .creationDate(DEFAULT_CREATION_DATE);\n return ordre;\n }",
"public Entity() throws Throwable {\r\n\t\tThingsException.softwareProblem(\"Entry() instantiated with default constructor.\");\r\n\t}",
"T createEntity();",
"public static Book createEntity(EntityManager em) {\n Book book = new Book()\n .bookId(DEFAULT_BOOK_ID)\n .bookName(DEFAULT_BOOK_NAME)\n .bookPrice(DEFAULT_BOOK_PRICE)\n .publisher(DEFAULT_PUBLISHER)\n .language(DEFAULT_LANGUAGE)\n .isbn10(DEFAULT_ISBN_10)\n .isbn13(DEFAULT_ISBN_13)\n .productDimensions(DEFAULT_PRODUCT_DIMENSIONS)\n .shippingWeight(DEFAULT_SHIPPING_WEIGHT)\n .ranking(DEFAULT_RANKING)\n .averageRanking(DEFAULT_AVERAGE_RANKING)\n .author(DEFAULT_AUTHOR)\n .subject(DEFAULT_SUBJECT)\n .bookDescription(DEFAULT_BOOK_DESCRIPTION);\n return book;\n }",
"public NamedEntity(String name) { this(name, \"\"); }",
"public static BacSi createEntity() {\n BacSi bacSi = new BacSi()\n .mabacsi(DEFAULT_MABACSI)\n .hoten(DEFAULT_HOTEN)\n .gioitinh(DEFAULT_GIOITINH)\n .ngaysinh(DEFAULT_NGAYSINH)\n .noilamviec(DEFAULT_NOILAMVIEC)\n .chuyenkhoa(DEFAULT_CHUYENKHOA)\n .giayphephanhnghe(DEFAULT_GIAYPHEPHANHNGHE);\n return bacSi;\n }",
"public ClientDetailsEntity() {\n\t\t\n\t}",
"public AlarmEntity(){}",
"public Entity getEntity(Entity defaultVal) {\n return get(ContentType.EntityType, defaultVal);\n }",
"public DefaultObjectModel ()\n {\n this (new Schema ());\n }",
"public static Dishestype createEntity(EntityManager em) {\n Dishestype dishestype = new Dishestype()\n .name(DEFAULT_NAME)\n .state(DEFAULT_STATE)\n .creator(DEFAULT_CREATOR)\n .createdate(DEFAULT_CREATEDATE)\n .modifier(DEFAULT_MODIFIER)\n .modifierdate(DEFAULT_MODIFIERDATE)\n .modifiernum(DEFAULT_MODIFIERNUM)\n .logicdelete(DEFAULT_LOGICDELETE)\n .other(DEFAULT_OTHER);\n return dishestype;\n }",
"public static Properties createEntity(EntityManager em) {\n Properties properties = new Properties().name(DEFAULT_NAME).isActive(DEFAULT_IS_ACTIVE);\n return properties;\n }",
"public static Annotation createEntity(EntityManager em) {\n Annotation annotation = new Annotation()\n .start(DEFAULT_START)\n .end(DEFAULT_END)\n .annotationText(DEFAULT_ANNOTATION_TEXT);\n return annotation;\n }",
"public ExcursionEntity() {\n\t}",
"public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); // clear value\n //super.setRuntimeDefaultValues();\n }",
"public static Bien createEntity(EntityManager em) {\n Bien bien = new Bien()\n .adresse(DEFAULT_ADRESSE)\n .npa(DEFAULT_NPA)\n .localite(DEFAULT_LOCALITE)\n .anneeConstruction(DEFAULT_ANNEE_CONSTRUCTION)\n .nbPieces(DEFAULT_NB_PIECES)\n .description(DEFAULT_DESCRIPTION)\n .photo(DEFAULT_PHOTO)\n .photoContentType(DEFAULT_PHOTO_CONTENT_TYPE)\n .prix(DEFAULT_PRIX);\n return bien;\n }",
"public static Author createEntity(EntityManager em) {\n Author author = new Author()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME);\n return author;\n }",
"public static Poen createEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(DEFAULT_TIP);\n return poen;\n }",
"public static GeoCoordinate createEntity(EntityManager em) {\n GeoCoordinate geoCoordinate = new GeoCoordinate()\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON);\n return geoCoordinate;\n }",
"public static Edition createEntity(EntityManager em) {\n Edition edition = new Edition()\n .name(DEFAULT_NAME)\n .launchDate(DEFAULT_LAUNCH_DATE);\n return edition;\n }",
"protected Entity() {\n UID = GEN_COUNT;\n GEN_COUNT++;\n }",
"public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }",
"public static Cat createEntity(EntityManager em) {\n Cat cat = new Cat()\n .name(DEFAULT_NAME)\n .price(DEFAULT_PRICE)\n .author(DEFAULT_AUTHOR);\n return cat;\n }",
"public static Articulo createEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(DEFAULT_TITULO)\n .contenido(DEFAULT_CONTENIDO)\n .fechaCreacion(DEFAULT_FECHA_CREACION);\n return articulo;\n }",
"public Entity() {\n this.position = new Point(0,0);\n realX=0;\n realY=0;\n }",
"public Entity5Builder() {\r\n entity5 = new Entity5();\r\n }",
"public AccountTypeEntity() { }",
"public static DanceClass createEntity(EntityManager em) {\n DanceClass danceClass = new DanceClass();\n danceClass.setName(DEFAULT_NAME);\n danceClass.setDescription(DEFAULT_DESCRIPTION);\n danceClass.setSymbol(DEFAULT_SYMBOL);\n danceClass.setWeight(DEFAULT_WEIGHT);\n danceClass.setTransferScore(DEFAULT_TRANSFER_SCORE);\n return danceClass;\n }",
"public Entity(String name)\n {\n super(name);\n isAs = Lists.newArrayList();\n }",
"public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }",
"public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }",
"public static CourtType createEntity(EntityManager em) {\n CourtType courtType = new CourtType()\n .type(DEFAULT_TYPE);\n return courtType;\n }",
"public MessageEntity() {\n }",
"@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}",
"com.google.protobuf.Value getDefaultValue();",
"public <T> T initialize(T entity);",
"public static ConceptDataType createEntity(EntityManager em) {\n ConceptDataType conceptDataType = new ConceptDataType()\n .uuid(DEFAULT_UUID)\n .name(DEFAULT_NAME)\n .hl7Abbreviation(DEFAULT_HL_7_ABBREVIATION)\n .description(DEFAULT_DESCRIPTION);\n return conceptDataType;\n }",
"public static CustStatistics createEntity(EntityManager em) {\n CustStatistics custStatistics = new CustStatistics()\n .name(DEFAULT_NAME)\n .value(DEFAULT_VALUE)\n .valuetype(DEFAULT_VALUETYPE)\n .customerId(DEFAULT_CUSTOMER_ID);\n return custStatistics;\n }",
"public Object getDefaultValue();",
"public Object getDefaultValue();",
"public PedometerEntity() {\n }",
"public DefaultEntity(Node<A> node) {\r\n\t\tsuper(node);\r\n\t\tevents = new Vector<Event<A>>();\r\n\t}",
"@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}",
"public void initInstance(EntityEnterpriseContext ctx)\n {\n if(!readOnly)\n {\n Object value;\n if(fieldType == boolean.class)\n value = Boolean.FALSE;\n else if(fieldType == byte.class)\n value = new Byte((byte)0);\n else if(fieldType == int.class)\n value = new Integer(0);\n else if(fieldType == long.class)\n value = new Long(0L);\n else if(fieldType == short.class)\n value = new Short((short)0);\n else if(fieldType == char.class)\n value = new Character('\\u0000');\n else if(fieldType == double.class)\n value = new Double(0d);\n else if(fieldType == float.class)\n value = new Float(0f);\n else\n value = null;\n setInstanceValue(ctx, value);\n }\n }",
"public static Inventarisation createEntity(EntityManager em) {\n Inventarisation inventarisation = new Inventarisation()\n .date(DEFAULT_DATE);\n return inventarisation;\n }",
"public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }",
"public EntityFactoryImpl() {\n\t\tsuper();\n\t}",
"public static Empleado createEntity(EntityManager em) {\n Empleado empleado = new Empleado()\n .nombre(DEFAULT_NOMBRE)\n .primerApellido(DEFAULT_PRIMER_APELLIDO)\n .segundoApellido(DEFAULT_SEGUNDO_APELLIDO)\n .sexo(DEFAULT_SEXO)\n .fechaNacimiento(DEFAULT_FECHA_NACIMIENTO)\n .fechaIngreso(DEFAULT_FECHA_INGRESO)\n .salario(DEFAULT_SALARIO)\n .puesto(DEFAULT_PUESTO)\n .estado(DEFAULT_ESTADO);\n return empleado;\n }",
"public static Competition createEntity(EntityManager em) {\n Competition competition = new Competition();\n competition.setName(DEFAULT_NAME);\n competition.setStartDate(DEFAULT_DATE);\n competition.setVisible(DEFAULT_IS_VISIBLE);\n competition.setOrganizer(DEFAULT_ORGANIZER);\n competition.setLocation(DEFAULT_LOCATION);\n return competition;\n }",
"public static EntreeCiterne createEntity(EntityManager em) {\n EntreeCiterne entreeCiterne = new EntreeCiterne()\n .date(DEFAULT_DATE)\n .valeurMax(DEFAULT_VALEUR_MAX)\n .valeurActuel(DEFAULT_VALEUR_ACTUEL)\n .quantite(DEFAULT_QUANTITE);\n return entreeCiterne;\n }",
"public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }",
"public CustomEntitiesTaskParameters() {}",
"public static SdCarInfo createEntity(EntityManager em) {\n SdCarInfo sdCarInfo = new SdCarInfo()\n \t\t.id(DEFAULT_ID)\n .carType(DEFAULT_CAR_TYPE)\n .engineNumber(DEFAULT_ENGINE_NUMBER)\n .buyDate(DEFAULT_BUY_DATE)\n .checkLoad(DEFAULT_CHECK_LOAD)\n .checkVolume(DEFAULT_CHECK_VOLUME)\n .carLength(DEFAULT_CAR_LENGTH)\n .carWidth(DEFAULT_CAR_WIDTH)\n .carHeight(DEFAULT_CAR_HEIGHT)\n .vehicleNo(DEFAULT_VEHICLE_NO)\n .policyNo(DEFAULT_POLICY_NO)\n .carrier(DEFAULT_CARRIER)\n .runNumber(DEFAULT_RUN_NUMBER);\n return sdCarInfo;\n }",
"public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}",
"public static Fornecedor createEntity(EntityManager em) {\n Fornecedor fornecedor = new Fornecedor()\n .tipo(DEFAULT_TIPO)\n .cpf(DEFAULT_CPF)\n .cnpj(DEFAULT_CNPJ)\n .primeiroNome(DEFAULT_PRIMEIRO_NOME)\n .nomeMeio(DEFAULT_NOME_MEIO)\n .sobreNome(DEFAULT_SOBRE_NOME)\n .saudacao(DEFAULT_SAUDACAO)\n .titulo(DEFAULT_TITULO)\n .cep(DEFAULT_CEP)\n .tipoLogradouro(DEFAULT_TIPO_LOGRADOURO)\n .nomeLogradouro(DEFAULT_NOME_LOGRADOURO)\n .complemento(DEFAULT_COMPLEMENTO);\n return fornecedor;\n }",
"public Entity build();",
"public static Asignatura createEntity(EntityManager em) {\n Asignatura asignatura = new Asignatura()\n .nombre(DEFAULT_NOMBRE)\n .plan(DEFAULT_PLAN)\n .titulacion(DEFAULT_TITULACION)\n .creditos(DEFAULT_CREDITOS)\n .num_grupos(DEFAULT_NUM_GRUPOS)\n .creditos_teoricos(DEFAULT_CREDITOS_TEORICOS)\n .creditos_practicas(DEFAULT_CREDITOS_PRACTICAS)\n .num_grupos_teoricos(DEFAULT_NUM_GRUPOS_TEORICOS)\n .num_grupos_practicas(DEFAULT_NUM_GRUPOS_PRACTICAS)\n .usu_alta(DEFAULT_USU_ALTA);\n return asignatura;\n }",
"public static Formation createEntity(EntityManager em) {\n Formation formation = new Formation()\n .iDFormation(DEFAULT_I_D_FORMATION)\n .nomFormation(DEFAULT_NOM_FORMATION)\n .information(DEFAULT_INFORMATION);\n return formation;\n }",
"public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }",
"public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }",
"private Default()\n {}",
"private EntityFactory() {}",
"public static OrderItem createEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(DEFAULT_QUANTITY).totalPrice(DEFAULT_TOTAL_PRICE).status(DEFAULT_STATUS);\n return orderItem;\n }",
"public Persona newEntity(String nome, String cognome) {\n return newEntity(nome, cognome, \"\", \"\", (Address) null);\n }"
] |
[
"0.67117494",
"0.6708409",
"0.6697924",
"0.6683463",
"0.6649938",
"0.6604877",
"0.6556583",
"0.6527881",
"0.6514264",
"0.6484926",
"0.6422341",
"0.6407632",
"0.6387969",
"0.6330304",
"0.63249683",
"0.63036305",
"0.627729",
"0.6276165",
"0.6271177",
"0.6271125",
"0.62511384",
"0.6244978",
"0.62395203",
"0.6237477",
"0.61797637",
"0.6177414",
"0.6173689",
"0.61677593",
"0.6165022",
"0.61384606",
"0.6134221",
"0.6122044",
"0.61154646",
"0.610159",
"0.60979384",
"0.60899293",
"0.60872734",
"0.60862285",
"0.6085415",
"0.606824",
"0.6064469",
"0.6062546",
"0.60595536",
"0.6045269",
"0.6031386",
"0.60206264",
"0.6012099",
"0.6002859",
"0.599792",
"0.5994159",
"0.5988437",
"0.5973516",
"0.59677815",
"0.5965104",
"0.5959466",
"0.59459573",
"0.5937545",
"0.5935395",
"0.59312963",
"0.593012",
"0.5928052",
"0.59239924",
"0.5921401",
"0.59213704",
"0.59166986",
"0.5909984",
"0.5905996",
"0.58949053",
"0.5894528",
"0.5894398",
"0.5894306",
"0.5888381",
"0.5887904",
"0.5884544",
"0.5873961",
"0.5865361",
"0.5865361",
"0.58639187",
"0.58600795",
"0.5848743",
"0.5844269",
"0.5843879",
"0.5840812",
"0.58397883",
"0.5838466",
"0.5836591",
"0.5828658",
"0.58267426",
"0.5825448",
"0.58230937",
"0.5822923",
"0.58217967",
"0.58190495",
"0.5806136",
"0.57991576",
"0.57983917",
"0.57868326",
"0.57826185",
"0.57722306",
"0.57703483",
"0.57678837"
] |
0.0
|
-1
|
Move the creature by an increment of x and y if no collision. x and y may be negative.
|
public void move(@NotNull Map map, int x, int y)
{
if (map.map[this.x + x][this.y + y].isBlocking)
{
x = 0;
y = 0;
}
this.x += x;
this.y += y;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void move() {\n if (!isCollision(xMove, 0))\n moveX();\n //else\n // adjustX(xMove);\n\n if (!isCollision(0, yMove))\n moveY();\n //else\n // adjustY(yMove);\n //check isCollision(gameObject) with calculating the position for next move\n\n }",
"public void move() {\n health -= 2; //health decrement\n age++; //age increment\n if (yPos > 300) {\n speed += 3;\n }\n boolean canMove = false;\n int distancex = (int) (Math.random() * speed);\n int distancey = (int) (Math.random() * speed);\n int counterx = r.nextInt(2);\n int countery = r.nextInt(2);\n while (!canMove) {\n distancex = (int) (Math.random() * speed);\n distancey = (int) (Math.random() * speed);\n counterx = r.nextInt(2);\n countery = r.nextInt(2);\n if (counterx == 0 && this.xPos - distancex > 0\n && countery == 0 && this.yPos - distancey > 0) {\n canMove = true;\n } else if (counterx == 1 && this.xPos + distancex < 510\n && countery == 1 && this.yPos + distancey < 530) {\n canMove = true;\n }\n }\n if (counterx == 0 && countery == 0) {\n xPos -= distancex;\n yPos -= distancey;\n } else if (counterx == 0 && countery == 1) {\n xPos -= distancex;\n yPos += distancey;\n } else if (counterx == 1 && countery == 0) {\n xPos += distancex;\n yPos -= distancey;\n } else if (counterx == 1 && countery == 1) {\n xPos += distancex;\n yPos += distancey;\n }\n }",
"public void move() {\r\n\t\tx = x + speed;\r\n\t}",
"@Override\r\n public void tick() {\n playerNextTo();\r\n if (playerContact() && isCollisioned()) {\r\n if (!((GameState) game.getGameState()).getWorld().getTile((int) (x + xMove), (int) (y + yMove)).isSolid()\r\n && isValidMove(xMove, yMove)) {\r\n x += xMove;\r\n y += yMove;\r\n }\r\n }\r\n }",
"public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }",
"public void moveBy(double x, double y) {\n\t\tthis.x += x*speed;\n\t\tthis.y += y*speed;\n\t}",
"void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"public void move(float x, float y) {\n\t\tthis.position.set(this.position.x + x, this.position.y + y, 0);\n\t}",
"public void move(double x, double y) {\n\t\tposition.x += x;\n\t\tposition.y += y;\n\t\tshape.move(x, y);\n\n\t\tif (texture != null)\n\t\t\ttexture.move(x, y);\n\t}",
"@Override\n\tpublic void move() {\n\t\tx += ((direction) * xSpeed);\n\t\t//If any sprite has collided with the left or right edge of the screen set collided to true\n\t\tif (x >= 800 - spriteImage.getWidth(null) || x <= 0) collided = true;\n\t}",
"public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}",
"public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}",
"public void move()\n\t{\n\t\tx = x + dx;\n\t}",
"public void move(int x, int y)\r\n\t{\r\n\t\ttheX = x;\r\n\t\ttheY = y;\r\n\t}",
"public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}",
"public void move(int x, int y) {\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public void Move(int x, int y)\r\n\t{\r\n\t\tP.x+=x;\r\n\t\tP.y+=y;\r\n\t}",
"public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }",
"public void act() \n {\n move(4); \n collision();\n \n \n }",
"public void move() {\r\n if (y > HEIGHT)\r\n y = initialY;\r\n y = y + speed;\r\n }",
"void move() {\n x -= speed;\n }",
"public void move()\n\t{\n\t\tx = x + frogVelocityX;\n\t}",
"public void move(){\n x+=xDirection;\n y+=yDirection;\n }",
"public void move() {\r\n if(direction == 1) {\r\n if(userRow < grid.getNumRows() - 1) {\r\n userRow++;\r\n handleCollision(userRow, 1);\r\n }\r\n } else if(direction == -1) {\r\n if(userRow > 0) {\r\n userRow--;\r\n handleCollision(userRow, 1);\r\n }\r\n }\r\n }",
"public void move() {\n spriteBase.move();\n\n Double newX = spriteBase.getXCoordinate() + spriteBase.getDxCoordinate();\n Double newY = spriteBase.getYCoordinate() + spriteBase.getDyCoordinate();\n\n if (!newX.equals(spriteBase.getXCoordinate())\n || !newY.equals(spriteBase.getYCoordinate())) {\n Logger.log(String.format(\"Monster moved from (%f, %f) to (%f, %f)\",\n spriteBase.getXCoordinate(), spriteBase.getYCoordinate(), newX, newY));\n }\n }",
"public synchronized void avatarMove(int x, int y)\n\t{\n\t\t// Can't attempt to move off board\n\t\tif ((x < 0) || (y < 0) || (x >= width) || ( y >= height))\n\t\t\treturn;\n\t\t\n\t\t// See if we can't actually move there\n\t\tif (!tiles[x][y].isPassable())\n\t\t\treturn;\n\n\t\t// Check to see if there is a monster there\n\t\tfor (Monster monster : monsters)\n\t\t{\n\t\t\tif ((monster.getX() == x) && (monster.getY() == y))\n\t\t\t{\n\t\t\t\tmonster.incurDamage(avatar.getDamage());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\t\t\n\t\tint damage = tiles[x][y].getDamage();\n\t\tif (damage > 0)\n\t\t\tavatar.incurDamage(damage);\n\t\tavatar.setLocation(x, y);\n\t}",
"public void moveBy(float x, float y) {\n internalGroup.moveBy(x, y);\n dataTrait.x = internalGroup.getX();\n dataTrait.y = internalGroup.getY();\n resetSprite();\n\n\n }",
"@Override\n public void move(double xa, double ya) {\n if (alive) {\n y += ya;\n x += xa;\n }\n }",
"public void move()\n {\n xPosition = xPosition + xSpeed;\n yPosition = yPosition + ySpeed;\n draw();\n if (xPosition >= rightBound - diameter)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (xPosition <= leftBound)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (yPosition <= upBound)\n {\n ySpeed = -(ySpeed);\n\n }\n else\n {\n }\n if (yPosition >= lowBound - diameter)\n {\n ySpeed = -(ySpeed);\n\n }\n else \n {\n }\n\n }",
"public void Move()\n {\n this.x += this.speed;\n\n //Cutoff the position\n if (this.x <= 2)\n {\n this.x = 2;\n }\n else if (this.x >= GameConstants.SCREEN_WIDTH - 2 * this.imageWidth)\n {\n this.x = GameConstants.SCREEN_WIDTH - 2 * this.imageWidth;\n }\n }",
"public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }",
"public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\n }",
"public void movePositionBy(int x, int y) {\n\t\tthis.setX(getX() + x);\r\n\t\tthis.setY(getY() + y);\r\n\t}",
"public void move() {\n\tupdateSwapTime();\n\tupdateAttackTime();\n\n\tif (enemyNear) {\n\t if (moved) {\n\t\tstopMove();\n\t\tmoved = false;\n\t }\n\t} else {\n\t if (!moved) {\n\t\tcontinueMove();\n\t\tmoved = true;\n\t }\n\n\t x += dx;\n\t y += dy;\n\n\t if (x < speed) {\n\t\tx = speed;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y < speed) {\n\t\ty = speed;\n\t\tdy = (-1) * dy;\n\t }\n\n\t if (x > MapSize.getSIZE().getWidth() - 40) {\n\t\tx = MapSize.getSIZE().getWidth() - 40;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y > MapSize.getSIZE().getHeight() - 40) {\n\t\ty = MapSize.getSIZE().getHeight() - 40;\n\t\tdy = (-1) * dy;\n\t }\n\t}\n }",
"@Override\n\tpublic void moveCharacter(){\n\t\tif (leftBlocked || rightBlocked) {\n\t\t\txSpeed = 0;\n\t\t}\n\t\t\n\t\t/* Applies gravity if falling */\n\t\tif ( isFalling() && this.getCurrentAnimation().isLastFrame() ) {\n\t\t\tfallingSpeed = fallingSpeed + gravity;\n\t\t\tint newySpeed = fallSpeed + fallingSpeed;\n\t\t\t\n//\t\t\tSystem.out.println(\"newySpeed: \" + newySpeed);\n\t\t\t\n\t\t\tif (newySpeed > maxySpeed) {\n\t\t\t\tnewySpeed = maxySpeed;\n\t\t\t}\n\t\t\tySpeed = newySpeed;\n\t\t\t\n\t\t\t// Applies horizontal speed to the fall\n\t\t\tif ( !isStraightFall() && (!isFallCollided() && !isDeadlyFall()) ) {\n\t\t\t\t\n\t\t\t\tif ( isSafeFall() ) {\n\t\t\t\t\t\n\t\t\t\t\tif (this.getOrientation().equals(\"left\")) {\n\t\t\t\t\t\txFrameOffset = -fallxSpeed;\n\t\t\t\t\t}\n\t\t\t\t\telse if (this.getOrientation().equals(\"right\")) {\n\t\t\t\t\t\txFrameOffset = fallxSpeed;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if ( isRiskyFall() ) {\n\t\t\t\t\t\n\t\t\t\t\tif (this.getOrientation().equals(\"left\")) {\n\t\t\t\t\t\txFrameOffset = -fallxSpeed/2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (this.getOrientation().equals(\"right\")) {\n\t\t\t\t\t\txFrameOffset = fallxSpeed/2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( isFallCollided() ) {\n\t\t\t\txFrameOffset = 0;\n\t\t\t}\n\t\t}\n\t\telse if ( isGrounded() && !this.getCurrentAnimation().getId().equals(\"stairs\")) {\n\n\t\t\t/* Character is on the ground */\n\t\t\tySpeed = 0;\n\t\t\tyFrameOffset = 0;\n\t\t\tfallingSpeed = 0;\n\t\t}\n\t\t\n\t\t/* Moves the character and its bounding box if he is not at the edge*/\n\t\tif (!this.isBlocked()) {\n\t\t\tsetX(x + xSpeed + xFrameOffset);\n\t\t\tsetY(y + ySpeed + yFrameOffset);\n\t\t\tboundingBox.translate(xSpeed + xFrameOffset, ySpeed + yFrameOffset);\n\t\t}\n\t\t\n\t\t/* Play music */\n\t\tif(!sound.equals(\"\")){\n\t\t\tloader.getSound(sound).play();;\n\t\t}\n\t}",
"protected void move() {\n\t\tx += dx;\n\t\ty += dy;\n\t\tif (distance() > range) remove();\n\t}",
"public void moveBy(int dx, int dy){\n x += dx;\n y += dy;\n }",
"public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}",
"@Override\n public void move() {\n _location.x++;\n }",
"public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}",
"@Override\n public void tick() {\n x += dirX * speed;\n y += dirY * speed;\n \n //Enemy berjalan sendiri (memantul)\n if(x >= Game.WIDTH - 60){\n dirX = -1;\n } else if(y >= Game.HEIGHT - 80){\n dirY = -1;\n } else if(x <= 5){\n dirX = 1;\n } else if(y <= 5){\n dirY = 1;\n }\n\n }",
"public void act() \n {\n move(-2);\n\n if(getX() <= 0)\n {\n getWorld().removeObject(this);\n } \n\n }",
"public void move(int x, int y){\n universe.erase(this);\n this.yPosition = y;\n this.xPosition = x;\n universe.draw(this);\n }",
"public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}",
"public void moveRelative(int x, int y) {\n this.x = this.x + x;\n this.y = this.y + y;\n }",
"public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }",
"public void move(Mob mob) {\n double x = mob.getxPos() - xPos;\n double y = mob.getyPos() - yPos;\n if (x < 18 && x > -18 && y < 18 && y > -18) {\n mob.reduceHealth(damage);\n hasHit = true;\n } else {\n double distancesq = x * x + y * y;\n double distance = Math.sqrt(distancesq);\n xPos += speed * x / distance;\n yPos += speed * y / distance;\n }\n }",
"public void moveAmount(int x, int y) {\n\t\tspace.moveByDisplacement(this, x, y);\n\t\tNdPoint myPoint = space.getLocation(this);\n\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t}",
"void move() {\n\t\tif (reachedEdge()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\t\tif (reachedLeft()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\n\t\tx = x + velocityX;\n\t}",
"void move() throws IOException, InterruptedException{\r\n \r\n // if current position and velocity are greater than 0 and less than the right edge of the screen\r\n if (x + xa > 0 && x + xa < 1280-w){\r\n // increase the character position by velocity\r\n x = x + xa;\r\n }\r\n \r\n // if current height and velocity are greater than zero and less than the floor of the game\r\n if (y + ya > 0 && y + ya < 500){\r\n // if jumping up\r\n if (y > 300){\r\n y = y + ya;\r\n } else{ // if falling down, increase velocity to 3\r\n ya = 3;\r\n y = y + ya;\r\n }\r\n }\r\n \r\n // if a collision is detected increase life counter\r\n if (game.collision()){\r\n // increase life counter\r\n count++;\r\n // call game over to load next image or to close game\r\n game.gameOver(count);\r\n } \r\n }",
"public void move(int x_pos1, int y_pos1)throws Exception{\n //check if its a legal move.\n if(isLegal(x_pos1, y_pos1)) {\n x_pos = x_pos1;\n y_pos = y_pos1;\n }\n else throw new Exception(\"Illegal move.\");\n }",
"public void move(int directionX, int directionY) {\r\n posX += directionX;\r\n posY += directionY;\r\n anchorX += directionX;\r\n anchorY += directionY;\r\n }",
"public void collide(){\n hp -= 10;\n resetPos();\n //canMove = false;\n }",
"public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }",
"public void move(int dx, int dy) {\n this.x = this.x + dx;\n this.y = this.y + dy;\n }",
"void moveHero(int x, int y) {\n setOnTile(heroC.getX(), heroC.getY(), false);\n // vector needed to aim\n setVector(x, y, heroC);\n setLastXYArray(heroC);\n //Log.i(\"dan\", \"SET VECTOR TO : \" + heroC.getVector());\n creatures.get(0).setX(x);\n creatures.get(0).setY(y);\n setOnTile(x, y, true);\n paintSquare(-1, -1);\n checkHeroHarrasing();\n checkEnemyDeath();\n addTurn();\n enemyTurn();\n saveGame(context, level, turn, creatures);\n }",
"public void moveActor();",
"@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}",
"public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}",
"private void moveAround()\n {\n if(getY()>75)\n {\n setRotation(270);\n }\n else if(getX()<75)\n {\n setRotation(0);\n }\n else if (getX()>getWorld().getWidth()-50)\n {\n setRotation(180);\n }\n else if (isTouching(Player.class))\n {\n Actor actor = getOneIntersectingObject(Player.class);\n turnTowards(actor.getX(), actor.getY());\n turn(180);\n }\n else if(Greenfoot.getRandomNumber(100) < 3)\n {\n setRotation(Greenfoot.getRandomNumber(360));\n }\n move(1);\n }",
"void move(int dx, int dy);",
"public void moveToPoint(int x, int y) {\n /**\n * DO NOT EDIT THIS CODE TO REMOVE DUPLICATIONS IT WILL BREAK MULTIPLAYER\n * SERIOUSLY JUST DO NOT DO IT\n *\n * DON'T DO IT\n *\n *\n * JUST DON'T TOUCH THIS CODE AT ALL\n */\n AbstractHero hero = map.getCurrentTurnHero();\n\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), x, y)) {\n map.updateVisibilityArray();\n visionChanged = true;\n gameState.updateMovementGoal(x, y);\n }\n\n updateLiveTileEffectsOnCharacter(hero);\n gameChanged = true;\n minimapChanged = true;\n visionChanged = true;\n movementChanged = true;\n\n\n centerMapOnCurrentHero();\n }",
"public void move (int deltaX, int deltaY)\r\n {\r\n\tx = x + deltaX;\r\n\ty = y + deltaY;\r\n }",
"@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}",
"public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }",
"public void move() {\r\n\t\tmoveCount++;\r\n\t}",
"public void moveX(double x) {\n this.x += x;\n }",
"public void moveRaw(Creature c, int x, int y){\r\n if(c.area.map[c.y][c.x] instanceof Door) ((Door)c.area.map[c.y][c.x]).stepOff(c);\r\n c.area.graph.moveOff(c.x, c.y);\r\n if(c.area.map[c.y][c.x] instanceof Water) \r\n Main.animator.addAnimation(new WaterStepAnimation(c.x, c.y));\r\n c.setXY(x, y);\r\n c.area.graph.moveOn(c.x, c.y);\r\n c.area.getGases(c.x, c.y).stream().forEach(gas -> c.addBuff(gas.buff));\r\n if(c.area.map[c.y][c.x] instanceof StepListener){\r\n ((StepListener)c.area.map[c.y][c.x]).steppedOn(c);\r\n }\r\n c.FOV.update(c.x, c.y, c.area);\r\n }",
"public void move() {\n float diffX = cDestination.getX() - getCenterX();\n float diffY = cDestination.getY() - getCenterY();\n\n float newX = cPosition.getX() + cSpeed * Math.signum(diffX);\n float newY = cPosition.getY() + cSpeed * Math.signum(diffY);\n\n cPosition.setX(newX);\n cPosition.setY(newY);\n }",
"public boolean attemptMove(int x, int y)\n {\n return setPosition(x, y);\n }",
"public void move()\n {\n erase();\n \n\n yPosition += ySpeed;\n xPosition += xSpeed;\n\n if(yPosition >= (groundPositionY1 - diameter)){ //450\n yPosition = (int)(groundPositionY1 - diameter);\n ySpeed = -ySpeed;\n }\n\n if(yPosition <= groundPositionY2){ //40\n yPosition = (int)(groundPositionY2);\n ySpeed = -ySpeed;\n } \n\n if(xPosition <= groundPositionX2){ //50\n xPosition = (int)(groundPositionX2);\n xSpeed = -xSpeed;\n }\n\n // check if it has hit the ground\n if(xPosition >= (groundPositionX1 - diameter)) { //550\n xPosition = (int)(groundPositionX1 - diameter);\n xSpeed = -xSpeed; \n }\n\n // draw again at new position\n draw();\n }",
"public void move() {\n if (Math.abs(rx + vx) + radius > 1.0) bounceOffVerticalWall();\n if (Math.abs(ry + vy) + radius > 1.0) bounceOffHorizontalWall();\n rx = rx + vx;\n ry = ry + vy;\n }",
"public void move() {\n // Check for collisions and reverse deltas accordingly\n if (collisionWithHorizontalWall()) {\n isFacingRight = !isFacingRight;\n dx *= -1;\n }\n if (collisionWithVerticalWall()) {\n dy *= -1;\n }\n \n // Handle actual movement by updating positional values\n if (dx == 0 || dy == 0) {\n xPos += dx;\n yPos += dy;\n } else {\n // Turn diagonal delta movement into 1 instead of sqrt(2)\n xPos += DIAGONAL_DIVISOR * dx;\n yPos += DIAGONAL_DIVISOR * dy;\n }\n }",
"public void move(int distance);",
"@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }",
"public void move();",
"public void move();",
"public void move(int dx, int dy) {\n this.xPosition += dx;\n this.yPosition += dy;\n }",
"public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }",
"public void move ()\n\t{\n\t\t//Let's try this...\n\t\tchangeFallSpeed (turnInt);\n\t\t\n\t\t\n\t\tsetX_Pos (getX_Pos () + getHSpeed ());\t//hSpeed is added onto x_pos\n\t\t//The xDimensions are updated by having hSpeed added onto them.\n\t\txDimension1 += getHSpeed ();\n\t\txDimension2 += getHSpeed ();\n\t\txDimension3 += getHSpeed ();\n\t\t\n\t\t//The if statement below ensures that the PaperAirplane does not move\n\t\t//after reaching the 300 y point. The walls around the PaperAirplane,\n\t\t//however, start to move up, creating the illusion that the\n\t\t//PaperAirplane is still falling.\n\t\tif (getY_Pos () < 300)\n\t\t{\n\t\t\tsetY_Pos (getY_Pos () + getVSpeed ());//vSpeed is added onto y_pos\n\t\t\t//The yDimensions are updated by having vSpeed added onto them.\n\t\t\tyDimension1 += getVSpeed ();\n\t\t\tyDimension2 += getVSpeed ();\n\t\t\tyDimension3 += getVSpeed ();\n\t\t}\n\t}",
"private void move(){\n \n currentAnimation = idleDown;\n \n if(playerKeyInput.allKeys[VK_W]){\n int ty = (int) (objectCoordinateY - speed + bounds.y) / 16;\n \n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY -= speed;\n currentAnimation = upWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_S]){\n int ty = (int) (objectCoordinateY + speed + bounds.y + bounds.height) / 16;\n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY += speed;\n currentAnimation = downWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_A]){\n int tx = (int) (objectCoordinateX - speed + bounds.x) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX -= speed;\n currentAnimation = sideWalkLeft;\n }\n } \n \n if(playerKeyInput.allKeys[VK_D]){\n int tx = (int) (objectCoordinateX + speed + bounds.x + bounds.width) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX += speed;\n currentAnimation = sideWalkRight;\n }\n } \n \n if(playerKeyInput.allKeys[VK_E]){\n currentAnimation = pickUp;\n } \n }",
"public void move() {\n\t\tsetHealth(getHealth() - 1);\n\t\t//status();\n\t\tint row = getPosition().getRow() ;\n\t\tint column = getPosition().getColumn();\n\t\tint randomInt = (int)((Math.random()*2) - 1);\n\t\t\n\t\tif(hunter == false && row < 33) {\n\t\t\tif(row == 32) {\n\t\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(row == 0) {\n\t\t\t\tgetPosition().setCoordinates(row + 1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 99) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column - 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 0) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column + 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t}\n\t\tif(hunter == false && row > 32) {\n\t\t\t//setHealth(100);\n\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\tsetPosition(getPosition()) ;\n\t\t}\n\t\telse {\n\t\t\tif(row < 65 && hunter == true) {\n\t\t\t\tgetPosition().setCoordinates(row + 1, column);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgetPosition().setCoordinates(65, column);\n\t\t\t\tsetPosition(getPosition());\n\t\t\t\t//Check if there is a gazelle\n\t\t\t\tPair [][] range = {{Drawer.pairs[row+1][column-1],Drawer.pairs[row+1][column],\n\t\t\t\t\t\t\t Drawer.pairs[row+1][column+1]}, {\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column-1],\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column],Drawer.pairs[row+2][column+1]}};\n\t\t\t\t\n\t\t\t\tfor(Pair [] line: range) {\n\t\t\t\t\tfor(Pair prey: line) {\n\t\t\t\t\t\tif(prey.getAnimal() instanceof Gazelle ) {\n\t\t\t\t\t\t\tattack();\n\t\t\t\t\t\t\tprey.getAnimal().die();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void move(FightCell cell);",
"public synchronized void monsterMove(int x, int y, Monster monster)\n\t{\n\t\t// Can't attempt to move off board\n\t\tif ((x < 0) || (y < 0) || (x >= width) || ( y >= height))\n\t\t\treturn;\n\t\t\n\t\t// Dead monsters tell no tales\n\t\tif (monster.getHitPoints() <= 0)\n\t\t return;\n\t\t\n\t\t// See if we can't actually move there\n\t\tif (!tiles[x][y].isPassable())\n\t\t\treturn;\n\t\t\n\t\t// Check if avatar is in this location\n\t\tif ((avatar.getX() == x) && (avatar.getY() == y))\n\t\t{\n\t\t\tavatar.incurDamage(monster.getDamage());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Check no other monsters are in this spot\n\t\tfor (Monster m : monsters)\n\t\t{\n\t\t\tif ((m != monster) && (m.getX() == x) && (m.getY() == y))\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Make sure monsters get hurt by lava\n\t\tint damage = tiles[x][y].getDamage();\n\t\tif (damage > 0)\n\t\t\tmonster.incurDamage(damage);\n\t\t\n\t\tmonster.setLocation(x, y);\n\t}",
"public void move(int mv){\n\t\t\tx+= mv;\n\t\t}",
"public double moveX(double amount)\n {\n //Check boundary of world.\n\t// Snaps to boundary edge if sprite is past edge or wants to pass edge.\n if (worldX+amount<worldXMin)\n amount = worldXMin-worldX;\n if (worldX+amount>worldXMax)\n amount = worldXMax-worldX;\n\n //Move\n worldX+=amount;\n\n //Return amount moved\n return amount;\n }",
"void move(int dx, int dy) {\n position = position.addX(dx);\n position = position.addY(dy);\n }",
"public void move(int dx, int dy) {\n\t\ttileX = tileX + dx;\n\t\ttileY = tileY + dy;\n\t}",
"public void move(int delta);",
"public abstract void move(int deltaX, int deltaY);",
"private void moveOrTurn() {\n\t\t// TEMP: look at center of canvas if out of bounds\n\t\tif (!isInCanvas()) {\n\t\t\tlookAt(sens.getXMax() / 2, sens.getYMax() / 2);\n\t\t}\n\n\t\t// if we're not looking at our desired direction, turn towards. Else, move forward\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t} else {\n\t\t\tmoveForward(2.0);\n\t\t}\n\n\t\t// move in a random direction every 50 roaming ticks\n\t\tif (tickCount % 100 == 0) {\n\t\t\tgoRandomDirection();\n\t\t}\n\t\ttickCount++;\n\t}",
"public void move(int accX,int accY){\n this.accX = accX;\n this.accY = accY;\n velX = velX + accX;\n velY = velY + accY;\n }",
"public int move(double pX, double pY) {\n\t\t\tdouble eX=this.getX();\n\t\t\tdouble eY=this.getY();\n\t\t\n\t\t\tdouble vX= pX-eX;\n\t\t\tdouble vY= pY-eY;\n\t\t\tdouble len= Math.sqrt(vX*vX+vY*vY);\n\t\t\tvX=(vX/len);\n\t\t\tvY=(vY/len);\n\n\t\t\tthis.setDelta(vX, vY);\n\t\t\tif(Core.checkCollision(this)==true)super.move();\n\t\t return 0;\n\t}",
"void move(double dx, double dy);",
"public void act() \r\n {\r\n move();\r\n }",
"public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}",
"public void move() {\n\t\tthis.move(velocity.x, velocity.y);\n\t}",
"private void move()\n\t{\n\t\tif(moveRight)\n\t\t{\n\t\t\tif(position.getX() + speedMovement <= width)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() +speedMovement+speedBoost);\n\t\t\t\tmoveRight = false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tif(moveLeft)\n\t\t{\n\t\t\tif(position.getX() - speedMovement > 0)\n\t\t\t{\n\t\t\t\tposition.setX(position.getX() -speedMovement - speedBoost + gravitationalMovement);\n\t\t\t\tmoveLeft = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * If a gravitational field is pushing the ship, set the movement accordingly\n\t\t */\n\t\tif(gravitationalMovement>0)\n\t\t{\n\t\t\tif(position.getX()+gravitationalMovement <= width)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(position.getX() + gravitationalMovement > 0)\n\t\t\t\tposition.setX(position.getX() + gravitationalMovement);\n\t\t}\n\t}",
"public void doMove(int x, int y, int x1, int y1) throws IllegalCoordinateException, IllegalMoveException {\n field.doMove(x, y, x1, y1);\n checkGameOver();\n checkEndGame();\n }"
] |
[
"0.7413549",
"0.7206813",
"0.7066641",
"0.6976877",
"0.6900034",
"0.6892314",
"0.68563926",
"0.68503535",
"0.6818975",
"0.68148375",
"0.6799271",
"0.6789851",
"0.67695504",
"0.67674506",
"0.6754468",
"0.67481416",
"0.6720942",
"0.6698616",
"0.6673428",
"0.66289365",
"0.66161776",
"0.66125005",
"0.66024333",
"0.656727",
"0.6560973",
"0.65375704",
"0.6530841",
"0.6522859",
"0.65067744",
"0.6502862",
"0.6495254",
"0.6487725",
"0.6448282",
"0.64434093",
"0.64383966",
"0.6423043",
"0.64161223",
"0.6412514",
"0.6411263",
"0.63920057",
"0.63888186",
"0.6388147",
"0.6377808",
"0.6375759",
"0.6343086",
"0.6337768",
"0.6329195",
"0.6315032",
"0.6300798",
"0.63005656",
"0.63002735",
"0.6294485",
"0.62896574",
"0.6288995",
"0.62863094",
"0.62780464",
"0.6270899",
"0.6260057",
"0.6256615",
"0.6241684",
"0.6236057",
"0.6233711",
"0.6221141",
"0.62164",
"0.6215025",
"0.6197221",
"0.61962837",
"0.61950123",
"0.6188314",
"0.6179858",
"0.6179191",
"0.61789113",
"0.61776096",
"0.61748224",
"0.6173553",
"0.61615515",
"0.61556405",
"0.61556405",
"0.6150282",
"0.6150198",
"0.6149786",
"0.61371905",
"0.6137049",
"0.61281675",
"0.6123219",
"0.6120518",
"0.6109158",
"0.61085314",
"0.61073035",
"0.6098737",
"0.60963774",
"0.6092692",
"0.6090959",
"0.60900944",
"0.60877526",
"0.60791284",
"0.6076848",
"0.60665226",
"0.60620016",
"0.60446143"
] |
0.6144744
|
81
|
Convert String to Character List
|
public String sortString(String s) {
List<Character> characters = s.chars().mapToObj(c -> (char) c).collect(Collectors.toList());
// Sort the input O(logN)
Collections.sort(characters);
StringBuilder result = new StringBuilder();
// Iterator over entire input array
while(!characters.isEmpty()) {
Set<Character> seenChars = new HashSet();
// Pick the smallest character from s and append it to the result
char smallestChar = characters.remove(0);
result.append(smallestChar);
seenChars.add(smallestChar);
Iterator<Character> sortedIterator = characters.iterator();
while (sortedIterator.hasNext()) {
char c = sortedIterator.next();
if (!seenChars.contains(c)) {
result.append(c);
seenChars.add(c);
// Remove this character from input
sortedIterator.remove();
}
}
if (result.length() == s.length()) {
break;
}
seenChars = new HashSet();
char largest = characters.remove(characters.size() - 1);
result.append(largest);
seenChars.add(largest);
// Pick the largest character from s and append it to the result
ListIterator<Character> reverseIterator = characters.listIterator(characters.size());
while (reverseIterator.hasPrevious()) {
char c = reverseIterator.previous();
if (!seenChars.contains(c)) {
result.append(c);
seenChars.add(c);
reverseIterator.remove();
}
}
if (result.length() == s.length()) {
break;
}
}
return result.toString();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static List<Character> stringToCharArray( String str ) {\n List<Character> charactersOfString = new ArrayList<Character>();\n char[] letters = str.toCharArray();\n for( char c : letters ) \n charactersOfString.add( c );\n return charactersOfString;\n }",
"private ArrayList<Character> characterArrayListMaker(String s) {\n ArrayList<Character> result = new ArrayList<Character>();\n for (int i = 0; i < s.length(); i++){\n result.add(s.charAt(i));\n }\n return result;\n }",
"public static SList<Character> make(String str) {\n SList<Character> ans = new SList<Character>();\n for (int i=0; i<str.length(); i++)\n ans.add(str.charAt(i));\n return ans;\n }",
"private ArrayList<Character> retornarListaCaracteres() {\n ArrayList<Character> validaciones = new ArrayList<Character>();\n validaciones.add('.');\n validaciones.add('/');\n validaciones.add('|');\n validaciones.add('=');\n validaciones.add('?');\n validaciones.add('¿');\n validaciones.add('´');\n validaciones.add('¨');\n validaciones.add('{');\n validaciones.add('}');\n validaciones.add(';');\n validaciones.add(':');\n validaciones.add('_');\n validaciones.add('^');\n validaciones.add('-');\n validaciones.add('!');\n validaciones.add('\"');\n validaciones.add('#');\n validaciones.add('$');\n validaciones.add('%');\n validaciones.add('&');\n validaciones.add('(');\n validaciones.add(')');\n validaciones.add('¡');\n validaciones.add(']');\n validaciones.add('*');\n validaciones.add('[');\n validaciones.add(',');\n validaciones.add('°');\n\n return validaciones;\n }",
"private ArrayList<String> convertChar() {\r\n \tArrayList<String> patterns = new ArrayList<String>();\r\n \tfor (int i = 0; i < this.patterns.size(); i++) {\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < this.patterns.get(i).length; j++) {\r\n \t\t\ts += this.patterns.get(i)[j];\r\n \t\t}\r\n \t\tpatterns.add(s);\r\n \t}\r\n \treturn patterns;\r\n }",
"private static Character[] toCharArray(String str){\n\t \n\t Character[] charArray = new Character[str.length()];\n\t for(int i = 0; i < charArray.length; i++){\n\t\t \n\t\t charArray[i] = new Character(str.charAt(i));\n\t }\n\t \n\t return charArray;\n }",
"public static List<String> parse(String s) {\r\n\t\tVector<String> rval = new Vector<String>();\r\n\t\tStringTokenizer tkn = new StringTokenizer(s);\r\n\t\twhile (tkn.hasMoreTokens())\r\n\t\t\trval.add(tkn.nextToken());\r\n\t\treturn rval;\r\n\t}",
"public ArrayList recuperString_to_Array(String lestring){\n int i;\n char restemp;\n String sretemp=\"\";\n Iterator it;\n ArrayList<String>ListTextString=new ArrayList<String>();\n for(i=0;i<lestring.length();i++){\n restemp=lestring.charAt(i);\n sretemp+=restemp;\n switch (lestring.charAt(i)) {\n case '\\n':\n ListTextString.add(sretemp);\n sretemp=\"\";\n break;\n case '\\t':\n sretemp=\"\";\n break;\n }\n }\n it=ListTextString.iterator();\n while (it.hasNext()){\n System.out.println(it.next().toString());\n\n }\n return ListTextString;\n }",
"public static List<String> stringList() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"abdxxx\");\n\t\tlist.add(\"xxxxx\");\n\t\tlist.add(\"hi\");\n\t\tlist.add(\"SmoothStack\");\n\t\tlist.add(\"Wyatt x Wyatt x\");\n\t\treturn list;\n\t}",
"public static Collection<Character> stringToCharacterSet(String string){\n\t\tCollection<Character> charSet = new HashSet<Character>();\n\t\tfor(Character character : string.toCharArray()){\n\t\t\tcharSet.add(character);\n\t\t}\n\t\treturn charSet;\n\t}",
"List<String> mo5877c(String str);",
"private static String[] splitByCharacterType(String str, boolean camelCase) {\n if (str == null) {\n return null;\n }\n if (str.length() == 0) {\n return new String[0];\n }\n char[] c = str.toCharArray();\n ArrayList<String> list = new ArrayList<String>();\n int tokenStart = 0;\n int currentType = Character.getType(c[tokenStart]);\n for (int pos = tokenStart + 1; pos < c.length; pos++) {\n int type = Character.getType(c[pos]);\n if (type == currentType) {\n continue;\n }\n if (camelCase && type == Character.LOWERCASE_LETTER\n && currentType == Character.UPPERCASE_LETTER) {\n int newTokenStart = pos - 1;\n if (newTokenStart != tokenStart) {\n list.add(new String(c, tokenStart, newTokenStart - tokenStart));\n tokenStart = newTokenStart;\n }\n } else {\n list.add(new String(c, tokenStart, pos - tokenStart));\n tokenStart = pos;\n }\n currentType = type;\n }\n list.add(new String(c, tokenStart, c.length - tokenStart));\n return (String[]) list.toArray(new String[list.size()]);\n }",
"public char[] toChars() {\n\t\tchar[] chars = new char[this.s.length()];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tchars[i] = this.s.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}",
"public static char[] strinigToCharArray(String str) {\r\n // str.getChars(0, 0, dst, 0);\r\n return str.toCharArray();\r\n }",
"public static List charList(char[] t) {\n List<Character> charList = new ArrayList<Character>();\n for (char c : t) {\n if (!charList.contains(c)) {\n charList.add(c);\n }\n }\n return charList;\n }",
"public static List<String> splitString(String s, char c) {\r\n List<String> result = new ArrayList<String>();\r\n int startPos = 0;\r\n while (true) {\r\n int pos = s.indexOf(c, startPos);\r\n if (pos == -1) {\r\n break;\r\n }\r\n result.add(s.substring(startPos, pos));\r\n startPos = pos + 1;\r\n }\r\n if (startPos != s.length()) {\r\n result.add(s.substring(startPos, s.length()));\r\n }\r\n return result;\r\n }",
"public LinkedList<Character> getCharacterParserList() {\n\t\treturn listofCharacter;\n\t}",
"String getStringList();",
"public List<String> decode(String s) {\n List<String> res = new ArrayList<>();\n if(s == null) return res;\n return Arrays.asList(s.split(key,-1));\n }",
"public char[] getArray(String str) {\n\t\tstr = str.trim();\n\t\tchar[] result = new char[str.length()];\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tresult[i] = str.charAt(i);\n\n\t\t}\n\n\t\treturn result;\n\t}",
"protected List<String> convertToList(final String data) {\n\t\tif (data == null || data.length() == 0) {\n\t\t\treturn new ArrayList<String>();\n\t\t}\n\t\tString[] result = data.split(\",\");\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (String val : result) {\n\t\t\tlist.add(val.trim());\n\t\t}\n\t\treturn list;\n\t}",
"public final List<String> mo35562b(CharSequence charSequence) {\n Matcher matcher = this.f17092b.matcher(charSequence);\n if (!matcher.find()) {\n return C6446ey.m21315a(charSequence.toString());\n }\n ArrayList arrayList = new ArrayList(10);\n int i = 0;\n do {\n arrayList.add(charSequence.subSequence(i, matcher.start()).toString());\n i = matcher.end();\n } while (matcher.find());\n arrayList.add(charSequence.subSequence(i, charSequence.length()).toString());\n return arrayList;\n }",
"public static String[] splitByCharacterTypeCamelCase(String str) {\n return splitByCharacterType(str, true);\n }",
"private static Character[] stringToArray(String s) {\n\t\tint len = s.length();\n\t\tCharacter[] testArray = new Character[len];\n\t\tfor(int i = 0; i < len; i++) {\n\t\t\ttestArray[i] = s.charAt(i);\n\t\t}\n\t\tassert(testArray.length == s.length());\n\t\treturn testArray;\n\t}",
"public Integer[] getCharList() {\n\t\t\treturn charList;\n\t\t}",
"char[] toCharArray();",
"public List<String> decode(String s) {\n List<String> ans = new ArrayList<String>();\n int l = 0, r = 0;\n while (r < s.length()) {\n while (s.charAt(r) != '@') r++;\n int len = Integer.parseInt(s.substring(l, r++));\n ans.add(s.substring(r, r+len)); \n l = r = r+len;\n }\n \n return ans;\n }",
"public static ArrayList<String> stringToArray(String str) {\n ArrayList<String> temp = new ArrayList<String>();\n\n while (!str.equals(\"\") && str.contains(\" \")) {\n temp.add(str.substring(0, str.indexOf(\" \")));\n str = str.substring(str.indexOf(\" \") + 1, str.length());\n }\n temp.add(str);\n return temp;\n }",
"public static List<Object> decodeTextListValue(NotesCAPI notesAPI, Pointer ptr, boolean convertStringsLazily) {\n\t\tint listCountAsInt = ptr.getShort(0) & 0xffff;\n\t\t\n\t\tList<Object> listValues = new ArrayList<Object>(listCountAsInt);\n\t\t\n\t\tMemory retTextPointer = new Memory(Pointer.SIZE);\n\t\tShortByReference retTextLength = new ShortByReference();\n\t\t\n\t\tfor (short l=0; l<listCountAsInt; l++) {\n\t\t\tshort result = notesAPI.ListGetText(ptr, false, l, retTextPointer, retTextLength);\n\t\t\tNotesErrorUtils.checkResult(result);\n\t\t\t\n\t\t\t//retTextPointer[0] points to the list entry text\n\t\t\tPointer pointerToTextInMem = retTextPointer.getPointer(0);\n\t\t\tint retTextLengthAsInt = retTextLength.getValue() & 0xffff;\n\t\t\t\n\t\t\tif (retTextLengthAsInt==0) {\n\t\t\t\tlistValues.add(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (convertStringsLazily) {\n\t\t\t\t\tbyte[] stringDataArr = new byte[retTextLengthAsInt];\n\t\t\t\t\tpointerToTextInMem.read(0, stringDataArr, 0, retTextLengthAsInt);\n\n\t\t\t\t\tLMBCSString lmbcsString = new LMBCSString(stringDataArr);\n\t\t\t\t\tlistValues.add(lmbcsString);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString currListEntry = NotesStringUtils.fromLMBCS(pointerToTextInMem, (short) retTextLengthAsInt);\n\t\t\t\t\tlistValues.add(currListEntry);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn listValues;\n\t}",
"private static List<String> stringToList(String string) {\n\t // Create a tokenize that uses \\t as the delim, and reports\n\t // both the words and the delimeters.\n\t\tStringTokenizer tokenizer = new StringTokenizer(string, \"\\t\", true);\n\t\tList<String> row = new ArrayList<String>();\n\t\tString elem = null;\n\t\tString last = null;\n\t\twhile(tokenizer.hasMoreTokens()) {\n\t\t\tlast = elem;\n\t\t\telem = tokenizer.nextToken();\n\t\t\tif (!elem.equals(\"\\t\")) row.add(elem);\n\t\t\telse if (last.equals(\"\\t\")) row.add(\"\");\n\t\t\t// We need to track the 'last' state so we can treat\n\t\t\t// two tabs in a row as an empty string column.\n\t\t}\n\t\tif (elem.equals(\"\\t\")) row.add(\"\"); // tricky: notice final element\n\t\t\n\t\treturn(row);\n\t}",
"private ArrayList parseStringToList(String data){\n ArrayList<String> result = new ArrayList<String>();\n String[] splitResult = data.split(\",\");\n for(String substring : splitResult){\n result.add(substring);\n }\n return result;\n }",
"public static List<String> sentenceToList(String sentence){\n\t\treturn Arrays.asList(sentence.split(\"\\\\s+\"));\n\t}",
"public void readString(String inputString) {\n\t\tfor(int i = 0; i < inputString.length(); ++i) {\n\t\t\tstringList.add( inputString.charAt(i));\n\t\t}\n\t}",
"public static List<List<TaggedWord>> getTaggedWordListString(String str) {\n\t\treturn getTaggedWordListReader(new StringReader(str));\n\t}",
"public static String[] convertStringToArray(String str){\n String[] arr = str.split(strSeparator);\n return arr;\n }",
"public static List<Integer> stringToIntList(String string) {\n List<Integer> listInt = new LinkedList<>();\n String charBuffer = \"\";\n char[] charArray = string.toCharArray();\n for ( char c : charArray ) {\n if ( c == ',' ) {\n listInt.add(Integer.parseInt(charBuffer));\n charBuffer = \"\";\n } else if ( InputControl.testInt(c) ) {\n charBuffer += c;\n\n }\n }\n listInt.add(Integer.parseInt(charBuffer));\n return listInt;\n }",
"public static List<String> strings(){\n\n List<String> list = Arrays.asList(\"A\", \"B\", \"C\", \"D\");\n\n return list;\n\n }",
"private static List<String> convertCommaDelimitedStringToList(String delimitedString) {\n\n\t\tList<String> result = new ArrayList<String>();\n\n\t\tif (!StringUtils.isEmpty(delimitedString)) {\n\t\t\tresult = Arrays.asList(StringUtils.delimitedListToStringArray(delimitedString, \",\"));\n\t\t}\n\t\treturn result;\n\n\t}",
"@TypeConverter\r\n public String[] fromString(String value) {\r\n String[] split = value.split(SEPERATOR.toString());\r\n return value.isEmpty() ? split : split;\r\n }",
"public ArrayList<Card> stringToCards(String s) {\n ArrayList<Card> cards = new ArrayList<>();\n String[] splitS = s.split(\" \");\n for(int x = 0; x < splitS.length; x++) {\n cards.add(new Card(splitS[x].substring(0, 1), splitS[x].substring(1)));\n }\n return cards;\n }",
"public List<String> decode(String s) {\n List<String> res = new ArrayList<String>();\n int i = 0;\n while(i < s.length())\n {\n int pre = i;\n while(s.charAt(i)!='/') ++i;\n int len = Integer.valueOf(s.substring(pre,i));\n ++i;\n res.add(s.substring(i,i+len));\n i = i+len;\n }\n return res;\n }",
"public static String[] split(final String s, final char c)\n\t{\n\t\tfinal List strings = new ArrayList();\n\t\tint pos = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tint next = s.indexOf(c, pos);\n\t\t\tif (next == -1)\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos, next));\n\t\t\t}\n\t\t\tpos = next + 1;\n\t\t}\n\t\tfinal String[] result = new String[strings.size()];\n\t\tstrings.toArray(result);\n\t\treturn result;\n\t}",
"List<C1113b> mo5874b(String str);",
"public static char[] splitWordChar(String word) {\r\n\t\tchar[] letters = word.toCharArray();\r\n\t\treturn letters;\r\n\t}",
"public static List<TaggedWord> getFlatTaggedWordListString(String str) {\n\t\treturn getFlatTaggedWordListReader(new StringReader(str));\n\t}",
"public String[] getStringList();",
"public List<String> stringToList(String string) {\n List<String> description = new ArrayList<String>();\n String[] lines = string.split(\"%n\");\n\n for (String line : lines) {\n line = addSpaces(line);\n description.add(line);\n }\n\n return description;\n }",
"public static String[] toStringArray(String str) {\r\n\t\tList<Object> list = new ArrayList<Object>();\r\n\t\tfor (StringTokenizer st = new StringTokenizer(str); st.hasMoreTokens(); list.add(st.nextToken()))\r\n\t\t\t;\r\n\r\n\t\treturn toStringArray(list);\r\n\t}",
"public static ArrayList<String> words(String s){\n\t\ts = s.toLowerCase().replaceAll(\"[^a-zA-Z ]\", \"\");\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\t\tString currWord = \"\";\n\n\t\tfor(int i = 0; i < s.length(); i ++){\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (Character.isLetter(c) == false){\n\t\t\t\tarrayList.add(currWord);\n\t\t\t\tcurrWord = \"\";\n\t\t\t}else{\n\t\t\t\tcurrWord = currWord + c;\n\t\t\t}\n\t\t}\n\t\tarrayList = removeSpaces(arrayList);\n\t\treturn arrayList;\n\t}",
"private List<String> parse(String str) {\n List<String> res = new ArrayList<>();\n int par = 0;\n StringBuilder sb = new StringBuilder();\n for(char c: str.toCharArray()){\n if(c == '('){\n par++;\n }\n if(c == ')'){\n par--;\n }\n if(par == 0 && c == ' '){\n res.add(new String(sb));\n sb = new StringBuilder();\n }else{\n sb.append(c);\n }\n }\n if(sb.length() > 0){\n res.add(new String(sb));\n }\n return res;\n }",
"java.util.List<java.lang.String>\n getStrValuesList();",
"public static List<String> tokenize(final String str) {\n\tfinal LinkedList<String> list = new LinkedList<String>();\n\tfinal StringTokenizer tokenizer = new StringTokenizer(str, ALL_DELIMS, true);\n\n\twhile (tokenizer.hasMoreTokens()) {\n\t final String token = tokenizer.nextToken();\n\t // don't add spaces\n\t if (!token.equals(\" \")) {\n\t\tlist.add(token);\n\t }\n\t}\n\n\treturn list;\n }",
"public static List toListOfStringsDelimitedByCommaOrSemicolon(String s) {\n if (s == null) {\n return Collections.EMPTY_LIST;\n }\n\n List results = new ArrayList();\n // include empty last one, cft. http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#split%28java.lang.String,%20int%29\n String[] terms = s.split(SEPARATOR,-1);\n\n for (int i = 0; i < terms.length; i++) {\n //this has empty string if nothing is found\n String term = terms[i].trim();\n results.add(term);\n }\n\n return results;\n }",
"public List<String> decode(String s) {\n List<String> words = new ArrayList<>();\n if (s.length() == 0) return words;\n int i = 0;\n while (i < s.length()) {\n int d = s.indexOf(\"#\", i);\n int len = Integer.parseInt(s.substring(i , d));\n i = d + 1 + len;\n words.add(s.substring(d + 1, i));\n }\n return words;\n }",
"public String getCharacterSequence();",
"public ArrayList<ArrayList<Character> > reader(java.io.InputStream in) throws IOException{\n String s = \"\";\n int data = in.read();\n while(data!=-1){\n s += String.valueOf((char)data);\n data = in.read();\n }\t\t\t\t\t\t\t\t// s now has the input file stored as a string\n ArrayList<ArrayList<Character> > arr = new ArrayList<>();\n for(int i = 0;i<s.length();){\n ArrayList<Character> a = new ArrayList<>();\n while(s.charAt(i)!='\\n'){\n if((s.charAt(i)-'a'>=0&&s.charAt(i)-'a'<=25)||(s.charAt(i)-'0'>=0&&s.charAt(i)-'0'<=9)){ //taking only alphanumerics\n a.add(s.charAt(i));\n }\n i++;\n }\n arr.add(a);\n i++;\n }\n return arr;\n }",
"public char[] getCharArray(String name)\r\n {\r\n String[] raw = getString(name).split(\",\");\r\n char[] data = new char[raw.length];\r\n for( int i=0; i<raw.length; i++ )\r\n data[i] = raw[i].charAt(0);\r\n \r\n return data;\r\n }",
"public Character[] getCharacters() {\n return chars.toArray(new Character[0]);\n }",
"private List<PTypes> dissectListTypes(String cellString){\n return Arrays.stream(cellString.split(\",\\\\s+\"))\n .map(PTypes::valueOf)\n .collect(Collectors.toList());\n }",
"public static ArrayList<Character> getArray(String name){\n int ID = Integer.parseInt(Pokemon.nameToID(name));\n return getArray(ID);\n }",
"public static List<String> deserialize( String value )\n {\n return deserialize( value, DEFAULT_DELIMITER );\n }",
"public static String[] split(char c, String value) {\n\t\t int count,idx;\n\t\t for(count=1,idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,++idx),++count);\n\t\t String[] rv = new String[count];\n\t\t if(count==1) {\n\t\t\t rv[0]=value;\n\t\t } else {\n\t\t\t int last=0;\n\t\t\t count=-1;\n\t\t\t for(idx=value.indexOf(c);idx>=0;idx=value.indexOf(c,idx)) {\n\t\t\t\t rv[++count]=value.substring(last,idx);\n\t\t\t\t last = ++idx;\n\t\t\t }\n\t\t\t rv[++count]=value.substring(last);\n\t\t }\n\t\t return rv;\n\t }",
"public List<TilePojo> getCharacterList() {\n\t\tList<TilePojo> charList;\n\t\tcharList = getFixedNumberChar(characterList, 12);\n\t\treturn charList;\n\t}",
"public List<String> decode(String s) {\r\n int i = 0, n = s.length();\r\n List<String> output = new ArrayList();\r\n while (i < n) {\r\n int length = stringToInt(s.substring(i, i + 4));\r\n i += 4;\r\n output.add(s.substring(i, i + length));\r\n i += length;\r\n }\r\n return output;\r\n }",
"public ArrayList separarRut(String rut){\r\n this.lista = new ArrayList<>();\r\n if(rut.length()==12 || rut.length()==11){ \r\n if(rut.length()==12){\r\n this.lista.add(Character.toString(rut.charAt(0))+Character.toString(rut.charAt(1)));\r\n this.lista.add(Character.toString(rut.charAt(3))+Character.toString(rut.charAt(4))+Character.toString(rut.charAt(5)));\r\n this.lista.add(Character.toString(rut.charAt(7))+Character.toString(rut.charAt(8))+Character.toString(rut.charAt(9)));\r\n this.lista.add(Character.toString(rut.charAt(11)));\r\n }else{\r\n this.lista.add(Character.toString(rut.charAt(0)));\r\n this.lista.add(Character.toString(rut.charAt(2))+Character.toString(rut.charAt(3))+Character.toString(rut.charAt(4)));\r\n this.lista.add(Character.toString(rut.charAt(6))+Character.toString(rut.charAt(7))+Character.toString(rut.charAt(8)));\r\n this.lista.add(Character.toString(rut.charAt(10)));\r\n } \r\n } \r\n return this.lista;\r\n }",
"private static char[] input(String string) {\n\t\tchar[] result = new char[4];\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tresult[i] = string.charAt(i);\n\t\treturn result;\n\t}",
"public static String[] splitWordString(String word) {\r\n\t\tString[] letters = word.split(\"[^a-z^A-Z]\");\r\n\t\treturn letters;\r\n\t}",
"public List<String> decode(String s) {\n \tint i=0;\n List<String> result = new ArrayList<String>();\n while(i<s.length()){\n int j=i+1;\n while(s.charAt(j)!='[') j++;\n \tString n=s.substring(i, j);\n int t=Integer.valueOf(n);\n System.out.print(t);\n result.add(s.substring(i+n.length()+1, i+n.length()+1+t));\n \n i=i+n.length()+1+t+1;\n }\n return result;\n }",
"static String[] splitIntoAlphasAndNums( String s )\n\t{\n\t\tif ( \"\".equals( s ) )\n\t\t{\n\t\t\treturn new String[]{\"\"};\n\t\t}\n\t\ts = s.toLowerCase( Locale.ENGLISH );\n\n\t\tList<String> splits = new ArrayList<String>();\n\t\tString tok = \"\";\n\n\t\tchar c = s.charAt( 0 );\n\t\tboolean isDigit = isDigit( c );\n\t\tboolean isSpecial = isSpecial( c );\n\t\tboolean isAlpha = !isDigit && !isSpecial;\n\t\tint prevMode = isAlpha ? 0 : isDigit ? 1 : -1;\n\n\t\tfor ( int i = 0; i < s.length(); i++ )\n\t\t{\n\t\t\tc = s.charAt( i );\n\t\t\tisDigit = isDigit( c );\n\t\t\tisSpecial = isSpecial( c );\n\t\t\tisAlpha = !isDigit && !isSpecial;\n\t\t\tint mode = isAlpha ? 0 : isDigit ? 1 : -1;\n\t\t\tif ( mode != prevMode )\n\t\t\t{\n\t\t\t\tif ( !\"\".equals( tok ) )\n\t\t\t\t{\n\t\t\t\t\tsplits.add( tok );\n\t\t\t\t\ttok = \"\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// alpha=0, digit=1. Don't append for specials.\n\t\t\tif ( mode >= 0 )\n\t\t\t{\n\t\t\t\t// Special case for minus sign.\n\t\t\t\tif ( i == 1 && isDigit && '-' == s.charAt( 0 ) )\n\t\t\t\t{\n\t\t\t\t\ttok = \"-\";\n\t\t\t\t}\n\t\t\t\ttok += c;\n\t\t\t}\n\t\t\tprevMode = mode;\n\t\t}\n\t\tif ( !\"\".equals( tok ) )\n\t\t{\n\t\t\tsplits.add( tok );\n\t\t}\n\t\tsplits.add( \"\" ); // very important: append empty-string to all returned splits.\n\t\treturn splits.toArray( new String[ splits.size() ] );\n\t}",
"public String[] convertSentToArrayOfWords(String s){\n\t\tString [] arr = s.split(\" \");\n\n\t\treturn arr;\n\t}",
"@Override\n public Collection<Character> getAll() {\n return characters;\n }",
"public ArrayList<Character> getListCharacterInLocation(String inputLocation) {\r\n\r\n\t\tArrayList<Character> listOutput = new ArrayList<Character>();\r\n\t\tfor (Character curCharacter : listCharacter)\r\n\t\t{\r\n\t\t\tif (curCharacter.getLocation() == inputLocation)\r\n\t\t\t\tlistOutput.add(curCharacter);\r\n\t\t}\r\n\t\treturn listOutput;\r\n\t}",
"java.util.List<com.vine.vinemars.net.pb.SocialMessage.LetterObj> \n getLettersList();",
"public char[] getCharacters() {\n return characters;\n }",
"public static String[] split(final String s, final char c)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn new String[0];\n\t\t}\n\t\tfinal List<String> strings = new ArrayList<String>();\n\t\tint pos = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tint next = s.indexOf(c, pos);\n\t\t\tif (next == -1)\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstrings.add(s.substring(pos, next));\n\t\t\t}\n\t\t\tpos = next + 1;\n\t\t}\n\t\tfinal String[] result = new String[strings.size()];\n\t\tstrings.toArray(result);\n\t\treturn result;\n\t}",
"public List<String> letterCasePermutation(String S) {\n List<String> ans = new ArrayList<>();\n backtrack(ans, 0, S.toCharArray());\n return ans;\n }",
"List<String> mo5876c();",
"public Deque<Character> wordToDeque(String word){\n //Deque<Character> l = new LinkedListDeque<Character>();\n Deque<Character> l = new ArrayDeque<Character>();\n char c;\n for(int i = 0; i < word.length(); i++){\n c = word.charAt(i);\n l.addLast(c);\n }\n return l;\n }",
"public static List<String> deserialize( String value, String delimiter )\n {\n return Arrays.asList( value.split( delimiter ) );\n }",
"public List<String> letterCasePermutation(String S) {\n if (S.length() <= 0) {\n List<String> ret = new ArrayList<>();\n ret.add(\"\");\n return ret;\n }\n\n if (S.length() == 1) {\n List<String> ret = new ArrayList<>();\n char c = S.charAt(0);\n ret.add(S);\n if (Character.isLetter(c)) {\n if (Character.isLowerCase(c)) {\n ret.add(String.valueOf(Character.toUpperCase(c)));\n } else {\n ret.add(String.valueOf(Character.toLowerCase(c)));\n }\n }\n\n return ret;\n }\n\n List<String> ret = letterCasePermutation(S.substring(1));\n\n char c = S.charAt(0);\n if (Character.isLetter(c)) {\n List<String> ret2 = new LinkedList<>(ret);\n appendToFront(Character.toLowerCase(c), ret);\n appendToFront(Character.toUpperCase(c), ret2);\n ret.addAll(ret2);\n } else {\n appendToFront(c, ret);\n }\n\n return ret;\n }",
"public char[] getAsChars() {\n return (char[])data;\n }",
"private String[] decode(String encoding) {\n ArrayList<String> components = new ArrayList<String>();\n StringBuilder builder = new StringBuilder();\n int index = 0;\n int length = encoding.length();\n while (index < length) {\n char currentChar = encoding.charAt(index);\n if (currentChar == SEPARATOR_CHAR) {\n if (index + 1 < length && encoding.charAt(index + 1) == SEPARATOR_CHAR) {\n builder.append(SEPARATOR_CHAR);\n index += 2;\n } else {\n components.add(builder.toString());\n builder.setLength(0);\n index++;\n }\n } else {\n builder.append(currentChar);\n index++;\n }\n }\n components.add(builder.toString());\n return components.toArray(new String[components.size()]);\n }",
"public List<String> decode(String s) {\n String[] words = s.split(\" # \", -1);\n List<String> ret = new ArrayList<>();\n for (int i = 0; i < words.length - 1; i++) {\n ret.add(words[i].replaceAll(\"##\", \"#\"));\n }\n return ret;\n }",
"public static Set<Character> symbols(String str) {\n\t\tSet<Character> set = new HashSet<Character>();\n\t\tfor (int i=0; i<str.length(); i++) {\n\t\t\tchar ch = str.charAt(i);\n\t\t\tset.add(ch);\n\t\t}\n\t\treturn set;\n\t}",
"protected void readCharacters() {\n try {\r\n File f = new File(filePath);\r\n FileInputStream fis = new FileInputStream(f);\r\n ObjectInputStream in = new ObjectInputStream(fis);\r\n characters = (List<character>) in.readObject();\r\n in.close();\r\n }\r\n catch(Exception e){}\r\n adapter.addAll(characters);\r\n }",
"protected final List getValuesAsList(String values)\r\n {\r\n List list = new LinkedList();\r\n StringTokenizer tok = new StringTokenizer(values, DELIMITER);\r\n\r\n while(tok.hasMoreTokens())\r\n {\r\n // extract each value, trimming whitespace\r\n list.add(tok.nextToken().trim());\r\n }\r\n\r\n // return the list\r\n return list;\r\n }",
"public Deque<Character> wordToDeque(String word) {\n Deque<Character> result = new ArrayDeque<>();\n for (int i = 0; i < word.length(); i++) {\n result.addLast(word.charAt(i));\n }\n return result;\n }",
"ImmutableList<SchemaOrgType> getCharacterList();",
"public static ArrayList<String> procesarEntrada(String input)\n {\n ArrayList<String> parse = new ArrayList<String>();\n String word = \"\";\n\n for (int i = 0; i < input.length(); i++)\n {\n if (input.charAt(i) != '&')\n word += input.charAt(i);\n\n if (input.charAt(i) == '&' || i == input.length() - 1)\n {\n parse.add(word);\n word = \"\";\n } \n }\n\n return parse;\n }",
"public static List<String> splitBitStrings(String bitString){\n\t\tList<String> LR = new ArrayList<String>();\n\t\tString L = bitString.substring(0,(bitString.length()/2));\n\t\tString R = bitString.substring((bitString.length()/2),bitString.length());\n\t\tLR.add(L);\n\t\tLR.add(R);\n\t\t\n\t\treturn LR;\n\n\t}",
"public String toStringPrologFormatListChar()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Character ch : this.listCharacter)\r\n\t\t{\r\n\t\t\toutput += ch.CharToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"public static ArrayList<String> getListString(String key, Context context) {\n return new ArrayList<>(Arrays.asList(TextUtils.split(getSharedPreferences(context).getString(key, \"\"), \"‚‗‚\")));\n }",
"public static StringList createFrom(String str, String regexp) {\n if ((str == null) || (regexp == null))\n return null;\n\n String strs[] = str.split(regexp);\n return new StringList(strs);\n }",
"@Test\n public void testStringToList() {\n // test whether empty string converts to empty list\n logger.trace(\"Empty string handled?\");\n String string = \"\";\n List<String> list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 0);\n\n // test whether single space converts to empty list\n logger.trace(\"Single space handled?\");\n string = \" \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 0);\n\n // test whether single item surrounded by spaces converts to list of size 1\n logger.trace(\"Item surrounded by spaces handled?\");\n string = \" foo \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 1);\n\n // test whether two item string converts to list of size 2\n logger.trace(\"Two item string handled?\");\n string = \" foo bar \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 2);\n }",
"public static List<String> parseStringToList(String str) {\n List<String> list = new LinkedList<>();\n if (StringUtils.isEmpty(str)){\n return list;\n }\n String[] tokens = str.trim().split(\"\\\\s*,\\\\s*\");\n if(tokens != null && tokens.length > 0) {\n for (String column : tokens) {\n list.add(column);\n }\n }\n return list;\n }",
"Set<String> getUniqueCharacterStrings();",
"List<C1114c> mo5886k(String str);",
"public static void main(String[] args) {\n List<Character> charachterList = Arrays.asList('T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'S', 'p', 'a', 'r', 't', 'a', '!');\n String strings = charachterList.stream()\n .map(c -> c.toString())\n .collect(Collectors.joining());\n\n System.out.println(strings);\n }",
"private List<String[]> convertArgumentsToListOfCommands(String argumentsAsString) {\n List<String> listOfLines = Arrays.asList(argumentsAsString.split(\"\\n\"));\n\n listOfLines.remove(0);\n listOfLines.remove(listOfLines.size());\n\n return listOfLines\n .stream()\n .map(line -> line.split(\" \"))\n .collect(Collectors.toList());\n }",
"private static String[] tokenizeInput(String input) {\r\n\t\tArrayList<String> tokens = new ArrayList<String>(8);\r\n\t\t\r\n\t\tScanner inputScanner = new Scanner(input);\r\n\t\twhile (inputScanner.hasNext()) {\r\n\t\t\ttokens.add(inputScanner.next());\r\n\t\t}\r\n\t\treturn tokens.toArray(new String[tokens.size()]);\r\n\t}",
"public List<String> sourceString() {\n // Processing is done here\n return Arrays.asList(\"tomato\", \"carrot\", \"cabbage\");\n }"
] |
[
"0.7369356",
"0.71349055",
"0.6944308",
"0.6338762",
"0.6235387",
"0.61783934",
"0.6098405",
"0.60450757",
"0.59775114",
"0.5972257",
"0.59637046",
"0.59600306",
"0.5953836",
"0.5941537",
"0.5879383",
"0.5875549",
"0.58586013",
"0.5853219",
"0.5838874",
"0.58359134",
"0.5813951",
"0.572853",
"0.57162225",
"0.57082516",
"0.569137",
"0.5676212",
"0.5567454",
"0.5549483",
"0.5545924",
"0.548633",
"0.5486189",
"0.5471271",
"0.5470586",
"0.5448925",
"0.5448462",
"0.54457414",
"0.5434819",
"0.5399972",
"0.5393101",
"0.53917205",
"0.5381346",
"0.5365924",
"0.5365805",
"0.5363877",
"0.5357214",
"0.53558856",
"0.534513",
"0.5338452",
"0.5322169",
"0.5314691",
"0.5314512",
"0.53142077",
"0.5298929",
"0.52954197",
"0.5276216",
"0.5270207",
"0.52603227",
"0.5257525",
"0.5247087",
"0.5246669",
"0.5235122",
"0.52229685",
"0.52093035",
"0.52092713",
"0.51825535",
"0.5160456",
"0.5153185",
"0.51354116",
"0.5118888",
"0.5095505",
"0.5092481",
"0.50887984",
"0.5083615",
"0.5071107",
"0.5069938",
"0.5048426",
"0.50483125",
"0.5046927",
"0.5035754",
"0.50330484",
"0.50240064",
"0.49985436",
"0.4991718",
"0.49915314",
"0.4974168",
"0.49714175",
"0.4963256",
"0.49552515",
"0.49443462",
"0.49403462",
"0.49332762",
"0.49315187",
"0.49289092",
"0.49205458",
"0.49038368",
"0.48988324",
"0.48816037",
"0.48742887",
"0.4873603",
"0.48734507",
"0.48633367"
] |
0.0
|
-1
|
Setter and getter methods
|
public String getName() {
return this.name;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String setValue();",
"protected abstract Set method_1559();",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"@Override\n public void get() {}",
"public void get() {\n }",
"public T get() {\n return value;\n }",
"@Override\n String get();",
"public String get();",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public String setter() {\n\t\treturn prefix(\"set\");\n\t}",
"public void setdat()\n {\n }",
"public abstract String get();",
"public Object get()\n {\n return m_internalValue;\n }",
"public V get() {\n return value;\n }",
"protected Object doGetValue() {\n\t\treturn value;\n\t}",
"public Object getNewValue()\n {\n return newValue;\n }",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }",
"public void setAge(int age) { this.age = age; }",
"public int getAge() {return age;}",
"public String get()\n {\n return this.string;\n }",
"public int getAge(){\n return age;\n }",
"String get();",
"String get();",
"public int\t\tget() { return value; }",
"public Object getValue(){\n \treturn this.value;\n }",
"public String getSetter() {\n return \"set\" + getCapName();\n }",
"private void assignment() {\n\n\t\t\t}",
"V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}",
"public abstract void set(M newValue);",
"public int getSet() {\n return set;\n }",
"public Object getValue() { return _value; }",
"public int getArmadura(){return armadura;}",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"public int getlife(){\r\n return life;\r\n}",
"boolean get();",
"public int get () { return rating; }",
"public String get()\n {\n return val;\n }",
"public int getAge()\r\n {\r\n return age;\r\n }",
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}",
"public int getValue() {\n/* 450 */ return this.value;\n/* */ }",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"public T set(T obj);",
"public Object getValue()\n {\n\treturn value;\n }",
"public void setPrice(double price){this.price=price;}",
"public final Object get() {\n return getValue();\n }",
"public Student getStudent() { return student; }",
"@Override\n public Object getValue()\n {\n return value;\n }",
"public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }",
"public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n String expResult = \"nom1\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n }",
"V getValue() {\n return value;\n }",
"@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}",
"public Object getValue() { return this.value; }",
"private ReadProperty()\r\n {\r\n\r\n }",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"String getValue() {\n return mValue;\n }",
"public void setDataGetter(Object instance, Method method) {\n this.instance = instance;\n this.method = method;\n }",
"public void setAge(int age);",
"private SetProperty(Builder builder) {\n super(builder);\n }",
"public int value() { \n return this.value; \n }",
"@Test\n\tpublic void testSet() {\n\t}",
"@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}",
"public S getValue() { return value; }",
"public String get() {\n return value;\n\t}",
"public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }",
"private void setData() {\n\n }",
"public void setValue(Object value) { this.value = value; }",
"@Override\r\n public Object getValue() {\r\n return value;\r\n }",
"@Deprecated\n final Method setter() {\n return this.setter;\n }",
"@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}",
"protected void setValue(T value) {\r\n this.value = value;\r\n }",
"public void testGetterAndSetter() {\n UDDIOperationInput uddiOperationInput = new UDDIOperationInput();\n\n //Test Get and Set ElementType\n QName qName = new QName(UDDI_NS_URI, \"input\");\n assertNotNull(\"getElementType was null\",\n uddiOperationInput.getElementType());\n assertTrue(\"getElementType was incorrect\",\n uddiOperationInput.getElementType().equals(qName));\n\n //Test Get and Set Required\n uddiOperationInput.setRequired(isRequired);\n assertFalse(\"getRequired returned true\",\n uddiOperationInput.getRequired());\n isRequired = true;\n uddiOperationInput.setRequired(isRequired);\n assertTrue(\"getRequired returned false\",\n uddiOperationInput.getRequired());\n\n //Test Get and Set BusinessName\n uddiOperationInput.setBusinessName(businessName);\n assertTrue(\"getBusinessName incorrect\",\n uddiOperationInput.getBusinessName().equals(businessName));\n\n //Test Get and Set ServiceName\n uddiOperationInput.setServiceName(serviceName);\n assertTrue(\"getServiceName incorrect\",\n uddiOperationInput.getServiceName().equals(serviceName));\n }",
"public Value getValue(){\n return this.value;\n }",
"public int getNumber(){return number;}",
"public void setX(int x) { this.x=x; }",
"private Get() {}",
"private Get() {}",
"public int setValue (int val);",
"public int getAge()\n {\n return age;\n }",
"public void set(String name, Object value) {\n }",
"@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}",
"@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}",
"@Test\n public void setAndGetTest() {\n GameEntity t2 = new GameEntity(new Rectangle(10.0, 10.0));\n\n //Set and getting temp node\n t2.getView().setTranslateX(5.0);\n t2.getView().setTranslateY(5.0);\n Circle temp = new Circle(4);\n t2.setView(temp);\n assertEquals(\"Expected view to be changed\", temp, t2.getView());\n\n //Testing the alive and dead of the object\n t2.setAlive(false);\n assertEquals(\"Expected the object state to be set to dead.\", false, t2.isAlive());\n assertEquals(\"Expected the reverse of object state to be set to alive.\", true, t2.isDead());\n }",
"void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}",
"public int getx(){\r\n return z;\r\n}",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public String get() {\n return this.value;\n }",
"public void setValue(S s) { value = s; }",
"public abstract void setValue(T value);",
"void setAge(int age);",
"public byte[] get(){\n return this.value;\n }",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"boolean getSet();",
"@Test\n public void test_getTelephone() {\n String value = \"new_value\";\n instance.setTelephone(value);\n\n assertEquals(\"'getTelephone' should be correct.\",\n value, instance.getTelephone());\n }"
] |
[
"0.67781967",
"0.67664635",
"0.669132",
"0.66366184",
"0.65829295",
"0.641256",
"0.6402833",
"0.63822615",
"0.6356761",
"0.6356761",
"0.62800926",
"0.6274028",
"0.6252697",
"0.62066245",
"0.6175351",
"0.615297",
"0.6149969",
"0.61195374",
"0.61106735",
"0.610167",
"0.6094887",
"0.60557044",
"0.60371226",
"0.60211337",
"0.5987287",
"0.5987287",
"0.598187",
"0.5971224",
"0.59677565",
"0.5958271",
"0.5947582",
"0.59455436",
"0.59422445",
"0.59420955",
"0.59230584",
"0.5922745",
"0.5907385",
"0.5894459",
"0.5882674",
"0.5880071",
"0.5878895",
"0.58775747",
"0.5867453",
"0.5865253",
"0.5863561",
"0.58625144",
"0.5860847",
"0.5858629",
"0.5857364",
"0.5853879",
"0.5842234",
"0.58387756",
"0.5835144",
"0.5832693",
"0.5825616",
"0.5825497",
"0.58249533",
"0.58196795",
"0.581944",
"0.58124745",
"0.581087",
"0.58077514",
"0.5806135",
"0.580396",
"0.5800437",
"0.57990986",
"0.5792879",
"0.5787344",
"0.578537",
"0.578357",
"0.5783296",
"0.5783157",
"0.5782118",
"0.5775491",
"0.57649994",
"0.575818",
"0.5749388",
"0.5746149",
"0.574456",
"0.5737207",
"0.5732177",
"0.5732177",
"0.5730952",
"0.572733",
"0.5725506",
"0.5721379",
"0.5721379",
"0.5717956",
"0.57168007",
"0.5712314",
"0.5711649",
"0.5702685",
"0.57020897",
"0.5702033",
"0.5698753",
"0.56982756",
"0.56939363",
"0.568874",
"0.56869453",
"0.5681406",
"0.568102"
] |
0.0
|
-1
|
=========================================================== Getter & Setter ===========================================================
|
public NewsSet getParsedData() {
return this.newsSet;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n void init() {\n }",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {\n }",
"@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"private void assignment() {\n\n\t\t\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\npublic void setAttributes() {\n\t\n}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void initialize() {\n\n \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 getData() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void init() {}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void setData() {\n\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"public void setdat()\n {\n }",
"@Override\n String get();",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private Value() {\n\t}",
"String setValue();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public String getName () { return this.name; }",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"private ReadProperty()\r\n {\r\n\r\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n public void init() {\n }",
"@Override\n protected void updateProperties() {\n }",
"@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"@Override\n public Object getValue()\n {\n return value;\n }",
"@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}",
"@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}",
"@Override\r\n public Object getValue() {\r\n return value;\r\n }",
"public int getValue() {\n/* 450 */ return this.value;\n/* */ }",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"public Object getValue() { return _value; }",
"public int\t\tget() { return value; }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public Change() {\n // Required for WebServices to work. Comment added to please Sonar.\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void onSetSuccess() {\n }",
"@Override\n public void onSetSuccess() {\n }",
"public Object get()\n {\n return m_internalValue;\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public int getValue() {\n return super.getValue();\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void init() {\n\n super.init();\n\n }",
"@Override\n\tpublic String get() {\n\t\treturn null;\n\t}",
"public contrustor(){\r\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"@Override\n public String getName(){\n return Name; \n }",
"@Override\n\tprotected void initialize() {\n\n\t}"
] |
[
"0.6530707",
"0.6429242",
"0.6401354",
"0.638821",
"0.63802034",
"0.62655497",
"0.62175053",
"0.61730605",
"0.61435974",
"0.61435974",
"0.6134486",
"0.6133773",
"0.61026585",
"0.60648656",
"0.6047741",
"0.60232216",
"0.60173035",
"0.60173035",
"0.60173035",
"0.60173035",
"0.60173035",
"0.60173035",
"0.6016523",
"0.60161823",
"0.6005834",
"0.59986705",
"0.59904236",
"0.59794915",
"0.5975069",
"0.5975069",
"0.5975069",
"0.5975069",
"0.5975069",
"0.5975069",
"0.59746593",
"0.59694827",
"0.5964324",
"0.59561515",
"0.59543073",
"0.59543073",
"0.59543073",
"0.5935449",
"0.5935449",
"0.5929956",
"0.5925435",
"0.5925435",
"0.59245694",
"0.5923251",
"0.5918898",
"0.5917767",
"0.5917767",
"0.5914409",
"0.5912342",
"0.590722",
"0.590667",
"0.59035397",
"0.5893126",
"0.58885497",
"0.58780086",
"0.5866932",
"0.5859323",
"0.585784",
"0.5856032",
"0.5854469",
"0.5852022",
"0.5845922",
"0.5833384",
"0.58246213",
"0.5821681",
"0.5821681",
"0.581357",
"0.58111197",
"0.5810749",
"0.5805641",
"0.58025366",
"0.5793448",
"0.5793448",
"0.5793448",
"0.5793448",
"0.5793448",
"0.5792494",
"0.5780561",
"0.5776149",
"0.5776149",
"0.5776149",
"0.5770453",
"0.5770453",
"0.57643485",
"0.57628244",
"0.57601833",
"0.57568115",
"0.57568115",
"0.57568115",
"0.57547075",
"0.5754456",
"0.57512623",
"0.57452893",
"0.57431996",
"0.5736605",
"0.57356787",
"0.57232004"
] |
0.0
|
-1
|
Gets be called on opening tags like: Can provide attribute(s), when xml was like:
|
@Override
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {
// <document>
if (localName.equals("document")) {
curArticle = new ArticleSmallOpinion();
curTagiot = new ArrayList<Tagit>();
// add values
if (atts.getValue("doc_id") != null) curArticle.setDoc_id(atts.getValue("doc_id"));
if (atts.getValue("title") != null) curArticle.setTitle(atts.getValue("title"));
if (atts.getValue("sub_title") != null) curArticle.setSubTitle(atts.getValue("sub_title"));
if (atts.getValue("f7") != null) curArticle.setF7(atts.getValue("f7"));
String author = atts.getValue("author_icon");
author = extractImageUrl(author);
if (atts.getValue("author_icon") != null) curArticle.setAuthorImgURL(author);
if (atts.getValue("Created_On") != null) curArticle.setCreatedOn(atts.getValue("Created_On"));
}
// <f2>
else if (localName.equals("f2")) {
if (atts.getValue("src") != null) curArticle.setF2(atts.getValue("src"));
// currently not holding image photographer via "title="
}
// <f3>
if (localName.equals("f3")) {
if (atts.getValue("src") != null) curArticle.setF3(atts.getValue("src"));
// currently not holding image photographer via "title="
}
// <f4>
else if (localName.equals("f4")) {
if (atts.getValue("src") != null) curArticle.setF4(atts.getValue("src"));
// currently not holding image photographer via "title="
}
// <tagit>
else if (localName.equals("tagit")) {
Tagit tagit = new Tagit(atts.getValue("id"), atts.getValue("simplified"), "");
curTagiot.add(tagit);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void addAttr(Attributes attr) throws SAXException {\n\t}",
"@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\n }",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }",
"@Override\n public String getXMLTag() {\n return XMLTAG;\n }",
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\n\t\t// On débute une balise dont on veut le contenu textuel\n\t\tif (qName.equalsIgnoreCase(mXmlTagContainingText)) {\n\t\t\tinsideTextTag = true;\n\t\t}\n\n\t\tif (debug) {\n\t\t\tfor (int indent=0 ; indent < elementOffsetStackCursor +1; indent++) {System.out.print (\"--\");}\n\t\t\tSystem.out.print (\"Debug: startElement >\"+qName+\"< \");\n\t\t\tfor (int indent=0 ; indent < attributes.getLength() ; indent++) {System.out.print (\">\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );}\n\t\t\tSystem.out.println ();\n\t\t}\n\n\t\t// So far, I do not why but accessing here to the attributes values \n\t\t// prevent the case that further in the createAnnotation method, \n\t\t// you obtain a substring of attributes.toString which does not correspond to an attribute value \n\t\t// someway the current solution acts as a clone...\n\t\tfor (int indent=0 ; indent < attributes.getLength() ; indent++) {\n\t\t\tattributes.getValue(indent);\n\t\t\t//if (attributes.getValue(indent).startsWith(\"mph=\\\"\"))\t\t{ \n\t\t\t//\tSystem.out.println (\"Debug: startElement >\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );\n\t\t\t//}\n\t\t\t//System.out.print (\">\"+attributes.getLocalName(indent)+\"=\\\"\"+attributes.getValue(indent)+\"\\\"< \" );\n\t\t}\n\n\t\t// on stocke des informations concernant l'élément XML courant en l'empilant\n\t\t// le problème est que l'on n'a pas accès au begin et end offset d'une balise en même temps \n\t\t// et qu'il faut garder une trace des begins des balises ouvertes lorsque l'on rencontre leur end \n\t\t//if ( attributes.getLength() == 0) attributes = null;\n\t\tXMLElement xE = new XMLElement(uri, localName, qName, attributes);\n\t\telementOffsetStack.add(xE);\n\n\t\telementOffsetStackCursor++;\n\t\tcurrentOpenElementWithTheBeginToSet++;\n\n\t\t// debug\n\t\tif (debug) {\n\t\t\tfor (int indent=0 ; indent < elementOffsetStackCursor ; indent++) {System.out.print (\"--\");}\n\t\t\t//System.out.println (\"Debug: startElement empile uri>\" +uri+\"< localName>\"+localName+\"< qName>\"+qName+\"< arrayListIndex>\"+arrayListIndex+\" curentOpenTagToAnnotate>\"+curentOpenTagToAnnotate+\"<\");\n\t\t\tSystem.out.println (\"Debug: startElement tag>\"+qName+\"< que l'on empile ; il y a >\"+\n\t\t\telementOffsetStackCursor+\"< éléments dans la pile ; il y a >\"+\n\t\t\t\t\tcurrentOpenElementWithTheBeginToSet+\"< balise en attente dont le begin est définir\");\n\n\t\t}\n\t}",
"@Override\n\tpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException {\n\t\tCurrentTag=arg2;\n\t\tSystem.out.println(\"此处处理的元素是:\"+arg2);\n\t}",
"static void openTag(String name) { openTag(name,true); }",
"@Override\n\t\tpublic void startElement(String uri, String localName, String qName,\n\t\t\t\tAttributes atts) throws SAXException {\n\t\t\tNode newNode = new Node(localName);\n\t\t\t\n\t\t\tfor(int i = 0; i < atts.getLength(); i++){\n\t\t\t\tnewNode.putAttribute(atts.getQName(i), atts.getValue(i));\n\t\t\t}\n\t\t\t\n\t\t\tnodeStack.lastElement().put(newNode);\n\t\t\tnodeStack.push(newNode);\n\t\t\t\n\t\t\tbuffer = new StringBuffer();\n\t\t\t\n\t\t\tLog.d(\"xml\", uri + \" | \" + localName + \" | \" + qName + \" | \");\n\t\t\tfor(int i = 0; i < atts.getLength(); i++)\n\t\t\t\tLog.d(\"xml\", \"att(\" + atts.getLocalName(i) + \"): \" + atts.getValue(i));\n\t\t}",
"@Override public void visitAttribute(Attribute attr) {\n }",
"@Override\n public void startElement(String uri, String localName, String qName,\n Attributes attributes) throws SAXException {\n\n elementOn = true;\n\n if (localName.equals(\"begin\"))\n {\n data = new CallMTDGetterSetter();\n } else if (localName.equals(\"OHC_CALL_REPORT\")) {\n /**\n * We can get the values of attributes for eg. if the CD tag had an attribute( <CD attr= \"band\">Akon</CD> )\n * we can get the value \"band\". Below is an example of how to achieve this.\n *\n * String attributeValue = attributes.getValue(\"attr\");\n * data.setAttribute(attributeValue);\n *\n * */\n }\n }",
"@Override public void visitAttribute(Attribute attr) {\n }",
"@Override public void visitAttribute(Attribute attr) {\n }",
"@Override\n\tpublic void visitAttribute(Object attr) {\n\t}",
"public String getTagName()\n {\n return \"Attribute\";\n }",
"@Override\n\tpublic void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException {\n\t\tSystem.out.println(arg2+\"解析开始\");\n\t}",
"@Override\n public void visitAttribute(Attribute attribute) {\n }",
"@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes attributes) throws SAXException {\n//\t\ttag=localName;\n//\t\t\tif(localName.equals(\"nombre\")){\n//\t\t\t\tSystem.out.print(\"AUTOR :\");\n//\t\t\t}\n//\t\t\tif(localName.equals(\"descripcion\")){\n//\t\t\t\tSystem.out.print(\"Descripcion:\");\n//\t\t\t}\n\t\t\tswitch(localName){\n\t\t\tcase \"autor\":\n\t\t\t\tautor=new Autor(\"\",attributes.getValue(\"url\"),\"\");\n\t\t\t\tbreak;\n\t\t\tcase \"frase\":\n\t\t\t\tfrase=new Frase(\"\",\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(localName.equals(\"autor\")){\n\t\t\t\t\n\t\t\t\t//url=attributes.getValue(\"url\");\n\t\t\t}\n\t\t\t//System.out.println(\"Start \"+localName);\n\t}",
"public void handleOpenElement(String elementName, Map<String, String> attributes, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"Start element: \" + elementName);\r\n }",
"@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes atts) throws SAXException {\n\t\t\n\t}",
"@Override\r\n\tpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\t}",
"public static String xmlTag() { return XMLTAG; }",
"public static String xmlTag() { return XMLTAG; }",
"void handleStartTag(String sTagName, HashMap attributes,boolean standAlone) {\r\n pageList.add(new StandAloneElement(sTagName, attributes, null));\r\n }",
"public void doTag()\n throws JspException\n {\n if (hasErrors()) {\n reportErrors();\n return;\n }\n\n JspTag tag = SimpleTagSupport.findAncestorWithClass(this, IAttributeConsumer.class);\n if (!(tag instanceof IAttributeConsumer)) {\n String s = Bundle.getString(\"Tags_AttributeInvalidParent\");\n registerTagError(s, null);\n reportErrors();\n return;\n }\n\n IAttributeConsumer ac = (IAttributeConsumer) tag;\n ac.setAttribute(_name, _value, _facet);\n return;\n }",
"@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}",
"static void openTag(String name, boolean endTag) {\n openMinorTag(name);\n if (endTag)\n closeTag(false);\n }",
"@Override\npublic void setAttributes() {\n\t\n}",
"@Override\n\tprotected abstract OpenableElementInfo createElementInfo();",
"@Override\n void startElement(String uri, String localName, String qName, Attributes attributes);",
"@Test\n\tpublic void addAttribute() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\n\t\tXMLTagParser.editElement(\"Person\", \"name\", \"tony\");\n\t\tassertEquals(XMLTagParser.getTagValueFromElement(\"Person\", \"name\"), \"tony\");\n\t}",
"private XMLDocument startElement(String name, Object[] attributes, boolean closeTag, boolean addNewLine) {\r\n this.addIndent();\r\n\r\n indent++;\r\n\r\n xml.append(\"<\").append(name);\r\n\r\n this.addAttributes(attributes);\r\n\r\n if (closeTag) {\r\n xml.append(\"/\");\r\n }\r\n\r\n xml.append(\">\");\r\n\r\n if (closeTag || addNewLine) {\r\n xml.append(\"\\n\");\r\n }\r\n\r\n if (closeTag) {\r\n indent--;\r\n\r\n } else {\r\n startedElements.addLast(name);\r\n }\r\n\r\n return this;\r\n }",
"protected void initTag()\n {\n }",
"@Override\npublic void processAttributes() {\n\t\n}",
"private static StartTag constructWithAttributes(Source source, int begin, String name, SpecialTag specialTag) {\r\n\t\t// it is necessary to get the attributes so that we can be sure that the search on the closing \">\"\r\n\t\t// character doesn't pick up anything from the attribute values, which can legally contain\r\n\t\t// \">\" characters.\r\n\t\t// From the HTML 4.01 specification section 5.3.2 - Character Entity References:\r\n\t\t// Authors wishing to put the \"<\" character in text should use \"<\" (ASCII decimal 60) to avoid\r\n\t\t// possible confusion with the beginning of a tag (start tag open delimiter). Similarly, authors\r\n\t\t// should use \">\" (ASCII decimal 62) in text instead of \">\" to avoid problems with older user\r\n\t\t// agents that incorrectly perceive this as the end of a tag (tag close delimiter) when it appears\r\n\t\t// in quoted attribute values.\r\n\t\tByRefInt startTagEndDelimiterPos=new ByRefInt();\r\n\t\tAttributes attributes=Attributes.construct(source,begin,startTagEndDelimiterPos,name);\r\n\t\tif (attributes==null) return null; // happens if attributes not properly formed\r\n\t\tString lsource=source.getParseTextLowerCase();\r\n\t\tint end=startTagEndDelimiterPos.value+(lsource.charAt(startTagEndDelimiterPos.value)=='>' ? 1 : 2);\r\n\t\tStartTag startTag=new StartTag(source,begin,end,name,specialTag,attributes);\r\n\t\treturn startTag;\r\n\t}",
"@Override\n\t\t\t\t\tpublic Attribute handleAttribute(Element parent,\n\t\t\t\t\t\t\tFAttribute src) {\n\t\t\t\t\t\treturn super.handleAttribute(parent, src);\n\t\t\t\t\t}",
"public void startElement(String uri, String localName, String qName,Attributes attributes) throws SAXException \n\t{\t\n\t\tif(qName.equals(ReqifTags.TAG_SPEC_OBJECT))\n\t\t{\n\t\t\tif(attributes.getValue(ReqifTags.TAG_IDENTIFIER)!=null && attributes.getValue(ReqifTags.TAG_DESC)!=null)\n\t\t\t{\n\t\t\t\tString s=attributes.getValue(ReqifTags.TAG_DESC);\n\t\t\t\tchar[] test=s.toCharArray();\n\t\t\t\tfor(int i=0;i<test.length;i++)\n\t\t\t\t{\n\t\t\t\t\tif(test[i]=='&' || test[i]=='' || test[i]=='‘' || test[i]== '’' || test[i]=='“' || test[i]=='”')\n\t\t\t\t\t\ttest[i]=' ';\n\n\t\t\t\t}\n\t\t\t\ts=new String(test);\n\t\t\t\tdict.put(attributes.getValue(ReqifTags.TAG_IDENTIFIER),s);\n\t\t\t}\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_REQ_IF))\n\t\t{\n\t\t\tParsedReqifElement u=new ParsedReqifElement(\"Root\",\"Root\");\n\t\t\troot=new DefaultMutableTreeNode(u);\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SPECIFICATION))\n\t\t{\t\n\t\t\tParsedReqifElement u=new ParsedReqifElement(attributes.getValue(ReqifTags.TAG_DESC),dict.get(attributes.getValue(ReqifTags.TAG_DESC)));\n\t\t\ttemp=new DefaultMutableTreeNode(u);\n\t\t\troot.add(temp);\n\t\t\ttop1=temp;\n\t\t\tlevel++;\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SPEC_HIERARCHY))\n\t\t{\n\t\t\tbuf=new StringBuffer();\n\t\t\tlevel++;\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_SOURCE))\n\t\t{\n\t\t\t//System.out.println(\"source\");\n\t\t\tisSource = true;\n\t\t\tbuf.delete(0, buf.length());\n\t\t}\n\t\telse if(qName.equals(ReqifTags.TAG_TARGET))\n\t\t{\n\t\t\t//System.out.println(\"target\");\n\t\t\tisTarget = true;\n\t\t\tbuf.delete(0, buf.length());\n\t\t}\n\t}",
"private XMLDocument startElement(String name, Object[] attributes, boolean closeTag) {\r\n return this.startElement(name, attributes, closeTag, true);\r\n }",
"@Override\n\tprotected String getSpecificXML() {\n\t\t\n\t\tStringBuilder xml = new StringBuilder();\n\t\t\n\t\tstartElementWithAttributes(xml, \"Activity\");\n\t\taddStringAttribute(xml, \"activityHandle\", activityHandle);\n\t\tcloseParentElementWithAttributes(xml);\n\t\t\n\t\taddContext(xml);\n\t\taddContextMenu(xml);\n\t\taddMenuAction(xml);\n\t\taddMethods(xml);\n\t\taddDeltas(xml);\n\t\taddPublications(xml);\n\t\taddFields(xml);\n\t\t\n\t\tcloseParentElement(xml, \"Activity\");\n\t\t\n\t\treturn xml.toString();\n\t}",
"@Override\n\tprotected String openTag(String tag) {\n\t\t// store position of parser for openening tag only if\n\t\t// it the first openened, e.g. <b>text<b>text2</b> will draw\n\t\t// text and text2 in bold weight\n\t\tif (!tags.containsKey(tag)) {\n\t\t\ttags.put(tag, Integer.valueOf(clearedText.length()));\n\t\t}\n\t\treturn \"\";\n\t}",
"public HTMLTag readTag ()\n\t\t\tthrows IOException, FileNotFoundException {\n\t\t\t\n\t\t// start building new tag\n\t\ttag = new HTMLTag ();\n\t\t\t\t\n\t\t// get any text preceding the tag itself\n\t\thtmlChar.setFieldType (HTMLContext.TEXT);\n\t\tgetNextField();\n\t\ttag.setPrecedingText (context.field.toString());\n\t\tif (htmlChar.character == '<') {\n\t\t\tgetNextCharacter();\n\t\t}\n\t\t\n\t\t// see if this is an ending tag\n\t\tif (htmlChar.character == '/') {\n\t\t\ttag.setEnding();\n\t\t\tgetNextCharacter();\n\t\t}\n\t\t\n\t\t// get the name of the tag\n\t\thtmlChar.setFieldType (HTMLContext.TAG_NAME);\n\t\tgetNextField();\n\t\ttag.setName (context.field.toString());\n\t\t\n\t\t// check to see if the tag is a comment\n\t\tif (tag.getName().equals (\"!--\")) {\n attribute = new HTMLAttribute (\"!==\");\n htmlChar.setFieldType (HTMLContext.COMMENT);\n getNextField();\n for (int i = 0; i < 2; i++) {\n if (context.field.length() > 0\n && context.field.charAt (context.field.length() - 1) == '-') {\n context.field.setLength (context.field.length() - 1);\n }\n }\n attribute.setValue (context.field.toString());\n\t\t\ttag.setAttribute (attribute);\n\t\t}\n else {\n\t\t\n // Collect and store all the attributes\n while (! htmlChar.endsTag) {\n htmlChar.setFieldType (HTMLContext.ATTRIBUTE_NAME);\n getNextCharacter();\n getNextField();\n if (context.field.length() > 0) {\n attribute = new HTMLAttribute (context.field.toString());\n if (htmlChar.character == '=') {\n getNextCharacter();\n htmlChar.setFieldType (HTMLContext.ATTRIBUTE_VALUE);\n getNextField();\n attribute.setValue (context.field.toString());\n }\n tag.setAttribute (attribute);\n }\n }\n }\n\n // evaluate block properties of tag\n if ((! tag.isEnding())\n && (tag.isBlockTag())) {\n context.lastOpenBlock = tag.getName();\n }\n else\n if (tag.isEnding()\n && tag.getName().equals (context.lastOpenBlock)) {\n context.lastOpenBlock = \"\";\n }\n \n // evaluate list properties of tag\n int listTagType = 0;\n if (tag.getName().equals (\"ol\")\n || tag.getName().equals (\"ul\")\n || tag.getName().equals (\"dl\")) {\n listTagType = 1;\n }\n else\n if (tag.getName().equals (\"li\")\n || tag.getName().equals (\"dt\")\n || tag.getName().equals (\"dd\")) {\n listTagType = 2;\n tag.setListItemStart (true);\n }\n \n tag.setListLevel (context.listLevel);\n tag.setListItemTag (context.listItemTag);\n if (context.listItemTag.length() > 0) {\n if (listTagType > 0) {\n context.listItemTag = \"\";\n tag.setListItemEnd (true);\n }\n }\n \n if (listTagType == 1) {\n context.defTermActive = false;\n if (tag.isEnding()) {\n if (context.listLevel > 0) {\n context.listLevel--;\n }\n }\n else {\n context.listLevel++;\n }\n }\n \n tag.setDefTermActive (context.defTermActive);\n \n if (listTagType == 2) {\n context.listItemTag = tag.getName();\n if (tag.getName().equals(\"dt\")) {\n context.defTermActive = true;\n }\n }\n \n // evaluate heading properties of tag\n if (tag.isHeadingTag()) {\n context.headingLevel = tag.getHeadingLevel();\n } else {\n tag.setHeadingLevel (context.headingLevel);\n }\n \n // Check for preformatting\n if (tag.getName().equals (\"pre\")) {\n context.preformatted = (! tag.isEnding());\n }\n \n // return results\n\t\tif (htmlChar.character == '>') {\t\t\t\n getNextCharacter();\n return tag;\n }\n else \n if (tag.getPrecedingText().length() > 0) {\n return tag;\n\t\t} \n else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n Attributes2Impl attrs = new Attributes2Impl(attributes);\n attrs.addAttribute(LOCATION_NAMESPACE, LOCATION_ATTRIBUTE, QUALIFIED_LOCATION_ATTRIBUTE, \"CDATA\",\n locator.getLineNumber() + SEPARATOR + locator.getColumnNumber() + SEPARATOR + locator.getSystemId() + SEPARATOR + locator.getPublicId());\n super.startElement(uri, localName, qName, attrs);\n }",
"private boolean beforeAttributeNameStateImpl() throws SAXException,\n IOException {\n /*\n * Consume the next input character:\n */\n for (;;) {\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B\n * LINE TABULATION U+000C FORM FEED (FF) U+0020 SPACE Stay\n * in the before attribute name state.\n */\n continue;\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Emit the current tag token.\n */\n emitCurrentTagToken();\n /*\n * Switch to the data state.\n */\n return false;\n case '/':\n /*\n * U+002F SOLIDUS (/) Parse error unless this is a permitted\n * slash.\n */\n parseErrorUnlessPermittedSlash();\n /*\n * Stay in the before attribute name state.\n */\n continue;\n case '\\u0000':\n /* EOF Parse error. */\n err(\"Saw end of file without the previous tag ending with \\u201C>\\u201C.\");\n /*\n * Emit the current tag token.\n */\n emitCurrentTagToken();\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return false;\n default:\n /*\n * Anything else Start a new attribute in the current tag\n * token.\n */\n clearStrBuf();\n \n if (c >= 'A' && c <= 'Z') {\n /*\n * U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN\n * CAPITAL LETTER Z Set that attribute's name to the\n * lowercase version of the current input character (add\n * 0x0020 to the character's code point)\n */\n appendStrBuf((char) (c + 0x20));\n } else {\n /*\n * Set that attribute's name to the current input\n * character,\n */\n appendStrBuf(c);\n }\n /*\n * and its value to the empty string.\n */\n // Will do later.\n /*\n * Switch to the attribute name state.\n */\n return attributeNameState();\n }\n }\n }",
"protected void printOpeningTagContentAsXml(final PrintWriter printWriter) {\n printWriter.print(getTagName());\n for (final Map.Entry <String, DomAttr> entry : attributes_.entrySet()) {\n printWriter.print(\" \");\n printWriter.print(entry.getKey());\n printWriter.print(\"=\\\"\");\n printWriter.print(StringUtils.escapeXmlAttributeValue(entry.getValue().getNodeValue()));\n printWriter.print(\"\\\"\");\n }\n }",
"protected void tag (int ltagStart) throws HTMLParseException {\r\n Tag tag = new Tag ();\r\n Token token = new Token (tag, false);\r\n switch (nextToken) {\r\n case STRING:\r\n tag.setType (stringValue);\r\n match (STRING);\r\n arglist (tag);\r\n if (tagmode) {\r\n block.setRest (lastTagStart);\r\n } else {\r\n token.setStartIndex (ltagStart);\r\n //block.addToken (token);\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(token);\r\n }\r\n break;\r\n case MT:\r\n tagmode = false;\r\n match (MT);\r\n break;\r\n case END:\r\n block.setRest (lastTagStart);\r\n tagmode = false;\r\n return;\r\n default:\r\n arglist (tag);\r\n }\r\n }",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes atts) {\n // Using qualified name because we are not using xmlns prefixes here.\n if (qName.equals(\"title\")) {\n title = true;\n }\n }",
"@Override\n\tpublic Void visit(Atribute atr) {\n\t\tprintIndent(\"attribute\");\n\t\tindent++;\n\t\tatr.id.accept(this);\n\t\tatr.type.accept(this);\n\t\tif (atr.expr != null)\n\t\t\tatr.expr.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"@Test\n\tpublic void addAttributeMultiple() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\n\t\tXMLTagParser.editElement(\"Person\", \"name\", \"tony\");\n\t\tassertEquals(XMLTagParser.getTagValueFromElement(\"Person\", \"name\"), \"tony\");\n\t\t\n\t\tXMLTagParser.editElement(\"Person\", \"surname\", \"blaire\");\n\t\tassertEquals(XMLTagParser.getTagValueFromElement(\"Person\", \"surname\"), \"blaire\");\n\t}",
"static public XmlAttributeInfo eltXmlAttributeInfo (String name)\r\n {\r\n return new XmlAttributeInfo(name,null,_ELT_CONTENT);\r\n }",
"public void openStartTag() throws XMLStreamException {\n write(HtmlObject.HtmlMarkUp.OPEN_BRACKER);\n }",
"@Override\n\tpublic void processingInstruction(String target, String data) throws SAXException {\n\t\ttry {\n\t\t\tif (!startTagIsClosed) {\n\t\t\t\twrite('>');\n\t\t\t\tstartTagIsClosed = true;\n\t\t\t}\n\t\t\twrite(\"<?\");\n\t\t\twrite(target);\n\t\t\twrite(' ');\n\t\t\twrite(data);\n\t\t\twrite(\"?>\");\n\t\t\tif (elementLevel < 1) {\n\t\t\t\twrite('\\n');\n\t\t\t}\n\t\t\tsuper.processingInstruction(target, data);\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}",
"Iterable<? extends XomNode> attributes();",
"@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}",
"@Override\n public StringBuilder appendAttributes(StringBuilder buf) {\n super.appendAttributes(buf);\n appendAttribute(buf, \"param\", param);\n return buf;\n }",
"private void addAttribute(XmlAttribute xa, Method method, Object[] args) {\n/* 147 */ assert xa != null;\n/* */ \n/* 149 */ checkStartTag();\n/* */ \n/* 151 */ String localName = xa.value();\n/* 152 */ if (xa.value().length() == 0) {\n/* 153 */ localName = method.getName();\n/* */ }\n/* 155 */ _attribute(xa.ns(), localName, args);\n/* */ }",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\n if (qName.equalsIgnoreCase(\"company\")) { // gdy znajdzie taga <guest>\n company = new Company(0, \"\");\n attributes.getValue(\"id\");\n }\n }",
"@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes attributes) throws SAXException {\n\t\tsuper.startElement(uri, localName, qName, attributes);\n\t\ttag = qName;\n\t\tsb.delete(0, sb.length());\n\t\tif (qName.equals(\"entry\")) {\n\t\t\tisFeed = true;\n\t\t\tcommentsInfo = new CommentsInfo();\n\t\t} else if (qName.equals(\"feed\")) {\n\t\t\tisFeed = false;\n\t\t}\n\n\t}",
"private void processStandoffMarkup(Document docExtra) {\n\t\tDOMSnapshot snapExtra = new DOMSnapshot(docExtra, docRoot, new XMLDialect());\n\t\tfor (ITSState itssExtra : snapExtra.iterNodes()) {\n\t\t\tRuleResolver resolver = resolvers.get(itssExtra.node.getNodeName()); \n\t\t\tif (resolver != null) {\n\t\t\t\tGlobalRule rule = resolver.extractRule(snapExtra.attrReader, snapExtra.parameters, itssExtra.node);\n\t\t\t\tapplyRule(resolver, rule);\n\t\t\t}\n\t\t\t\n\t\t\tif (itssExtra.node.getNodeName().equals(\"its:param\")) {\n\t\t\t\tString name = itssExtra.node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\tString value = itssExtra.node.getTextContent();\n\t\t\t\tparameters.add(name, value);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\r\n\t\tpublic NamedNodeMap getAttributes()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"protected void startOutput() throws JspException, SAXException {\n if (uriExpr != null)\n uri = evalString(\"uri\", uriExpr);\n String prefix = null;\n if (nameExpr != null) {\n qname = evalString(\"name\", nameExpr);\n int colonIndex = qname.indexOf(':');\n if (colonIndex != -1) {\n prefix = qname.substring(0, colonIndex);\n name = qname.substring(colonIndex + 1);\n } else\n name = qname;\n }\n if (attrExpr != null) {\n Object attrList = eval(\"attr\", attrExpr, Object.class);\n if (attrList instanceof AttributesImpl)\n attr = (AttributesImpl) attrList;\n else {\n attr = new AttributesImpl();\n StringTokenizer tokenizer\n = new StringTokenizer(attrList.toString());\n while (tokenizer.hasMoreTokens()) {\n String expr = tokenizer.nextToken();\n int dotIndex = expr.indexOf('.');\n String attrName = expr;\n if (dotIndex != -1)\n attrName = expr.substring(dotIndex + 1);\n expr = \"${\" + expr + \"}\";\n String attrValue = evalString(\"attr\", expr);\n attr.addAttribute(null, attrName, attrName,\n \"CDATA\", attrValue);\n }\n }\n }\n if (emptyExpr != null)\n empty = evalBoolean(\"empty\", emptyExpr);\n int nsIndex = -1;\n String oldUri = null;\n if (uri != null) {\n String qns = prefix != null ? \"xmlns:\" + prefix : \"xmlns\";\n String ns = prefix != null ? prefix : \"xmlns\";\n nsIndex = attr.getIndex(qns);\n if (nsIndex != -1) {\n oldUri = attr.getValue(nsIndex);\n attr.setValue(nsIndex, uri);\n } else {\n attr.addAttribute(null, ns, qns, \"CDATA\", uri);\n nsIndex = attr.getIndex(qns);\n }\n }\n if (attr == null)\n attr = new AttributesImpl();\n serializer.getHandler().startElement(uri, name, qname, attr);\n if (nsIndex != -1)\n if (oldUri != null)\n attr.setValue(nsIndex, oldUri);\n else\n attr.removeAttribute(nsIndex);\n if (!empty) {\n // workaround: force the serializer to close the start tag\n emptyComment();\n }\n }",
"public XmlAttributeInfo (String name)\r\n {\r\n this(name,XmlSpecialForm.value());\r\n }",
"@Override\n public void enterAttributes(final ProgramParser.AttributesContext ctx) {\n }",
"private boolean afterAttributeNameState() throws SAXException, IOException {\n for (;;) {\n /*\n * Consume the next input character:\n */\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B\n * LINE TABULATION U+000C FORM FEED (FF) U+0020 SPACE Stay\n * in the after attribute name state.\n */\n continue;\n case '=':\n /*\n * U+003D EQUALS SIGN (=) Switch to the before attribute\n * value state.\n */\n return beforeAttributeValueState();\n case '>':\n /*\n * U+003E GREATER-THAN SIGN (>) Emit the current tag token.\n */\n addAttributeWithoutValue();\n emitCurrentTagToken();\n /*\n * Switch to the data state.\n */\n return false;\n case '/':\n /*\n * U+002F SOLIDUS (/) Parse error unless this is a permitted\n * slash.\n */\n addAttributeWithoutValue();\n parseErrorUnlessPermittedSlash();\n /* Switch to the before attribute name state. */\n return true;\n case '\\u0000':\n /* EOF Parse error. */\n err(\"Saw end of file without the previous tag ending with \\u201C>\\u201C.\");\n /*\n * Emit the current tag token.\n */\n addAttributeWithoutValue();\n emitCurrentTagToken();\n /*\n * Reconsume the character in the data state.\n */\n unread(c);\n return false;\n default:\n /*\n * U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN\n * CAPITAL LETTER Z Start a new attribute in the current tag\n * token. Set that attribute's name to the lowercase version\n * of the current input character (add 0x0020 to the\n * character's code point), and its value to the empty\n * string. Switch to the attribute name state.\n * \n * Anything else Start a new attribute in the current tag\n * token. Set that attribute's name to the current input\n * character, and its value to the empty string. Switch to\n * the attribute name state.\n */\n // let's do this by respinning through the attribute loop\n addAttributeWithoutValue();\n unread(c);\n return true;\n }\n }\n }",
"private void processTag(String p_content)\n {\n StringBuffer tagName = new StringBuffer();\n Hashtable attributes = new Hashtable();\n boolean bEndTag;\n\n int i = eatWhitespaces(p_content, 0);\n\n bEndTag = i < p_content.length() && p_content.charAt(i) == '/';\n\n //read the tag name...\n while (i < p_content.length() &&\n !Character.isWhitespace(p_content.charAt(i)))\n {\n tagName.append(p_content.charAt(i));\n\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n\n //read the attributes...\n StringBuffer attributeName = new StringBuffer();\n StringBuffer attributeValue = new StringBuffer();\n\n while (i < p_content.length())\n {\n try\n {\n i = eatWhitespaces(p_content, i);\n\n //read the name...\n while (!Character.isWhitespace(p_content.charAt(i)) &&\n p_content.charAt(i) != '=')\n {\n attributeName.append(p_content.charAt(i));\n i++;\n }\n\n i = eatWhitespaces(p_content, i);\n if (p_content.charAt(i) == '=')\n {\n while (p_content.charAt(i) != '\"')\n {\n i++;\n }\n i++;\n while (p_content.charAt(i) != '\"')\n {\n attributeValue.append(p_content.charAt(i));\n i++;\n }\n i++;\n }\n\n attributes.put(attributeName.toString(),\n attributeValue.toString());\n\n attributeName.setLength(0);\n attributeValue.setLength(0);\n }\n catch (IndexOutOfBoundsException e)\n {\n // tough luck the TMX wasn't as well written as we thought...\n // CvdL: TODO: throw an exception!!\n }\n }\n\n if (bEndTag)\n {\n m_handler.processEndTag(tagName.substring(1),\n \"<\" + p_content + \">\");\n }\n else\n {\n m_handler.processTag(tagName.toString(), attributes,\n \"<\" + p_content + \">\");\n }\n }",
"@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}",
"public String getTag() {\r\n return new String(XML_TAG);\r\n }",
"@Override\r\n\tpublic void startElement(String uri, String localName, String qName,\r\n\t\t\tAttributes attributes) throws SAXException {\n\t\ttagName = localName;\r\n\t\t\r\n\t\tif(tagName.equals(\"song_elt\")){\r\n\t\t\tmp3 = new DownloadMp3Model();//为每一首歌实例化对象\r\n\t\t\ti = 1;\r\n\t\t}\r\n\r\n\t}",
"org.apache.xmlbeans.XmlString xgetTag();",
"AdditionalAttributes setAttribute(String name, Object value, boolean force);",
"public String getTag() {\n return new String(XML_TAG);\n }",
"public int tag () { return MyTag; }",
"protected void importAttributes(XmlPullParser xpp, Epml epml) {\n\t}",
"public abstract String getTag();",
"private void beforeAttributeNameState() throws SAXException, IOException {\n while (beforeAttributeNameStateImpl()) {\n // Spin.\n }\n }",
"@Override\n\tpublic void startElement(String uri, String localName, String qName, Attributes atts) {\n\t\tchars = new StringBuffer();\n\t}",
"static boolean XmlOpeningTagPart(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"XmlOpeningTagPart\")) return false;\n if (!nextTokenIs(b, XMLSTARTTAGSTART)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, XMLSTARTTAGSTART);\n p = r; // pin = 1\n r = r && report_error_(b, XmlTagName(b, l + 1));\n r = p && report_error_(b, XmlOpeningTagPart_2(b, l + 1)) && r;\n r = p && report_error_(b, XmlOpeningTagPart_3(b, l + 1)) && r;\n r = p && report_error_(b, XmlOpeningTagPart_4(b, l + 1)) && r;\n r = p && consumeToken(b, XMLTAGEND) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"@Override\r\n\tpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\t\tsuper.startElement(uri, localName, qName, attributes);\r\n\t\tif(qName.equalsIgnoreCase(\"geonameID\")){\r\n\t\t\tSystem.out.println(qName);\r\n\t\t\tbID = true;\r\n\t\t}\r\n\t}",
"public static String getXMLElementTagName() {\n return \"aiMain\";\n }",
"java.lang.String getTag();",
"java.lang.String getTag();",
"protected abstract String getEventChildXML();",
"@Override \n\t public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { \n\t \n\t\t //String val = atts.getValue(\"val\");\n\t\t //Log.d(\"startElement\", localName + \" : \" + val);\n\t\t \n\t\t if(localName.equalsIgnoreCase(AlarmItemContent.TAG)){\n\t\t\t\n\t\t\t AlarmItemContent vo = new AlarmItemContent();\n\t\t\t \n\t\t\t //if(atts.getValue(AlarmItemContent.prtPosition) != null)\n\t\t\t\t vo.setPosition( ++position ); // atts.getValue(AlarmItemContent.prtPosition)\n\t\t\t vo.setState(atts.getValue(AlarmItemContent.prtState)); // ALARMSTATETYPE_E_ON\n\t\t\t vo.setTime(atts.getValue(AlarmItemContent.prtTime));\n\t\t\t vo.setUri(atts.getValue(AlarmItemContent.prtURI));\n\t\t\t vo.setMetaData(atts.getValue(AlarmItemContent.prtMetaData));\n\t\t\t vo.setVolume(Integer.parseInt(atts.getValue(AlarmItemContent.prtVolume)));\n\t\t\t vo.setFreaquency(atts.getValue(AlarmItemContent.prtFrequency)); // ALARMFREQUENCYTYPE_E_ONCE\n\t\t\t \n\t\t\t _data.add(vo);\n\t\t\t \n\t\t } \n\t\t \n\t }",
"@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }",
"public WSLNode(String tagName) {this(tagName,new WSLAttributeList());}",
"@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}",
"@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}",
"@Override\n\t\tpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n\t\t\t\tif(qName.equalsIgnoreCase(\"TABLE\")) {\n\t\t\t\t\tuser = true;\n\t\t\t\t\ttable = true;\n\t\t\t\t}\n\t\t\t\telse if(localName.equalsIgnoreCase(\"FIELDNAME\")){\t\n\t\t\t\t\tuser = true;\n\t\t\t\t\tfieldName = true;\n\t\t\t\t}\n\t\t\t\telse if(localName.equalsIgnoreCase(\"FIELDTYPE\")){\t\n\t\t\t\t\tuser = true;\n\t\t\t\t\tfieldType = true;\n\t\t\t\t}\n\t\t\t\telse if(localName.equalsIgnoreCase(\"SIZE\")){\n\t\t\t\t\tuser = true;\n\t\t\t\t\tsize = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int i = 0;i< attributes.getLength();i++) {\n\t\t\t\t\tSystem.out.println(attributes.getQName(i) + \": \" + attributes.getValue(i));\n\t\t\t\t}\n\t\t}",
"@Override\n\tpublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n\t\ttry {\n\t\t\tif (!startTagIsClosed) {\n\t\t\t\twrite(\">\");\n\t\t\t}\n\t\t\telementLevel++;\n\t\t\t// nsSupport.pushContext();\n\n\t\t\twrite('<');\n\t\t\twrite(qName);\n\t\t\twriteAttributes(atts);\n\n\t\t\t// declare namespaces specified by the startPrefixMapping methods\n\t\t\tif (!locallyDeclaredPrefix.isEmpty()) {\n\t\t\t\tfor (Map.Entry<String, String> e : locallyDeclaredPrefix.entrySet()) {\n\t\t\t\t\tString p = e.getKey();\n\t\t\t\t\tString u = e.getValue();\n\t\t\t\t\tif (u == null) {\n\t\t\t\t\t\tu = \"\";\n\t\t\t\t\t}\n\t\t\t\t\twrite(' ');\n\t\t\t\t\tif (\"\".equals(p)) {\n\t\t\t\t\t\twrite(\"xmlns=\\\"\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\twrite(\"xmlns:\");\n\t\t\t\t\t\twrite(p);\n\t\t\t\t\t\twrite(\"=\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\tchar ch[] = u.toCharArray();\n\t\t\t\t\twriteEsc(ch, 0, ch.length, true);\n\t\t\t\t\twrite('\\\"');\n\t\t\t\t}\n\t\t\t\tlocallyDeclaredPrefix.clear(); // clear the contents\n\t\t\t}\n\n\t\t\t// if (elementLevel == 1) {\n\t\t\t// forceNSDecls();\n\t\t\t// }\n\t\t\t// writeNSDecls();\n\t\t\tsuper.startElement(uri, localName, qName, atts);\n\t\t\tstartTagIsClosed = false;\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}",
"Attributes getAttributes();",
"public void startElement(String uri, String localName,String qName, \n\t\t Attributes attributes) throws SAXException {\n\t\t \n\t\t\t\tif (qName.equalsIgnoreCase(\"title\")) {\n\t\t\t\t\tbfname = true;\n\t\t\t\t}\n\t\t \n\t\t\t\tif (qName.equalsIgnoreCase(\"content\")) {\n\t\t\t\t\tblname = true;\n\t\t\t\t}\n\t\t \n\t\t\t\t\n\t\t \n\t\t\t}",
"public Attr() {\n\t\t\tsuper();\n\t\t}",
"@Override\r\n //Triggered when the start of tag is found.\r\n public void startElement(String uri, String localName,\r\n String qName, Attributes attributes)\r\n throws SAXException {\n if (qName.equalsIgnoreCase(\"ITEM\")) {\r\n issue = new Issues();\r\n issueList.add(issue);\r\n }\r\n\r\n if (qName.equalsIgnoreCase(\"KEY\")) {\r\n issue.id = Integer.parseInt(attributes.getValue(\"id\"));\r\n }\r\n if (qName.equalsIgnoreCase(\"TYPE\")) {\r\n if (attributes.getValue(\"id\").equals(\"16\")) {\r\n issue.issuetype = \"TEST CASE\";\r\n }\r\n }\r\n }",
"private boolean beforeAttributeValueState() throws SAXException,\n IOException {\n clearLongStrBuf();\n for (;;) {\n /*\n * Consume the next input character:\n */\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B\n * LINE TABULATION U+000C FORM FEED (FF) U+0020 SPACE Stay\n * in the before attribute value state.\n */\n continue;\n case '\"':\n /*\n * U+0022 QUOTATION MARK (\") Switch to the attribute value\n * (double-quoted) state.\n */\n return attributeValueDoubleQuotedState();\n case '&':\n /*\n * U+0026 AMPERSAND (&) Switch to the attribute value\n * (unquoted) state and reconsume this input character.\n */\n unread(c);\n return attributeValueUnquotedState();\n case '\\'':\n /*\n * U+0027 APOSTROPHE (') Switch to the attribute value\n * (single-quoted) state.\n */\n return attributeValueSingleQuotedState();\n case '>':\n /* U+003E GREATER-THAN SIGN (>) Emit the current tag token. */\n addAttributeWithoutValue();\n emitCurrentTagToken();\n /*\n * Switch to the data state.\n */\n return false;\n case '\\u0000':\n /* EOF Parse error. */\n err(\"Saw end of file without the previous tag ending with \\u201C>\\u201C.\");\n /*\n * Emit the current tag token.\n */\n addAttributeWithoutValue();\n emitCurrentTagToken();\n /*\n * Reconsume the character in the data state.\n */\n unread(c);\n return false;\n default:\n if (html4\n && !((c >= 'a' && c <= 'z')\n || (c >= 'A' && c <= 'Z')\n || (c >= '0' && c <= '9') || c == '.'\n || c == '-' || c == '_' || c == ':')) {\n err(\"Non-name character in an unquoted attribute value. (This is an HTML4-only error.)\");\n }\n /*\n * Anything else Append the current input character to the\n * current attribute's value.\n */\n appendLongStrBuf(c);\n /*\n * Switch to the attribute value (unquoted) state.\n */\n return attributeValueUnquotedState();\n }\n }\n }",
"public void startElement(String uri, String localName,String qName, \n Attributes attributes) throws SAXException {\n \n\t\tif (qName.equalsIgnoreCase(\"Author\")) {\n\t\t\tauthor = true;\n\t\t}\n \n\t\tif (qName.equalsIgnoreCase(\"title\")) {\n\t\t\ttitle = true;\n\t\t}\n \n\t\tif (qName.equalsIgnoreCase(\"year\")) {\n\t\t\tyear = true;\n\t\t}\n \n\t\tif (qName.equalsIgnoreCase(\"journal\")) {\n\t\t\tjournal = true;\n\t\t}\n\t\tif (qName.equalsIgnoreCase(\"number\")) {\n\t\t\tnumber = true;\n\t\t}\n \n\t}",
"public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException {\n\t\tif (localName.equals(\"Ort\")) {\n\t\t\t// Neue Ort erzeugen\n\t\t\tort = Ort.create();\n\n\t\t\t// Attribut id wird in dem jeweiligen Ort gesetzt\n\t\t\tort.setName(atts.getValue(\"id\"));\n\t\t}\n\t}",
"@Override\n\t\tpublic void startDocument() throws SAXException {\n\t\t\t\n\t\t}",
"@Override\n public void startElement(String uri, String localName, String qName, Attributes atrbts) throws SAXException {\n if(qName.equalsIgnoreCase(\"author\")){\n isAuthor = true;\n author = new Author();\n \n }\n if(isAuthor){\n if(qName.equalsIgnoreCase(\"nickname\")){\n isNickname = true;\n }else if(qName.equalsIgnoreCase(\"fullname\")){\n isFullname = true;\n }else if(qName.equalsIgnoreCase(\"email\")){\n isEmail = true;\n }else if(qName.equalsIgnoreCase(\"address\")){\n isAddress = true;\n }else if(qName.equalsIgnoreCase(\"birthday\")){\n isBirthday = true;\n }\n }\n if(qName.equalsIgnoreCase(\"book\")){\n isBook = true;\n book = new Book();\n }\n if(isBook){\n if(qName.equalsIgnoreCase(\"title\")){\n isTitle = true;\n }else if(qName.equalsIgnoreCase(\"nickname\")){\n isNickname2 = true;\n }else if(qName.equalsIgnoreCase(\"nxb\")){\n isNxb = true;\n }else if(qName.equalsIgnoreCase(\"description\")){\n isDes = true;\n }\n }\n }",
"public void startElement(String uri, String localName, String qName, Attributes attrs) {\r\n if (namespace.length() > 0 && qName.startsWith(namespace)) {\r\n qName = qName.substring(namespace.length());\r\n }\r\n elem = qName;\r\n if (charState >= 0 && lineBuffer.length() > 0) {\r\n \tcharWriter.println(lineBuffer.toString());\r\n \tlineBuffer.setLength(0);\r\n }\r\n if (false) {\r\n } else if (qName.equals(ROOT_TAG)) {\r\n\t\t\t// ignore\r\n } else { // variable GEDCOM keyword\r\n\t charState = 2;\r\n \tlineBuffer.append(String.valueOf(saxLevel));\r\n \tString id = attrs.getValue(ID_ATTR);\r\n \tif (id != null) {\r\n\t \tlineBuffer.append(\" @\");\r\n \t \tlineBuffer.append(id);\r\n \t \tlineBuffer.append('@');\r\n \t}\r\n \tlineBuffer.append(' ');\r\n \tlineBuffer.append(qName.toUpperCase());\r\n \tString ref = attrs.getValue(REF_ATTR);\r\n \tif (ref != null) {\r\n\t \tlineBuffer.append(\" @\");\r\n \t \tlineBuffer.append(ref);\r\n \t \tlineBuffer.append('@');\r\n \t}\r\n \tsaxLevel ++;\r\n } // else ignore unknown elements\r\n }",
"public void startElement(String namespaceURI, String localName, String rawName, Attributes atts) throws SAXException {\n\t\tif(this.level == 1) {\n\t\t\tthis.row = new ArrayList<String>();\n\t\t\tif(this.addHeader) {\n\t\t\t\tthis.header = new ArrayList<String>();\n\t\t\t}\n\t\t}\n\t\t// At field level, get the field name\n\t\tif(this.level == 2) {\n\t\t\tthis.fieldName = rawName;\n\t\t}\n\n\t\t// Set level for next element\n\t\tthis.level++;\n\t}",
"private void TokenStartTag(Token token, TreeConstructor treeConstructor) {\n\t\tif (token.getValue().equals(\"html\"))\r\n\t\t\tTokenAnythingElse(token, treeConstructor, false);\r\n\t\telse\r\n\t\t\tTokenAnythingElse(token, treeConstructor, true);\r\n\t}"
] |
[
"0.64996904",
"0.6456962",
"0.6428416",
"0.64154804",
"0.6386212",
"0.62789696",
"0.6272373",
"0.6232443",
"0.61748093",
"0.61342",
"0.6130564",
"0.6130564",
"0.6125565",
"0.609728",
"0.6075238",
"0.6040785",
"0.60097927",
"0.5992435",
"0.595809",
"0.5891469",
"0.5890457",
"0.5890457",
"0.584082",
"0.58354366",
"0.5810951",
"0.5798993",
"0.57959825",
"0.5742869",
"0.571526",
"0.5711759",
"0.57117087",
"0.57095444",
"0.5692601",
"0.5688799",
"0.5680459",
"0.5675349",
"0.56664854",
"0.5646834",
"0.5631749",
"0.5612084",
"0.5609922",
"0.5606703",
"0.5605346",
"0.5593746",
"0.559212",
"0.5579597",
"0.5557767",
"0.55430627",
"0.55182815",
"0.550876",
"0.54936826",
"0.5489242",
"0.54808",
"0.54654926",
"0.54632896",
"0.54513264",
"0.545063",
"0.54485136",
"0.54423463",
"0.54336417",
"0.5431482",
"0.54263574",
"0.5417149",
"0.54085374",
"0.54085374",
"0.5406431",
"0.54038376",
"0.54028136",
"0.5400612",
"0.53910965",
"0.53677386",
"0.5364452",
"0.5363848",
"0.5363213",
"0.536149",
"0.5358311",
"0.5355822",
"0.53462404",
"0.53457266",
"0.53457266",
"0.5345035",
"0.53328717",
"0.53309363",
"0.53306943",
"0.53294903",
"0.532862",
"0.53273463",
"0.5322667",
"0.53223103",
"0.531662",
"0.53146726",
"0.5311306",
"0.53095526",
"0.5307134",
"0.529908",
"0.5287717",
"0.52853495",
"0.5283252",
"0.5280336",
"0.5280058"
] |
0.60129017
|
16
|
Gets be called on closing tags like:
|
@Override
public void endElement(String namespaceURI, String localName, String qName) throws SAXException {
if (localName.equals("document")) {
// add tagiot to article
curArticle.setTagiot(curTagiot);
// add article to newSet
newsSet.addItem(curArticle);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void tagClose() {\n if( tagOpen ) {\n out.println( \">\" ); \n tagOpen = false;\n }\n }",
"public void closeEndTag() throws XMLStreamException {\n write(HtmlObject.HtmlMarkUp.CLOSE_BRACKER);\n }",
"@Override\n\tpublic void endTag(String name, String content, Stack<String> context) {\n\t}",
"void doAfterEndTag() {\r\n }",
"public void closeStartTag() throws XMLStreamException {\n flushNamespace();\n clearNeedsWritingNs();\n if (this.isEmpty) {\n write(\"/>\");\n this.isEmpty = false;\n return;\n }\n write(HtmlObject.HtmlMarkUp.CLOSE_BRACKER);\n }",
"public void closeContainerTag( )\n \t{\n \t\twriter.closeTag( HTMLTags.TAG_DIV );\n \t\tint display = ( (Integer) cellDisplayStack.pop( ) ).intValue( );\n \t\tif ( ( ( display & HTMLEmitterUtil.DISPLAY_INLINE ) > 0 )\n \t\t\t\t|| ( ( display & HTMLEmitterUtil.DISPLAY_INLINE_BLOCK ) > 0 ) )\n \t\t{\n \t\t\t// Close the inlineBox tag when implement the inline box.\n \t\t\tcloseInlineBoxTag( );\n \t\t}\n \t}",
"public static void closeTag(String name) {\n Log.write(\"</\"); Log.write(name); Log.writeln(\">\");\n }",
"public void openEndTag() throws XMLStreamException {\n write(\"</\");\n }",
"public boolean getNeedClosingTag() {\n\t\treturn (end_element);\n\t}",
"public static void closeMinorTag() {\n closeTag(true,true);\n }",
"private void parseEndTag() {\n Token token;\n try {\n stack.pop();\n token = lexer.nextToken();\n if (token.getType() != TokenType.TAG_CLOSE) {\n throw new SmartScriptParserException(\"There is no close tag!\");\n }\n lexer.setState(LexerState.BASIC);\n } catch (EmptyStackException ex) {\n throw new SmartScriptParserException(\"There are too many \\\"END\\\" tags.\");\n }\n}",
"static boolean XmlClosingTagPart(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"XmlClosingTagPart\")) return false;\n if (!nextTokenIs(b, XMLENDTAGSTART)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, XMLENDTAGSTART);\n p = r; // pin = 1\n r = r && report_error_(b, XmlTagName(b, l + 1));\n r = p && report_error_(b, XmlClosingTagPart_2(b, l + 1)) && r;\n r = p && consumeToken(b, XMLTAGEND) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"@Override\n\tpublic void endElement(String uri, String localName, String qName) throws SAXException {\n\t\ttry {\n\t\t\tif (startTagIsClosed) {\n\t\t\t\twrite(\"</\");\n\t\t\t\twrite(qName);\n\t\t\t\twrite('>');\n\t\t\t} else {\n\t\t\t\twrite(\"/>\");\n\t\t\t\tstartTagIsClosed = true;\n\t\t\t}\n\t\t\tsuper.endElement(uri, localName, qName);\n\t\t\t// nsSupport.popContext();\n\t\t\telementLevel--;\n\t\t} catch (IOException e) {\n\t\t\tthrow new SAXException(e);\n\t\t}\n\t}",
"private void TokenEndTag(Token token, TreeConstructor treeConstructor) {\n\t\tswitch (token.getValue()) {\r\n\t\tcase \"head\":\r\n\t\tcase \"body\":\r\n\t\tcase \"html\":\r\n\t\tcase \"br\":\r\n\t\t\tTokenAnythingElse(token, treeConstructor, true);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tParserStacks.parseErrors\r\n\t\t\t\t\t.push(\"Unexpected end tag in BeforeHTML insertion mode\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void handleCFEndTag(HtmlObjects.EndTag t)\n {\n }",
"public static void closeTag(boolean close, boolean endLine) {\n if (close) Log.write(\"/\");\n Log.write(\">\");\n if (endLine) Log.writeln();\n }",
"public void handleCloseElement(String elementName, int line, int col) {\r\n // TODO: Implement this.\r\n System.out.println(\"End element: \" + elementName);\r\n }",
"public static void closeTag(boolean close) {\n closeTag(close,true);\n }",
"public void setNeedClosingTag(boolean close) {\n\t\tend_element = close;\n\t}",
"protected void afterBody(final XMLOutput output) throws JellyTagException, SAXException\n\t{\t\n\t\toutput.write(\"</div>\\n\") ;\n\t}",
"protected void handleEnd(HtmlDocument.EndTag tag) {\n TagWrapper lastSeen;\n HTML.Element element = tag.getElement();\n while ((lastSeen = mSeenTags.poll()) != null && lastSeen.tag.getElement() != null &&\n !lastSeen.tag.getElement().equals(element)) { }\n\n // Misformatted html, just ignore this tag\n if (lastSeen == null) {\n return;\n }\n\n Object marker = null;\n if (HTML4.B_ELEMENT.equals(element)) {\n // BOLD\n marker = new StyleSpan(Typeface.BOLD);\n } else if (HTML4.I_ELEMENT.equals(element)) {\n // ITALIC\n marker = new StyleSpan(Typeface.ITALIC);\n } else if (HTML4.U_ELEMENT.equals(element)) {\n // UNDERLINE\n marker = new UnderlineSpan();\n } else if (HTML4.A_ELEMENT.equals(element)) {\n // A HREF\n HtmlDocument.TagAttribute attr = lastSeen.tag.getAttribute(HTML4.HREF_ATTRIBUTE);\n // Ignore this tag if it doesn't have a link\n if (attr == null) {\n return;\n }\n marker = new URLSpan(attr.getValue());\n } else if (HTML4.BLOCKQUOTE_ELEMENT.equals(element)) {\n // BLOCKQUOTE\n marker = new QuoteSpan();\n } else if (HTML4.FONT_ELEMENT.equals(element)) {\n // FONT SIZE/COLOR/FACE, since this can insert more than one span\n // we special case it and return\n handleFont(lastSeen);\n }\n\n final int start = lastSeen.startIndex;\n final int end = mBuilder.length();\n if (marker != null && start != end) {\n mBuilder.setSpan(marker, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n }",
"@InnerAccess void visitEnd ()\n\t{\n\t\tclassWriter.visitEnd();\n\t}",
"private void closeTagOpenState() throws SAXException, IOException {\n // this can't happen in PLAINTEXT, so using not PCDATA as the condition\n if (contentModelFlag != ContentModelFlag.PCDATA\n && contentModelElement != null) {\n /*\n * If the content model flag is set to the RCDATA or CDATA states\n * but no start tag token has ever been emitted by this instance of\n * the tokeniser (fragment case), or, if the content model flag is\n * set to the RCDATA or CDATA states and the next few characters do\n * not match the tag name of the last start tag token emitted (case\n * insensitively), or if they do but they are not immediately\n * followed by one of the following characters: + U+0009 CHARACTER\n * TABULATION + U+000A LINE FEED (LF) + U+000B LINE TABULATION +\n * U+000C FORM FEED (FF) + U+0020 SPACE + U+003E GREATER-THAN SIGN\n * (>) + U+002F SOLIDUS (/) + EOF\n * \n * ...then emit a U+003C LESS-THAN SIGN character token, a U+002F\n * SOLIDUS character token, and switch to the data state to process\n * the next input character.\n */\n // Let's implement the above without lookahead. strBuf holds\n // characters that need to be emitted if looking for an end tag\n // fails.\n // Duplicating the relevant part of tag name state here as well.\n clearStrBuf();\n for (int i = 0; i < contentModelElement.length(); i++) {\n char e = contentModelElement.charAt(i);\n char c = read();\n char folded = c;\n if (c >= 'A' && c <= 'Z') {\n folded += 0x20;\n }\n if (folded != e) {\n if (i > 0 || (folded >= 'a' && folded <= 'z')) {\n if (html4) {\n err((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but it was not the start of the end tag. (HTML4-only error)\");\n } else {\n warn((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but this did not close the element.\");\n }\n }\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n emitStrBuf();\n unread(c);\n return;\n }\n appendStrBuf(c);\n }\n endTag = true;\n tagName = contentModelElement;\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B\n * LINE TABULATION U+000C FORM FEED (FF) U+0020 SPACE Switch\n * to the before attribute name state.\n */\n beforeAttributeNameState();\n return;\n case '>':\n /* U+003E GREATER-THAN SIGN (>) Emit the current tag token. */\n emitCurrentTagToken();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"Expected \\u201C>\\u201D but saw end of file instead.\");\n /*\n * Emit the current tag token.\n */\n emitCurrentTagToken();\n /* Reconsume the character in the data state. */\n unread(c);\n return;\n case '/':\n /*\n * U+002F SOLIDUS (/) Parse error unless this is a permitted\n * slash.\n */\n // never permitted here\n err(\"Stray \\u201C/\\u201D in end tag.\");\n /* Switch to the before attribute name state. */\n beforeAttributeNameState();\n return;\n default:\n if (html4) {\n err((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but it was not the start of the end tag. (HTML4-only error)\");\n } else {\n warn((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but this did not close the element.\");\n }\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n emitStrBuf();\n cstart = pos; // don't drop the character\n return;\n }\n } else {\n /*\n * Otherwise, if the content model flag is set to the PCDATA state,\n * or if the next few characters do match that tag name, consume the\n * next input character:\n */\n char c = read();\n if (c >= 'A' && c <= 'Z') {\n /*\n * U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN CAPITAL\n * LETTER Z Create a new end tag token,\n */\n endTag = true;\n clearStrBuf();\n /*\n * set its tag name to the lowercase version of the input\n * character (add 0x0020 to the character's code point),\n */\n appendStrBuf((char) (c + 0x20));\n /*\n * then switch to the tag name state. (Don't emit the token yet;\n * further details will be filled in before it is emitted.)\n */\n tagNameState();\n return;\n } else if (c >= 'a' && c <= 'z') {\n /*\n * U+0061 LATIN SMALL LETTER A through to U+007A LATIN SMALL\n * LETTER Z Create a new end tag token,\n */\n endTag = true;\n clearStrBuf();\n /*\n * set its tag name to the input character,\n */\n appendStrBuf(c);\n /*\n * then switch to the tag name state. (Don't emit the token yet;\n * further details will be filled in before it is emitted.)\n */\n tagNameState();\n return;\n } else if (c == '>') {\n /* U+003E GREATER-THAN SIGN (>) Parse error. */\n err(\"Saw \\u201C</>\\u201D.\");\n /*\n * Switch to the data state.\n */\n return;\n } else if (c == '\\u0000') {\n /* EOF Parse error. */\n err(\"Saw \\u201C</\\u201D immediately before end of file.\");\n /*\n * Emit a U+003C LESS-THAN SIGN character token and a U+002F\n * SOLIDUS character token.\n */\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n } else {\n /* Anything else Parse error. */\n err(\"Garbage after \\u201C</\\u201D.\");\n /*\n * Switch to the bogus comment state.\n */\n clearLongStrBuf();\n appendToComment(c);\n bogusCommentState();\n return;\n }\n }\n }",
"public void closeElement() throws IOException {\r\n if (this.elements.size() <= 1) return;\r\n Element elt = popElement();\r\n this.depth--;\r\n // this is an empty element\r\n if (this.isNude) {\r\n writer.write('/');\r\n this.isNude = false;\r\n // the element contains text\r\n } else {\r\n if (elt.hasChildren) this.indent();\r\n this.writer.write('<');\r\n this.writer.write('/');\r\n int x = elt.qName.indexOf(' ');\r\n if (x < 0)\r\n this.writer.write(elt.qName);\r\n else\r\n this.writer.write(elt.qName.substring(0, x));\r\n }\r\n // restore previous mapping if necessary\r\n restorePrefixMapping(elt);\r\n this.writer.write('>');\r\n if (super.indent) this.writer.write('\\n');\r\n }",
"public Frysak_11_closing_document() {\r\n }",
"@Override\n public void closing() {\n }",
"public void visitEnd()\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void onClosed() {\n\t\t\t\t\r\n\t\t\t}",
"private static String closeSpans() {\n\t\tString ret = \"\";\r\n\t\tfor (int i = 0; i < numCloseSpans; i++) {\r\n\t\t\tret += \"</span>\";\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"@Override\n public void close()\n throws XMLStreamException\n {\n /* 19-Jul-2004, TSa: Hmmh. Let's actually close all still open\n * elements, starting with currently open start (-> empty)\n * element, if one exists, and then closing scopes by adding\n * matching end elements.\n */\n _finishDocument(false);\n }",
"public void closePost() {\n // TODO implement here\n }",
"public void elementEnd() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public void closed() \r\n\t{\r\n\t\t\r\n\t}",
"public int doEndTag() {\r\n return EVAL_PAGE;\r\n }",
"private String closeDefinitionTag (char last) {\n if (last == ';') {\n return \"</dt>\";\n }\n else\n if (last == ':') {\n return \"</dd>\";\n } else {\n return \"\";\n }\n }",
"@Override\n\tpublic void closed() {\n\n\t}",
"protected void endOutput() throws JspException, SAXException {\n if (uriExpr != null && uri == null)\n uri = evalString(\"uri\", uriExpr);\n if (nameExpr != null && qname == null) {\n qname = evalString(\"name\", nameExpr);\n int colonIndex = qname.indexOf(':');\n if (colonIndex != -1)\n name = qname.substring(colonIndex + 1);\n else\n name = qname;\n }\n serializer.getHandler().endElement(uri, name, qname);\n }",
"String getPacketEndTag();",
"@Override\n public void writeEndElement() throws XMLStreamException {\n closeStartTag();\n if(_depth == 0){\n return;\n }\n if(_ncContextState[_depth]){\n nsContext.popContext();\n }\n try {\n _stream .write(_END_TAG);\n //writeStringToUtf8 (qname,_stream);\n ElementName en =elementNames[--_depth];\n _stream.write(en.getUtf8Data().getBytes(), 0,en.getUtf8Data().getLength());\n en.getUtf8Data().reset();\n _stream .write('>');\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n }",
"public static void end() {\n Log.writeln(\"<xml-end/> <!-- Non-xml data follows ... -->\");\n }",
"@Override\n public void endElement(String uri, String localName, String qName)\n throws SAXException {\n super.endElement(uri, localName, qName);\n tagName=null;\n }",
"private void removeClosingTag(ArrayList p_tags, HtmlObjects.Tag p_tag)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o;\n\n if (p_tag.tag.equalsIgnoreCase(etag.tag)\n && p_tag.partnerId == etag.partnerId)\n {\n p_tags.remove(i);\n return;\n }\n }\n }\n }",
"public void handleCustomNodeEnd(IParserHandler parserHandler, BeanNode node, XMLAttributeMap att, Locator locator);",
"@Override\n public int doEndTag() {\n return EVAL_PAGE;\n }",
"public void endElement() throws Exception;",
"public abstract void endDataField(String tag);",
"protected void end()\n\t{\n\t}",
"public void endElement(String uri, String localName, String qName) {\n CodeWriter out = getTranslaterContext().getCodeWriter();\n out.printIndent().println(\"sfsContentHandler.characters(\" + sb.toString().trim() + \");\");\n }",
"private void onFinish() {\r\n\t\t//used for create end html tags\r\n\t\tendHtmlPage(fout);\r\n\r\n\t\t//used for write every thing in html file\r\n\t\tfout.flush();\r\n\t\tfout.close();\r\n\t\t\r\n\t}",
"protected void handleStart(HtmlDocument.Tag tag) {\n if (!tag.isSelfTerminating()) {\n // Add to the stack of tags needing closing tag\n mSeenTags.push(new TagWrapper(tag, mBuilder.length()));\n }\n }",
"protected void writeClosing ()\n {\n stream.println ('}');\n }",
"@Override\n void endElement(String uri, String localName, String qName);",
"public void processEndChildElement(String uri, String localName, String qName, String nestedText)\n {\n }",
"public void closing(OpenableElementInfo info) {\n\t\t// TODO what cleanup to do?\n\t}",
"public void endCDATA() throws SAXException {\n this.saxHandler.endCDATA();\n }",
"public void endElement(String uri, String localName, String gName) {\t\r\n\t}",
"default boolean visitEnd() {\n\t\treturn true;\n\t}",
"public void endCDATA() throws SAXException {\n\t\tmCDataSection = false;\n\t\tif (mParsedObject != null) mParsedObject.endCDATA();\n\t}",
"public abstract void doTagLogic() throws JspException, IOException;",
"@Override\r\n\tprotected void end() {\r\n\t}",
"@Override\n\tpublic void endElement(String arg0, String arg1, String arg2)\n\t\t\tthrows SAXException {\n\t\t\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override public void closed() {\n\t\t}",
"public void endTag(String localName) {\n\t\tif (localName.equals(HORA_TAG)) {\n\t\t\tmIsParsingHora = false;\n\t\t} else if (localName.equals(NOMBRE_TAG)) {\n\t\t\tmIsParsingNombre = false;\n\t\t} else if (localName.equals(\"wpt\")) {\n\t\t\t//Cuando se acaba un waypoint, configuro el texto de su elemento de la lista\n\t\t\tif(!tieneHora){mHora = \"Sin datos\";}\n\t\t\tmResults.add(\"Nombre:\" + mNombre + \", Hora de paso:\"\n\t\t\t\t\t+ mHora);\n\t\t\tmNombre = null;\n\t\t\tmHora = null;\n\t\t\ttieneHora=false;\n\t\t}\n\t}",
"public void endTag(int indent, String tag)\n\t{\n\t\t// We should have a new line before every start tag\n\t\tnewLine();\n\n\t\t// Add the appropriate number of indents\n\t\tfor (int i = 0; i < indent; i++)\n\t\t\toutput.append(\"\\t\");\n\n\t\t// Append the tag\n\t\toutput.append(\"</\" + tag + \">\");\n\t}",
"@Override\r\n\tprotected void end() {\n\r\n\t}",
"@Override\r\n\tprotected void end() {\n\r\n\t}",
"@Override\n public void endBlock() {\n }",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"@Override\n\tprotected void end() {\n\t}",
"public void endElement(String name)\n throws IOException\n {\n if (name == null) {\n throw new NullPointerException();\n }\n if (state == START_ELEMENT) {\n if (HtmlRenderer.isEmptyElement(name)) {\n out.write(\"/>\");\n } else {\n out.write(\"></\");\n out.write(name);\n out.write(\">\");\n }\n } else {\n out.write(\"</\");\n out.write(name);\n out.write('>');\n }\n state = END_ELEMENT;\n dontEscape = false;\n }",
"@Override\n\tpublic void endElement(String arg0, String arg1, String arg2) throws SAXException {\n\t\tSystem.out.println(arg2+\"解析结束\");\n\t}",
"private void movePositionToEndOfTag(String tag) throws ParseException {\n String closing = \"</\" + tag + \">\";\n position = html.indexOf(closing, position);\n if (position == -1) {\n throw new ParseException(\"Cannot skip tag because closing \" + tag + \" doesnt exist.\", position);\n }\n position += closing.length();\n }",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"protected void end() {\n\t}",
"@Override\r\n\tpublic void close()\r\n\t{\n\t\t\r\n\t}",
"protected void end() {\n\r\n\t}",
"@Override\n\tpublic void close() {\n\n\t}",
"@Override\n\tpublic void close() {\n\n\t}",
"@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void close() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void close() {\n\t\t\r\n\t}",
"@Override\n\tpublic void close() {\n\t\t\n\t}",
"@Override\n\tpublic void close() {\n\t\t\n\t}",
"@Override\n\tpublic void close() {\n\t\t\n\t}",
"@Override\n\tpublic void close() {\n\t\t\n\t}",
"@org.junit.Test\n public static final void testOptionalEndTags() {\n junit.framework.TestCase.assertEquals(\"<ol><li>A</li><li>B</li><li>C </li></ol>\", eu.stamp_project.reneri.instrumentation.StateObserver.observe(\"org.owasp.html.HtmlSanitizerTest|testOptionalEndTags()|0\", org.owasp.html.HtmlSanitizerTest.sanitize(\"<ol> <li>A</li> <li>B<li>C </ol>\")));\n }",
"protected void end() {\n \n \n }",
"@Override\n\tprotected void end() {\n\t\t\n\t}",
"public interface IHtmlStreamWriter extends IXmlStreamWriter {\r\n\tvoid ignoreCurrentEndTag();\r\n}",
"@Override\r\n\tpublic void close() {\n\t\t\r\n\t}",
"@Override\n\tprotected void handleClose() {\n\t}",
"@Override\n\tvoid endHandling() {\n\t}"
] |
[
"0.79148436",
"0.76053435",
"0.7538981",
"0.71502924",
"0.7123167",
"0.6968759",
"0.6950043",
"0.69498694",
"0.68825036",
"0.6856422",
"0.68010217",
"0.6569121",
"0.65425587",
"0.64923483",
"0.64846927",
"0.64557767",
"0.64270955",
"0.6427041",
"0.6410955",
"0.6372019",
"0.63424",
"0.63331586",
"0.63095045",
"0.63069606",
"0.6305716",
"0.6297045",
"0.6214248",
"0.61899775",
"0.6180867",
"0.6128693",
"0.60867125",
"0.6052965",
"0.60524523",
"0.605004",
"0.60372305",
"0.60187215",
"0.6008314",
"0.60060906",
"0.59997565",
"0.5984184",
"0.5979415",
"0.59781235",
"0.5975351",
"0.59622735",
"0.59339505",
"0.5909794",
"0.5908156",
"0.58933794",
"0.58822757",
"0.58771574",
"0.58738375",
"0.5868691",
"0.58370566",
"0.5821401",
"0.58085483",
"0.58080214",
"0.58057183",
"0.5803085",
"0.5801",
"0.58000046",
"0.5794837",
"0.57904685",
"0.57904685",
"0.57904685",
"0.5779052",
"0.57744694",
"0.577151",
"0.57689726",
"0.57689726",
"0.5767168",
"0.57647634",
"0.57647634",
"0.57647634",
"0.57647634",
"0.57633734",
"0.5762102",
"0.57618624",
"0.5756039",
"0.5756039",
"0.5756039",
"0.5756039",
"0.5756039",
"0.5756039",
"0.57547385",
"0.57476616",
"0.5743535",
"0.5743535",
"0.57372284",
"0.5728184",
"0.5728184",
"0.57277656",
"0.57277656",
"0.57277656",
"0.57277656",
"0.5726928",
"0.5723584",
"0.57219476",
"0.5720179",
"0.57126486",
"0.5710254",
"0.5709784"
] |
0.0
|
-1
|
Gets be called on the following structure: characters
|
@Override
public void characters(char ch[], int start, int length) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void characters(String arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public String getCharacters()\n\t{\n\t\treturn characters;\n\t}",
"@Override \n\t public void characters(char ch[], int start, int length) { \n\t\t \n\t }",
"@Override\n void characters(char[] ch, int start, int length);",
"public char[] getCharacters() {\n return characters;\n }",
"@Override\n\tpublic void characters(String text) {\n\t\t\n\t}",
"public Character getCharacters() {\n\t\treturn characters;\n\t}",
"@Override\n public Collection<Character> getAll() {\n return characters;\n }",
"private String getCharacterString()\n {\n String returnString = \"Characters:\\n\\t\";\n Set<String> keys = characters.keySet();\n if(characters.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String character : keys) {\n returnString += \" [\" + character + \"]\";\n }\n return returnString;\n }",
"@Override\n\tpublic void characters(char ch[], int start, int length) {\n\t\tif (this.in_documentnametag) {\n\t\t\tkmlDocument.setName(new String(ch, start, length));\n//\t\t\tLog.e(tag, \"in_documentnametag=[\" + new String(ch, start, length));\n\t\t} else if (this.in_foldernametag) {\n\t\t\tfolder.setName(new String(ch, start, length));\n//\t\t\tLog.e(tag, \"in_foldernametag=[\" + new String(ch, start, length));\n\t\t} else if (this.in_placemarknametag) {\n\t\t\tdpm.setName(new String(ch, start, length));\n//\t\t\tLog.e(tag, \"in_placemarknametag=[\" + new String(ch, start, length));\n\t\t} else if (this.in_addresstag) {\n\t\t\tdpm.parkingAddress = new String(ch, start, length);\n\t\t\tdpm.isParking = true;\n//\t\t\tLog.e(tag, \"in_addresstag=[\" + new String(ch, start, length));\n\t\t} else if (this.in_descriptiontag) {\n\t\t\tString s = new String(ch, start, length);\n//\t\t\tLog.e(tag, \"************* original description [\" + s + \"]*************\");\n\t\t\tif (null != s && s.length() > 2) {\n\t\t\t\tif (s.contains(\",\")) {\n\t\t\t\t\tparseDescription(s, dpm);\n\t\t\t\t\tdpm.setDescription(s);\n\t\t\t\t} else {\n//\t\t\t\t\tLog.e(tag, \"no ',' found!!!!!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.in_coordinatestag) {\n\t\t\ttmpStringList.add(new String(ch, start, length));\n\t\t} else {\n\t\t}\n\t}",
"@Override\n public void characters(char[] ch, int start, int length) {\n Node current = eltStack.peek();\n if (current.getChildNodes().getLength() == 1\n && current.getChildNodes().item(0).getNodeType() == Node.TEXT_NODE) {\n Text text = (Text) current.getChildNodes().item(0);\n text.appendData(new String(ch, start, length));\n } else {\n Text text = document.createTextNode(new String(ch, start, length));\n eltStack.peek().appendChild(text);\n }\n }",
"@Test public void testGetCharacters() {\r\n new LinkedHashMap<Word, Character[]>() {\r\n private static final long serialVersionUID = 8037868849679212478L; {\r\n put(w2, new Character[] {\r\n new Character('T'),\r\n new Character('e'),\r\n new Character('s'),\r\n new Character('t')\r\n });\r\n put(w4, new Character[] {\r\n new Character('t'),\r\n new Character('e'),\r\n new Character('s'),\r\n new Character('t'),\r\n new Character('\\''),\r\n new Character('i'),\r\n new Character('n'),\r\n new Character('g')\r\n });\r\n }}.forEach((k, v) -> {\r\n Character[] characters = k.getCharacters();\r\n assertTrue(\"Expecting identical array sizes for \" + k.toString(),\r\n characters.length == v.length);\r\n for(int i = 0; i < characters.length; i++)\r\n assertTrue(\"Expecting to find \" + v[i].toString(), characters[i].toChar() == v[i].toChar());\r\n });\r\n }",
"public String getCharName(){return charName;}",
"CharacterInfo getCharacter();",
"public void characters(char[] ch, int start, int length)\n throws SAXException {\n //String strValue = new String(ch, start, length);\n }",
"public void characters(char[] ch, int start, int length) throws SAXException {\n //Remember that characters may be called multiple times for the same\n //element, so if data is null then the characters delivered here are\n //the data, otherwise append the characters to data\n if (data == null) {\n data = new String(ch, start, length);\n } else {\n data = data + new String(ch, start, length);\n }\n data = data.trim();\n }",
"public void characters(char[] ch, int start, int length) throws SAXException {\n\t\tif (mParsedObject != null)\n\t\t\tmParsedObject.characters(ch, start, length);\n\t}",
"public String getCharacterSequence();",
"public void characters(char[] ch, int start, int length)\r\n\t{\r\n\t String cdata = (new String(ch, start, length)).trim();\r\n\r\n\r\n\t if(cdata.length() < 1)\r\n\t\treturn;\r\n\r\n\t String cur_element = current_tag.peek();\r\n\r\n\t /* Process the cdata for the current element */\r\n\t if(cur_element == null)\r\n\t\t{\r\n\t\t System.out.println(\"Error (ETDHandler:characters): no tag for with cdata \" + cdata);\r\n\t\t System.exit(1);\r\n\t\t}\r\n\r\n\t if(cur_element.equals(\"DISS_surname\")){\r\n\t\tname[LAST] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_fname\")){\r\n\t\tname[FIRST] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_middle\")){\r\n\t\tname[MIDDLE] = cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_language\")){\r\n\t\tlanguage = getLangCode(cdata);\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_title\")){\r\n\t\ttitle += \"\" + cdata;\r\n\t\t//marc_out.add(\"=245 10$a\" + cdata.trim() + \"$h[electronic resource]\" + \".\");\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_comp_date\")){\r\n\t\t comp_date = cdata.substring(0,4);\r\n\t\t}\r\n\r\n\t //else if(cur_element.equals(\"DISS_accept_date\") && cdata.length() >= 4){\r\n\t\t// ProQuest/UMI changed to a new system, which uses \"01/01/08\" for any ETD submitted in 2008. The accept_date is\r\n\t\t// no longer useful to generate the real accept date. \r\n\t\t//accept_date = cdata.substring(0, 4);\r\n\t\t// if DISS_accept_date is format of \"20050731\", length of 8\r\n\t\t//if(cdata.length() >= 8) {\r\n\t\t //running_date = cdata.substring(2, 8);\r\n\t\t// accept_date = cdata.substring(0,4);\r\n\t\t//}\r\n\r\n\t\t//-------revised by xing--------begin-------\r\n\t\t// if DISS_accept_date is format 0f \"07/31/2008\", lenght of 10\r\n\t\t//if(cdata.length() >= 10){\r\n\t\t //running_date = cdata.substring(8,10) + cdata.substring(0,2)+ cdata.substring(3,5);\r\n\t\t // accept_date = cdata.substring (6,10);\r\n\t\t//}\r\n\t\t//-------end--------------------------------\r\n\r\n\t//-------revised by JS 20090107, use full date--------begin-------\r\n\t else if(cur_element.equals(\"DISS_accept_date\")){\r\n\t\t accept_date = cdata.substring (0,10);\r\n\t marc_out.add(\"=500 \\\\\\\\$aTitle and description based on DISS metadata (ProQuest UMI) as of \" + accept_date + \".\");\r\n\t }\r\n\t\t// added JS 200912; if DISS_cat_code is present, grab to add to 502 $o\r\n\t else if(cur_element.equals(\"DISS_cat_code\")){\r\n\t\tcatCode += cdata + \"\";\r\n\t }\r\n\t\t//-------end--------------------------------\r\n\t else if(cur_element.equals(\"DISS_para\")){\r\n\t\tparagraphs += cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_inst_contact\")){\r\n\t\tissueDept += cdata + \"\";\r\n\r\n\t\t/*marc_out.add(\"=699 \\\\\\\\$a\" + cdata + \".\"); //blah*/\r\n\t\t/*=699 \\\\\\\\$a\" + cdata + \".\"=> 200912JS: changed to 710 /blah*/\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_keyword\")){\r\n\t\t/* Preferably parsing keywords into 699 marc data should be done here, but bug in java\r\n\t\t SAX causes characters() call on <DISS_keywords> to happen twice inbetween cdata */\r\n\t\tString n_cdata = cdata.replace(',', ';');\r\n\t\tn_cdata = n_cdata.replace(':', ';');\r\n\t\tn_cdata = n_cdata.replace('.', ';');\r\n\r\n\t\tkeywords += n_cdata;\r\n\t }\r\n\t else if(cur_element.equals(\"DISS_ISBN\")){\r\n\t\tmarc_out.add(\"=020 \\\\\\\\$a\" + cdata);\r\n\t }\r\n\t /* else if(cur_element.equals(\"DISS_cat_code\")) {\r\n\t\tmarc_out.add(\"=502 \\\\\\\\$o\" + catCode + \".\");\r\n\t\t} */ \r\n\t else if(cur_element.equals(\"DISS_degree\")) {\r\n\t\tmarc_out.add(\"=502 \\\\\\\\$aThesis$b(\" + cdata + \")--$cGeorge Washington University,$d\" + comp_date + \".\");\r\n\t\t} \r\n //System.out.println(catCode); /* output content of cat_code */\r\n\r\n\t}",
"public void characters (char ch[], int start, int length) throws SAXException {\n\t\tif(this.fieldName != null) {\n\t\t\tchar[] ch2 = new char[length];\n\t\t\tSystem.arraycopy(ch, start, ch2, 0, length);\n\t\t\t// Concatenate into previous values, as for cases with special characters\n\t\t\t// the content might be split into multiple chunks\n\t\t\tthis.fieldValue = this.fieldValue + new String(ch2);\n\t\t}\n\t}",
"public Characters(Tree story){//Will eventually automate the creation of Character objects when given a story. So really, the bulk of the work in terms of Character analysis will be done here in this class/in Character.\n\t\tWordTrainingSet.importWordSet(false);\n\t\tcharacters = new TreeMap<String, Character>(); //Character's name (String) , all of its qualities are stored in the Character object which is the value.\n\t\tinitializeAllCharacters(story);\n\t}",
"@Override\n public void characters(char[] ch, int start, int length)\n throws SAXException {\n\n // We don't need this, because our values are set as an attribute\n\n }",
"@Override\n public void characters(char[] ch, int start, int length)\n throws SAXException {\n\n if (elementOn) {\n elementValue = new String(ch, start, length);\n elementOn = false;\n }\n\n }",
"public void setCharacterSequence(String chars);",
"@Override\n public void characters(char[] ch, int start, int length) {\n if (title) {\n String bookTitle = new String(ch, start, length);\n System.out.println(\"Book title: \" + bookTitle);\n nameList.add(bookTitle);\n }\n }",
"@Override\n public String toString() {\n return \"\" + character;\n }",
"@Override\n\tpublic void characters(char[] ch, int start, int length) {\n\t\tif (inWord) {\n\t\t\tString w = new String(ch, start, length);\n\t\t\tif (currentElementText == null)\n\t\t\t\tcurrentElementText = w;\n\t\t\telse\n\t\t\t\tcurrentElementText += w;\n\t\t}\n\t\tsuper.characters(ch, start, length);\n\t}",
"@Override\n\tpublic void characters(char ch[], int start, int length) {\n\t\tchars.append(new String(ch, start, length));\n\t}",
"@Override\n public void characters(char[] ch, int start, int length)\n throws SAXException{\n super.characters(ch, start, length);\n if(length<=0)\n return;\n for(int i=start; i<start+length; i++){\n if(ch[i]=='\\n')\n return;\n }\n\n String str=new String(ch,start,length);\n switch (tagName)\n {\n case \"key\":wordValue.setWord(str); break;\n case \"ps\": if(wordValue.getPsE().length()<=0)\n wordValue.setPsE(str);\n else wordValue.setPsA(str);\n break;\n case \"pron\":if(wordValue.getPronE().length()<=0)\n wordValue.setPronE(str);\n else wordValue.setPronA(str);\n break;\n case \"pos\":isChinese=false;\n interpret+=str+\" \";\n break;\n case \"acceptation\":interpret+=str+\"\\n\";\n interpret=wordValue.getInterpret()+interpret;\n wordValue.setInterpret(interpret);\n interpret=\"\";\n break;\n case \"orig\":orig=wordValue.getSentOrig();\n wordValue.setSentOrig(orig+str+\"\\n\");\n break;\n case \"trans\":trans=wordValue.getSentTrans();\n wordValue.setSentTrans(trans+str+\"\\n\");\n break;\n case \"fy\":isChinese=true;\n wordValue.setInterpret(str);\n }\n }",
"Alphabet(String chars) {\n _chars = sanitizeChars(chars);\n }",
"@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }",
"private void handleCharacterData() {\n\t\tif (!buffer.isEmpty()) {\n\t\t\tbyte[] data = buffer.toArray();\n\t\t\tbuffer.clear();\n\t\t\thandler.handleString(new String(data));\n\t\t}\n\t}",
"public String getCharacter()\n\t\t{\n\t\t\treturn characterName;\n\t\t}",
"public char getChar();",
"protected void readCharacters() {\n try {\r\n File f = new File(filePath);\r\n FileInputStream fis = new FileInputStream(f);\r\n ObjectInputStream in = new ObjectInputStream(fis);\r\n characters = (List<character>) in.readObject();\r\n in.close();\r\n }\r\n catch(Exception e){}\r\n adapter.addAll(characters);\r\n }",
"@Override\r\n\tpublic void characters(char[] ch, int start, int length) throws SAXException {\n\r\n\t\tString text = new String(ch, start, length).trim();\r\n\t\tif(text.isEmpty()) return;\r\n\t\t\t\t\r\n\t\tif (currentTag.equals(ComputerTagEnum.NAME)) {\r\n\t\t\tdevice.setName(text);\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.ORIGIN)) {\r\n\t\t\tdevice.setOrigin(text);\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.PRICE)) {\r\n\t\t\tdevice.setPrice(new BigInteger(text));\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.COOLER)) {\r\n\t\t\ttype.setCooler(Boolean.valueOf(text));\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.ENERGY)) {\r\n\t\t\ttype.setEnergy(Double.valueOf(text));\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.GROUP)) {\r\n\t\t\ttype.setGroup(Group.fromValue(text));\r\n\t\t} else if (currentTag.equals(ComputerTagEnum.PORT)) {\r\n\t\t\tif (type.getClass() == Internal.class) {\r\n\t\t\t\t((Internal) type).setPort(IntPort.valueOf(text.toUpperCase()));\r\n\t\t\t} else if (type.getClass() == External.class) {\r\n\t\t\t\t((External) type).setPort(ExtPort.valueOf(text.toUpperCase()));\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"private void buildCharMap() {\n\t\tcharMap = new HashMap<Character , Integer>();\n\t\tcharMap.put('a', 0);\n\t\tcharMap.put('b', 1);\n\t\tcharMap.put('c', 2);\n\t\tcharMap.put('d', 3);\n\t\tcharMap.put('e', 4);\n\t\tcharMap.put('f', 5);\n\t\tcharMap.put('g', 6);\n\t\tcharMap.put('h', 7);\n\t\tcharMap.put('i', 8);\n\t\tcharMap.put('j', 9);\n\t\tcharMap.put('k', 10);\n\t\tcharMap.put('l', 11);\n\t\tcharMap.put('m', 12);\n\t\tcharMap.put('n', 13);\n\t\tcharMap.put('o', 14);\n\t\tcharMap.put('p', 15);\n\t\tcharMap.put('q', 16);\n\t\tcharMap.put('r', 17);\n\t\tcharMap.put('s', 18);\n\t\tcharMap.put('t', 19);\n\t\tcharMap.put('u', 20);\n\t\tcharMap.put('v', 21);\n\t\tcharMap.put('w', 22);\n\t\tcharMap.put('x', 23);\n\t\tcharMap.put('y', 24);\n\t\tcharMap.put('z', 25);\t\n\t}",
"@Override\n\tpublic void characters(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\tsuper.characters(ch, start, length);\n\t\tString data = new String(ch, start, length);\n\t\t// System.out.println(\"data is \" + data);\n\t}",
"private void addCharacters(\n final SAXEventType eventType,\n char[] characters, int offset, int length) {\n\n boolean coalesce = true;\n\n startRecording();\n\n // Coalesce adjacent character events together.\n if (lastEventType != eventType) {\n // Add the event type.\n addEvent(eventType);\n\n coalesce = false;\n }\n\n if (coalesce) {\n int lastLength = lastCharacterEventLength.getValue();\n int totalLength = lastLength + length;\n lastCharacterEventLength.setValue(totalLength);\n if(LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"characters (coalesce)='\" +\n new String(characters,offset, length) + \"'\");\n }\n } else {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"characters='\" +\n new String(characters, offset, length) + \"'\");\n }\n addInt(characterCount);\n\n addPlaceHolderValue(lastCharacterEventLength);\n\n lastCharacterEventLength.setValue(length);\n }\n\n ensureCharacterArrayCapacity(characterCount + length);\n System.arraycopy(characters, offset, characterArray, characterCount,\n length);\n characterCount += length;\n }",
"public void characters (char ch[], int start, int length)\n\t\t{\n//\t\t\tfor (int i = start; i < start + length; i++) \n//\t\t\t\tSystem.out.print(ch[i]);\n//\t\t\tSystem.out.println();\n\t\t}",
"char[] getCharContent() throws IOException;",
"public void characters(char[] ch, int start, int length) throws SAXException {\n contents.write(ch, start, length);//ne znam cemu sluzi ali neka ostane\n textBuffer.append(new String(ch, start, length));\n }",
"Alphabet(String chars) {\n if (chars.contains(\"(\") || chars.contains(\")\") || chars.contains(\"*\")) {\n throw error(\"Parentheses and asterisks not permitted in alphabet.\");\n }\n Map<Character, Integer> map = new HashMap<>();\n char[] string2chars = chars.toCharArray();\n for (char c : string2chars) {\n if (map.containsKey(c)) {\n throw error(\"Repeated character found: %c\", c);\n } else {\n map.put(c, 1);\n }\n }\n\n _chars = chars;\n }",
"public void characters(char[] ch, int start, int length) {\n String string = new String(ch, start, length);\n SyntaxTreeNode parent = _parentStack.peek();\n\n if (string.length() == 0) return;\n\n // If this text occurs within an <xsl:text> element we append it\n // as-is to the existing text element\n if (parent instanceof Text) {\n ((Text)parent).setText(string);\n return;\n }\n\n // Ignore text nodes that occur directly under <xsl:stylesheet>\n if (parent instanceof Stylesheet) return;\n\n SyntaxTreeNode bro = parent.lastChild();\n if ((bro != null) && (bro instanceof Text)) {\n Text text = (Text)bro;\n if (!text.isTextElement()) {\n if ((length > 1) || ( ((int)ch[0]) < 0x100)) {\n text.setText(string);\n return;\n }\n }\n }\n\n // Add it as a regular text node otherwise\n parent.addElement(new Text(string));\n }",
"public void characters(char[] ch, int start, int length) throws SAXException {\n\n\t}",
"private void setLevelUpChars() {\n /*\n * check this if you need more symbol set's\n * TODO do this right @me\n\t\t */\n String charset = KeyboardHandler.current_charset;\n if (charset.length() == 36) {\n for (int i = 0; i < 6; ++i) {\n characterAreas.get(i).setChars(\n charset.substring(i * 6, (i + 1) * 6));\n }\n }\n\n if (charset.length() == 40) {\n Log.d(\"main\",charset);\n characterAreas.get(0).setChars(charset.substring(0, 6));\n characterAreas.get(1).setChars(charset.substring(6, 14));\n characterAreas.get(2).setChars(charset.substring(14, 20));\n characterAreas.get(3).setChars(charset.substring(20, 26));\n characterAreas.get(4).setChars(charset.substring(26, 34));\n characterAreas.get(5).setChars(charset.substring(34, 40));\n }\n }",
"public char[] getAsChars() {\n return (char[])data;\n }",
"public Character[] getCharacters() {\n return chars.toArray(new Character[0]);\n }",
"public Character getCharacter(){\n\t\treturn get_character();\n\t}",
"private AppendableCharSequence(char[] chars)\r\n/* 20: */ {\r\n/* 21: 33 */ this.chars = chars;\r\n/* 22: 34 */ this.pos = chars.length;\r\n/* 23: */ }",
"@Override\r\n\tpublic int length() {\n\t\treturn chars.length;\r\n\t}",
"String charWrite();",
"@Override\r\n\tpublic void characters(char ch[], int start, int length) throws SAXException {\r\n\t\tstringBuilder.append(new String(ch, start, length));\r\n\t}",
"public void characters(char ch[], int start, int length) throws SAXException {\n\r\n\t}",
"private void printchar(){\n temp = (inp).toString();\n count = (temp).length();\n System.out.println(\"Length = \"+(temp).length());\n }",
"@Override\r\n\tpublic char charAt(int index) {\n\t\treturn chars[index];\r\n\t}",
"public void characters (char ch[], int start, int length)\n throws SAXException\n {\n // no op\n }",
"public void characters(char ch[], int start, int length)\n throws SAXException {\n this.ensureInitialization();\n super.characters(ch, start, length);\n }",
"public Characters getCharacter(String characterName)\n {\n return characters.get(characterName);\n }",
"public BasicChar getBasicChar() {\n return this.wotCharacter;\n }",
"private ArrayList<Character> characterArrayListMaker(String s) {\n ArrayList<Character> result = new ArrayList<Character>();\n for (int i = 0; i < s.length(); i++){\n result.add(s.charAt(i));\n }\n return result;\n }",
"public void characters(char ch[], int start, int length)\n throws SAXException {\n int i = 0;\n while ( i < length ) {\n char c = ch[start + i];\n switch (c) {\n case '&':\n newContent.append(\"&\");\n break;\n case '<':\n newContent.append(\"<\");\n break;\n case '>':\n newContent.append(\">\");\n break;\n case '\"':\n newContent.append(\""\");\n break;\n case '\\'':\n newContent.append(\"'\");\n break;\n default:\n // If we're outside 7 bit ascii encode as a character ref.\n // Not sure what the proper behavior here should be.\n if ((int) c > 127) {\n newContent.append(\"&#\" + (int) c + \";\");\n }\n else {\n newContent.append(c);\n }\n }\n\n i++;\n }\n }",
"@Override\n\tpublic void characters(char[] arg0, int arg1, int arg2) throws SAXException {\n\t\tString content=new String(arg0,arg1,arg2);\n\t\tif(content.length()>0) {\n\t\t\tSystem.out.println(\"<\"+CurrentTag+\">元素的内容是: \"+content.trim());\n\t\t}\n\t}",
"@Override\n public void characters(char[] ch, int start, int length) throws SAXException {\n String str = String.valueOf(ch, start, length);\n if(isAuthor){\n if(isNickname){\n author.setNickname(str);\n }else if(isFullname){\n author.setFullname(str);\n }else if(isEmail){\n author.setEmail(str);\n }else if(isAddress){\n author.setAddress(str);\n }else if(isBirthday){\n author.setBirthday(str);\n }\n }\n if(isBook){\n if(isTitle){\n book.setTitle(str);\n }else if(isNickname2){\n book.setNickname(str);\n }else if(isNxb){\n book.setNxb(str);\n }else if(isDes){\n book.setDescription(str);\n }\n }\n }",
"private String addCharacter() {\n\t\t// Two Parameters: CharaNumber, CharaName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|chara\");\n\t\tif (!parameters[0].equals(\"0\")) {\n\t\t\ttag.append(parameters[0]);\n\t\t}\n\t\ttag.append(\":\" + parameters[1]);\n\t\treturn tag.toString();\n\n\t}",
"public void characters(char[] ch, int start, int length) throws SAXException {\n if (currentDeal != null) {\n // don't forget to trim excess spaces from the ends of the string\n if (idDeal.equals(\"open\")) {\n String id = new String(ch, start, length).trim();\n currentDeal.setIddeal(id);\n } else\n if (titreDeal.equals(\"open\")) {\n String nom = new String(ch, start, length).trim();\n currentDeal.setTitre(nom);\n }\n else\n if (descDeal.equals(\"open\")) {\n String des = new String(ch, start, length).trim();\n currentDeal.setDesc(des);\n }\n else\n if (img.equals(\"open\")) {\n String image = new String(ch, start, length).trim();\n currentDeal.setImg(\"http://localhost:1234/pidv/\"+image);\n }\n }\n }",
"public void cdata(char[] chars, int start, int length);",
"public char getChar() {\n return this.s;\n }",
"@Override\n public void setCharacter(String character) {\n this.character = character;\n }",
"@Override \r\n public void characters(char[] ch, int start, int length) \r\n throws SAXException {\n cadena = new String(ch, start, length);\r\n valor = valor + cadena;\r\n }",
"@Override\n\t\t\t\tpublic void characters(char[] ch, int start, int length)\n\t\t\t\t\t\tthrows SAXException {\n\t\t\t\t\tsuper.characters(ch, start, length);\n\t\t\t\t\tbuilder.append(ch, start, length);\n\t\t\t\t\tLog.d(TAG, \"ch=\" + builder.toString());\n\t\t\t\t}",
"EnsembleLettre(Collection<? extends Character> c) {\n\t\tsuper(c);\n\t}",
"public void characters(Parameters parameters, final onSuccessCallback callback){\n getJSONArray(parameters.buildQuery(Endpoint.CHARACTERS), new onSuccessCallback() {\n @Override\n public void onSuccess(JSONArray result) {\n callback.onSuccess(result);\n }\n\n @Override\n public void onError(VolleyError error) {\n callback.onError(error);\n }\n });\n }",
"@Override\n public void characters(char[] ch, int start, int length) {\n if (parentMatchLevel > 0 && matchLevel > 2) {\n bufferBagged.append(ch, start, length);\n }\n if (parentMatchLevel > 0 && matchLevel > 0) {\n bufferBagless.append(ch, start, length);\n }\n }",
"public void characters(char[] ch, int start, int len) {\r\n \tif (charState > 0) {\r\n \t\tif (charState == 2) {\r\n \t\t\tlineBuffer.append(' ');\r\n \t\t}\r\n \t\tcharState = 1;\r\n \tlineBuffer.append(new String(ch, start, len));\r\n \t}\r\n }",
"protected Characters(final Image image)\r\n {\r\n //assign the animation image\r\n this.image = image;\r\n \r\n //create a new list for our characters\r\n this.characters = new ArrayList<>();\r\n }",
"public CharCharMap() {\n this(DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR);\n }",
"@Override\n\tpublic void characters(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\tsuper.characters(ch, start, length);\n\t}",
"private void text_characters(final char[] src, final int srcPos, final int length) {\n\t\t// addStyle();\n\t\tthis.textstringList.add(new Textstring(mProperties.x, mProperties.y, src, srcPos, length));\n\t\t// Assume for now that all textstrings have a matrix\n\t\t// if (mProperties.transformData != null) {\n\t\t// addTransform();\n\t\t// }\n\t\taddText();\n\t}",
"public SpecialChar insertSpecialChar() {\n SpecialChar specialChar = new SpecialChar();\n specialChar.setId(4491);\n specialChar.setSpecialCharA(\"! ' , . / : ; ? ^ _ ` | \"\n + \" ̄ 、 。 · ‥ … ¨ 〃 ― ∥ \ ∼ ´ ~ ˇ \" + \"˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː\");\n specialChar.setSpecialCharB(\"" ( ) [ ] { } ‘ ’ “ ” \"\n + \" 〔 〕 〈 〉 《 》 「 」 『 』\" + \" 【 】\");\n specialChar.setSpecialCharC(\"+ - < = > ± × ÷ ≠ ≤ ≥ ∞ ∴\"\n + \" ♂ ♀ ∠ ⊥ ⌒ ∂ ∇ ≡ ≒ ≪ ≫ √ ∽ ∝ \"\n + \"∵ ∫ ∬ ∈ ∋ ⊆ ⊇ ⊂ ⊃ ∪ ∩ ∧ ∨ ¬ ⇒ \" + \"⇔ ∀ ∃ ∮ ∑ ∏\");\n specialChar\n .setSpecialCharD(\"$ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ \"\n + \"€ ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ \"\n + \"㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ \"\n + \"㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿ ㎐ ㎑ ㎒ ㎓ ㎔ Ω ㏀ ㏁ ㎊ ㎋ ㎌ ㏖ ㏅ ㎭ ㎮ ㎯ ㏛ ㎩ ㎪ ㎫ ㎬ ㏝ ㏐ ㏓ ㏃ ㏉ ㏜ ㏆\");\n specialChar.setSpecialCharE(\"# & * @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲\"\n + \" ▽ ▼ → ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐\"\n + \" ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † \"\n + \"‡ ↕ ↗ ↙ ↖ ↘♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º\");\n\n session.save(specialChar);\n\n return specialChar;\n }",
"public void characters(char ch[], int start, int length) throws SAXException {\r\n\t\t\tString str = new String(ch, start, length);\r\n\t\t\t\r\n\t\t\tswitch (currTag){\r\n\t\t\tcase FUNCTIONS:\r\n\t\t\t\t// do nothing\r\n\t\t\t\tbreak;\r\n\t\t\tcase FUNCTION:\r\n\t\t\t\t// do nothing\r\n\t\t\t\tbreak;\r\n\t\t\tcase TERM:\r\n\t\t\t\t// do nothing\r\n\t\t\t\tbreak;\r\n\t\t\tcase ALPHA:\r\n\t\t\t\t// do nothing\r\n\t\t\t\tbreak;\r\n\t\t\tcase COORD:\r\n\t\t\t\ttry{\r\n\t\t\t\t\tLong value = Long.parseLong(str);\r\n\t\t\t\t\tcoord = value;\r\n\t\t\t\t\tLog.log(\"\\t\\t\\t\\t\\t\"+str);\r\n\t\t\t\t\tif (coord < 0 || coord >= G[coordIndex])\r\n\t\t\t\t\t\tthrow new SAXException(\"coordinate in index \"+coordIndex+\" not in range [0,1,...,G[\"+coordIndex+\"]-1]: \"+coord);\r\n\t\t\t\t} catch (NumberFormatException nfe){\r\n\t\t\t\t\tthrow new SAXException(\"coordinate must be a number in range [0,1,...,G[\"+coordIndex+\"]-1]: \"+coord);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase RECOEFF:\r\n\t\t\t\ttry{\r\n\t\t\t\t\trecoeff = Double.parseDouble(str);\r\n\t\t\t\t\tLog.log(\"\\t\\t\\t\\t\"+str);\r\n\t\t\t\t} catch (NumberFormatException nfe){\r\n\t\t\t\t\tthrow new SAXException(\"reCoeff not a double\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase IMCOEFF:\r\n\t\t\t\ttry{\r\n\t\t\t\t\timcoeff = Double.parseDouble(str);\r\n\t\t\t\t\tLog.log(\"\\t\\t\\t\\t\"+str);\r\n\t\t\t\t} catch (NumberFormatException nfe){\r\n\t\t\t\t\tthrow new SAXException(\"imCoeff not a double\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase END:\r\n\t\t\t\tthrow new SAXException(\"XML parsing error\");\r\n\t\t\tdefault:\r\n\t\t\t\t// do nothing\r\n\t\t\t}\r\n\t\t}",
"public List<TilePojo> getCharacterList() {\n\t\tList<TilePojo> charList;\n\t\tcharList = getFixedNumberChar(characterList, 12);\n\t\treturn charList;\n\t}",
"public Set<Character> characters(){\r\n\t\tSet<Character> characters = new HashSet<Character>();\r\n\t\tfor(BoardObject object: boardObjects){\r\n\t\t\tif(object instanceof Character)\r\n\t\t\t\tcharacters.add((Character) object);\r\n\t\t}\r\n\t\treturn characters;\r\n\t}",
"public final String getCharacterName() {\n return characterName;\n }",
"public int getNumberOfCharacters() {\n return numberOfCharacters;\n }",
"public void setBasicChar(BasicChar wotCharacter) {\n this.wotCharacter = wotCharacter;\n }",
"public String getCharacterName() {\n return mCharacterName;\n }",
"public int getCharPos(){\n return charPos;\n }",
"public Character charRep() {\n return this.typeChar;\n }",
"public void characters( char[] buf, int offset, int len ) {\r\n\r\n // Append the new characters\r\n currentString.append( new String( buf, offset, len ) );\r\n }",
"public boolean hasHasCharacter() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public SingleChar(char c) {\n super(SOME, NONE);\n this.c = c;\n }",
"@Test\n public void testChars() {\n LOGGER.info(\"testChars\");\n final String expected = \"Hello\";\n final AtomString atomString1 = new AtomString(expected);\n final String actual = atomString1.chars()\n .mapToObj(i -> new String(new int[]{i}, 0, 1))\n .collect(joining());\n assertEquals(expected, actual);\n }",
"public char getChar(int index)\r\n/* 191: */ {\r\n/* 192:208 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 193:209 */ return super.getChar(index);\r\n/* 194: */ }",
"public static int getAtChar(){\r\n\t\treturn atChar;\r\n\t}",
"int size() {\n return _chars.length;\n }",
"public LinkedList<Character> getCharacterParserList() {\n\t\treturn listofCharacter;\n\t}",
"@Override\n\tpublic void characters(char[] arg0, int arg1, int arg2) throws SAXException {\n\t\tString contents = new String(arg0,arg1,arg2).trim();\n\t\tif(contents.length()>0) {\n\t\t\tSystem.out.println(\"内容为:\"+contents);\t\n\t\t}\n\t\t\n\t}",
"@Override\r\n\tpublic void characters(char[] ch, int start, int length) throws SAXException {\n\t\tsuper.characters(ch, start, length);\r\n\t\tif(bID) {\r\n\t\t\t\r\n\t\t\tid = new String(ch,start,length);\r\n\t\t\tbID = false;\r\n\t\t}\r\n\t}",
"public boolean getHasCharacter() {\n return hasCharacter_;\n }"
] |
[
"0.7189892",
"0.701375",
"0.69807917",
"0.69630206",
"0.6890614",
"0.6837748",
"0.67728305",
"0.67343634",
"0.67217314",
"0.65969205",
"0.65935016",
"0.65068513",
"0.6476046",
"0.6465931",
"0.63947874",
"0.63833135",
"0.6349821",
"0.6337116",
"0.6316689",
"0.63054883",
"0.63014835",
"0.62934184",
"0.62888294",
"0.6275953",
"0.6272656",
"0.62639487",
"0.6258538",
"0.62303674",
"0.61613595",
"0.6161228",
"0.614825",
"0.6094536",
"0.6093951",
"0.60790366",
"0.6076937",
"0.60622245",
"0.6057534",
"0.6031306",
"0.60221344",
"0.60207105",
"0.60038626",
"0.5986173",
"0.5960484",
"0.5949798",
"0.59399986",
"0.59368974",
"0.5929091",
"0.59252536",
"0.59077674",
"0.58980733",
"0.5892915",
"0.5886526",
"0.5879574",
"0.5874089",
"0.5869254",
"0.5865984",
"0.5856291",
"0.5854896",
"0.5851154",
"0.5845786",
"0.58438605",
"0.5841389",
"0.58346814",
"0.5833529",
"0.5825742",
"0.5809967",
"0.58090657",
"0.58053625",
"0.57922953",
"0.57747734",
"0.5769123",
"0.57622796",
"0.5760421",
"0.57588077",
"0.5757786",
"0.5730331",
"0.57142025",
"0.57106155",
"0.5695692",
"0.56932324",
"0.56908673",
"0.56881785",
"0.56877637",
"0.5684363",
"0.5682455",
"0.5681299",
"0.56798494",
"0.5670745",
"0.56653255",
"0.5664738",
"0.56622076",
"0.5653331",
"0.5648618",
"0.56475955",
"0.56441087",
"0.56410396",
"0.56279314",
"0.56152225",
"0.5613148",
"0.56120175"
] |
0.6898933
|
4
|
/ / / / / / / / /
|
public ResolvingXMLReader(CatalogManager manager) {
/* 86 */ super(manager);
/* 87 */ SAXParserFactory spf = JdkXmlUtils.getSAXFactory(this.catalogManager.overrideDefaultParser());
/* 88 */ spf.setValidating(validating);
/* */ try {
/* 90 */ SAXParser parser = spf.newSAXParser();
/* 91 */ setParent(parser.getXMLReader());
/* 92 */ } catch (Exception ex) {
/* 93 */ ex.printStackTrace();
/* */ }
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"double passer();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String ring();",
"int getWidth() {return width;}",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public Integer getWidth(){return this.width;}",
"public abstract String division();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int width();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"double volume(){\n return width*height*depth;\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int generateRoshambo(){\n ;]\n\n }",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"Operations operations();",
"public int getEdgeCount() \n {\n return 3;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double getNewWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public void SubRect(){\n\t\n}",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"static void pyramid(){\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public int my_leaf_count();",
"public void skystonePos4() {\n }",
"void walk() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"double seBlesser();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"void sharpen();",
"void sharpen();",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"public String getRing();",
"public void leerPlanesDietas();",
"static int getNumPatterns() { return 64; }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract double getBaseWidth();",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int expand();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public int upright();",
"int getTribeSize();",
"int getWidth1();",
"int getR();",
"String directsTo();",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"double getWidth();"
] |
[
"0.5532527",
"0.54391015",
"0.5251596",
"0.52418447",
"0.5150535",
"0.512878",
"0.50683415",
"0.5066834",
"0.50221753",
"0.50129646",
"0.50077325",
"0.50051177",
"0.49997202",
"0.499538",
"0.49736512",
"0.49707893",
"0.49684572",
"0.49598044",
"0.49381968",
"0.49364173",
"0.49284318",
"0.48852703",
"0.4875062",
"0.48727193",
"0.4851693",
"0.48446384",
"0.48325908",
"0.48282844",
"0.48261568",
"0.48090968",
"0.48057693",
"0.48047045",
"0.48043686",
"0.48037383",
"0.4799067",
"0.4796126",
"0.4795011",
"0.47925386",
"0.47889647",
"0.4784086",
"0.47752148",
"0.47746503",
"0.47734392",
"0.4767767",
"0.47666863",
"0.47617707",
"0.47546872",
"0.47541285",
"0.47520202",
"0.47481504",
"0.4742862",
"0.47424123",
"0.47418612",
"0.4740628",
"0.4740628",
"0.47359604",
"0.4735926",
"0.47354448",
"0.473334",
"0.47322544",
"0.47315875",
"0.47303522",
"0.47300366",
"0.4729194",
"0.47287259",
"0.47265247",
"0.47252014",
"0.47247088",
"0.47164094",
"0.4705852",
"0.47038704",
"0.47033063",
"0.470207",
"0.46977833",
"0.46977744",
"0.4688691",
"0.4688624",
"0.4688624",
"0.46859193",
"0.46792743",
"0.4674773",
"0.46735224",
"0.4671809",
"0.46690786",
"0.4666248",
"0.46633562",
"0.46632627",
"0.46615568",
"0.4659301",
"0.4658479",
"0.46570495",
"0.4650401",
"0.46498072",
"0.46485025",
"0.4647073",
"0.46437675",
"0.46437675",
"0.46425405",
"0.46415186",
"0.46407634",
"0.46398857"
] |
0.0
|
-1
|
Deserialize profile preferences from the given JSON node.
|
public static ReaderBookmarks deserializeFromJSON(
final ObjectMapper jom,
final JsonNode node)
throws JSONParseException {
NullCheck.notNull(jom, "Object mapper");
NullCheck.notNull(node, "JSON");
final ObjectNode obj =
JSONParserUtilities.checkObject(null, node);
final HashMap<BookID, ReaderBookLocation> bookmarks_builder = new HashMap<>();
final ObjectNode by_id = JSONParserUtilities.getObject(obj, "locations-by-book-id");
final Iterator<String> field_iter = by_id.fieldNames();
while (field_iter.hasNext()) {
final String field =
field_iter.next();
final BookID book_id =
BookID.create(field);
final ReaderBookLocation location =
ReaderBookLocationJSON.deserializeFromJSON(jom, JSONParserUtilities.getNode(by_id, field));
bookmarks_builder.put(book_id, location);
}
return ReaderBookmarks.create(ImmutableMap.copyOf(bookmarks_builder));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"GistUser deserializeUserFromJson(String json);",
"public static Profile parseSingleProfile(JSONObject jsonProfile) throws JSONException {\n // Create a new Profile object and fill the attributes from the API in.\n Profile profile = new Profile(jsonProfile.getString(\"name\"));\n\n profile.setIcon(jsonProfile.getString(\"icon\"));\n profile.setUsername(jsonProfile.getString(\"name\"));\n profile.setLevel(Integer.toString(jsonProfile.getInt(\"level\")));\n profile.setRating(Integer.toString(jsonProfile.getInt(\"rating\")));\n profile.setGamesWon(Integer.toString(jsonProfile.getInt(\"gamesWon\")));\n try{\n profile.setGamesPlayed(Integer.toString(jsonProfile.getJSONObject(\"competitiveStats\").getJSONObject(\"games\").getInt(\"played\")));\n }catch (Exception e){\n profile.setGamesPlayed(\"N/A\");\n }\n try{\n profile.setGamesWon(Integer.toString(jsonProfile.getJSONObject(\"competitiveStats\").getJSONObject(\"games\").getInt(\"won\")));\n }catch (Exception e) {\n profile.setGamesWon(\"N/A\");\n }\n\n return profile;\n }",
"private static void putJSONObjectIntoPreferences(JSONObject json, Editor prefs) throws JSONException{\n\t\t\n\t\tjava.util.Iterator<?> keys = json.keys();\n\t\t\n\t\twhile (keys.hasNext()) {\n\t\t\tString key = (String) keys.next();\n\t\t\tObject v = json.get(key);\n\t\n\t\t\tif (v instanceof Boolean)\n\t\t\t\tprefs.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\telse if (v instanceof Float)\n\t\t\t\tprefs.putFloat(key, ((Float) v).floatValue());\n\t\t\telse if (v instanceof Integer)\n\t\t\t\tprefs.putInt(key, ((Integer) v).intValue());\n\t\t\telse if (v instanceof Long)\n\t\t\t\tprefs.putLong(key, ((Long) v).longValue());\n\t\t\telse if (v instanceof String)\n\t\t\t\tprefs.putString(key, ((String) v));\n\t\t}\t\n\t}",
"public User getPrefsUser() {\n Gson gson = new Gson();\n String json = prefs.getString(USER_PREFS, \"\");\n return gson.fromJson(json, User.class);\n }",
"public static UserProfile fromJson(String jsonString) {\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n final Gson gson = builder.create();\n return gson.fromJson(jsonString, UserProfile.class);\n }",
"public static Profile parseSingleProfile(String stringProfile) throws JSONException {\n JSONObject jsonProfile = new JSONObject(stringProfile);\n\n return parseSingleProfile(jsonProfile);\n }",
"ValueMap getProfileMap(Node profileNode) throws RepositoryException;",
"@Override\n public EntityAccountLookupResponse deserialize(JsonElement element, Type type, JsonDeserializationContext context)\n throws JsonParseException\n {\n JsonObject obj = element.getAsJsonObject();\n JsonElement data = obj.get(\"data\");\n if(data != null && data.isJsonObject())\n return gson.fromJson(data, EntityAccountLookupResponse.class);\n return null;\n }",
"@Override\n public RedisBase deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n ObjectCodec codec = jsonParser.getCodec();\n\n // Parse \"object\" node into Jackson's tree model\n JsonNode jsonNode = codec.readTree(jsonParser);\n if (jsonNode.isNull()) {\n return null;\n }\n\n checkJsonObjectField(jsonParser, jsonNode, MODE_FIELD_NAME);\n checkJsonObjectField(jsonParser, jsonNode, ROLE_FIELD_NAME);\n\n // Get value of the \"mode\" and \"role\" property\n String mode = jsonNode.get(MODE_FIELD_NAME).asText();\n String role = jsonNode.get(ROLE_FIELD_NAME).asText();\n\n // Check the \"mode\" and \"role\" property and map \"object\" to the suitable class\n RedisBaseType form = RedisBaseType.form(mode, role);\n Class<? extends RedisBase> redisClazz = form.getRedisClazz();\n return codec.treeToValue(jsonNode, redisClazz);\n }",
"public static ExternalUserProfile read(String username, JSONObject jsonObject) throws JSONException {\n if (jsonObject.has(JSONKeys.FIRST_NAME) && jsonObject.has(JSONKeys.LAST_NAME) &&\n jsonObject.has(JSONKeys.DESCRIPTION)) {\n String email = \"\";\n if (jsonObject.has(JSONKeys.EMAIL)) {\n email = jsonObject.getString(JSONKeys.EMAIL);\n }\n\n return new ExternalUserProfile(\n username,\n jsonObject.getString(JSONKeys.FIRST_NAME),\n jsonObject.getString(JSONKeys.LAST_NAME),\n email,\n jsonObject.getString(JSONKeys.DESCRIPTION)\n );\n } else {\n return null;\n }\n }",
"public static DailyUserProfile readJsonToDailyUserProfile(File file) {\n\t\tDailyUserProfile user = null;\n\n\t\ttry {\n\t\t\tString json = FileUtils.readFileToString(file, StandardCharsets.UTF_8);\n\t\t\tGson gson = new Gson();\n\n\t\t\tuser = gson.fromJson(json, DailyUserProfile.class);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn user;\n\t}",
"public static PrivateUser loadUser() {\n SharedPreferences preferences = getSharedPrefs();\n String jsonUser = preferences.getString(USER_PREF, null);\n PrivateUser user = null;\n\n if (jsonUser != null) {\n user = new Gson().fromJson(jsonUser, PrivateUser.class);\n }\n\n return user;\n }",
"private void processPreferences(ParticipantDataResponse response) throws FileNotFoundException {\n\t\tif (response.getProfileData() != null) {\n\t\t\tNihiPreferences.deserialize(context, response.getProfileData().getProfileData());\n\t\t\tlogger.info(\"doInBackground(): Overwrote profile data with that from Odin.\");\n\t\t} else {\n\t\t\tlogger.info(\"doInBackground(): Received a null profile object from Odin. Deleting all NihiPreferences.\");\n\t\t\tNihiPreferences.clearAll(context);\n\t\t}\n\t}",
"void setUserProfile(Map<String, Object> profile);",
"public void fromXML ( Element element )\r\n {\n String name = element.getAttribute( \"name\" );\r\n if ( name.compareTo( gadgetclass.getName() ) == 0 )\r\n {\r\n // load each user preference\r\n NodeList userPrefs = element.getElementsByTagName( \"UserPref\" );\r\n for ( int i = 0; i < userPrefs.getLength(); i++ )\r\n {\r\n Element prefElement = (Element) userPrefs.item( i );\r\n String prefName = prefElement.getAttribute( \"name\" );\r\n Text prefValue = (Text) prefElement.getChildNodes().item( 0 );\r\n for ( int j = 0; j < gadgetclass.getUserPrefsCount(); j++ )\r\n {\r\n UserPref up = gadgetclass.getUserPref( i );\r\n if ( prefName.compareTo( up.getName() ) == 0 )\r\n {\r\n setUserPrefValue( up, prefValue.getNodeValue() );\r\n j = gadgetclass.getUserPrefsCount();\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void deserialize(JsonObject src);",
"T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;",
"public static Profile getProfileFromJsonData(JSONObject dataObject) {\n\n try {\n int profileId = dataObject.getInt(\"id\");\n String profileUserName = dataObject.getString(\"login\");\n String profileEmail = dataObject.getString(\"email\");\n String profileName = dataObject.getString(\"name\");\n\n // parse dashboard devices\n JSONArray dashboardDevices = dataObject.getJSONArray(\"dashboard\");\n List<String> dashboardDevicesList = new ArrayList<>();\n for (int i = 0; i < dashboardDevices.length(); i++) {\n dashboardDevicesList.add(dashboardDevices.getString(i));\n }\n\n return new Profile(profileId, profileUserName, profileName, profileEmail,\n dashboardDevicesList);\n } catch (JSONException ex) {\n return null;\n }\n\n\n }",
"GistComment deserializeCommentFromJson(String json);",
"ValueMap getCompactProfileMap(Node profileNode) throws RepositoryException;",
"private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }",
"@Override\n public MHCUser deserialize(Type type, ConfigurationNode node) throws SerializationException {\n UUID uuid = UUID.fromString(node.node(\"uuid\").getString());\n int kills = node.node(\"kills\").getInt();\n int deaths = node.node(\"deaths\").getInt();\n\n return new MHCUser(uuid, kills, deaths);\n }",
"public Profile getProfile(String xmlString){\n\tProfile profile = null;\n profile = new Profile();\n String text = \"\";\n XmlPullParserFactory factory = null;\n XmlPullParser parser = null;\n try {\n factory = XmlPullParserFactory.newInstance();\n factory.setNamespaceAware(true);\n parser = factory.newPullParser();\n\n parser.setInput(new StringReader(xmlString.replaceAll(\"&\", \"&\")));\n\n int eventType = parser.getEventType();\n while (eventType != XmlPullParser.END_DOCUMENT) {\n String tagname = parser.getName();\n switch (eventType) {\n case XmlPullParser.START_TAG:\n break;\n\n case XmlPullParser.TEXT:\n //Convert html encoding\n String rawText = parser.getText();\n Spanned escapedText = Html.fromHtml(rawText);\n text = escapedText.toString();\n break;\n\n case XmlPullParser.END_TAG:\n if (tagname.equalsIgnoreCase(\"id\")) {\n profile.setName(text);\n } else if (tagname.equalsIgnoreCase(\"level\")) {\n profile.setLevel(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"aboutme\")) {\n profile.setAboutMe(text);\n } else if (tagname.equalsIgnoreCase(\"avatar\")) {\n profile.setAvatar(text);\n } else if (tagname.equalsIgnoreCase(\"progress\")) {\n profile.setProgress(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Platinum\")) {\n profile.setPlatium(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Gold\")) {\n profile.setGold(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Silver\")) {\n profile.setSilver(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Bronze\")) {\n profile.setBronze(Integer.parseInt(text));\n } else if (tagname.equalsIgnoreCase(\"Plus\")) {\n if(text.equalsIgnoreCase(\"1\")){\n profile.setPlus(true);\n }\n else{\n profile.setPlus(false);\n }\n } else if (tagname.equalsIgnoreCase(\"R\")) {\n profile.setBackgroundRed(Integer.parseInt(text.replaceFirst(\"#\", \"\"), 16)); // To convert hexadecimal to integer and remove #\n } else if (tagname.equalsIgnoreCase(\"G\")) {\n profile.setBackgroundGreen(Integer.parseInt(text.replaceFirst(\"#\", \"\"), 16));\n } else if (tagname.equalsIgnoreCase(\"B\")) {\n profile.setBackgroundBlue(Integer.parseInt(text.replaceFirst(\"#\", \"\"), 16));\n }\n break;\n\n default:\n break;\n }\n eventType = parser.next();\n }\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\t\n\treturn profile;\n}",
"protected List<Profile> createProfiles(String namespace, JsonNode node) {\n List<Profile> profiles = new LinkedList();\n if (Namespace.isNamespaceValid(namespace)) {\n for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext(); ) {\n Map.Entry<String, JsonNode> entry = it.next();\n profiles.add(new Profile(namespace, entry.getKey(), entry.getValue().asText()));\n }\n } else {\n throw new CatalogException(\n \"Invalid namespace specified \" + namespace + \" for profiles \" + node);\n }\n return profiles;\n }",
"Object parseObject(XmlElement element) throws XmlParseException\n {\n if (!\"plist\".equalsIgnoreCase(element.getName()))\n throw new XmlParseException(\"Expected plist top element, was: \" + element.getName());\n\n // Assure that the top element is a dict and the single child element.\n if (element.size() != 1) throw new XmlParseException(\"Expected single child element.\");\n return parseElement(element.getFirst());\n }",
"Map<String, Object> parseToMap(String json);",
"Gist deserializeGistFromJson(String json);",
"private ProviderProfile parseProfile(Elements tds) throws ParsingException {\n try {\n ProviderProfile profile = new ProviderProfile();\n String id = tds.get(0).text();\n String fullProviderInfo = tds.get(1).text();\n fullProviderInfo = fullProviderInfo.replaceAll(\"\\u00A0\", \" \").trim();\n String adminBoundary = \"\";\n Elements bolds = tds.get(1).children().select(\"b\");\n if (bolds.size() >= 6) {\n adminBoundary = bolds.get(5).text();\n }\n\n String name = Util.getStringInBetween(fullProviderInfo, \"Name:\", \"Address:\");\n String address = Util.getStringInBetween(fullProviderInfo, \"Address:\", \"Phone:\");\n String phone = Util.getStringInBetween(fullProviderInfo, \"Phone:\", \"Fax:\");\n String fax = Util.getStringInBetween(fullProviderInfo, \"Fax:\", \"Administrator:\");\n String administrator = !\"\".equals(adminBoundary) ? Util.getStringInBetween(fullProviderInfo,\n \"Administrator:\", adminBoundary) : \"\";\n \n // classifications\n Elements classifications = tds.get(1).children().select(\"p\");\n for (Element classification : classifications) {\n String para = classification.text().replaceAll(\"\\u00A0\", \" \").trim();\n if (para.contains(\"Minnesota Classifications\")) {\n profile.setStateClassifications(para.substring(\"Minnesota Classifications:\".length()));\n } else if (para.contains(\"Federal Classifications\")) {\n profile.setFederalClassifications(para.substring(\"Federal Classifications:\".length()));\n }\n }\n\n // id\n profile.setEmployerId(id);\n // name\n Business business = new Business();\n profile.setBusiness(business);\n business.setName(name);\n // address\n List<Address> addresses = new ArrayList<Address>();\n Address addressObj = new Address();\n addresses.add(addressObj);\n profile.setAddresses(addresses);\n String[] addressParts = address.split(\" \");\n if (addressParts.length >= 4) {\n String location = addressParts[0].trim();\n String city = addressParts[1].trim();\n String state = addressParts[2].trim();\n String zipcode = addressParts[3].trim();\n addressObj.setLocation(location);\n addressObj.setCity(city);\n addressObj.setState(state);\n addressObj.setZipcode(zipcode);\n }\n // phone\n profile.setContactPhoneNumber(phone);\n // fax\n profile.setContactFaxNumber(fax);\n // administrator\n profile.setContactName(administrator);\n\n profile.setProviderType(getProviderType());\n return profile;\n } catch (Throwable e) {\n throw new ParsingException(\"Failed to parse the html\", e);\n }\n }",
"@Override\n public SecurityIdentifier deserialize( JsonParser p, DeserializationContext ctxt )\n throws IOException, JsonProcessingException {\n final JsonNode node = p.getCodec().readTree( p );\n final String value = node.asText();\n if( StringUtils.isBlank( value ) )\n return null;\n \n return SecurityIdentifier.parse( value ).orElse( null );\n }",
"public abstract Properties getProfileProperties();",
"Profile getProfile( String profileId );",
"public static UserData parse(String file) {\n UserData data = new UserData();\n data.filename = file.toLowerCase();\n String line;\n // 0 = init values\n // 1 = scores\n // 2 = preferences\n int state = 0;\n KeyValuePair pair = null;\n\n try (BufferedReader br = new BufferedReader(new FileReader(data.filename))) {\n // for each line in the file\n while ((line = br.readLine()) != null) {\n pair = KeyValuePair.splitLine(line, false);\n int newState = state;\n if (line.equals(\"\")) {\n continue;\n }\n\n switch (state) {\n case 0:\n if (line.equals(\"scores\")) {\n newState = 1;\n break;\n }\n\n if (pair.key.equals(\"name\")) {\n data.name = pair.value;\n }\n\n break;\n case 1:\n if (line.equals(\"preferences\")) {\n newState = 2;\n break;\n }\n\n if (pair == null) {\n break;\n }\n\n UserDateScore newScore = new UserDateScore();\n newScore.date = pair.key;\n newScore.score = pair.valueAsInt();\n newScore.user = data;\n data.scores.add(newScore);\n break;\n case 2:\n if (pair == null) {\n break;\n }\n\n UserPreferenceValue pref = new UserPreferenceValue();\n pref.value = pair.value;\n data.preferences.put(pair.key, pref);\n break;\n }\n\n state = newState;\n }\n\n br.close();\n } catch (IOException e) {\n System.out.println(\"File does not yet exist\");\n// return null;\n }\n\n return data;\n }",
"public KunKunProfile getProfile() {\n\t\tObject temp;\n//\t\tif (profile == null || profile.getUserData() == null\n//\t\t\t\t|| profile.getUserData().id == -1) {// nghia la bien o trang\n//\t\t\t\t\t\t\t\t\t\t\t\t\t// thai ban dau hoac da bi\n//\t\t\t\t\t\t\t\t\t\t\t\t\t// reset\n//\t\t\tif ((temp = KunKunUtils.readObject(\n//\t\t\t\t\tKunKunProfile.KUNKUN_PROFILE)) != null) {\n//\t\t\t\tprofile = (KunKunProfile) temp;// bi out memory\n//\t\t\t\tSystem.setProperty(\"networkaddress.cache.ttl\",\"0\");\n//\t\t\t\tSystem.setProperty(\"networkaddress.cache.negative.ttl\" , \"0\");\n//\t\t\t}\n//\t\t}\n\t\treturn profile;\n\t}",
"private static ConfigImpl loadJson(Reader reader) {\n ConfigImpl ret = new ConfigImpl();\n JsonParser parser = new JsonParser();\n JsonElement element = parser.parse(reader);\n loadJson(element, ret, \"\");\n return ret;\n }",
"private CMSUser fromJSON(final byte[] bytes) {\n\t\tCMSUser cmsUser = null; \n\t\ttry{\n\t\t\tcmsUser = mapper.readValue(new ByteArrayInputStream(bytes), CMSUser.class);\n\t\t\treturn cmsUser;\n\t\t\t\n\t\t} catch (JsonMappingException jme) {\n\t\t\tlogger.error(\"from JSON JsonMappingException\", jme);\n\t\t\treturn null;\n\t\t} catch (JsonParseException jpe) {\n\t\t\tlogger.error(\"from JSON JsonParseException\", jpe);\n\t\t\treturn null;\n\t\t} catch (IOException ioe) {\n\t\t\tlogger.error(\"from JSON IOException\", ioe);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t}",
"@Override\r\n\tpublic Skills deserialize(JsonElement arg0, Type arg1, JsonDeserializationContext arg2) throws JsonParseException {\n\t\tJsonObject obj = arg0.getAsJsonObject();\r\n\t\t\r\n\t\tList<SingleSkill> Skillz = new ArrayList<>();\r\n\t\t\r\n\t\tfor(Map.Entry<String, JsonElement> entry : obj.entrySet()){\r\n\t\t\tSingleSkill skl = new SingleSkill();\r\n\t\t\tskl.name = entry.getKey();\r\n\t\t\tskl.level = entry.getValue().getAsInt();\r\n\t\t\tSkillz.add(skl);\r\n\t\t}\r\n\t\t\r\n\t\tSkills skills = new Skills();\r\n\t\tskills.ListOfSkills = Skillz;\r\n\t\t\r\n\t\treturn skills;\r\n\t}",
"com.google.protobuf2.Any getProfile();",
"public void loadFromPreferences(SharedPreferences preferences){\r\n\t\tinitialSetuped = preferences.getBoolean(\"initialSetupped\", false);\r\n\t\tuserName = preferences.getString(\"username\", \"\");\r\n\t\tuserEmail = preferences.getString(\"useremail\", \"\");\r\n\t\trecipientEmail = preferences.getString(\"recipientemail\", \"\");\r\n\t\toption = WeightUnitOption.loadPreference(preferences.getBoolean(\"option\", true));\r\n\t}",
"@JsonProperty(\"loadUserProfile\")\r\n @JacksonXmlProperty(localName = \"load_user_profile\", isAttribute = true)\r\n public void setLoadUserProfile(String loadUserProfile) {\r\n this.loadUserProfile = loadUserProfile;\r\n }",
"public native Object parse( Object json );",
"@Override\n public CheckResponse deserialize(JsonParser jp, DeserializationContext ctxt)\n throws IOException, JsonProcessingException {\n \n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\");\n\n JsonNode node = jp.getCodec().readTree(jp);\n CheckResponse result = null;\n \n if (node.get(\"data\") == null) {\n //System.out.println(\"------> timestamp = \" + node.get(\"timestamp\").textValue());\n result = new CheckResponse(\n node.get(\"reason\").textValue(), \n node.get(\"transactionId\").textValue(), \n node.get(\"status\").booleanValue(),\n new Date(node.get(\"timestamp\").longValue()),\n node.get(\"allowException\").booleanValue());\n\n } else {\n\n Iterator<Map.Entry<String, JsonNode>> data = node.get(\"data\").fields();\n \n while (data.hasNext()) {\n Map.Entry<String, JsonNode> n = data.next();\n if (n.getKey().equals(\"CheckLimit\") || n.getKey().equals(\"CheckFraud\")) {\n JsonNode cdn = n.getValue();\n result = new CheckResponse(cdn.get(\"reason\").textValue(), cdn.get(\"transactionId\").textValue(),\n cdn.get(\"status\").booleanValue(), new Date(cdn.get(\"timestamp\").longValue()), cdn.get(\"allowException\").booleanValue());\n }\n }\n }\n \n return result;\n }",
"protected void load(Profile profile) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"load\", profile);\n\t\t}\n\t\t// Do a cache lookup first. If cache miss, make a network call to get\n\t\t// Profile\n\t\tDocument data = getProfileDataFromCache(profile.getReqId());\n\t\tif (data != null) {\n\t\t\tprofile.setData(data);\n\t\t} else {\n\n\t\t\tMap<String, String> parameters = new HashMap<String, String>();\n\t\t\tif (isEmail(profile.getReqId())) {\n\t\t\t\tparameters.put(\"email\", profile.getReqId());\n\t\t\t} else {\n\t\t\t\tparameters.put(\"userid\", profile.getReqId());\n\t\t\t}\n\t\t\tObject result = null;\n\t\t\ttry {\n\t\t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n\t\t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n\t\t\t\tresult = endpoint.xhrGet(url, parameters, ClientService.FORMAT_XML);\n\t\t\t} catch (ClientServicesException e) {\n\t\t\t\tlogger.log(Level.SEVERE, \"Error while loading a profile\", e);\n\t\t\t\tresult = null;\n\t\t\t}\n\n\t\t\tif (result != null) {\n\t\t\t\tprofile.setData((Document) result);\n\t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n\t\t\t} else {\n\t\t\t\tprofile.setData(null);\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\t\tlogger.exiting(sourceClass, \"load\");\n\t\t\t}\n\t\t}\n\t}",
"private static Profile getProfileFromUser(User user) {\n // First fetch the user's Profile from the datastore.\n Profile profile = ofy().load().key(\n Key.create(Profile.class, user.getUserId())).now();\n if (profile == null) {\n // Create a new Profile if it doesn't exist.\n // Use default displayName and teeShirtSize\n String email = user.getEmail();\n\n profile = new Profile(user.getUserId(),\n extractDefaultDisplayNameFromEmail(email), email, null, null, null, null);\n }\n return profile;\n }",
"public Optional<CredentialProfile> get(StructuredTableContext context, CredentialProfileId id)\n throws IOException {\n StructuredTable table = context.getTable(CredentialProviderStore.CREDENTIAL_PROFILES);\n Collection<Field<?>> key = Arrays.asList(\n Fields.stringField(CredentialProviderStore.NAMESPACE_FIELD,\n id.getNamespace()),\n Fields.stringField(CredentialProviderStore.PROFILE_NAME_FIELD,\n id.getName()));\n return table.read(key).map(row -> GSON.fromJson(row\n .getString(CredentialProviderStore.PROFILE_DATA_FIELD), CredentialProfile.class));\n }",
"public Profile getProfile(String id) {\r\n\t\tString uuid = id;\r\n\t\tSystem.out.println(\"MineshafterProfileClient.getProfile(\" + uuid + \")\");\r\n\t\tURL u;\r\n\t\ttry {\r\n\t\t\tu = new URL(API_URL + \"?uuid=\" + id);\r\n\r\n\t\t\tHttpsURLConnection conn = (HttpsURLConnection) u.openConnection();\r\n\r\n\t\t\tInputStream in = conn.getInputStream();\r\n\t\t\tString profileJSON = Streams.toString(in);\r\n\t\t\tStreams.close(in);\r\n\r\n\t\t\tSystem.out.println(\"MS API Response: \" + profileJSON);\r\n\r\n\t\t\tif (profileJSON == null || profileJSON.length() == 0) { return new Profile(); }\r\n\r\n\t\t\tJsonObject pj = JsonObject.readFrom(profileJSON);\r\n\r\n\t\t\tProfile p = new Profile(pj.get(\"username\").asString(), uuid);\r\n\t\t\tJsonValue skinVal = pj.get(\"skin\");\r\n\t\t\tJsonValue capeVal = pj.get(\"cape\");\r\n\t\t\tJsonValue modelVal = pj.get(\"model\");\r\n\r\n\t\t\tString url;\r\n\t\t\tif (skinVal != null && !skinVal.isNull() && !skinVal.asString().isEmpty()) {\r\n\t\t\t\turl = textureHandler.addSkin(uuid, skinVal.asString());\r\n\t\t\t\tp.setSkin(url);\r\n\t\t\t}\r\n\r\n\t\t\tif (capeVal != null && !capeVal.isNull() && !capeVal.asString().isEmpty()) {\r\n\t\t\t\turl = textureHandler.addCape(uuid, capeVal.asString());\r\n\t\t\t\tp.setCape(url);\r\n\t\t\t}\r\n\r\n\t\t\tif (modelVal != null && !modelVal.isNull()) {\r\n\t\t\t\tString model = modelVal.asString();\r\n\t\t\t\tif (model.equals(\"slim\")) {\r\n\t\t\t\t\tp.setModel(CharacterModel.SLIM);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tp.setModel(CharacterModel.CLASSIC);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn p;\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.out.println(\"Unable to parse getProfile response, using blank profile\");\r\n\t\t\treturn new Profile();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn new Profile();\r\n\t}",
"public static Personagem fromJson(JSONObject json){\n Personagem personagem = new Personagem(\n json.getString(\"nome\"),\n json.getString(\"raca\"),\n json.getString(\"profissao\"),\n json.getInt(\"mana\"),\n json.getInt(\"ataque\"),\n json.getInt(\"ataqueMagico\"),\n json.getInt(\"defesa\"),\n json.getInt(\"defesaMagica\"),\n json.getInt(\"velocidade\"),\n json.getInt(\"destreza\"),\n json.getInt(\"experiencia\"),\n json.getInt(\"nivel\")\n\n );\n return personagem;\n }",
"@Override\n public BitfinexModel deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException\n {\n JsonElement bitfinexModel = json.getAsJsonObject();\n\n /**\n * Deserialize the JsonElement as GSON\n */\n return new Gson().fromJson(bitfinexModel, BitfinexModel.class);\n }",
"public static RippleAccount fromJSON(JSONObject json) throws JSONException {\n\t\t\n\t\t// Set the RippleAccount.\n\t\tRippleAccount account = new RippleAccount();\n\t\taccount.setAccountAddress(json.getString(ID_ACCOUNT_ADDRESS));\n\t\taccount.setBalance(json.getInt(ID_BALANCE));\n\t\t\n\t\t// account JSON typically contains a wallet\n\t\tRippleWallet wallet = RippleWallet.fromAccountJSON(json);\n\t\taccount.addWallet(wallet); // Add the RippleWallet to account.\n\t\t\n\t\treturn account;\n\t}",
"public ObjectProfile getObjectProfile(String pid) throws SAXException, IOException, ParserConfigurationException, FedoraException {\r\n String url = fedoraBaseUrl + \"/objects/\" + pid + \"?format=xml\";\r\n GetMethod get = new GetMethod(url);\r\n try {\r\n client.executeMethod(get);\r\n if (get.getStatusCode() == 200) {\r\n InputStream response = get.getResponseBodyAsStream();\r\n Document xml = null;\r\n DocumentBuilder parser = getDocumentBuilder();\r\n synchronized (parser) {\r\n xml = parser.parse(response);\r\n }\r\n response.close();\r\n return new ObjectProfile(xml, getXPath());\r\n } else {\r\n throw new FedoraException(\"REST action \\\"\" + url + \"\\\" failed: \" + get.getStatusLine());\r\n }\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"private static boolean loadSharedPreferencesFromFile(File src) {\n\t\tboolean res = false;\n\t\tObjectInputStream input = null;\n\t\ttry {\n\t\t\tinput = new ObjectInputStream(new FileInputStream(src));\n\t\t\tEditor prefEdit = PreferenceManager.getDefaultSharedPreferences(mContext).edit();\n\t\t\tprefEdit.clear();\n\t\t\t// first object is preferences\n\t\t\tMap<String, ?> entries = (Map<String, ?>) input.readObject();\n\t\t\t\t\n\t\t\tfor (Entry<String, ?> entry : entries.entrySet()) {\n\t\t\t\tObject v = entry.getValue();\n\t\t\t\tString key = entry.getKey();\n\t\n\t\t\t\tif (v instanceof Boolean)\n\t\t\t\t\tprefEdit.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\t\telse if (v instanceof Float)\n\t\t\t\t\tprefEdit.putFloat(key, ((Float) v).floatValue());\n\t\t\t\telse if (v instanceof Integer)\n\t\t\t\t\tprefEdit.putInt(key, ((Integer) v).intValue());\n\t\t\t\telse if (v instanceof Long)\n\t\t\t\t\tprefEdit.putLong(key, ((Long) v).longValue());\n\t\t\t\telse if (v instanceof String)\n\t\t\t\t\tprefEdit.putString(key, ((String) v));\n\t\t\t}\n\t\t\tprefEdit.commit();\n\t\n\t\t\t// second object is admin options\n\t\t\tEditor adminEdit = mContext.getSharedPreferences(AdminPreferencesActivity.ADMIN_PREFERENCES, 0).edit();\n\t\t\tadminEdit.clear();\n\t\t\t// first object is preferences\n\t\t\tMap<String, ?> adminEntries = (Map<String, ?>) input.readObject();\n\t\t\tfor (Entry<String, ?> entry : adminEntries.entrySet()) {\n\t\t\t\tObject v = entry.getValue();\n\t\t\t\tString key = entry.getKey();\n\t\n\t\t\t\tif (v instanceof Boolean)\n\t\t\t\t\tadminEdit.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\t\telse if (v instanceof Float)\n\t\t\t\t\tadminEdit.putFloat(key, ((Float) v).floatValue());\n\t\t\t\telse if (v instanceof Integer)\n\t\t\t\t\tadminEdit.putInt(key, ((Integer) v).intValue());\n\t\t\t\telse if (v instanceof Long)\n\t\t\t\t\tadminEdit.putLong(key, ((Long) v).longValue());\n\t\t\t\telse if (v instanceof String)\n\t\t\t\t\tadminEdit.putString(key, ((String) v));\n\t\t\t}\n\t\t\tadminEdit.commit();\n\t\n\t\t\tLog.i(t, \"Loaded hashmap settings into preferences\");\n\t\t\tres = true;\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (input != null) {\n\t\t\t\t\tinput.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"public static Preference pull(String url) {\n\t\tPreference preference = null;\n\t\t\n\t\ttry {\n\t\t\tXMLInputFactory factory = XMLInputFactory.newFactory();\n\t\t\tInputStream input = new FileInputStream(url);\n\t\t\tXMLEventReader inputEventReader = factory.createXMLEventReader(input);\t\t\t\n\n\t\t\twhile(inputEventReader.hasNext()) {\n\t\t\t\tXMLEvent event = inputEventReader.nextEvent();\n\t\t\t\t\n\t\t\t\tif (event.isStartElement()) {\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\tString startElementName = startElement.getName().getLocalPart();\n\t\t\t\t\tif (startElementName.equals(\"environment\")) {\n\t\t\t\t\t\tpreference = new Preference();\n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"population-size\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent(); \n preference.populationSize = Integer.parseInt(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"infection-rate\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent(); \n preference.infectionRate = Double.parseDouble(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"initial-infected\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent(); \n preference.initialInfected = Integer.parseInt(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"initial-recovered\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent(); \n preference.initialRecovered = Integer.parseInt(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"ser1-duration\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent();\n preference.latency1 = Integer.parseInt(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"ser2-duration\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent();\n preference.latency2 = Integer.parseInt(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"run-duration\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent(); \n preference.runDuration = Integer.parseInt(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"in-years\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent(); \n preference.inYears = Boolean.parseBoolean(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t\tif (startElementName.equals(\"neighbors\")) {\n\t\t\t\t\t\tevent = inputEventReader.nextEvent(); \n preference.neighbors = Integer.parseInt(event.asCharacters().getData()); \n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tif (!preference.inYears)\n\t\t\t\tpreference.runDuration = preference.runDuration * 365;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Caught\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn preference;\n\t}",
"private static JSONTile parse(String configFile) {\n Gson gson = new Gson();\n\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(new FileInputStream(configFile), StandardCharsets.UTF_8))) {\n return gson.fromJson(reader, JSONTile.class);\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Error when reading file: \" + configFile, e);\n }\n }",
"public ProvisioningEntity parseJsonCacheEntity(String json) {\n if (StringUtils.isBlank(json)) {\n return null;\n }\n ProvisioningEntity provisioningEntity = this.cacheJsonToProvisioningEntity.get(json);\n \n if (provisioningEntity != null) {\n return provisioningEntity;\n }\n \n try {\n provisioningEntity = new ProvisioningEntity();\n provisioningEntity.fromJsonForCache(json);\n \n } catch (Exception e) {\n LOG.error(\"Problem parsing json '\" + json + \"'\", e);\n provisioningEntity = null;\n }\n \n this.cacheJsonToProvisioningEntity.put(json, provisioningEntity);\n return provisioningEntity;\n \n }",
"com.google.protobuf2.AnyOrBuilder getProfileOrBuilder();",
"private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }",
"@Override\n public T deserialize(JsonParser p, DeserializationContext ctxt)\n throws JacksonException\n {\n if (ctxt.isEnabled(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY)) {\n return deserializeFromSingleValue(p, ctxt);\n }\n // if not deserialize the normal way\n return deserializeContents(p, ctxt);\n }",
"org.beangle.security.session.protobuf.Model.Profile getProfiles(int index);",
"public static <T> Map<String, T> jsonToMap(String json, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(Map.class, new Class[]{String.class, elementType});\n\t\t\n\t\treturn gson.fromJson(json, type);\n\t}",
"@JsonProperty(\"loadUserProfile\")\r\n @JacksonXmlProperty(localName = \"load_user_profile\", isAttribute = true)\r\n public String getLoadUserProfile() {\r\n return loadUserProfile;\r\n }",
"@java.lang.Override\n public com.google.protobuf2.Any getProfile() {\n return profile_ == null ? com.google.protobuf2.Any.getDefaultInstance() : profile_;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"In Prince 9.0 and up you can set the PDF profile.\")\n @JsonProperty(JSON_PROPERTY_PROFILE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getProfile() {\n return profile;\n }",
"public PreferenceBean decodeRow(ResultSet rs) throws SQLException\n {\n PreferenceBean pObject = createPreferenceBean();\n pObject.setPreferenceid(Manager.getInteger(rs, 1));\n pObject.setName(rs.getString(2));\n pObject.setPreferencetypeid(Manager.getInteger(rs, 3));\n pObject.setRegbyid(Manager.getInteger(rs, 4));\n pObject.setRegdate(rs.getTimestamp(5));\n pObject.setActive(Manager.getBoolean(rs, 6));\n pObject.setDeleted(Manager.getBoolean(rs, 7));\n pObject.setReservationid(Manager.getInteger(rs, 8));\n pObject.setIsstandart(Manager.getBoolean(rs, 9));\n\n pObject.isNew(false);\n pObject.resetIsModified();\n\n return pObject;\n }",
"public abstract Object deserialize(Object object);",
"Map<String, Object> getUserProfile();",
"void update(org.sakaiproject.nakamura.api.lite.Session session, String profilePath,\n JSONObject json, boolean replace, boolean replaceProperties, boolean removeTree)\n throws StorageClientException, AccessDeniedException, JSONException;",
"List<GistComment> deserializeCommentsFromJson(String json);",
"public User parseUser(InputStream in) throws DataParseException;",
"public XmlParserPref(Context cont, String name) {\n\t\tcontext = cont;\n\t\tprefEdit = PreferenceManager.getDefaultSharedPreferences(context).edit();\n\t\tprofileName = name;\n\t}",
"protected List<Profile> createMetadata(JsonNode node) {\n return this.createProfiles(\"metadata\", node);\n }",
"public static <T> T toBean(String json, Class<T> clazz) {\n if (!StringUtils.isEmpty(json)) {\n ObjectMapper mapper = getObjectMapper();\n try {\n return mapper.readValue(json, clazz);\n } catch (Exception e) {\n logger.error(\"JSONString : \" + json, e);\n }\n }\n return null;\n }",
"SessionSerializationMetadata deserialize( byte[] data ) throws IOException, ClassNotFoundException;",
"protected Bundle readBundle(XmlPullParser parser)\n throws IOException, XmlPullParserException {\n\n Bundle bundle = null;\n int outerDepth = parser.getDepth();\n while (XmlUtils.nextElementWithin(parser, outerDepth)) {\n if (parser.getName().equals(TAG_VALUE)) {\n String valueType = parser.getAttributeValue(null, ATTRIBUTE_VALUE_TYPE);\n String key = parser.getAttributeValue(null, ATTRIBUTE_KEY);\n parser.next();\n String value = parser.getText();\n\n if (bundle == null) {\n bundle = new Bundle();\n }\n\n // Do not write null values to the bundle.\n if (value == null) {\n continue;\n }\n\n if (VALUE_TYPE_STRING.equals(valueType)) {\n bundle.putString(key, value);\n } else if (VALUE_TYPE_INTEGER.equals(valueType)) {\n try {\n int intValue = Integer.parseInt(value);\n bundle.putInt(key, intValue);\n } catch (NumberFormatException nfe) {\n Log.w(this, \"Invalid integer PhoneAccount extra.\");\n }\n } else if (VALUE_TYPE_BOOLEAN.equals(valueType)) {\n boolean boolValue = Boolean.parseBoolean(value);\n bundle.putBoolean(key, boolValue);\n } else {\n Log.w(this, \"Invalid type \" + valueType + \" for PhoneAccount bundle.\");\n }\n }\n }\n return bundle;\n }",
"@Override\n public void loadProfileUserData() {\n mProfilePresenter.loadProfileUserData();\n }",
"java.util.List<org.beangle.security.session.protobuf.Model.Profile>\n getProfilesList();",
"private void getPrefs(){\n SharedPreferences sharedPreferences = getSharedPreferences(LIST_TAG, MODE_PRIVATE);\n Gson gson = new Gson();\n String json = sharedPreferences.getString(PREFS_TAG, null);\n Type type = new TypeToken<ArrayList<String[]>>() {}.getType();\n dataPref = gson.fromJson(json, type);\n\n if(dataPref == null){\n LoadFromCSV();\n }\n else {\n Log.d(\"getPrefs\", \"was called \");\n itemArrAdapt.setList(dataPref);\n }\n\n }",
"public static PhotoAlbumManager deserialize() throws IOException, ClassNotFoundException {\n\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(storeDir + File.separator + storeFile));\n\t\tPhotoAlbumManager userdata = (PhotoAlbumManager) ois.readObject();\n\t\tois.close();\n\t\treturn userdata;\n\t}",
"Object deserialize(Writable blob) throws SerDeException;",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic ListInfo deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)\n\t\t\tthrows JsonParseException {\n\t\tListInfo listInfo = new ListInfo();\n\n\t\tJsonObject topMap = json.getAsJsonObject();\n\t\tlistInfo.setLastUpdate(topMap.get(LAST_UPDATE).getAsLong());\n\t\tlistInfo.setName(topMap.get(NAME).getAsString());\n\t\tlistInfo.setStatus(TimeStampedNode.Status.valueOf(topMap.get(STATUS).getAsString()));\n\t\tif (topMap.has(UNIQUE_ID)){\n\t\t\tlistInfo.setUniqueId(topMap.get(UNIQUE_ID).getAsString());\n\t\t}\n\n\t\tif (topMap.has(ITEMS)) {\n\t\t\tJsonArray itemsJson = topMap.get(ITEMS).getAsJsonArray();\n\t\t\tfor (JsonElement itemJsonElement : itemsJson) {\n\t\t\t\tItemInfo item = context.deserialize(itemJsonElement, ItemInfo.class);\n\n\t\t\t\t//Add it to the map. Note, order is lost, but since it's always alphabetical order it's ok\n\t\t\t\tlistInfo.getItems().put(item.getUniqueId(), item);\n\t\t\t}//for itemsJson\n\t\t}//if has items\n\n\t\tif (topMap.has(CATEGORIES)) {\n\t\t\tJsonArray categoriesJson = topMap.get(CATEGORIES).getAsJsonArray();\n\t\t\t//Hack needed to make it deserialize to an ArrayList correctly.\n\t\t\t//http://stackoverflow.com/questions/5554217/google-gson-deserialize-listclass-object-generic-type\n\t\t\tType listType = new TypeToken<TreeSet<CategoryInfo>>() {\n }.getType();\n\t\t\tlistInfo.setCategories((TreeSet<CategoryInfo>)context.deserialize(categoriesJson, listType));\n\t\t\t//We never want to say it's changed when reading it in.\n\t\t\tfor (CategoryInfo cat : listInfo.getCategories()) {\n\t\t\t\tcat.setChangedOnServer(false);\n\t\t\t}\n\t\t}//if has categories\n\t\t\n\t\tif (topMap.has(SELECTED_CATEGORIES)) {\n\t\t\tJsonArray selCatJson = topMap.get(SELECTED_CATEGORIES).getAsJsonArray();\n\t\t\tType listType = new TypeToken<HashSet<String>>() {\n }.getType();\n\t\t\tlistInfo.setSelectedCategories((HashSet<String>) context.deserialize(selCatJson, listType));\n\t\t}//if has selectedCategories\n\t\t\n\t\tif (topMap.has(OTHER_USER_PRIVS)) {\n\t\t\tJsonObject privsJson = topMap.get(OTHER_USER_PRIVS).getAsJsonObject();\n\t\t\tfor ( Map.Entry<String,JsonElement> privEntry : privsJson.entrySet()){\n\t\t\t\tOtherUserPrivOnList privInfo = context.deserialize(privEntry.getValue(), OtherUserPrivOnList.class);\n\t\t\t\tprivInfo.userId = privEntry.getKey();\n\t\t\t\tlistInfo.getOtherUserPrivs().put(privEntry.getKey(), privInfo);\n\t\t\t}//for categoriesJson\n\t\t}//if has selectedCategories\n\n\t\t//Note, always ignore changedOnServer when parsing.\n\t\t\n\t\treturn listInfo;\n\t}",
"@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getProfileOrBuilder() {\n return getProfile();\n }",
"public static StandardUserModel loaduser(Context context) throws InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException {\n\t\tconstructGson();\n\t\tStandardUserModel user = new StandardUserModel(context);\n\t\tfilename = userprofile;\n\t\tFileInputStream FileOpen;\n\t\ttry {\n\t\t\tFileOpen = context.getApplicationContext().openFileInput(filename);\n\t\t\tInputStreamReader FileReader = new InputStreamReader(FileOpen);\n\t\t\tBufferedReader buffer = new BufferedReader(FileReader);\n\n\t\t\tString input;\n\t\t\twhile ((input = buffer.readLine()) != null) {\n\t\t\t\t\tuser = gson.fromJson(input,StandardUserModel.class);\t\t\t\t\t\n\t\t\t}\n\t\t\tStandardUserModel.setInstance(user);\n\t\t\treturn user;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tStandardUserModel.setInstance(user);\n\n\t\treturn user;\n\t}",
"public interface ProfileCommand extends Jsonable {\n\n @Data\n @SuppressWarnings(\"serial\")\n @Immutable\n @JsonDeserialize\n final class CreateProfile implements ProfileCommand, PersistentEntity.ReplyType<Done> {\n final public Profile profile;\n }\n\n @Data\n @SuppressWarnings(\"serial\")\n @Immutable\n @JsonDeserialize\n final class GetProfile implements ProfileCommand, PersistentEntity.ReplyType<Profile> {\n\n }\n}",
"public @Nullable <T> T fromJson(@NonNull Reader reader, @NonNull Class<T> clazz) {\n return gson.fromJson(reader, clazz);\n }",
"private String profileTest() {\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(\n \"/home/pascal/bin/workspace_juno/pgu-geo/war/WEB-INF/pgu/profile.json\"));\n } catch (final FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n\n final StringBuilder sb = new StringBuilder();\n String line = null;\n\n try {\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n return sb.toString();\n }",
"@Override\n public void parseJson(JsonObject jsonObject) throws JsonException {\n publicKeyInfo = getStringIfSet(jsonObject,\"publicKeyInfo\");\n nodeAddress = getStringIfSet(jsonObject,\"nodeAddress\");\n nodePort = getIntIfSet(jsonObject,\"nodePort\");\n mainNet = getBooleanIfSet(jsonObject,\"mainNet\");\n }",
"public void fromJSON(String json) throws JSONException;",
"@Override\r\n public void load(Profile profile) {\r\n refineCoins.getServer().getScheduler().runTaskAsynchronously(refineCoins, () -> {\r\n final Document document = mongoHandler.getProfiles().find(Filters.eq(\"_id\", profile.toString())).first();\r\n\r\n if (document == null) {\r\n this.save(profile, false);\r\n return;\r\n }\r\n\r\n profile.setCoins(document.getInteger(\"coins\"));\r\n });\r\n }",
"public void setPreference() {\n prefs = Preferences.userRoot().node(this.getClass().getName());\n String ID1 = \"Test1\";\n String ID2 = \"Test2\";\n String ID3 = \"Test3\";\n// First we will get the values\n// Define a boolean value\n System.out.println(prefs.getBoolean(ID1, true));\n// Define a string with default \"Hello World\n System.out.println(prefs.get(ID2, \"Hello World\"));\n// Define a integer with default 50\n System.out.println(prefs.getInt(ID3, 50));\n// Now set the values\n prefs.putBoolean(ID1, false);\n prefs.put(ID2, \"Hello Europa\");\n prefs.putInt(ID3, 45);\n\t\t\n prefs.remove(ID1);// Delete the preference settings for the first value\n }",
"@Override\n\tpublic Dog deserialize(JsonElement json, Type typeOfT,\n\t\t\tJsonDeserializationContext context) throws JsonParseException {\n\t\tJsonObject obj = json.getAsJsonObject();\n\t\tJsonPrimitive name = (JsonPrimitive) obj.get(\"name\");\n\t\tJsonPrimitive ferocity = (JsonPrimitive) obj.get(\"ferocity\");\n\t\treturn Dog.create(name.getAsString(), ferocity.getAsInt());\n\t}",
"protected <T> T deserialize(final String value, final Class<T> type) throws JsonDeserializationException {\n return json.deserialize(value, type);\n }",
"private void load(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n Gson gson = new Gson();\n\n String json = preferences.getString(LISTS_DOWNLOADED,null);\n Type type =new TypeToken<ArrayList<String>>() {}.getType();\n downloadedBooks = gson.fromJson(json,type);\n\n json = preferences.getString(LISTS_PROGRESS,null);\n type =new TypeToken<ArrayList<Integer>>() {}.getType();\n progress=gson.fromJson(json,type);\n\n if(downloadedBooks == null){\n downloadedBooks = new ArrayList<>();\n }\n if(progress == null){\n progress = new ArrayList<>();\n }\n\n }",
"public static GameProfile fixGameProfile(GameProfile profile) {\n if (profile.getId() != null) {\n return profile;\n }\n\n try {\n return Stream.concat(\n readCustomBlob(profile, \"hd_textures\", MinecraftTexturesPayload.class),\n readCustomBlob(profile, \"textures\", MinecraftTexturesPayload.class)\n )\n .filter(blob -> blob.getProfileId() != null)\n .findFirst()\n .map(blob -> new GameProfile(blob.getProfileId(), blob.getProfileName()))\n .orElse(profile);\n } catch (Exception e) { // Something broke server-side probably\n HDSkins.LOGGER.warn(\"{} had a null UUID and was unable to recreate it from texture profile.\", profile.getName(), e);\n }\n\n return profile;\n }",
"public static <T> T fromJSON(final String json, final Class<T> clazz) {\n return gson.fromJson(json, clazz);\n }",
"ProfileStatusReader getProfileUpdate( String profileId );",
"Properties readConfigurationAsProperties(String moduleName, String profile) throws Exception;",
"private static FluidMatch deserialize(JsonObject json) {\n String fluidName = GsonHelper.getAsString(json, \"name\");\n Fluid fluid = ForgeRegistries.FLUIDS.getValue(new ResourceLocation(fluidName));\n if (fluid == null || fluid == Fluids.EMPTY) {\n throw new JsonSyntaxException(\"Unknown fluid '\" + fluidName + \"'\");\n }\n int amount = GsonHelper.getAsInt(json, \"amount\");\n return new FluidMatch(fluid, amount);\n }",
"protected void load(Profile profile) throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"load\", profile);\n \t\t}\n \t\t// Do a cache lookup first. If cache miss, make a network call to get\n \t\t// Profile\n \t\t\n \t\tDocument data = getProfileDataFromCache(profile.getReqId());\n \t\tif (data != null) {\n \t\t\tprofile.setData(data);\n \t\t} else {\n \n \t\t\tMap<String, String> parameters = new HashMap<String, String>();\n \t\t\tif (isEmail(profile.getReqId())) {\n \t\t\t\tparameters.put(\"email\", profile.getReqId());\n \t\t\t} else {\n \t\t\t\tparameters.put(\"userid\", profile.getReqId());\n \t\t\t}\n \t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n \t\t\tObject result = executeGet(url, parameters, ClientService.FORMAT_XML);\n \n \t\t\tif (result != null) {\n \t\t\t\tprofile.setData((Document) result);\n \t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n \t\t\t} else {\n \t\t\t\tprofile.setData(null);\n \t\t\t}\n \n \t\t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\t\tlogger.exiting(sourceClass, \"load\");\n \t\t\t}\n \t\t}\n \t}",
"@SuppressWarnings( \"unchecked\" )\n Map<String, Object> parse(XmlElement element) throws XmlParseException\n {\n if (!\"plist\".equalsIgnoreCase(element.getName()))\n throw new XmlParseException(\"Expected plist top element, was: \" + element.getName());\n\n // Assure that the top element is a dict and the single child element.\n if (element.size() != 1) throw new XmlParseException(\"Expected single 'dict' child element.\");\n element.getUnique(\"dict\");\n\n return (Map<String, Object>)parseElement(element.getUnique(\"dict\"));\n }",
"public static BankAccount fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, BankAccount.class);\n }",
"private User parseUser(JSONObject jsonObject) {\n int age = jsonObject.getInt(\"age\");\n String sex = jsonObject.getString(\"sex\").toUpperCase();\n int weight = jsonObject.getInt(\"weight\");\n int height = jsonObject.getInt(\"height\");\n String goalWeight = jsonObject.getString(\"goal weight\");\n String activityLevel = jsonObject.getString(\"activity level\");\n\n User user = new User(age,sex,weight,height,goalWeight);\n user.setActivityLevel(activityLevel);\n\n parseGoal(user, jsonObject);\n parseFoodLog(user, jsonObject);\n\n return user;\n }",
"@Override\n\tpublic Persona decode(Reader reader) throws DecodeException, IOException {\n\t\tPersona persona = new Persona();\n\t\t\n\t\ttry {\n\t\t\tJSONStringer json = new JSONStringer();\n\t\t\t\n\t\t\tjson.object();\n\t\t\tString codigo = json.key(\"codigo\").value(persona.getCodigo()).toString();\n\t\t\tString nombre = json.key(\"nombre\").value(persona.getNombre()).toString();\n\t\t\tString apellido = json.key(\"apellido\").value(persona.getApellido()).toString();\n\t\t\tString dni = json.key(\"DNI\").value(persona.getDni()).toString();\n\t\t\t\n\t\t\tpersona.setCodigo(codigo);\n\t\t\tpersona.setNombre(nombre);\n\t\t\tpersona.setApellido(apellido);\n\t\t\tpersona.setDni(dni);\n\t\t\treturn persona;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t}"
] |
[
"0.5136201",
"0.50986344",
"0.5019235",
"0.4854903",
"0.48514932",
"0.48251918",
"0.46691316",
"0.46562424",
"0.45081693",
"0.4497919",
"0.44945893",
"0.4458085",
"0.44510645",
"0.4412336",
"0.4409697",
"0.44058958",
"0.43879613",
"0.4310828",
"0.43100858",
"0.43043292",
"0.42961612",
"0.42918846",
"0.4273162",
"0.42722917",
"0.42652217",
"0.42378712",
"0.42374778",
"0.42341337",
"0.41828582",
"0.41646916",
"0.41495723",
"0.41482183",
"0.41389138",
"0.41301322",
"0.41250613",
"0.41034186",
"0.4093301",
"0.40923",
"0.4087774",
"0.4074576",
"0.4057542",
"0.40484658",
"0.40389425",
"0.40334257",
"0.4031431",
"0.40043166",
"0.39951506",
"0.39931583",
"0.39866197",
"0.39762744",
"0.39756382",
"0.39742488",
"0.39566013",
"0.39463016",
"0.39452273",
"0.39340365",
"0.39183256",
"0.39069173",
"0.38998085",
"0.3894338",
"0.3869598",
"0.38524628",
"0.3852429",
"0.3852385",
"0.38417584",
"0.38382274",
"0.3835263",
"0.3825777",
"0.3818979",
"0.3814564",
"0.38121536",
"0.38119534",
"0.38112867",
"0.38100582",
"0.3809355",
"0.38080642",
"0.38062707",
"0.38024667",
"0.38011178",
"0.37991792",
"0.3797814",
"0.37920636",
"0.37847707",
"0.37840167",
"0.3780969",
"0.3774328",
"0.3772807",
"0.37722805",
"0.37710652",
"0.37692973",
"0.3769121",
"0.3761522",
"0.37595588",
"0.37573466",
"0.37566507",
"0.3753797",
"0.37399507",
"0.37376973",
"0.3735263",
"0.37274194"
] |
0.3751087
|
96
|
Serialize profile preferences to JSON.
|
public static ObjectNode serializeToJSON(
final ObjectMapper jom,
final ReaderBookmarks description) {
NullCheck.notNull(jom, "Object mapper");
NullCheck.notNull(description, "Description");
final ObjectNode jo = jom.createObjectNode();
final ObjectNode by_id = jom.createObjectNode();
for (final Map.Entry<BookID, ReaderBookLocation> e : description.bookmarks().entrySet()) {
final BookID book_id = e.getKey();
final ReaderBookLocation location = e.getValue();
by_id.set(book_id.value(), ReaderBookLocationJSON.serializeToJSON(jom, location));
}
jo.set("locations-by-book-id", by_id);
return jo;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static boolean saveSharedPreferencesToJsonFile(File dst, Context context) {\n\t\t\n\t\tSharedPreferences pref = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tSharedPreferences adminPreferences = context.getSharedPreferences(\n\t\t\t\tAdminPreferencesActivity.ADMIN_PREFERENCES, 0);\n\n\t\tGson gson = new Gson();\n\t\tString jsonPrefs = \"{\\n\\\"general_preferences\\\": \" + gson.toJson(pref.getAll()) + \",\\n\" \n\t\t\t\t\t\t+ \"\\\"admin_preferences\\\": \" + gson.toJson(adminPreferences.getAll())\n\t\t\t\t\t\t+ \"}\";\n\t\tLog.d(\"AdminPreferencesActivity\", jsonPrefs);\n\t\t\n\t\treturn FileUtils.writeStringToFile(dst, jsonPrefs);\n\t}",
"public void storeUserPrefs(User user) {\n //start writing (open the file)\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(user);\n editor.putString(USER_PREFS, json);\n //close the file\n editor.apply();\n }",
"private final synchronized void writePreferencesImpl() {\n if ( LOGD ) { Log.d( TAG, \"writePreferencesImpl \" + mPrefFile + \" \" + mPrefKey ); }\n\n mForcePreferenceWrite = false;\n\n SharedPreferences pref =\n Utilities.getContext().getSharedPreferences( mPrefFile, Context.MODE_PRIVATE );\n SharedPreferences.Editor edit = pref.edit();\n edit.putString( mPrefKey, getSerializedString() );\n Utilities.commitNoCrash(edit);\n }",
"public static void SavePreferences()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(preferences_file_name, \"UTF-8\");\n \n writer.print(Utilities.BoolToInt(MusicManager.enable_music) + \"\\r\\n\");\n writer.print(Utilities.BoolToInt(PassiveDancer.englishMode) + \"\\r\\n\");\n \n writer.close();\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + preferences_file_name + \".\"); }\n }",
"protected String settingsAsJSON() {\n String json = null;\n if (indexSettings != null) {\n try {\n json = getObjectMapper().writeValueAsString(indexSettings);\n } catch (JsonProcessingException e) {\n String msg = String.format(\"Error processing index settings %s\",\n this.indexSettings.toString());\n logger.log(Level.SEVERE, msg, e);\n }\n }\n return json;\n }",
"void savePreferences() throws OntimizeJEERuntimeException;",
"public Map<String, Object> getProfileProperties() {\n return profileProperties;\n }",
"public String toJson(SerializationFormattingPolicy formattingPolicy) {\n this.populatePropertyBag();\n if (SerializationFormattingPolicy.Indented.equals(formattingPolicy) ) {\n return this.propertyBag.toString(INDENT_FACTOR);\n } else {\n return this.propertyBag.toString();\n }\n }",
"private void save(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(downloadedBooks);\n editor.putString( LISTS_DOWNLOADED, json);\n json = gson.toJson(progress);\n editor.putString( LISTS_PROGRESS, json);\n editor.apply();\n }",
"String toJSON();",
"public abstract Properties getProfileProperties();",
"public void savePreferences(SharedPreferences preferences){\r\n\t\tSharedPreferences.Editor editor = preferences.edit();\r\n editor.putBoolean(\"initialSetupped\", initialSetuped);\r\n editor.putString(\"username\", userName);\r\n editor.putString(\"useremail\", userEmail);\r\n editor.putString(\"recipientemail\", recipientEmail);\r\n editor.putBoolean(\"option\", option.isPound());\r\n\r\n // Commit the edits!\r\n editor.commit();\r\n\t}",
"private static void putJSONObjectIntoPreferences(JSONObject json, Editor prefs) throws JSONException{\n\t\t\n\t\tjava.util.Iterator<?> keys = json.keys();\n\t\t\n\t\twhile (keys.hasNext()) {\n\t\t\tString key = (String) keys.next();\n\t\t\tObject v = json.get(key);\n\t\n\t\t\tif (v instanceof Boolean)\n\t\t\t\tprefs.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\telse if (v instanceof Float)\n\t\t\t\tprefs.putFloat(key, ((Float) v).floatValue());\n\t\t\telse if (v instanceof Integer)\n\t\t\t\tprefs.putInt(key, ((Integer) v).intValue());\n\t\t\telse if (v instanceof Long)\n\t\t\t\tprefs.putLong(key, ((Long) v).longValue());\n\t\t\telse if (v instanceof String)\n\t\t\t\tprefs.putString(key, ((String) v));\n\t\t}\t\n\t}",
"public void storeChoicePrefs(ResultDetail restaurant) {\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(restaurant);\n editor.putString(RESTAURANTS, json);\n //close the file\n editor.apply();\n }",
"private static void saveJsonFile() {\n Log.println(Log.INFO, \"FileAccessing\", \"Writing settings file.\");\n JsonObject toSave = new JsonObject();\n JsonArray mappingControls = new JsonArray();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n JsonObject individualMapping = new JsonObject();\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n byte combinedAction = (byte) TaskDetail.actionToTask.keyAt(i);\n assert detail != null;\n int outerControl = detail.getTask();\n individualMapping.addProperty(\"combinedAction\", combinedAction);\n individualMapping.addProperty(\"task\", outerControl);\n mappingControls.add(individualMapping);\n }\n toSave.add(\"mappingControls\", mappingControls);\n\n JsonArray generalSettings = new JsonArray();\n for (SettingDetail setting : SettingDetail.settingDetails) {\n JsonObject individualSetting = new JsonObject();\n int status = setting.getCurrentIdx();\n individualSetting.addProperty(\"status\", status);\n generalSettings.add(individualSetting);\n }\n toSave.add(\"generalSettings\", generalSettings);\n\n JsonArray deviceList = new JsonArray();\n for (DeviceDetail device : DeviceDetail.deviceDetails) {\n JsonObject individualDevice = new JsonObject();\n individualDevice.addProperty(\"name\", device.deviceName);\n individualDevice.addProperty(\"mac\", device.macAddress);\n deviceList.add(individualDevice);\n }\n toSave.add(\"devices\", deviceList);\n\n JsonArray sensitivityList = new JsonArray();\n for (SensitivitySetting sensitivity : SensitivitySetting.sensitivitySettings) {\n JsonObject individualSensitivity = new JsonObject();\n individualSensitivity.addProperty(\"factor\", sensitivity.multiplicativeFactor);\n individualSensitivity.addProperty(\"sensitivity\", sensitivity.sensitivity);\n sensitivityList.add(individualSensitivity);\n }\n toSave.add(\"sensitivities\", sensitivityList);\n\n toSave.addProperty(\"currentlySelected\", DeviceDetail.getIndexSelected());\n\n try {\n FileOutputStream outputStreamWriter = context.openFileOutput(\"settingDetails.json\", Context.MODE_PRIVATE);\n outputStreamWriter.write(toSave.toString().getBytes());\n outputStreamWriter.close();\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file writing error.\");\n }\n }",
"public void saveProfiles() throws IOException\n {\n try\n {\n profFile.getParentFile().mkdirs();\n profFile.delete();\n profFile.createNewFile();\n PrettyPrinterXmlWriter pp = new PrettyPrinterXmlWriter(new SimpleXmlWriter(new FileWriter(profFile)));\n pp.writeXmlVersion();\n pp.writeEntity(\"XNATProfiles\");\n if (this.size() != 0)\n {\n for (XNATProfile ip : this)\n {\n pp.writeEntity(\"XNATProfile\")\n .writeAttribute(\"profileName\", ip.getProfileName())\n \n .writeEntity(\"serverURL\")\n .writeText(ip.getServerURL().toString())\n .endEntity() \n // encrypt(sc.getServerURL().toString()));\n \n .writeEntity(\"userid\")\n .writeText(ip.getUserid())\n .endEntity()\n \n .writeEntity(\"projectList\");\n \n for (String is : ip.getProjectList())\n pp.writeEntity(\"project\")\n .writeText(is)\n .endEntity();\n \n pp.endEntity()\n .writeEntity(\"dicomReceiverHost\")\n .writeText(ip.getDicomReceiverHost())\n .endEntity()\n \n .writeEntity(\"dicomReceiverPort\")\n .writeText(ip.getDicomReceiverPort())\n .endEntity()\n \n .writeEntity(\"dicomReceiverAeTitle\")\n .writeText(ip.getDicomReceiverAeTitle())\n .endEntity()\n \n .endEntity();\n }\n }\n pp.writeEntity(\"preferredProfile\")\n .writeText(currentProfile)\n .endEntity()\n .endEntity()\n .close();\n }\n catch (IOException exIO)\n \t\t{\n throw exIO;\n }\n }",
"public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Preferences [\" + \"language=\" + language +\"]\" ;\n\t}",
"private static void exportJsonFile(File configFile) {\n Gson gson = new Gson();\n \n // Java object to JSON, and assign to a String\n String jsonInString = gson.toJson(GameConfig.getInstance());\n \n try {\n FileWriter writer = new FileWriter(configFile);\n \n writer.append(jsonInString);\n writer.flush();\n writer.close();\n } catch (IOException e) {\n LogUtils.error(\"exportJsonFile => \",e);\n }\n }",
"public void saveValues() {\n bluej.setExtensionPropertyString(PROFILE_LABEL, color.getText());\r\n }",
"public Preferences getPrefs() {\n return _prefs;\n }",
"private void saveJSON(String myList, String saveFile, ArrayList<JSONObject> arr) {\n SharedPreferences sharedPreferences = getSharedPreferences(saveFile, MODE_PRIVATE);\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n Gson gson = new Gson();\n String typeList = gson.toJson(arr);\n prefEditor.putString( myList, typeList );\n System.out.println(\"saveJSON myList = \" + myList);\n prefEditor.apply();\n }",
"private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }",
"@Override\n\tpublic String convertToJavascript() {\n\t\tString str = \"new Property('\" + propType.getSSID() + \"', '\" + displayName + \"', '\" + mode.toString() + \"', '\"\n\t\t\t\t+ value.toString() + \"')\";\n\t\treturn str;\n\t}",
"public String toJsonString() {\n String str;\n String str2;\n try {\n if (this.lifetime == null) {\n str = \"null\";\n } else {\n str = \"\\\"\" + this.lifetime.toString() + \"\\\"\";\n }\n if (this.frequency == null) {\n str2 = \"\";\n } else {\n str2 = \",\\\"frequency\\\":\" + this.frequency;\n }\n return \"{\\\"enabled\\\":\" + this.enabled + str2 + \",\\\"lifetime\\\":\" + str + \"}\";\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return \"\";\n }\n }",
"public JSONObject toJSON() throws JSONException {\n\t\tJSONObject json = new JSONObject();\n\t\tjson.put(ID_ACCOUNT_ADDRESS, getAccountAddress()); // Add account address.\n\t\tjson.put(ID_BALANCE, getBalance()); // Add account balance.\n\t\t\n\t\tArrayList<RippleWallet> foundWallets = getWallets();\n\t\tArrayList<JSONObject> jsonWallets = new ArrayList<JSONObject>();\n\t\tIterator<RippleWallet> walletIterator = foundWallets.iterator();\n\t\twhile (walletIterator.hasNext()) {\n\t\t\tjsonWallets.add(walletIterator.next().toJSON());\n\t\t}\n\t\tjson.put(\"wallets\", jsonWallets); // Add wallets.\n\t\t\n\t\treturn json;\n\t}",
"JSONObject toJson();",
"JSONObject toJson();",
"@Override\n public Object toJson() {\n JSONObject json = (JSONObject)super.toJson();\n json.put(\"name\", name);\n json.put(\"reason\", reason);\n return json;\n }",
"public JSONObject jsonSerialize() {\n JSONObject jsonObject = new JSONObject();\n\n // Serialize the UrlDevices\n JSONArray urlDevices = new JSONArray();\n for (UrlDevice urlDevice : mDeviceIdToUrlDeviceMap.values()) {\n urlDevices.put(urlDevice.jsonSerialize());\n }\n jsonObject.put(DEVICES_KEY, urlDevices);\n\n // Serialize the URL metadata\n JSONArray metadata = new JSONArray();\n for (PwsResult pwsResult : mBroadcastUrlToPwsResultMap.values()) {\n metadata.put(pwsResult.jsonSerialize());\n }\n jsonObject.put(METADATA_KEY, metadata);\n\n jsonObject.put(SCHEMA_VERSION_KEY, SCHEMA_VERSION);\n return jsonObject;\n }",
"public String toJSON() {\n return new Gson().toJson(this);\n }",
"public String toJson() { return new Gson().toJson(this); }",
"protected void serializeState() {\n\t\tint ii = 0;\n\t\t\n\t\tfor(GEditorPanel gep : editorPanels) {\n\t\t\tif(gep.getFilePath() != null && gep.getFilePath().length() > 0) {\n\t\t\t\tPreference.PREFERENCES_NODE.put(\"editSession\" + ++ii, gep.getFilePath());\n\t\t\t}\n\t\t}\n\t\t\n\t\tAccessors.INT_ACCESSOR.put(\"numberOfFiles\", ii);\n\t}",
"private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void save() {\n savePrefs();\n }",
"protected void savePlayers(Context context) {\n\t\tif (context == null) return;\n\n\t\t//Create json\n\t\tJSONObject JSON = new JSONObject();\n\t\ttry {\n\t\t\t//Save\n\t\t\tJSON.put(JSON_ID, m_ID);\n\t\t\tJSON.put(JSON_EMAIL, m_Email);\n\t\t} catch (JSONException e) {}\n\n\t\t//Get access to preference\n\t\t/*SharedPreferences Preference \t= context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tSharedPreferences.Editor Editor\t= Preference.edit();\n\n\t\t//Save\n\t\tEditor.putString(KEY_PLAYERS, JSON.toString());\n\t\tEditor.commit();*/\n\t}",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJsonString() {\n return JsonUtils.getGson().toJson(toJson());\n }",
"public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }",
"private void saveClubList() {\n SharedPreferences sharedPreferences = getSharedPreferences(\"Shared Preferences\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(clubList);\n editor.putString(\"Club List\", json);\n editor.apply();\n }",
"public void storePreferences(String userid, String token, JSONArray settings) throws JSONException {\n SharedPreferences sharedPreferences = getApplicationContext().getSharedPreferences(\"ca.gc.inspection.scoop\", Context.MODE_PRIVATE);\n\n JSONObject setting = settings.getJSONObject(0);\n Iterator<String> keys = setting.keys();\n while(keys.hasNext()){\n String settingKey = keys.next();\n if (settingKey.equals(useridStr)){ continue;}\n sharedPreferences.edit().putString(settingKey, setting.getString(settingKey)).apply();\n }\n\n // storing the token into shared preferences\n sharedPreferences.edit().putString(\"token\", token).apply();\n Config.token = token;\n\n // storing the user id into shared preferences\n sharedPreferences.edit().putString(useridStr, userid).apply();\n Config.currentUser = userid;\n\n // change activities once register is successful\n if(Config.token != null && Config.currentUser != null) registerSuccess();\n }",
"public String toJson() throws JSONException{\n\t\tif(this.email==null || this.password==null){\n\t\t\tthrow new IllegalStateException(\"Invalid Account information\");\n\t\t}\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"email\", this.email);\n\t\tobj.put(\"password\", this.password);\n\t\treturn obj.toString();\n\t}",
"@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}",
"public JsonObject serialize() {\n Map<String, Object> ret = new HashMap<>();\n ret.put(\"playerName\", this.playerName);\n ret.put(\"playerColour\", this.playerColour);\n ret.put(\"resources\", this.currentRes);\n List<JsonObject> famMembersJ = new ArrayList<>();\n this.famMemberList.forEach(f -> famMembersJ.add(f.serialize()));\n ret.put(\"famMembers\", famMembersJ);\n ret.put(\"excomms\", this.excommunications);\n ret.put(\"bonusTile\", this.bonusT.serialize());\n ret.put(\"cards\", this.cards.serialize());\n return new Gson().fromJson(new Gson().toJson(ret), JsonObject.class);\n }",
"protected void saveMisc(Context context) {\n\t\tif (context == null) return;\n\t\t\n\t\t//Create json\n\t\tJSONObject JSON = new JSONObject();\n\t\ttry {\n\t\t\t//Save\n\t\t\tJSON.put(JSON_LOGIN, m_Login);\n\t\t} catch (JSONException e) {}\n\t\t\n\t\t//Get access to preference\n\t\t/*SharedPreferences Preference \t= context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tSharedPreferences.Editor Editor\t= Preference.edit();\n\t\t\n\t\t//Save\n\t\tEditor.putString(KEY_MISC, JSON.toString());\n\t\tEditor.commit();*/\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void saveAccounts() {\n JSONObject output = new JSONObject();\n JSONArray allaccounts = new JSONArray();\n for (Account account: accounts) {\n if (account.getName().equals(pickedAccount.getName())) {\n allaccounts.add(pickedAccount.toJsonObject());\n } else {\n allaccounts.add(account.toJsonObject());\n }\n }\n output.put(\"accounts\", allaccounts);\n\n try {\n FileWriter file = new FileWriter(\"./data/account.json\");\n file.write(output.toJSONString());\n file.flush();\n file.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void toXML ( Element element )\r\n {\n element.setAttribute( \"name\", gadgetclass.getName() );\r\n\r\n // add each user preference\r\n for ( int i = 0; i < gadgetclass.getUserPrefsCount(); i++ )\r\n {\r\n UserPref up = gadgetclass.getUserPref( i );\r\n Object pref = getUserPrefValue( up );\r\n Element prefElement = element.getOwnerDocument().createElement(\r\n \"UserPref\" );\r\n prefElement.setAttribute( \"name\", up.getName() );\r\n Text prefText = element.getOwnerDocument().createTextNode(\r\n pref.toString() );\r\n prefElement.appendChild( prefText );\r\n element.appendChild( prefElement );\r\n }\r\n }",
"@Override\n public Path getUserPrefsFilePath() {\n return userPrefsStorage.getUserPrefsFilePath();\n }",
"private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }",
"private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }",
"private static JsonProfessor toBasicJson(Professor professor) {\r\n\t\tJsonProfessor jsonProfessor = new JsonProfessor();\r\n\t\tapplyBasicJsonValues(jsonProfessor, professor);\r\n\t\treturn jsonProfessor;\r\n\t}",
"public JsonObject toJson();",
"public String toJson() {\n return this.toJson(SerializationFormattingPolicy.None);\n }",
"public String toJson() {\n try{\n return new JsonSerializer().getObjectMapper().writeValueAsString(this);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }",
"private void saveMarkerPrefs(){\n String latLngsList = new Gson().toJson(latLngs);\n String namesList = new Gson().toJson(locationNames);\n dataStorage.setLatLngList(latLngsList);\n dataStorage.setLocNameList(namesList);\n }",
"@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n result.append(\"userProfile.id=[\").append(getId()).append(\"]\\n\");\n result.append(\"userProfile.city=[\").append(getCity()).append(\"]\\n\");\n result.append(\"userProfile.country=[\").append(getCountry()).append(\"]\\n\");\n result.append(\"userProfile.title=[\").append(getTitle()).append(\"]\\n\");\n result.append(\"userProfile.firstName=[\").append(getFirstName()).append(\"]\\n\");\n result.append(\"userProfile.lastName=[\").append(getLastName()).append(\"]\\n\");\n result.append(\"userProfile.gender=[\").append(getGender()).append(\"]\\n\");\n return result.toString();\n }",
"public GamePreferences getPrefs() {\n\t\treturn prefs;\n\t}",
"void savePreference(SignUpResponse response);",
"@Override\n\tpublic void saveUserProfile(UserProfile userProfile, boolean isOption,\n\t\t\tboolean isBan) throws Exception {\n\n\t}",
"public JsonObjectBuilder toJSONObject() {\n\n JsonObjectBuilder result = super.toJSONObject();\n\n if (userInfoEndpoint != null) {\n result.add(\"userinfo_endpoint\", userInfoEndpoint.toString());\n }\n\n return result;\n }",
"public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferences();\n\t\ttry {\n\t\t\tprefs.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tgetILog().log(createStatus(IStatus.ERROR, e));\n\t\t}\n\t}",
"public NetworkCallInformation getPreferences() {\n return preferencesModel.getPreferences();\n\n }",
"public String toJSON() throws JSONException;",
"public JSONObject toJSON() throws JSONException {\n JSONObject jo = new JSONObject();\n jo.put(ID, id);\n jo.put(NAME, displayName);\n jo.put(TIMESTAMP, syncTimestamp);\n jo.put(LASTIP, lastIP);\n JSONArray records = new JSONArray();\n Collection<DeletedSecret> deleted = deletedSecrets.values();\n for (DeletedSecret deletedSecret : deleted) {\n records.put(deletedSecret.toJSON());\n }\n jo.put(\"ds\", records);\n return jo;\n }",
"private void saveCurrentPreferences() {\n\t\toldUnitType = preferences.getInt(\"displayUnit\", UnitType.FOOTINCH.getId());\n\t\toldPrecision = preferences.getInt(\"precision\", 16);\n\t\toldRounding = preferences.getBoolean(\"roundUp\", true);\n\t\toldDisplayOptions = preferences.getString(\"displayOptions\", context.getString(R.string.displayAutomatic));\n\t}",
"private void saveInfoFields() {\n\n\t\tString name = ((EditText) getActivity().findViewById(R.id.profileTable_name))\n\t\t\t\t.getText().toString();\n\t\tint weight = Integer\n\t\t\t\t.parseInt(((EditText) getActivity().findViewById(R.id.profileTable_weight))\n\t\t\t\t\t\t.getText().toString());\n\t\tboolean isMale = ((RadioButton) getActivity().findViewById(R.id.profileTable_male))\n\t\t\t\t.isChecked();\n\t\tboolean smoker = ((CheckBox) getActivity().findViewById(R.id.profileTable_smoker))\n\t\t\t\t.isChecked();\n\t\tint drinker = (int) ((RatingBar) getActivity().findViewById(R.id.profileTable_drinker))\n\t\t\t\t.getRating();\n\n\t\tif (!name.equals(storageMan.PrefsName)) {\n\t\t\tstorageMan = new StorageMan(getActivity(), name);\n\t\t}\n\n\t\tstorageMan.saveProfile(new Profile(weight, drinker, smoker, isMale));\n\t\t\n\t\ttoast(\"pref saved\");\n\t}",
"public JsonObject toJson(){\n JsonObject json = new JsonObject();\n if(username != null){\n json.addProperty(\"username\" , username);\n }\n json.addProperty(\"title\", title);\n json.addProperty(\"description\", description);\n json.addProperty(\"date\", date);\n json.addProperty(\"alarm\", alarm);\n json.addProperty(\"alert_before\", alert_before);\n json.addProperty(\"location\", location);\n\n return json;\n }",
"@Headers({\"Content-Type: application/json\", \"Cache-Control: no-cache\"})\n @POST(\"/userpreference/create\")\n Call<Void> createUserPreference(@Body List<Preference> preferences);",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"In Prince 9.0 and up you can set the PDF profile.\")\n @JsonProperty(JSON_PROPERTY_PROFILE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getProfile() {\n return profile;\n }",
"ReadOnlyUserPrefs getUserPrefs();",
"ReadOnlyUserPrefs getUserPrefs();",
"ReadOnlyUserPrefs getUserPrefs();",
"ReadOnlyUserPrefs getUserPrefs();",
"public JSONObject toJSON(){\n\t\treturn toJSON(false, false);\n\t}",
"public SharedPreferences getPrefs() { return this.prefs; }",
"private String toJson(PredictionsList plist) {\n\tString json = \"If you see this, there's a problem.\";\n\ttry {\n\t json = new ObjectMapper().writeValueAsString(plist);\n\t}\n\tcatch(Exception e) { }\n\treturn json;\n }",
"public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }",
"public String getProfile() {\n return profile;\n }",
"String toJson() throws IOException;",
"public String toJsonString() {\n\t\tString json = null;\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\n\t\ttry {\n\t\t\tjson = mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\t}",
"public JSONObject toJson() {\n }",
"@Override\n public String encode() {\n JsonObject tmp = new JsonObject();\n addIfSet(tmp, \"id\", id);\n addIfSet(tmp, \"courseId\", courseId);\n addIfSet(tmp, \"sheetId\", sheetId);\n addIfSet(tmp, \"maxPoints\", maxPoints);\n addIfSet(tmp, \"type\", type);\n addIfSet(tmp, \"link\", link);\n addIfSet(tmp, \"bonus\", bonus);\n addIfSet(tmp, \"linkName\", linkName);\n addIfSet(tmp, \"submittable\", submittable);\n addIfSet(tmp, \"resultVisibility\", resultVisibility);\n tmp = super.encodeToObject(tmp);\n return tmp.toString();\n }",
"private static JsonPais toBasicJson(Pais pais) {\r\n\t\tJsonPais jsonPais = new JsonPais();\r\n\t\tapplyBasicJsonValues(jsonPais, pais);\r\n\t\treturn jsonPais;\r\n\t}",
"public BwPreferences getUserPreferences() {\n return userPreferences;\n }",
"void setUserProfile(Map<String, Object> profile);",
"public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }",
"public JSONObject toJSON() {\n return toJSON(true);\n }"
] |
[
"0.6052157",
"0.58129454",
"0.5780928",
"0.55294675",
"0.55266887",
"0.5495139",
"0.5491893",
"0.54327136",
"0.5424708",
"0.54077905",
"0.539292",
"0.53866297",
"0.53761035",
"0.5372756",
"0.5364068",
"0.531351",
"0.5310334",
"0.5308484",
"0.5301378",
"0.52684104",
"0.52656335",
"0.5264512",
"0.5256009",
"0.52470905",
"0.52266204",
"0.5203235",
"0.519916",
"0.51826465",
"0.51826465",
"0.5180544",
"0.51779944",
"0.5164961",
"0.51554984",
"0.5147171",
"0.51367956",
"0.5136719",
"0.5131071",
"0.51214635",
"0.51214635",
"0.51214635",
"0.51214635",
"0.51214635",
"0.51214635",
"0.51214635",
"0.51214635",
"0.51214635",
"0.51214635",
"0.5116448",
"0.51111233",
"0.51083964",
"0.5105822",
"0.50828946",
"0.5082181",
"0.50802296",
"0.5078274",
"0.50748026",
"0.50742686",
"0.5073842",
"0.5066331",
"0.5065301",
"0.5060223",
"0.50592273",
"0.50440276",
"0.5033714",
"0.5027209",
"0.50150746",
"0.50140303",
"0.50133044",
"0.49932966",
"0.4990938",
"0.49875778",
"0.4974773",
"0.49736682",
"0.49736682",
"0.49721205",
"0.496025",
"0.49557403",
"0.4955314",
"0.49542937",
"0.49474365",
"0.4945061",
"0.49433163",
"0.4939908",
"0.49315792",
"0.49315792",
"0.49315792",
"0.49315792",
"0.49229747",
"0.49208176",
"0.491649",
"0.49160635",
"0.4908803",
"0.49062452",
"0.49043894",
"0.4895784",
"0.48941848",
"0.4889611",
"0.48861644",
"0.48673368",
"0.48618495",
"0.4853706"
] |
0.0
|
-1
|
Serialize profile preferences to a JSON string.
|
public static String serializeToString(
final ObjectMapper jom,
final ReaderBookmarks description)
throws IOException {
final ObjectNode jo = serializeToJSON(jom, description);
final ByteArrayOutputStream bao = new ByteArrayOutputStream(1024);
JSONSerializerUtilities.serialize(jo, bao);
return bao.toString("UTF-8");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String toJsonString() {\n String str;\n String str2;\n try {\n if (this.lifetime == null) {\n str = \"null\";\n } else {\n str = \"\\\"\" + this.lifetime.toString() + \"\\\"\";\n }\n if (this.frequency == null) {\n str2 = \"\";\n } else {\n str2 = \",\\\"frequency\\\":\" + this.frequency;\n }\n return \"{\\\"enabled\\\":\" + this.enabled + str2 + \",\\\"lifetime\\\":\" + str + \"}\";\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return \"\";\n }\n }",
"public static boolean saveSharedPreferencesToJsonFile(File dst, Context context) {\n\t\t\n\t\tSharedPreferences pref = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tSharedPreferences adminPreferences = context.getSharedPreferences(\n\t\t\t\tAdminPreferencesActivity.ADMIN_PREFERENCES, 0);\n\n\t\tGson gson = new Gson();\n\t\tString jsonPrefs = \"{\\n\\\"general_preferences\\\": \" + gson.toJson(pref.getAll()) + \",\\n\" \n\t\t\t\t\t\t+ \"\\\"admin_preferences\\\": \" + gson.toJson(adminPreferences.getAll())\n\t\t\t\t\t\t+ \"}\";\n\t\tLog.d(\"AdminPreferencesActivity\", jsonPrefs);\n\t\t\n\t\treturn FileUtils.writeStringToFile(dst, jsonPrefs);\n\t}",
"public String toJson(SerializationFormattingPolicy formattingPolicy) {\n this.populatePropertyBag();\n if (SerializationFormattingPolicy.Indented.equals(formattingPolicy) ) {\n return this.propertyBag.toString(INDENT_FACTOR);\n } else {\n return this.propertyBag.toString();\n }\n }",
"String toJSON();",
"public String toJsonString() {\n return JsonUtils.getGson().toJson(toJson());\n }",
"protected String settingsAsJSON() {\n String json = null;\n if (indexSettings != null) {\n try {\n json = getObjectMapper().writeValueAsString(indexSettings);\n } catch (JsonProcessingException e) {\n String msg = String.format(\"Error processing index settings %s\",\n this.indexSettings.toString());\n logger.log(Level.SEVERE, msg, e);\n }\n }\n return json;\n }",
"@Override\n\tpublic String convertToJavascript() {\n\t\tString str = \"new Property('\" + propType.getSSID() + \"', '\" + displayName + \"', '\" + mode.toString() + \"', '\"\n\t\t\t\t+ value.toString() + \"')\";\n\t\treturn str;\n\t}",
"public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public void storeUserPrefs(User user) {\n //start writing (open the file)\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(user);\n editor.putString(USER_PREFS, json);\n //close the file\n editor.apply();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Preferences [\" + \"language=\" + language +\"]\" ;\n\t}",
"private final synchronized void writePreferencesImpl() {\n if ( LOGD ) { Log.d( TAG, \"writePreferencesImpl \" + mPrefFile + \" \" + mPrefKey ); }\n\n mForcePreferenceWrite = false;\n\n SharedPreferences pref =\n Utilities.getContext().getSharedPreferences( mPrefFile, Context.MODE_PRIVATE );\n SharedPreferences.Editor edit = pref.edit();\n edit.putString( mPrefKey, getSerializedString() );\n Utilities.commitNoCrash(edit);\n }",
"public String toJson() { return new Gson().toJson(this); }",
"public String toJsonString() {\n\t\tString json = null;\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\n\t\ttry {\n\t\t\tjson = mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\t}",
"public String toJSON() {\n return new Gson().toJson(this);\n }",
"public String toJson() {\n return this.toJson(SerializationFormattingPolicy.None);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }",
"@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n result.append(\"userProfile.id=[\").append(getId()).append(\"]\\n\");\n result.append(\"userProfile.city=[\").append(getCity()).append(\"]\\n\");\n result.append(\"userProfile.country=[\").append(getCountry()).append(\"]\\n\");\n result.append(\"userProfile.title=[\").append(getTitle()).append(\"]\\n\");\n result.append(\"userProfile.firstName=[\").append(getFirstName()).append(\"]\\n\");\n result.append(\"userProfile.lastName=[\").append(getLastName()).append(\"]\\n\");\n result.append(\"userProfile.gender=[\").append(getGender()).append(\"]\\n\");\n return result.toString();\n }",
"String toJson() throws IOException;",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String toJson() throws JSONException{\n\t\tif(this.email==null || this.password==null){\n\t\t\tthrow new IllegalStateException(\"Invalid Account information\");\n\t\t}\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"email\", this.email);\n\t\tobj.put(\"password\", this.password);\n\t\treturn obj.toString();\n\t}",
"public String toJson() {\n try{\n return new JsonSerializer().getObjectMapper().writeValueAsString(this);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }",
"public static void SavePreferences()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(preferences_file_name, \"UTF-8\");\n \n writer.print(Utilities.BoolToInt(MusicManager.enable_music) + \"\\r\\n\");\n writer.print(Utilities.BoolToInt(PassiveDancer.englishMode) + \"\\r\\n\");\n \n writer.close();\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + preferences_file_name + \".\"); }\n }",
"public String toJson() {\n\n final StringBuilder jsonRepresentation = new StringBuilder();\n\n jsonRepresentation.append(\"[\");\n\n final Iterator<TrackingDataEntry> entriesIter = getEntries().iterator();\n while (entriesIter.hasNext()) {\n\n final TrackingDataEntry entry = entriesIter.next();\n\n serializeTrackingDataVariables(jsonRepresentation, entry.getVars());\n\n if (null != entry.getName()) {\n jsonRepresentation.append(\",\\\"name\\\":\\\"\").append(entry.getName()).append(\"\\\"\");\n }\n if (null != entry.getId()) {\n jsonRepresentation.append(\",\\\"id\\\":\\\"\").append(entry.getId()).append(\"\\\"\");\n }\n if (null != entry.getType()) {\n jsonRepresentation.append(\",\\\"type\\\":\\\"\").append(entry.getType()).append(\"\\\"\");\n }\n if (null != entry.getUrl()) {\n jsonRepresentation.append(\",\\\"url\\\":\\\"\").append(entry.getUrl()).append(\"\\\"\");\n }\n jsonRepresentation.append(\"}\");\n if (entriesIter.hasNext()) {\n jsonRepresentation.append(\",\");\n }\n }\n\n jsonRepresentation.append(\"]\");\n\n return jsonRepresentation.toString();\n }",
"public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }",
"public static String asJsonString(VoteSession voteSession) {\n try {\n ObjectMapper objectMapper = new ObjectMapper();\n objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);\n objectMapper.registerModules(new JavaTimeModule());\n\n return objectMapper.writeValueAsString(voteSession);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public String convertToString() {\n return mJSONObject.toString();\n }",
"private static void exportJsonFile(File configFile) {\n Gson gson = new Gson();\n \n // Java object to JSON, and assign to a String\n String jsonInString = gson.toJson(GameConfig.getInstance());\n \n try {\n FileWriter writer = new FileWriter(configFile);\n \n writer.append(jsonInString);\n writer.flush();\n writer.close();\n } catch (IOException e) {\n LogUtils.error(\"exportJsonFile => \",e);\n }\n }",
"@Override\n public String encode() {\n JsonObject tmp = new JsonObject();\n addIfSet(tmp, \"id\", id);\n addIfSet(tmp, \"courseId\", courseId);\n addIfSet(tmp, \"sheetId\", sheetId);\n addIfSet(tmp, \"maxPoints\", maxPoints);\n addIfSet(tmp, \"type\", type);\n addIfSet(tmp, \"link\", link);\n addIfSet(tmp, \"bonus\", bonus);\n addIfSet(tmp, \"linkName\", linkName);\n addIfSet(tmp, \"submittable\", submittable);\n addIfSet(tmp, \"resultVisibility\", resultVisibility);\n tmp = super.encodeToObject(tmp);\n return tmp.toString();\n }",
"@SuppressWarnings(\"unchecked\")\n @Override\n public String toJSONString() {\n JSONObject entry = new JSONObject();\n\n Map<String, Object> configuration = new LinkedHashMap<String, Object>();\n configuration.put(\"smtpHostname\", smtpHostname);\n configuration.put(\"smtpPort\", new Integer(smtpPort));\n configuration.put(\"tls\", tls);\n configuration.put(\"ssl\", ssl);\n configuration.put(\"username\", username);\n configuration.put(\"password\", password);\n configuration.put(\"fromEMail\", fromEMail);\n configuration.put(\"fromSenderName\", fromSenderName);\n\n entry.put(configurationName, configuration);\n\n /*\n * The JSONWriter will pretty-print the output\n */\n Writer jsonWriter = new JSONWriter();\n try {\n entry.writeJSONString(jsonWriter);\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n\n return jsonWriter.toString();\n }",
"public void savePreferences(SharedPreferences preferences){\r\n\t\tSharedPreferences.Editor editor = preferences.edit();\r\n editor.putBoolean(\"initialSetupped\", initialSetuped);\r\n editor.putString(\"username\", userName);\r\n editor.putString(\"useremail\", userEmail);\r\n editor.putString(\"recipientemail\", recipientEmail);\r\n editor.putBoolean(\"option\", option.isPound());\r\n\r\n // Commit the edits!\r\n editor.commit();\r\n\t}",
"@Override\n public Object toJson() {\n JSONObject json = (JSONObject)super.toJson();\n json.put(\"name\", name);\n json.put(\"reason\", reason);\n return json;\n }",
"private String toJson(PredictionsList plist) {\n\tString json = \"If you see this, there's a problem.\";\n\ttry {\n\t json = new ObjectMapper().writeValueAsString(plist);\n\t}\n\tcatch(Exception e) { }\n\treturn json;\n }",
"public JSONObject jsonSerialize() {\n JSONObject jsonObject = new JSONObject();\n\n // Serialize the UrlDevices\n JSONArray urlDevices = new JSONArray();\n for (UrlDevice urlDevice : mDeviceIdToUrlDeviceMap.values()) {\n urlDevices.put(urlDevice.jsonSerialize());\n }\n jsonObject.put(DEVICES_KEY, urlDevices);\n\n // Serialize the URL metadata\n JSONArray metadata = new JSONArray();\n for (PwsResult pwsResult : mBroadcastUrlToPwsResultMap.values()) {\n metadata.put(pwsResult.jsonSerialize());\n }\n jsonObject.put(METADATA_KEY, metadata);\n\n jsonObject.put(SCHEMA_VERSION_KEY, SCHEMA_VERSION);\n return jsonObject;\n }",
"public String toJSON() throws JSONException;",
"private void saveJSON(String myList, String saveFile, ArrayList<JSONObject> arr) {\n SharedPreferences sharedPreferences = getSharedPreferences(saveFile, MODE_PRIVATE);\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n Gson gson = new Gson();\n String typeList = gson.toJson(arr);\n prefEditor.putString( myList, typeList );\n System.out.println(\"saveJSON myList = \" + myList);\n prefEditor.apply();\n }",
"public Map<String, Object> getProfileProperties() {\n return profileProperties;\n }",
"JSONObject toJson();",
"JSONObject toJson();",
"public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }",
"public abstract Properties getProfileProperties();",
"public void storeChoicePrefs(ResultDetail restaurant) {\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(restaurant);\n editor.putString(RESTAURANTS, json);\n //close the file\n editor.apply();\n }",
"void savePreferences() throws OntimizeJEERuntimeException;",
"public JSONObject toJSON() throws JSONException {\n\t\tJSONObject json = new JSONObject();\n\t\tjson.put(ID_ACCOUNT_ADDRESS, getAccountAddress()); // Add account address.\n\t\tjson.put(ID_BALANCE, getBalance()); // Add account balance.\n\t\t\n\t\tArrayList<RippleWallet> foundWallets = getWallets();\n\t\tArrayList<JSONObject> jsonWallets = new ArrayList<JSONObject>();\n\t\tIterator<RippleWallet> walletIterator = foundWallets.iterator();\n\t\twhile (walletIterator.hasNext()) {\n\t\t\tjsonWallets.add(walletIterator.next().toJSON());\n\t\t}\n\t\tjson.put(\"wallets\", jsonWallets); // Add wallets.\n\t\t\n\t\treturn json;\n\t}",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"@Override\n\tpublic String toJSONString(int indentFactor) throws JSONException {\n\t\tStringWriter sw = new StringWriter();\n\t\tsynchronized (sw.getBuffer()) {\n\t\t\treturn this.write(sw, indentFactor, 0).toString();\n\t\t}\n\t}",
"private static void putJSONObjectIntoPreferences(JSONObject json, Editor prefs) throws JSONException{\n\t\t\n\t\tjava.util.Iterator<?> keys = json.keys();\n\t\t\n\t\twhile (keys.hasNext()) {\n\t\t\tString key = (String) keys.next();\n\t\t\tObject v = json.get(key);\n\t\n\t\t\tif (v instanceof Boolean)\n\t\t\t\tprefs.putBoolean(key, ((Boolean) v).booleanValue());\n\t\t\telse if (v instanceof Float)\n\t\t\t\tprefs.putFloat(key, ((Float) v).floatValue());\n\t\t\telse if (v instanceof Integer)\n\t\t\t\tprefs.putInt(key, ((Integer) v).intValue());\n\t\t\telse if (v instanceof Long)\n\t\t\t\tprefs.putLong(key, ((Long) v).longValue());\n\t\t\telse if (v instanceof String)\n\t\t\t\tprefs.putString(key, ((String) v));\n\t\t}\t\n\t}",
"@Override\r\n\tpublic String toJsonString() {\n\t\treturn null;\r\n\t}",
"public void saveProfiles() throws IOException\n {\n try\n {\n profFile.getParentFile().mkdirs();\n profFile.delete();\n profFile.createNewFile();\n PrettyPrinterXmlWriter pp = new PrettyPrinterXmlWriter(new SimpleXmlWriter(new FileWriter(profFile)));\n pp.writeXmlVersion();\n pp.writeEntity(\"XNATProfiles\");\n if (this.size() != 0)\n {\n for (XNATProfile ip : this)\n {\n pp.writeEntity(\"XNATProfile\")\n .writeAttribute(\"profileName\", ip.getProfileName())\n \n .writeEntity(\"serverURL\")\n .writeText(ip.getServerURL().toString())\n .endEntity() \n // encrypt(sc.getServerURL().toString()));\n \n .writeEntity(\"userid\")\n .writeText(ip.getUserid())\n .endEntity()\n \n .writeEntity(\"projectList\");\n \n for (String is : ip.getProjectList())\n pp.writeEntity(\"project\")\n .writeText(is)\n .endEntity();\n \n pp.endEntity()\n .writeEntity(\"dicomReceiverHost\")\n .writeText(ip.getDicomReceiverHost())\n .endEntity()\n \n .writeEntity(\"dicomReceiverPort\")\n .writeText(ip.getDicomReceiverPort())\n .endEntity()\n \n .writeEntity(\"dicomReceiverAeTitle\")\n .writeText(ip.getDicomReceiverAeTitle())\n .endEntity()\n \n .endEntity();\n }\n }\n pp.writeEntity(\"preferredProfile\")\n .writeText(currentProfile)\n .endEntity()\n .endEntity()\n .close();\n }\n catch (IOException exIO)\n \t\t{\n throw exIO;\n }\n }",
"public abstract String toJsonString();",
"@Test\n public void testToJSONString() {\n System.out.println(\"toJSONString\");\n Setting s = Setting.factory();\n s.setStype(Setting.SETTING_TYPE.TPATH);\n s.setName(\"mytest\");\n String userFile = System.getProperty(\"user.dir\");\n\n s.setValue(Paths.get(userFile));\n String jResult = s.toJSONString();\n String jExpected = \"{\\\"stype\\\":\\\"TPATH\\\",\\\"name\\\":\\\"mytest\\\",\\\"value\\\":\\\"J:\\\\\\\\Java\\\\\\\\DBCUtilLib\\\"}\";\n assertEquals(jExpected, jResult);\n\n s.setValue(Setting.SETTING_TYPE.TPATH, Paths.get(userFile));\n jResult = s.toJSONString();\n assertEquals(jExpected, jResult);\n\n }",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"private void save(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(downloadedBooks);\n editor.putString( LISTS_DOWNLOADED, json);\n json = gson.toJson(progress);\n editor.putString( LISTS_PROGRESS, json);\n editor.apply();\n }",
"private String createOutputJson(List<AccountPortfolio> nonSecured) {\n return gson.toJson(nonSecured);\n }",
"private static JsonProfessor toBasicJson(Professor professor) {\r\n\t\tJsonProfessor jsonProfessor = new JsonProfessor();\r\n\t\tapplyBasicJsonValues(jsonProfessor, professor);\r\n\t\treturn jsonProfessor;\r\n\t}",
"public String jsonify() {\n return gson.toJson(this);\n }",
"public String toString() {\r\n\t\treturn profileName;\r\n\t}",
"public String toJson() throws Exception {\r\n\t\treturn SimpleJson.HashMapToText(getJsonToken());\r\n\t}",
"private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public JsonObject serialize() {\n Map<String, Object> ret = new HashMap<>();\n ret.put(\"playerName\", this.playerName);\n ret.put(\"playerColour\", this.playerColour);\n ret.put(\"resources\", this.currentRes);\n List<JsonObject> famMembersJ = new ArrayList<>();\n this.famMemberList.forEach(f -> famMembersJ.add(f.serialize()));\n ret.put(\"famMembers\", famMembersJ);\n ret.put(\"excomms\", this.excommunications);\n ret.put(\"bonusTile\", this.bonusT.serialize());\n ret.put(\"cards\", this.cards.serialize());\n return new Gson().fromJson(new Gson().toJson(ret), JsonObject.class);\n }",
"public static String toJson(User user) {\n\n\t\tHashMap<String, Object> obj = new HashMap<String, Object>();\n\t\tobj.put(\"username\", user.getUsername());\n\t\tobj.put(\"session\", user.getSession());\n\t\treturn new Gson().toJson(obj);\n\t}",
"public void toXML ( Element element )\r\n {\n element.setAttribute( \"name\", gadgetclass.getName() );\r\n\r\n // add each user preference\r\n for ( int i = 0; i < gadgetclass.getUserPrefsCount(); i++ )\r\n {\r\n UserPref up = gadgetclass.getUserPref( i );\r\n Object pref = getUserPrefValue( up );\r\n Element prefElement = element.getOwnerDocument().createElement(\r\n \"UserPref\" );\r\n prefElement.setAttribute( \"name\", up.getName() );\r\n Text prefText = element.getOwnerDocument().createTextNode(\r\n pref.toString() );\r\n prefElement.appendChild( prefText );\r\n element.appendChild( prefElement );\r\n }\r\n }",
"private static void saveJsonFile() {\n Log.println(Log.INFO, \"FileAccessing\", \"Writing settings file.\");\n JsonObject toSave = new JsonObject();\n JsonArray mappingControls = new JsonArray();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n JsonObject individualMapping = new JsonObject();\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n byte combinedAction = (byte) TaskDetail.actionToTask.keyAt(i);\n assert detail != null;\n int outerControl = detail.getTask();\n individualMapping.addProperty(\"combinedAction\", combinedAction);\n individualMapping.addProperty(\"task\", outerControl);\n mappingControls.add(individualMapping);\n }\n toSave.add(\"mappingControls\", mappingControls);\n\n JsonArray generalSettings = new JsonArray();\n for (SettingDetail setting : SettingDetail.settingDetails) {\n JsonObject individualSetting = new JsonObject();\n int status = setting.getCurrentIdx();\n individualSetting.addProperty(\"status\", status);\n generalSettings.add(individualSetting);\n }\n toSave.add(\"generalSettings\", generalSettings);\n\n JsonArray deviceList = new JsonArray();\n for (DeviceDetail device : DeviceDetail.deviceDetails) {\n JsonObject individualDevice = new JsonObject();\n individualDevice.addProperty(\"name\", device.deviceName);\n individualDevice.addProperty(\"mac\", device.macAddress);\n deviceList.add(individualDevice);\n }\n toSave.add(\"devices\", deviceList);\n\n JsonArray sensitivityList = new JsonArray();\n for (SensitivitySetting sensitivity : SensitivitySetting.sensitivitySettings) {\n JsonObject individualSensitivity = new JsonObject();\n individualSensitivity.addProperty(\"factor\", sensitivity.multiplicativeFactor);\n individualSensitivity.addProperty(\"sensitivity\", sensitivity.sensitivity);\n sensitivityList.add(individualSensitivity);\n }\n toSave.add(\"sensitivities\", sensitivityList);\n\n toSave.addProperty(\"currentlySelected\", DeviceDetail.getIndexSelected());\n\n try {\n FileOutputStream outputStreamWriter = context.openFileOutput(\"settingDetails.json\", Context.MODE_PRIVATE);\n outputStreamWriter.write(toSave.toString().getBytes());\n outputStreamWriter.close();\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file writing error.\");\n }\n }",
"public void saveValues() {\n bluej.setExtensionPropertyString(PROFILE_LABEL, color.getText());\r\n }",
"@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}",
"public String toJson() throws JsonProcessingException{\r\n\t\tObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();\r\n\t\treturn ow.writeValueAsString(this.loginStatus); \r\n\t}",
"public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }",
"public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }",
"public String toJson(Object obj){\n return new Gson().toJson(obj);\n }",
"public JSONObject toJSON() throws JSONException {\n JSONObject jo = new JSONObject();\n jo.put(ID, id);\n jo.put(NAME, displayName);\n jo.put(TIMESTAMP, syncTimestamp);\n jo.put(LASTIP, lastIP);\n JSONArray records = new JSONArray();\n Collection<DeletedSecret> deleted = deletedSecrets.values();\n for (DeletedSecret deletedSecret : deleted) {\n records.put(deletedSecret.toJSON());\n }\n jo.put(\"ds\", records);\n return jo;\n }",
"public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public String getProfile() {\n return profile;\n }",
"com.google.protobuf.ByteString\n getProfileURLBytes();",
"@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}",
"private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }",
"public JsonObjectBuilder toJSONObject() {\n\n JsonObjectBuilder result = super.toJSONObject();\n\n if (userInfoEndpoint != null) {\n result.add(\"userinfo_endpoint\", userInfoEndpoint.toString());\n }\n\n return result;\n }",
"public abstract String toJson();",
"public String toJsonData() {\n\t\treturn new Gson().toJson(this);\n\t}",
"private String profileTest() {\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(\n \"/home/pascal/bin/workspace_juno/pgu-geo/war/WEB-INF/pgu/profile.json\"));\n } catch (final FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n\n final StringBuilder sb = new StringBuilder();\n String line = null;\n\n try {\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n return sb.toString();\n }",
"public void writeStringPrefs(String prefName, String prefValue) {\n editor = sPrefs.edit();\n editor.putString(prefName, prefValue);\n editor.apply();\n }",
"private void saveClubList() {\n SharedPreferences sharedPreferences = getSharedPreferences(\"Shared Preferences\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(clubList);\n editor.putString(\"Club List\", json);\n editor.apply();\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"In Prince 9.0 and up you can set the PDF profile.\")\n @JsonProperty(JSON_PROPERTY_PROFILE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getProfile() {\n return profile;\n }",
"public JsonObject toJson();",
"public String CriteriatoJson() {\n\t\t\tJsonb jsonb = JsonbBuilder.create((new JsonbConfig().withFormatting(true)));\n\t\t \tString json = jsonb.toJson(criteria);\n\t\t\treturn json;\n\n\t }",
"public String toJSONResult() {\n StringBuilder pageJSON = new StringBuilder();\n pageJSON.append(\"{\\\"id\\\": \");\n pageJSON.append(\"\\\"\");\n pageJSON.append(getID());\n pageJSON.append(\"\\\"\");\n pageJSON.append(\", \\\"title\\\": \");\n try {\n pageJSON.append(\"\\\"\").append(URLEncoder.encode(getTitle(), \"UTF-8\")).append(\"\\\"\");\n } catch (UnsupportedEncodingException e) {\n pageJSON.append(\"null\");\n }\n pageJSON.append(\", \\\"url\\\": \\\"\").append(getUrl())\n .append(\"\\\", \\\"preview\\\": \");\n try {\n pageJSON.append(\"\\\"\").append(URLEncoder.encode(getPreview(), \"UTF-8\"))\n .append(\"\\\"\");\n } catch (UnsupportedEncodingException e) {\n pageJSON.append(\"null\");\n }\n pageJSON.append(\"}\");\n\n return pageJSON.toString();\n }",
"public String toJsonString() {\n JSONObject jsonObject = new JSONObject();\n try {\n jsonObject.put(\"from\", from);\n jsonObject.put(\"domain\", domain);\n jsonObject.put(\"provider\", provider);\n jsonObject.put(\"action\", action);\n\n try {\n JSONObject jsonData = new JSONObject();\n for (Map.Entry<String, String> entry : data.entrySet()) {\n jsonData.put(entry.getKey(), entry.getValue());\n }\n jsonObject.put(\"data\", jsonData);\n } catch (Exception e) {\n e.printStackTrace();\n jsonObject.put(\"data\", \"{}\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }",
"public static String toJson(Object obj) {\n\t\treturn toJson(obj, true, true);\n\t}",
"public JSONObject toJSON(){\n\t\treturn toJSON(false, false);\n\t}",
"String toJSONString(Object data);",
"@Override\n public String toString() {\n return jsonString;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}"
] |
[
"0.5876286",
"0.58120775",
"0.5789143",
"0.57677555",
"0.5654633",
"0.5630691",
"0.55978835",
"0.5560074",
"0.55370784",
"0.5521888",
"0.548494",
"0.54528165",
"0.5426545",
"0.54073334",
"0.53954136",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.5392184",
"0.53813964",
"0.5356709",
"0.53093636",
"0.5305946",
"0.5305946",
"0.5287403",
"0.52864695",
"0.528635",
"0.5273251",
"0.5255792",
"0.52281827",
"0.52141356",
"0.5211216",
"0.5206896",
"0.51870716",
"0.5181796",
"0.5180092",
"0.51744527",
"0.5172293",
"0.51583105",
"0.5154444",
"0.51466006",
"0.51441336",
"0.51441336",
"0.5135035",
"0.51317275",
"0.5125764",
"0.5120216",
"0.5109315",
"0.5108658",
"0.5104609",
"0.5095685",
"0.5086995",
"0.5074756",
"0.50610477",
"0.5060776",
"0.50425315",
"0.5036739",
"0.5035342",
"0.502916",
"0.5027739",
"0.502656",
"0.5019599",
"0.5001909",
"0.49677247",
"0.4961794",
"0.49609596",
"0.49569154",
"0.49511245",
"0.49487194",
"0.494503",
"0.49447727",
"0.49447727",
"0.49442708",
"0.4929417",
"0.49213165",
"0.49181244",
"0.49176702",
"0.49034014",
"0.4900658",
"0.48990276",
"0.48980832",
"0.48915368",
"0.48904955",
"0.48866794",
"0.48822927",
"0.48820633",
"0.48796272",
"0.48761627",
"0.4870881",
"0.48692697",
"0.48688737",
"0.4863533",
"0.4855265",
"0.4850149",
"0.48380005"
] |
0.0
|
-1
|
Class YYY overrides Protected Package Private Private
|
private ProducerState getProducerState(Invocation inv)
{
return (ProducerState)((DelegateSupport)inv.getTargetObject()).getState();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"private abstract void privateabstract();",
"private CommonMethods() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"public OOP_207(){\n\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}",
"protected Doodler() {\n\t}",
"@Override\n public boolean isPrivate() {\n return true;\n }",
"@Override\n protected void checkSubclass() {\n }",
"private ChainingMethods() {\n // private constructor\n\n }",
"public abstract Object mo26777y();",
"private VarietyPackage() {}",
"private CheckingTools() {\r\n super();\r\n }",
"private Infer() {\n\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.996 -0500\", hash_original_method = \"CB9D9CAF93B6F7C6AC078700B30D5B3A\", hash_generated_method = \"6EEF3712392D06942F0E7086316BBAB4\")\n \n private void nativeConstructor(){\n }",
"private Aliyun() {\n\t\tsuper();\n\t}",
"private PluginAPI() {\r\n\t\tsuper();\r\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"private DarthSidious(){\n }",
"private TMCourse() {\n\t}",
"private NaturePackage() {}",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.663 -0500\", hash_original_method = \"7BA2DC4B038FD72F399C633B1C4B5B34\", hash_generated_method = \"3D1B22AE31FE9AB2658DC3713C91A6C9\")\n \nprivate Groups() {}",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"Object getClass_();",
"Object getClass_();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private ClassProxy() {\n }",
"private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}",
"private MApi() {}",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"private Dex2JarProxy() {\r\n\t}",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"public void myPublicMethod() {\n\t\t\n\t}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.504 -0500\", hash_original_method = \"F5E3085137E37D29F0F8CB3C296F1F57\", hash_generated_method = \"47D4A76F75042B03A266F16D90E98429\")\n \nprivate Contacts() {}",
"@Override\n public void perish() {\n \n }",
"private PluginsInternal() {}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}",
"private SourcecodePackage() {}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.514 -0500\", hash_original_method = \"E49204FD271E895B10D86A1AFEA21B04\", hash_generated_method = \"59B3C6A592AE63BEE2BC1CC1723B36DF\")\n \nprivate Settings() {}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.809 -0500\", hash_original_method = \"AC0A5CAC5D79A50D0A1A1A7D60109A25\", hash_generated_method = \"DDCD510819A32FF7BD9558A5CE176D29\")\n \nprivate ContactMethods() {}",
"protected abstract void runPrivate();",
"private UtilsCache() {\n\t\tsuper();\n\t}",
"public abstract void mo56925d();",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"private ObiWanKenobi(){\n }",
"public abstract void mo70713b();",
"protected void h() {}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"private final zzgy zzgb() {\n }",
"private Utils() {\n\t}",
"private Utils() {\n\t}",
"public abstract void mo27386d();",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"public As21Id27()\n\t{\n\t\tsuper() ;\n\t}",
"_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }",
"private ClassUtil() {}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"private Ognl(){\n }",
"private Utils()\n {\n // Private constructor to prevent instantiation\n }",
"private Ognl() {\n }"
] |
[
"0.67000496",
"0.6642249",
"0.65887994",
"0.6497922",
"0.6446098",
"0.64367425",
"0.6342977",
"0.62642884",
"0.62538964",
"0.6199588",
"0.6179871",
"0.61744136",
"0.61015314",
"0.60940754",
"0.60521007",
"0.60426545",
"0.60378706",
"0.59986895",
"0.59766966",
"0.59766966",
"0.59766966",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.5974262",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.59671503",
"0.5964823",
"0.5964509",
"0.59577155",
"0.5957519",
"0.5957519",
"0.5957519",
"0.5955684",
"0.59455043",
"0.59425056",
"0.59350145",
"0.59350145",
"0.59258306",
"0.59258306",
"0.59238094",
"0.5901202",
"0.5899433",
"0.58939284",
"0.58924687",
"0.5890442",
"0.58848625",
"0.5884802",
"0.5879551",
"0.5872375",
"0.5859781",
"0.58587116",
"0.5857203",
"0.5855406",
"0.58515644",
"0.585072",
"0.584321",
"0.58331805",
"0.5829038",
"0.58179146",
"0.5803926",
"0.5803841",
"0.57962143",
"0.5782414",
"0.57690525",
"0.57666093",
"0.57666093",
"0.576067",
"0.5751944",
"0.57264334",
"0.57244545",
"0.57182044",
"0.57179064",
"0.5717814",
"0.57138544",
"0.57108825"
] |
0.0
|
-1
|
Constructor: Inicializa el nodo cima de la cesta a null
|
public Cesta() {
this.cima = null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }",
"public Dinamica(){\n\t\tprimer=null;\n\t\tanterior=null;\n\t\tn_equips = 0;\n\t\t\n\t}",
"public Nodo() {\r\n this.dato = null;\r\n this.siguiente = null;\r\n }",
"public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }",
"public Persona() { // constructor sin parámetros\r\n\t\t\r\n\t\tthis.nif = \"44882229Y\";\r\n\t\tthis.nombre=\"Anonimo\";\r\n\t\tthis.sexo = 'F';\r\n\t\tthis.fecha = LocalDate.now();\r\n\t\tthis.altura = 180;\r\n\t\tthis.madre = null;\r\n\t\tthis.padre = null;\r\n\t\tcontador++;\r\n\t}",
"private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}",
"ClaseColas() { // Constructor que inicializa el frente y el final de la Cola\r\n frente=0; fin=0;\r\n System.out.println(\"Cola inicializada !!!\");\r\n }",
"@Test(expected = NullPointerException.class)\n\tpublic void criaContatoNumeroNulo() {\n\t\tcontato = new Contato(\"Jardely\", \"Maris\", null);\n\t}",
"public ColaPrioridad(int tam) {\r\n datos = new TDAPrioridad[tam];\r\n ini = fin = -1;\r\n }",
"public Nodo() {\n\t\tthis(null, null);\n\t}",
"public prueba()\r\n {\r\n }",
"public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}",
"public AfiliadoVista() {\r\n }",
"@Test(expected = NullPointerException.class)\n\tpublic void criaContatoSobrenomeNulo() {\n\t\tcontato = new Contato(\"Jardely\", null, \"984653722\");\n\t}",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public Campo() {\r\n this.primoGrande = new BigInteger(\"20835161731609124123432674631212444\"\r\n + \"8251235562226470491514186331217050270460481\");\r\n this.limite = new BigInteger[2];\r\n System.out.println(\"Campo: \" + this.primoGrande);\r\n this.setDominio();\r\n }",
"public Alojamiento() {\r\n\t}",
"public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }",
"@Test(expected = NullPointerException.class)\n\tpublic void criaContatoNomeNulo() {\n\t\tcontato = new Contato(null, \"Jardely\", \"984653722\");\n\t}",
"public Medico() {\r\n\t\tsuper();\r\n\t codmedico = \"\";\r\n\t\tespecialidad = null;\r\n\t}",
"public Nodo(String _nombre_palabra, int _idtoken, String _valor, String _tipo, String _pertenece_a, Nodo _Anterior) {\n nombre_palabra = _nombre_palabra;\n idtoken = _idtoken;\n valor = _valor;\n tipo = _tipo;\n pertenece_a = _pertenece_a;\n Siguiente = null;\n Anterior = _Anterior;\n }",
"public Pitonyak_09_02() {\r\n }",
"public Empresa() {\n super();\n this.nif = 0;\n this.raio = 0.0;\n this.precoPorKm = 0.0;\n this.precoPorPeso = 0.0;\n this.precoPorHora = 0.0;\n this.available = false;\n this.certificado = false;\n this.historico = new Historico();\n this.pe = null;\n }",
"public Caso_de_uso () {\n }",
"public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }",
"public Lista(){\n inicio=null;\n fin=null;\n }",
"public Celula() {\n this(null);\n }",
"public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }",
"public Corso() {\n\n }",
"public Nodo(String _nombre_palabra, int _idtoken) {\n nombre_palabra = _nombre_palabra;\n idtoken = _idtoken;\n Siguiente = null;\n }",
"public Transportadora() {\r\n super();\r\n this.nif = \"\";\r\n this.raio = 0;\r\n this.precoKm = 0;\r\n this.classificacao = new Classificacao();\r\n this.estaLivre = true;\r\n this.velocidadeMed = 0;\r\n this.kmsTotal = 0;\r\n this.capacidade = 0;\r\n }",
"public PilaDin() {\n inicio = null;\n }",
"public Kullanici() {}",
"public Carrera(){\n }",
"public Asiento() {\n\t\tthis(\"asiento\", null);\n\t}",
"public Fornecedor(int código, String nome, String data_cadastro, String n_documento) {\r\n super(código, nome, data_cadastro, n_documento);\r\n }",
"public Factura() {\r\n }",
"public Factura() {\r\n }",
"public Vehiculo() {\r\n }",
"public PosicionArista() {\n this(new Posicion(), OrientacionArista.Este);\n }",
"public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }",
"public MorteSubita() {\n }",
"public Cobra()\r\n {\r\n super();\r\n corpo = new ArrayList<CorpoCobra>();\r\n\r\n porCrescer = 0;\r\n ovosComidos = 0;\r\n vidas = 3;\r\n tonta = 0;\r\n }",
"@Override\n public void inicio() {\n // inicializa el objetivo\n miObjetivo = \"\";\n // inicializa variables para explorar sucesores\n j = 0;\n m = 0;\n nodo = null;\n suc = null;\n succ = null;\n // inicializa objetos\n actual = \"\";\n g = graph.getGraphics();\n // comienza por el primer nodo\n nodo = graph.getNodes().get(0);\n actual = nodo.toString();\n // siguiente paso\n Step = 0;\n }",
"public CCuenta()\n {\n }",
"public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }",
"public Cafetera(int maximo) {\n\t\t super();\n\t\t this._capacidadMaxima=maximo;\n\t\t this.cantidadActual=maximo;\n\t }",
"public Cgg_jur_anticipo(){}",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"public Diccionario(){\r\n rz=new BinaryTree<Association<String,String>>(null, null, null, null);\r\n llenDic();\r\n tradOra();\r\n }",
"public Jovem(String identificador) {\n super(identificador);\n numAulas = DEFAULT_N_AULAS;\n }",
"public Candidatura (){\n \n }",
"public Venda() {\n }",
"public Visita() {\n initialize();\n }",
"public CD (String titulo, String autor) throws Exception {\n\t\tif (titulo == null || titulo == \"\" || autor == null || autor == \"\") {\n\t\t\tthrow new Exception(\"O título do CD não pode ser vazio, assim como o seu autor.\");\n\t\t}\n\t\tfaixasCD = new ArrayList<String>();\n\t\tthis.tituloCD = titulo;\n\t\tthis.autorCD = autor;\n\t\tthis.M = 10;\n\t\tthis.trilhaPrincipal = \"\";\n\t\tadicionaMusicasVaziasCD();\n\t}",
"public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }",
"public Vocas(String jmeno) {\r\n super(jmeno);\r\n }",
"public YonetimliNesne() {\n }",
"public Pilas(int cap) { // el constructor, de parametro la capacidad de la pila\r\n capacidad = cap; // le asignamos a capacidad lo que se pase por parametro\r\n array = new int[capacidad]; // al arreglo le decimos (asignamos) su longitud\r\n top = -1; // inicializamos la cima (como no hay aun nada, la cima es -1)\r\n }",
"public Tarifa() {\n ;\n }",
"public Cidade(String nome){\n super(0, nome, 0.0, 0.0);\n }",
"public Iterador() {\n pila = new Pila<Nodo>();\n if (raiz != null) {\n pila.push(raiz);\n Nodo<T> nodo = pila.peek();\n while(nodo != null){\n if (nodo.izquierdo != null) {\n pila.push(nodo.izquierdo);\n }\n nodo = nodo.izquierdo;\n }\n }\n\n }",
"public Pila(Fabrica<TNodo> creadorDeNodos) {\n\t\tsuper(creadorDeNodos);\n\t}",
"public CrearQuedadaVista() {\n }",
"public ArvoreRB(Node nil){\r\n\tthis.raiz = nil;\r\n\tthis.pr = nil;\r\n\tthis.aux = nil;\r\n\tthis.tamanho = 0;\r\n\tthis.print = \" \";\r\n this.nil=nil;\r\n}",
"public ElementoInicial() {\r\n\t\tsuper();\r\n\t}",
"public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\r\n\t}",
"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 }",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"public Cinema() {\r\n\r\n this.fname = null;\r\n\r\n this.fgenre = null;\r\n\r\n this.fdirector = null;\r\n\r\n this.actors = null;\r\n\r\n this.ftext = null;\r\n\r\n this.fdate = null;\r\n \r\n this.fduration = null;\r\n \r\n this.fformat = null;\r\n \r\n this.frate = 0;\r\n\r\n }",
"public NhanVien()\n {\n }",
"public Nodo(String molecula) throws Exception {\n valor = molecula;\n nodoIzq = nodoDer = null;\n if (valor.length() > 1) {\n conectorPrincipal = buscarConectorPrincipal(valor);\n System.out.println(\"conector principal\" + conectorPrincipal);\n if (conectorPrincipal == '0') {\n throw new Exception(\"La expresion no es FBF\");\n }\n generarArbol();\n } else {\n try {\n conectorPrincipal = valor.charAt(0);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Cadena De Caracteres Vacia\");\n }\n\n }\n }",
"public FiltroMicrorregiao() {\r\n }",
"public Aritmetica(){ }",
"public MPaciente() {\r\n\t}",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"public Objetivo(final String nome) {\n validaNome(nome);\n this.nome = nome;\n this.subObjetivos = new LinkedList<>();\n this.viewSubObjetivos = unmodifiableList(subObjetivos);\n }",
"public SlanjePoruke() {\n }",
"public PrestamoAuto(int noCliente, String nombre, int noCuenta, double capPrestado, int plazoInversion) {\r\n this.noCliente = noCliente;\r\n this.nombre = nombre;\r\n this.noCuenta = noCuenta;\r\n this.capPrestado = capPrestado;\r\n this.plazoInversion = plazoInversion;\r\n }",
"public Contato() {\n }",
"public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}",
"public VotacaoSegundoDia() {\n\n\t}",
"public Troco() {\n }",
"public CD (String titulo, String autor, int M) throws Exception {\n\t\tif (titulo == null || titulo == \"\" || autor == null || autor == \"\") {\n\t\t\tthrow new Exception(\"O título do CD não pode ser vazio, assim como o seu autor.\");\n\t\t}\n\t\tif (M <= 0) {\n\t\t\tthrow new Exception(\"O valor de M não pode ser menor que 1.\");\n\t\t}\n\t\tfaixasCD = new ArrayList<String>();\n\t\tthis.tituloCD = titulo;\n\t\tthis.autorCD = autor;\n\t\tthis.M = M;\n\t\tthis.trilhaPrincipal = \"\";\n\t\tadicionaMusicasVaziasCD();\n\t}",
"public ListaEncadeada() {\n first = null;\n }",
"public CLElenco() {\n /** rimanda al costruttore di questa classe */\n this(null);\n }",
"public MacchinaStatiFiniti(String nome)\r\n\t{\r\n\t\tthis.nome=nome;\r\n\t\tcorrente=null;\r\n\t}",
"public Pasien() {\r\n }",
"public Piso(boolean vacio) {\n\t\tthis.id=-1;\n\t\tthis.zona = \"1\";\n\t\tthis.direccion = \"\";\n\t\tthis.banos = 0;\n\t\tthis.habitaciones = 0;\n\t\tthis.permite_mascotas = false;\n\t\tthis.aire_acondicionado = false;\n\t\tthis.amueblado = false;\n\t\tthis.piscina = false;\n\t\tthis.ascensor = false;\n\t\tthis.gimnasio = false;\n\t\tthis.precio_venta = 0;\n\t\tthis.img_url = \"\";\n\t}",
"public Dipendente() {\r\n\t\tsetnMat();\r\n\t}",
"public Pelicula(String nombre, int anno, int duracionMinutos, int calidad)\n {\n super(nombre,anno);\n this.duracionMinutos = duracionMinutos;\n this.calidad = calidad;\n }",
"public Prova() {}",
"public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }",
"public Curso() {\n\t\tthis.alumnos = new ArrayList<Alumno>();\n\t\tcupo = 0;\n\t\tcreditos = 0;\n\t}",
"public Curso() {\r\n }",
"public Relatorio2(Date inicio, Date fim, int codigo) {\n this.dtInicio = inicio;\n this.dtFim = fim;\n this.codCLucro = codigo;\n conexao.conecta();\n Utilitarios u = new Utilitarios();\n u.inserirIcone(this);\n initComponents();\n preencherTabelaReceita();\n totalizadores();\n //Abrir o frame centralizado\n setLocationRelativeTo(null);\n }",
"public AntrianPasien() {\r\n\r\n }",
"public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }"
] |
[
"0.7215313",
"0.7119041",
"0.6874055",
"0.6653287",
"0.6509982",
"0.6494503",
"0.6416001",
"0.63864076",
"0.63612527",
"0.63432264",
"0.6272153",
"0.62463105",
"0.62422824",
"0.6239991",
"0.62396866",
"0.6207007",
"0.6202263",
"0.6194905",
"0.6154742",
"0.61329025",
"0.6118212",
"0.6110683",
"0.6087146",
"0.6085525",
"0.6076509",
"0.607184",
"0.6066527",
"0.6060977",
"0.60344416",
"0.6031349",
"0.6026703",
"0.60241634",
"0.6023429",
"0.60138077",
"0.6008325",
"0.59922695",
"0.5986293",
"0.5980756",
"0.5976109",
"0.5976109",
"0.59620637",
"0.595588",
"0.59494674",
"0.5948724",
"0.59484863",
"0.5946674",
"0.5943456",
"0.5937598",
"0.59329087",
"0.5931062",
"0.59270746",
"0.59228474",
"0.59170806",
"0.59156287",
"0.59117514",
"0.5909173",
"0.59050095",
"0.59023833",
"0.5899511",
"0.58894",
"0.58886635",
"0.58680415",
"0.5858688",
"0.5857567",
"0.5853914",
"0.5853101",
"0.58530235",
"0.5843456",
"0.58410966",
"0.5839969",
"0.5838924",
"0.5835542",
"0.58340764",
"0.58332235",
"0.5832117",
"0.58206433",
"0.58123153",
"0.5810862",
"0.580603",
"0.57987785",
"0.579153",
"0.5784103",
"0.57823825",
"0.5778838",
"0.57775354",
"0.57759887",
"0.5772655",
"0.57704586",
"0.57645816",
"0.57564723",
"0.57529765",
"0.5751517",
"0.57458204",
"0.5735307",
"0.573524",
"0.57341343",
"0.5731178",
"0.57245946",
"0.57168186",
"0.571337"
] |
0.7336392
|
0
|
Constructor: Inicializa el nodo, cargandolo con el producto y estableciendo el nodo siguiente a null.
|
public NodoP(Productos _prod) {
this.producto = _prod;
this.siguiente = null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}",
"public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }",
"public ProductoNoElaborado() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Producto() {\r\n }",
"public Nodo() {\r\n this.dato = null;\r\n this.siguiente = null;\r\n }",
"public Nodo() {\n\t\tthis(null, null);\n\t}",
"private Productos(int codigo, String descripcion, double precio) {\n this.codigo = codigo;\n this.descripcion = descripcion;\n this.precio = precio;\n }",
"public Producto (){\n\n }",
"public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }",
"public Nodo(Elemento e, Nodo<Elemento> p) {\n\t\tthis.proximo = p;\n\t\tthis.elemento = e;\n\t}",
"public Nodo(Elemento e) {\n\t\tthis(e, null);\n\t}",
"public NodoDoble(E elemento){\n this(null, elemento, null);//mando a llamar al ctrctor que recibe 2 parámetros\n }",
"public Producto(Producto p) {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tsetNombre(p.getNombre());\r\n\t\tsetCantidad(p.getCantidad());\r\n\t\tsetEnVenta(p.isEnVenta());\r\n\t\tsetCaracteristicas(p.getCaracteristicas());\r\n\t\tsetCategoria(p.getCategoria());\r\n\t\tsetDescripcion(p.getDescripcion());\r\n\t\tsetPrecio(p.getPrecio());\r\n\t\tsetVendedor(p.getVendedor());\r\n\t}",
"public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }",
"public Producto(double precioCompra, double precioVenta) {\n\t//\tsuper();\n\t\tthis.precioCompra = precioCompra;\n\t\tthis.precioVenta = precioVenta;\n\t}",
"public Nodo(String _nombre_palabra, int _idtoken) {\n nombre_palabra = _nombre_palabra;\n idtoken = _idtoken;\n Siguiente = null;\n }",
"public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }",
"public Product()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.price = 0.0;\n\t\tthis.imported = false;\n\t\tthis.quantity = 0;\n\t\tthis.taxedCost = 0.0;\n\t}",
"public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }",
"public Inventory(String kodeWh,String kodeProd,double hargaProd,int jumlahProd){\n this.kodeWh=kodeWh;\n this.kodeProd=kodeProd;\n this.hargaProd=hargaProd;\n this.jumlahProd=jumlahProd;\n }",
"public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}",
"public Product() { }",
"public Product() { }",
"public Product() {}",
"public Product() {\n\t}",
"public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}",
"public DetalleProducto() {\n initComponents();\n }",
"public Producto(String nombre, String vendedor, float precio, int cantidad,boolean enVenta, String descripcion,\r\n\t\t\tCaracteristica caracteristicas, Categoria categoria) {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tsetNombre(nombre);\r\n\t\tsetCantidad(cantidad);\r\n\t\tsetEnVenta(enVenta);\r\n\t\tsetCaracteristicas(caracteristicas);\r\n\t\tsetCategoria(categoria);\r\n\t\tsetDescripcion(descripcion);\r\n\t\tsetPrecio(precio);\r\n\t\tsetVendedor(vendedor);\r\n\t}",
"public Product() {\n\t\tthis.name = \"\";\n\t\tthis.price = 0;\n\t\tthis.quantity = 0;\n\t}",
"public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }",
"public Carta (String palo, int numero){\n\t\tthis.palo = palo;\n\t\tthis.numero = numero;\n\n\t\tif(palo.equals(\"O\"))\n\t\t\tvalor = numero;\n\t\telse if(palo.equals(\"C\"))\n\t\t\tvalor = numero * 100;\n\t\telse if(palo.equals(\"E\"))\n\t\t\tvalor = numero * 10000;\n\t\telse if(palo.equals(\"B\"))\n\t\t\tvalor = numero * 1000000;\n\n\t}",
"public Producto(String nombre, String descripcion, LocalDate fechaPubl, double pvp, Tag tagProducto, boolean stock,\n\t\t\tlong idProducto) {\n\t\tsuper();\n\t\tthis.nombre = nombre;\n\t\tthis.descripcion = descripcion;\n\t\tthis.fechaPubl = fechaPubl;\n\t\tthis.pvp = pvp;\n\t\tthis.tagProducto = tagProducto;\n\t\tthis.stock = stock;\n\t\tthis.idProducto = idProducto;\n\t}",
"public Registrar_Producto() {\n this.setContentPane(fondo);\n initComponents();\n llenaArr();\n llenaCB();\n soloLetras(rp_tx_nombre);\n soloNumeros(rp_tx_cantidad);\n soloNumeros(rp_tx_precio);\n soloLetras(rp_tx_descripcion);\n }",
"public ActualizarProducto() {\n initComponents();\n }",
"public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}",
"public CrearProductos() {\n initComponents();\n }",
"public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }",
"public Product() {\n }",
"public Product() {\n }",
"public SuperProduct() {\n\t\tsuper();\n\t}",
"public ProductoRepository() {}",
"public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}",
"public Nodo(String _nombre_palabra, int _idtoken, String _valor, String _tipo, String _pertenece_a, Nodo _Anterior) {\n nombre_palabra = _nombre_palabra;\n idtoken = _idtoken;\n valor = _valor;\n tipo = _tipo;\n pertenece_a = _pertenece_a;\n Siguiente = null;\n Anterior = _Anterior;\n }",
"ProductUnit() {\n _elements = new Element[0];\n }",
"protected DirectProductNodeModel() {\n\t\tsuper(2, 1);\n\t}",
"public producto_interfaz(Producto producto) {\n initComponents();\n jSpinner1.setEnabled(false);\n this.producto=producto;\n titulo.setText(producto.getNombre());\n peso.setText(Double.toString(producto.getPeso()));\n precio.setText(Double.toString(producto.getPrecio()));\n \n }",
"public Cartao() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }",
"public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }",
"public NodoDoble(Object valor) {\n this.valor = valor;\n }",
"public CuentaDeposito(String number, String productType) {\n super(number, productType);\n }",
"Items(int quantidade,String nome,double preco){\n\t\tthis.qntd=quantidade;\n\t\tthis.produto = new Produto(nome,preco);\n\t}",
"public JuegoCarta() {\n initComponents();\n dibujarPuntuaciones();\n }",
"public ProductosInventario(String codigoDeBarras, String nombre, Empresa empresa, int presentacion, int iva, int costo, int cantidad, String tipo, int precio) {\n\t\tthis.producto = new Producto(codigoDeBarras, nombre, empresa, presentacion, iva, costo,precio);\n\t\tthis.cantidad = 0;\n\t\tsetCantidad(cantidad);\n\t\tthis.tipo = tipo;\n\t}",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"public Profesor(int _NoEmpleado) {\r\n\t\tsuper();\r\n\t\tthis._NoEmpleado = _NoEmpleado;\r\n\t}",
"public Pila(Fabrica<TNodo> creadorDeNodos) {\n\t\tsuper(creadorDeNodos);\n\t}",
"private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}",
"public Silos(int id_usuario, int id_silo, String nome_silo, String produto_silo, Double tamanho_silo){\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_usuario = id_usuario;\n this.id_silo = id_silo;\n this.nome_silo = nome_silo;\n this.produto_silo = produto_silo;\n this.tamanho_silo = tamanho_silo;\n }",
"public CartProduct() {\n }",
"private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}",
"Product()\r\n\t{\r\n\t\tSystem.out.println(\"\");\r\n\t}",
"public OrderLine() {\n products = new ArrayList<>();\n price = new BigDecimal(0);\n }",
"public Produto(int id_p, int barcode, String categoria, String descricao,\r\n\t\t\tint unidade, BigDecimal custo, BigDecimal mlucro) {\r\n\t\tthis.id_p = id_p;\r\n\t\tthis.barcode = barcode;\r\n\t\tthis.categoria = categoria;\r\n\t\tthis.descricao = descricao;\r\n\t\tthis.unidade = unidade;\r\n\t\tthis.custo = custo;\r\n\t\tthis.mlucro = mlucro;\r\n\t}",
"public Produto() {}",
"protected Product() {\n\t\t\n\t}",
"@Override\n\tpublic DAOProducto_Lab crearDAOProducto() {\n\t\treturn null;\n\t}",
"public JogoDigital(String titulo, Double preco, int codigo) {\n super(titulo, preco);\n this.codigo = codigo;\n }",
"@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }",
"public PantryProducts() {\n this(DSL.name(\"pantry_products\"), null);\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"public JavaBeans(String idProduto, String nomeProduto, String quantProduto, String precoProduto) {\r\n\t\tsuper();\r\n\t\tthis.idProduto = idProduto;\r\n\t\tthis.nomeProduto = nomeProduto;\r\n\t\tthis.quantProduto = quantProduto;\r\n\t\tthis.precoProduto = precoProduto;\r\n\t}",
"public Venda(int idProduto, double valorUnitarioProduto, int quantidadeUnitarioProduto, double valorTotalProduto, int idEndereco, double valorFrete, int idPagamento) {\r\n this.idProduto = idProduto;\r\n this.valorUnitarioProduto = valorUnitarioProduto;\r\n this.quantidadeUnitarioProduto = quantidadeUnitarioProduto;\r\n this.valorTotalProduto = valorTotalProduto;\r\n this.idEndereco = idEndereco;\r\n this.valorFrete = valorFrete;\r\n this.idPagamento = idPagamento;\r\n }",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"public ProductosBean() {\r\n }",
"public Noeud(ArrayList<Objets> ListObjet, float poids_maximal) {\n\t\tthis.ListObjet = ListObjet;\n\t\tthis.poidsActuelle = 0;\n\t\tthis.profondeur = 0;\n\t\tthis.borneInf = 0;\n\t\tthis.borneSup = 0;\n\t\tthis.poids_maximal = poids_maximal;\n\t\tthis.ListObjetParNoeud = new ArrayList<Objets>();\n\t}",
"public Carta(int num,int palo){\r\n this.numero=Numeros.values()[num-1];\r\n this.palo=Palos.values()[palo-1];\r\n }",
"public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }",
"public DuploQuantidadeFaturacao(){\r\n faturacao = 0;\r\n quantidade = 0;\r\n }",
"protected Product()\n\t{\n\t}",
"public Produto(String nome, String descricao, double preco, String tipo) {\n\t\tthis.nome = nome;\n\t\tthis.descricao = descricao;\n\t\tthis.preco = preco;\n\t\tthis.tipo = tipo;\n\t}",
"public Fornecedor(int código, String nome, String data_cadastro, String n_documento) {\r\n super(código, nome, data_cadastro, n_documento);\r\n }",
"public ProductoA2() {\n\t\tSystem.out.println(\"Hola yo soy el producto A2\");\n\t\t\n\t}",
"public ConstrutorDeLeilao para(String produto) {\n\t\t\r\n\t\t this.leilao = new Leilao(produto);\r\n\t\treturn this;\r\n\t}",
"public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }",
"public Nino(int id, int edad, Paso paso, Tobogan tobogan, Columpios columpios, Tiovivo tiovivo) {\n this.id = id; //se asignan todos los datos\n this.edad = edad;\n this.paso = paso;\n this.tobogan = tobogan;\n this.columpios = columpios;\n this.tiovivo = tiovivo;\n start(); //strat de los hilos\n }",
"public Congelado(double peso) {\n\t\tsuper(ID_CATEGORIA_CONGELADO);\n\t\tthis.peso = peso;\n\t}",
"public Order(long price, long quantity, long seqNo) {\n this.price = price;\n this.quantity = quantity;\n this.seqNo = seqNo;\n }",
"public void setProducto(Producto producto) {\n\t\tthis.producto = producto;\n\t}",
"public Profesor (String apellidos, String nombre, String nif, Persona.sexo genero, int edad, int expediente){\n this.apellidos = apellidos;\n this.nombre = nombre;\n this.nif = nif;\n this.genero = genero;\n this.edad = edad;\n this.expediente = expediente;\n }",
"public Produto(String nome, String descricao, double preco, String tipo, double precoTotal) {\n\t\tthis.nome = nome;\n\t\tthis.descricao = descricao;\n\t\tthis.preco = preco;\n\t\tthis.tipo = tipo;\n\t\tthis.precoTotal = precoTotal;\n\t}",
"public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }",
"public void setProducto(Long producto) {\n this.producto.set(producto);\n }",
"public Corriente(int numero, long saldo, Persona titular, String tipoCuenta) {\r\n super(numero, saldo, titular, tipoCuenta);\r\n\r\n }",
"public Celda(final T valorN) {\r\n valor = valorN;\r\n }",
"public lisProducto(int modo) {\n initComponents();\n setModo(modo);\n setFiltro(\"\");\n }",
"public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}",
"public Product Product() {\n return null;\n }",
"public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n \n }"
] |
[
"0.762114",
"0.7533676",
"0.7060903",
"0.69719374",
"0.6969185",
"0.6909347",
"0.6886306",
"0.67459345",
"0.6702625",
"0.6677809",
"0.6651483",
"0.6612433",
"0.6589626",
"0.65276116",
"0.64204025",
"0.63829213",
"0.6273529",
"0.62229484",
"0.6215511",
"0.61886644",
"0.6172016",
"0.6171888",
"0.6171888",
"0.6149979",
"0.61414236",
"0.6116378",
"0.61007017",
"0.60942316",
"0.60904557",
"0.6058294",
"0.6052406",
"0.604201",
"0.6041899",
"0.60331935",
"0.60258764",
"0.60220695",
"0.6012873",
"0.6012439",
"0.6012439",
"0.60071355",
"0.6006185",
"0.5992118",
"0.59479326",
"0.59467304",
"0.59164435",
"0.59045196",
"0.5901063",
"0.5895998",
"0.5878565",
"0.5876515",
"0.58275825",
"0.582742",
"0.58163345",
"0.5808346",
"0.5803194",
"0.5802492",
"0.57986706",
"0.5798484",
"0.5777075",
"0.5775636",
"0.57723635",
"0.5765145",
"0.5744436",
"0.57321364",
"0.573078",
"0.5729053",
"0.5728147",
"0.5727562",
"0.57275516",
"0.57160854",
"0.5710611",
"0.56796557",
"0.567373",
"0.56679755",
"0.5663161",
"0.565726",
"0.5642298",
"0.56302637",
"0.5615249",
"0.5614703",
"0.56134903",
"0.56081986",
"0.56041497",
"0.5599869",
"0.55985886",
"0.55985606",
"0.5598319",
"0.5593922",
"0.559382",
"0.5593522",
"0.55914134",
"0.5576566",
"0.5576062",
"0.5570049",
"0.5568013",
"0.55672514",
"0.5564544",
"0.5560698",
"0.5549288",
"0.5537377"
] |
0.79297715
|
0
|
Created by omerfarukcoban on 27.12.2019.
|
public interface Iterator {
boolean hasNext();
Object next();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"Petunia() {\r\n\t\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private UsineJoueur() {}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public int getSize() {\n return 1;\n }",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n public int getOrder() {\n return 0;\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n public void initialize() {\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public int getOrder() {\n return 4;\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n public String toString() {\n return \"\";\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public int getSize() {return 0;}",
"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 }",
"private TMCourse() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\n public void initialize() {\n }",
"@Override\r\n\tpublic void init() {}"
] |
[
"0.5967267",
"0.56419164",
"0.55180043",
"0.54968834",
"0.54726636",
"0.5460348",
"0.5460348",
"0.5447238",
"0.54018223",
"0.5380395",
"0.5350975",
"0.5348815",
"0.5340301",
"0.5336017",
"0.5336017",
"0.5336017",
"0.5336017",
"0.5336017",
"0.5336017",
"0.53339756",
"0.5327467",
"0.5317057",
"0.53056324",
"0.52964014",
"0.5282855",
"0.52813256",
"0.52734953",
"0.5269279",
"0.52562046",
"0.52530164",
"0.5225859",
"0.5214824",
"0.5213751",
"0.5209476",
"0.5197088",
"0.5197088",
"0.5196286",
"0.5195474",
"0.5190588",
"0.51793456",
"0.51528674",
"0.5123492",
"0.51192147",
"0.5116447",
"0.5114125",
"0.5113668",
"0.5112751",
"0.51059633",
"0.5097435",
"0.50733864",
"0.5068827",
"0.5068827",
"0.5068566",
"0.50679094",
"0.5063505",
"0.5063505",
"0.5063505",
"0.50562626",
"0.50491196",
"0.5047421",
"0.5045477",
"0.50426096",
"0.5039002",
"0.5035514",
"0.5033027",
"0.5032896",
"0.5031553",
"0.5022877",
"0.5018334",
"0.5018334",
"0.5017311",
"0.50160736",
"0.50160736",
"0.50160736",
"0.50160736",
"0.50160736",
"0.50101423",
"0.50100446",
"0.50100446",
"0.50100446",
"0.50100446",
"0.50100446",
"0.50100446",
"0.50100446",
"0.5000793",
"0.4992864",
"0.49842146",
"0.49842146",
"0.49842146",
"0.49792683",
"0.49707636",
"0.49707636",
"0.49707636",
"0.49707636",
"0.49707636",
"0.49707636",
"0.49707636",
"0.49707636",
"0.49707636",
"0.49707636",
"0.4969998"
] |
0.0
|
-1
|
Insert a record to DB
|
@Override
public E insert(E entity) {
LOG.info("[insert] Start: entity = " + entity.getClass().getSimpleName());
entityManager.persist(entity);
LOG.info("[insert] End");
return entity;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void insert(BnesBrowsingHis record) throws SQLException;",
"void insert(OrderPreferential record) throws SQLException;",
"int insert(AccessModelEntity record);",
"int insert(Model record);",
"int insert(PmKeyDbObj record);",
"int insert(Assist_table record);",
"int insert(UserInfo record);",
"@Override\r\n\tpublic int insert(PayRecord record) {\n\t\treturn this.session.insert(\"com.icss.dao.PayRecordMapper.insert\", record);\r\n\t}",
"void insert(IrpSignInfo record) throws SQLException;",
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}",
"Long insert(Access record);",
"Integer insert(JzAct record);",
"int insert(Prueba record);",
"void insert(GfanCodeBanner record) throws SQLException;",
"void insert(Disproduct record);",
"int insert(Forumpost record);",
"void insert(PaymentTrade record);",
"int insert(RecordLike record);",
"int insert(Basicinfo record);",
"int insert(SysId record);",
"int insert(PmPost record);",
"int insert(DebtsRecordEntity record);",
"int insert(DBPublicResources record);",
"int insert(OrderDetail record);",
"int insert(OrderDetails record);",
"void insert(CTipoComprobante record) throws SQLException;",
"int insert(PayLogInfoPo record);",
"int insert(Product record);",
"int insert(Commet record);",
"int insert(Cargo record);",
"int insert(Ltsprojectpo record);",
"Long insert(EventDetail record);",
"public void insert() throws SQLException;",
"int insert(Engine record);",
"int insert(Transaction record);",
"void insert(TResearchTeach record);",
"int insert(TCpySpouse record);",
"void insert(CTipoPersona record) throws SQLException;",
"int insert(CmsActivity record);",
"int insert(Promo record);",
"int insert(BlogDetails record);",
"int insert(UserInfoUserinfo record);",
"int insert(UserDO record);",
"int insert(DataSync record);",
"void insert(CusBankAccount record);",
"int insert(ApplicationDO record);",
"@Insert({\n \"insert into order (id, orderid, \",\n \"name, price, userid)\",\n \"values (#{id,jdbcType=BIGINT}, #{orderid,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR})\"\n })\n int insert(Order record);",
"int insert(Storydetail record);",
"int insert(StudentEntity record);",
"int insert(TbSerdeParams record);",
"public void insert(Category record) throws SQLException {\r\n sqlMapClient.insert(\"CATEGORY.abatorgenerated_insert\", record);\r\n }",
"int insert(LoginRecordDO record);",
"int insert(TestActivityEntity record);",
"String insert(BookDO record);",
"int insert(NjProductTaticsRelation record);",
"int insert(WizardValuationHistoryEntity record);",
"Long insert(User record);",
"int insert(CmsRoomBook record);",
"int insert(ActivityHongbaoPrize record);",
"int insert(ActActivityRegister record);",
"int insert(SwipersDO record);",
"int insert(Tourst record);",
"void insert(Mi004 record);",
"int insert(AliUserInfoDO record);",
"int insert(Enfermedad record);",
"int insert(Body record);",
"int insert(Usertype record);",
"int insert(TbComEqpModel record);",
"public void insertRecord(Record record) {\n record.setIrecordTime(new Date());\n lanRenMapper.insertRecord(record);\n }",
"int insert(Course record);",
"int insert(Course record);",
"int insert(StudentInfo record);",
"int insert(Goods record);",
"int insert(SysCode record);",
"int insert(ClOrderInfo record);",
"int insert(AccuseInfo record);",
"int insert(FinMonthlySnapModel record);",
"int insert(GirlInfo record);",
"int insert(ParkCurrent record);",
"int insert(Article record);",
"int insert(CartDO record);",
"int insert(GoodsPo record);",
"int insert(UserEntity record);",
"int insert(Caiwu record);",
"int insert(Userinfo record);",
"int insert(TestEntity record);",
"int insert(Project record);",
"int insert(RepaymentPlanInfoUn record);",
"int insert(QuestionOne record);",
"int insert(SrHotelRoomInfo record);",
"int insert(SPerms record);",
"int insert(TrainCourse record);",
"void insert(VRpMnBscHoIbc record);",
"int insert(Kaiwa record);",
"int insert(Storage record);",
"int insert(Storage record);",
"int insert(Yqbd record);",
"void insert(organize_infoBean record);",
"int insert(Payment record);",
"int insert(ArticleDo record);",
"int insert(GroupRightDAO record);"
] |
[
"0.78744465",
"0.76794803",
"0.7668299",
"0.7638662",
"0.7630426",
"0.76028174",
"0.759634",
"0.7581246",
"0.7579152",
"0.75704706",
"0.75693965",
"0.7548982",
"0.7548422",
"0.75395244",
"0.75217086",
"0.74924016",
"0.74740297",
"0.7466521",
"0.74660516",
"0.74364454",
"0.74099445",
"0.7407696",
"0.74064744",
"0.7403651",
"0.74030894",
"0.740155",
"0.7398277",
"0.739374",
"0.7391315",
"0.7390852",
"0.7375881",
"0.7370884",
"0.73666954",
"0.7361369",
"0.73553807",
"0.7353349",
"0.7352405",
"0.73461723",
"0.7336352",
"0.7332762",
"0.7330234",
"0.73177284",
"0.731543",
"0.73145294",
"0.7313452",
"0.7305575",
"0.7303585",
"0.7302056",
"0.72957367",
"0.7283982",
"0.72769594",
"0.7276067",
"0.7272581",
"0.72688115",
"0.72672105",
"0.72669137",
"0.7250757",
"0.7246934",
"0.72463953",
"0.7245524",
"0.72426724",
"0.723471",
"0.7232536",
"0.7230572",
"0.7229786",
"0.7229094",
"0.72255564",
"0.7217476",
"0.72151953",
"0.7208789",
"0.7208789",
"0.72013724",
"0.7199784",
"0.71973145",
"0.719691",
"0.71960753",
"0.71950275",
"0.7194633",
"0.7185311",
"0.7184291",
"0.7182676",
"0.7178852",
"0.7178788",
"0.7177558",
"0.7170889",
"0.7164298",
"0.71636283",
"0.71603405",
"0.7158874",
"0.7158113",
"0.7157167",
"0.7155534",
"0.715323",
"0.71523184",
"0.7151174",
"0.7151174",
"0.71487033",
"0.7144365",
"0.71441853",
"0.7144147",
"0.7134707"
] |
0.0
|
-1
|
Update a record in DB
|
@Override
public E update(E entity) {
LOG.info("[update] Start: entity = " + entity.getClass().getSimpleName());
entityManager.merge(entity);
LOG.info("[update] End");
return entity;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int updateByPrimaryKey(Yqbd record);",
"int updateByPrimaryKey(AccessModelEntity record);",
"int updateByPrimaryKey(RecordLike record);",
"int updateByPrimaryKey(Ltsprojectpo record);",
"int updateByPrimaryKey(Model record);",
"int updateByPrimaryKey(Commet record);",
"int updateByPrimaryKey(SysId record);",
"int updateByPrimaryKey(Forumpost record);",
"int updateByPrimaryKey(Body record);",
"int updateByPrimaryKey(QuestionOne record);",
"int updateByPrimaryKey(Basicinfo record);",
"int updateByPrimaryKey(SPerms record);",
"int updateByPrimaryKey(IceApp record);",
"int updateByPrimaryKey(Tourst record);",
"int updateByPrimaryKey(Access record);",
"int updateByPrimaryKey(Dormitory record);",
"int updateByPrimaryKey(GirlInfo record);",
"int updateByPrimaryKey(Caiwu record);",
"int updateByPrimaryKey(TempletLink record);",
"int updateByPrimaryKey(Prueba record);",
"int updateByPrimaryKey(Cargo record);",
"int updateByPrimaryKey(Abum record);",
"int updateByPrimaryKey(JzAct record);",
"int updateByPrimaryKey(PrhFree record);",
"int updateByPrimaryKey(Kaiwa record);",
"int updateByPrimaryKey(TbComEqpModel record);",
"int updateByPrimaryKey(AccuseInfo record);",
"int updateByPrimaryKey(Enfermedad record);",
"int updateByPrimaryKey(AbiFormsForm record);",
"int updateByPrimaryKey(DataSync record);",
"int updateByPrimaryKey(SwipersDO record);",
"int updateByPrimaryKey(BnesBrowsingHis record) throws SQLException;",
"int updateByPrimaryKey(TCpySpouse record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(TCar record);",
"int updateByPrimaryKey(Engine record);",
"int updateByPrimaryKey(SysCode record);",
"int updateByPrimaryKey(CaseLinkman record);",
"int updateByPrimaryKey(UserInfo record);",
"int updateByPrimaryKey(Resource record);",
"int updateByPrimaryKey(Product record);",
"int updateByPrimaryKey(Employee record);",
"int updateByPrimaryKey(BaseCountract record);",
"int updateByPrimaryKey(Online record);",
"int updateByPrimaryKey(Clazz record);",
"int updateByPrimaryKey(SupplyNeed record);",
"int updateByPrimaryKey(Dress record);",
"int updateByPrimaryKey(Admin record);",
"int updateByPrimaryKey(Admin record);",
"int updateByPrimaryKey(Massage record);",
"int updateByPrimaryKey(Assist_table record);",
"int updateByPrimaryKey(Sequipment record);",
"int updateByPrimaryKey(UserDO record);",
"int updateByPrimaryKey(CartDO record);",
"int updateByPrimaryKey(StudentEntity record);",
"int updateByPrimaryKey(Disease record);",
"int updateByPrimaryKey(AutoAssessDetail record);",
"int updateByPrimaryKey(GoodsPo record);",
"int updateByPrimaryKey(RepStuLearning record);",
"int updateByPrimaryKey(Notice record);",
"int updateByPrimaryKey(LitemallUserFormid record);",
"int updateByPrimaryKey(ProEmployee record);",
"int updateByPrimaryKey(ResPartnerBankEntity record);",
"int updateByPrimaryKey(Account record);",
"int updateByPrimaryKey(Account record);",
"int updateByPrimaryKey(PayLogInfoPo record);",
"int updateByPrimaryKey(ClinicalData record);",
"int updateByPrimaryKey(T record);",
"int updateByPrimaryKey(Movimiento record);",
"int updateByPrimaryKey(Course record);",
"int updateByPrimaryKey(Course record);",
"int updateByPrimaryKey(Userinfo record);",
"int updateByPrimaryKey(BaseReturn record);",
"int updateByPrimaryKey(UserEntity record);",
"public void updateRecord(Record object);",
"int updateByPrimaryKey(Position record);",
"int updateByPrimaryKey(BasicEquipment record);",
"int updateByPrimaryKey(StudentInfo record);",
"int updateByPrimaryKey(Goods record);",
"int updateByPrimaryKey(Goods record);",
"int updateByPrimaryKey(Disproduct record);",
"int updateByPrimaryKey(TLinkman record);",
"int updateByPrimaryKey(LoginRecordDO record);",
"int updateByPrimaryKey(Storage record);",
"int updateByPrimaryKey(Storage record);",
"int updateByPrimaryKey(Ad record);",
"int updateByPrimaryKey(ClOrderInfo record);",
"int updateByPrimaryKey(Tour record);",
"int updateByPrimaryKey(Location record);",
"int updateByPrimaryKey(ReEducation record);",
"int updateByPrimaryKey(Card record);",
"int updateByPrimaryKey(BehaveLog record);",
"int updateByPrimaryKey(DebtsRecordEntity record);",
"int updateByPrimaryKey(ResourcePojo record);",
"int updateByPrimaryKey(CraftAdvReq record);",
"int updateByPrimaryKey(ProSchoolWare record);",
"int updateByPrimaryKey(AliUserInfoDO record);"
] |
[
"0.7936555",
"0.7855804",
"0.7846036",
"0.7834323",
"0.78288585",
"0.78213406",
"0.78046525",
"0.78018767",
"0.77970725",
"0.77920717",
"0.7791931",
"0.7779826",
"0.7765076",
"0.7764505",
"0.77606606",
"0.775832",
"0.7757925",
"0.7737116",
"0.7733607",
"0.7731995",
"0.77291805",
"0.7724578",
"0.77171415",
"0.77003145",
"0.7691362",
"0.76853734",
"0.7681904",
"0.76735586",
"0.7672835",
"0.7666005",
"0.7655228",
"0.76528835",
"0.76469076",
"0.7643876",
"0.7643876",
"0.7643876",
"0.7643876",
"0.7643876",
"0.76428044",
"0.76392615",
"0.76375777",
"0.7635007",
"0.7633125",
"0.76327956",
"0.7627311",
"0.7623392",
"0.76209944",
"0.761657",
"0.76153874",
"0.7611058",
"0.7609868",
"0.7603922",
"0.7603922",
"0.7596676",
"0.75958437",
"0.7592933",
"0.7592758",
"0.75907093",
"0.7585837",
"0.75816673",
"0.7577635",
"0.7574327",
"0.757386",
"0.75702626",
"0.75702196",
"0.75609696",
"0.7560774",
"0.75503135",
"0.75503135",
"0.75492364",
"0.754687",
"0.75468594",
"0.7539169",
"0.75389755",
"0.75389755",
"0.75369",
"0.75292826",
"0.7528882",
"0.7527772",
"0.75236684",
"0.75228006",
"0.75221944",
"0.7519492",
"0.7519492",
"0.75188386",
"0.751652",
"0.75129896",
"0.7510831",
"0.7510831",
"0.75029004",
"0.75016135",
"0.7496203",
"0.7490195",
"0.74877936",
"0.7487619",
"0.7478161",
"0.74750304",
"0.7473069",
"0.7468064",
"0.7465267",
"0.74643874"
] |
0.0
|
-1
|
Delete a record in DB
|
@Override
public E delete(final E entity) {
LOG.info("[delete] Start: entity = " + entity.getClass().getSimpleName());
entityManager.remove(entity);
LOG.info("[delete] End");
return entity;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public int deleteByPrimaryKey(BorrowDO record){\n return borrowExtMapper.deleteByPrimaryKey(record);\n }",
"int deleteByPrimaryKey(Integer recordId);",
"int deleteByPrimaryKey(PersonRegisterDo record);",
"public void deleteRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.delete(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"public void deleteRecord() {\n// foods.clear();\n// try {\n// FoodRecordDao dao = new FoodRecordDao();\n// dao.saveFoodRecords(foods);\n// } catch (DaoException ex) {\n// Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n// }\n }",
"int deleteByPrimaryKey(GpPubgPlayer record);",
"protected void deleteRecord() throws DAOException {\r\n\t\t// Elimina relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.delete(relco);\r\n\t\t}\r\n\t\t// Elimina objeto\r\n\t\tobjectDao.delete(object);\r\n\t}",
"public void deleteRecord() {\n\n new BackgroundDeleteTask().execute();\n }",
"void delete ( int id ) throws DAOException;",
"@Override\r\n public long deleteRecord(Object o) throws SQLException {\r\n String sql = \"delete from patient where patientid = ?\";\r\n long result = -1;\r\n PatientBean pb;\r\n\r\n try (PreparedStatement pStatement = connection.prepareStatement(sql);) {\r\n pb = (PatientBean) o;\r\n pStatement.setLong(1, pb.getPatientID());\r\n\r\n result = pStatement.executeUpdate();\r\n }\r\n\r\n logger.info(\"Patient record has been deleted: patient id \" + pb.getPatientID() + \", \" + result + \" row(s) affected\");\r\n\r\n return result;\r\n }",
"int deleteById(ID id) throws SQLException, DaoException;",
"int delete(Long id) throws SQLException, DAOException;",
"@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}",
"public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }",
"public abstract boolean delete(PK id);",
"@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}",
"public void delete(int id) throws DAOException;",
"int deleteByPrimaryKey(String samId);",
"int deleteByExample(LoginRecordDOExample example);",
"public void delete(RutaPk pk) throws RutaDaoException;",
"public void deleteUserRecord() {\n\t\tSystem.out.println(\"Calling deleteUserRecord() Method To Delete User Record\");\n\t\tuserDAO.deleteUser(user);\n\t}",
"int deleteByPrimaryKey(String objId);",
"int deleteByPrimaryKey(String objId);",
"@Override\n public int deleteByPrimaryKey(Ares2ClusterDO record) {\n return ares2ClusterExtMapper.deleteByPrimaryKey(record);\n }",
"@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}",
"@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}",
"public void deleteRecord(Record record, String clientName, String assessmentYear, String taxType, String paymentDate, String paymentAmount) {\n String delete = \"DELETE FROM \" + TABLE_RECORDS + \" WHERE \" + COLUMN_NAME + \"=\\\"\" + clientName + \"\\\" AND \" + COLUMN_ASSESSMENT_YEAR + \"=\\\"\" + assessmentYear + \"\\\" AND \" +\n COLUMN_IT_GST + \"=\\\"\" + taxType + \"\\\" AND \" + COLUMN_PAYMENT_DATE + \"=\\\"\" + paymentDate + \"\\\" AND \" + COLUMN_PAYMENT_AMOUNT + \"=\\\"\" + paymentAmount + \"\\\"\";\n records.remove(record);\n\n try {\n statement = connection.prepareStatement(delete);\n statement.executeUpdate();\n logFile.modifyLogFile(\"Data successfully deleted from database\");\n } catch (SQLException e) {\n logFile.modifyLogFile(\"Error deleting record : \" + e.getMessage());\n e.printStackTrace();\n }\n }",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"int deleteByPrimaryKey(String idTipoPersona) throws SQLException;",
"public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}",
"int deleteByPrimaryKey(String maht);",
"void deleteById(long id);",
"int delete(T data) throws SQLException, DaoException;",
"int deleteByPrimaryKey(String detailId);",
"void deleteById(Integer id);",
"void deleteById(Integer id);",
"int deleteById(Long id);",
"@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}",
"public void delete(Object obj) throws SQLException {\n\r\n\t}",
"int deleteByPrimaryKey(String fucno);",
"void delete( Long id );",
"public int deleteById(long formId) throws DataAccessException;",
"int deleteByExample(DebtsRecordEntityExample example);",
"int deleteByPrimaryKey(Short act_id);",
"void deleteById(int id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"void deleteById(Long id);",
"public void deleteById(int theId);",
"public void deleteById(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);",
"void delete(Long id);"
] |
[
"0.764697",
"0.7517313",
"0.75053895",
"0.7473998",
"0.74540424",
"0.7453962",
"0.7449541",
"0.73295856",
"0.7329032",
"0.72911906",
"0.72719896",
"0.7261537",
"0.7226121",
"0.7194684",
"0.717579",
"0.71738076",
"0.7169712",
"0.7152108",
"0.7141469",
"0.71325535",
"0.71090233",
"0.7100558",
"0.7100558",
"0.7097664",
"0.7081433",
"0.7081433",
"0.70584434",
"0.70517075",
"0.70494246",
"0.70482284",
"0.70398104",
"0.7026835",
"0.70206404",
"0.70146847",
"0.7011271",
"0.7011271",
"0.70049983",
"0.70046395",
"0.70021975",
"0.7001822",
"0.6995656",
"0.6978837",
"0.6978158",
"0.6976902",
"0.69706434",
"0.69664943",
"0.69664943",
"0.69664943",
"0.69664943",
"0.6964029",
"0.69534236",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893",
"0.6946893"
] |
0.0
|
-1
|
Get a record by Id
|
@Override
public E getById(final I id) {
LOG.info("[getById] Start: Id = " + id);
LOG.info("[getById] End");
return entityManager.find(entityClass, id);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Record readRecord(Long id);",
"@Override\n\tpublic Record getRecordById(int id) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tRecordDAO recordDAO = new RecordDAO();\n\t\tRecord R = null;\n\n\t\ttry {\n\t\t\tR = recordDAO.findById(id);\n\t\t\ttx.commit();\n\t\t} catch (RuntimeException e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.commit();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn R;\n\t}",
"T get(PK id);",
"public Data findById(Object id);",
"public Record getRecord(long id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(Record.TABLE_NAME,\n new String[]{Record.COLUMN_ID,\n Record.COLUMN_TITLE,\n Record.COLUMN_AUTHOR,\n Record.COLUMN_DESCRIPTION,\n Record.COLUMN_URL,\n Record.COLUMN_IMAGE,\n Record.COLUMN_CONTENT,\n Record.COLUMN_TIMESTAMP},\n Record.COLUMN_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n\n if (cursor != null)\n cursor.moveToFirst();\n\n // prepare record object\n Record record = new Record(\n cursor.getInt(cursor.getColumnIndex(Record.COLUMN_ID)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TITLE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_AUTHOR)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_DESCRIPTION)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_URL)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_IMAGE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_CONTENT)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TIMESTAMP)));\n\n // close the db connection\n cursor.close();\n\n return record;\n }",
"RecordLike selectByPrimaryKey(String id);",
"T getById(Long id);",
"T getById(PK id);",
"T getById(int id);",
"@Override\r\n\tpublic FyTestRecord findById(Long id) {\n\t\treturn testRecordDao.findOne(id);\r\n\t}",
"T get(Integer id);",
"T getById(ID id);",
"public OpenERPRecord get(int id) {\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord n = i.next();\r\n\t\t\tInteger rID = (Integer) n.get(\"id\"); // no class cast exception\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// expected here...\r\n\t\t\tif (rID == id)\r\n\t\t\t\treturn n;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Record readRecord(int recordId) {\n return records[recordId];\n }",
"T get(ID id);",
"public o selectById(long id);",
"public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }",
"T findById(Integer id);",
"@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }",
"String get(String id);",
"T findById(ID id) ;",
"D getById(K id);",
"E getById(long id);",
"public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}",
"@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }",
"AccessModelEntity selectByPrimaryKey(String id);",
"T findOne(Long id);",
"FileRecordAdmin selectByPrimaryKey(String id);",
"public TodoItem getTodoItemById(Long id) throws RecordNotFoundException {\n Optional<TodoItem> todoItem = todoItemRepository.findById(id);\n\n if (todoItem.isPresent()) {\n return todoItem.get();\n } else {\n throw new RecordNotFoundException(\"No TodoItem record exist for given id\");\n }\n }",
"@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}",
"T queryForId(ID id) throws SQLException, DaoException;",
"Storage selectByPrimaryKey(Integer recordId);",
"@Override\n @Transactional(readOnly = true)\n public Optional<RecordDTO> findOne(Long id) {\n log.debug(\"Request to get Record : {}\", id);\n return recordRepository.findById(id)\n .map(recordMapper::toDto);\n }",
"public abstract T findOne(int id);",
"Object get(ID id) throws Exception;",
"T findOne(I id);",
"PaasCustomAutomationRecord selectByPrimaryKey(Integer id);",
"IceApp selectByPrimaryKey(Long id);",
"Report selectByPrimaryKey(Integer id);",
"T getbyId(I id);",
"OrgMemberRecord selectByPrimaryKey(String id);",
"public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"public T get(int objectId) throws SQLException;",
"T findById(long pk);",
"M getById(Serializable id) throws DataAccessException;",
"public abstract T byId(ID id);",
"public Record getRecordWithId(final String recordId) {\n ArrayList<Record> allRecords = getAllSavedRecords();\n for (final Record eachRecord : allRecords) {\n if (eachRecord.recordId.equals(recordId)) {\n return eachRecord;\n }\n }\n return null;\n }",
"Model selectByPrimaryKey(Integer id);",
"public T findById(int id)\n {\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n String query = createSelectQuery(\"id\");\n try\n {\n connection = ConnectionFactory.getConnection();\n statement = connection.prepareStatement(query);\n statement.setInt(1,id);\n resultSet = statement.executeQuery();\n\n return createObjects(resultSet).get(0);\n }catch (SQLException e)\n {\n LOGGER.log(Level.WARNING,type.getName() + \"DAO:findById\"+ e.getMessage());\n }finally {\n ConnectionFactory.close(resultSet);\n ConnectionFactory.close(statement);\n ConnectionFactory.close(connection);\n }\n return null;\n }",
"User selectByPrimaryKey(String id);",
"Caiwu selectByPrimaryKey(Integer id);",
"PrhFree selectByPrimaryKey(Integer id);",
"Dormitory selectByPrimaryKey(Integer id);",
"@Override\n\tpublic RecordableRecord findRecordableRecordByPid(String id) {\n\t\treturn recordableRecordRepository.findRecordableRecordByPid(id);\n\t}",
"ReferenceData findById(ReferenceDataId id) throws DataException;",
"Corretor findOne(Long id);",
"public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}",
"@Override\r\n\tpublic Log get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog log = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tlog = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn log;\r\n\t}",
"public DataRecord getRecord(IdentifiedRecordTemplate template,\n String recordId) throws FormException {\n return getRecord(template, recordId, null);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic T get(Long id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\treturn (T) session.get(target, id);\n\t}",
"T load(PK id);",
"Clazz selectByPrimaryKey(Integer id);",
"public person findbyid(int id){\n\t\t\treturn j.queryForObject(\"select * from person where id=? \", new Object[] {id},new BeanPropertyRowMapper<person>(person.class));\r\n\t\t\r\n\t}",
"public T get(int id) {\n return this.session.get(this.type, id);\n }",
"Yqbd selectByPrimaryKey(Integer id);",
"public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }",
"HuoDong selectByPrimaryKey(Integer id);",
"E findById(K id);",
"LoginRecordDO selectByPrimaryKey(Long id);",
"Abum selectByPrimaryKey(String id);",
"private Request findRecord(String mDeviceId) {\n return ofy().load().type(Request.class).id(mDeviceId).now();\n//or return ofy().load().type(Request.class).filter(\"id\",id).first.now();\n }",
"TempletLink selectByPrimaryKey(String id);",
"Item findById(String id);",
"public LogModel findLog(String id);",
"PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);",
"T readOne(int id);",
"public Product get(String id);",
"@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}",
"CptDataStore selectByPrimaryKey(String id);",
"E find(Id id) throws RepositoryException;",
"SysId selectByPrimaryKey(String id);",
"HpItemParamItem selectByPrimaryKey(Long id);",
"@Override\n public T findById(ID id) {\n return crudRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"Can not find an entity with id: \" + id));\n }",
"@Override\r\n\tpublic Account findById(int id) {\n\t\treturn daoref.findById(id);\r\n\t}",
"SwipersDO selectByPrimaryKey(Integer id);",
"@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}",
"public Employee findEmployee(Long id);",
"EmployeeDetail getById(long identifier) throws DBException;",
"@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }",
"@Override\r\n\tpublic Libro read(int id) {\n\t\treturn libroRepository.findById(id).get();\r\n\t}",
"Account selectByPrimaryKey(String id);",
"Employee selectByPrimaryKey(String id);",
"@Override\n public Result readById(final int id) throws DaoException {\n throw new DaoException(\"Unsupported operation. Result has no id\");\n }",
"Procdef selectByPrimaryKey(String id);",
"Student get(long id);",
"@Override\r\n\tpublic Botany show(int id) {\n\t\treturn dao.show(id);\r\n\t}",
"public void getDetail(int id) {\n\t\t\n\t}",
"ProSchoolWare selectByPrimaryKey(String id);",
"@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }",
"T findById(final ID id) throws RequiredValueException, NoEntityFoundException;"
] |
[
"0.81750095",
"0.76920295",
"0.76476645",
"0.76198256",
"0.7615597",
"0.75681996",
"0.754142",
"0.7531936",
"0.73692656",
"0.7366876",
"0.72908044",
"0.7255101",
"0.7251041",
"0.7248813",
"0.72440416",
"0.72422695",
"0.7229122",
"0.72007483",
"0.7182801",
"0.71800464",
"0.717592",
"0.71700597",
"0.7162763",
"0.7147316",
"0.7135865",
"0.71073383",
"0.70811003",
"0.7076924",
"0.70702255",
"0.70300823",
"0.7023607",
"0.7019975",
"0.7012666",
"0.69798285",
"0.69479704",
"0.6943728",
"0.6939936",
"0.69312",
"0.6901102",
"0.68998265",
"0.6895586",
"0.688529",
"0.6865756",
"0.6853657",
"0.6840755",
"0.6838358",
"0.6828044",
"0.6814538",
"0.6813043",
"0.68052137",
"0.679985",
"0.6793773",
"0.67886937",
"0.67694765",
"0.6768506",
"0.6763775",
"0.67625946",
"0.6757592",
"0.67470425",
"0.67332286",
"0.67318606",
"0.672917",
"0.67144084",
"0.67128325",
"0.6712652",
"0.6706417",
"0.67048967",
"0.6694124",
"0.66925585",
"0.6692239",
"0.6689943",
"0.6689367",
"0.6687378",
"0.6683964",
"0.66786623",
"0.66736686",
"0.66716534",
"0.6661582",
"0.66580653",
"0.6657732",
"0.66548985",
"0.66504383",
"0.6633878",
"0.6629137",
"0.66275764",
"0.6624827",
"0.66228575",
"0.66195923",
"0.66158026",
"0.66123027",
"0.66039115",
"0.6597756",
"0.658945",
"0.65885013",
"0.65853554",
"0.6584001",
"0.6582723",
"0.6578583",
"0.6571161",
"0.65679"
] |
0.65772396
|
98
|
Get EntityManager to use in child class
|
@Override
public EntityManager getEntityManager() {
return entityManager;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected abstract EntityManager getEntityManager();",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}",
"abstract E getEntityManager();",
"@Override\n protected EntityManager getEntityManager() {\n return em;\n }",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn em;\n\t}",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn em;\n\t}",
"protected EntityManager getEntityManager() {\n return emf.createEntityManager();\n }",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t return em;\n\t}",
"@Override\n\tpublic EntityManager getEntityManager() {\n\t return em;\n\t}",
"protected EntityManager getEntityManager() {\n return this.entityManager;\n }",
"protected EntityManager getEntityManager() {\n return em;\n }",
"static EntityManager getEntityManager(){\n return ENTITY_MANAGER_FACTORY.createEntityManager();\n }",
"public EntityManager getEntityManager() {\r\n return entityManager;\r\n }",
"@Override\r\n\tpublic EntityManager getEntityManger() {\n\t\treturn em;\r\n\t}",
"public EntityManager getEntityManager() {\r\n\t\treturn entityManager;\r\n\t}",
"public EntityManager getEntityManager() {\r\n\t\treturn entityManager;\r\n\t}",
"public EntityManager getEntityManager() {\r\n\t\treturn entityManager;\r\n\t}",
"public EntityManager getEntityManager() {\n return this.em;\n }",
"public final static EntityManager getEntityManager() {\r\n\t\treturn entityManager;\r\n\t}",
"public EntityManager getEntityManager() {\n return getFactory().createEntityManager();\n }",
"public EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}",
"public EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}",
"public EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}",
"public EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}",
"public static EntityManager getEntityManager() {\n EntityManager em = tl.get();\n return em;\n }",
"EntityManager createEntityManager();",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn null;\n\t}",
"public EntityManager getEntityManager() {\n\t\treturn this.entityManager;\n\t}",
"protected abstract EntityManagerFactory getEntityManagerFactory();",
"private EntityManagerProvider(){}",
"public interface EntityManagerCreator {\n EntityManager createEntityManager();\n}",
"private EntityManager getEM() {\n\t\tif (emf == null || !emf.isOpen())\n\t\t\temf = Persistence.createEntityManagerFactory(PUnit);\n\t\tEntityManager em = threadLocal.get();\n\t\tif (em == null || !em.isOpen()) {\n\t\t\tem = emf.createEntityManager();\n\t\t\tthreadLocal.set(em);\n\t\t}\n\t\treturn em;\n\t}",
"public abstract void setEntityManager(EntityManager em);",
"public EntityManager getEm() {\n\t\treturn em;\n\t}",
"public EntityManager getEM() {\n\t\treturn this.entity;\n\t}",
"@Override\n\tpublic EntityManagerFactory getEntityManagerFactory() {\n\t\treturn null;\n\t}",
"@Override\n\t@PersistenceContext(unitName=\"PU-POC\")\t\n\tpublic void setEntityManager(EntityManager entityManager) {\n\t\tsuper.setEntityManager(entityManager);\n\t}",
"private AdminEntity() {\n \tsuper();\n\n this.emf = Persistence.createEntityManagerFactory(\"entityManager\");\n\tthis.em = this.emf.createEntityManager();\n\tthis.tx = this.em.getTransaction();\n }",
"@Bean\n @Scope(SCOPE_PROTOTYPE)\n EntityManager entityManagerProvider(EntityManagerFactory emf) {\n EntityManagerHolder holder = (EntityManagerHolder) getResource(emf);\n if (holder == null) {\n return emf.createEntityManager();\n }\n return holder.getEntityManager();\n }",
"@Override\n @RequestScoped\n public EntityManager provide() {\n // hk2\n final EntityManager instance = getEntityManager();\n\n if (closeableService != null) {\n closeableService.add(new Closeable() {\n @Override\n public void close() throws IOException {\n dispose(instance);\n }\n });\n }\n return instance;\n }",
"EMInitializer() {\r\n try {\r\n emf = Persistence.createEntityManagerFactory(\"pl.polsl_MatchStatist\"\r\n + \"icsWeb_war_4.0-SNAPSHOTPU\");\r\n em = emf.createEntityManager();\r\n } catch (Exception e) {\r\n em = null;\r\n emf = null;\r\n }\r\n\r\n }",
"public static final EntityManager getDefaultEntityManager() {\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(ConfigurationReader.getDatabasePersistenceUnitName());\n\t\treturn entityManagerFactory.createEntityManager();\n\t}",
"public static EntityManagerFactory getConnection() {\r\n return emf;\r\n }",
"private PersistenceManager getPersistenceManager() {\n if(pmf==null) {\n getFacetHolder().getServiceInjector().injectServicesInto(this);\n }\n return pmf.getPersistenceManagerFactory().getPersistenceManager();\n }",
"@Override\n public GenericManager<Societe, Long> getManager() {\n return manager;\n }",
"@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }",
"@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }",
"@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }",
"@PersistenceContext\r\n public void setEntityManager(EntityManager em) {\r\n this.em = em;\r\n }",
"public interface IEntityManagerFactory {\r\n\r\n\t/**\r\n\t * Called when entity manager factory will help to create DAO objects.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tEntityManager createEntityManager();\r\n}",
"public EntityManagerFactory newEMFactory() {\n emFactory = Persistence.createEntityManagerFactory(\"Exercici1-JPA\");\n return emFactory;\n }",
"public void setEntityManager(EntityManager em) {\n this.em = em;\n }",
"@PersistenceContext(unitName=\"microrest-persistence\")\n public void setPersistenceContext(EntityManager em)\n {\n this.em = em;\n }",
"@PersistenceContext\r\n\tpublic void setEntityManager(EntityManager em) {\r\n\t\tthis.em = em;\r\n\t}",
"public abstract FHIRPersistence getPersistenceImpl() throws Exception;",
"public EntityResolver getEntityResolver()\n {\n return (entityResolver == base) ? null : entityResolver;\n }",
"@Override\n public EntityResolver getEntityResolver() {\n return entityResolver;\n }",
"@Autowired\n public SubCategoryDAOImpl(EntityManager theEntityManager) {\n\n entityManager = theEntityManager;\n }",
"private static PersistenceManager getPersistenceManager() {\n\t\treturn PMF.get().getPersistenceManager();\n\t}",
"public void setEntityManager(EntityManager em) {\n\t\tthis.em = em;\n\t}",
"private static void init() {\n\t\tif (factory == null) {\n\t\t\tfactory = Persistence.createEntityManagerFactory(\"hibernatePersistenceUnit\");\n\t\t}\n\t\tif (em == null) {\n\t\t\tem = factory.createEntityManager();\n\t\t}\n\t}",
"public void setEntityManager(EntityManager entityManager) {\n\t\tthis.entityManager = entityManager;\n\t}",
"public void setEntityManager(EntityManager entityManager) {\n\t\tthis.entityManager = entityManager;\n\t}",
"@Autowired\n\tpublic EmployeeDAOJpaImpl(EntityManager theEntityManager) {\n\t\tentityManager = theEntityManager;\n\t}",
"@RequestScoped\n @Produces\n public EntityManager produce() {\n // weld\n return getEntityManager();\n }",
"protected FullTextEntityManager getFullTextEntityManager() {\n\t if (ftem == null) {\n\t ftem = Search.getFullTextEntityManager(getEntityManager());\n\t try {\n\t\t\t\t/* Como o banco de dados é resetado a cada vez que\n\t\t\t\t * a aplicação inicializa (banco em memória), é preciso reconstruir\n\t\t\t\t * os índices de busca utilizados pelo hibernate-search.*/\n\t\t\t\tftem.createIndexer().startAndWait();\n\t\t\t} catch (InterruptedException e) {//TODO: tratar exceção\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t }\n\t return ftem;\n\t}",
"javax.management.ObjectName getPersistenceManager();",
"public void setEntityManager(final EntityManager em) {\n this.em = em;\n }",
"DAOClienteJPA(EntityManager entity) {\r\n this.entity = entity;\r\n }",
"@PersistenceContext(unitName = \"persistenceUnit\", type = PersistenceContextType.TRANSACTION)\n public void setEntityManager(EntityManager entityManager) {\n Helper.checkNull(entityManager, \"entityManager\");\n this.entityManager = entityManager;\n }",
"protected WorkToSubjectEntityDAO(EntityManager em) {\n\n this.em = em;\n }",
"public static EntityManagerFactory getEntityManagerFactory()\n\t\t\tthrows PersistenceException, UnsupportedUserAttributeException, NamingException {\n\t\tif (emf == null)\n\t\t\temf = createNewEntityManagerFactory();\n\t\treturn emf;\n\t}",
"@Override\r\n public GenericManager<TraitSalaire, Long> getManager() {\r\n return manager;\r\n }",
"private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }",
"public Object getObject()\n\t{\n\t\treturn transactionManager;\n\t}",
"public EntityBase getEntity() {\n return entity;\n }",
"@Override\n public AppEntity getByManagerId(int managerId) {\n return (AppEntity) appDao.getByManagerId(managerId);\n }",
"private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }",
"private static AdapterManager getAdapterManager() {\r\n return getPersistenceSession().getAdapterManager();\r\n }",
"public IPersistence<T> getPersistence();",
"@Override\n public GenericManager<TraitementCourrier, Long> getManager() {\n return manager;\n }",
"public EmployeeManager getEmployeeManager() {\n\t\tif (employeeManager == null) {\n\t\t\tIEmployeeDAO emplDAO = new EmployeeDAOSqlite(dbHelper);\n\t\t\temployeeManager = new EmployeeManager(emplDAO);\n\t\t\temployeeManager.setManagerHolder(this);\n\t\t}\n\t\treturn employeeManager;\n\t}",
"public void setEm(EntityManager em) {\n\t\tthis.entity = em;\n\t}",
"@Override\n public Entity getEntity() {\n return super.getEntity();\n }",
"public CircuitJpaDAO(EntityManager entityManager) {\n\t\tem = entityManager;\n\t}",
"@Bean(name = \"masterEntityManager\")\n\tpublic LocalContainerEntityManagerFactoryBean entityManagerFactory() {\n\t\tJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();\n\t\tLocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean();\n\t\tem.setDataSource(dataSource());\n\t\tem.setPackagesToScan(\"model\");\n\t\tem.setJpaVendorAdapter(vendorAdapter);\n\t\tem.setJpaProperties(new Properties());\n\t\tem.setPersistenceUnitName(\"master\");\n\t\treturn em;\n\t}",
"public EmpleadoService() {\n super();\n emf = Persistence.createEntityManagerFactory(\"up_h2\");\n empDAO = new EmpleadoDAO(emf);\n }",
"public ExecutionManager getManager() {\n return manager;\n }",
"@Test\n public void testGetEntityManager() {\n System.out.println(\"getEntityManager\");\n DaftarPengguna instance = new DaftarPengguna();\n EntityManager expResult = null;\n EntityManager result = instance.getEntityManager();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public final T getManager() {\n return this.manager;\n }",
"public Manager getManager() {\n return this.manager;\n }",
"public void setEntityManager(AV3DEntityManager entityManager) {\n\t}",
"Manager getManager() {\n return Manager.getInstance();\n }",
"Manager getManager() {\n return Manager.getInstance();\n }",
"Manager getManager() {\n return Manager.getInstance();\n }",
"public PersistenceManagerFactory getPersistenceManagerFactory() {\n return pmf;\n }",
"public interface EntityManager {\r\n public <T> T findById(Class<T> entityClass, Long id);\r\n public <T> Long getNextIdVal(String tableName, String columnIdName);\r\n public <T> Object insert(T entity);\r\n public <T> List<T> findAll(Class<T> entityClass);\r\n public <T> T update(T entity);\r\n public void delete(Object entity);\r\n public <T> List<T> findByParamsClass(Class<T> entityClass, Map<String, Object> params);\r\n}",
"@Override\n @Test(groups = {\"Entity Manager access\"})\n public void testEntityManager00() throws Exception {\n super.testEntityManager00();\n }",
"@Override\r\n public GenericManager<LigneReponseDP, Long> getManager() {\r\n return manager;\r\n }",
"public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }"
] |
[
"0.837513",
"0.8230992",
"0.81390816",
"0.8100898",
"0.80995786",
"0.80995786",
"0.80414844",
"0.80283797",
"0.7965878",
"0.78439754",
"0.7823161",
"0.7775839",
"0.77231276",
"0.7663612",
"0.755097",
"0.755097",
"0.755097",
"0.7542705",
"0.7539924",
"0.7497146",
"0.74951565",
"0.74951565",
"0.74951565",
"0.74951565",
"0.7405974",
"0.73742175",
"0.7330484",
"0.7284026",
"0.7232671",
"0.72131735",
"0.70591766",
"0.70464295",
"0.699239",
"0.6984347",
"0.69309914",
"0.6750544",
"0.6710135",
"0.6668284",
"0.6646331",
"0.64790404",
"0.6411733",
"0.639458",
"0.633359",
"0.63297254",
"0.63196594",
"0.6314677",
"0.6314677",
"0.6314677",
"0.62780005",
"0.6231538",
"0.6210502",
"0.6185802",
"0.6176691",
"0.6124669",
"0.6094157",
"0.60831356",
"0.60584795",
"0.5997192",
"0.5996748",
"0.59290594",
"0.59064513",
"0.58658487",
"0.58658487",
"0.5865566",
"0.5854066",
"0.5850019",
"0.58332896",
"0.58287334",
"0.5825006",
"0.5817453",
"0.5810304",
"0.57821023",
"0.57417655",
"0.5735399",
"0.5734475",
"0.5732868",
"0.57247293",
"0.57210577",
"0.56951016",
"0.56642383",
"0.56561387",
"0.5653444",
"0.565123",
"0.5644312",
"0.5639201",
"0.5639096",
"0.56371033",
"0.56359905",
"0.56169754",
"0.5598978",
"0.5591043",
"0.55888855",
"0.5587014",
"0.5587014",
"0.5587014",
"0.5585737",
"0.55798155",
"0.55514675",
"0.554933",
"0.5544794"
] |
0.8247753
|
1
|
Render the template once directly
|
public static void checkOutput(String expected, Template template, long milliseconds, Map<String, Object> globalVariables, Map<String, Object> variables)
{
String output1 = template.renders(milliseconds, globalVariables, variables);
assertEquals(expected, output1);
// Recreate the template from the dump of the compiled template
Template template2 = Template.loads(template.dumps());
// Check that the templates format the same
assertEquals(template2.toString(), template.toString());
// Check that they have the same output
String output2 = template2.renders(milliseconds, globalVariables, variables);
assertEquals(expected, output2);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void render(){}",
"public void render() {\n\t\t// do nothing... as we should\n\t}",
"@Override\n\tpublic void forceRender() {\n\n\t}",
"@Override\r\n\tpublic void render() {\n\t\t\r\n\t}",
"public void render()\r\n\t{\n\t}",
"private void render() {\n\n StateManager.getState().render();\n }",
"@Override\n public boolean isToBeRendered()\n {\n return true;\n }",
"public void render() {\r\n\r\n }",
"@Override\n public void simpleRender(RenderManager rm) {\n }",
"@Override\n public void simpleRender(RenderManager rm) {\n }",
"@Override\n public void simpleRender(RenderManager rm) {\n }",
"@Override\n public void simpleRender(RenderManager rm) {\n }",
"@Override\n public void simpleRender(RenderManager rm) {\n }",
"@Override\n public void simpleRender(RenderManager rm) {\n }",
"public void render() {\n }",
"@Override\r\n\tpublic void simpleRender(RenderManager rm) {\n\t}",
"@Override\r\n\tpublic void render() {\n\r\n\t}",
"@Override\n\tpublic void render() {\n\t\t\n\t}",
"@Override\n public void render() {\n if (renderInterrupted) {\n log.debug(\"render()\");\n renderInterrupted = false;\n }\n\n }",
"@Override\n\tpublic void render () {\n\n\t}",
"public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}",
"private void render(String templateName, HttpServletResponse response, MustacheFactory mustacheFactory,\n\t\t\tObject context) throws IOException {\n\t\tMustache header = mustacheFactory.compile(templateName);\n\n\t\theader.execute(response.getWriter(), context);\n\t}",
"@Override\n public void render() {\n super.render();\n }",
"@Override\n public void render() {\n super.render();\n }",
"@Override\n\tpublic String render(RenderRequest renderRequest, RenderResponse renderResponse, String template)\n\t\t\tthrows Exception {\n\t\tif(template.equals(TEMPLATE_FULL_CONTENT)) {\n\t\t\trenderRequest.setAttribute(\"sdr_dataset\", _dataset);\n\t\t\t// /html/[PORTLET_PATH]/[VIEW PAGE].jsp\n\t\t\treturn \"/assetPage/dataset\";\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"protected void render() {\n\t\tString accion = Thread.currentThread().getStackTrace()[2].getMethodName();\n\t\trender(accion);\n\t}",
"@Ignore\n @Test\n public void renderTemplate() {\n\n Content html = views.html.index.render(\"Your new application is ready.\");\n assertThat(html.contentType(), is(\"text/html\"));\n assertThat(contentAsString(html), containsString(\"Your new application is ready.\"));\n }",
"@Override\n\tpublic void render () {\n super.render();\n\t}",
"public void refresh() { \r\n FacesContext context = FacesContext.getCurrentInstance(); \r\n Application application = context.getApplication(); \r\n ViewHandler viewHandler = application.getViewHandler(); \r\n UIViewRoot viewRoot = viewHandler.createView(context, context.getViewRoot().getViewId()); \r\n context.setViewRoot(viewRoot); \r\n context.renderResponse(); \r\n }",
"@Override\n public void beforeRender()\n {\n\n }",
"public static void index() {\r\n render();\r\n }",
"@Override\n public void render() { super.render(); }",
"protected void rerender() {\n\t\tthis.layout.render(inventory);\n\t}",
"@Override\n public void prerender() {\n }",
"public void render() {\n renderHud();\n }",
"@Override\n public void setToBeRendered(boolean arg0)\n {\n \n }",
"public void prerender() {\n }",
"public void prerender() {\n }",
"public void render();",
"public cn.bran.japid.template.RenderResult render() {\n\t\ttry {super.layout();} catch (RuntimeException __e) { super.handleException(__e);} // line 0, japidviews/Application/photo/Story.html\n\t\treturn getRenderResult();\n\t}",
"protected void refreshView() {\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tApplication application = context.getApplication();\r\n\t\tViewHandler viewHandler = application.getViewHandler();\r\n\t\tUIViewRoot viewRoot = viewHandler.createView(context, context.getViewRoot().getViewId());\r\n\t\tcontext.setViewRoot(viewRoot);\r\n\t\tcontext.renderResponse();\r\n\t}",
"public static void create() {\r\n render();\r\n }",
"public TemplateHelper() {\r\t\tsuper();\r\t}",
"String renderTemplate(String filename, Map<String, Object> context) {\n if (sEngine == null) {\n // PebbleEngine caches compiled templates by filename, so as long as we keep using the\n // same engine instance, it's okay to call getTemplate(filename) on each render.\n sEngine = new PebbleEngine();\n sEngine.addExtension(new PebbleExtension());\n }\n try {\n StringWriter writer = new StringWriter();\n sEngine.getTemplate(filename).evaluate(writer, context);\n return writer.toString();\n } catch (Exception e) {\n StringWriter writer = new StringWriter();\n e.printStackTrace(new PrintWriter(writer));\n return \"<div style=\\\"font-size: 150%\\\">\" + writer.toString().replace(\"&\", \"&\").replace(\"<\", \"<\").replace(\"\\n\", \"<br>\");\n }\n }",
"private void update(VelocityContext context, String templateName)\n {\n long start = System.currentTimeMillis();\n long merged = 0;\n \n StringWriter sw = new StringWriter();\n try\n {\n final Template template = velocity.getTemplate(templateName, \"UTF-8\");\n template.merge(context, sw);\n merged = System.currentTimeMillis() - start;\n }\n catch (Exception e)\n {\n Utils.logError(\"Error while loading template\", e, true);\n return;\n }\n \n browser.setText(sw.toString());\n long displayed = System.currentTimeMillis() - start - merged;\n \n LoggerFactory.getLogger(DocumentList.class).debug(\n String.format(Locale.ENGLISH, \n \"Velocity [rendering: %.2f, display: %.2f]\",\n merged / 1000.0,\n displayed / 1000.0));\n }",
"@Override\n\tpublic void render() {\n\t\t// only render it when visible is true\n\t\tif (visible == false) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tsuper.render();\n\t\t}\n\t}",
"@RequestMapping(value = ViewNameConstants.TEMPLATE)\n\tpublic void Viewtemplate() {\n\t}",
"protected void render(String template) {\n\t\tString url = \"/WEB-INF/interfaces/\";\n\t\t// si es que es una accion del mismo controlador\n\t\tif (template.indexOf(\"/\") == -1)\n\t\t\turl += getControllerPath() + \"/\" + template + \".jsp\";\n\t\telse // accion de otro controlador\n\t\t\turl += template + \".jsp\";\n\t\tskipRender();\n\t\ttry {\n\t\t\treq.getRequestDispatcher(url).forward(req, res);\n\t\t} catch (ServletException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}",
"protected void preRender()\n {\n // subclass\n }",
"public void render(CliContext ctx);",
"public void startRendering() {\n if (!justRendered) {\n justRendered = true;\n \n if (Flags.wireFrame) p.render_wireFrame();\n else p.render();\n }\n }",
"private void renderView() {\r\n\t\tSystem.out.println(this.currentView.render());\r\n\t}",
"@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}",
"public static void view() {\n\t\tUser user = UserService.getUserByUsername(session.get(\"username\"));\n\t\tUserProfile userprofile = null;\n\n\t\t// check if user object is null\n\t\tif (user != null)\n\t\t\tuserprofile = UserProfileService.getUserProfileByUserId(user.id);\n\n\t\trender(user, userprofile);\n\t}",
"public void renderedInicio() {\r\n sessionProyecto.setRenderedInicio(Boolean.FALSE);\r\n if (sessionProyecto.getEstadoActual().getCodigo().equalsIgnoreCase(EstadoProyectoEnum.INICIO.getTipo())) {\r\n sessionProyecto.setRenderedInicio(Boolean.TRUE);\r\n }\r\n }",
"void dynamicRendering();",
"@Override\r\n\tpublic void index() {\n\t\trender(\"index.jsp\");\r\n\t}",
"@Override\n public void render() {\n GUI.clearScreen();\n if (assetManager.update()) {\n switch (gameState) {\n case MENU:\n GUI.menuLoop();\n break;\n case PAUSE:\n case GAME:\n gameLoop();\n break;\n case LOAD:\n World.load();\n gameState = GameState.GAME;\n break;\n }\n } else {\n GUI.splashScreen(assetManager.getProgress());\n }\n DrawManager.end();\n }",
"@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}",
"@Override\n\tprotected void renderMergedOutputModel(Map<String, Object> model,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\texposeModelAsRequestAttributes(model,request);\n\n\t\t// Determine the path for the request dispatcher.\n\t\tString dispatcherPath = prepareForRendering(request, response);\n\n\t\t// set original view being asked for as a request parameter\n\t\trequest.setAttribute(\"partial\", dispatcherPath.subSequence(14, dispatcherPath.length()));\n\n\t\t// force everything to be template.jsp\n\t\tRequestDispatcher requestDispatcher = request\n\t\t\t\t.getRequestDispatcher(\"/WEB-INF/views/template.jsp\");\n\t\trequestDispatcher.include(request, response);\n\n\t}",
"@Override\r\n\tpublic void beforeRender(float dt) {\n\r\n\t}",
"public String render()\r\n/* 24: */ {\r\n/* 25:51 */ if (!this.init_flag)\r\n/* 26: */ {\r\n/* 27:52 */ this.init_flag = true;\r\n/* 28:53 */ return \"\";\r\n/* 29: */ }\r\n/* 30: */ try\r\n/* 31: */ {\r\n/* 32:56 */ ConnectorResultSet res = this.sql.get_variants(this.request);\r\n/* 33:57 */ return render_set(res);\r\n/* 34: */ }\r\n/* 35: */ catch (ConnectorOperationException e) {}\r\n/* 36:59 */ return \"\";\r\n/* 37: */ }",
"private void render(Element element) {\n main.clear();\n Widget content = createElementWidget(element);\n main.add(content);\n }",
"@Override\r\n\tpublic boolean isHtmlbyTemplate() {\n\t\treturn singleItem || headless?false:freeMarkerSupport.isHtmlbyTemplate();\r\n\t}",
"private String renderBody() {\n return \"\";\n }",
"@Override\r\n public void render(HttpServletRequest request, HttpServletResponse response, Object result) throws Throwable\r\n {\n \r\n }",
"private void doBeforeRenderResponse(final PhaseEvent arg0) {\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\trequestLayout();\n\t\t}",
"protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}",
"@Override\n\tpublic void renderSource() {\n\t\t\n\t}",
"private Template() {\r\n\r\n }",
"@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}",
"private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}",
"public static void login() {\n\t\trender();\n\t}",
"@Override\n\tpublic String render()\n\t{\n\t\tFreemarkerView view = new FreemarkerView(MolgenisForm.class.getPackage().getName().replace(\".\", \"/\")\n\t\t\t\t+ \"/MolgenisForm.ftl\", getModel());\n\t\tview.addParameter(\"content\", layout.render());\n\t\tString result = view.render();\n\t\treturn result;\n\t}",
"public void render(Callable<Object> callable) {\n\t\trenderQueue.enqueue(callable);\n\t}",
"public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}",
"public void render() {\n uiBatch.begin();\n for (int x = 0; x < uiManager.getUIComponents().size();x++) {\n uiManager.getUIComponent(x).render(uiBatch, Assets.patch);\n }\n if (uiManager.dialogue != null) {\n uiManager.dialogue.render(uiBatch, Assets.patch);\n }\n if (!uiManager.notifications.isEmpty()) {\n uiManager.notifications.get(0).render(uiBatch, Assets.patch);\n }\n uiManager.partyMenu.render(uiBatch, Assets.patch);\n uiBatch.end();\n }",
"@Override\r\n\tpublic void render() {\r\n\t\turi = ActionContext.getContextPath() + uri;\r\n\t\ttry {\r\n\t\t\tResponse.getServletResponse().sendRedirect(uri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RenderException(\"Redirect to [\" + uri + \"] error!\", e);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\trequestRender();\n\t}",
"private void doAfterRenderResponse(final PhaseEvent arg0) {\n\t}",
"private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }",
"public static void index() {\n\t\trenderJSON(\"{}\");\n\t}",
"@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}",
"public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}",
"public void onRenderTick() {\n updateLang();\n updateRenderEngine();\n }",
"void render(IViewModel model);",
"@Override\n\tpublic void Render() {\n\t\t\n\t\tSystem.out.println(\"Chocolater Ice Cream\");\n\t\t\n\t}",
"@Override\n\tpublic void render(float delta) {\n\t}",
"protected void onComponentRendered()\n\t{\n\t}",
"private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}",
"protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }",
"@Override\n public void renderStatic(GC gc, ViewPort vp) {\n\n }",
"protected abstract Render render(Param param, int pass);",
"public void Render() {\n\t\tbufferStrat = getBufferStrategy();\n\t\tif (bufferStrat == null) {\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tstylus = bufferStrat.getDrawGraphics();\n\t\t\n\t\tstylus.drawImage(buffer, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\tstylus.dispose();\n\t\tbufferStrat.show();\n\t}",
"@Override\r\n\t\t\tpublic void onApply() {\n\t\t\t\tfinal Template tpl = new Template(getTemplate());\r\n\t\t\t\t\r\n\t\t\t\t// Forge some local data for demonstration\r\n\t\t\t\t// we use a Params object and set some\r\n\t\t\t\t// properties like age and gender on it.\r\n\t\t\t\tParams localData = new Params();\r\n\t\t\t\tlocalData.set(\"age\", 31);\r\n\t\t\t\tlocalData.set(\"gender\", \"Male\");\r\n\t\t\t\tlocalData.set(\"email\", \"[email protected]\");\r\n\t\t\t\tlocalData.set(\"name\", \"Odili Charles Opute\");\r\n\t\t\t\tlocalData.set(\"purchases\", 9350);\r\n\t\t\t\t\r\n\t\t\t\t// We will display the Template in this panel\r\n\t\t\t\tContentPanel panel = new ContentPanel();\t\t\t\t\r\n\t\t\t\tpanel.setWidth(325);\r\n\t\t\t\tpanel.setAutoHeight(true);\r\n\t\t\t\tpanel.setHeaderVisible(false);\r\n\t\t\t\tpanel.setBodyStyle(\"padding:7px\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t// Apply the Template on the data,\r\n\t\t\t\t// then use return HTML as body for\r\n\t\t\t\t// the panel above.\r\n\t\t\t\tString htmlStr = tpl.applyTemplate(localData);\r\n\t\t\t\tpanel.addText(htmlStr);\r\n\t\t\t\t\r\n\t\t\t\t// put it on screen, equivalent to\r\n\t\t\t\t// RootPanel.get().add(panel)\r\n\t\t\t\t\r\n\t\t\t\tGxtCookBk.getAppCenterPanel().add(panel);\r\n\t\t\t\t\r\n\t\t\t\t// Let's deal with data across the wire this time\r\n\t\t\t\t// so we need another panel, just so our code is clean\r\n\t\t\t\tfinal ContentPanel panel_2 = new ContentPanel();\t\t\t\t\r\n\t\t\t\tpanel_2.setWidth(325);\r\n\t\t\t\tpanel_2.setAutoHeight(true);\r\n\t\t\t\tpanel_2.setHeaderVisible(false);\r\n\t\t\t\tpanel_2.setBodyStyle(\"padding:7px\");\r\n\t\t\t\tpanel_2.setStyleAttribute(\"marginTop\", \"10px\");\r\n\t\t\t\t\r\n\t\t\t\t// put it on screen, equivalent to\r\n\t\t\t\t// RootPanel.get().add(panel_2)\r\n\t\t\t\t\r\n\t\t\t\tGxtCookBk.getAppCenterPanel().add(panel_2);\r\n\t\t\t\t\r\n\t\t\t\t// Make RPC call, see appendixes for more info\r\n\t\t\t\tfinal RemoteGatewayAsync rpcService = (RemoteGatewayAsync) GWT.create(RemoteGateway.class);\t\t\r\n\t\t\t\tAsyncCallback<Customer> callback = new AsyncCallback<Customer>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\tInfo.display(\"Error\", \"RPC Error\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(Customer result) {\r\n\t\t\t\t\t\tif(result != null){\t\r\n\t\t\t\t\t\t\t// Just give us the data in a way \r\n\t\t\t\t\t\t\t// we can use it with Templates.\r\n\t\t\t\t\t\t\t// We will be using the Util.getJsObject()\r\n\t\t\t\t\t\t\t// method for that, it expects a ModelData\r\n\t\t\t\t\t\t\t// object which our remote Customer is\r\n\t\t\t\t\t\t\t// exactly not, but can be made to comply\r\n\t\t\t\t\t\t\t// with since it implements BeanModelTag.\r\n\t\t\t\t\t\t\tBeanModel data = BeanModelLookup.get().getFactory(Customer.class).createModel(result);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Apply the Template to the Customer data\r\n\t\t\t\t\t\t\t// and overwrite the body of panel_2 with\r\n\t\t\t\t\t\t\t// the returned HTML.\r\n\t\t\t\t\t\t\ttpl.overwrite(panel_2.getBody().dom, Util.getJsObject(data));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\t// Gimme the Customer with 'id' 3!\r\n\t\t\t\trpcService.getCustomer(3, callback);\r\n\t\t\t}",
"public void refresh() {\n\t\tgetData();\n\t\trender();\n\t}",
"public void render(WorldTile tile) {\n\t\t//check if the region is generated before rendering, don't render if it's not generated\n\t\tAABB area = hiresModelManager.getTileRegion(tile);\n\t\tif (!tile.getWorld().isAreaGenerated(area)) return;\n\n\t\tHiresModel hiresModel = hiresModelManager.render(tile);\n\t\tlowresModelManager.render(hiresModel);\n\t}",
"@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"@Override\n\tpublic void render(float delta) {\n\n\t}"
] |
[
"0.6713974",
"0.6445567",
"0.6207917",
"0.6166699",
"0.6115438",
"0.6070551",
"0.6061616",
"0.6055267",
"0.6015568",
"0.6015568",
"0.6015568",
"0.6015568",
"0.6015568",
"0.6015568",
"0.6003819",
"0.5962317",
"0.59472007",
"0.593744",
"0.5914997",
"0.59076583",
"0.587827",
"0.5865124",
"0.58145654",
"0.58145654",
"0.57917255",
"0.57782185",
"0.57365966",
"0.5714508",
"0.5708232",
"0.5696698",
"0.56751895",
"0.56667876",
"0.5663818",
"0.5662005",
"0.5647165",
"0.5645913",
"0.5644671",
"0.5644671",
"0.56424993",
"0.5610821",
"0.5600629",
"0.5576156",
"0.5564836",
"0.55412996",
"0.5540915",
"0.55392635",
"0.5532019",
"0.55317587",
"0.55017394",
"0.55000985",
"0.54770803",
"0.54356664",
"0.54278576",
"0.54223955",
"0.5400177",
"0.5399463",
"0.5374521",
"0.53693616",
"0.5328337",
"0.5324414",
"0.5285963",
"0.5281099",
"0.5264458",
"0.5264448",
"0.52579176",
"0.52553785",
"0.52479976",
"0.5244264",
"0.52227324",
"0.5212941",
"0.5194593",
"0.5194353",
"0.5163971",
"0.513784",
"0.51325345",
"0.512093",
"0.5094023",
"0.50843287",
"0.5081155",
"0.50751495",
"0.5062156",
"0.505499",
"0.50488424",
"0.5043984",
"0.5041326",
"0.5028223",
"0.5027485",
"0.5022308",
"0.50156915",
"0.50065064",
"0.5002244",
"0.5002029",
"0.49993652",
"0.49962005",
"0.49919996",
"0.49851882",
"0.49784362",
"0.4969262",
"0.49637634",
"0.4956258",
"0.4955895"
] |
0.0
|
-1
|
Execute the template once by directly compiling and calling it
|
private static void checkResult(Object expected, Template template, Map<String, Object> variables)
{
Object output1 = template.call(variables);
assertEquals(expected, output1);
// Recreate the template from the dump of the compiled template
Template template2 = Template.loads(template.dumps());
// Check that the templates format the same
assertEquals(template.toString(), template2.toString());
// Check that they have the same output
Object output2 = template2.call(variables);
assertEquals(expected, output2);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void compile() /*-{\r\n\t\tvar template = [email protected]::getJsObj()();\r\n\t\ttemplate.compile();\r\n\t}-*/;",
"@Override\n\tpublic void compile() {\n\t\t\n\t}",
"public void compile(Template t, TemplateModel model, XmlResult out) throws TemplateCompileException;",
"Expression compileTemplate(Expression exp){\r\n\t\tif (exp.isVariable()){\r\n\t\t\texp = compile(exp.getVariable());\r\n\t\t}\r\n\t\telse if (isMeta(exp)){\r\n\t\t\t// variables of meta functions are compiled as kg:pprint()\r\n\t\t\t// variable of xsd:string() is not\r\n\t\t\texp = compileTemplateMeta((Term) exp);\r\n\t\t}\r\n\t\treturn exp;\r\n\t}",
"@Override\n public Integer call() {\n if (properties != null && !properties.isEmpty()) {\n System.getProperties().putAll(properties);\n }\n\n final List<File> templateDirectories = getTemplateDirectories(baseDir);\n\n final Settings settings = Settings.builder()\n .setArgs(args)\n .setTemplateDirectories(templateDirectories)\n .setTemplateName(template)\n .setSourceEncoding(sourceEncoding)\n .setOutputEncoding(outputEncoding)\n .setOutputFile(outputFile)\n .setInclude(include)\n .setLocale(locale)\n .isReadFromStdin(readFromStdin)\n .isEnvironmentExposed(isEnvironmentExposed)\n .setSources(sources != null ? sources : new ArrayList<>())\n .setProperties(properties != null ? properties : new HashMap<>())\n .setWriter(writer(outputFile, outputEncoding))\n .build();\n\n try {\n return new FreeMarkerTask(settings).call();\n } finally {\n if (settings.hasOutputFile()) {\n close(settings.getWriter());\n }\n }\n }",
"public void compile(Template t, TemplateModel model, OutputStream out) throws TemplateCompileException;",
"protected void onCompileInternal() {\r\n\t}",
"void mo25968e(TemplateInfo templateInfo);",
"public T execute() {\n return GraalCompiler.compile(this);\n }",
"void mo25969f(TemplateInfo templateInfo);",
"Term compileTemplateMeta(Term exp){\t\t\r\n\t\tTerm t;\r\n\t\tif (exp.isFunction()){\r\n\t\t\tt = Term.function(exp.getName());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tt = Term.create(exp.getName());\r\n\t\t}\r\n\t\tboolean isIF = isIF(exp);\r\n\t\tint count = 0;\r\n\t\t\r\n\t\tfor (Expression ee : exp.getArgs()){\r\n\t\t\tif (count == 0 && isIF){\r\n\t\t\t\t// not compile the test of if(test, then, else)\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tee = compileTemplate(ee);\r\n\t\t\t}\r\n\t\t\tcount++;\r\n\t\t\tt.add(ee);\r\n\t\t}\r\n\t\t\r\n t.setArg(exp.getArg());\r\n\t\tt.setModality(exp.getModality());\r\n\t\tt.setDistinct(exp.isDistinct());\r\n\t\treturn t;\r\n\t\t\r\n\t}",
"public void compileScript( TemplateCompilerContext context )\r\n\t{\r\n\t\t// Compile to bytes\r\n\t\tCompilationUnit unit = new CompilationUnit();\r\n\t\tunit.addSource( context.getPath(), context.getScript().toString() );\r\n\t\tunit.compile( Phases.CLASS_GENERATION );\r\n\r\n\t\t// Results\r\n\t\t@SuppressWarnings( \"unchecked\" )\r\n\t\tList< GroovyClass > classes = unit.getClasses();\r\n\t\tAssert.isTrue( classes.size() > 0, \"Expecting 1 or more classes\" );\r\n\r\n\t\tClassLoader parent = Thread.currentThread().getContextClassLoader();\r\n\t\tif( parent == null )\r\n\t\t\tparent = GroovyTemplateCompiler.class.getClassLoader();\r\n\r\n\t\t// Define the class\r\n\t\t// TODO Configurable class loader\r\n\t\tDefiningClassLoader classLoader = new DefiningClassLoader( parent );\r\n\t\tClass< ? > first = null;\r\n\t\tfor( GroovyClass cls : classes )\r\n\t\t{\r\n\t\t\tClass< ? > clas = classLoader.defineClass( cls.getName(), cls.getBytes() );\r\n\t\t\tif( first == null )\r\n\t\t\t\tfirst = clas; // TODO Are we sure that the first one is always the right one?\r\n\t\t}\r\n\r\n\t\t// Instantiate the first\r\n\t\tGroovyObject object = (GroovyObject)Util.newInstance( first );\r\n\t\tClosure closure = (Closure)object.invokeMethod( \"getClosure\", null );\r\n\r\n\t\t// The old way:\r\n//\t\tClass< GroovyObject > groovyClass = new GroovyClassLoader().parseClass( new GroovyCodeSource( getSource(), getName(), \"x\" ) );\r\n\r\n\t\tcontext.setTemplate( new GroovyTemplate( closure ) );\r\n\t}",
"public void compile(Template t, TemplateModel model, Writer out) throws TemplateCompileException;",
"public void run()\n {\n mkdStack = translateMacroStack(mkdStack);\n //translate mkd to html\n translateMkdToHtml();\n //send html string to global variable\n Compiler.htmlString = htmlStackToString();\n }",
"public void generateScript( TemplateCompilerContext context )\r\n\t{\r\n\t\t// TODO This may give conflicts when more than one TemplateLoader is used. This must be the complete path.\r\n\t\tMatcher matcher = PATH_PATTERN.matcher( context.getPath() );\r\n\t\tAssert.isTrue( matcher.matches() );\r\n\t\tString path = matcher.group( 1 );\r\n\t\tString name = matcher.group( 2 );\r\n\r\n\t\tString pkg = TEMPLATE_PKG;\r\n\t\tif( path != null )\r\n\t\t\tpkg += \".\" + path.replaceAll( \"/+\", \".\" );\r\n\r\n\t\tStringBuilder buffer = new StringBuilder( 1024 );\r\n\r\n\t\tbuffer.append( \"package \" ).append( pkg ).append( \";\" );\r\n\t\tif( context.getImports() != null )\r\n\t\t\tfor( String imprt : context.getImports() )\r\n\t\t\t\tbuffer.append( \"import \" ).append( imprt ).append( ';' );\r\n\t\tbuffer.append( \"class \" ).append( name.replaceAll( \"[\\\\.-]\", \"_\" ) );\r\n\t\tbuffer.append( \"{Closure getClosure(){return{out->\" );\r\n\r\n\t\tboolean text = false;\r\n\t\tfor( ParseEvent event : context.getEvents() )\r\n\t\t\tswitch( event.getEvent() )\r\n\t\t\t{\r\n\t\t\t\tcase TEXT:\r\n\t\t\t\tcase NEWLINE:\r\n\t\t\t\tcase WHITESPACE:\r\n\t\t\t\t\tif( !text )\r\n\t\t\t\t\t\tbuffer.append( \"out.write(\\\"\\\"\\\"\" );\r\n\t\t\t\t\ttext = true;\r\n\t\t\t\t\twriteGroovyString( buffer, event.getData() );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase SCRIPT:\r\n\t\t\t\t\tif( text )\r\n\t\t\t\t\t\tbuffer.append( \"\\\"\\\"\\\");\" );\r\n\t\t\t\t\ttext = false;\r\n\t\t\t\t\tbuffer.append( event.getData() ).append( ';' );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase EXPRESSION:\r\n\t\t\t\t\tif( text )\r\n\t\t\t\t\t\tbuffer.append( \"\\\"\\\"\\\");\" );\r\n\t\t\t\t\ttext = false;\r\n\t\t\t\t\tbuffer.append( \"out.write(\" ).append( event.getData() ).append( \");\" );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase EXPRESSION2:\r\n\t\t\t\t\tif( !text )\r\n\t\t\t\t\t\tbuffer.append( \"out.write(\\\"\\\"\\\"\" );\r\n\t\t\t\t\ttext = true;\r\n\t\t\t\t\tbuffer.append( \"${\" ).append( event.getData() ).append( '}' ); // FIXME Need to escape \"\"\"\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase DIRECTIVE:\r\n\t\t\t\tcase COMMENT:\r\n\t\t\t\t\tif( event.getData().length() == 0 )\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tif( text )\r\n\t\t\t\t\t\tbuffer.append( \"\\\"\\\"\\\");\" );\r\n\t\t\t\t\ttext = false;\r\n\t\t\t\t\tbuffer.append( event.getData() );\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase EOF:\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tAssert.fail( \"Unexpected event \" + event.getEvent() );\r\n\t\t\t}\r\n\r\n\t\tif( text )\r\n\t\t\tbuffer.append( \"\\\"\\\"\\\");\" );\r\n\t\tbuffer.append( \"}}}\" );\r\n\r\n\t\tcontext.setScript( buffer );\r\n\t}",
"@Override\n protected void doBuildTemplate(PipelineData data, Context context)\n \t\tthrows Exception\n {\n \tcontext.put(\"success\", \"Congratulations, it worked!\");\n }",
"public abstract void compile();",
"private void handleAutoCompile() throws MojoExecutionException {\n boolean compileNeeded = true;\n boolean prepareNeeded = true;\n for (String goal : session.getGoals()) {\n if (goal.endsWith(\"quarkus:prepare\")) {\n prepareNeeded = false;\n }\n\n if (POST_COMPILE_PHASES.contains(goal)) {\n compileNeeded = false;\n break;\n }\n if (goal.endsWith(\"quarkus:dev\")) {\n break;\n }\n }\n\n //if the user did not compile we run it for them\n if (compileNeeded) {\n if (prepareNeeded) {\n triggerPrepare();\n }\n triggerCompile();\n }\n }",
"public StoExTemplateCompletionProcessor() {\r\n // TODO Auto-generated constructor stub\r\n }",
"default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }",
"Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfor (Expression exp : template){ \r\n\t\t\t\t\texp = compileTemplate(exp);\r\n\t\t\t\t\tt.add(exp); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn t;\r\n\t}",
"public ResolvedTemplate(Template template){\n\t\tthis.template = template;\n\t\tthis.postParseReplacement = \"\";\n\t\tcheckPreParseReplacement();\n\t}",
"public TemplateHelper() {\r\t\tsuper();\r\t}",
"private Template() {\r\n\r\n }",
"public abstract void mo32008e(TemplateInfo templateInfo);",
"static void freemarkerDo(Map datamodel, String template) throws Exception\n\t{\n\t\tConfiguration cfg = new Configuration();\n\t\tcfg.setDirectoryForTemplateLoading(new File(dirForTemplateLoading));\n\t\tTemplate tpl = cfg.getTemplate(template);\n\t\tOutputStreamWriter output = new OutputStreamWriter(System.out);\n\t\t/*try {\n\t\t BufferedWriter output = new BufferedWriter(new FileWriter(\"outputFile01\"));\n\t\t\ttpl.process(datamodel, output);\n\t\t} catch (IOException e) {\n\t\t}*/\n\n\t\ttpl.process(datamodel, output);\n\t}",
"public void run() {\r\n\r\n // Load the templates from the templates directory inside the ireport module...\r\n File templatesDirectory = new File(MainFrame.IREPORT_TMP_TEMPLATE_DIR);\r\n if (templatesDirectory != null && templatesDirectory.exists())\r\n {\r\n loadTemplatesFromFile(templatesDirectory);\r\n }\r\n\r\n // Load all the templates from the templates directories (is set...)\r\n String pathsString = MainFrame.IREPORT_TMP_TEMPLATE_DIR; //LIMAO :..\r\n\r\n // All the paths are separated by an end line...\r\n if (pathsString.length() > 0)\r\n {\r\n String[] paths = pathsString.split(\"\\\\n\");\r\n for (int i=0; i<paths.length; ++i)\r\n {\r\n File f = new File(paths[i]);\r\n loadTemplatesFromFile(f);\r\n }\r\n }\r\n\r\n\r\n if (((DefaultListModel)jList1.getModel()).getSize() > 0)\r\n {\r\n Mutex.EVENT.readAccess(new Runnable() {\r\n\r\n public void run() {\r\n jList1.setSelectedIndex(0);\r\n }\r\n });\r\n }\r\n\r\n }",
"public void execute() {\n int loop = 0;\n\n while (true) {\n List<PatternItem> pattern;\n List<TemplItem> template;\n\n if (loop % 1000 == 0) {\n System.out.println(\"Loop \" + loop);\n System.out.println(\" rna: \" + rna.getLength());\n }\n\n long start = System.currentTimeMillis();\n pattern = pattern();\n System.out.println(\"pattern time: \" + (System.currentTimeMillis() - start) / 1000.0);\n start = System.currentTimeMillis();\n template = template();\n System.out.println(\"template time: \" + (System.currentTimeMillis() - start) / 1000.0);\n\n System.out.println(\"pattern: \" + patternToString(pattern));\n System.out.println(\"template: \" + templateToString(template));\n\n matchreplace(pattern, template);\n\n loop += 1;\n }\n }",
"public void finish(TemplateView view) {\n for (CalleeInfo callee : callees) {\n Callee result = new Callee\n (\n callee.info.getLine(), callee.name, \n unescape(unit.read(callee.info)), callee.isTemplate\n );\n \n view.addCallee(result);\n }\n \n // clean the source and then unescape previously escaped codes\n cleanSource();\n \n // set the resulting buffer as the source code\n view.setSourceCode(unescape(buffer.toString()));\n }",
"@Test\n public void testEmptyTemplate() {\n util.fillTemplate(\"test.template.empty\", \"no_arg\", null);\n }",
"private void processTemplate(VelocityEngine velocityEngine, String template,\n String outputName, Context context)\n throws MojoExecutionException\n {\n File outputPath = new File(outputDirectory, outputName);\n\n Template velocityTemplate = velocityEngine.getTemplate(template);\n FileWriter fileWriter = null;\n try\n {\n fileWriter = new FileWriter(outputPath);\n velocityTemplate.merge(context, fileWriter);\n }\n catch (IOException e)\n {\n throw new MojoExecutionException(String.format(\n \"Error creating file '%s'\", outputPath.getAbsolutePath()));\n }\n finally\n {\n if (fileWriter != null)\n {\n try\n {\n fileWriter.close();\n }\n catch (IOException e)\n {\n getLog().warn(e);\n }\n }\n }\n }",
"protected void checkCompiled() {\r\n\t\tif (!isCompiled()) {\r\n\t\t\tlogger.debug(\"JdbcUpdate not compiled before execution - invoking compile\");\r\n\t\t\tcompile();\r\n\t\t}\r\n\t}",
"public interface TemplateCompiler {\r\n \r\n /**\r\n * Compiles template into specified outputStream.\r\n * \r\n * @param t\r\n * @param context\r\n * @param out\r\n * @throws XMLStreamException\r\n */\r\n public void compile(Template t, TemplateModel model, OutputStream out) throws TemplateCompileException;\r\n\r\n /**\r\n * Compiles template into specified reader.\r\n * Compile method which takes OutputStream is preferrable to this one.\r\n * \r\n * @param t\r\n * @param context\r\n * @param out\r\n * @throws XMLStreamException\r\n */\r\n public void compile(Template t, TemplateModel model, Writer out) throws TemplateCompileException;\r\n\r\n /**\r\n * Compiles template into specified xml Result.\r\n * \r\n * @param t\r\n * @param context\r\n * @param out\r\n * @throws XMLStreamException\r\n */\r\n public void compile(Template t, TemplateModel model, XmlResult out) throws TemplateCompileException;\r\n \r\n}",
"public void compileStarted() { }",
"public void compileStarted() { }",
"void compileDo() {\n tagBracketPrinter(DO_TAG, OPEN_TAG_BRACKET);\n try {\n compileDoHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(DO_TAG, CLOSE_TAG_BRACKET);\n }",
"public synchronized void generate () {\n\t\tgenerate( () -> {\n\t\t});\n\t}",
"public abstract void recompileRun(int opcode);",
"public static void generateCode()\n {\n \n }",
"SiteWriterTemplate finishBunch() throws Exception;",
"protected void execute() {\n \t// literally still do nothing\n }",
"private static void generateHECodeFromTemplate(ParsingResult parsingResult, String targetFile, String serviceName, String tomcatDir) {\r\n\t\tList<String> variables = parsingResult.getVariablesList();\r\n \tList<String> functionCodeLines = parsingResult.getGeneratedCode();\r\n \tMap<String, String> constants = parsingResult.getConstantsList();\r\n \tString functionCode = String.join(\"\\n\", functionCodeLines);\r\n\t\t\r\n\t\tClassLoader loader = ServiceGenerator.class.getClassLoader();\r\n\t\tHELibPredictor predictor = (HELibPredictor) parsingResult.getPredictor();\r\n\t\tURL codeTemplateUrl = loader.getResource(Constants.HE_SERVICE_TEMPLATE_FOLDER + Constants.HE_SERVICE_TEMPLATE_FILE_NAME);\r\n\r\n\t\t\r\n\t\tSTGroup impl = new STGroupFile(codeTemplateUrl, \"UTF-8\", '$', '$');\r\n\t\tST st = impl.getInstanceOf(\"service\");\r\n\t\tst.add(\"variables\", variables);\r\n\t\tst.add(\"functionCode\", functionCode);\r\n\t\tst.add(\"constantsMap\", constants);\r\n\t\tst.add(\"levelThreshold\", predictor.getLevelThreshold());\r\n\t\t\r\n\t\t/*\r\n\t\t * The key files are stored at a central place available for all services because they are quite big\r\n\t\t * */\r\n\t\t//String pathToContextFile = Utils.appendTrailingSlash(Constants.CRYPTO_GLBOAL_FOLDER);\r\n\t\t//String pathToPubKeyFile = Utils.appendTrailingSlash(Constants.CRYPTO_GLBOAL_FOLDER);\r\n\t\tString pathToContextFile = \"/app/crypto/\";//\"/mnt/hgfs/Workspace/cppPlayground/he_context_creator/\";\r\n\t\tString pathToPubKeyFile = \"/app/crypto/\"; //\"/mnt/hgfs/Workspace/cppPlayground/he_context_creator/\";\r\n\t\t\r\n\t\tif(predictor.needsBootstrapping()) {\r\n\t\t\tpathToPubKeyFile += Constants.CRYPTO_BOOTSTRAPPING_PUBLIC_KEY_FILE_NAME;\r\n\t\t\tpathToContextFile += Constants.CRYPTO_BOOTSTRAPPING_CONTEXT_FILE_NAME;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tpathToPubKeyFile += Constants.CRYPTO_PUBLIC_KEY_FILE_NAME;\r\n\t\t\tpathToContextFile += Constants.CRYPTO_CONTEXT_FILE_NAME;\r\n\t\t}\r\n\t\t \t\t\r\n\t\tst.add(\"path_to_context_file\", pathToContextFile);\r\n\t\tst.add(\"path_to_public_key\", pathToPubKeyFile);\r\n\r\n\t\t\r\n\t\tString result = st.render();\r\n\t\t\r\n\t\tUtils.writeToFile(result, targetFile);\r\n\t}",
"String template();",
"public void compile() {\n\t\tdouble zn = params.getZn();\n\t\tdouble zf = params.getZf();\n\t\tdouble sw = params.getSw();\n\t\tdouble sh = params.getSh();\n\n\t\tdouble d[][] = { { 2 * zn / sw, 0, 0, 0 }, { 0, 2 * zn / sh, 0, 0 },\n\t\t\t\t{ 0, 0, zf / (zf - zn), -zn * zf / (zf - zn) }, { 0, 0, 1, 0 } };\n\t\tTransformation proj = new Transformation(d);\n\t\tmk = proj.mult(VCS);\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}",
"protected Compiler() {\r\n\t\ttempTable = new TempTable();\r\n\t\toriginalTextLength = 0;\r\n\t\tthis.cpt = null;\r\n\t}",
"void compileSubroutine() {\n tagBracketPrinter(SUB_TAG, OPEN_TAG_BRACKET);\n try {\n compileSubroutineHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(SUB_TAG, CLOSE_TAG_BRACKET);\n\n }",
"public ClassTemplate() {\n\t}",
"public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJarFiles.isEmpty());\n \n if (engine == null) {\n throw new BlazeException(\"Unable to find script engine for file extension \" + scriptExtension + \". Maybe bad file extension or missing dependency?\");\n }\n\n log.debug(\"Using script engine {}\", engine.getClass().getCanonicalName());\n \n if (!engine.isInitialized()) {\n engine.init(context);\n }\n \n script = engine.compile(context);\n \n log.info(\"Compiled script in {} ms\", engineTimer.stop().millis());\n }",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"protected void compileInternal() {\r\n\r\n\t\ttableMetaDataContext.processMetaData(getJdbcTemplate().getDataSource());\r\n\t\treconcileUpdatingColumns();\r\n\r\n\t\tupdateString = createUpdateString();\r\n\r\n\t\tList<String> columns = new ArrayList<String>();\r\n\t\tcolumns.addAll(reconciledUpdatingColumns);\r\n\t\tcolumns.addAll(restrictingColumns.keySet());\r\n\r\n\t\tcolumnTypes = tableMetaDataContext.createColumnTypes(columns);\r\n\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tlogger.debug(\"Compiled JdbcUpdate. Update string is [\" + getUpdateString() + \"]\");\r\n\t\t}\r\n\r\n\t\tonCompileInternal();\r\n\t}",
"public void run() throws Exception {\n\t\tJavaCompiler compiler = ToolProvider.getSystemJavaCompiler();\n\t\tStandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);\n\t\tPath tempFolder = Files.createTempDirectory(\"gwt-jackson-apt-tmp\", new FileAttribute[0]);\n\t\tfileManager.setLocation(StandardLocation.CLASS_OUTPUT, Arrays.asList(tempFolder.toFile()));\n\t\tfileManager.setLocation(StandardLocation.SOURCE_OUTPUT, Arrays.asList(tempFolder.toFile()));\n\t\tCompilationTask task = compiler.getTask(\n\t\t\t\tnew PrintWriter(System.out), \n\t\t\t\tfileManager, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\tfileManager.getJavaFileObjects(\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicTest.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicBaseInterface.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicBaseClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicChildClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicChildClass2.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SecondPolymorphicBaseClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SecondPolymorphicChildClass.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/SimpleGenericBeanObject.java\"),\n\t\t\t\t\t\tnew File(\"src/test/java/org/dominokit/jacksonapt/processor/PolymorphicGenericClass.java\")));\n\n\n\t\ttask.setProcessors(Arrays.asList(new ObjectMapperProcessor()));\n\t\ttask.call();\n\t}",
"private void render(String templateName, HttpServletResponse response, MustacheFactory mustacheFactory,\n\t\t\tObject context) throws IOException {\n\t\tMustache header = mustacheFactory.compile(templateName);\n\n\t\theader.execute(response.getWriter(), context);\n\t}",
"protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }",
"private void compile() throws QueryException, MappingException {\n \t\tLOG.trace( \"Compiling query\" );\n \t\ttry {\n \t\t\tParserHelper.parse( new PreprocessingParser( tokenReplacements ),\n \t\t\t\t\tqueryString,\n \t\t\t\t\tParserHelper.HQL_SEPARATORS,\n \t\t\t\t\tthis );\n \t\t\trenderSQL();\n \t\t}\n \t\tcatch ( QueryException qe ) {\n \t\t\tqe.setQueryString( queryString );\n \t\t\tthrow qe;\n \t\t}\n \t\tcatch ( MappingException me ) {\n \t\t\tthrow me;\n \t\t}\n \t\tcatch ( Exception e ) {\n \t\t\tLOG.debug( \"Unexpected query compilation problem\", e );\n \t\t\te.printStackTrace();\n \t\t\tQueryException qe = new QueryException( \"Incorrect query syntax\", e );\n \t\t\tqe.setQueryString( queryString );\n \t\t\tthrow qe;\n \t\t}\n \n \t\tpostInstantiate();\n \n \t\tcompiled = true;\n \n \t}",
"private void update(VelocityContext context, String templateName)\n {\n long start = System.currentTimeMillis();\n long merged = 0;\n \n StringWriter sw = new StringWriter();\n try\n {\n final Template template = velocity.getTemplate(templateName, \"UTF-8\");\n template.merge(context, sw);\n merged = System.currentTimeMillis() - start;\n }\n catch (Exception e)\n {\n Utils.logError(\"Error while loading template\", e, true);\n return;\n }\n \n browser.setText(sw.toString());\n long displayed = System.currentTimeMillis() - start - merged;\n \n LoggerFactory.getLogger(DocumentList.class).debug(\n String.format(Locale.ENGLISH, \n \"Velocity [rendering: %.2f, display: %.2f]\",\n merged / 1000.0,\n displayed / 1000.0));\n }",
"public void generate() {\n\t}",
"public void execute() throws MojoExecutionException {\n CodeGeneratorLoggerFactory.setLogger(getLog());\n\n // iff baseFolder is null or empty, reset it to the default value\n baseFolder = StringUtils.defaultIfEmpty(baseFolder, \"GUIData\");\n\n // create the helper with our config\n CodeGeneratorHelper helper = new CodeGeneratorHelper(toCodeGeneratorConfig());\n\n if (CodeGeneratorLoggerFactory.getLogger().isDebugEnabled()) {\n helper.displayProjectInformation();\n }\n\n // register all custom element classes\n helper.registerCustomElements();\n\n // create the generated page details file\n helper.createSeLionPageDetailsFile();\n\n // process the files.\n helper.processFiles();\n }",
"public TrexTemplateBuilder template() {\r\n\t\treturn new TrexTemplateBuilder(new TrexConfiguration(interpreter, parser, additionalModifications));\r\n\t}",
"public void run() {\n runOneColumn( tmeta1_ );\n runSomeColumns( tmeta2_ );\n runJustMeta( tmeta3_ );\n }",
"public static void main(String[] args) {\n TemplateController controller = new TemplateController();\n controller.run();\n }",
"@RequestMapping(value = \"/intro-groovy\")\n\tpublic String test() {\n\t\tfoo.execute();\n\t\tt.add(System.currentTimeMillis());\n\t\tSystem.out.println(foo.executew(t));\n\t\t//System.currentTimeMillis();\n\t\treturn \"intro/about-me\";\n\t}",
"@Override\r\n\tpublic void compile(Player p) {\n\r\n\t}",
"@Override\n public void Execute() {\n\n }",
"protected void execute() {\n\t\t\n\t}",
"public synchronized final void compile() throws InvalidDataAccessApiUsageException {\r\n\t\tif (!isCompiled()) {\r\n\t\t\tif (getTableName() == null) {\r\n\t\t\t\tthrow new InvalidDataAccessApiUsageException(\"Table name is required\");\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\tthis.jdbcTemplate.afterPropertiesSet();\r\n\t\t\t}\r\n\t\t\tcatch (IllegalArgumentException ex) {\r\n\t\t\t\tthrow new InvalidDataAccessApiUsageException(ex.getMessage());\r\n\t\t\t}\r\n\r\n\t\t\tcompileInternal();\r\n\t\t\tthis.compiled = true;\r\n\r\n\t\t\tif (logger.isDebugEnabled()) {\r\n\t\t\t\tlogger.debug(\"JdbcUpdate for table [\" + getTableName() + \"] compiled\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void execute() {\n\t}",
"public void doBuildTemplate( RunData data, Context context )\n {\n try\n {\n\t\t\tParameterParser pp=data.getParameters();\n String perm=pp.getString(\"perm\");\n context.put(\"perm\",perm);\n String DB_subject=pp.getString(\"DB_subject\",\"\");\n String Username=data.getUser().getName();\n context.put(\"UserName\",Username);\n\t\t\tcontext.put(\"tdcolor\",pp.getString(\"count\",\"\"));\n /**\n * Retrive the UserId from Turbine_User table\n * @see UserUtil\n */\n\n int user_id=UserUtil.getUID(Username);\n String group=(String)data.getUser().getTemp(\"course_id\");\n context.put(\"course_id\",group);\n int group_id=GroupUtil.getGID(group);\n String gid=Integer.toString(group_id);\n String uid=Integer.toString(user_id);\n context.put(\"group\",gid);\n context.put(\"userid\",uid);\n\n\n /**\n * Select all the messagesid according to the ReceiverId\n * from the Db_Receive table\n */\n\n\n LinkedList li1=new LinkedList();\n LinkedList Reli2=new LinkedList();\n LinkedList temp=new LinkedList();\n LinkedList li=new LinkedList();\n LinkedList li3=new LinkedList();\n\n\n\n String mode=data.getParameters().getString(\"mode\");\n context.put(\"mode\",mode);\n\t\t\tCriteria crit=new Criteria();\n List v=null;\n\n\n if(mode.equals(\"All\"))\n {\n crit.add(DbReceivePeer.RECEIVER_ID,user_id);\n crit.add(DbReceivePeer.GROUP_ID,group_id);\n v=DbReceivePeer.doSelect(crit);\n }\n else\n {\n int readflg=0;\n crit.add(DbReceivePeer.RECEIVER_ID,user_id);\n crit.add(DbReceivePeer.GROUP_ID,group_id);\n crit.add(DbReceivePeer.READ_FLAG,readflg);\n v=DbReceivePeer.doSelect(crit);\n }\n\n\n /**\n * Below code just converts the List 'v' into Vector 'entry'\n */\n\n\n String storestring[]=new String[10000];\n Object new1=new Object();\n int k=0;\n for(int n=0;n<v.size();n++)\n {\n DbReceive element=(DbReceive)(v.get(n));\n String m_id=Integer.toString(element.getMsgId());\n li3.add(m_id);\n new1=li3.get(n);\n storestring[n]=(String)new1;\n k++;\n }\n for(int n=0;n<k;n++)\n\t\t\t{\n for(int n1=n+1;n1<k;n1++)\n {\n if(storestring[n1].compareTo(storestring[n])<0)\n {\n String t=storestring[n];\n storestring[n]=storestring[n1];\n storestring[n1]=t;\n }\n }\n }\n for(int n=0;n<v.size();n++)\n {\n\n Criteria crit1=new Criteria();\n crit1.add(DbSendPeer.MSG_ID,storestring[n]);\n List u=DbSendPeer.doSelect(crit1);\n for(int n1=0;n1<u.size();n1++)\n { // for2\n DbSend element1=(DbSend)(u.get(n1));\n String msgid=Integer.toString(element1.getReplyId());\n Reli2.add(msgid);\n li1.add(storestring[n]);\n } // for\n }\n\n int space=0;\n Vector spacevector=new Vector();\n Object tem=new Object();\n int id=0;\n while(Reli2.size()!=0)\n {\n int i=0;\n tem=li1.get(i);\n li.add(tem);\n temp.add(tem);\n Reli2.remove(i);\n li1.remove(i);\n\t\t\t\tspacevector.add(space);\n while(temp.size()!=0)\n {\n if(Reli2.contains(tem))\n { id=Reli2.indexOf(tem);\n tem=li1.get(id);\n li.add(tem);\n temp.add(tem);\n Reli2.remove(id);\n li1.remove(id);\n space=space+1;\n spacevector.add(space);\n }\n else\n {\n if(space!=0)\n space=space-1;\n id=temp.indexOf(tem);\n temp.remove(id);\n if(temp.size()!=0)\n {\n id=id-1;\n tem=temp.get(id);\n }\n }\n } //while\n } // while\n\t\t\t\n context.put(\"spacevector\",spacevector);\n Vector entry=new Vector();\n for(int n2=0;n2<li.size();n2++)\n {\n Object val1=new Object();\n val1=li.get(n2);\n String str3=(String)val1;\n\t\t\t\t//Vector entry=new Vector();\n \tfor(int count=0;count<v.size();count++)\n \t{//for1\n DbReceive element=(DbReceive)(v.get(count));\n String m_id=Integer.toString(element.getMsgId());\n if(str3.equals(m_id))\n {\n int msg_id=Integer.parseInt(m_id);\n int read_flag=(element.getReadFlag());\n String read_flag1=Integer.toString(read_flag);\n\n /**\n * Select all the messages according to the MessageId\n * from the Db_Send table\n */\n\n Criteria crit1=new Criteria();\n crit1.add(DbSendPeer.MSG_ID,msg_id);\n List u=DbSendPeer.doSelect(crit1);\n for(int count1=0;count1<u.size();count1++)\n {//for2\n\n DbSend element1=(DbSend)(u.get(count1));\n String msgid=Integer.toString(element1.getMsgId());\n String message_subject=(element1.getMsgSubject());\n int sender_userid=(element1.getUserId());\n String permit=Integer.toString(element1.getPermission());\n String sender_name=UserUtil.getLoginName(sender_userid);\n context.put(\"msgid\",msgid);\n context.put(\"contentTopic\",message_subject);\n String sender=UserUtil.getLoginName(sender_userid);\n context.put(\"sender\",sender);\n Date dat=(element1.getPostTime());\n String posttime=dat.toString();\n int ExDay=(element1.getExpiry());\n context.put(\"ExDay\",ExDay);\n String exDate= null;\n if(ExDay == -1)\n\t\t\t\t\t\t{\n exDate=\"infinte\";\n }\n else\n {\n exDate = ExpiryUtil.getExpired(posttime, ExDay);\n }\n\n DbDetail dbDetail= new DbDetail();\n dbDetail.setSender(sender_name);\n dbDetail.setPDate(posttime);\n dbDetail.setMSubject(message_subject);\n dbDetail.setStatus(read_flag1);\n dbDetail.setMsgID(m_id);\n dbDetail.setPermission(permit);\n dbDetail.setExpiryDate(exDate);\n entry.addElement(dbDetail);\n }\n }//for2\n }//for1\n }\n String newgroup=(String)data.getUser().getTemp(\"course_id\");\n String cname=CourseUtil.getCourseName(newgroup);\n AccessControlList acl=data.getACL();\n if(acl.hasRole(\"instructor\",newgroup))\n {\n context.put(\"isInstructor\",\"true\");\n }\n context.put(\"user_role\",data.getUser().getTemp(\"role\"));\n //Adds the information to the context\n if(entry.size()!=0)\n {\n context.put(\"status\",\"Noblank\");\n context.put(\"entry\",entry);\n }\n else\n {\n context.put(\"status\",\"blank\");\n\t\t\t\tString LangFile=(String)data.getUser().getTemp(\"LangFile\");\n String mssg=MultilingualUtil.ConvertedString(\"db-Contmsg\",LangFile);\n data.setMessage(mssg);\n }\n context.put(\"username\",Username);\n context.put(\"cname\",(String)data.getUser().getTemp(\"course_name\"));\n context.put(\"workgroup\",group);\n }//try\n catch(Exception e){data.setMessage(\"Exception screens [Dis_Board,DBContent.java]\" + e);}\n }",
"protected void execute() {\n\n\t}",
"public interface TemplateEngine {\n\n String prepareMessage(Template template, Client client);\n}",
"public void Execute() {\n\n }",
"String renderTemplate(String filename, Map<String, Object> context) {\n if (sEngine == null) {\n // PebbleEngine caches compiled templates by filename, so as long as we keep using the\n // same engine instance, it's okay to call getTemplate(filename) on each render.\n sEngine = new PebbleEngine();\n sEngine.addExtension(new PebbleExtension());\n }\n try {\n StringWriter writer = new StringWriter();\n sEngine.getTemplate(filename).evaluate(writer, context);\n return writer.toString();\n } catch (Exception e) {\n StringWriter writer = new StringWriter();\n e.printStackTrace(new PrintWriter(writer));\n return \"<div style=\\\"font-size: 150%\\\">\" + writer.toString().replace(\"&\", \"&\").replace(\"<\", \"<\").replace(\"\\n\", \"<br>\");\n }\n }",
"public void compileTemplates(HashMap<String, HCISRFileAST> imports,ArrayList<HCISRClassAST> newClasses) {\n\t\t\n\t}",
"public void assemble1() {\n\t\t\r\n\t}",
"@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"public synchronized void compile(\n \t\t\tMap replacements,\n \t\t\tboolean scalar) throws QueryException, MappingException {\n \t\tif ( !compiled ) {\n \t\t\tthis.tokenReplacements = replacements;\n \t\t\tthis.shallowQuery = scalar;\n \t\t\tcompile();\n \t\t}\n \t}",
"@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n public String doMapping(String template)\n {\n log.debug(\"doMapping({})\", template);\n // Copy our elements into an array\n List<String> components\n = new ArrayList<>(Arrays.asList(StringUtils.split(\n template,\n String.valueOf(TemplateService.TEMPLATE_PARTS_SEPARATOR))));\n int componentSize = components.size() - 1 ;\n\n // This method never gets an empty string passed.\n // So this is never < 0\n String templateName = components.get(componentSize);\n components.remove(componentSize--);\n\n log.debug(\"templateName is {}\", templateName);\n\n // Last element decides, which template Service to use...\n TemplateService templateService = (TemplateService)TurbineServices.getInstance().getService(TemplateService.SERVICE_NAME);\n TemplateEngineService tes = templateService.getTemplateEngineService(templateName);\n\n if (tes == null)\n {\n return null;\n }\n\n String defaultName = \"Default.vm\";\n\n // This is an optimization. If the name we're looking for is\n // already the default name for the template, don't do a \"first run\"\n // which looks for an exact match.\n boolean firstRun = !templateName.equals(defaultName);\n\n for(;;)\n {\n String templatePackage = StringUtils.join(components.iterator(), String.valueOf(separator));\n\n log.debug(\"templatePackage is now: {}\", templatePackage);\n\n StringBuilder testName = new StringBuilder();\n\n if (!components.isEmpty())\n {\n testName.append(templatePackage);\n testName.append(separator);\n }\n\n testName.append((firstRun)\n ? templateName\n : defaultName);\n\n // But the Templating service must look for the name with prefix\n StringBuilder templatePath = new StringBuilder();\n if (StringUtils.isNotEmpty(prefix))\n {\n templatePath.append(prefix);\n templatePath.append(separator);\n }\n templatePath.append(testName);\n\n log.debug(\"Looking for {}\", templatePath);\n\n if (tes.templateExists(templatePath.toString()))\n {\n log.debug(\"Found it, returning {}\", testName);\n return testName.toString();\n }\n\n if (firstRun)\n {\n firstRun = false;\n }\n else\n {\n // We run this loop only two times. The\n // first time with the 'real' name and the\n // second time with \"Default\". The second time\n // we will end up here and break the for(;;) loop.\n break;\n }\n }\n\n log.debug(\"Returning default\");\n return getDefaultName(template);\n }",
"public void process(TemplatingContext templatingContext)\n throws ProcessingException\n {\n // do nothing in base implementation\n }",
"public void execute() {\r\n if (!Os.isFamily(Os.FAMILY_WINDOWS)) {\r\n throw new BuildException(\"CMT supported only on windows platforms.\");\r\n }\r\n validate();\r\n try {\r\n input = File.createTempFile(\"Files\", \".list\");\r\n generateFileList();\r\n runCmtCommand();\r\n if (this.htmlOutputDir != null) {\r\n runCmt2HtmlCommand();\r\n }\r\n } catch (IOException ioe) {\r\n throw new BuildException(\"Not able to generate file list for 'cmt'. \", ioe);\r\n } catch (BuildException be) {\r\n if (failOnError) {\r\n throw new BuildException(\"Exception occured while running 'cmt' tool. \", be);\r\n }\r\n log(\"Exception occured while running 'cmt' tool. \", Project.MSG_ERR);\r\n } finally {\r\n if (input != null) {\r\n input.delete();\r\n }\r\n }\r\n }",
"public void run() {\n if (!script.compile()) {\n Program.stop(\"ERROR: There was an error while compiling your script.\"\n + \"\\nPlease check your syntax!\", false);\n return;\n }\n commandCounter = script.input.split(\";\").length - 1;\n if (!writeMemory()) {\n Program.stop(\"ERROR: There was a fatal error while \"\n + \"writing the script into the memory!\", false);\n return;\n }\n try {\n startProcessor();\n } catch (NumberFormatException n) {\n Program.stop(\"ERROR: There was a runtime error while executing the script!\", false);\n }\n Program.stop(\"\", true);\n }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/include/clang/AST/DeclTemplate.h\", line = 2755,\n FQN=\"clang::VarTemplateDecl::Common::~Common\", NM=\"_ZN5clang15VarTemplateDecl6CommonD0Ev\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp -nm=_ZN5clang15VarTemplateDecl6CommonD0Ev\")\n //</editor-fold>\n public /*inline*/ void $destroy() {\n //START JDestroy\n PartialSpecializations.$destroy();\n Specializations.$destroy();\n super.$destroy();\n //END JDestroy\n }",
"public ST createStringTemplateInternally(CompiledST impl) {\n\t\tST st = createStringTemplate(impl);\n\t\tif (trackCreationEvents && st.debugState != null) {\n\t\t\tst.debugState.newSTEvent = null; // toss it out\n\t\t}\n\t\treturn st;\n\t}",
"private native void buildTemplate(long i, long j);",
"public void compile(MindFile f) {\n \t\t\n \t}",
"public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}",
"public PyCode compile(String script) {\n return null;\n }",
"public void execute() {\n setExecuted(true);\n }",
"@Override\n public void run() {\n // Definition init\n // ===================================================================================================\n\n cElementalPrimitive.run();\n\n cPrimitiveDefinition.run();\n\n eQuarkDefinition.run();\n eLeptonDefinition.run();\n eNeutrinoDefinition.run();\n eBosonDefinition.run();\n\n dHadronDefinition.run();\n\n iaeaNuclide.run();\n\n dAtomDefinition.run();\n\n ePrimalAspectDefinition.run();\n\n dComplexAspectDefinition.run();\n }",
"@Override\n public void run() {\n if ((generate_modules_based_on_keyword==null)||(generate_modules_based_on_keyword.equals(\"\"))) {\n System.err.println(\"Error in module generation definition. Check format 'key:name1;name2;'\");\n } else {\n String[] parts = generate_modules_based_on_keyword.split(\":\",2);\n if (parts.length==2) {\n ArrayList<String> channelsToGenerate = new ArrayList<>();\n String[] channelNames = parts[1].split(\";\");\n for (int i=0;i<channelNames.length;i++) {\n channelsToGenerate.add(channelNames[i]);\n }\n pipe_out = pipe_in.generatePipe(parts[0], channelsToGenerate);\n pipe_out.name=pipe_in.toString()+pipe_suffix;\n } else {\n System.err.println(\"Error in module generation definition. Check format 'key:name1;name2;'\");\n }\n }\n }",
"protected void execute()\n\t{\n\t}",
"@RequestMapping(value = ViewNameConstants.TEMPLATE)\n\tpublic void Viewtemplate() {\n\t}",
"public void execute() {\r\n\t\r\n\t}",
"public void generate() {\n prepareConfiguration();\n\n boolean hasElse = expression.getElseExpression() != null;\n\n // if there is no else-entry and it's statement then default --- endLabel\n defaultLabel = (hasElse || !isStatement || isExhaustive) ? elseLabel : endLabel;\n\n generateSubject();\n\n generateSwitchInstructionByTransitionsTable();\n\n generateEntries();\n\n // there is no else-entry but this is not statement, so we should return Unit\n if (!hasElse && (!isStatement || isExhaustive)) {\n v.visitLabel(elseLabel);\n codegen.putUnitInstanceOntoStackForNonExhaustiveWhen(expression, isStatement);\n }\n\n codegen.markLineNumber(expression, isStatement);\n v.mark(endLabel);\n }",
"public void execute() {\n\n\t}",
"public SupervisedTemplates() {\n\t\tsuper();\n\t\tm_analyzer = new InteriorAnalyzer();\n\t\t// Explore the supervised template path\n\t\tString stpath = System.getProperty(STXML_PATH_PROPERTY);\n\t\tif (stpath != null) {\n\t\t\ttraversePath(stpath,\n\t\t\t\tnew DefDocumentProcessor() { \n\t\t\t\t\tpublic void processElement(File documentPath) \n\t\t\t\t\t\tthrows XMLFormatException\n\t\t\t\t\t{ m_analyzer.absorbDefinitions(documentPath); }\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t}",
"protected final void emitCode() {\n int bytecodeSize = request.graph.method() == null ? 0 : request.graph.getBytecodeSize();\n request.compilationResult.setHasUnsafeAccess(request.graph.hasUnsafeAccess());\n GraalCompiler.emitCode(request.backend, request.graph.getAssumptions(), request.graph.method(), request.graph.getMethods(), request.graph.getFields(), bytecodeSize, lirGenRes,\n request.compilationResult, request.installedCodeOwner, request.factory);\n }",
"public void render() {\n\t\t// do nothing... as we should\n\t}",
"protected void execute() {}",
"@Override\r\n public void execute() throws BuildException { \r\n AbstractGenerator g;\r\n \r\n if (kind == null) {\r\n throw new BuildException(\"kind was not specified\");\r\n }\r\n final String k = kind.getValue();\r\n if (k.equals(INTERFACE)) {\r\n g = new InterfaceGen();\r\n }\r\n else if (k.equals(CRYSTAL)) {\r\n g = new CrystalGen();\r\n }\r\n else if (k.equals(OPERATOR)) {\r\n g = new OperatorGen();\r\n }\r\n else {\r\n throw new BuildException(\"Unknown kind was specified: \"+kind);\r\n }\r\n if (dest != null) {\r\n srcs.add(0, \"-out\");\r\n srcs.add(1, dest);\r\n }\r\n g.generate(srcs.toArray(new String[srcs.size()]));\r\n }",
"protected void execute() {\n \t\n }"
] |
[
"0.6471106",
"0.61923915",
"0.5914754",
"0.59096426",
"0.5879249",
"0.58715266",
"0.5869652",
"0.5840151",
"0.5834396",
"0.5800835",
"0.57941735",
"0.57718456",
"0.56823224",
"0.56430525",
"0.5612646",
"0.5603882",
"0.55398005",
"0.5516501",
"0.5376963",
"0.5349699",
"0.532367",
"0.5307447",
"0.52984685",
"0.5274652",
"0.5238391",
"0.5230701",
"0.52084893",
"0.52037936",
"0.52035266",
"0.5187954",
"0.5167807",
"0.5165191",
"0.51585877",
"0.5141568",
"0.5141568",
"0.5137636",
"0.5116492",
"0.51091",
"0.51070386",
"0.51019156",
"0.509896",
"0.50658023",
"0.5057846",
"0.5043279",
"0.50405127",
"0.5017156",
"0.49638045",
"0.49536705",
"0.49530485",
"0.49431497",
"0.4941321",
"0.49200755",
"0.49113712",
"0.4910217",
"0.49050868",
"0.48800412",
"0.4864498",
"0.4859801",
"0.48586938",
"0.48484176",
"0.48373568",
"0.4827381",
"0.48218563",
"0.48152342",
"0.48148873",
"0.48145688",
"0.48028985",
"0.48003313",
"0.4796816",
"0.47958142",
"0.4793504",
"0.47905388",
"0.47870436",
"0.47719356",
"0.47630236",
"0.4758918",
"0.47586823",
"0.47577673",
"0.47445256",
"0.4744374",
"0.47424322",
"0.47382554",
"0.47334555",
"0.4724223",
"0.47228894",
"0.47219142",
"0.47201997",
"0.4717796",
"0.47171482",
"0.47160363",
"0.47066703",
"0.47062066",
"0.469839",
"0.46956143",
"0.46929654",
"0.4684934",
"0.46819457",
"0.46772468",
"0.4671237",
"0.4669192",
"0.466853"
] |
0.0
|
-1
|
Without linefeeds the text will be output asis.
|
@Test
public void smart_whitespace() throws Exception
{
checkOutput("\tTrue", T("<?if True?>\tTrue<?end if?>", Template.Whitespace.smart));
// Line feeds will be removed from lines containing only a "control flow" tag.
checkOutput("True\n", T("<?if True?>\nTrue\n<?end if?>\n", Template.Whitespace.smart));
// Indentation will also be removed from those lines.
checkOutput("True\n", T(" <?if True?>\nTrue\n <?end if?>\n", Template.Whitespace.smart));
// Additional text (before and after tag) will leave the line feeds intact.
checkOutput("x\nTrue\n", T("x<?if True?>\nTrue\n<?end if?>\n", Template.Whitespace.smart));
checkOutput(" \nTrue\n", T("<?if True?> \nTrue\n<?end if?>\n", Template.Whitespace.smart));
// Multiple tags will also leave the line feeds intact.
checkOutput("\nTrue\n\n", T("<?if True?><?if True?>\nTrue\n<?end if?><?end if?>\n", Template.Whitespace.smart));
// For <?print?> and <?printx?> tags the indentation and line feed will not be stripped
checkOutput(" 42\n", T(" <?print 42?>\n", Template.Whitespace.smart));
checkOutput(" 42\n", T(" <?printx 42?>\n", Template.Whitespace.smart));
// For <?render?> tags the line feed will be stripped, but the indentation will be reused for each line rendered by the call
checkOutput(" x\r\n", T("<?def x?>\nx\r\n<?end def?>\n <?render x()?>\n", Template.Whitespace.smart));
// But of course "common" indentation will be ignored
checkOutput("x\r\n", T("<?if True?>\n <?def x?>\n x\r\n <?end def?>\n <?render x()?>\n<?end if?>\n", Template.Whitespace.smart));
// But not on the outermost level, which leads to an esoteric corner case:
// The indentation will be output twice (once by the text itself, and once by the render call).
checkOutput(" x\r\n", T(" <?def x?>\n x\r\n <?end def?>\n <?render x()?>\n", Template.Whitespace.smart));
// Additional indentation in the block will be removed.
checkOutput("True\n", T("<?if True?>\n\tTrue\n<?end if?>\n", Template.Whitespace.smart));
// Outer indentation will be kept.
checkOutput(" True\n", T(" <?if True?>\n \tTrue\n <?end if?>\n", Template.Whitespace.smart));
// Mixed indentation will not be recognized as indentation.
checkOutput("\tTrue\n", T(" <?if True?>\n\tTrue\n <?end if?>\n", Template.Whitespace.smart));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void println ()\n {\n if (text != null)\n {\n text.append (Out.NL);\n col = 0;\n }\n else\n super.println ();\n }",
"private void newline() {}",
"private void textilize () {\n\n textIndex = 0;\n int textEnd = line.length() - 1;\n listChars = new StringBuffer();\n linkAlias = false;\n while (textIndex < line.length()\n && (Character.isWhitespace(textChar()))) {\n textIndex++;\n }\n while (textEnd >= 0\n && textEnd >= textIndex\n && Character.isWhitespace (line.charAt (textEnd))) {\n textEnd--;\n }\n boolean blankLine = (textIndex >= line.length());\n if (blankLine) {\n textilizeBlankLine();\n }\n else\n if ((textIndex > 0)\n || ((line.length() > 0 )\n && (line.charAt(0) == '<'))) {\n // First character is white space of the beginning of an html tag:\n // Doesn't look like textile... process it without modification.\n }\n else\n if (((textEnd - textIndex) == 3)\n && line.substring(textIndex,textEnd + 1).equals (\"----\")) {\n // && (line.substring(textIndex, (textEnd + 1)).equals (\"----\")) {\n textilizeHorizontalRule(textIndex, textEnd);\n } else {\n textilizeNonBlankLine();\n };\n }",
"public boolean outputText(String incomingText)\n\t{\n\t\ttxtArea.append(\"[\"+getTimeStamp()+\"] \"+ incomingText +\"\\n\");\n\t\tSystem.out.println(\"[\"+getTimeStamp()+\"] \"+ incomingText +\"\\n\");//##testing##\n\t\treturn true;\n\t}",
"abstract public String asText(boolean pretty);",
"public void newLine() {\n text.append(\"\\n\");\n }",
"public void processText(org.w3c.dom.Text text)\r\n\tthrows Exception\r\n\t{\r\n\tWriter xml = getWriter();\r\n\txml.write(getIndent());\r\n\txml.write(HDOMUtil.trim(text));\r\n\txml.write(\"\\n\");\r\n\treturn;\r\n\t}",
"public void outtext(final RTS_TXT t) {\n\t\tRTS_TXT.setpos(t, 1);\n\t\twhile (RTS_TXT.more(t)) {\n\t\t\ttry {\n\t\t\t\toutputStream.write((int) RTS_TXT.getchar(t));\n\t\t\t\tif (_SYNCHRONOUS)\n\t\t\t\t\toutputStream.flush();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RTS_SimulaRuntimeError(\"outtext failed\", e);\n\t\t\t}\n\t\t}\n\t}",
"protected void verbatimContent(String text) {\n write(escapeHTML(text));\n }",
"static void trimNL() {\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }",
"public String asText() {\n\t\treturn \"\";\n\t}",
"public String removeLineBreak(String text){\n\t\ttext = text.replace(\"\\n\", \"\").replace(\"\\r\", \"\");\n\t\treturn text;\n\t}",
"private void txt() {\n\n\t}",
"private void linefeed() {\n try {\n out.write(lineSeparator);\n } catch (java.io.IOException ioe) {\n }\n ;\n }",
"public SourceGenerator forceNewline(){\r\n\t\tm_writer.append(m_newline);\r\n\t\treturn this;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn text.toString();\r\n\t}",
"public String outputString(Text text) {\r\n StringWriter out = new StringWriter();\r\n try {\r\n output(text, out); // output() flushes\r\n } catch (IOException e) { }\r\n return out.toString();\r\n }",
"@Override\n public abstract String asText();",
"public static void printBlankLine () {\n\t\t\n\t\t// First part before the +\n\t\tSystem.out.print(\"\\n\\u2012\\u2012\\u2012\\u2012\");\n\t\tSystem.out.print(\"+\");\n\t\t// Loops through and prints the rest\n\t\tfor (int i = 0; i < 89; i++) {\n\t\t\t\n\t\t\tSystem.out.print(\"\\u2012\");\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void newline() {\n if (enableSplitting) {\n if (out.length() != 0) {\n out.append(System.lineSeparator());\n }\n out.append(\" \".repeat(depth)); // two spaces indent is sufficient\n } else {\n out.append(\" \"); // just a separator between two tokens\n }\n }",
"@Override\n\tpublic String textContent() {\n\t\treturn null;\n\t}",
"public void displayTextToConsole();",
"public void printWithTemplate(String text) {\n String line = \"____________________________________________________________\";\n\n out.println(line);\n out.println(text);\n out.println(line);\n }",
"@Override\n public String toString() {\n return text;\n }",
"@Override\n public void write(String text) {\n }",
"public void linefeed() {\r\n\t\tconsole.print(LINESEP);\r\n\t}",
"@Override\n public void verbatim_()\n {\n getListener().onVerbatim(this.accumulatedText.toString(), true, Collections.<String, String>emptyMap());\n this.accumulatedText.setLength(0);\n this.isInVerbatim = false;\n }",
"private void processText(){\n if(text == null || text.length() == 0){\n // When posting a tweet, Twitter returns the \"text\" JSON field even if it's not trimmed...\n text = trimmedText;\n }else{\n // Trim the original contents received from Twitter\n text = text.substring(0, text.offsetByCodePoints(0, displayTextRange[1]));\n }\n\n // Transform HTML characters (for some reason Twitter sends those)\n text = org.apache.commons.text.StringEscapeUtils.unescapeHtml4(text);\n }",
"private static String cleanTextContent(String text) {\n text = text.replaceAll(\"[^\\\\x00-\\\\x7F]\", \"\");\n\n // erases all the ASCII control characters\n text = text.replaceAll(\"[\\\\p{Cntrl}&&[^\\r\\n\\t]]\", \"\");\n\n // removes non-printable characters from Unicode\n text = text.replaceAll(\"\\\\p{C}\", \"\");\n \n text = text.replaceAll(\"[\\\\r\\\\n]+\", \" \");\n\n return text.trim();\n }",
"public FreeMindWriter richPreText( String text ) {\n tagClose();\n out.print( \"<richcontent TYPE='NODE'><html>\\n <head>\\n\\n </head>\\n <body><pre>\" );\n out.writeEscapedXMLString( text, true );\n out.print( \"</pre></body>\\n</html>\\n</richcontent>\" );\n return this; \n }",
"private static String removeNewline(String content) {\n if (StringUtil.isNotEmpty(content)) {\n content = content.replaceAll(StringConstants.LF, EMPTY);\n content = content.replace(StringConstants.CR, EMPTY);\n return content;\n }\n return content;\n }",
"public void newLine()\n\t{\n\t\toutput.append(\"\\n\");\n\t}",
"public static void print(Object text) {\r\n\t\tSystem.out.println(text);\r\n\t\tSystem.out.flush();\r\n\t}",
"protected static String br() {\n return \"\\r\\n\";\n }",
"public final String yytext() {\n\t\treturn new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n\t}",
"public void endl(){\n putc('\\n');\n }",
"private static void append(String text) {\n // Print the same text to STDOUT\n System.out.println(text);\n\n try {\n outputFileBuffer.write(text+\"\\n\");\n outputFileBuffer.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void imprimir(String s){\n\t\ttxtS.append(s+\"\\n\");\n\t}",
"public void formatText(String text){\n\t\ttext = text.replaceAll(\"\\\\<[^>]*>\",\"\");\n\t}",
"@Override\n public String toTxt() {\n return this.content;\n }",
"protected void newline(Writer out) throws IOException {\r\n if (currentFormat.newlines) {\r\n out.write(currentFormat.lineSeparator);\r\n }\r\n }",
"public void leseTextEin()\r\n\t{\n\t\tif( this.text != \"\" )\r\n\t\t\treturn;\r\n\t\t\r\n\t StringBuffer buffer = new StringBuffer();\r\n\t BufferedReader input = null;\r\n\t \r\n\t try \r\n\t {\r\n\t \tinput = new BufferedReader( new FileReader(this.dateipfad) );\r\n\t \tString line = null; \r\n\t \twhile ((line=input.readLine()) != null)\r\n\t \t{\r\n\t \t\tbuffer.append(line); \r\n\t \t\tbuffer.append(System.getProperty(\"line.separator\"));\r\n\t \t}\r\n\t }\r\n\t catch (IOException ex)\r\n\t { ex.printStackTrace(); }\r\n\t finally \r\n\t {\r\n\t \ttry\r\n\t \t{\r\n\t \t\tif (input!= null) \r\n\t \t\t\tinput.close();\r\n\t \t}\r\n\t \tcatch (IOException ex)\r\n\t \t{ ex.printStackTrace(); }\r\n\t }\r\n\t this.text = buffer.toString();\r\n\t}",
"@Override\n\tpublic Object visit(ASTText node, Object data) {\n\t\tSystem.out.print(\"text()\");\n\t\treturn null;\n\t}",
"public void output (String s)\n\t{\n\t\toutputArea.append (s + \"\\n\");\n\t\toutputArea.setCaretPosition (outputArea.getDocument().getLength());\n\t}",
"public abstract void newLine();",
"public static String nl() {\n return nl;\n }",
"private void writeText(HttpServletResponse response, String outText) throws IOException {\n\t\tresponse.setContentType(CONTENT_TYPE);\n\t\tPrintWriter out = response.getWriter();\n\t\tout.print(outText);\n\t\t// 將輸出資料列印出來除錯用\n\t\tSystem.out.println(\"output: \" + outText);\n\n\t}",
"protected void content(String text) {\n // small hack due to DOXIA-314\n String txt = escapeHTML(text);\n txt = StringUtils.replace(txt, \"&#\", \"&#\");\n write(txt);\n }",
"private void print(String text) {\n\t\tSystem.out.println(text);\n\t}",
"public String toText() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (!description.isEmpty()) {\n\t\t\tsb.append(description.toText());\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tif (!blockTags.isEmpty()) {\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tblockTags.forEach(bt -> {\n\t\t\tsb.append(bt.toText());\n\t\t\tsb.append(\"\\n\");\n\t\t});\n\t\treturn sb.toString();\n\t}",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }",
"public String text(){ // no input , some output\n\t\t\tSystem.out.println(\"text method\");\n\t\t\tString s = \"selenium\";\n\t\t\treturn s ;\n\t\t}",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }",
"@Override\n public void writeSpace(String text)\n throws XMLStreamException\n {\n writeRaw(text);\n }",
"public AsciiDocWriter nnl2() { if(!lastcharNL) {w(NL);} ; w(NL); return this; }",
"public void cosoleText(String line)\n\t{\n\t\tconsole.setText(line);\n\t}",
"String getTransformedText();",
"@Test\n public final void testNewlineIsNotEmpty() {\n Document testDoc = TestDocHelper.createDocument(\n \"<a>text</a>\");\n \n Node text1 = testDoc.createTextNode(\"\\r\");\n Node text2 = testDoc.createTextNode(\"\\r\\n\");\n Node text3 = testDoc.createTextNode(\"\\n\");\n \n assertFalse(NodeOps.nodeIsEmptyText(text1));\n assertEquals(1, text1.getNodeValue().length());\n assertFalse(NodeOps.nodeIsEmptyText(text2));\n assertEquals(2, text2.getNodeValue().length());\n assertFalse(NodeOps.nodeIsEmptyText(text3));\n assertEquals(1, text3.getNodeValue().length());\n }",
"public String plainDataToString()\n {\n String plainDataOut = \"\";\n String vetVisitData = super.plainDataToString();\n String vetVisitUrgData = \"\";\n \n vetVisitUrgData = this.getDiagnosis() + \"\\n\" +\n this.getTreatment();\n \n plainDataOut = vetVisitData + \"\\n\" + vetVisitUrgData;\n \n return plainDataOut;\n \n }",
"public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }",
"public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);\n }",
"public static String nl2br(String text) {return text.replaceAll(\"\\n\",\"<br />\");}",
"String getToText();",
"private void cmdMultiLine() {\n fMultiLineMode = true;\n }",
"public String getAllWrittenText() {\r\n\t\treturn sb.toString();\r\n\t}",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }",
"public CText() {\r\n\t\ttext = new StringBuilder();\r\n\t\tline_index = new ArrayList<>();\r\n\t\tline_index.add(0);\r\n\t}",
"@Override\n public String toString() {\n return new StringBuilder()\n .append(getHeader().toString())\n .append(winLineSeparator)\n .append(getBody().toString())\n .append(unixLineSeparator)\n .toString();\n }",
"public static String cleanText(String text)\r\n\t{\r\n\t\ttext = text.replace(\"\\n\", \"\\\\n\");\r\n\t\ttext = text.replace(\"\\t\", \"\\\\t\");\r\n\r\n\t\treturn text;\r\n\t}",
"public static void multiLineWithEscape()\r\n {\n System.out.print(\"Hello! \\nHello! \\nHello!\\n\\n\");\r\n }",
"@Test\r\n public void testTextLineBreak() {\r\n final String BANNER_TEXT = \"test banner text\\nwith line break\";\r\n Banner banner = new Banner();\r\n banner.setText(BANNER_TEXT);\r\n assertEquals(banner.getText(), BANNER_TEXT);\r\n }",
"private void get_text() {\n InputStream inputStream = JsonUtil.class.getClassLoader().getResourceAsStream(\"data.txt\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n StringBuilder sb = new StringBuilder();\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n this.text = sb.toString().trim();\n }",
"public String getText(){\n return this.sOut.toString();\n }",
"protected void writeln(String s)\n {\n out.println(s);\n }"
] |
[
"0.657527",
"0.61106867",
"0.6100827",
"0.6100588",
"0.609294",
"0.60704833",
"0.60029763",
"0.59660983",
"0.59449255",
"0.5943631",
"0.59308094",
"0.58950645",
"0.5885321",
"0.58785754",
"0.5877786",
"0.58439755",
"0.58113",
"0.57427186",
"0.5657845",
"0.56384385",
"0.562939",
"0.5619641",
"0.5609907",
"0.5594191",
"0.5580202",
"0.5556832",
"0.5543758",
"0.5541172",
"0.5532246",
"0.55322385",
"0.5517034",
"0.5508715",
"0.55007166",
"0.548819",
"0.54794693",
"0.54744864",
"0.5474407",
"0.54729193",
"0.5460211",
"0.5452905",
"0.5448247",
"0.54481167",
"0.5432558",
"0.54307395",
"0.54287374",
"0.54213583",
"0.54178977",
"0.54030603",
"0.5402446",
"0.5401398",
"0.5397063",
"0.5397063",
"0.5397063",
"0.5397063",
"0.5397063",
"0.5395584",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5386231",
"0.5384966",
"0.5376423",
"0.5374445",
"0.53701735",
"0.53580934",
"0.53556377",
"0.53542703",
"0.5339956",
"0.53296375",
"0.53251976",
"0.53245103",
"0.53192526",
"0.5317572",
"0.5315468",
"0.53152883",
"0.53058726",
"0.5304913",
"0.5301057",
"0.5291961",
"0.5291429",
"0.52906024",
"0.5290601"
] |
0.0
|
-1
|
Test that expressions for keyword arguments are evaluated in the order they are given
|
@Test
public void keywordEvaluationOrder()
{
Template t1 = T("<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(1), y=makevar(2))?>");
String output1 = t1.renders(V("makevar", new MakeVar()));
assertEquals("1;3", output1);
Template t2 = T("<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(2), y=makevar(1))?>");
String output2 = t2.renders(V("makevar", new MakeVar()));
assertEquals("2;3", output2);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean requiresExpression(int k);",
"@Test\n public void execute_nameParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"name\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"ElLe\", \"name\", true, false, Arrays.asList(ELLE));\n //Single keyword, case sensitive, person found.\n execute_parameterPredicate_test(0, \"ElLe\", \"name\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(3, \"Kurz Elle Kunz\", \"name\", true, false, Arrays.asList(CARL, ELLE, FIONA));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"kurz Elle kunz\", \"name\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, multiple people found\n execute_parameterPredicate_test(2, \"kurz Elle Kunz\", \"name\", false, false, Arrays.asList(ELLE, FIONA));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"Kurz Elle kunz\", \"name\", false, true, Collections.emptyList());\n }",
"@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}",
"@Disabled\n @Test void testKeywords() {\n final String[] reserved = {\"AND\", \"ANY\", \"END-EXEC\"};\n final StringBuilder sql = new StringBuilder(\"select \");\n final StringBuilder expected = new StringBuilder(\"SELECT \");\n for (String keyword : keywords(null)) {\n // Skip \"END-EXEC\"; I don't know how a keyword can contain '-'\n if (!Arrays.asList(reserved).contains(keyword)) {\n sql.append(\"1 as \").append(keyword).append(\", \");\n expected.append(\"1 as `\").append(keyword.toUpperCase(Locale.ROOT))\n .append(\"`,\\n\");\n }\n }\n sql.setLength(sql.length() - 2); // remove ', '\n expected.setLength(expected.length() - 2); // remove ',\\n'\n sql.append(\" from t\");\n expected.append(\"\\nFROM t\");\n sql(sql.toString()).ok(expected.toString());\n }",
"@Test\n public void test_containsKeywords_returnsTrue() {\n ContainsKeywordsPredicate predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"wallet\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Nike wallet\").build()));\n\n // One keyword in finder field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"Alice\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // One keyword in description field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"12pm\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Library\").build()));\n\n // One keyword in phone field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"88888888\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"88888888\").build()));\n\n // One keyword in email field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"[email protected]\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\").build()));\n\n // One keyword in tag field\n predicate = new ContainsKeywordsPredicate(Collections.singletonList(\"black\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"blue\").build()));\n\n // Multiple keywords in name field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"Alice Bob\").build()));\n\n // Multiple keywords in finder field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withFinder(\"Alice Bob\").build()));\n\n // Multiple keywords in description field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"12pm\", \"Bob\"));\n assertTrue(predicate.test(new ArticleBuilder().withDescription(\"12pm Bob\").build()));\n\n // Multiple keywords in tag field\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"black\", \"Blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withTags(\"black\", \"Blue\").build()));\n\n // Multiple keywords in different fields\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"waLLet\", \"bOB\", \"raining\"));\n assertTrue(predicate.test(new ArticleBuilder().withName(\"wallet\").withFinder(\"Bob\")\n .withDescription(\"Raining heavily\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"[email protected]\", \"bOB\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withEmail(\"[email protected]\")\n .withTags(\"blue\", \"sticker\").withFinder(\"Bob\").build()));\n predicate = new ContainsKeywordsPredicate(Arrays.asList(\"66666666\", \"blue\"));\n assertTrue(predicate.test(new ArticleBuilder().withPhone(\"66666666\")\n .withTags(\"blue\", \"sticker\").withDescription(\"blue wallet\").build()));\n }",
"@Test\n public void execute_addressParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"addr\", true, false, Collections.emptyList());\n //Single keyword, ignore case, people found.\n execute_parameterPredicate_test(3, \"ave\", \"addr\", true, false, Arrays.asList(ALICE, BENSON, ELLE));\n //Single keyword, case sensitive, people found.\n execute_parameterPredicate_test(2, \"Ave\", \"addr\", false, false, Arrays.asList(ALICE, BENSON));\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"jurong Clementi\", \"addr\", true, false, Arrays.asList(ALICE, BENSON));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"jurong Clementi\", \"addr\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, multiple people found\n execute_parameterPredicate_test(1, \"jurong Clementi\", \"addr\", false, false, Arrays.asList(BENSON));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"jurong Clementi\", \"addr\", false, true, Collections.emptyList());\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"@Test\n\tpublic void testSumOverFunctionEvaluatingArguments() {\n\t\trunTest(2, false, \"sum({{(on f in Boolean -> 0..3) product({{(on X in Boolean) f(not X or X) : true }}) : true }})\", \"40\");\n\t}",
"@Test\r\n\tpublic void testListArg() {\r\n\t\tAssert.assertEquals(\"test[(`a,`b,`c)]\", new FunctionImpl.FunctionBuilderImpl(\"test\").param(SymbolValue.froms(\"a\", \"b\", \"c\")).build().toQ());\r\n\t}",
"public void testValidateArgs() {\n\t\tString[] args = new String[]{\"name\",\"bob\",\"jones\"};\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasAttributeWithValueContains takes exactly 2 arguments.\"));\n\t\t}\n\t\t\n\t\t//test with 1 argument, should fail\n\t\targs = new String[]{\"name\"};\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasAttributeWithValueContains takes exactly 2 arguments.\"));\n\t\t}\n\t\t\n\t\t//test with 0 arguments, should be a problem\n\t\targs = new String[]{};\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasAttributeWithValueContains takes exactly 2 arguments.\"));\n\t\t}\n\t\t\n\t\t//test with null arguments, should be a problem\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasAttributeWithValueContains takes exactly 2 arguments.\"));\n\t\t}\n\t\t\n\t\t//test with correct arguments, first one is zero, should work\n\t\targs = new String[]{\"name\",\"bob\"};\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tfail(\"An InvalidFunctionArguements exception should have NOT been thrown by the constructor!\");\n\t\t}\n\t}",
"@Test\n public void execute_emailParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"email\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"ALICE\", \"email\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"ALICE\", \"email\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"ALiCe anna\", \"email\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"ALiCe anna\", \"email\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"ALiCe anna\", \"email\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"ALiCe anna\", \"email\", false, true, Collections.emptyList());\n }",
"@Test\n public void execute_dateOfBirthParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"dob\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(5, \"december\", \"dob\",\n true, false, Arrays.asList(ALICE, BENSON, CARL, DANIEL, FIONA));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"december\", \"dob\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(4, \"june 11\", \"dob\",\n true, false, Arrays.asList(ALICE, CARL, ELLE, GEORGE));\n //Multiple keywords, ignore case, and condition, one person found\n execute_parameterPredicate_test(1, \"june 11\", \"dob\",\n true, true, Arrays.asList(ELLE));\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(4, \"june 11\", \"dob\",\n false, false, Arrays.asList(ALICE, CARL, ELLE, GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"june 11\", \"dob\",\n false, true, Collections.emptyList());\n }",
"@Test\n public void execute_multiParameter_namePhone() throws ParseException {\n execute_multipleParameterPredicate_test(2, \"alice 95352563\", \"name phone\", true, false,\n Arrays.asList(ALICE, CARL));\n //different paramters from same person, ignore case, and operation\n execute_multipleParameterPredicate_test(1, \"alice 94351253\", \"name phone\", true, true,\n Arrays.asList(ALICE));\n //different paramters from same person, case sensitive, and operation\n execute_multipleParameterPredicate_test(0, \"alice 94351253\", \"name phone\", false, true,\n Collections.emptyList());\n }",
"static boolean attribute_args(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"attribute_args\")) return false;\n if (!nextTokenIs(b, L_PAREN)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, L_PAREN);\n r = r && attribute_args_1(b, l + 1);\n p = r; // pin = 2\n r = r && report_error_(b, attribute_arg_value(b, l + 1));\n r = p && report_error_(b, attribute_args_3(b, l + 1)) && r;\n r = p && consumeToken(b, R_PAREN) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"@Test\n @Ignore\n public void testAdd_3args() {\n System.out.println(\"add\");\n int[] number = null;\n int start = 0;\n int end = 0;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 0;\n int result = instance.add(number, start, end);\n assertEquals(expResult, result);\n // TODO Test muss noch erstellt werden..\n fail(\"Test muss noch erstellt werden.\");\n }",
"@Test\n public void testCheckPz_3args() {\n System.out.println(\"checkPz\");\n int pz = 4;\n int[] number = {1, 2, 3, 4, 5, 6};\n int pos = 4;\n AbstractMethod instance = new AbstractMethodImpl();\n boolean expResult = true;\n boolean result = instance.checkPz(pz, number, pos);\n assertEquals(expResult, result);\n\n }",
"@Test\n public void testCheckPz_3args1() {\n System.out.println(\"checkPz\");\n int pz = 4;\n int[] number = {1, 2, 3, 4, 5, 6};\n int pos = 5;\n AbstractMethod instance = new AbstractMethodImpl();\n boolean expResult = false;\n boolean result = instance.checkPz(pz, number, pos);\n assertEquals(expResult, result);\n\n }",
"OrderByClauseArg createOrderByClauseArg();",
"@Test\n public void test_singleParametersToArity() throws Exception {\n new Thread(MultiProcessor::processStrings);\n\n // Same but with one value\n ListSequence.fromList(ListSequence.fromList(new ArrayList<String>())).select((values) -> MultiProcessor.processStrings(values));\n\n // Same but with more than one value\n Arrays.sort(new String[]{}, MultiProcessor::processStrings);\n }",
"public void testManyVariablesAcrossCallsOk() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), (f(X, Y, Z) :- g(X), g(Y), g(Z))], (?- f(X, X, X)), [[X <-- x]]]\");\n }",
"@Test\n public void test() {\n setHello(\"Hello\");\n assertThat(getHello() + addWorld()).isEqualTo(\"Hello World\");\n assertThat(likely(true)).isTrue();\n }",
"@Test\r\n public void partialAndExactMatching() {\n\r\n eval( \"f <- function(fumble, fooey) { fumble ^ fooey } \");\r\n assertThat( eval( \"f(f = 3, fooey = 4)\"), equalTo( c(81) ) );\r\n }",
"public void testGetInputArguments() {\n List<String> args = mb.getInputArguments();\n assertNotNull(args);\n for (String string : args) {\n assertNotNull(string);\n assertTrue(string.length() > 0);\n }\n }",
"@Test\n public void execute_phoneParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"phone\", true, false, Collections.emptyList());\n //Multiple keywords, or condition, multiple people found\n execute_parameterPredicate_test(3, \"94351253 9482427 9482442\", \"phone\",\n true, false, Arrays.asList(ALICE, FIONA, GEORGE));\n //Multiple keywords, and condition, multiple people found\n execute_parameterPredicate_test(0, \"94351253 9482427 9482442\", \"phone\",\n true, true, Collections.emptyList());\n }",
"@Test\n public void parse_validArgs_returnsSearchCommand() {\n SearchCommand expectedSearchCommand =\n new SearchCommand(new NamePhoneTagContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\")));\n assertParseSuccess(parser, \"Alice Bob\", expectedSearchCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n Alice \\n \\t Bob \\t\", expectedSearchCommand);\n }",
"@Test\r\n void dependentAssertions() {\n \t\r\n assertAll(\"properties\",\r\n () -> {\r\n String firstName = person.getFirstName();\r\n assertNotNull(firstName);\r\n\r\n // Executed only if the previous assertion is valid.\r\n assertAll(\"first name\",\r\n () -> assertTrue(firstName.startsWith(\"J\")),\r\n () -> assertTrue(firstName.endsWith(\"n\"))\r\n );\r\n },\r\n () -> {\r\n // Grouped assertion, so processed independently\r\n // of results of first name assertions.\r\n String lastName = person.getLastName();\r\n assertNotNull(lastName);\r\n\r\n // Executed only if the previous assertion is valid.\r\n assertAll(\"last name\",\r\n () -> assertTrue(lastName.startsWith(\"D\")),\r\n () -> assertTrue(lastName.endsWith(\"e\"))\r\n );\r\n }\r\n );\r\n }",
"@Test\n\tpublic void execute() throws Exception {\n\t\tassertTrue(argumentAnalyzer.getFlags().contains(Context.CHECK.getSyntax()));\n\t}",
"private static void findPropertyFunctionArgs(Context context, \n BasicPattern triples,\n List<Triple> propertyFunctionTriples,\n Map<Triple, PropertyFunctionInstance> pfInvocations)\n {\n\n for ( Triple pf : propertyFunctionTriples )\n {\n PropertyFunctionInstance pfi = magicProperty( context, pf, triples );\n pfInvocations.put( pf, pfi );\n }\n }",
"public void test19() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }",
"OrderByClauseArgs createOrderByClauseArgs();",
"@Test\n public void noSpacesBetweenKeywordsTest() {\n tester.yields(\"LaLaLaLaLaaaLi\", lala.EXPRESSION);\n }",
"public void test18() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }",
"@Test\n public void test_employmentTypeContainsKeywords_returnsTrue() {\n EmploymentTypeContainsKeywordsPredicate predicate =\n new EmploymentTypeContainsKeywordsPredicate(Collections.singletonList(\"F\"));\n assertTrue(predicate.test(new PersonBuilder().withEmploymentType(\"Full time\").build()));\n\n // One keyword\n predicate = new EmploymentTypeContainsKeywordsPredicate(Collections.singletonList(\"Internship\"));\n assertTrue(predicate.test(new PersonBuilder().withEmploymentType(\"Internship\").build()));\n\n // First word of a two word category\n predicate = new EmploymentTypeContainsKeywordsPredicate(Collections.singletonList(\"Part\"));\n assertTrue(predicate.test(new PersonBuilder().withEmploymentType(\"Part time\").build()));\n\n // Both parts of a two word category\n predicate = new EmploymentTypeContainsKeywordsPredicate(Collections.singletonList(\"Part time\"));\n assertTrue(predicate.test(new PersonBuilder().withEmploymentType(\"Part time\").build()));\n\n // Mixed-case keywords\n predicate = new EmploymentTypeContainsKeywordsPredicate(Collections.singletonList(\"iNteRnShiP\"));\n assertTrue(predicate.test(new PersonBuilder().withEmploymentType(\"Internship\").build()));\n }",
"@Test\n public void findsByKeyword() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"ttt\")\n );\n final Book book = base.books().add(\n \"@book{best2014, author=\\\"Walter\\\"}\"\n );\n final Quotes quotes = base.quotes();\n quotes.add(\n book, \"never give up and never think about bad things, Bobby\",\n \"99-101, 256-257, 315\"\n );\n MatcherAssert.assertThat(\n quotes.refine(\"bobby\").iterate(),\n Matchers.<Quote>iterableWithSize(1)\n );\n MatcherAssert.assertThat(\n quotes.refine(\"another-something\").iterate(),\n Matchers.<Quote>iterableWithSize(0)\n );\n }",
"public void assertArgument(T argument, Collection<T> premises);",
"@Test\n public void testAddCity_3args02() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"cityTest\";\n Pair coordenates = new Pair(41.200000, -8.000000);\n int points = 30;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertTrue(result);\n }",
"@Test\n public void allTrue() {\n assertTrue(getPredicateInstance(true, true).evaluate(getTestValue()),\n \"multiple true predicates evaluated to false\");\n assertTrue(getPredicateInstance(true, true, true).evaluate(getTestValue()),\n \"multiple true predicates evaluated to false\");\n }",
"@Test\n void testFromSortOrderTextWithProperties(SoftAssertions softly) {\n SortOrdersTextProperties properties = SortOrdersTextProperties.builder()\n .sortOrderArgsSeparator(\"::\")\n .caseSensitiveValue(\"cs\")\n .caseInsensitiveValue(\"cis\")\n .nullIsFirstValue(\"nif\")\n .nullIsLastValue(\"nil\")\n .build();\n\n SortOrder actual = SortOrder.fromSortOrderText(\"::asc::cis::nif\", properties);\n SortOrder expected = new SortOrder(null, true, true, true);\n softly.assertThat(actual).isEqualTo(expected);\n\n actual = SortOrder.fromSortOrderText(\"field1\", properties);\n expected = new SortOrder(\"field1\", true, true, false);\n softly.assertThat(actual).isEqualTo(expected);\n\n actual = SortOrder.fromSortOrderText(\"field2::desc\", properties);\n expected = new SortOrder(\"field2\", false, true, false);\n softly.assertThat(actual).isEqualTo(expected);\n\n actual = SortOrder.fromSortOrderText(\"field3::desc::cs\", properties);\n expected = new SortOrder(\"field3\", false, false, false);\n softly.assertThat(actual).isEqualTo(expected);\n\n actual = SortOrder.fromSortOrderText(\"field4::desc::cs::nif\", properties);\n expected = new SortOrder(\"field4\", false, false, true);\n softly.assertThat(actual).isEqualTo(expected);\n\n actual = SortOrder.fromSortOrderText(\"::desc\", properties);\n expected = new SortOrder(null, false, true, false);\n softly.assertThat(actual).isEqualTo(expected);\n }",
"@Test\n public void parse_validArgs_returnsFindTagCommand() {\n FindTagCommand expectedFindTagCommand =\n new FindTagCommand(new TagContainsKeywordsPredicate(Arrays.asList(\"owesMoney\", \"colleagues\")));\n assertParseSuccess(parser, \"owesMoney colleagues\", expectedFindTagCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n owesMoney \\n \\t colleagues \\t\", expectedFindTagCommand);\n }",
"@Test\n @Named(\"Expressions in tables\")\n @Order(3)\n public void _expressionsInTables() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExampleWithClosures{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | operation | result |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"a\\\" | [String s | s.toUpperCase] | \\\"A\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"B\\\" | [String s | s.toLowerCase] | \\\"b\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"supports closures as values\\\"{ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExampleWithClosures.forEach[\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"operation.apply(input) should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"]\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }",
"@Test\n public void testArguments() {\n System.out.println(\"arguments\");\n assertThat(Arguments.valueOf(\"d\"), is(notNullValue()));\n assertThat(Arguments.valueOf(\"i\"), is(notNullValue()));\n assertThat(Arguments.valueOf(\"num\"), is(notNullValue()));\n }",
"public void testConjunctionInQueryVarNotLastFailsWhenBindingsDoNotMatch() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"f(x)\", \"g(y)\" }, \"?- f(X), g(X), g(X)\");\n }",
"@Test\n\tpublic void testAddKeyword01() {\n\t\tKeywordSet result = new KeywordSet()\n\t\t\t.withKeyword(new Keyword().withContent(\"keyword1\"))\n\t\t\t.withKeyword(new Keyword().withContent(\"keywordTwo\"), \n\t\t\t\t\tnew Keyword().withContent(\"keywordIII\"));\n\t\tassertThat(((String)result.getKeyword().get(0).getContent().get(0)), is(\"keyword1\"));\n\t\tassertThat(((String)result.getKeyword().get(1).getContent().get(0)), is(\"keywordTwo\"));\n\t\tassertThat(((String)result.getKeyword().get(2).getContent().get(0)), is(\"keywordIII\"));\n\t}",
"static boolean optionalPositionalParameterTypes(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"optionalPositionalParameterTypes\")) return false;\n if (!nextTokenIs(b, LBRACKET)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, LBRACKET);\n r = r && normalParameterTypes(b, l + 1);\n r = r && optionalPositionalParameterTypes_2(b, l + 1);\n r = r && consumeToken(b, RBRACKET);\n exit_section_(b, m, null, r);\n return r;\n }",
"@Test\n public void testAnd() {\n if (true && addValue()) {\n assertThat(flag, equalTo(1));\n }\n\n // first expression is not satisfied conditions, then second expression not invoke\n if (false && addValue()) {\n assertThat(flag, equalTo(1));\n }\n }",
"@Test\n public void testSubsequentCallsToTheSameComponentWithDifferentVariables() throws ParseException\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_GOOD_PLUS_PERIOD);\n Map<String, Object> map1 = new HashMap<>();\n Map<String, Object> map2 = new HashMap<>();\n map1.put(VARIABLE_PERIOD, MORNING);\n map2.put(VARIABLE_PERIOD, AFTERNOON);\n assertEquals(GOOD_MORNING, evaluator.evaluate(map1));\n assertEquals(GOOD_AFTERNOON, evaluator.evaluate(map2));\n }",
"public void test17() throws Exception {\n helper1(new String[] {\"b\", \"i\"}\r\n , new String[] {\"I\", \"Z\"}\r\n , false, 0);\r\n }",
"@Test\n void lambda_condition_with_missing_right_operand() throws Exception {\n runner.run(\n \"TAKE 10 from numbers with val greater than AS var\",\n \"{numbers: [{val: 12}]}\",\n r -> r.containsValidationMessage(\"missing right operand in condition\"));\n }",
"public void testFindByKeyword() {\n }",
"@Test\n public void parse_validArgs_returnsFindCommand() {\n FindRecordCommand expectedFindCommand =\n new FindRecordCommand(new ResidencyContainsKeywordsPredicate(Arrays.asList(\"001\", \"Alice\")));\n assertParseSuccess(parser, \"001 Alice\", expectedFindCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n 001 \\n \\t Alice \\t\", expectedFindCommand);\n }",
"public void testConjunctionInQueryVarResolvesWhenBindingsMatch() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), f(x)], (?- f(X), g(X)), [[X <-- x]]]\");\n }",
"public static boolean arguments(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"arguments\")) return false;\n if (!nextTokenIs(b, LPAREN)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, LPAREN);\n r = r && arguments_1(b, l + 1);\n r = r && consumeToken(b, RPAREN);\n exit_section_(b, m, ARGUMENTS, r);\n return r;\n }",
"public static InvocationExpression invoke(Expression expression, Iterable<Expression> arguments) { throw Extensions.todo(); }",
"@Test\n public void addMultipleNonEmptyTest() {\n Set<String> s = this.createFromArgsTest(\"zero\", \"three\");\n Set<String> sExpected = this.createFromArgsRef(\"zero\", \"one\", \"two\",\n \"three\");\n\n s.add(\"two\");\n s.add(\"one\");\n\n assertEquals(sExpected, s);\n }",
"public static InvocationExpression invoke(Expression expression, Expression arguments[]) { throw Extensions.todo(); }",
"@Test\n void lambda_condition_with_missing_left_operand() throws Exception {\n runner.run(\n \"TAKE 10 from numbers with greater than val AS var\",\n \"{numbers: [{val: 12}]}\",\n r -> r.containsValidationMessage(\"missing left operand in condition\"));\n }",
"static boolean optionalPositionalFormalParameters(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"optionalPositionalFormalParameters\")) return false;\n if (!nextTokenIs(b, LBRACKET)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, LBRACKET);\n r = r && defaultFormalNamedParameter(b, l + 1);\n r = r && optionalPositionalFormalParameters_2(b, l + 1);\n r = r && optionalPositionalFormalParameters_3(b, l + 1);\n r = r && consumeToken(b, RBRACKET);\n exit_section_(b, m, null, r);\n return r;\n }",
"@Test\n public void whereStoreSucceed()\n {\n // arrange\n final String whereClause = \"validWhere\";\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(whereClause);\n\n // assert\n assertEquals(whereClause, Deencapsulation.getField(querySpecificationBuilder, \"where\"));\n }",
"@Test\n public void testAddCity_3args04() {\n\n System.out.println(\"addCity_3args\");\n String cityName = \"city0\";\n Pair coordenates = new Pair(41.243345, -8.674084);\n int points = 28;\n\n boolean result = sn10.addCity(coordenates, cityName, points);\n assertFalse(result);\n }",
"@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }",
"@Test\n public void testComponentExecutionWithJsonPathAndPlaceholderString() throws ParseException\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_BOOKS_FROM_AUTHOR_PLACEHOLDER);\n Map<String, Object> map = new HashMap<>();\n map.put(VARIABLE_STORE_JSON, JSON_STORE);\n map.put(VARIABLE_AUTHOR, J_R_R_TOLKIEN);\n assertEquals(THE_LORD_OF_THE_RINGS, evaluator.evaluate(map));\n }",
"static boolean attribute_arg_value_array(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"attribute_arg_value_array\")) return false;\n if (!nextTokenIs(b, L_BRACKET)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, L_BRACKET);\n r = r && attribute_arg_value_array_1(b, l + 1);\n r = r && consumeToken(b, R_BRACKET);\n exit_section_(b, m, null, r);\n return r;\n }",
"@Test\n @Named(\"Referencing members\")\n @Order(4)\n public void _referencingMembers() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"String field = \\\"Hello\\\"\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def method(){\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"\\\"World\\\"\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExampleWithMemberCalls{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | result |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| field | \\\"Hello\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| method() | \\\"World\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"supports closures as values\\\"{ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExampleWithMemberCalls.forEach[\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"input should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"] \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }",
"@Test\n public void testComponentExecutionWithJsonPathAndPlaceholderNumber() throws ParseException\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_BOOKS_MORE_EXPENSIVE_THAN_PLACEHOLDER);\n Map<String, Object> map = new HashMap<>();\n map.put(VARIABLE_STORE_JSON, JSON_STORE);\n map.put(VARIABLE_MIN_PRICE, MIN_PRICE_10);\n assertEquals(THE_LORD_OF_THE_RINGS, evaluator.evaluate(map));\n }",
"@Test\n public void testNamedParamWithImmediateValue() {\n List<Long> ids = Arrays.asList(10L, 5L);\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1, ids);\n\n validate(\" from Person hobj1 where hobj1.id in (:np1)\", ids);\n }",
"protected void testKeywords(Model model, int nkeywords) throws Exception {\n\t\tString sparqlQuery = String.format(\"SELECT ?investigation ?keyword where { ?investigation <%s> ?keyword.\\n ?investigation <%s> <%s> } \\n\",\n\t\t\t\tTOXBANK.HASKEYWORD.getURI(),\n\t\t\t\tRDF.type.getURI(),\n\t\t\t\tISA.Investigation.getURI());\n\t\tQuery query = QueryFactory.create(sparqlQuery);\n\t\tQueryExecution qe = QueryExecutionFactory.create(query,model);\n\t\tResultSet rs = qe.execSelect();\n\t\tint n = 0;\n\t\twhile (rs.hasNext()) {\n\t\t\tQuerySolution qs = rs.next();\n\t\t\t//RDFNode node = solution.get(vars.get(i));\n\t\t\tLiteral keyword = qs.getLiteral(\"keyword\");\n\t\t\tAssert.assertTrue(keyword.getString().startsWith(ISA.TBKeywordsNS));\n\t\t\tn++;\n\t\t}\n\t\tqe.close();\n\t\tAssert.assertEquals(nkeywords,n);\n\t}",
"boolean match(String mnemonic, List<ParameterType>[] parameters);",
"@Test(expectedExceptions=ArgumentsAreMutuallyExclusiveException.class)\n public void mutuallyExclusiveArgumentsTest() {\n String[] commandLine = new String[] {\"--foo\",\"5\"};\n\n parsingEngine.addArgumentSource( MutuallyExclusiveArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n MutuallyExclusiveArgProvider argProvider = new MutuallyExclusiveArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.foo.intValue(), 5, \"Argument is not correctly initialized\");\n\n // But when foo and bar come together, danger!\n commandLine = new String[] {\"--foo\",\"5\",\"--bar\",\"6\"};\n\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }",
"@Test\n\tpublic void testValuesClause() throws Exception {\n\t\tprepareTest(Arrays.asList(\"/tests/basic/data01endpoint1.ttl\", \"/tests/basic/data01endpoint2.ttl\"));\n\t\texecute(\"/tests/basic/query_values.rq\", \"/tests/basic/query_values.srx\", false);\n\t}",
"TestClassExecutionResult assertTestsExecuted(String... testNames);",
"@Test (dataProvider= \"My data provider\")\r\n\tpublic void TestCalcParamitarized(String in1,String Op, String in2,String Expec){ //.... 1- Parameterized test method -Define method input parameters-\r\n\t\tCalc(in1, Op, in2);\r\n\t\tassertResult(Expec);\t\t\r\n\t}",
"AnalyticExprArgs createAnalyticExprArgs();",
"public void testSuccesiveConjunctiveTermsOk() throws Exception\n {\n resolveAndAssertSolutions(\"[[f(a), g(b), h(c)], (?- f(X), g(Y), h(Z)), [[X <-- a, Y <-- b, Z <-- c]]]\");\n }",
"private static void preCheck(String condition, HashMap<String, Object> params, HashMap<String, Object> fields) throws ContractException {\n Bindings bind = engine.createBindings(); //A binding is used to link java and javascript.\n\n bind.putAll(params); //This adds the hashmaps of parameters to the engine.\n bind.putAll(fields); //This adds the fields.\n\n engine.setBindings(bind, ScriptContext.ENGINE_SCOPE); //This binds all the parameters to the engine.\n\n testSimpleAssertion(condition, \"Pre condition\"); //This then tests the condition.\n }",
"@Test\n public void trueAndFalseCombined() {\n assertFalse(getPredicateInstance(false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(false, null, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, true, false).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, true, false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n }",
"@TestProperties(name = \"test the parameters sorting\")\n\tpublic void testEmptyInclude(){\n\t}",
"static Boolean verifyArguments(String[] args)\n {\n if (args.length < 2)\n {\n return false;\n }\n \n return true;\n }",
"boolean hasKeywordPlan();",
"protected boolean hasKeywords(List<KeyValuePair> keywords, String... values) {\n\t\tList<String> keywordStrings = new ArrayList<String>();\r\n\t\tfor (KeyValuePair keyValuePair : keywords) {\r\n\t\t\tkeywordStrings.add(keyValuePair.getKey());\r\n\t\t}\r\n\t\tfor (String value : values) {\r\n\t\t\tif (!keywordStrings.contains(value)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"double expectDoubleParameter(String strParamName);",
"@Test\n public void parse_validArgs_returnsFindActivityTagCommand() {\n FindActivityTagCommand expectedFindActivityTagCommand =\n new FindActivityTagCommand(new ActivityTagContainsPredicate(Arrays.asList(\"Cheese\", \"Japan\")));\n assertParseSuccess(parser, \"Cheese Japan\", expectedFindActivityTagCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n Cheese \\n \\t Japan \\t\", expectedFindActivityTagCommand);\n }",
"private static String[] getKeywords(String[] args) {\n String[] keywords = new String[args.length - 2];\n for (int i = 2; i < args.length; i++) {\n keywords[i - 2] = args[i].toLowerCase();\n }\n return keywords;\n }",
"private boolean isAdditive(Node n) {\n List<ASTAdditiveExpression> lstAdditive = n.findDescendantsOfType(ASTAdditiveExpression.class);\n if (lstAdditive.isEmpty()) {\n return false;\n }\n // if there are more than 1 set of arguments above us we're not in the\n // append\n // but a sub-method call\n for (int ix = 0; ix < lstAdditive.size(); ix++) {\n ASTAdditiveExpression expr = lstAdditive.get(ix);\n if (expr.getParentsOfType(ASTArgumentList.class).size() != 1) {\n return false;\n }\n }\n return true;\n }",
"public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}",
"@Test\r\n\tpublic void lambdaExpressions() {\n\t\tassertTrue(() -> \"\".isEmpty(), \"string should be empty\");\r\n\t\t// lambda expression for assertion message\r\n\t\tassertEquals(\"foo\", \"foo\", () -> \"message is lazily evaluated\");\r\n\t}",
"public void testParameterize() throws Exception {\n Map parameters1 = new HashMap();\n\n Object[] test_values = {\n new Object[]{\"/foo/bar\", parameters1, \"/foo/bar\"},\n };\n\n for (int i = 0; i < test_values.length; i++) {\n Object tests[] = (Object[]) test_values[i];\n String test = (String) tests[0];\n Map parameters = (Map) tests[1];\n String expected = (String) tests[2];\n\n String result = NetUtils.parameterize(test, parameters);\n String message = \"Test \" + \"'\" + test + \"'\";\n assertEquals(message, expected, result);\n }\n\n Map parameters2 = new HashMap();\n parameters2.put(\"a\", \"b\");\n parameters2.put(\"c\", \"d\");\n \n String test = \"bar\";\n String expected1 = \"bar?a=b&c=d\";\n String expected2 = \"bar?c=d&a=b\";\n \n String message = \"Test \" + \"'\" + test + \"'\";\n \n String result = NetUtils.parameterize(test, parameters2); \n\n if (expected1.equals(result)) {\n assertEquals(message, expected1, result); \n } else {\n assertEquals(message, expected2, result); \n }\n }",
"public void testGetOrder() {\n }",
"public static boolean isExpressionValid(String[] input) {\n\t\ttry {\n\t\t\tif (isFirstArgumentValid(input[0].toUpperCase()) && isSecondArgumentValid(input[1])\n\t\t\t\t\t&& isThirdArgumentValid(input[2].toUpperCase()) && isFourthArgumentValid(input[3].toUpperCase())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Something wrong with the input parameters\");\n\t\t}\n\t\treturn false;\n\t}",
"public void test17_33() throws Exception {\n helperPass(new String[] { \"p.Foo\" }, \"getX\", \"p.Foo\", 14, 17, 14, 21);\n }",
"@Test\n @Named(\"accessing values\")\n @Order(1)\n public void _accessingValues() throws Exception {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"package bootstrap\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"describe \\\"Example Tables\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"def myExamples{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| input | result | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hello World\\\" | \\\"HELLO WORLD\\\" | \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"| \\\"Hallo Welt\\\" | \\\"HALLO WELT\\\" |\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"} \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"fact \\\"can be accessed via the table name\\\"{\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"myExamples.forEach[ \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"input.toUpperCase should be result\");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"] \");\n _builder.newLine();\n _builder.append(\" \");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n this._behaviorExecutor.executesSuccessfully(_builder);\n }",
"@Override\n\tpublic void before(Method method, Object[] args, Object obj) throws Throwable {\n\t\tMap<String, Object> conditionMap = new HashMap<String, Object>();\n\t\t\n\t\tList<Condition> conditionList = new ArrayList<Condition>();\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (args[i] instanceof Search) {\n\t\t\t\tSet<String> nameSet = new HashSet<String>();\n\t\t\t\tCondition c = null;\n\t\t\t\tServletRequest request = RequestContext.getCurrentContext().getRequest();\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tEnumeration enu = request.getParameterNames();\n\t\t\t\twhile (enu.hasMoreElements()) {\n\t\t\t\t\tString name = (String)enu.nextElement();\n\t\t\t\t\tString value = request.getParameter(name);\n\t\t\t\t\tList<String> params = Arrays.asList(\"routerName\", \"methods\", \"confirmMethods\", \"gridId\");\n\t\t\t\t\tif (params.contains(name)) {\n\t\t\t\t\t\tc = new Condition();\n\t\t\t\t\t\tc.setName(name);\n\t\t\t\t\t\tc.setValue(value);\n\t\t\t\t\t\tconditionMap.put(name, value);\n\t\t\t\t\t\tnameSet.add(c.getName());\n\t\t\t\t\t\tconditionList.add(c);\n\t\t\t\t\t} else if (name.toLowerCase().startsWith(SEARCH_PREFIX) \n\t\t\t\t\t\t\t&& (value != null && (!value.equals(\"\")))) {\n//\t\t\t\t\t\tboolean has = nameSet.contains(name.split(\"_\")[1]);\n//\t\t\t\t\t\tif (name.toLowerCase().endsWith(SEARCH_SUFFIX_START)) {\n//\t\t\t\t\t\t\tif (has) {\n//\t\t\t\t\t\t\t\tfor (Condition o : conditionList) {\n//\t\t\t\t\t\t\t\t\tif (o.getName().equals(name.split(\"_\")[1])) {\n//\t\t\t\t\t\t\t\t\t\tc = o;\n//\t\t\t\t\t\t\t\t\t\tconditionList.remove(o);\n//\t\t\t\t\t\t\t\t\t\tbreak;\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} else {\n//\t\t\t\t\t\t\t\tc = new MultiCondition();\n//\t\t\t\t\t\t\t\t((MultiCondition)c).setName(name.split(\"_\")[1]);\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (((MultiCondition) c).getOperateType() == 0) {\n//\t\t\t\t\t\t\t\t((MultiCondition) c).setOperateType(ConditionOperator.GTE);\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t((MultiCondition)c).setValue(value);\n//\t\t\t\t\t\t} else if (name.toLowerCase().endsWith(SEARCH_SUFFIX_END)) {\n//\t\t\t\t\t\t\tif (has) {\n//\t\t\t\t\t\t\t\tfor (Condition o : conditionList) {\n//\t\t\t\t\t\t\t\t\tif (o.getName().equals(name.split(\"_\")[1])) {\n//\t\t\t\t\t\t\t\t\t\tc = o;\n//\t\t\t\t\t\t\t\t\t\tconditionList.remove(o);\n//\t\t\t\t\t\t\t\t\t\tbreak;\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} else {\n//\t\t\t\t\t\t\t\tc = new MultiCondition();\n//\t\t\t\t\t\t\t\t((MultiCondition)c).setName(name.split(\"_\")[1]);\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (((MultiCondition) c).getOperateType2() == 0) {\n//\t\t\t\t\t\t\t\t((MultiCondition)c).setOperateType2(ConditionOperator.LTE);\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t((MultiCondition)c).setValue2(value);\n//\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tc = new Condition();\n\t\t\t\t\t\t\tc.setName(name.split(\"_\")[1]);\n//\t\t\t\t\t\t\tif (c.getOperateType() == 0) {\n//\t\t\t\t\t\t\t\tc.setOperateType(ConditionOperator.EQ);\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (value.indexOf(\":\") > 0 && value.length() == 19) {\n\t\t\t\t\t\t\t\tc.setValue(DateUtil.formatTimestampToDate(value));\n\t\t\t\t\t\t\t} else if (\"on\".equals(value)) {\n\t\t\t\t\t\t\t\tvalue = \"1\";\n\t\t\t\t\t\t\t\tc.setValue(value);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tc.setValue(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tconditionMap.put(name, value);\n//\t\t\t\t\t\t}\n\t\t\t\t\t\tnameSet.add(c.getName());\n\t\t\t\t\t\tconditionList.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (conditionList.size() > 0) {\n\t\t\t\t\t((Search)args[i]).setConditionList(conditionList);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSearchConditionFilter s = method.getAnnotation(SearchConditionFilter.class);\n\t\tif (s != null && s.limits() != null && s.limits().length != 0) {\n\t\t\t//TODO 处理limits,只按照limits限制的条件查询,若不限制则默认全部(即不处理)\n\t\t\tList<Condition> removes = new ArrayList<Condition>();\n\t\t\tList<String> limitList = Arrays.asList(s.limits());\n\t\t\tfor (Condition cond : conditionList) {\n\t\t\t\tif (!limitList.contains(cond.getName())) {\n\t\t\t\t\tremoves.add(cond);\n\t\t\t\t}\n\t\t\t}\n\t\t\tconditionList.removeAll(removes);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (args[i] instanceof Model && conditionList.size() > 0) {\n\t\t\t\t((Model)args[i]).addAttribute(\"conditions\", conditionMap);\n\t\t\t\tfor (Iterator<Condition> ite = conditionList.iterator(); ite.hasNext();) {\n\t\t\t\t\tCondition cond = ite.next();\n\t\t\t\t\t((Model)args[i]).addAttribute(SEARCH_PREFIX + cond.getName(), conditionMap.get(SEARCH_PREFIX + cond.getName()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n//\t\tfor (int i = 0; i < args.length; i++) {\n//\t\t\tif (args[i] instanceof Model && conditionList.size() > 0) {\n//\t\t\t\tfor (Iterator<Condition> ite = conditionList.iterator(); ite.hasNext();) {\n//\t\t\t\t\tCondition cond = ite.next();\n//\t\t\t\t\tif (cond instanceof MultiCondition) {\n//\t\t\t\t\t\t((Model)args[i]).addAttribute(SEARCH_PREFIX + cond.getName() + SEARCH_SUFFIX_START, cond.getValue());\n//\t\t\t\t\t\t((Model)args[i]).addAttribute(SEARCH_PREFIX + cond.getName() + SEARCH_SUFFIX_END, ((MultiCondition)cond).getValue2());\n//\t\t\t\t\t\tconditionMap.put(SEARCH_PREFIX + cond.getName() + SEARCH_SUFFIX_START, cond.getValue());\n//\t\t\t\t\t\tconditionMap.put(SEARCH_PREFIX + cond.getName() + SEARCH_SUFFIX_END, ((MultiCondition)cond).getValue2());\n//\t\t\t\t\t} else {\n//\t\t\t\t\t\t((Model)args[i]).addAttribute(SEARCH_PREFIX + cond.getName(), cond.getValue());\n//\t\t\t\t\t\tconditionMap.put(SEARCH_PREFIX + cond.getName(), cond.getValue());\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t((Model)args[i]).addAttribute(\"conditions\", conditionMap);\n//\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t\t//BusinessCallController、listcontent.ftl、BackendHelper、admin.common.js、index.ftl(resume)、\n\t\t//BasicBusinessService、ResumeBusinessService、、、UserBusinessService\n//\t\tString simpleClassName = obj.getClass().getSimpleName();\n//\t\tString beanId = StringUtil.convertFirstChar2LowerCase(simpleClassName.replace(\"Controller\", \"Helper\"));\n//\t\tBaseHelper helper = SpringApplicationContext.getBean(beanId);\n//\t\t\n//\t\tif (null != helper) {//设置Condition中value的类型\n//\t\t\thelper.getConditionValue(propertyName, value);\n//\t\t}\n\t}",
"@Test\n\tpublic void testBindClause() throws Exception {\n\t\tprepareTest(Arrays.asList(\"/tests/basic/data01endpoint1.ttl\", \"/tests/basic/data01endpoint2.ttl\"));\n\t\texecute(\"/tests/basic/query_bind.rq\", \"/tests/basic/query_bind.srx\", false);\n\t}",
"@Test\n public void testPredicate2() throws Exception {\n final RuleDescr rule = ((RuleDescr) (parse(\"rule\", \"rule X when Foo(eval( $var.equals(\\\"xyz\\\") )) then end\")));\n final PatternDescr pattern = ((PatternDescr) (getDescrs().get(0)));\n final List<?> constraints = pattern.getConstraint().getDescrs();\n TestCase.assertEquals(1, constraints.size());\n final ExprConstraintDescr predicate = ((ExprConstraintDescr) (constraints.get(0)));\n TestCase.assertEquals(\"eval( $var.equals(\\\"xyz\\\") )\", predicate.getExpression());\n }",
"@ParameterizedTest\n @NullAndEmptySource\n @ValueSource(strings = {CONST_STRING1, CONST_STRING2, \"This is three!\"}) // If variables used must be constants\n public void anotherParamTest(String params) {\n if (params == null || params.equals(\"\")) {\n System.out.println(\"Empty or null param: \" + params);\n } else {\n System.out.println(\"And this: \" + params);\n }\n }",
"@Test\n public void testQueryMore3() throws Exception {\n testQueryMore(false, false);\n }",
"public abstract ImmutableSet<String> getExplicitlyPassedParameters();",
"@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 }",
"AExpArgs createAExpArgs();",
"public void testConjunctionInQueryVarUnifyNotLastFailsWhenBindingsDoNotMatch() throws Exception\n {\n resolveAndAssertFailure(new String[] {}, \"?- X = b, X = a, X = a\");\n }",
"@Test\n void include() {\n DocServiceFilter include = (plugin, service, method) -> true;\n DocServiceFilter exclude = (plugin, service, method) -> false;\n Map<String, ServiceInfo> services = services(include, exclude);\n assertThat(services).containsOnlyKeys(FOO_NAME, HELLO_NAME);\n\n // 2. Exclude specified.\n exclude = DocServiceFilter.ofMethodName(FOO_NAME, \"bar2\");\n services = services(include, exclude);\n assertThat(services).containsOnlyKeys(FOO_NAME, HELLO_NAME);\n List<String> methods = methods(services);\n\n assertThat(methods).containsExactlyInAnyOrder(\"bar1\", \"bar3\", \"bar4\", \"bar5\", \"bar6\");\n\n // 3-1. Include serviceName specified.\n include = DocServiceFilter.ofServiceName(FOO_NAME);\n // Set the exclude to the default.\n exclude = (plugin, service, method) -> false;\n services = services(include, exclude);\n assertThat(services).containsOnlyKeys(FOO_NAME);\n\n methods = methods(services);\n assertThat(methods).containsExactlyInAnyOrder(\"bar1\", \"bar2\", \"bar3\", \"bar4\", \"bar5\", \"bar6\");\n\n // 3-2. Include methodName specified.\n include = DocServiceFilter.ofMethodName(FOO_NAME, \"bar2\");\n services = services(include, exclude);\n assertThat(services).containsOnlyKeys(FOO_NAME);\n\n methods = methods(services);\n assertThat(methods).containsOnlyOnce(\"bar2\");\n\n // 4-1. Include and exclude specified.\n include = DocServiceFilter.ofServiceName(FOO_NAME);\n exclude = DocServiceFilter.ofMethodName(FOO_NAME, \"bar2\").or(DocServiceFilter.ofMethodName(\"bar3\"));\n services = services(include, exclude);\n assertThat(services).containsOnlyKeys(FOO_NAME);\n\n methods = methods(services);\n assertThat(methods).containsExactlyInAnyOrder(\"bar1\", \"bar4\", \"bar5\", \"bar6\");\n\n // 4-2. Include and exclude specified.\n include = DocServiceFilter.ofMethodName(FOO_NAME, \"bar2\");\n exclude = DocServiceFilter.ofServiceName(FOO_NAME);\n services = services(include, exclude);\n assertThat(services.size()).isZero();\n }"
] |
[
"0.5832374",
"0.5704368",
"0.5605504",
"0.55712354",
"0.5483472",
"0.54776365",
"0.5450948",
"0.53603464",
"0.53375244",
"0.5230184",
"0.5162623",
"0.5109156",
"0.50666517",
"0.50279176",
"0.50115967",
"0.496968",
"0.49108875",
"0.48817882",
"0.48567387",
"0.48301443",
"0.4828105",
"0.4809276",
"0.48012176",
"0.47864515",
"0.4776995",
"0.47663277",
"0.47548574",
"0.4739354",
"0.47388393",
"0.47368595",
"0.47340587",
"0.473102",
"0.47285566",
"0.47227213",
"0.47181293",
"0.4707581",
"0.47019997",
"0.46822697",
"0.4678241",
"0.46779224",
"0.46668914",
"0.46611798",
"0.46540463",
"0.46507576",
"0.46506",
"0.4648991",
"0.46476337",
"0.46464023",
"0.46293324",
"0.46035048",
"0.46034014",
"0.46031675",
"0.4602763",
"0.46019268",
"0.45926356",
"0.45847794",
"0.455916",
"0.45522058",
"0.4549515",
"0.45494652",
"0.45470855",
"0.4536129",
"0.45356852",
"0.45283127",
"0.45277894",
"0.45248863",
"0.45212206",
"0.45189306",
"0.45158508",
"0.45124686",
"0.4499524",
"0.44974482",
"0.4491771",
"0.44822747",
"0.44803983",
"0.44800648",
"0.44754398",
"0.44639793",
"0.4463842",
"0.4461025",
"0.4458781",
"0.4457528",
"0.44559088",
"0.44556338",
"0.44506687",
"0.44505796",
"0.44490013",
"0.44351897",
"0.4432008",
"0.44278583",
"0.44222268",
"0.44161734",
"0.44140625",
"0.44010738",
"0.44005907",
"0.43979183",
"0.43965796",
"0.43904117",
"0.4387075",
"0.43851122"
] |
0.5073293
|
12
|
Check that numbers that are not table fields don't get truncated to integer because the database doesn't know their scale
|
@Test
public void db_query_scale() throws Exception
{
Template t = T("<?for row in db.query('select 0.5 as x from dual')?><?print row.x > 0?><?end for?>");
Connection db = getDatabaseConnection();
if (db != null)
checkOutput("True", t, V("db", db));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Test\n public void test_column_type_detection_integer_04() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDunsignedInt), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertFalse(info.isSigned());\n }",
"@Test\n public void test_column_type_detection_integer_02() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDint), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }",
"@Test\n public void test_column_type_detection_integer_03() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDlong), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }",
"@Test\n public void test_column_type_detection_integer_05() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDunsignedLong), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertFalse(info.isSigned());\n }",
"@Test\n public void test_column_type_detection_integer_01() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactoryExtra.intToNode(1234), true, Types.BIGINT, Long.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }",
"@Test\n public void test_column_type_detection_integer_07() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDunsignedShort), true, Types.INTEGER, Integer.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertFalse(info.isSigned());\n }",
"@Test\n public void test_column_type_detection_integer_06() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"1234\", XSDDatatype.XSDshort), true, Types.INTEGER, Integer.class.getCanonicalName());\n Assert.assertEquals(0, info.getScale());\n Assert.assertTrue(info.isSigned());\n }",
"long getNumericField();",
"private boolean hasNumberThreshold() {\r\n return entity.getActualNumber() < entity.getTheoreticalNumber();\r\n }",
"@Test(timeout = 4000)\n public void test128() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"create unique indedeltesetciisteam(int, inputstream, long)\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"int\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }",
"@Test\n\tpublic void testInt6() {\n\t\tTextField intText = new TextField(\"23.0\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}",
"@Test\n\tpublic void testInt5() {\n\t\tTextField intText = new TextField(\"23.4\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}",
"private boolean noRepeatedNumbersInColumns() {\n return !this.hasAnyRepeatedInColumn();\n }",
"public int getMaxFieldSize() throws SQLException {\n return 0;\r\n }",
"@Test(timeout = 4000)\n public void test48() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader(pipedWriter0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n SQLUtil.renderNumber(streamTokenizer0);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBCheckConstraint dBCheckConstraint0 = new DBCheckConstraint((String) null, true, defaultDBTable0, \"- 0\");\n StringBuilder stringBuilder0 = new StringBuilder();\n stringBuilder0.append((-2812.6353F));\n SQLUtil.appendConstraintName((DBConstraint) dBCheckConstraint0, stringBuilder0);\n assertEquals(\"-2812.6353\", stringBuilder0.toString());\n }",
"@Test(timeout = 4000)\n public void test118() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance((-280560843), \"\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"ORDINAL_POSITION\", (DBTable) null, dBDataType0);\n String string0 = SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0);\n assertEquals(\"\", string0);\n }",
"@Test(timeout = 4000)\n public void test38() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 744.4583836715912;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n streamTokenizer0.ordinaryChar((-45));\n String string1 = SQLUtil.normalize(\"744.4583836715912\", false);\n assertTrue(string1.equals((Object)string0));\n }",
"public static boolean isNumberRatio(Object val) throws BaseException\n {\n \tif(val instanceof Number && (NumberUtil.toDouble(val) >= 0 && NumberUtil.toDouble(val) <= 100))\n \t{\n \t return true;\n \t}\n \treturn false;\n }",
"@Test(timeout = 4000)\n public void test58() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n DBCatalog dBCatalog0 = new DBCatalog();\n DBSchema dBSchema0 = new DBSchema(\"G4^{5XtQ94G\", dBCatalog0);\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"getFloat(String)\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"String\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }",
"@Test\n public void testConversionsLimits() throws Exception {\n LOG.info(\"TEST CQL CONVERSIONS LIMITS - Start\");\n\n String createStmt = \"CREATE TABLE test_varint\" +\n \"(h1 varint, r1 varint, v1 tinyint, v2 smallint, v3 int, v4 bigint, \" +\n \"v5 float, v6 double, primary key(h1, r1));\";\n session.execute(createStmt);\n\n TreeSet<BigInteger> varints = new TreeSet<BigInteger>();\n\n BigInteger varintHash;\n\n // Create a unique varint hash.\n do {\n varintHash = new BigInteger(getRandomVarInt());\n } while (!varints.add(varintHash));\n\n // Test the minimum values allowed for each integer type.\n final String insertStmtFmt =\n \"INSERT INTO test_varint (h1, r1, v1, v2, v3, v4, v5, v6) \" +\n \"VALUES (%s, 1, %d, %d, %d, %d, %e, %e);\";\n\n String insertStmt = String.format(insertStmtFmt, varintHash.toString(), -128, -32768,\n Integer.MIN_VALUE, Long.MIN_VALUE, Float.MIN_VALUE,\n Double.MIN_VALUE);\n session.execute(insertStmt);\n\n final String selectStmtFmt =\n \"SELECT h1, v1, v2, v3, v4, v5, v6 FROM test_varint WHERE h1 = %s;\";\n String selectStmt = String.format(selectStmtFmt, varintHash.toString());\n LOG.info(\"selectStmt: \" + selectStmt);\n\n ResultSet rs = session.execute(selectStmt);\n assertEquals(1, rs.getAvailableWithoutFetching());\n\n Row row = rs.one();\n assertEquals(varintHash, row.getVarint(\"h1\"));\n assertEquals(-128, row.getByte(\"v1\"));\n assertEquals(-32768, row.getShort(\"v2\"));\n assertEquals(Integer.MIN_VALUE, row.getInt(\"v3\"));\n assertEquals(Long.MIN_VALUE, row.getLong(\"v4\"));\n assertEquals(Float.MIN_VALUE, row.getFloat(\"v5\"), Float.MIN_VALUE);\n assertEquals(Double.MIN_VALUE, row.getDouble(\"v6\"), Double.MIN_VALUE);\n\n // Test the maximum values allowed for each integer type.\n insertStmt = String.format(insertStmtFmt, varintHash.toString(), 127, 32767,\n Integer.MAX_VALUE, Long.MAX_VALUE, Float.MAX_VALUE, Double.MAX_VALUE);\n session.execute(insertStmt);\n\n selectStmt = String.format(selectStmtFmt, varintHash.toString());\n\n rs = session.execute(selectStmt);\n assertEquals(1, rs.getAvailableWithoutFetching());\n\n row = rs.one();\n assertEquals(varintHash, row.getVarint(\"h1\"));\n assertEquals(127, row.getByte(\"v1\"));\n assertEquals(32767, row.getShort(\"v2\"));\n assertEquals(Integer.MAX_VALUE, row.getInt(\"v3\"));\n assertEquals(Long.MAX_VALUE, row.getLong(\"v4\"));\n assertEquals(Float.MAX_VALUE, row.getFloat(\"v5\"), Float.MAX_VALUE / 1e5);\n assertEquals(Double.MAX_VALUE, row.getDouble(\"v6\"), Double.MAX_VALUE / 1e5);\n\n final String dropStmt = \"DROP TABLE test_varint;\";\n session.execute(dropStmt);\n\n LOG.info(\"TEST CQL CONVERSIONS LIMITS - End\");\n }",
"@Test(timeout = 4000)\n public void test59() throws Throwable {\n System.setCurrentTimeMillis((-27L));\n DBCatalog dBCatalog0 = new DBCatalog();\n DBSchema dBSchema0 = new DBSchema(\" Y*-X>Nz.q@~K^o8Z]v\", dBCatalog0);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\" Y*-X>Nz.q@~K^o8Z]v\", dBSchema0);\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"getObjectImpl(int,Map)\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"int\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }",
"boolean hasIntSize();",
"private static boolean isNorm32Regular(long paramLong)\n/* */ {\n/* 332 */ return paramLong < 4227858432L;\n/* */ }",
"@Test(timeout = 4000)\n public void test005() throws Throwable {\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"truncate\", (DBTable) null, 205, \"\");\n String string0 = SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0);\n assertEquals(\"\", string0);\n }",
"public static boolean esNumerico (int tipoSQL) {\n\t \n\t switch (tipoSQL) {\n\t \tcase Types.BIGINT :\n\t \tcase Types.DECIMAL :\n\t \tcase Types.DOUBLE :\n\t \tcase Types.FLOAT :\n\t \tcase Types.INTEGER :\n\t \tcase Types.NUMERIC :\n\t \tcase Types.REAL :\n\t \tcase Types.SMALLINT :\n\t \tcase Types.TINYINT :\n\t \t return true;\n\t }\n\t return false;\n\t}",
"private void validate(BigDecimal value) {\n checkArgument(value.scale() <= MAXIMAL_DECIMAL_PLACES_COUNT,\n \"can't transform more than %s decimal places for value %s\", MAXIMAL_DECIMAL_PLACES_COUNT, value);\n\n checkArgument(valueLessThatLongMax(value),\n \"can't transform numbers greater than Long.MAX_VALUE for value %s\", value);\n\n checkArgument(valueGreaterThanOrEqualToZero(value),\n \"can't transform negative numbers for value %s\", value);\n }",
"@Test(timeout = 4000)\n public void test114() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"(, 4$, 4$, 4$, 4$, 4$, 4$, , )\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }",
"private boolean isFieldNumeric( String fsComponent, String fsField )\n {\n try\n {\n VSMetaQuery loVsmq =\n AMSDataObject.constructMetaQueryFromMetaInfoTable( fsComponent, getSession() ) ;\n\n VSMetaColumn loColumn = loVsmq.getMetaColumn( fsField ) ;\n\n /*\n * Versata returns true if the data type is Yes/No\n * In that case we return false\n */\n if ( loColumn.getColumnType() == DataConst.BIT )\n {\n return false ;\n } /* end if ( loColumn.getColumnType() == DataConst.BIT ) */\n else\n {\n return loColumn.isNumberType() ;\n } /* end else */\n } /* end try */\n catch ( Exception loEx )\n {\n return false ;\n } /* end catch */\n }",
"@Test\n public void test_level_normalization_02() {\n Assert.assertEquals(JdbcCompatibility.LOW, JdbcCompatibility.normalizeLevel(Integer.MIN_VALUE));\n Assert.assertEquals(JdbcCompatibility.HIGH, JdbcCompatibility.normalizeLevel(Integer.MAX_VALUE));\n }",
"void checkRange(String value) throws TdtTranslationException {\r\n\t\tif (!hasRange)\r\n\t\t\treturn;\r\n\t\tLong intValue;\r\n\t\ttry {\r\n\t\t\tintValue = Long.valueOf(Long.parseLong(value));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new TdtTranslationException(\"Cannot convert \" + value\r\n\t\t\t\t\t+ \" to ulong in field \" + getId());\r\n\t\t}\r\n\t\tcheckRange(intValue);\r\n\t}",
"@Test(timeout = 4000)\n public void test127() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"CONSTRAINT 4O)ZgZ_/TD! PRIMARY KEY ()\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }",
"@Test\n\tpublic void testInt4() {\n\t\tTextField intText = new TextField(\"23abc\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}",
"public boolean checkNumber() {\n\t\treturn true;\n\t}",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n byte[] byteArray0 = new byte[1];\n ValueLobDb valueLobDb0 = ValueLobDb.createSmallLob(1459, byteArray0, (byte)0);\n Reader reader0 = valueLobDb0.getReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(reader0);\n streamTokenizer0.nval = 32768.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"32768\", string0);\n }",
"@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }",
"public static boolean isAllowedNumberType(Field field)\n\t{\n\t\treturn isAllowedNumberType(field.getType());\n\t}",
"private int getShulkerBoxExcess(String line) {\n line = line.replaceAll(\"[^0-9]\",\"\");\n if (line.isEmpty()) {\n line = \"0\";\n }\n return Integer.valueOf(line);\n }",
"@Test(timeout = 4000)\n public void test113() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"()\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }",
"public boolean isLong() {\n return field.getJavaType() == FieldDescriptor.JavaType.LONG && !isInt52();\n }",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n DBDataType dBDataType0 = DBDataType.getInstance((-503007620), \"pw?(g[&h!X$;C/\");\n Integer integer0 = new Integer(22);\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn((String) null, (DBTable) null, dBDataType0, integer0);\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"PW?(G[&H!X$;C/(22)\", stringBuilder0.toString());\n }",
"private boolean correctRowNumber()\n {\n \n extraRows = 0;\n final int oldSize = gradeAndSemesterList.size()-1+extraRows;\n \n \n if(gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type2.ordinal()< 2)\n extraRows += 2 - gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type2.ordinal();\n \n extraRows += 3*(this.extraGradeLevel-gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type1.intValue());\n //Debug.line(\"extra rows post correction:\"+extraRows);\n \n \n this.fireTableRowsDeleted(gradeAndSemesterList.size()-1+extraRows, oldSize);\n return true; \n }",
"@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}",
"@Test(timeout = 4000)\n public void test071() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(550, \"deletesetasciistream(int, inputstream, long)\");\n Integer integer0 = RawTransaction.COMMIT;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"+NqI\", defaultDBTable0, dBDataType0, integer0);\n defaultDBColumn0.setFractionDigits(integer0);\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"DELETESETASCIISTREAM(INT, INPUTSTREAM, LONG)(0,0)\", stringBuilder0.toString());\n }",
"private boolean check_int_only(Question q)\n\t{\n\t\tNode val = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='num_value_int_only']/value\");\n\t\treturn val.getText().equals(\"1\") ? true : false;\n\t}",
"private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }",
"public void setMaximumIntegerDigits(int newValue) {\n super.setMaximumIntegerDigits(Math.min(newValue, DOUBLE_INTEGER_DIGITS));\n }",
"@Test(timeout = 4000)\n public void test129() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"(\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Illegal column type format: (\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test34() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\" R[~rnsGR(#-\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Illegal column type format: R[~rnsGR(#-\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public void normalizeTable() {\r\n for (int i = 0; i < this.getLogicalColumnCount(); i++) {\r\n normalizeColumn(i);\r\n }\r\n }",
"@Test\n public void test_column_type_detection_decimal() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"123.4\", XSDDatatype.XSDdecimal), true, Types.DECIMAL, BigDecimal.class.getCanonicalName());\n Assert.assertEquals(16, info.getScale());\n Assert.assertEquals(16, info.getPrecision());\n Assert.assertTrue(info.isSigned());\n }",
"int getWrongScale();",
"fi.kapsi.koti.jpa.nanopb.Nanopb.IntSize getIntSize();",
"public boolean isNormalSize() {\n\t\treturn isLenWithin(5, 10);\n\t}",
"boolean isInt(TextField input);",
"public boolean ifFieldTooBig(){\n if (SphericalUtil.computeArea(mMapInterface.getPathFrame()) > MAX_FIELD_SIZE) { //if the field is too big\n Toast.makeText(getContext(), getString(R.string.field_too_big), Toast.LENGTH_LONG).show();\n return true;\n }\n return false;\n }",
"private void validateValue()\r\n {\r\n try\r\n {\r\n Long.parseLong(getText());\r\n }\r\n catch (NumberFormatException ex)\r\n {\r\n setText(\"\");\r\n }\r\n \r\n }",
"@Test(timeout = 4000)\n public void test070() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n StringBuilder stringBuilder0 = new StringBuilder();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"alter table\", defaultDBTable0, 41, \"\");\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"\", stringBuilder0.toString());\n }",
"public void fixmetestPositiveIntegerArray() {\n\n fail(\"Array conversions not implemented yet.\");\n\n Object value;\n final int[] intArray = {};\n final int[] intArray1 = { 0 };\n final int[] intArray2 = { 0, 10 };\n\n value = LocaleConvertUtils.convert(\"{ }\", intArray.getClass());\n checkIntegerArray(value, intArray);\n\n value = LocaleConvertUtils.convert(\"0\", intArray.getClass());\n checkIntegerArray(value, intArray1);\n value = LocaleConvertUtils.convert(\" 0 \", intArray.getClass());\n checkIntegerArray(value, intArray1);\n value = LocaleConvertUtils.convert(\"{ 0 }\", intArray.getClass());\n checkIntegerArray(value, intArray1);\n\n value = LocaleConvertUtils.convert(\"0,10\", intArray.getClass());\n checkIntegerArray(value, intArray2);\n value = LocaleConvertUtils.convert(\"0 10\", intArray.getClass());\n checkIntegerArray(value, intArray2);\n value = LocaleConvertUtils.convert(\"{0,10}\", intArray.getClass());\n checkIntegerArray(value, intArray2);\n value = LocaleConvertUtils.convert(\"{0 10}\", intArray.getClass());\n checkIntegerArray(value, intArray2);\n value = LocaleConvertUtils.convert(\"{ 0, 10 }\", intArray.getClass());\n checkIntegerArray(value, intArray2);\n value = LocaleConvertUtils.convert(\"{ 0 10 }\", intArray.getClass());\n checkIntegerArray(value, intArray2);\n }",
"@Test(timeout = 4000)\n public void test075() throws Throwable {\n Object[] objectArray0 = SQLUtil.parseColumnTypeAndSize(\"\\\"\");\n assertEquals(1, objectArray0.length);\n }",
"@Override\n\tpublic boolean isSigned(int arg0) throws SQLException {\n\t\treturn false;\n\t}",
"public int validateInt(String tableName,String fieldName, JTextField textFieldName)\r\n {\r\n try {\r\n stmt = con.createStatement();\r\n String SQL = \"SELECT * FROM \" + tableName;\r\n ResultSet rs = stmt.executeQuery(SQL);\r\n while(rs.next())\r\n {\r\n int value = rs.getInt(fieldName);\r\n if(value == parseInt(textFieldName.getText()))\r\n {\r\n return 1;\r\n }\r\n }\r\n } \r\n catch (NumberFormatException | SQLException ex) {\r\n JOptionPane.showMessageDialog(null,\"Invalid Entry\\n(\" + ex + \")\");\r\n }\r\n return 0;\r\n \r\n }",
"int toInteger(String value) {\n value = value.trim();\n if (\"9999\".equals(value)) value = \"\";\n return (!\"\".equals(value)\n ? new Integer(value).intValue()\n : Tables.INTNULL);\n }",
"@Override\n\tpublic int getPrecision(int arg0) throws SQLException {\n\t\treturn 0;\n\t}",
"int checkNull(int value) {\n return (value != Tables.INTNULL ? value : 0);\n }",
"@Test(timeout = 4000)\n public void test020() throws Throwable {\n Object[] objectArray0 = SQLUtil.parseColumnTypeAndSize(\"\");\n assertEquals(1, objectArray0.length);\n }",
"@Test\n public void runQueriesWithDecimalValueCollision() throws Throwable\n {\n final int significandSizeInDecimalDigits = 512;\n // String.repeat(int) exists in JDK 11 and later, but this line was introduced on JDK 8\n String wideDecimalString = \"1.\" + StringUtils.repeat('0', significandSizeInDecimalDigits - 2) + '1';\n BigDecimal wideDecimal = new BigDecimal(wideDecimalString);\n // Sanity checks that this value was actually constructed as intended\n Preconditions.checkState(wideDecimal.precision() == significandSizeInDecimalDigits,\n \"expected precision %s, but got %s; string representation is \\\"%s\\\"\",\n significandSizeInDecimalDigits, wideDecimal.precision(), wideDecimalString);\n Preconditions.checkState(wideDecimalString.equals(wideDecimal.toPlainString()),\n \"expected: %s; actual: %s\", wideDecimalString, wideDecimal.toPlainString());\n\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (0, 1, 1.0)\");\n execute(\"INSERT INTO %s (pk, ck, dec) VALUES (2, 0, \" + wideDecimalString + ')');\n\n // EQ queries\n assertRows(execute(\"SELECT * FROM %s WHERE dec = 1.0\"),\n row(0, 1, BigDecimal.valueOf(1.0D)));\n\n assertRows(execute(\"SELECT * FROM %s WHERE dec = \" + wideDecimalString),\n row(2, 0, wideDecimal));\n\n // LT/LTE queries\n assertRows(execute(\"SELECT * FROM %s WHERE dec < \" + wideDecimalString),\n row(0, 1, BigDecimal.valueOf(1.0D)));\n\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec <= \" + wideDecimalString),\n row(0, 1, BigDecimal.valueOf(1.0D)),\n row(2, 0, wideDecimal));\n\n assertEmpty(execute(\"SELECT * FROM %s WHERE dec < 1.0\"));\n\n assertRows(execute(\"SELECT * FROM %s WHERE dec <= 1.0\"),\n row(0, 1, BigDecimal.valueOf(1.0D)));\n\n // GT/GTE queries\n assertRows(execute(\"SELECT * FROM %s WHERE dec > 1.0\"),\n row(2, 0, wideDecimal));\n\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec >= \" + wideDecimalString),\n row(2, 0, wideDecimal));\n\n assertEmpty(execute(\"SELECT * FROM %s WHERE dec > \" + wideDecimalString));\n\n assertRowsIgnoringOrder(execute(\"SELECT * FROM %s WHERE dec >= 1.0\"),\n row(0, 1, BigDecimal.valueOf(1.0D)),\n row(2, 0, wideDecimal));\n }",
"public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }",
"protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }",
"public void setOnlyInteger() {\r\n\t\tPlatform.runLater(() -> {\r\n\t\t\ttextfield.textProperty().addListener(new ChangeListener<String>() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\r\n\t\t\t\t\tif (!newValue.matches(\"^\\\\d*\\\\d\") && !newValue.isEmpty()) {\r\n\t\t\t\t\t\ttextfield.setText(oldValue);\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}",
"@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }",
"public boolean isColumnNumeric(int position) {\n\n if (columns[position] instanceof NumericColumn) {\n return true;\n }\n\n Column col = columns[position];\n int numRows = col.getNumRows();\n\n for (int row = 0; row < numRows; row++) {\n\n try {\n Double.valueOf(col.getString(row));\n } catch (Exception e) {\n return false;\n }\n }\n\n return true;\n }",
"public boolean isInteger();",
"public int validateDirectInt(String tableName,String fieldName, int textFieldName)\r\n {\r\n try {\r\n stmt = con.createStatement();\r\n String SQL = \"SELECT * FROM \" + tableName;\r\n ResultSet rs = stmt.executeQuery(SQL);\r\n while(rs.next())\r\n {\r\n int value = rs.getInt(fieldName);\r\n if(value == textFieldName)\r\n {\r\n return 1;\r\n }\r\n }\r\n } \r\n catch (NumberFormatException | SQLException ex) {\r\n JOptionPane.showMessageDialog(null,\"Invalid Entry\\n(\" + ex + \")\");\r\n }\r\n return 0;\r\n \r\n }",
"private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test136() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance((-853), \"truncate\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"deletesetasciistream(int, inputstream, long)\", defaultDBTable0, dBDataType0);\n DBNotNullConstraint dBNotNullConstraint0 = new DBNotNullConstraint(defaultDBTable0, (String) null, false, \"deletesetasciistream(int, inputstream, long)\");\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n String string0 = SQLUtil.constraintSpec(dBNotNullConstraint0, nameSpec0);\n assertEquals(\"deletesetasciistream(int, inputstream, long) NOT NULL\", string0);\n }",
"@Test(timeout = 4000)\n public void test116() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\" (\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Illegal column type format: (\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void test_level_normalization_03() {\n for (int i = 1; i <= 9; i++) {\n Assert.assertEquals(i, JdbcCompatibility.normalizeLevel(i));\n }\n }",
"@Test(timeout = 4000)\n public void test005() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"\", defaultDBTable0, 34, \"\");\n String string0 = SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0);\n assertEquals(\"\", string0);\n }",
"@Test(timeout = 4000)\n public void test071() throws Throwable {\n Object[] objectArray0 = SQLUtil.parseColumnTypeAndSize(\"qfy0HL\");\n assertEquals(1, objectArray0.length);\n }",
"int getMaxPrecision();",
"public static boolean isNumberType(byte t) {\n switch (t) {\n case INTEGER: return true ;\n case LONG: return true ;\n case FLOAT: return true ;\n case DOUBLE: return true ;\n case BIGINTEGER: return true ;\n case BIGDECIMAL: return true ;\n default: return false ;\n }\n }",
"public boolean isInteger() {\n return false;\n }",
"private static boolean verify(int value, int size) {\r\n return size > 0 && size < Integer.SIZE\r\n && Integer.SIZE - Integer.numberOfLeadingZeros(value) <= size;\r\n }",
"private void validateValuesLength(BatchUpdate batchUpdate, \n HRegion region) throws IOException {\n HTableDescriptor desc = region.getTableDesc();\n for (Iterator<BatchOperation> iter = \n batchUpdate.iterator(); iter.hasNext();) {\n BatchOperation operation = iter.next();\n if (operation.getValue() != null) {\n HColumnDescriptor fam = \n desc.getFamily(HStoreKey.getFamily(operation.getColumn()));\n if (fam != null) {\n int maxLength = fam.getMaxValueLength();\n if (operation.getValue().length > maxLength) {\n throw new ValueOverMaxLengthException(\"Value in column \"\n + Bytes.toString(operation.getColumn()) + \" is too long. \"\n + operation.getValue().length + \" instead of \" + maxLength);\n }\n }\n }\n }\n }",
"@Test(timeout = 4000)\n public void test074() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"dKop matrUalized view\", (DBTable) null, 149, \"org.h2.store.LobStorage\");\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"ORG.H2.STORE.LOBSTORAGE\", stringBuilder0.toString());\n }",
"@Test\n public void deve_aceitar_tamanho_com_8_numeros() {\n telefone.setTamanho(8);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }",
"@Test(timeout = 4000)\n public void test073() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(40, \"_G\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"_G\", defaultDBTable0, dBDataType0, integer0);\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"_G(2)\", stringBuilder0.toString());\n }",
"@Test\n public void test_level_behaviours_columns_01() {\n Assert.assertFalse(JdbcCompatibility.shouldTypeColumnsAsString(JdbcCompatibility.LOW));\n Assert.assertFalse(JdbcCompatibility.shouldDetectColumnTypes(JdbcCompatibility.LOW));\n }",
"public void setMinimumIntegerDigits(int newValue) {\n super.setMinimumIntegerDigits(Math.min(newValue, DOUBLE_INTEGER_DIGITS));\n }",
"@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}",
"void overflowDigits() {\n for (int i = 0; i < preDigits.length(); i++) {\n char digit = preDigits.charAt(i);\n // This could be implemented with a modulo, but compared to the main\n // loop this code is too quick to measure.\n if (digit == '9') {\n preDigits.setCharAt(i, '0');\n } else {\n preDigits.setCharAt(i, (char)(digit + 1));\n }\n }\n }",
"public boolean isNumber(String key)\n {\n return getDouble(key, Double.MAX_VALUE) != Double.MAX_VALUE;\n }",
"@Before\n public void setUp() {\n table = new Table();\n ArrayList<Column> col = new ArrayList<Column>();\n col.add(new NumberColumn(\"numbers\"));\n\n table.add(new Record(col, new Value[] {new NumberValue(11)}));\n table.add(new Record(col, new Value[] {new NumberValue(13)}));\n table.add(new Record(col, new Value[] {new NumberValue(22)}));\n table.add(new Record(col, new Value[] {new NumberValue(28)}));\n table.add(new Record(col, new Value[] {new NumberValue(44)}));\n table.add(new Record(col, new Value[] {new NumberValue(23)}));\n table.add(new Record(col, new Value[] {new NumberValue(46)}));\n table.add(new Record(col, new Value[] {new NumberValue(56)}));\n table.add(new Record(col, new Value[] {new NumberValue(45)}));\n table.add(new Record(col, new Value[] {new NumberValue(45)}));\n table.add(new Record(col, new Value[] {new NullValue()}));\n table.add(new Record(col, new Value[] {new NumberValue(45)}));\n table.add(new Record(col, new Value[] {new NumberValue(34)}));\n table.add(new Record(col, new Value[] {new NumberValue(5)}));\n table.add(new Record(col, new Value[] {new NumberValue(123)}));\n table.add(new Record(col, new Value[] {new NumberValue(48)}));\n table.add(new Record(col, new Value[] {new NumberValue(50)}));\n table.add(new Record(col, new Value[] {new NumberValue(13)}));\n }",
"private boolean isInvalidPrecision(String precision) {\r\n\t\tboolean invalid = false;\r\n\t\tif(FXUtility.isInValidEntry(precision)) {\r\n\t\t\tinvalid = true;\r\n\t\t}else {\r\n\t\t\ttry {\r\n\t\t\t\tint precsn = Integer.parseInt(precision);\r\n\t\t\t\tif(precsn<0) invalid = true; // To check if its negative value, as negative conversion rate doesn't exist\r\n\t\t\t}catch(NumberFormatException e) { // Exception handle to deal with non int invalid values\r\n\t\t\t\tinvalid = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn invalid;\r\n\t}",
"private boolean checkInteger(String str) {\n try {\n return Integer.parseInt(str) <= 30; // Check if the entered value is an Integer and <= 30;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"@Override\n public int getMaxFieldSize() throws SQLException {\n return max_field_size;\n }",
"@Override\n public int getDecimalDigits() { return 0; }",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n jdbcClob jdbcClob0 = new jdbcClob(\"&@Y)\");\n Reader reader0 = jdbcClob0.getCharacterStream();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(reader0);\n streamTokenizer0.nval = (double) (-449049936);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 449049936\", string0);\n }",
"@RepeatedTest(20)\n void transformtoIntTest() {\n assertEquals(bi.transformtoInt(), new Int(bi.toInt(binary)));\n assertEquals(i.transformtoInt(),i);\n\n //Nulls\n assertEquals(f.transformtoInt(),Null);\n assertEquals(st.transformtoInt(),Null);\n assertEquals(bot.transformtoInt(),Null);\n assertEquals(bof.transformtoInt(),Null);\n assertEquals(Null.transformtoInt(),Null);\n }",
"private void processNumericValues(ReportConcept entry, ConceptLabel lbl) {\n\t\tif (isNumber(entry.getConceptClass()) && !entry.getConceptEntry().hasNumericValue()) {\n\t\t\tentry.setNumericValue(TextHelper.parseDecimalValue(lbl.getText()));\n\t\t}\n\t}",
"@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}"
] |
[
"0.6129997",
"0.6099717",
"0.60605794",
"0.6045268",
"0.5967309",
"0.59567547",
"0.58867353",
"0.57837224",
"0.5567524",
"0.55102164",
"0.54927737",
"0.548004",
"0.53948444",
"0.5336293",
"0.53237045",
"0.53200966",
"0.5304654",
"0.5297562",
"0.5294901",
"0.5291254",
"0.5273997",
"0.5263207",
"0.5242941",
"0.5215301",
"0.5196567",
"0.5166864",
"0.51603204",
"0.51561403",
"0.51537794",
"0.51447433",
"0.51324934",
"0.51304966",
"0.5101129",
"0.5089006",
"0.5074385",
"0.5073033",
"0.50705945",
"0.5066177",
"0.50629383",
"0.5052218",
"0.5050606",
"0.5033405",
"0.5022218",
"0.50194544",
"0.5014237",
"0.50084406",
"0.50021863",
"0.499858",
"0.499559",
"0.49913323",
"0.4989933",
"0.49882907",
"0.49828643",
"0.49806046",
"0.498033",
"0.49768195",
"0.49753365",
"0.49753043",
"0.49747628",
"0.49497864",
"0.49448022",
"0.4938508",
"0.49359807",
"0.49358276",
"0.49326935",
"0.49315187",
"0.49148592",
"0.4914698",
"0.49074158",
"0.490674",
"0.49054915",
"0.49003145",
"0.48960337",
"0.48946404",
"0.48935026",
"0.48763084",
"0.48751152",
"0.4874444",
"0.4872456",
"0.4862394",
"0.4857605",
"0.48562562",
"0.48552933",
"0.48524112",
"0.48421994",
"0.48391795",
"0.4838329",
"0.48362315",
"0.48361146",
"0.48360848",
"0.48311305",
"0.48280346",
"0.482637",
"0.48210075",
"0.48075032",
"0.48074508",
"0.48070037",
"0.4804496",
"0.48026466",
"0.4798294",
"0.47839293"
] |
0.0
|
-1
|
Deploys a LiveCycle application
|
public void execute() throws BuildException {
ServiceClientFactory scf=super.getServiceClientFactory();
try {
ApplicationManagerClient amClient=new ApplicationManagerClient(scf);
amClient.deployApplication(applicationName,version);
// Log success message for feedback
log("Successfully deployed application: " + applicationName + "/" + version);
} catch (Exception e){
throw new BuildException("Error deploying application:"+e.getMessage());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void deployApp(String marathonJson);",
"private void initialDeploy() {\n }",
"public void execute() throws MojoExecutionException {\n deploy(service, dockerImage,Optional.ofNullable(kalixProject),Optional.ofNullable(kalixContext));\n }",
"CdapDeployAppStep createCdapDeployAppStep();",
"public void testTargetAwareDeployment() {\n final java.io.File appArchive = \n new java.io.File(APPLICATION);\n printAllDeployedComponents();\n //deployApplication(appArchive,getTargets());\n printAllDeployedComponents();\n //checkDeploymentPassed(\"stateless-simple\", getTargets());\n //undeployApplication(appArchive, getTargets());\n }",
"@PostConstruct\n public void deploy() {\n Vertx.vertx().deployVerticle(vertxHttpServerApplication);\n }",
"void installMarathonApps();",
"void installApp(String appPath);",
"public void execute()\n throws MojoExecutionException\n {\n this.checkOperatingSystem();\n\n final File folderApp =\n new File( this.data.getTargetDirectory(), this.data.getAppName() + \"-\" + this.data.getAppVersion() + \".app\" );\n final File folderContents = new File( folderApp, \"Contents\" );\n final File folderMacOS = new File( folderContents, \"MacOS\" );\n final File folderResources = new File( folderContents, \"Resources\" );\n final File folderJava = new File( folderResources, \"Java\" );\n\n final File targetJavaAppStub = new File( folderMacOS, JAVA_APP_STUB.getName() );\n final File targetInfoPlistFile = new File( folderContents, FILENAME_PLIST_INFO );\n final File targetVersionPlistFile = new File( folderContents, FILENAME_PLIST_VERSION );\n\n if ( folderApp.exists() == true )\n {\n try\n {\n this.logger.info( \"Deleting already existing application folder at '\" + folderApp.getName() + \"' ...\" );\n PtFileUtil.deleteDirectoryRecursive( folderApp );\n }\n catch ( PtException e )\n {\n throw new MojoExecutionException( \"Could not delete directory '\" + folderApp.getAbsolutePath() + \"'!\" );\n }\n }\n\n makeFolders( folderApp );\n makeFolders( folderContents );\n makeFolders( folderMacOS );\n makeFolders( folderResources );\n makeFolders( folderJava );\n\n final String jarWithDependsFileName =\n this.data.getAppName() + \"-\" + this.data.getAppVersion() + \"-\" + \"jar-with-dependencies.jar\";\n final File jarWithDependsSource = new File( this.data.getTargetDirectory(), jarWithDependsFileName );\n\n if ( jarWithDependsSource.exists() == false )\n {\n throw new MojoExecutionException(\n \"Jar with dependencies file not existing (try 'mvn assembly:assembly') at: \"\n + jarWithDependsSource.getAbsolutePath() );\n }\n\n if ( this.data.isPlistInfoParamsSet() == true )\n {\n\n final String mainClassFqn = this.data.getPlistInfoParams( PlistInfoParam.MAIN_CLASS );\n this.checkJarWithDependsMainClass( jarWithDependsSource, mainClassFqn );\n\n }\n else\n {\n this.logger.debug( \"Could not check MainClass existence.\" );\n // TODO if Info.plist file is given directly, check for file\n // existence,\n // then parse it (validate!) and retrieve MainClass attribute to\n // check jar with dependencies\n }\n\n this.executeCopyFiles( folderResources, folderJava, targetJavaAppStub, jarWithDependsSource );\n this.executePlistFiles( jarWithDependsFileName, targetInfoPlistFile, targetVersionPlistFile );\n this.executeShellCommands( folderApp, targetJavaAppStub );\n\n }",
"public void sfDeploy() throws SmartFrogException, RemoteException {\n super.sfDeploy();\n sfLog().info(\"DEPLOYED \"+sfCompleteNameSafe().toString());\n }",
"@Override\n public String deploy(String applicationName, Environment environment, Component component) {\n return null;\n }",
"public static void main(String[] args) {\n \n if (args.length == 0) {\n System.out\n .println(\"Usage: PortletDeploymentPostProcessor <path-to-web-app>\");\n }\n\n PortletDeploymentPostProcessor processor = new PortletDeploymentPostProcessor();\n\n processor.setWebAppPath(args[0]);\n\n processor.exec();\n\n }",
"public static void main(String[] args) {\n\t\tint id =4 ;\n\t\tCMDBService cmdbService = CMDBService.getCMDBService();\n\t\tSystem.out.println(\"All deployment details:- \\n\" + cmdbService.getAllDeploymentDetails());\n\t\t\n\t\tSystem.out.println(\"Get deployment details for id=\"+ id +\" :- \\n\" + cmdbService.getDeploymentDetails(id));\n\t\t\n\t\tSystem.out.println(\"Deleting deployment data for id=\" + id + \":- \\n\" + cmdbService.deleteDeploymentDetails(id));\n\t\t\n\t\tSystem.out.println(\"After deletion deployment details:- \\n\" + cmdbService.getAllDeploymentDetails());\n\t\t//Add new data to CMDB list\n\t\tCMDB cmdb = new CMDB();\n\t\tcmdb.setArtifactName(\"jboss\");\n\t\tcmdb.setArtifactVersion(\"7.8\");\n\t\tcmdb.setDeployedBy(\"KB\");\n\t\tcmdb.setDeploymentDate(\"01_03_2018\");\n\t\tcmdb.setDeploymentStatus(\"Failure\");\n\t\tcmdb.setId(6);\n\t\tSystem.out.println(\"Adding deployment data:- \\n\" + cmdbService.insertDeploymentDetails(cmdb));\n\t\tSystem.out.println(\"After addition deployment details:- \\n\" + cmdbService.getAllDeploymentDetails());\n\t}",
"@Deployment\n public static WebArchive createDeployment() {\n File[] libs = Maven.resolver()\n .offline(false)\n .loadPomFromFile(\"pom.xml\")\n .importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();\n\n return ShrinkWrap\n .create(WebArchive.class, \"fulltext-tasklist.war\")\n // add needed dependencies\n .addAsLibraries(libs)\n // prepare as process application archive for camunda BPM Platform\n .addAsResource(\"META-INF/processes.xml\", \"META-INF/processes.xml\")\n // enable CDI\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n // boot JPA persistence unit\n .addAsResource(\"META-INF/persistence.xml\", \"META-INF/persistence.xml\")\n // add your own classes (could be done one by one as well)\n .addPackages(false, \"com.camunda.consulting.tasklist.fulltext\") // not recursive to skip package 'nonarquillian'\n .addPackages(false, \"com.camunda.consulting.tasklist.fulltext.entity\")\n .addPackages(false, \"com.camunda.consulting.tasklist.fulltext.resource\")\n // add process definition\n .addAsResource(\"process.bpmn\")\n .addAsResource(\"incidentProcess.bpmn\")\n // add process image for visualizations\n .addAsResource(\"process.png\")\n .addAsResource(\"incidentProcess.png\")\n // now you can add additional stuff required for your test case\n ;\n }",
"@Override\n\tpublic void\t\t\tdeploy() throws Exception\n\t{\n\t\tassert\t!this.deploymentDone() ;\n\n\t\t// --------------------------------------------------------------------\n\t\t// Configuration phase\n\t\t// --------------------------------------------------------------------\n\n\t\t// debugging mode configuration; comment and uncomment the line to see\n\t\t// the difference\n//\t\tAbstractCVM.DEBUG_MODE.add(CVMDebugModes.PUBLIHSING) ;\n//\t\tAbstractCVM.DEBUG_MODE.add(CVMDebugModes.CONNECTING) ;\n//\t\tAbstractCVM.DEBUG_MODE.add(CVMDebugModes.COMPONENT_DEPLOYMENT) ;\n\n\t\t// --------------------------------------------------------------------\n\t\t// Creation phase\n\t\t// --------------------------------------------------------------------\n\n\t\t// create the component\n\t\tthis.controllerURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tController.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{CONTROLLER_URI,\n\t\t\t\t\t\t\tCONTROLLER_OBP_URI, \n\t\t\t\t\t\t\tCONTROLLER_OBP2_URI, \n\t\t\t\t\t\t\tCONTROLLER_OBP3_URI,\n\t\t\t\t\t\t\tCONTROLLER_OBP4_URI,\n\t\t\t\t\t\t\tCONTROLLER_OBP5_URI,\n\t\t\t\t\t\t\tCONTROLLER_OBP6_URI,\n\t\t\t\t\t\t\tCONTROLLER_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.controllerURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.controllerURI) ;\n\t\tthis.toggleLogging(this.controllerURI) ;\n\n\t\tthis.fridgeURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tFridge.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{FRIDGE_URI,\n\t\t\t\t\t\t\tFRIDGE_IBP_URI,\n\t\t\t\t\t\t\tFRIDGE_EP_URI,\n\t\t\t\t\t\t\tFRIDGE_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.fridgeURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.fridgeURI) ;\n\t\tthis.toggleLogging(this.fridgeURI) ;\n\t\t\n\t\t\n\t\tthis.ovenURI =\n\t\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\t\tOven.class.getCanonicalName(),\n\t\t\t\t\t\tnew Object[]{OVEN_URI,\n\t\t\t\t\t\t\t\tOVEN_IBP_URI,\n\t\t\t\t\t\t\t\tOVEN_EP_URI,\n\t\t\t\t\t\t\t\tOVEN_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.ovenURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.ovenURI) ;\n\t\tthis.toggleLogging(this.ovenURI) ;\n\t\t\n\t\tthis.heaterURI =\n\t\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\t\tHeater.class.getCanonicalName(),\n\t\t\t\t\t\tnew Object[]{HEATER_URI,\n\t\t\t\t\t\t\t\tHEATER_IBP_URI,\n\t\t\t\t\t\t\t\tHEATER_EP_URI,\n\t\t\t\t\t\t\t\tHEATER_LAUNCH_URI}) ;\n\t\t\tassert\tthis.isDeployedComponent(this.heaterURI) ;\n\t\t\t// make it trace its operations\n\t\t\tthis.toggleTracing(this.heaterURI) ;\n\t\t\tthis.toggleLogging(this.heaterURI) ;\n\t\t\n\t\tthis.spURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tSolarPanel.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{SP_URI,\n\t\t\t\t\t\t\tSP_OBP_URI,\n\t\t\t\t\t\t\tSP_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.spURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.spURI) ;\n\t\tthis.toggleLogging(this.spURI) ;\n\t\t\n\t\tthis.ondulatorURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tOndulator.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{ONDULATOR_URI,\n\t\t\t\t\t\t\tONDULATOR_OBP_URI,\n\t\t\t\t\t\t\tONDULATOR_IBP_URI,\n\t\t\t\t\t\t\tONDULATOR_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.ondulatorURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.ondulatorURI) ;\n\t\tthis.toggleLogging(this.ondulatorURI) ;\n\t\t\n\t\tthis.batteryURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tBattery.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{BATTERY_URI,\n\t\t\t\t\t\t\tBATTERY_IBP_URI,\n\t\t\t\t\t\t\tBATTERY_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.batteryURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.batteryURI) ;\n\t\tthis.toggleLogging(this.batteryURI) ;\n\t\t\n\t\tthis.epURI =\n\t\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\t\tElecPanel.class.getCanonicalName(),\n\t\t\t\t\t\tnew Object[]{EP_URI,\n\t\t\t\t\t\t\t\tEP_IBP_URI,\n\t\t\t\t\t\t\t\tEP_LAUNCH_URI}) ;\n\t\t\tassert\tthis.isDeployedComponent(this.epURI) ;\n\t\t\t// make it trace its operations\n\t\t\tthis.toggleTracing(this.epURI) ;\n\t\t\tthis.toggleLogging(this.epURI) ;\n\t\t\t\t\n\t\t// --------------------------------------------------------------------\n\t\t// Connection phase\n\t\t// --------------------------------------------------------------------\n\n\t\t// do the connection\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP_URI,\n\t\t\t\tFRIDGE_IBP_URI,\n\t\t\t\tControllerFridgeConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP6_URI,\n\t\t\t\tOVEN_IBP_URI,\n\t\t\t\tControllerOvenConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP4_URI,\n\t\t\t\tHEATER_IBP_URI,\n\t\t\t\tControllerHeaterConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP5_URI,\n\t\t\t\tEP_IBP_URI,\n\t\t\t\tControllerEPConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.spURI,\n\t\t\t\tSP_OBP_URI,\n\t\t\t\tONDULATOR_IBP_URI,\n\t\t\t\tSPOndulatorConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.ondulatorURI,\n\t\t\t\tONDULATOR_OBP_URI,\n\t\t\t\tBATTERY_IBP_URI,\n\t\t\t\tOndulatorBatteryConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP2_URI,\n\t\t\t\tBATTERY_IBP_URI,\n\t\t\t\tControllerBatteryConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP3_URI,\n\t\t\t\tONDULATOR_IBP_URI,\n\t\t\t\tControllerOndulatorConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.heaterURI,\n\t\t\t\tHEATER_EP_URI,\n\t\t\t\tEP_IBP_URI,\n\t\t\t\tComponentEPConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.fridgeURI,\n\t\t\t\tFRIDGE_EP_URI,\n\t\t\t\tEP_IBP_URI,\n\t\t\t\tComponentEPConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.ovenURI,\n\t\t\t\tOVEN_EP_URI,\n\t\t\t\tEP_IBP_URI,\n\t\t\t\tComponentEPConnector.class.getCanonicalName()) ;\n\t\n\t\t// --------------------------------------------------------------------\n\t\t// Deployment done\n\t\t// --------------------------------------------------------------------\n\n\t\tsuper.deploy();\n\t\tassert\tthis.deploymentDone() ;\n\t}",
"public static void main(String[] args) throws IOException {\n new FrostDeployer().run();\n }",
"public void copyAssets(View view) {\n log(\"copy assets to fon\");\n try {\n String [] list = getApplicationContext().getAssets().list(\"\");\n if (list.length > 0) {\n for (String file : list) {\n copyAssetFile(file, getApplicationContext());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n log(\"copy finished\");\n log(\"deploy assets start\");\n executeCommand(\"deploy.sh\");\n log(\"deploy assets finished\");\n }",
"@Test\n @RunIn(TestGroup.QA_UNRELIABLE)\n public void importAndRunInstantApp() throws Exception {\n String runConfigName = \"topekabundle\";\n IdeFrameFixture ideFrame = guiTest.importProjectAndWaitForProjectSyncToFinish(\"TopekaInstantApp\");\n\n String avdName = EmulatorGenerator.ensureAvdIsCreated(\n ideFrame.invokeAvdManager(),\n new AvdSpec.Builder()\n .setSystemImageGroup(AvdSpec.SystemImageGroups.X86)\n .setSystemImageSpec(O_AVD_IMAGE)\n .build()\n );\n\n ideFrame.runApp(runConfigName, avdName);\n\n Pattern CONNECTED_APP_PATTERN = Pattern.compile(\".*Connected to process.*\", Pattern.DOTALL);\n\n ExecutionToolWindowFixture.ContentFixture runWindow = ideFrame.getRunToolWindow().findContent(runConfigName);\n runWindow.waitForOutput(new PatternTextMatcher(CONNECTED_APP_PATTERN), TimeUnit.MINUTES.toSeconds(2));\n\n runWindow.waitForStopClick();\n }",
"public void execute() throws MojoExecutionException {\n\n // 1. Create and set up directories\n getLog().info(\"Creating and setting up the bundle directories\");\n buildDirectory.mkdirs();\n\n File bundleDir = new File(buildDirectory, bundleName + \".app\");\n bundleDir.mkdirs();\n\n File contentsDir = new File(bundleDir, \"Contents\");\n contentsDir.mkdirs();\n\n File resourcesDir = new File(contentsDir, \"Resources\");\n resourcesDir.mkdirs();\n\n File javaDirectory = new File(contentsDir, \"Java\");\n javaDirectory.mkdirs();\n\n File macOSDirectory = new File(contentsDir, \"MacOS\");\n macOSDirectory.mkdirs();\n\n // 2. Copy in the native java application stub\n getLog().info(\"Copying the native Java Application Stub\");\n File launcher = new File(macOSDirectory, javaLauncherName);\n launcher.setExecutable(true);\n\n FileOutputStream launcherStream = null;\n try {\n launcherStream = new FileOutputStream(launcher);\n } catch (FileNotFoundException ex) {\n throw new MojoExecutionException(\"Could not copy file to directory \" + launcher, ex);\n }\n\n InputStream launcherResourceStream = this.getClass().getResourceAsStream(javaLauncherName);\n try {\n IOUtil.copy(launcherResourceStream, launcherStream);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could not copy file \" + javaLauncherName + \" to directory \" + macOSDirectory, ex);\n }\n\n // 3.Copy icon file to the bundle if specified\n if (iconFile != null) {\n File f = searchFile(iconFile, project.getBasedir());\n\n if (f != null && f.exists() && f.isFile()) {\n getLog().info(\"Copying the Icon File\");\n try {\n FileUtils.copyFileToDirectory(f, resourcesDir);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying file \" + iconFile + \" to \" + resourcesDir, ex);\n }\n } else {\n throw new MojoExecutionException(String.format(\"Could not locate iconFile '%s'\", iconFile));\n }\n }\n\n // 4. Resolve and copy in all dependencies from the pom\n getLog().info(\"Copying dependencies\");\n List<String> files = copyDependencies(javaDirectory);\n if (additionalBundledClasspathResources != null && !additionalBundledClasspathResources.isEmpty()) {\n files.addAll(copyAdditionalBundledClasspathResources(javaDirectory, \"lib\", additionalBundledClasspathResources));\n }\n\n // 5. Check if JRE should be embedded. Check JRE path. Copy JRE\n if (jrePath != null) {\n File f = new File(jrePath);\n if (f.exists() && f.isDirectory()) {\n // Check if the source folder is a jdk-home\n File pluginsDirectory = new File(contentsDir, \"PlugIns/JRE/Contents/Home/jre\");\n pluginsDirectory.mkdirs();\n\n File sourceFolder = new File(jrePath, \"Contents/Home\");\n if (new File(jrePath, \"Contents/Home/jre\").exists()) {\n sourceFolder = new File(jrePath, \"Contents/Home/jre\");\n }\n\n try {\n getLog().info(\"Copying the JRE Folder from : [\" + sourceFolder + \"] to PlugIn folder: [\" + pluginsDirectory + \"]\");\n FileUtils.copyDirectoryStructure(sourceFolder, pluginsDirectory);\n File binFolder = new File(pluginsDirectory, \"bin\");\n //Setting execute permissions on executables in JRE\n for (String filename : binFolder.list()) {\n new File(binFolder, filename).setExecutable(true, false);\n }\n\n new File (pluginsDirectory, \"lib/jspawnhelper\").setExecutable(true,false);\n embeddJre = true;\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying folder \" + f + \" to \" + pluginsDirectory, ex);\n }\n } else {\n getLog().warn(\"JRE not found check jrePath setting in pom.xml\");\n }\n } else if (jreFullPath != null){\n getLog().info(\"JRE Full path is used [\" + jreFullPath + \"]\");\n embeddJre = true;\n }\n\n // 6. Create and write the Info.plist file\n getLog().info(\"Writing the Info.plist file\");\n File infoPlist = new File(bundleDir, \"Contents\" + File.separator + \"Info.plist\");\n this.writeInfoPlist(infoPlist, files);\n\n // 7. Copy specified additional resources into the top level directory\n getLog().info(\"Copying additional resources\");\n if (additionalResources != null && !additionalResources.isEmpty()) {\n this.copyResources(buildDirectory, additionalResources);\n }\n\n // 7. Make the stub executable\n if (!SystemUtils.IS_OS_WINDOWS) {\n getLog().info(\"Making stub executable\");\n Commandline chmod = new Commandline();\n try {\n chmod.setExecutable(\"chmod\");\n chmod.createArgument().setValue(\"755\");\n chmod.createArgument().setValue(launcher.getAbsolutePath());\n\n chmod.execute();\n } catch (CommandLineException e) {\n throw new MojoExecutionException(\"Error executing \" + chmod + \" \", e);\n }\n } else {\n getLog().warn(\"The stub was created without executable file permissions for UNIX systems\");\n }\n\n // 8. Create the DMG file\n if (generateDiskImageFile) {\n if (SystemUtils.IS_OS_MAC_OSX || SystemUtils.IS_OS_MAC) {\n getLog().info(\"Generating the Disk Image file\");\n Commandline dmg = new Commandline();\n try {\n // user wants /Applications symlink in the resulting disk image\n if (includeApplicationsSymlink) {\n createApplicationsSymlink();\n }\n dmg.setExecutable(\"hdiutil\");\n dmg.createArgument().setValue(\"create\");\n dmg.createArgument().setValue(\"-srcfolder\");\n dmg.createArgument().setValue(buildDirectory.getAbsolutePath());\n dmg.createArgument().setValue(diskImageFile.getAbsolutePath());\n\n try {\n dmg.execute().waitFor();\n } catch (InterruptedException ex) {\n throw new MojoExecutionException(\"Thread was interrupted while creating DMG \" + diskImageFile, ex);\n } finally {\n if (includeApplicationsSymlink) {\n removeApplicationsSymlink();\n }\n }\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error creating disk image \" + diskImageFile, ex);\n }\n\n if (diskImageInternetEnable) {\n getLog().info(\"Enabling the Disk Image file for internet\");\n try {\n Commandline internetEnableCommand = new Commandline();\n\n internetEnableCommand.setExecutable(\"hdiutil\");\n internetEnableCommand.createArgument().setValue(\"internet-enable\");\n internetEnableCommand.createArgument().setValue(\"-yes\");\n internetEnableCommand.createArgument().setValue(diskImageFile.getAbsolutePath());\n\n internetEnableCommand.execute();\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error internet enabling disk image: \" + diskImageFile, ex);\n }\n }\n projectHelper.attachArtifact(project, \"dmg\", null, diskImageFile);\n }\n if (SystemUtils.IS_OS_LINUX) {\n getLog().info(\"Generating the Disk Image file\");\n Commandline linux_dmg = new Commandline();\n try {\n linux_dmg.setExecutable(\"genisoimage\");\n linux_dmg.createArgument().setValue(\"-V\");\n linux_dmg.createArgument().setValue(bundleName);\n linux_dmg.createArgument().setValue(\"-D\");\n linux_dmg.createArgument().setValue(\"-R\");\n linux_dmg.createArgument().setValue(\"-apple\");\n linux_dmg.createArgument().setValue(\"-no-pad\");\n linux_dmg.createArgument().setValue(\"-o\");\n linux_dmg.createArgument().setValue(diskImageFile.getAbsolutePath());\n linux_dmg.createArgument().setValue(buildDirectory.getAbsolutePath());\n\n try {\n linux_dmg.execute().waitFor();\n } catch (InterruptedException ex) {\n throw new MojoExecutionException(\"Thread was interrupted while creating DMG \" + diskImageFile,\n ex);\n }\n } catch (CommandLineException ex) {\n throw new MojoExecutionException(\"Error creating disk image \" + diskImageFile + \" genisoimage probably missing\", ex);\n }\n projectHelper.attachArtifact(project, \"dmg\", null, diskImageFile);\n\n } else {\n getLog().warn(\"Disk Image file cannot be generated in non Mac OS X and Linux environments\");\n }\n }\n\n getLog().info(\"App Bundle generation finished\");\n }",
"public FinishDeploy() {\n addSequential(new AbortAll());\n addSequential(new HatchEject());\n }",
"@Override\n public void success() {\n XSPSystem.getInstance().installApp(PjjApplication.App_Path + appName);\n }",
"public void createVersion() {\r\n\t\tif (!active) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (applicationId == null) {\r\n\t\t\tcreateApplication();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tJSONObject versionJson = getJSonResponse(Unirest.post(url + VERSION_API_URL)\r\n\t\t\t\t\t.field(\"name\", SeleniumTestsContextManager.getApplicationVersion())\r\n\t\t\t\t\t.field(\"application\", applicationId));\r\n\t\t\tversionId = versionJson.getInt(\"id\");\r\n\t\t} catch (UnirestException | JSONException e) {\r\n\t\t\tthrow new SeleniumRobotServerException(\"cannot create version\", e);\r\n\t\t}\r\n\t}",
"public JSR88Deployer(String uri, String user, String password) {\n this.user = user;\n this.password = password;\n this.uri = uri;\n loadDeploymentFactory();\n loadSystemApps(); //system apps to be filtered\n\n log(\"Connecting using uri = \" + uri + \"; user = \" + user + \"; password = \" + password);\n try {\n dm = DeploymentFactoryManager.getInstance().getDeploymentManager(uri, user, password);\n } catch (Exception ex) {\n ex.printStackTrace();\n System.exit(-1); \n }\n\n Target[] allTargets = dm.getTargets();\n if (allTargets.length == 0) {\n log(\"Can't find deployment targets...\");\n System.exit(-1); \n }\n \n // If test being run on EE, exclude the DAS server instance from the deploy targets\n String targetPlatform = System.getProperty(\"deploymentTarget\");\n List filteredTargets = new ArrayList();\n if( (\"SERVER\".equals(targetPlatform)) || (\"CLUSTER\".equals(targetPlatform)) ) {\n for(int i=0; i<allTargets.length; i++) {\n if(allTargets[i].getName().equals(\"server\")) {\n continue;\n }\n filteredTargets.add(allTargets[i]);\n }\n targets = (Target[])(filteredTargets.toArray(new Target[filteredTargets.size()]));\n } else {\n targets = allTargets;\n }\n\n for(int i=0; i<targets.length; i++) {\n log(\"DBG : Target \" + i + \" -> \" + targets[i].getName());\n }\n }",
"public PackageServer() {\n\t\t\n\t\t// Create the release folder\n\t\tLOGGER.debug(\"Creating directory: {}\", RELEASE_FOLDER);\n\t\tif (PackageUtils.createDirectory(RELEASE_FOLDER)) {\n\t\t\tLOGGER.debug(\"Created: {}\", RELEASE_FOLDER);\n\t\t} else {\n\t\t\tLOGGER.debug(\"Failed creating: {}\", RELEASE_FOLDER);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\t\tGenericLogger.debug(ModuleName.LOGGER, BlogAppApplication.class,\n\t\t\t\t\"Blog App Load has been started: new Terminal\");\n\t\tSpringApplication.run(BlogAppApplication.class, args);\n\t\tGenericLogger.debug(ModuleName.LOGGER, BlogAppApplication.class, \"Blog App load is completed: old one\");\n\t}",
"public static void main(String[] args) {\n final ActorSystem system = ActorSystem.create(\"hello-world-actors\");\n\n // Create a Supervisor Actor\n final ActorRef manager = system.actorOf(Manager.props(), \"main-manager\");\n\n // Send a message to start application\n manager.tell(\n new Manager.OrganizeProject(\n \"infosak\",\n Arrays.asList(\n new Task(\"dev-service-1\"),\n new Task(\"dev-service-2\"),\n new Task(\"integrate-svc1-and-svc2\"),\n new Task(\"deploy\")),\n Duration.ofSeconds(10),\n 3), ActorRef.noSender());\n }",
"public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\n\t\tFile app= new File(\"E:/Testing/Drag_and_Drop/com.mobeta.android.demodslv.apk\");\n\t\t\n\t\t\n\t\tDesiredCapabilities capabilities= new DesiredCapabilities();\n\t\t\n\t\tcapabilities.setCapability(\"deviceName\", \"XT1033\");\n\t\tcapabilities.setCapability(\"platformName\", \"Android\");\n\t\tcapabilities.setCapability(\"platformVersion\", \"4.4.4\");\n\t\t\n\t\t//app details\n\t\tcapabilities.setCapability(\"app\",app.getAbsolutePath());\n\t\t\n\t\t//Appium details\n\t\t\n\t\tAndroidDriver driver= new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\n\t\tThread.sleep(12000);\n\t\t\n\t\tif(driver.isAppInstalled(\"com.mobeta.android.demodslv\"))\n\t\t{\n\t\t\tSystem.out.println(\"Successfully Installed\");\n\t\t\t\n\t\t\t//Remove thrugh code\n\t\t\tdriver.removeApp(\"com.mobeta.android.demodslv\");\n\t\t\tThread.sleep(8000);\n\t\t\tSystem.out.println(\"Removed sucessfully\");\n\t\t\t\n\t\t\t\n\t\t\tdriver.installApp(\"E:/Testing/Drag_and_Drop/com.mobeta.android.demodslv.apk\");\n\t\t\tThread.sleep(8000);\n\t\t\tSystem.out.println(\"Again Installed the app\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"NOT Installed the app\");\n\t\t}\n\n\t\t\n\n\t}",
"public void checkAndInstallPC(){\n psconfig.setAndSaveProperty(LiferayConstants.SETUP_DONE,\"true\");\n \n \n \n // logger.info(\"Trying to install PC............\");\n /* ProgressHandle handle = ProgressHandleFactory.createHandle(org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"INSTALLING_PORTLET_CONTAINER\"));\n handle.start();\n try{\n \n \n String pcHome = psconfig.getPSHome();\n String serverHome = psconfig.getServerHome();\n \n // String pcBase = getPCBaseDir(psconfig);\n pcHome = changeToOSSpecificPath(pcHome);\n serverHome = changeToOSSpecificPath(serverHome);\n // pcBase = changeToOSSpecificPath(pcBase);\n String domainDir = psconfig.getDomainDir();\n domainDir = changeToOSSpecificPath(domainDir);\n \n \n \n \n Properties props = new Properties();\n props.setProperty(\"portlet_container_home\",pcHome);\n // props.setProperty(\"portlet_container_base\",pcBase);\n props.setProperty(\"GLASSFISH_HOME\",serverHome);\n props.setProperty(\"DOMAIN\",psconfig.getDefaultDomain());\n props.setProperty(\"AS_ADMIN_USER\",psconfig.getProperty(SunAppServerConstants.SERVER_USER));\n props.setProperty(\"AS_ADMIN_PASSWORD\",psconfig.getProperty(SunAppServerConstants.SERVER_PASSWORD));\n \n //find setup.xml\n \n File file = new File(pcHome + File.separator + \"setup.xml\");\n if(!file.exists()) {\n logger.log(Level.SEVERE,org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"SETUP_XML_NOT_FOUND\"));\n return;\n }\n \n FileObject setUpXmlObj = FileUtil.toFileObject(file);\n \n ExecutorTask executorTask = ActionUtils.runTarget(setUpXmlObj,new String[]{\"deploy_on_glassfish\"},props);\n psconfig.setAndSaveProperty(LifeRayConstants.SETUP_DONE,\"true\");\n executorTask.waitFinished();\n \n try{\n handle.finish();\n handle = ProgressHandleFactory.createHandle(org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"STARTING_APPSERVER\"));\n handle.start();\n }catch(Exception e){\n \n }*/\n \n //logger.info(\"Starting Glassfish Server.....\");\n /// dm.getStartServerHandler().startServer();\n \n /* }catch(Exception e){\n logger.log(Level.SEVERE,org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"ERROR_INSTALLING_PC\"),e);\n }finally{\n handle.finish();\n }*/\n \n }",
"public static void main(String[] args) {\n Vertx vertx = Vertx.vertx();\n vertx.deployVerticle(new VertxRestAPI());\n }",
"public static void main(String[] args) {\r\n SunSpotHostApplication app = new SunSpotHostApplication();\r\n app.run();\r\n }",
"@Deployment\n public static WebArchive deploy() {\n final File[] dependencies = Maven\n .resolver()\n .loadPomFromFile(\"pom.xml\")\n .resolve(\"mysql:mysql-connector-java\",\n \"org.assertj:assertj-core\").withoutTransitivity()\n .asFile();\n\n // The webArchive is the special packaging of your project\n // so that only the test cases run on the server or embedded\n // container\n final WebArchive webArchive = ShrinkWrap.create(WebArchive.class)\n .setWebXML(new File(\"src/main/webapp/WEB-INF/web.xml\"))\n .addPackage(Books.class.getPackage())\n .addPackage(BooksAction.class.getPackage())\n .addPackage(BooksController.class.getPackage())\n .addPackage(JsfUtil.class.getPackage())\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n .addAsWebInfResource(new File(\"src/main/webapp/WEB-INF/glassfish-resources.xml\"), \"glassfish-resources.xml\")\n .addAsResource(new File(\"src/main/resources/META-INF/persistence.xml\"), \"META-INF/persistence.xml\")\n .addAsResource(\"pacmabooks.sql\")\n .addAsLibraries(dependencies);\n\n return webArchive;\n }",
"public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\n\t\tFile app= new File(\"D:\\\\Testing\\\\Drag_drop\\\\com.mobeta.android.demodslv.apk\");\n\t\t\n\t\t//Launch app\n\t\tDesiredCapabilities capabilities= new DesiredCapabilities();\n\t\t\n\t\t//device details\n\t\tcapabilities.setCapability(\"deviceName\", \"GT-I9300I\");\n\t\tcapabilities.setCapability(\"platformName\", \"Android\");\n\t\tcapabilities.setCapability(\"platformVersion\", \"4.4.4\");\n\t\t\n\t\tcapabilities.setCapability(\"app\", app.getAbsolutePath());\n\t\t\n\t\tAndroidDriver driver= new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\n\t\t//wait\n\t\tThread.sleep(4000);\n\t\t\n\t\tif(driver.isAppInstalled(\"com.mobeta.android.demodslv\"))\n\t\t{\n\t\t\tSystem.out.println(\"App installed Successfully\");\n\t\t\tThread.sleep(8000);\n\t\t\t\n\t\t\tdriver.removeApp(\"com.mobeta.android.demodslv\");\n\t\t\tSystem.out.println(\"Removed the app\");\n\t\t\tThread.sleep(8000);\n\t\t\t\n\t\t\tdriver.installApp(\"D:\\\\Testing\\\\Drag_drop\\\\com.mobeta.android.demodslv.apk\");\n\t\t\tSystem.out.println(\"App installed again\");\n\t\t\tThread.sleep(8000);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"NOT installed the app\");\n\t\t}\n\t\n\t}",
"@Test\n public void testDynamicDeploy() throws Exception\n {\n ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration()\n .setJdbcDriver(\"com.mysql.jdbc.Driver\").setJdbcUrl(\"jdbc:mysql://localhost:3306/activiti\").setJdbcPassword(\"root\")\n .setJdbcUsername(\"root\").setDatabaseSchemaUpdate(\"false\").buildProcessEngine();\n\n // 1. Build up the model from scratch\n BpmnModel model = new BpmnModel();\n Process process = new Process();\n model.addProcess(process);\n process.setId(\"my-process\");\n process.setName(\"Qmplus test\");\n process.addFlowElement(createStartEvent());\n process.addFlowElement(createUserTask(\"task1\",\"First task\",\"fred\"));\n process.addFlowElement(createUserTask(\"task2\",\"Second task\",\"john\"));\n List<SequenceFlow> outgoing = new ArrayList<SequenceFlow>();\n outgoing.add(createSequenceFlow(\"task3\",\"task4\"));\n outgoing.add(createSequenceFlow(\"task3\",\"task2\"));\n process.addFlowElement(createParallelTask(\"task3\",\"option task\",outgoing));\n process.addFlowElement(createEndEvent());\n process.addFlowElement(createScriptTask(\"task4\",\"script task\",\"12343\"));\n\n process.addFlowElement(createSequenceFlow(\"start\",\"task1\"));\n process.addFlowElement(createSequenceFlow(\"task1\",\"task3\"));\n process.addFlowElement(createSequenceFlow(\"task3\",\"task2\"));\n process.addFlowElement(createSequenceFlow(\"task3\",\"task4\"));\n process.addFlowElement(createSequenceFlow(\"task2\",\"end\"));\n process.addFlowElement(createSequenceFlow(\"task4\",\"end\"));\n // 2. Generate graphical information\n new BpmnAutoLayout(model).execute();\n // 3. Deploy the process to the engine\n Deployment deployment = processEngine.getRepositoryService().createDeployment().addBpmnModel(\"dynamic-model.bpmn\",model)\n .name(\"Dynamic process deployment\").deploy();\n\n // 4. Start a process instance\n ProcessInstance processInstance = processEngine.getRuntimeService().startProcessInstanceByKey(\"my-process\");\n\n // 5. Check if task is available\n List<Task> tasks = processEngine.getTaskService().createTaskQuery().processInstanceId(processInstance.getId()).list();\n\n org.junit.Assert.assertEquals(1,tasks.size());\n Assert.assertEquals(\"First task\",tasks.get(0).getName());\n Assert.assertEquals(\"fred\",tasks.get(0).getAssignee());\n\n // 6. Save process diagram to a file\n InputStream processDiagram = processEngine.getRepositoryService().getProcessDiagram(processInstance.getProcessDefinitionId());\n FileUtils.copyInputStreamToFile(processDiagram,new File(\"diagrams/process.png\"));\n\n // 7. Save resulting BPMN xml to a file\n InputStream processBpmn = processEngine.getRepositoryService().getResourceAsStream(deployment.getId(),\"dynamic-model.bpmn\");\n FileUtils.copyInputStreamToFile(processBpmn,new File(\"diagrams/process.bpmn20.xml\"));\n\n // 8. create user\n CreateUser();\n // 9. create group\n createGroup();\n // 10. assign process to user\n\n }",
"@Test\n public void testCreateNeededModelVersionsForManuallyDeployedApps() {\n List<Host> hosts = createHosts(7, \"7.0.0\");\n\n CountingModelFactory factory700 = createHostedModelFactory(Version.fromString(\"7.0.0\"), devZone);\n CountingModelFactory factory710 = createHostedModelFactory(Version.fromString(\"7.1.0\"), devZone);\n CountingModelFactory factory720 = createHostedModelFactory(Version.fromString(\"7.2.0\"), devZone);\n List<ModelFactory> modelFactories = List.of(factory700, factory710, factory720);\n\n DeployTester tester = createTester(hosts, modelFactories, devZone);\n // Deploy with version that does not exist on hosts, the model for this version should also be created\n tester.deployApp(\"src/test/apps/hosted/\", \"7.2.0\");\n assertEquals(7, tester.getAllocatedHostsOf(tester.applicationId()).getHosts().size());\n\n // Check >0 not ==0 as the session watcher thread is running and will redeploy models in the background\n // Nodes are on 7.0.0 (should be created), no nodes on 7.1.0 (should not be created), 7.2.0 should always be created\n assertTrue(factory700.creationCount() > 0);\n assertFalse(factory710.creationCount() > 0);\n assertTrue(\"Newest model for latest major version is always included\", factory720.creationCount() > 0);\n }",
"public void upgrade_2_12() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.12\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.12.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper\n\t\t\t\t\t.setRootXml(\"cyklotron-2.12.war\", \"ledge.root\", \"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.12 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public static void main(String[] arguments) {\n\t\tString[] args = new String[1];\n\n\t\t// if the env variable doesn't exist then deploy_env will be null\n\t\t// if running on comp, minc, prodlike, or prod, then the env var should\n\t\t// be there\n\t\tString deployEnv = System.getenv(\"DEPLOY_ENV\");\n\t\tlogger.info(\"DEPLOY_ENV: \" + deployEnv);\n\n\t\tif (deployEnv == null) {\n\t\t\targs[0] = \"--spring.profiles.active=local\";\n\t\t\tlogger.info(\"Will now deployment on: local\");\n\t\t} else {\n\t\t\tif (!(\"comp\".equals(deployEnv) || \"minc\".equals(deployEnv) || \"prodlike\".equals(deployEnv)\n\t\t\t\t\t|| \"prod\".equals(deployEnv))) {\n\t\t\t\tlogger.error(deployEnv + \" is not a recognized deploy environment, aborting.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\targs[0] = \"--spring.profiles.active=\" + deployEnv;\n\t\t\tlogger.info(\"Will now deployment on: \" + deployEnv);\n\t\t}\n\n\t\tSpringApplication.run(UsherApplication.class, args);\n\t\tlogger.info(\"Finish Main\");\n\t}",
"public static void main(String[] args) {\n\t\tAddTivoliServer as = new AddTivoliServer();\n\t\tas.start();\n\t}",
"boolean deploy(TenantServiceAccessor tenantAccessor, BusinessArchive businessArchive, SProcessDefinition processDefinition) throws BonitaException;",
"public static void main(String[] args) {\n Vertx vertx = Vertx.vertx();\n vertx.deployVerticle(new MainVerticle());\n }",
"protected void deploySuite(String suitePath, String mainClassName) {\n \n }",
"Boolean publishRunbook();",
"public static void main(String[] args) {\r\n\t\tString appname=\"Miniz.apk\";\r\n\t\t\t\t\t\t\t\t\t//for creation of entrypoint providing the application and android jar\r\n\t//Options.v().setPhaseOption(\"cg.cha\",\"on\");\r\n\tSetupApplication app = new\tSetupApplication(\"android.jar\",appname);\r\n\ttry {\r\n\t \t\t app.calculateSourcesSinksEntrypoints(\"SourceAndSinks.txt\");\t\t \t\t\t\r\n\t} catch (Exception e) {\r\n\t\te.printStackTrace();\r\n }\r\n\tsoot.G.reset();\r\n\t//set soot options\r\n\tOptions.v().set_src_prec(Options.src_prec_apk);\r\n\tOptions.v().set_process_dir(Collections.singletonList(appname));\r\n\tOptions.v().set_force_android_jar(\"android.jar\");\r\n\tOptions.v().set_whole_program(true);\r\n\tOptions.v().set_allow_phantom_refs(true);\r\n\t//For Handling the Junit test cases output the result into Jimple files\r\n\tOptions.v().set_output_format(Options.output_format_J);\r\n\t//For the code execution \r\n\t//Options.v().set_output_format(Options.output_format_dex);\r\n\tOptions.v().setPhaseOption(\"cg.spark verbose:true\",\"on\");\r\n\tOptions.v().setPhaseOption(\"on-fly-cg\",\"true\");\r\n\t//Renaming dummy main method as void main(String args) for sending the cfg in VASCO\r\n\tList<Type> s = new ArrayList<Type>();\r\n\ts=Arrays.asList(new Type[]{\r\n\tsoot.ArrayType.v(soot.RefType.v(\"java.lang.String\"), 1)\r\n\t});\r\n\t//creating dummy main\r\n\tSootMethod entryPoint =app.getEntryPointCreator().createDummyMain();\r\n\tentryPoint.setName(\"main\");\r\n\tentryPoint.setParameterTypes(s);\r\n\tChain<Unit> u1=entryPoint.getActiveBody().getUnits();\r\n Unit first=u1.getFirst();\r\n //Replacing the constant intitialization of dummy main variable by randomnumber for VASCO doesnt remove any branches from dummy main\r\n Scene.v().loadClassAndSupport(\"java.lang.Math\");\r\n SootMethod sm=Scene.v().getMethod(\"<java.lang.Math: double random()>\");\r\n SootMethodRef smRef=sm.makeRef();\r\n if(first instanceof AssignStmt){\r\n \tValue lhsOp = ((AssignStmt) first).getLeftOp();\r\n Value rhsOp = ((AssignStmt) first).getRightOp();\r\n if(lhsOp instanceof Local && rhsOp instanceof Constant){\r\n \tu1.removeFirst();\r\n u1.addFirst(Jimple.v().newAssignStmt(lhsOp, Jimple.v().newStaticInvokeExpr(smRef)));\r\n }\r\n }\r\n\r\n Scene.v().loadNecessaryClasses();\r\n System.out.println(\"Class::--\"+entryPoint.getDeclaringClass()+\"\\n Dummy Main....-->\"+ entryPoint.getActiveBody());\r\n\tScene.v().setEntryPoints(Collections.singletonList(entryPoint));\r\n\tOptions.v().set_main_class(entryPoint.getDeclaringClass().getName());\r\n\tPackManager.v().runPacks();\r\n\tcg = Scene.v().getCallGraph();\r\n \t\r\n\t\r\n\t//function to get all the methods existing in the call graph\r\n\trecursive(entryPoint);\r\n\t//Printing the methods in the call graph \r\n\tfor(Entry<String, Boolean> eSet : visited.entrySet()){\r\n\t\t\tString value=eSet.getKey().toString();\r\n\t\t\tSystem.out.println(\"Methods in callg graph: \"+value);\r\n\t}\r\n\t\r\n\tList<SootMethod> unusedmethods=new ArrayList<SootMethod>();\t\r\n\tSystem.out.println(\"All::-->\");\r\n\t//Fetching all the methods in the Application and storing the unused methods in a list(unusedmethods)\r\n\tChain<SootClass> clas=Scene.v().getApplicationClasses();\r\n\tfor(SootClass abc1:clas){\r\n\t \tSootClass sClass=Scene.v().loadClassAndSupport(abc1.getName());\r\n\t \tList <SootMethod> methods=sClass.getMethods();\r\n\t\t\t \tfor(SootMethod a: methods){\r\n\t \t\tSystem.out.println( a.getSignature());\r\n\t \t\tif(visited.containsKey(a.getSignature()))\r\n\t \t\t\tcontinue;\r\n\t \t\telse{\r\n\t \t\t\t//Handling classes which extends View and the attributes are not defined in Layout.xml , Handling all init & access functions and Handler functions along with SQLiteDatabase Helper \r\n\t \t\t \t\t\tif(!(a.getSubSignature().contains(\"void <init>\") || a.getSubSignature().contains(\"void <clinit>\") || a.getSubSignature().contains(\"access$\") || a.getDeclaringClass().getSuperclass().getName().contains(\"SQLiteOpenHelper\"))){\r\n\t \t\t \t\t\t\tif(a.getDeclaringClass().getSuperclass().getName().equals(\"android.view.View\") || a.getDeclaringClass().getSuperclass().getName().contains(\"android.os.Handler\")){\r\n\t \t\t \t\t\t\t\tList<SootMethod> methodlist=a.getDeclaringClass().getSuperclass().getMethods();\r\n\t \t\t\t \t\t\t\tint flag=0;\r\n\t \t\t\t \t\t\t\tfor(SootMethod ab: methodlist){\r\n\t \t\t\t \t\t\t\t\tif(ab.getSubSignature()==a.getSubSignature()){// && !unusedmethods.contains(a))\r\n\t \t\t\t \t\t\t\t\t\tflag=1;\r\n\t \t\t\t \t\t\t\t\t\tbreak;\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\tif(flag!=1)\r\n\t \t\t\t \t\t\t\t\tunusedmethods.add(a);\r\n\t \t\t\t \t\t\t}\r\n\t \t\t \t\t\t\telse\r\n\t \t\t\t \t\t\t\tunusedmethods.add(a);\r\n\t \t\t\t\t}\r\n\t \t\t\t\t\r\n\t \t\t\t\r\n\t \t\t}\r\n\r\n\t \t}\r\n\t }\r\n\t \r\n\t //Handling the functions when the class implements interface\r\n\t List<SootMethod> delm = new ArrayList<SootMethod>();\r\n\t List<SootMethod> un=unusedmethods;\r\n\t for(SootMethod m:un){\r\n\t\t \t if(m.getDeclaringClass().getInterfaceCount()>0){\r\n\t\t\t\t\t Chain<SootClass> interfaces=m.getDeclaringClass().getInterfaces();\r\n\t\t\t\t\t for(SootClass c:interfaces){\r\n\t\t\t\t\t\t List<SootMethod> smi=c.getMethods();\r\n\t\t\t\t\t\t for(SootMethod m1:smi){\r\n\t\t\t\t\t\t\t if(m1.getName().contains(m.getName())){\r\n\t\t\t\t\t\t\t\t delm.add(m);\t\t\t\t \r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t\t \r\n\t\t\t }\r\n\t }\r\n\t for(SootMethod m1:delm){\r\n\t\t unusedmethods.remove(m1);\r\n\t }\r\n\r\n\t //Handling Reflection methods\r\n\t for(SootMethod a: un){\r\n\t\t\tSootClass classWeNeedToLoad = a.getDeclaringClass();\r\n\t\t\tfor(Map.Entry<String,String> entry: Driver.runmethods.entrySet()){\r\n\t\t\t//\tif(!(entry.getKey().contains(classWeNeedToLoad.toString()) && a.getName().contains(entry.getValue())))\r\n\t\t\t\tif(entry.getValue().contains(a.getName()) && entry.getKey().contains(classWeNeedToLoad.toString())){\r\n\t\t\t\t\tunusedmethods.remove(a);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t \r\n\t //Remove the unused methods\t \r\n\t for(SootMethod a: unusedmethods){\r\n\t \tSootClass classWeNeedToLoad = a.getDeclaringClass();\r\n\t \tclassWeNeedToLoad.removeMethod(a);\r\n\t\t}\r\n\t\r\n\r\n\t//Calling Vasco for interprocedural analysis \r\n\tInterproceduralAnalysis ipa = new InterproceduralAnalysis(new EmptyReporter());\r\n\tipa.doAnalysis();\r\n\tprint();\r\n\t//Deleting the ifs with constant result\r\n\tdeleteifs(ifStmts);\r\n\t\r\n\t//Write the apk\r\n\tPackManager.v().writeOutput();\r\n}",
"void launchAsMaster();",
"public void launchNode(DeployableNode node)\n {\n this.app.addNode( node );\n this.taskQueue.insertTask( node.getTask() );\n\n //flush changes to persistent storage\n if( !this.flush() )\n {\n LOGGER.error(\"failed to flush to persistent storage\");\n }\n }",
"@Deployment(testable = false)\n public static WebArchive createDeployment() {\n\n // Import Maven runtime dependencies\n File[] files = Maven.resolver().loadPomFromFile(\"pom.xml\")\n .importRuntimeDependencies().resolve().withTransitivity().asFile();\n\n return ShrinkWrap.create(WebArchive.class)\n .addPackage(Session.class.getPackage())\n .addClasses(SessionEndpoint.class, SessionRepository.class, Application.class)\n .addAsResource(\"META-INF/persistence-test.xml\", \"META-INF/persistence.xml\")\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n .addAsLibraries(files);\n }",
"public static void main(String[] args) {\n\t\tSeContainerInitializer initializer = SeContainerInitializer.newInstance();\n\t\ttry (final SeContainer container = initializer.initialize()) {\n\t\t\tApp app = container.select(App.class).get();\n\t\t\tapp.executar();\n\t\t}\n\t}",
"public static void main(String args[]) {\n (Installer.instance = new Installer(true)).loadWindow();\n\n //TODO: Save autohide status on file before implementing\n Installer.instance.autoHide.setState(false);\n Installer.instance.autoHide.setVisible(false);\n\n String gameDir = FileUtils.getWorkingDirectory().getAbsolutePath();\n\n /* Forces the forge installer download, enables the progress bar */\n Rectangle oldBounds = Installer.instance.frame.getBounds();\n Installer.instance.frame.setBounds(oldBounds.x, oldBounds.y, oldBounds.width, oldBounds.height + 50);\n\n download(new File(gameDir), manifest_url, true, \"forge\");\n\n /* Removes the progress bar & download status after finishing download */\n Installer.instance.frame.setBounds(oldBounds);\n Installer.instance.downloadStatus.setVisible(false);\n\n log(\"Download completed\");\n }",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"Welcome to Devops Maven Project...\");\n\n\t}",
"public void upgrade_2_10_1() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.10.1\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.10.1.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.10.1 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public void upgrade_2_26_6() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.26.6\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.26-1.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.26.6.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.26-2.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.26.6 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public static void main(String args[]){\r\n Application theApp = new Application();\r\n theApp.createAccounts();\r\n theApp.processAccounts();\r\n theApp.outputAccounts();\r\n\r\n }",
"public static void main(String argv[]) {\n\n VertxOptions options = new VertxOptions().setBlockedThreadCheckInterval(200000000);\n options.setClustered(true);\n\n Vertx.clusteredVertx(options, res -> {\n if (res.succeeded()) {\n Vertx vertx = res.result();\n final JsonObject js = new JsonObject();\n vertx.fileSystem().readFile(\"app-conf.json\", result -> {\n if (result.succeeded()) {\n Buffer buff = result.result();\n js.mergeIn(new JsonObject(buff.toString()));\n initConfig(js);\n DeploymentOptions deploymentOptions = new DeploymentOptions().setConfig(js).setMaxWorkerExecuteTime(5000).setWorker(true).setWorkerPoolSize(5);\n vertx.deployVerticle(SparkVerticle.class.getName(), deploymentOptions);\n } else {\n System.err.println(\"Oh oh ...\" + result.cause());\n }\n });\n\n }\n });\n }",
"public void upgrade_2_28_4() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.28.4\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.28.4.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.28.4 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public void upgrade_2_19_7() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.19.7\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.19.7.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.19.7 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"void launchApp();",
"public static void main(String[] args) {\n if (args.length > 0) {\n try {\n Runtime.getRuntime().addShutdownHook(new ProcessTerminator());\n Script script = (Script) Class.forName(\n \"org.spec.jappserver.launcher.\" +\n args[0]) .newInstance();\n\n script.args = new String[args.length - 1];\n\n System.arraycopy(args, 1, script.args,\n 0, script.args.length);\n\n script.runScript();\n\n } catch (Throwable e) {\n e.printStackTrace();\n } finally {\n Launcher.destroyAll();\n }\n }\n }",
"public IStatus prepareDeployDirectory(IPath deployPath);",
"public void upgrade_2_18_1() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.18.1\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.18.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.18.1.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.18.1 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"@Override\n public Handle<GameAppContext> createGameApp(String name, Handle<GameAppContext> parent, Map<String, String> additionalParams) \n {\n return manager.createGameApp(name, parent, additionalParams);\n }",
"@SystemSetup(type = SystemSetup.Type.ALL, process = SystemSetup.Process.ALL)\n public void runUpdateDeploymentScripts(\n final SystemSetupContext hybrisContext) {\n if (getConfiguredCreateDataStep().equals(hybrisContext.getType())) {\n final UpdatingSystemExtensionContext context = this.getUpdatingContext(hybrisContext);\n if (this.extensionHelper.isFirstExtension(context) && SystemSetup.Process.UPDATE.equals(context.getProcess())) {\n this.clearErrorFlag();\n }\n this.runDeploymentScripts(context, false);\n } else {\n if (LOG.isTraceEnabled()) {\n LOG.trace(String.format(\"Not running the deployment update scripts because were are in the %s data creation.\", hybrisContext.getType()));\n }\n }\n }",
"void publishPlugin(byte[] jarFile);",
"public void upgrade_2_11() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.11\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper\n\t\t\t\t\t.setRootXml(\"cyklotron-2.11.war\", \"ledge.root\", \"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.11.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.11 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public void execute() throws MojoExecutionException {\n\t\tgetLog().info(\"Executing ProcessSourcesMojo\");\n\n\t\tFile testJavaScriptDirectory = getCleanTargetDirectory(javaScriptTestDependencyDirectory);\n\t\tFile runtimeJavaScriptDirectory = getCleanTargetDirectory(javaScriptRunTimeDependencyDirectory);\n\n\t\tcopyDependencyFiles(\"runtime\", runtimeJavaScriptDirectory);\n\t\tif (!this.skipTests) {\n\t\t\tcopyDependencyFiles(\"test\", testJavaScriptDirectory);\n\t\t}\n\n\t\tgetLog().info(\"Finished ProcessSourcesMojo\");\n }",
"public void startApp()\r\n\t{\n\t}",
"public static void publishFeed (String shortName) {\n\t try{\n\t \t//System.out.println(\"publisher is called!!\");\n\t \tString allFeedRootPath = \"/home/felixxie/FeedGenerator/datacasts\";\t\t\t\t//TODO: this is the path of server!!\n\t \t//String allFeedRootPath = \"/Users/felixxie/Documents/workspace/FeedGenerator/src/datacasts\";\t\t//TODO: This is the path of JPL Mac. Should manually create datacasts folder. Change it when deploying to server.\n\t \t//String allFeedRootPath = \"/Users/felixxie/Desktop/SummerProject/FeedGenerator/src/datacasts\";\t\t//TODO: This is my mac pro folder. when deploy, change this one.\n\t \tString datasetFeedPath = allFeedRootPath.concat(\"/\").concat(shortName).concat(\"-feed\");\n\t \tString configFilePath = datasetFeedPath.concat(\"/config.cfg\");\n\t \tString datasetItemPath = datasetFeedPath.concat(\"/items\");\n\t \t\n\t \t\n\t \tString publishToolPath = \"/export/00/www/aeolus/htdocs/datacasting-publishing-tools-3.0.2a\";\t//TODO: This is path of server!!\n\t \t//String publishToolPath = \"/Users/felixxie/Documents/workspace/FeedGenerator/src/datacasting-publishing-tools-3.1.0\";\t//TODO: This is the path of JPL Mac.\n\t \t//String publishToolPath = \"/Users/felixxie/Desktop/SummerProject/FeedGenerator/src/datacasting-publishing-tools-3.1.0\"; //TODO: This is the path in my Mac pro. when deploy, change this one.\n\t \tString IngestItemPath = publishToolPath.concat(\"/IngestItem\");\n\t \tString GenerateFeedPath = publishToolPath.concat(\"/GenerateFeed\");\n\t \t\n\t \t\n\t \t//String cleanDSstoreCommand = \"find \".concat(allFeedRootPath).concat(\" -name \\\"*.DS_Store\\\" -type f -delete\"); \n\t \t\n\t \t\n\t \tFile file4DirCreation = new File(datasetItemPath.concat(\"/\"));\n\t \t//Runtime.getRuntime().exec(cleanDSstoreCommand);\t\t//TODO: may or may not need this on server\n\t \t\n \t\tif (file4DirCreation.exists() && file4DirCreation.list().length > 0) {\t\t//only when there is items folder and items in items folder, i.e.there's items to be ingested, then perform action.\n \t\t\t\n \t\t\t//--------- remove .DS_Store -----------\n \t\t\tDSStoreRemover.execute(datasetItemPath, \".DS_Store\");\n \t\t\t//--------- end of removing .DS_Store ---------\n \t\t\t\n \t\t\t//avoid racing: loop until .DS_Store is deleted\n \t\t\t//File DSStoreFile = new File(datasetItemPath.concat(\"/.DS_Store\"));\n \t\t\t//if (DSStoreFile.exists()) {\n \t\t\t\n \t\t\t//./IngestItem -c /Users/felixxie/Documents/src/datacasts/MOD02QKM-feed/config.cfg -d /Users/felixxie/Documents/src/datacasts/MOD02QKM-feed/items\n \t\t\tString ingestCommand = IngestItemPath.concat(\" -e --config=\").concat(configFilePath).concat(\" -d \").concat(datasetItemPath);\t\t\t//TODO: this is server version of publisher\n \t\t\t//String ingestCommand = IngestItemPath.concat(\" -c \").concat(configFilePath).concat(\" -d \").concat(datasetItemPath);\t\t\t//TODO: this is local version of publisher\n \t\t\t//Runtime.getRuntime().exec(ingestCommand);\n \t\t\t\n \t\t\t//Runtime.getRuntime().exec(cleanDSstoreCommand);\t\t//TODO: may or may not need this on server\n \t\t\t//String cleanDSstoreXMLCommand = \"find \".concat(allFeedRootPath).concat(\" -name \\\"*.DS_Store.xml\\\" -type f -delete\");\n \t\t\t//Runtime.getRuntime().exec(cleanDSstoreXMLCommand);\t\t//TODO: may or may not need this on server\n \t\t\t//------------------------\n \t\t\tRuntime.getRuntime().exec(ingestCommand);\n \t\t\t//Process p = Runtime.getRuntime().exec(ingestCommand);\n \t\t\t//Scanner scanner = new Scanner(p.getInputStream());\n \t\t //while (scanner.hasNext()) {\n \t\t //System.out.println(scanner.nextLine());\n \t\t //}\n \t\t\t//}\n \t\t\t//----------------------\n \t\t\t\n \t\t\t\n \t\t\t//------------------------------------- GenerateFeed ---------------\n \t\t\tString itemsXMLpath = datasetFeedPath.concat(\"/items-xml/\");\n \t\t\tString queuePath = datasetFeedPath.concat(\"/queue/\");\n \t\t\tFile itemsXMLCreation = new File(itemsXMLpath);\n \t\t\tFile queueCreation = new File(queuePath);\n \t\t\t\n \t\t\tboolean ready = false;\t\t//this signifies that the ingestion is finished and ready to generate feed.\n \t\t\t\n \t\t\t//Runtime.getRuntime().exec(cleanDSstoreXMLCommand);\t\t//TODO: may or may not need this on server\n \t\t\t//Runtime.getRuntime().exec(cleanDSstoreCommand);\t\t//TODO: may or may not need this on server\n \t\t\t\n \t\t\twhile (ready == false) {\t//loop until items-xml and queue have been created: ingestion finished. This is ok when items folder doesn't have item inside.\n \t\t\t\t//System.out.println(\"hangs here!!\");\n \t\t\t\tif (itemsXMLCreation.exists() && queueCreation.exists()) {\n\n \t\t\t\t\t//------ remove the orginal feed if there's one --------\n \t\t\t\t\t//String feed = datasetFeedPath.concat(\"/\").concat(shortName).concat(\".xml\");\n \t\t\t\t\t//File feedFile = new File(feed);\n \t\t\t\t\t//if (feedFile.exists())\n \t\t\t\t\t\t//feedFile.delete();\n \t\t\t\t\t//------end of removal--------------------------\n \t\t\t\t\t//\n \t\t\t\t\t\n \t\t\t\t\t//Runtime.getRuntime().exec(cleanDSstoreCommand);\n \t \t\t\t//Runtime.getRuntime().exec(cleanDSstoreXMLCommand);\t\t//TODO: may or may not need this on server\n \t\t\t\t\t//Runtime.getRuntime().exec(cleanDSstoreCommand);\t\t//TODO: may or may not need this on server\n \t \t\t\t\n \t\t\t\t\t//System.out.println(\"goes in here!!\");\n \t \t\t\t//./GenerateFeed -c /Users/felixxie/Desktop/SummerProject/FeedGenerator/src/datacasts/MOD02QKM-feed/config.cfg -r \n \t\t\t\t\tString generateCommand = GenerateFeedPath.concat(\" --config=\").concat(configFilePath);\t\t//TODO: this is the server version\n \t \t\t\t//String generateCommand = GenerateFeedPath.concat(\" -c \").concat(configFilePath).concat(\" -r\");\t\t//TODO: this is the local version\n \t \t\t\t//System.out.println(generateCommand);\n \t \t\t\tRuntime.getRuntime().exec(generateCommand);\n \t \t\t\t//Process np = Runtime.getRuntime().exec(generateCommand);\n \t \t\t\t//Scanner nscanner = new Scanner(np.getInputStream());\n \t \t\t //while (nscanner.hasNext()) {\n \t \t\t //System.out.println(nscanner.nextLine());\n \t \t\t //}\n \t \t\t\t\n \t\t\t\t\tready = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\t\n \t}catch(IOException e){\n \t\te.printStackTrace();\n \t}\n }",
"public static void main(String[] args) throws Exception {\n\n\t\tServer server = new Server(8080);\n\n\t\tWebAppContext bb = new WebAppContext();\n\t\tbb.setServer(server);\n\n\t\tbb.addFilter(GuiceFilter.class, \"/*\", EnumSet.allOf(DispatcherType.class));\n\n\t\tServletHolder holder = bb.addServlet(ServletContainer.class, \"/*\");\n\t\tholder.setInitParameter(\"javax.ws.rs.Application\", \"net.ludeke.rest.jersey.MyApplication\");\n\n\t\tbb.addServlet(holder, \"/*\");\n\t\tbb.setContextPath(\"/\");\n\t\tbb.setWar(\"src/main/webapp\");\n\n\t\tserver.setHandler(bb);\n\n\t\ttry {\n\t\t\tSystem.out.println(\">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP\");\n\t\t\tserver.start();\n\t\t\twhile (System.in.available() == 0) {\n\t\t\t\tThread.sleep(5000);\n\t\t\t}\n\t\t\tserver.stop();\n\t\t\tserver.join();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(100);\n\t\t}\n\t}",
"@Override\n protected void appStart() {\n }",
"public static void main(String[] args){\n DotComBust game = new DotComBust();\n game.setUpGame();\n game.startPlaying();\n }",
"public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"com/example/lifecycle/appCxt.xml\");\n\t\t\n\t\t\tHelloWorld world = (HelloWorld) context.getBean(\"hello\");\n\t\t\tworld.sayHello();\n\t\t\t\n\t\t\tAccountService accountService = context.getBean(\"accountService\",AccountService.class);\n\t\t\taccountService.openAccount();\n\t\t\taccountService.deposit();\n\t\t\t\n\t\t\tLibraryService libraryService = context.getBean(\"libraryService\",LibraryService.class);\n\t\t\tlibraryService.listBooks();\n\t\t\tlibraryService.issueBook();\n\t\t\t\n\t\t//IOC Container is stopped\n\t\tcontext.destroy();\n\t\tcontext.close();\n\t\t\n\t\t\n\t}",
"void deploy(Map<?, ?> properties, Set<File> modules) throws EJBException {\n File app = null;\n try {\n app = getOrCreateApplication(modules);\n \n if (_logger.isLoggable(Level.FINE)) {\n _logger.fine(\"[EJBContainerImpl] Deploying app: \" + app);\n }\n DeployCommandParameters dp = new DeployCommandParameters();\n dp.path = app;\n\n if (properties != null) {\n dp.name = (String)properties.get(EJBContainer.APP_NAME);\n }\n\n deployedAppName = deployer.deploy(app, dp);\n cleanup = new Cleanup(this);\n } catch (IOException e) {\n throw new EJBException(\"Failed to deploy EJB modules\", e);\n }\n\n if (deployedAppName == null) {\n throw new EJBException(\"Failed to deploy EJB modules - see log for details\");\n }\n }",
"void pipelineDeployJar(Long pipelineRecordId, Long cdStageRecordId, Long cdJobRecordId);",
"private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}",
"public TiDeployData()\n\t{\n\t\tTiApplication app = TiApplication.getInstance();\n\t\tFile extStorage = Environment.getExternalStorageDirectory();\n\t\tFile deployJson = new File(new File(extStorage, app.getPackageName()), \"deploy.json\");\n\t\tif (deployJson.exists()) {\n\t\t\treadDeployData(deployJson);\n\t\t}\n\t}",
"public void upgrade_2_27_6() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.27.6\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.27.6.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.27.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.27.6 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public void doExport(IProgressMonitor monitor) throws ExportException\n\t{\n\t\tSubMonitor subMonitor = SubMonitor.convert(monitor, \"Creating War File\", 20);\n\t\tFile warFile = createNewWarFile();\n\t\tsubMonitor.worked(1);\n\t\tFile tmpWarDir = createTempDir();\n\t\tsubMonitor.worked(1);\n\t\tString appServerDir = exportModel.getServoyApplicationServerDir();\n\t\tsubMonitor.subTask(\"Copy root webapp files\");\n\t\tcopyRootWebappFiles(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy beans\");\n\t\tcopyBeans(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy plugins\");\n\t\tcopyPlugins(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy lafs\");\n\t\tcopyLafs(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy all standard libraries\");\n\t\tfinal File targetLibDir = copyStandardLibs(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy Drivers\");\n\t\tcopyDrivers(appServerDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy images\");\n\t\tcopyLibImages(tmpWarDir, appServerDir);\n\t\tsubMonitor.worked(1);\n\t\tmoveSlf4j(tmpWarDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Creating web.xml\");\n\t\tcopyWebXml(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tcreateTomcatContextXML(subMonitor, tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\taddServoyProperties(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tif (exportModel.isExportActiveSolution())\n\t\t{\n\t\t\tsubMonitor.subTask(\"Copy the active solution\");\n\t\t\tcopyActiveSolution(subMonitor.newChild(2), tmpWarDir);\n\t\t}\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Create properties for default admin page\");\n\t\tcreateAdminProperties(subMonitor, tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy NGClient components\");\n\t\tcopyComponents(subMonitor, tmpWarDir, targetLibDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Copy exported components\");\n\t\tcopyExportedComponentsPropertyFile(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tsubMonitor.subTask(\"Creating/zipping the WAR file\");\n\t\tzipDirectory(tmpWarDir, warFile);\n\t\tsubMonitor.worked(2);\n\t\tdeleteDirectory(tmpWarDir);\n\t\tsubMonitor.worked(1);\n\t\tmonitor.done();\n\t\treturn;\n\t}",
"public void doFullPush( File siteDir ) throws IOException{\n clearDirectories();\n makeRemoteDir( root );\n publish( siteDir, false, null );\n }",
"public static void main(String[] args) {\r\n\r\n\t \tSystem.setProperty(\"spring.config.name\", \"sandun-personal-project\");\r\n\t\tSpringApplication.run(ApplicationServer.class, args);\r\n\t}",
"private void addAllDeploymentsAsFreeLaunchers() {\n List<String> deployments = getDeployments();\n log.info(\"Found \" + deployments.size() + \" deployments to be added\");\n for (String deployment : deployments) {\n if (runtimeClient.serviceExists(deployment)) {\n addFreeLauncher(deployment);\n } else {\n log.info(\"Deployment \" + deployment + \" doesn't have a Service that exposes it. Not adding as a launcher...\");\n }\n }\n }",
"public static void main(String[] args) {\n\t\tApplicationContext ctx = new ClassPathXmlApplicationContext(\"classpath:spring-config.xml\");\n\t\tStage stage = (Stage)ctx.getBean(\"Stage\");\n\t\tstage.says();\n\t\tstage.says();\n\t}",
"@Override\r\n public void execute() throws BuildException {\r\n this.validateProperties(); // sanity check.\r\n if (this.isVerbose) {\r\n System.out.printf(\"Processing changelists for %s %s between %s and %s. %n\",\r\n this.port, this.depotPath, this.fromDate, this.toDate);\r\n }\r\n\r\n try {\r\n Map<String, SensorShell> shellCache = new HashMap<String, SensorShell>();\r\n SensorShellMap shellMap = new SensorShellMap(this.tool);\r\n if (this.isVerbose) {\r\n System.out.println(\"Checking for user maps at: \" + shellMap.getUserMapFile());\r\n System.out.println(\"Perforce accounts found: \" + shellMap.getToolAccounts(this.tool));\r\n }\r\n try {\r\n shellMap.validateHackystatInfo(this.tool);\r\n }\r\n catch (Exception e) {\r\n System.out.println(\"Warning: UserMap validation failed: \" + e.getMessage());\r\n }\r\n \r\n P4Environment p4Env = new P4Environment();\r\n p4Env.setP4Port(this.port);\r\n p4Env.setP4User(this.userName);\r\n p4Env.setP4Password(this.password);\r\n p4Env.setP4Executable(this.p4ExecutablePath);\r\n // These are given default values above. User need not set them in the Ant task unless\r\n // the defaults are not correct.\r\n p4Env.setP4SystemDrive(this.p4SysDrive);\r\n p4Env.setP4SystemRoot(this.p4SysRoot);\r\n p4Env.setVerbose(false); // could set this to true for lots of p4 debugging output. \r\n PerforceCommitProcessor processor = new PerforceCommitProcessor(p4Env, this.depotPath);\r\n processor.setIgnoreWhitespace(this.ignoreWhitespace);\r\n processor.processChangeLists(dateFormat.format(this.fromDate), \r\n dateFormat.format(this.toDate));\r\n int entriesAdded = 0;\r\n TstampSet tstampSet = new TstampSet();\r\n for (PerforceChangeListData data : processor.getChangeListDataList()) {\r\n if (this.isVerbose) {\r\n System.out.printf(\"Retrieved Perforce changelist: %d%n\", data.getId());\r\n }\r\n String author = data.getOwner();\r\n Date commitTime = data.getModTime();\r\n for (PerforceChangeListData.PerforceFileData fileData : data.getFileData()) {\r\n SensorShell shell = this.getShell(shellCache, shellMap, author);\r\n this.processCommitEntry(shell, author, tstampSet\r\n .getUniqueTstamp(commitTime.getTime()), commitTime, data.getId(), fileData);\r\n entriesAdded++;\r\n }\r\n }\r\n // Always make sure you call cleanup() at the end. \r\n processor.cleanup();\r\n if (this.isVerbose) {\r\n System.out.println(\"Found \" + entriesAdded + \" commit records.\");\r\n }\r\n\r\n // Send the sensor data after all entries have been processed.\r\n for (SensorShell shell : shellCache.values()) {\r\n if (this.isVerbose) {\r\n System.out.println(\"Sending data to \" + shell.getProperties().getSensorBaseUser() + \r\n \" at \" + shell.getProperties().getSensorBaseHost());\r\n }\r\n shell.send();\r\n shell.quit();\r\n }\r\n }\r\n catch (Exception ex) {\r\n throw new BuildException(ex);\r\n }\r\n }",
"public Object start(IApplicationContext context) {\r\n\t\tSystem.out.println(\"org.cytoscape.product.start()...\");\r\n\t\tjava.text.DateFormat dateFormat = new java.text.SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n java.util.Date date = new java.util.Date();\r\n System.out.println(\" at : \" + dateFormat.format(date));\r\n\r\n\t\t// Start Cytoscape.application bundle here ??? \r\n\t\t//????\r\n\t\t//????\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(10000); //sleep 10 seconds...\r\n\t\t\t}\r\n\t\t\tcatch(InterruptedException ie){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn IApplication.EXIT_OK;\r\n\t}",
"public static void main(String[] args) {\n\t\trunApplication();\n\t}",
"public static void main(String[] args){\r\n slaProject dateTime = new slaProject();\r\n dateTime.go();\r\n }",
"public static void main(String[] args) {\n\r\n\t\tAppUpgrade le = new AppUpgrade();\r\n\t\tle.LogExtrac();\r\n\r\n\t}",
"public void deploy() throws Exception {\n ArrayList<String> args = new ArrayList<String>();\n File onWindows = new File(\"C:/cygwin/bin/rsync.exe\");\n args.add(onWindows.exists() ? onWindows.getAbsolutePath() : \"rsync\");\n args.add(\"-vrzute\");\n args.add(ssh(_user, _key));\n args.add(\"--delete\");\n args.add(\"--chmod=u=rwx\");\n\n args.add(\"--exclude\");\n args.add(\"'build/*.jar'\");\n args.add(\"--exclude\");\n args.add(\"'lib/hexbase_impl.jar'\");\n args.add(\"--exclude\");\n args.add(\"'lib/javassist'\");\n\n ArrayList<String> sources = new ArrayList<String>();\n sources.add(\"build\");\n sources.add(\"lib\");\n for( int i = 0; i < sources.size(); i++ ) {\n String path = new File(sources.get(i)).getAbsolutePath();\n // Adapts paths in case running on Windows\n sources.set(i, path.replace('\\\\', '/').replace(\"C:/\", \"/cygdrive/c/\"));\n }\n args.addAll(sources);\n\n args.add(_host + \":\" + \"/home/\" + _user + \"/\" + TARGET);\n ProcessBuilder builder = new ProcessBuilder(args);\n builder.environment().put(\"CYGWIN\", \"nodosfilewarning\");\n builder.redirectErrorStream(true);\n Process process = null;\n\n try {\n process = builder.start();\n SeparateVM.inheritIO(process, \"rsync to \" + _host, true);\n process.waitFor();\n } finally {\n if( process != null ) {\n try {\n process.destroy();\n } catch( Exception _ ) {\n }\n }\n }\n }",
"public void upgrade_2_24_16() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.24.16\");\n\t\t\ttomcatHelper.stop();\n\t\t\tpsqlHelper.executeSQL(\"upgrade_2.24.16.sql\");\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.24.16.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.24.16 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"@Override\n public void deploy() throws Exception {\n assert !this.deploymentDone();\n PubSub pubSub = PubSub.newBuilder(this)\n .build();\n\n this.publisher1 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();\n this.publisher2 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();\n this.subscriber1 = Subscriber.newBuilder(this, pubSub.getInBoundPortURI()).build();\n\n\n // --------------------------------------------------------------------\n // Connection phase\n // --------------------------------------------------------------------\n\n\n super.deploy();\n assert this.deploymentDone();\n }",
"public void upgrade_2_22_5() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.22.5\");\n\t\t\ttomcatHelper.stop();\n\t\t\tpsqlHelper.executeSQL(\"upgrade_2.22.5.sql\");\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.22.5.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.22.5 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public void execute() throws MojoExecutionException, MojoFailureException {\n\n\t\tif (super.isSkip()) {\n\t\t\tlogger.info(\"Skipping\");\n\t\t\treturn;\n\t\t}\n\n\t\tLogger logger = LogManager.getLogger(FlowHookMojo.class);\n\n\t\ttry {\n\t\t\t\n\t\t\tinit();\n\n\t\t\tif (buildOption == OPTIONS.none) {\n\t\t\t\tlogger.info(\"Skipping Flow Hooks (default action)\");\n\t\t\t\treturn;\n\t\t\t}\n\n if (serverProfile.getEnvironment() == null) {\n throw new MojoExecutionException(\n \"Apigee environment not found in profile\");\n }\n\n\t\t\tList flowhooks = getEnvConfig(logger, \"flowhooks\");\n\t\t\tif (flowhooks == null || flowhooks.size() == 0) {\n\t\t\t\tlogger.info(\"No flowhooks config found.\");\n return;\n\t\t\t}\n\n\t\t\tdoUpdate(flowhooks);\t\t\t\t\n\t\t\t\n\t\t} catch (MojoFailureException e) {\n\t\t\tthrow e;\n\t\t} catch (RuntimeException e) {\n\t\t\tthrow e;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tSpringApplication.run(HimalayanKitchenBackendStarter.class, args);\t\t\n\t}",
"public void addDeploymentFactory(File newDM) throws IOException {\n \n int number=1;\n // copy to the right location...\n File repository = new File(System.getProperty(J2EE_HOME)+File.separator+\n J2EE_DEPLOYMENT_MANAGER_REPOSITORY);\n File to = new File(repository, newDM.getName());\n while (to.exists()) {\n to = new File(repository, newDM.getName()+number);\n number++;\n }\n ArchivistUtils.copy(\n new BufferedInputStream(new FileInputStream(newDM)),\n new BufferedOutputStream(new FileOutputStream(to)));\n \n installDeploymentFactory(to);\n \n }",
"public static void main(String[] args){\n var system = VacSys.getInstance();\n system.main();\n }",
"@Override\n public void run(ApplicationArguments args) {\n }",
"public void actionPerformed(ActionEvent e) {\n try {\n int r = JOptionPane.showConfirmDialog(dialog,\n Messages.WindowsSlaveInstaller_ConfirmInstallation(),\n Messages.WindowsInstallerLink_DisplayName(), OK_CANCEL_OPTION);\n if(r!=JOptionPane.OK_OPTION) return;\n\n if(!DotNet.isInstalled(2,0)) {\n JOptionPane.showMessageDialog(dialog,Messages.WindowsSlaveInstaller_DotNetRequired(),\n Messages.WindowsInstallerLink_DisplayName(), ERROR_MESSAGE);\n return;\n }\n\n final File dir = new File(rootDir);\n if (!dir.exists()) {\n JOptionPane.showMessageDialog(dialog,Messages.WindowsSlaveInstaller_RootFsDoesntExist(rootDir),\n Messages.WindowsInstallerLink_DisplayName(), ERROR_MESSAGE);\n return;\n }\n\n final File slaveExe = new File(dir, \"hudson-slave.exe\");\n FileUtils.copyURLToFile(getClass().getResource(\"/windows-service/hudson.exe\"), slaveExe);\n\n // write out the descriptor\n URL jnlp = new URL(engine.getHudsonUrl(),\"computer/\"+Util.rawEncode(engine.slaveName)+\"/slave-agent.jnlp\");\n String xml = generateSlaveXml(\n generateServiceId(rootDir),\n System.getProperty(\"java.home\")+\"\\\\bin\\\\java.exe\", \"-jnlpUrl \"+jnlp.toExternalForm());\n FileUtils.writeStringToFile(new File(dir, \"hudson-slave.xml\"),xml,\"UTF-8\");\n\n // copy slave.jar\n URL slaveJar = new URL(engine.getHudsonUrl(),\"jnlpJars/remoting.jar\");\n File dstSlaveJar = new File(dir,\"slave.jar\").getCanonicalFile();\n if(!dstSlaveJar.exists()) // perhaps slave.jar is already there?\n FileUtils.copyURLToFile(slaveJar,dstSlaveJar);\n\n // install as a service\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n StreamTaskListener task = new StreamTaskListener(baos);\n r = new LocalLauncher(task).launch().cmds(slaveExe, \"install\").stdout(task).pwd(dir).join();\n if(r!=0) {\n JOptionPane.showMessageDialog(\n dialog,baos.toString(),\"Error\", ERROR_MESSAGE);\n return;\n }\n\n r = JOptionPane.showConfirmDialog(dialog,\n Messages.WindowsSlaveInstaller_InstallationSuccessful(),\n Messages.WindowsInstallerLink_DisplayName(), OK_CANCEL_OPTION);\n if(r!=JOptionPane.OK_OPTION) return;\n\n // let the service start after we close our connection, to avoid conflicts\n Runtime.getRuntime().addShutdownHook(new Thread(\"service starter\") {\n public void run() {\n try {\n StreamTaskListener task = StreamTaskListener.fromStdout();\n int r = new LocalLauncher(task).launch().cmds(slaveExe, \"start\").stdout(task).pwd(dir).join();\n task.getLogger().println(r==0?\"Successfully started\":\"start service failed. Exit code=\"+r);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n });\n System.exit(0);\n } catch (Exception t) {// this runs as a JNLP app, so if we let an exeption go, we'll never find out why it failed \n StringWriter sw = new StringWriter();\n t.printStackTrace(new PrintWriter(sw));\n JOptionPane.showMessageDialog(dialog,sw.toString(),\"Error\", ERROR_MESSAGE);\n }\n }",
"public void upgrade_2_17_2() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.17.2\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.17.2.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.17.rml\");\n\t\t\tcyklotronHelper\n\t\t\t\t\t.executeFixMethod(\"fixes?action=fixes.ReorganizePollsResource\");\n\t\t\tlogger.info(\"Rebuilding all documents structure. It can take up to 30 minutes.\");\n\t\t\tcyklotronHelper.executeFixMethod(\"fixes?action=fixes.CYKLO789\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.17.2 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"@Test\n public void testAccessControlIsOnlyCheckedWhenNoProdDeploymentExists() {\n List<Host> hosts = createHosts(18, \"6.0.0\");\n\n List<ModelFactory> modelFactories = List.of(createHostedModelFactory(Version.fromString(\"6.0.0\")),\n createHostedModelFactory(Version.fromString(\"6.1.0\")),\n createHostedModelFactory(Version.fromString(\"6.2.0\")));\n\n DeployTester tester = createTester(hosts, modelFactories, prodZone, Clock.systemUTC());\n ApplicationId applicationId = tester.applicationId();\n // Deploy with oldest version\n tester.deployApp(\"src/test/apps/hosted/\", \"6.0.0\");\n assertEquals(9, tester.getAllocatedHostsOf(applicationId).getHosts().size());\n\n // Deploy with version that does not exist on hosts and with app package that has no write access control,\n // validation of access control should not be done, since the app is already deployed in prod\n tester.deployApp(\"src/test/apps/hosted-no-write-access-control\", \"6.1.0\");\n assertEquals(9, tester.getAllocatedHostsOf(applicationId).getHosts().size());\n }",
"public static void main(String[] args) {\n SpringApplication.run(PayeemanagementApplication.class, args);\n }",
"public static void main(String[] args) {\n new SpringApplicationBuilder().sources(BaseApplication.class, CrondApplication.class).run(args);\n }",
"@Test\n public void testCreateModelVersionsForManuallyDeployedAppsWhenCreatingFailsForOneVersion() {\n List<Host> hosts = createHosts(7, \"7.0.0\");\n\n ModelFactory factory700 = createFailingModelFactory(Version.fromString(\"7.0.0\"));\n CountingModelFactory factory720 = createHostedModelFactory(Version.fromString(\"7.2.0\"), devZone);\n List<ModelFactory> modelFactories = List.of(factory700, factory720);\n\n DeployTester tester = createTester(hosts, modelFactories, devZone, Clock.systemUTC());\n // Deploy with version that does not exist on hosts, the model for this version should be created even\n // if creating 7.0.0 fails\n tester.deployApp(\"src/test/apps/hosted/\", \"7.2.0\");\n assertEquals(7, tester.getAllocatedHostsOf(tester.applicationId()).getHosts().size());\n\n // Check >0 not ==0 as the session watcher thread is running and will redeploy models in the background\n assertTrue(\"Newest model for latest major version is always included\", factory720.creationCount() > 0);\n }"
] |
[
"0.6008114",
"0.5926055",
"0.5917713",
"0.5911566",
"0.5797469",
"0.56826025",
"0.56209624",
"0.548618",
"0.54472715",
"0.54036057",
"0.53829294",
"0.5351952",
"0.5343885",
"0.5323457",
"0.52438265",
"0.52215004",
"0.5169605",
"0.51593727",
"0.50956833",
"0.5081502",
"0.50789315",
"0.5032782",
"0.49675822",
"0.49506038",
"0.49499503",
"0.4945277",
"0.49340156",
"0.4916181",
"0.4866867",
"0.48643243",
"0.48571363",
"0.4855533",
"0.4854517",
"0.48482862",
"0.48396868",
"0.48353878",
"0.48254028",
"0.48026437",
"0.47967088",
"0.47849402",
"0.47767943",
"0.47744405",
"0.47614446",
"0.4756998",
"0.47562984",
"0.47562426",
"0.4753981",
"0.4749971",
"0.47398487",
"0.47395617",
"0.4727417",
"0.47242597",
"0.4723923",
"0.47192883",
"0.4714278",
"0.47113398",
"0.47016558",
"0.46993315",
"0.46792567",
"0.4679034",
"0.46557224",
"0.46548983",
"0.46533036",
"0.46516374",
"0.46511102",
"0.46447772",
"0.46406114",
"0.46350476",
"0.46200952",
"0.46163633",
"0.46106422",
"0.46105894",
"0.46080232",
"0.4603036",
"0.46019685",
"0.4601377",
"0.45901915",
"0.4580866",
"0.45805007",
"0.45799676",
"0.45780435",
"0.4575428",
"0.4568284",
"0.45659858",
"0.45657265",
"0.4563315",
"0.45612833",
"0.45517108",
"0.4545901",
"0.45454517",
"0.4540665",
"0.45361504",
"0.4535163",
"0.45320064",
"0.45307428",
"0.45307097",
"0.45194575",
"0.45186204",
"0.4517192",
"0.45160732"
] |
0.60918856
|
0
|
Evaluates the function based on the parameters
|
public abstract double[] evaluateAt(double u, double v);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Result evaluate();",
"public MathObject evaluate(Function input);",
"protected abstract Value evaluate();",
"double evaluate(double[] argument);",
"public double evaluate(double x);",
"public abstract double evaluate(double value);",
"double eval();",
"public abstract double evaluate(Point p);",
"@Override\r\n\tpublic double eval() {\r\n\t\tresult = op.apply(arg.eval());\r\n\t\treturn result;\r\n\t}",
"public abstract double evaluer(SolutionPartielle s);",
"public boolean evaluate();",
"public double evaluate(Context context);",
"public final double evaluate(double x,double[] pars){ return value(x,pars); }",
"public abstract Object eval();",
"public abstract double evaluateFitness();",
"public Const evaluate();",
"@Override\r\n\t\tpublic double evaluate(double[] parameters) {\r\n sem.setFreeParamValues(parameters);\r\n\r\n // This needs to be FML-- see Bollen p. 109.\r\n return sem.getFml();\r\n }",
"static interface FittingFunction {\r\n\r\n /**\r\n * Returns the value of the function for the given array of parameter\r\n * values.\r\n */\r\n double evaluate(double[] argument);\r\n\r\n /**\r\n * Returns the number of parameters.\r\n */\r\n int getNumParameters();\r\n }",
"boolean evaluate(E input);",
"String evaluate();",
"void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}",
"public ArrayList execute() {//(MultivariateFunction func, double[] xvec, double tolfx, double tolx) \n num_Function_Evaluation = 0;\n double[] stat = {0.0, 0.0};\n double[] storeBest = null;\n double[] storeMean = null;\n double[] storeStd = null;\n if (isOptimization) {\n storeBest = new double[101];\n storeMean = new double[101];\n storeStd = new double[101];\n //System.out.println(\"Initialization Done\");\n }\n int storeIndex = 0;\n\n //f = func;\n //bestSolution = xvec;\n // Create first generation\n firstGeneration();\n //System.out.println(iRet+\" \"+returnResult[iRet]);\n //stopCondition(fx, bestSolution, tolfx, tolx, true);\n\n //main iteration loop\n while (true) {\n boolean xHasChanged;\n do {\n //printing steps\n if (isPrintSteps) {\n if (currGen % printStep == 0) {\n if (isOptimization) {\n if (storeIndex < 101) {\n storeBest[storeIndex] = fx;\n stat = computFitnessStat();\n storeMean[storeIndex] = stat[0];\n storeStd[storeIndex] = stat[1];\n storeIndex++;\n }\n }\n System.out.printf(\" MH algo It: %5d Best: %.9f Mean: %.9f Std: %.9f \\n\", currGen, fx, stat[0], stat[1]);\n }//printsteps\n }//isPrintSteps\n\n xHasChanged = nextGeneration();\n if (currGen >= maxIter) {//if (maxFun > 0 && numFun > maxFun)\n break;\n }\n //if (prin > 1 && currGen % 20 == 0)\n //printStatistics();\n } while (!xHasChanged);\n //if (stopCondition(fx, bestSolution, tolfx, tolx, false) || (maxFun > 0 && numFun > maxFun))\n if (currGen >= maxIter) {\n break;\n }\n if (fx < 0.0000001) {\n //System.out.println(\"treshold\" + fx);\n //break;\n }\n }//while\n //printing final step\n if (isPrintFinal) {\n if (isOptimization) {\n if (storeIndex < 101) {\n storeBest[storeIndex] = fx;\n stat = computFitnessStat();\n storeMean[storeIndex] = stat[0];\n storeStd[storeIndex] = stat[1];\n storeIndex++;\n }\n }\n System.out.printf(\" MH algo It: %5d Best: %.9f Mean: %.9f Std: %.9f \\nTotal Fun Evaluations: %d\\n\", currGen, fx, stat[0], stat[1], num_Function_Evaluation);\n }\n ArrayList array = new ArrayList();\n array.add(storeBest);\n array.add(storeMean);\n array.add(storeStd);\n return array;\n }",
"public Double eval(Double... operands);",
"@Override\n protected double doEvaluate(InfoBundle info, List<ASTNode> params) {\n for (int i = 0; i < getNumParams(); ++i) {\n ASTNumberLiteral value = new ASTNumberLiteral(params.get(i).evaluate(info));\n info.setVariable(parameterNames.get(i), value);\n }\n\n return body.evaluate(info);\n }",
"public interface FunctionEvaluator {\n\t/*\n\t * Evaluate the given function if possible. Otherwise should return null.\n\t */\n\tpublic MathObject evaluate(Function input);\n}",
"static public interface FunctionHandler\r\n {\r\n public double evaluateFunction(String nam, ArgParser args) throws ArithmeticException;\r\n }",
"protected abstract void evaluate(Vector target, List<Vector> predictions);",
"abstract double apply(double x, double y);",
"@Test\n\tpublic void testSumOverFunctionEvaluatingArguments() {\n\t\trunTest(2, false, \"sum({{(on f in Boolean -> 0..3) product({{(on X in Boolean) f(not X or X) : true }}) : true }})\", \"40\");\n\t}",
"public abstract int evalFunction(Player nodePlayer);",
"boolean isEvaluable();",
"@Override\n\tpublic double evalEnergy(Object... arguments)\n \t{\t\t\n\t\treturn _factorFunction.evalEnergy(expandInputList(arguments));\n \t}",
"protected abstract SoyValue compute();",
"float getEvaluationResult();",
"public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }",
"Hojas eval();",
"public void evaluateParameters() throws SecoreException {\n stack.clear();\n for (Parameter parameter : values()) {\n evaluateParameter(parameter);\n }\n }",
"public\n\tMachineValue eval(MachineValue [] params)\n\t{\n\t\tif (params[0].toFloat() < params[1].toFloat())\n\t\t\treturn params[0];\n\t\telse;\n\t\t\treturn params[1];\n\t}",
"abstract int estimationParameter1();",
"public String evaluate(String expression);",
"public void evaluate() {\r\n Statistics.evaluate(this);\r\n }",
"int getEvaluations();",
"public R evaluate(T t, V v);",
"@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}",
"@Override\n\tpublic double evaluate(TransitionSystem ts, Term[] args) throws Exception {\n\t Literal r;\n\t if (literal.indexOf(\".\") > 0) // is internal action\n\t r = new InternalActionLiteral(literal);\n\t else\n\t r = new Literal(literal);\n\t \n\t r.addTerms(args);\n\t VarTerm answer = new VarTerm(\"__RuleToFunctionResult\");\n\t r.addTerm(answer);\n\t \n\t // query the BB\n\t Iterator<Unifier> i = r.logicalConsequence( (ts == null ? null : ts.getAg()), new Unifier());\n\t if (i.hasNext()) {\n\t Term value = i.next().get(answer);\n\t if (value.isNumeric())\n\t return ((NumberTerm)value).solve();\n\t else\n\t throw new JasonException(\"The result of \"+r+\"(\"+value+\") is not numeric!\");\t \n\t } else \n\t throw new JasonException(\"No solution for found for rule \"+r);\n\t}",
"public double getValue(double[] parameters);",
"abstract /*package*/ Object executeRVMFunction(Function func, IValue[] posArgs, Map<String,IValue> kwArgs);",
"public abstract double compute(double value);",
"public abstract double calcular();",
"public String evaluate(Node root){\n\t\tObject[] args;\n\t\tClass[] types;\n\t\tint i= 0;\n\t\tNode nxt;\n\t\tString fun;\n\t\tfun = root.getValue();\n\t\tClass c=null;\n\t\t\n\t\tLinkedList<Node> children = root.getChildren();\n\n\t\tIterator<Node> iter = children.listIterator();\n\t\tif (!iter.hasNext()){\n\t\t\treturn fun;\n\t\t}\n\t\ttypes= new Class[children.size()];\n\t\targs = new Object[children.size()];\n\t\t\n\t\t//populates types[] for getmethod and args[] for invoke\n\t\twhile (iter.hasNext()) {\n\t\t\tnxt = iter.next();\n\t\t\tfun = evaluate(nxt);\n\t\t\tswitch ( root.getReturnType()[i+1] & 0b1111 ) {\n\t\t\t\t//the argument should be a string\n\t\t\t\tcase STRING:\n\t\t\t\t\tc=String.class;\n\t\t\t\t\targs[i]=fun.replace(\"\\\"\",\"\");\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a float primitive\n\t\t\t\tcase FLOAT:\n\t\t\t\t\tc=float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a int primitive\n\t\t\t\tcase INTEGER:\n\t\t\t\t\tc=int.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a Float class\n\t\t\t\tcase BIGFLOAT:\n\t\t\t\t\tc=Float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be an Integer class\n\t\t\t\tcase BIGINTEGER:\n\t\t\t\t\tc=Integer.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\n\t\t\ttypes[i]=c;\n\t\t\ti ++;\n\t\t\t\n\t\t}\n\t\tfun = root.getValue();\n\t\t\n\t\ttry {\n\t\t\t//get the method at this node and apply it to the evaluation of its children\n\t\t\tfun = \"\" + coms.getMethod(fun, types).invoke(coms, args);\n\t\t}catch (Exception e){\n\t\t\t//this will never ever happen\n\t\t}\n\t\t\n\t\treturn fun;\n\t}",
"public void evaluate(ContainerValue cont, Value value, List<Value> result);",
"@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"protected abstract int evaluate(GameState state, String playername);",
"public Object eval (Object expression);",
"public abstract double evaluateSolution(Solution solution) throws JMException, SimulationException;",
"Matriz evaluar(Matriz A);",
"@Test\n public void whenInvokeThenReturnsQuadraticValues() {\n Funcs funcs = new Funcs();\n\n List<Double> expected = Arrays.asList(1D, 3D, 7D);\n List<Double> result = funcs.range(0, 2,\n (pStart) -> 1 * Math.pow(pStart, 2) + 1 * pStart + 1);\n\n assertThat(result, is(expected));\n }",
"double CalculateFitness(double fun) \n\t {\n\t\t double result=0;\n\t\t if(fun>=0)\n\t\t {\n\t\t\t result=1/(fun+1);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t \n\t\t\t result=0;\n\t\t }\n\t\t return result;\n\t }",
"public abstract Object evaluate( Feature feature ) throws FilterEvaluationException;",
"@Override\r\n\tprotected double evaluate(double[] values) throws EvaluationException {\r\n\t\tdouble sum = 0;\r\n\t\tfor (int i = 0 ; i < values.length ; i++){\r\n\t\t\tsum += values[i];\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"public void evaluate(ContainerValue c1, ContainerValue c2, List<Value> result);",
"abstract public void execute(FunctionContext context) throws Exception;",
"private void evaluateProbabilities()\n\t{\n\t}",
"@Test\n public void whenLinearFunctionThenLinearResults() {\n FunctionMethod functionMethod = new FunctionMethod();\n List<Double> result = functionMethod.diapason(5, 8, x -> 2 * x + 1);\n List<Double> expected = Arrays.asList(11D, 13D, 15D);\n assertThat(result, is(expected));\n }",
"private boolean evaluate(final String input) {\n return evaluate(input, true);\n}",
"@Test\n public void whenInvokeThenReturnsLinearValues() {\n Funcs funcs = new Funcs();\n\n List<Double> expected = Arrays.asList(1D, 2D, 3D);\n List<Double> result = funcs.range(0, 2,\n (pStart) -> 1 * pStart + 1);\n\n assertThat(result, is(expected));\n }",
"@Override\n public double evaluate(\n final int i, final double[] point, final double[] params,\n final double[] derivatives) {\n final int dims = getNumberOfDimensions();\n double result = 0.0;\n double diff;\n double param;\n for (int j = 0; j < dims; j++) {\n param = params[j];\n diff = param - point[j];\n result += diff * diff;\n derivatives[j] = 2.0 * diff;\n }\n\n return result;\n }",
"@FunctionalInterface\npublic interface Evaluator<T1, T2> {\n \n /**\n * Evaluate model with specified data set.\n * Return Map with performance metrics and values?\n * {@code Map<String, PerformanceMeasure>} ili {@code Map<Object, PerformanceMeasure>}\n *\n * @param model A model to evaluate\n * @param testSet Data to use for evaluation\n * @return performance measures of a model for the specified test set\n */ // evaluatePerformance testDataSet\n PerformanceMeasure evaluatePerformance(T1 model, T2 testSet); // kako ce da vrati rezultate testiranja - napraviti neku klasu za to?\n \n}",
"@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}",
"public interface Evaluator\n{\n /**\n * Return true if the given object is valid as an expression to\n * the evaluator. If an object is a valid expression, then the\n * evaluator is, in general, able to <code>eval()</code> it into\n * a result (or at least reasonably attempt to do so).\n *\n * @param value the value to check\n * @return true if it is valid as an expression, false if not\n */\n public boolean isExpression (Object value);\n\n /**\n * Return true if the given object is a possible result of evaluation.\n * If this returns true, then it is conceivable that the given object\n * was the result of a call to <code>eval()</code> on this evaluator.\n *\n * @param value the value to check\n * @return true if it is a possible result, false if not\n */\n public boolean isResult (Object value);\n\n /**\n * Evaluate the given value as an expression, yielding some result\n * value.\n *\n * @param expression the thing to evaluate\n * @return the result of evaluation\n */\n public Object eval (Object expression);\n}",
"public abstract void compute();",
"public interface IEval {\n String Evaluate(Integer otherChoice);\n\n\n}",
"boolean evaluate(T target);",
"public static void main(String[] args) {\n ExecuteParams executeParams1 = new ExecuteParams();\n ExecuteParams executeParams2 = new ExecuteParams();\n ExecuteParams executeParams30 = new ExecuteParams();\n ExecuteParams executeParams31 = new ExecuteParams();\n ExecuteParams executeParams32 = new ExecuteParams();\n ExecuteParams executeParams33 = new ExecuteParams();\n ExecuteParams executeParams34 = new ExecuteParams();\n ExecuteParams executeParams41 = new ExecuteParams();\n\n //*** PARAMS\n executeParams1.DeviationPredictor_CosineMetric();\n executeParams2.DeviationPredictor_PearsonMetric();\n executeParams30.DeviationPredictor_PearsonSignifianceWeightMetric(1);\n executeParams31.DeviationPredictor_PearsonSignifianceWeightMetric(5);\n executeParams32.DeviationPredictor_PearsonSignifianceWeightMetric(50);\n executeParams33.DeviationPredictor_PearsonSignifianceWeightMetric(100);\n executeParams34.DeviationPredictor_PearsonSignifianceWeightMetric(200);\n executeParams41.DeviationPredictor_JaccardMetric();\n //***\n\n computeOne(executeParams1);\n computeOne(executeParams2);\n computeOne(executeParams30,\"N = 1\");\n computeOne(executeParams31,\"N = 5\");\n computeOne(executeParams32,\"N = 50\");\n computeOne(executeParams33,\"N = 100\");\n computeOne(executeParams34,\"N = 200\");\n computeOne(executeParams41);\n }",
"public Object eval(String expression) throws Exception;",
"public double execute(TurtleHistory turtleHistory, List<Object> parameters, List<Map<String, Double>> accessibleVariables, Map<String, List<Object>> definedFunctions) throws BackendException {\n String ifConditionArgument = parameters.get(0).toString();\n String trueBlockCommandArgument = parameters.get(1).toString();\n\n double conditionValue = calculateConditionValue(ifConditionArgument, turtleHistory, accessibleVariables);\n\n if (conditionValue != 0) {\n CommandBlockManager trueBlockManager = new CommandBlockManager(trueBlockCommandArgument, turtleHistory, accessibleVariables, definedFunctions);\n return trueBlockManager.executeInstructionBlock();\n } else {\n return 0;\n }\n }",
"@Override\n void execute(RolapEvaluator evaluator) {\n }",
"public void calculate();",
"abstract float evalCell(Cell c, float hunger, Random rand);",
"Double executeOperation(List<Double> operands);",
"abstract void calculate(double a);",
"public void evaluate()\r\n {\r\n\tdouble max = ff.evaluate(chromos.get(0),generation());\r\n\tdouble min = max;\r\n\tdouble sum = 0;\r\n\tint max_i = 0;\r\n\tint min_i = 0;\r\n\r\n\tdouble temp = 0;\r\n\r\n\tfor(int i = 0; i < chromos.size(); i++)\r\n\t {\r\n\t\ttemp = ff.evaluate(chromos.get(i),generation());\r\n\t\tif(temp > max)\r\n\t\t {\r\n\t\t\tmax = temp;\r\n\t\t\tmax_i = i;\r\n\t\t }\r\n\r\n\t\tif(temp < min)\r\n\t\t {\r\n\t\t\tmin = temp;\r\n\t\t\tmin_i = i;\r\n\t\t }\r\n\t\tsum += temp;\r\n\t }\r\n\r\n\tbestFitness = max;\r\n\taverageFitness = sum/chromos.size();\r\n\tworstFitness = min;\r\n\tbestChromoIndex = max_i;;\r\n\tworstChromoIndex = min_i;\r\n\tbestChromo = chromos.get(max_i);\r\n\tworstChromo = chromos.get(min_i);\r\n\t\r\n\tevaluated = true;\r\n }",
"public double evaluateAsDouble();",
"public double evaluate(double x) {\r\n //this.x = x;\r\n //return y;\r\n //this evaluates each function given x according to the term's degree\r\n //and coefficient.\r\n //method goes through each array of each type of term in order to compute\r\n // a sum of all terms.\r\n double y = 0;\r\n for(int i = 0; i < cindex; i++){\r\n y += co[i]*Math.pow(x, degree[i]); \r\n }\r\n for(int i = 0; i < sinindex; i++){\r\n y += sinc[i]*Math.sin(sind[i]*x);\r\n }\r\n for(int i = 0; i < cosindex; i++){\r\n y += cosc[i]*Math.cos(cosd[i]*x);\r\n }\r\n for(int i = 0; i < tanindex; i++){\r\n y += tanc[i]*Math.tan(tand[i]*x);\r\n }\r\n return y; \r\n\t}",
"public boolean evaluate(Substitution sub);",
"public void evaluate(Handler<AsyncResult<Double>> resultHandler) { \n delegate.evaluate(resultHandler);\n }",
"public String eval(String p1 ) {\n\t}",
"public final AstValidator.func_eval_return func_eval() throws RecognitionException {\n AstValidator.func_eval_return retval = new AstValidator.func_eval_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree FUNC_EVAL203=null;\n CommonTree INVOKER_FUNC_EVAL206=null;\n CommonTree IDENTIFIER208=null;\n AstValidator.func_name_return func_name204 =null;\n\n AstValidator.real_arg_return real_arg205 =null;\n\n AstValidator.func_name_return func_name207 =null;\n\n AstValidator.real_arg_return real_arg209 =null;\n\n\n CommonTree FUNC_EVAL203_tree=null;\n CommonTree INVOKER_FUNC_EVAL206_tree=null;\n CommonTree IDENTIFIER208_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:405:10: ( ^( FUNC_EVAL func_name ( real_arg )* ) | ^( INVOKER_FUNC_EVAL func_name IDENTIFIER ( real_arg )* ) )\n int alt56=2;\n int LA56_0 = input.LA(1);\n\n if ( (LA56_0==FUNC_EVAL) ) {\n alt56=1;\n }\n else if ( (LA56_0==INVOKER_FUNC_EVAL) ) {\n alt56=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 56, 0, input);\n\n throw nvae;\n\n }\n switch (alt56) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:405:12: ^( FUNC_EVAL func_name ( real_arg )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n FUNC_EVAL203=(CommonTree)match(input,FUNC_EVAL,FOLLOW_FUNC_EVAL_in_func_eval1882); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n FUNC_EVAL203_tree = (CommonTree)adaptor.dupNode(FUNC_EVAL203);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(FUNC_EVAL203_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_name_in_func_eval1884);\n func_name204=func_name();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_name204.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:405:35: ( real_arg )*\n loop54:\n do {\n int alt54=2;\n int LA54_0 = input.LA(1);\n\n if ( (LA54_0==BIGDECIMALNUMBER||LA54_0==BIGINTEGERNUMBER||LA54_0==CUBE||LA54_0==DIV||LA54_0==DOLLARVAR||LA54_0==DOUBLENUMBER||LA54_0==FALSE||LA54_0==FLOATNUMBER||LA54_0==GROUP||LA54_0==IDENTIFIER||LA54_0==INTEGER||LA54_0==LONGINTEGER||LA54_0==MINUS||LA54_0==NULL||LA54_0==PERCENT||LA54_0==PLUS||LA54_0==QUOTEDSTRING||LA54_0==STAR||LA54_0==TRUE||(LA54_0 >= BAG_VAL && LA54_0 <= BIN_EXPR)||(LA54_0 >= CASE_COND && LA54_0 <= CASE_EXPR)||(LA54_0 >= CAST_EXPR && LA54_0 <= EXPR_IN_PAREN)||LA54_0==FUNC_EVAL||LA54_0==INVOKER_FUNC_EVAL||(LA54_0 >= MAP_VAL && LA54_0 <= NEG)||LA54_0==TUPLE_VAL) ) {\n alt54=1;\n }\n\n\n switch (alt54) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:405:35: real_arg\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_real_arg_in_func_eval1886);\n \t real_arg205=real_arg();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, real_arg205.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop54;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:405:49: ^( INVOKER_FUNC_EVAL func_name IDENTIFIER ( real_arg )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n INVOKER_FUNC_EVAL206=(CommonTree)match(input,INVOKER_FUNC_EVAL,FOLLOW_INVOKER_FUNC_EVAL_in_func_eval1895); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INVOKER_FUNC_EVAL206_tree = (CommonTree)adaptor.dupNode(INVOKER_FUNC_EVAL206);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(INVOKER_FUNC_EVAL206_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_name_in_func_eval1897);\n func_name207=func_name();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_name207.getTree());\n\n\n _last = (CommonTree)input.LT(1);\n IDENTIFIER208=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_func_eval1899); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IDENTIFIER208_tree = (CommonTree)adaptor.dupNode(IDENTIFIER208);\n\n\n adaptor.addChild(root_1, IDENTIFIER208_tree);\n }\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:405:91: ( real_arg )*\n loop55:\n do {\n int alt55=2;\n int LA55_0 = input.LA(1);\n\n if ( (LA55_0==BIGDECIMALNUMBER||LA55_0==BIGINTEGERNUMBER||LA55_0==CUBE||LA55_0==DIV||LA55_0==DOLLARVAR||LA55_0==DOUBLENUMBER||LA55_0==FALSE||LA55_0==FLOATNUMBER||LA55_0==GROUP||LA55_0==IDENTIFIER||LA55_0==INTEGER||LA55_0==LONGINTEGER||LA55_0==MINUS||LA55_0==NULL||LA55_0==PERCENT||LA55_0==PLUS||LA55_0==QUOTEDSTRING||LA55_0==STAR||LA55_0==TRUE||(LA55_0 >= BAG_VAL && LA55_0 <= BIN_EXPR)||(LA55_0 >= CASE_COND && LA55_0 <= CASE_EXPR)||(LA55_0 >= CAST_EXPR && LA55_0 <= EXPR_IN_PAREN)||LA55_0==FUNC_EVAL||LA55_0==INVOKER_FUNC_EVAL||(LA55_0 >= MAP_VAL && LA55_0 <= NEG)||LA55_0==TUPLE_VAL) ) {\n alt55=1;\n }\n\n\n switch (alt55) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:405:91: real_arg\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_real_arg_in_func_eval1901);\n \t real_arg209=real_arg();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, real_arg209.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop55;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public void evaluate() throws Throwable {\n }",
"private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }",
"public abstract int compute(int i1, int i2);",
"EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }",
"public double evaluate() throws Exception {\r\n // this expression compare from variable\r\n throw new Exception(\"this expression contains a variable\");\r\n }",
"public double getParameterValue (Assignment input) ;",
"public abstract Point_3 evaluate(double u, double v);",
"public interface IExpressionRuntime\n{\n Object evaluate();\n}",
"String getFitnessFunction();",
"public abstract int calculate(int a, int b);",
"private double _doFunction(final double input1, final double input2) {\r\n double result;\r\n switch (_function) {\r\n case _EXP:\r\n result = Math.exp(input1);\r\n break;\r\n case _LOG:\r\n result = Math.log(input1);\r\n break;\r\n case _MODULO:\r\n result = input1 % input2;\r\n break;\r\n case _SIGN:\r\n if (input1 > 0) {\r\n result = 1.0;\r\n } else if (input1 < 0) {\r\n result = -1.0;\r\n } else {\r\n result = 0.0;\r\n }\r\n break;\r\n case _SQUARE:\r\n result = input1 * input1;\r\n break;\r\n case _SQRT:\r\n result = Math.sqrt(input1);\r\n break;\r\n default:\r\n throw new InternalErrorException(\"Invalid value for _function private variable. \"\r\n + \"MathFunction actor (\" + getFullName() + \")\" + \" on function type \" + _function);\r\n }\r\n return result;\r\n }",
"private String evaluateExpr(String expr){\n\t\t//bigdecimal used for long user inputs\n\t\tBigDecimal num1, num2, ans, temp = new BigDecimal(\"0\");\n\t\tint check = 1;\n\t\t//find the position of function\n\t\twhile(Character.isDigit(expr.charAt(check)) || expr.charAt(check) == '.')\n\t\t\tcheck++;\n\t\t//extract numbers from expression\n\t\tnum1 = new BigDecimal(expr.substring(0,check));\n\t\tnum2 = new BigDecimal(expr.substring(check + 1,expr.length()));\n\t\t//division by zero error\n\t\tif(num2.compareTo(temp) == 0 && expr.charAt(check) == '/')\n\t\t\treturn \"Invalid\";\n\t\t//evaluate functions\n\t\tif(expr.charAt(check) == '*')\n\t\t\tans = num1.multiply(num2);\n\t\telse if(expr.charAt(check) == '+')\n\t\t\tans = num1.add(num2);\n\t\telse if(expr.charAt(check) == '/')\n\t\t\tans = num1.divide(num2, MathContext.DECIMAL32);\n\t\telse\n\t\t\tans = num1.subtract(num2);\n\t\treturn ans.toString();\n\t}"
] |
[
"0.73276585",
"0.7043206",
"0.6971528",
"0.6890439",
"0.68100977",
"0.6733974",
"0.6731582",
"0.65882844",
"0.65835017",
"0.6570433",
"0.65304244",
"0.64865",
"0.64855945",
"0.64795184",
"0.641046",
"0.63854814",
"0.63642627",
"0.6322088",
"0.6237007",
"0.62257606",
"0.6210693",
"0.61645055",
"0.614604",
"0.61386395",
"0.6059106",
"0.60488397",
"0.60081136",
"0.5987618",
"0.59871453",
"0.5973026",
"0.5962757",
"0.59441304",
"0.5884909",
"0.5882009",
"0.5863267",
"0.58527297",
"0.58510005",
"0.5849996",
"0.584627",
"0.5829423",
"0.58271",
"0.5820805",
"0.581382",
"0.581136",
"0.5790367",
"0.5785979",
"0.5782483",
"0.5781853",
"0.57783",
"0.57575387",
"0.5749631",
"0.5748788",
"0.5738847",
"0.57269126",
"0.5724437",
"0.570626",
"0.56807536",
"0.5677184",
"0.5654615",
"0.5649701",
"0.56427115",
"0.5610995",
"0.5591644",
"0.5585629",
"0.5585106",
"0.5572023",
"0.5556918",
"0.5552726",
"0.5549372",
"0.55490863",
"0.55444986",
"0.55424285",
"0.5534417",
"0.5532326",
"0.5518292",
"0.55084145",
"0.5508229",
"0.550407",
"0.5491366",
"0.54911685",
"0.5483832",
"0.54703265",
"0.5466997",
"0.546579",
"0.5462514",
"0.5459176",
"0.54528826",
"0.545004",
"0.5441852",
"0.5437121",
"0.5431199",
"0.5428463",
"0.53924596",
"0.5392045",
"0.5385016",
"0.53828853",
"0.5367781",
"0.53616446",
"0.53589547",
"0.5357271"
] |
0.56160384
|
61
|
The partial derivative if its hard coded in
|
public double[] partialU(double u, double v) {
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Function derivative();",
"@Override\n\tpublic Function derivative() {\n\t\tderivativeConstants[0] = 0;\n\t\tfor (int i = 0; i < constants.length - 1; i++) {\n\t\t\tderivativeConstants[i + 1] = constants[i] * (constants.length - i - 1);\n\t\t}\n\t\treturn new Polynomial(derivativeConstants);\n\t}",
"@Override\r\n public Polynomial derivative() {\r\n Polynomial x = this.filter(t -> {\r\n Term term = (Term) t;\r\n return term.getPower() != 0;\r\n }).map(t -> {\r\n Term term = (Term) t;\r\n return new Term(term.getCoefficient() * term.getPower(), term.getPower() - 1);\r\n });\r\n return x;\r\n }",
"@Override\r\n\tpublic double derivativeOf(double x) {\r\n\t\treturn ( 1 / (x - this.getLower_bound()) ) + ( 1 / (this.getUpper_bound() - x) ); \r\n\t}",
"public double secondPartialDerivative(FittingFunction f, int i, int j,\r\n double[] p, double delt) {\r\n double[] arg = new double[p.length];\r\n System.arraycopy(p, 0, arg, 0, p.length);\r\n\r\n arg[i] += delt;\r\n arg[j] += delt;\r\n double ff1 = f.evaluate(arg);\r\n\r\n arg[j] -= 2 * delt;\r\n double ff2 = f.evaluate(arg);\r\n\r\n arg[i] -= 2 * delt;\r\n arg[j] += 2 * delt;\r\n double ff3 = f.evaluate(arg);\r\n\r\n arg[j] -= 2 * delt;\r\n double ff4 = f.evaluate(arg);\r\n\r\n double fsSum = ff1 - ff2 - ff3 + ff4;\r\n\r\n double partial = fsSum / (4.0 * delt * delt);\r\n\r\n// if (Double.isNaN(partial) || partial < -0.5) {\r\n// double eraseme = 1.0;\r\n// }\r\n\r\n return partial;\r\n }",
"public RealValuedFunctTwoOps deriv1() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv1At(x, y);\n\t }\n\t};\n }",
"public Polynomial getDerivative() {\n double[] derCoefs = new double[coefs.length - 1];\n for (int i = 1; i < coefs.length; i++) {\n derCoefs[i - 1] = i * coefs[i];\n }\n return new Polynomial(derCoefs);\n }",
"public PolyTerm derivate() {\n\t\tScalar coeffi=this.coefficient.mul(this.exponent);\n\t\tint expon=this.exponent-1;\n\t\treturn new PolyTerm(coeffi, expon);\n\t}",
"public double derivative(double input) {\n\t\treturn (1 - Math.pow(Math.tanh(input), 2));\n\t}",
"protected abstract SyntaxNode derivative(SyntaxNode doperand);",
"public double calcDerivative(StdVectorInt derivComponents, Vector x) {\n return opensimSimulationJNI.FiberCompressiveForceCosPennationCurve_calcDerivative__SWIG_1(swigCPtr, this, StdVectorInt.getCPtr(derivComponents), derivComponents, Vector.getCPtr(x), x);\n }",
"@Override\n public Component getDerivative(Variable var) {\n\n Factor lnBase = new Logarithm(NEP_NUMBER, new ParenthesizedExpression(new Term(new Constant(base))));\n\n BigDecimal lnBaseValue = lnBase.getValue();\n if (MathUtils.isIntegerValue(lnBaseValue)) {\n lnBase = new Constant(lnBaseValue);\n }\n\n return new Term(\n new ParenthesizedExpression(\n new Term(\n new Constant(\"1\"),\n DIVIDE,\n new Term(\n Factor.getFactor(argument),\n MULTIPLY,\n lnBase\n )\n )\n ),\n MULTIPLY,\n Term.getTerm(argument.getDerivative(var))\n );\n }",
"public void polyDiff() {\n this.polySolve();\n int dd2 = 0, dd3 = 0;\n String d1 = \"\", d2 = \"\", d3 = \"\";\n this.da = 3 * this.a;\n this.db = 2 * this.b;\n this.dc = this.c;\n if (this.degree == 3) {\n d1 = \"dy/dx = \" + this.da + \"x^2 \";\n if (this.b == 0) {\n dd2 = 1;\n } else {\n if (this.db > 0) {\n d2 = \"+ \" + this.db + \"x \";\n } else {\n d2 = \"- \" + -this.db + \"x \";\n }\n }\n if (this.c == 0) {\n dd3 = 1;\n } else {\n if (this.dc > 0) {\n d3 = \"+ \" + this.dc;\n } else {\n d3 = \"- \" + -this.dc;\n }\n }\n if (dd2 == 0 && dd3 == 0) {\n this.diff = d1 + d2 + d3;\n }\n if (dd2 == 0 && dd3 == 1) {\n this.diff = d1 + d2;\n }\n if (dd2 == 1 && dd3 == 1) {\n this.diff = d1;\n }\n if (dd2 == 1 && dd3 == 0) {\n this.diff = d1 + d3;\n }\n\n }\n if (this.degree == 2) {\n d1 = \"dy/dx = \" + this.db + \"x \";\n if (this.dc == 0) {\n this.diff = d1;\n } else {\n if (this.dc > 0) {\n this.diff = d1 + \"+\" + this.dc;\n } else {\n this.diff = d1 + \"-\" + -this.dc;\n }\n }\n }\n if (this.degree == 1) {\n this.diff = \"dy/dx = \" + this.c;\n }\n if (this.degree == 0) {\n this.diff = \"dy/dx = \" + 0;\n }\n\n }",
"private double fd(double x) {\r\n if(x<0){\r\n double x1 = x*-1;\r\n return interpretadorD.getResultado(\"!\"+x1);\r\n }\r\n return interpretadorD.getResultado(x);\r\n }",
"public Monom derivative() {\n\t\tif(this.get_power()==0) {return getNewZeroMonom();}\n\t\treturn new Monom(this.get_coefficient()*this.get_power(), this.get_power()-1);\n\t}",
"public double getPartialDerviative(double consumptionAllocation);",
"public Monom derivative() {\r\n\t\tif(this.get_power()==0) {return getNewZeroMonom();}\r\n\t\treturn new Monom(this.get_coefficient()*this.get_power(), this.get_power()-1);\r\n\t}",
"public void subDif() {\n this.polySubSolve();\n int dd2 = 0, dd3 = 0;\n String d1 = \"\", d2 = \"\", d3 = \"\";\n this.das = 3 * this.asub;\n this.dbs = 2 * this.bsub;\n this.dcs = this.csub;\n if (this.subdegree == 3) {\n d1 = \"dy/dx = \" + this.das + \"x^2 \";\n if (this.bsub == 0) {\n dd2 = 1;\n } else {\n if (this.dbs > 0) {\n d2 = \"+ \" + this.dbs + \"x \";\n } else {\n d2 = \"- \" + -this.dbs + \"x \";\n }\n }\n if (this.csub == 0) {\n dd3 = 1;\n } else {\n if (this.dcs > 0) {\n d3 = \"+ \" + this.dcs;\n } else {\n d3 = \"- \" + -this.dcs;\n }\n }\n if (dd2 == 0 && dd3 == 0) {\n this.subdiff = d1 + d2 + d3;\n }\n if (dd2 == 0 && dd3 == 1) {\n this.subdiff = d1 + d2;\n }\n if (dd2 == 1 && dd3 == 1) {\n this.subdiff = d1;\n }\n if (dd2 == 1 && dd3 == 0) {\n this.subdiff = d1 + d3;\n }\n\n }\n if (this.subdegree == 2) {\n d1 = \"dy/dx = \" + this.dbs + \"x \";\n if (this.dcs == 0) {\n this.subdiff = d1;\n } else {\n if (this.dcs > 0) {\n this.subdiff = d1 + \"+\" + this.dcs;\n } else {\n this.subdiff = d1 + \"-\" + -this.dcs;\n }\n }\n }\n if (this.subdegree == 1) {\n this.subdiff = \"dy/dx = \" + this.csub;\n }\n if (this.subdegree == 0) {\n this.subdiff = \"dy/dx = \" + 0;\n }\n\n }",
"public RealValuedFunctTwoOps deriv21() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv21At(x, y);\n\t }\n\t};\n }",
"double defendre();",
"public void derivate () {\n int size = myCoefficients.size();\n for (int i = 1; i < size; ++i) {\n myCoefficients.set(i - 1, myCoefficients.get(i) * i);\n }\n myCoefficients.remove(size - 1);\n }",
"public Double getDx();",
"public RealValuedFunctTwoOps deriv12() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv12At(x, y);\n\t }\n\t};\n }",
"public float getDCD();",
"public String get_fraction_part();",
"public double get_dFdx( double x )\n {\n if ( domain.contains( (float)x ) )\n {\n double sum = 0.0;\n for ( int i = parameters.length - 2; i >= 0; i-- )\n sum = x * sum + (i+1) * parameters[i+1];\n return sum;\n }\n else\n return 0;\n }",
"public void addDif() {\n this.polyAddSolve();\n int dd2 = 0, dd3 = 0;\n String d1 = \"\", d2 = \"\", d3 = \"\";\n this.daa = 3 * this.aadd;\n this.dba = 2 * this.badd;\n this.dca = this.cadd;\n if (this.adddegree == 3) {\n d1 = \"dy/dx = \" + this.daa + \"x^2 \";\n if (this.badd == 0) {\n dd2 = 1;\n } else {\n if (this.dba > 0) {\n d2 = \"+ \" + this.dba + \"x \";\n } else {\n d2 = \"- \" + -this.dba + \"x \";\n }\n }\n if (this.cadd == 0) {\n dd3 = 1;\n } else {\n if (this.dca > 0) {\n d3 = \"+ \" + this.dca;\n } else {\n d3 = \"- \" + -this.dca;\n }\n }\n if (dd2 == 0 && dd3 == 0) {\n this.adddiff = d1 + d2 + d3;\n }\n if (dd2 == 0 && dd3 == 1) {\n this.adddiff = d1 + d2;\n }\n if (dd2 == 1 && dd3 == 1) {\n this.adddiff = d1;\n }\n if (dd2 == 1 && dd3 == 0) {\n this.adddiff = d1 + d3;\n }\n\n }\n if (this.adddegree == 2) {\n d1 = \"dy/dx = \" + this.db + \"x \";\n if (this.dca == 0) {\n this.adddiff = d1;\n } else {\n if (this.dca > 0) {\n this.adddiff = d1 + \"+\" + this.dca;\n } else {\n this.adddiff = d1 + \"-\" + -this.dca;\n }\n }\n }\n if (this.adddegree == 1) {\n this.adddiff = \"dy/dx = \" + this.cadd;\n }\n if (this.adddegree == 0) {\n this.adddiff = \"dy/dx = \" + 0;\n }\n\n }",
"public double getActivationFunctionDerivative() {\n\t\treturn nodeActivationFunction.getDerivative();\n\t}",
"@Override\n\tpublic double derive(double input) {\n\t\treturn 1;\n\t}",
"@Override\n public Vector2d gradient(Vector2d p) {\n\n return null;\n }",
"double d();",
"public RealValuedFunctTwoOps deriv22() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv22At(x, y);\n\t }\n\t};\n }",
"public RealValuedFunctTwoOps deriv11() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv11At(x, y);\n\t }\n\t};\n }",
"public abstract double fct(double x);",
"float getD();",
"public static double derivada(double x, double y)\n {\n // reemplazar esto, con la funcion que me toque \n return x * Math.sqrt(1 + y*y);\n }",
"@org.junit.Test\n public void getSecondDerivEmptyCurve() {\n BezierCurve emptyCurve = new BezierCurve();\n assertEquals(new Vector(), emptyCurve.getSecondDeriv(0));\n assertEquals(new Vector(), emptyCurve.getSecondDeriv(1));\n }",
"public Polynomial derivative(int position, String value) {\n Polynomial polynomial = collection.get(position);\n Polynomial derivated;\n\n int i;\n\n try {\n i = Integer.parseInt(value);\n } catch (NumberFormatException e) {\n i = 0;\n }\n\n if (i >= polynomial.getLength()) {\n i = 0;\n polynomial = new Polynomial(1);\n polynomial.setValue(0, 0);\n }\n\n if (i < 0)\n i = 0;\n\n // i is the grad of derivation\n // each derivation is a derivation of the previous derivation till i == 0\n while (i > 0) {\n\n // derivation is one grade smaller than the polynomial\n derivated = new Polynomial(polynomial.getLength() - 1);\n\n // power gets decreased by 1 and the factor gets multiplied with the value of the old power\n // 2x^3 => 3*2x^2 = 6x^2\n for (int j = derivated.getLength(); j > 0; j--) {\n derivated.setValue(j - 1, polynomial.getValue(j) * j);\n }\n polynomial = derivated;\n i--;\n }\n\n return polynomial;\n }",
"@Override\n\tpublic double calc(double d1, double d2) {\n\t\treturn 0;\n\t}",
"public double derivativeSigmoid(double x){\n return sigmoid(x) * (1 - sigmoid(x));\n }",
"@Override\n public double dydx(double t) {\n \tt = t / 141;\n \treturn (12 + 324 * t + -360 * Math.pow(t, 2))/ (294 + -930 * t + 873 * Math.pow(t, 2));\n }",
"public abstract void debiterMontant( double montant);",
"public float d() {\n if (B1() || A1()) {\n return this.A + this.o + this.B;\n }\n return 0.0f;\n }",
"public RealValuedFunctTwoOps deriv2() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv2At(x, y);\n\t }\n\t};\n }",
"@Override\r\n\t\tpublic double getDx() {\n\t\t\treturn(Math.pow(this.a+this.h, 2)-Math.pow(this.a, 2))/h;\r\n\t\t}",
"private void reciprocal()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.reciprocal ( );\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public double mod() \n\t{\n if (x!=0 || y!=0) {\n return Math.sqrt(x*x+y*y); //distance formular\n } else {\n return 0.0D;\n }\n }",
"public double DFrom0()\n\t{\n\t\treturn(x+y);\n\t\t\n\t}",
"public double diff(double x) {\n return -2 * x;\n }",
"@Override\r\n\t\tpublic double[] gradient(double x, double... parameters) {\n\t\t\tfinal double a = parameters[0];\r\n\t\t\tfinal double b = parameters[1];\r\n\t\t\tfinal double c = parameters[2];\r\n\t\t\tfinal double d = parameters[3];\r\n\t\t\tfinal double e = parameters[4];\r\n\t\t\t\r\n\t\t\tdouble[] gradients = new double[5];\r\n\t\t\t//double den = 1 + Math.pow((x+e)/c, b);\r\n\t\t\t//gradients[0] = 1 / den; // Yes a Derivation \r\n\t\t\t//gradients[1] = -((a - d) * Math.pow(x / c, b) * Math.log(x / c)) / (den * den); // Yes b Derivation \r\n\t\t\t//gradients[2] = (b * Math.pow(x / c, b - 1) * (x / (c * c)) * (a - d)) / (den * den); // Yes c Derivation \r\n\t\t\t//gradients[3] = 1 - (1 / den); // Yes d Derivation \r\n\t\t\t\r\n\t\t\t//Derivation\r\n\t\t\tfinal double c_b = Math.pow(c, b);\r\n\t\t\tfinal double c_b1 = Math.pow(c, b+1.);\r\n\t\t\tfinal double c_2b = Math.pow(c, 2.*b);\r\n\t\t\tfinal double c_2b1 = Math.pow(c, 2.*b+1.);\r\n\t\t\t\r\n\t\t\tfinal double xe_b = Math.pow(x+e, b);\r\n\t\t\tfinal double xe_2b = Math.pow(x+e, 2.*b);\r\n\t\t\tfinal double xe_2b1 = Math.pow(x+e, 2.*b+1.);\r\n\t\t\t\r\n\t\t\tgradients[0] = c_b/(xe_b+c_b);\r\n\t\t\tgradients[1] = ((c_b*d-a*c_b)*xe_b*Math.log(x+e)+(a*c_b*Math.log(c)-c_b*Math.log(c)*d)*xe_b)/(xe_2b+2*c_b*xe_b+c_2b);\r\n\t\t\tgradients[2] = -((b*c_b*d-a*b*c_b)*xe_b)/(c*xe_2b+2*c_b1*xe_b+c_2b1);\r\n\t\t\tgradients[3] = xe_b/(xe_b+c_b);\r\n\t\t\tgradients[4] = ((b*c_b*d-a*b*c_b)*xe_b)/(xe_2b1+xe_b*(2*c_b*x+2*c_b*e)+c_2b*x+c_2b*e);\r\n\t\t\treturn gradients;\r\n\t\t}",
"private double f(double x) {\r\n if(x<0){\r\n double x1 = x*-1;\r\n return interpretador.getResultado(\"!\"+x1);\r\n }\r\n return interpretador.getResultado(x);\r\n }",
"@org.junit.Test\n public void getSecondDerivTestOnePointCurve() {\n BezierCurve onePointCurve = new BezierCurve(new Vector(10, 20));\n assertEquals(new Vector(), onePointCurve.getSecondDeriv(0));\n assertEquals(new Vector(), onePointCurve.getSecondDeriv(1));\n }",
"public double[] getRemainingDegreeDist(double[] pd)\n\t{\n\t\tdouble sum = 0;\n\t\tfor(int i=0; i< pd.length;i++)\n\t\t{\n\t\t\tsum = sum + ( i*pd[i] );\n\t\t}\n\t\t\n\t\tdouble[] qDist = new double[pd.length-1];\n\t\tfor(int i=1; i< pd.length;i++)\n\t\t{\n\t\t\tqDist[i-1] = (i*pd[i]) /sum;\n\t\t}\n\t\treturn qDist;\n\t}",
"public double derivativeCustomSigmoid(double x){\n return (1.0/(mArgB - mArgA)) * (customSigmoid(x) - mArgA) * (mArgB - customSigmoid(x));\n }",
"public final float determinant() {\n\t// less *,+,- calculation than expanded expression.\n\treturn m00*(m11*m22 - m21*m12)\n\t - m01*(m10*m22 - m20*m12)\n\t + m02*(m10*m21 - m20*m11);\n }",
"public Optional<DerivativePrice> getDerivativePrice() {\n return repository.findDerivativePrice(new Tuple<>(ticker,optionName));\n }",
"public Double getDz();",
"public Derivative evaluate(State initial, double t, double dt, Derivative d)\n\t{\n\n\t\tState state = initial;\n\t state.position = initial.position.add(d.dx.scale(dt));\n\t state.momentum = initial.momentum.add(d.dv.scale(dt)); \n\n\t Derivative output = new Derivative();\n\t output.dx = state.momentum;\n\t output.dv = state.efield.scale(state.charge);\n\t return output;\n\t}",
"@Override\n public double apply$mcDD$sp (double arg0)\n {\n return 0;\n }",
"@Override\n\tpublic double[] getDx() {\n\t double object[] = new double[2];\n\t for(int i = 0; i < x.length; i++){\n\t object[0] += theta[0] + theta[1] * x[i] - y[i];\n\t object[1] += (theta[0] + theta[1] * x[i] - y[i])*x[i];\n\t }\n\t theta[0] -= eta * object[0];\n\t theta[1] -= eta * object[1];\n\n\t return theta;\n }",
"@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}",
"private double f(double v, double s) {\n\t\treturn equation(v) - s;\r\n\t}",
"@Override\n\tpublic Vector3d gradient(Particle p_j) {\n\t\treturn null;\n\t}",
"public double activationDerivative(double z);",
"@Override\n\tpublic void sub(double dx, double dy) {\n\t\t\n\t}",
"public Function differentiate() {\n return new Product(this,\n new Sum(new Quotient(new Product(f2,\n f1.differentiate()),\n f1),\n new Product(new Log(new Complex(Math.E, 0.0), f1),\n f2.differentiate())));\n }",
"private float diffusitivity(float d) {\r\n return (1.0f / (1.0f + (d * d) / (lambda * lambda)));\r\n }",
"private double calculateXDerivative(double x, double y, double r, double r2, double phi, double deltaPhi)\n\t{\n\t\treturn 2*((a*b*Math.exp(b*(deltaPhi+phi))*y)/r2 + x/r) * (-a*Math.exp(b*(deltaPhi+phi)) + r);\n\t}",
"@Override\n\tpublic int dx() {\n\t\treturn dx;\n\t}",
"public final bp dd() {\n if (this.ad == null) {\n return null;\n }\n dp aq = (-1 == this.cs * -1099198911 || this.cx * -1961250233 != 0) ? null : gn.aq(this.cs * -1099198911, 1871547802);\n dp aq2 = (-1 == this.ce * -1620542321 || (this.ce * -1620542321 == this.bb * -959328679 && aq != null)) ? null : gn.aq(this.ce * -1620542321, 1539681168);\n bp ai = this.ad.ai(aq, this.cr * 317461367, aq2, this.cy * 631506963, 578342776);\n if (ai == null) {\n return null;\n }\n bp bpVar;\n ai.ai();\n this.di = ai.bx * -1067272603;\n if (!(-1 == this.ck * 836985687 || -1 == this.co * 1215520647)) {\n bp aj = dd.aq(this.ck * 836985687, 812886062).aj(this.co * 1215520647, (byte) 33);\n if (aj != null) {\n aj.ac(0, -(this.cz * -583056727), 0);\n bpVar = new bp(new bp[]{ai, aj}, 2);\n if (1 == this.ad.ae * -735434895) {\n bpVar.bs = true;\n }\n return bpVar;\n }\n }\n bpVar = ai;\n if (1 == this.ad.ae * -735434895) {\n }\n return bpVar;\n }",
"private double denominator(int iter) {\n switch (DENOM) {\n case 0: return Math.pow((double) iter, 2.0);\n default: return (double) CONSTANT / Math.log(1+iter);\n }\n }",
"public abstract double getFractionMultiplier();",
"protected final double fr(double x, double rc, double re) {return rc*(K*K)/Math.pow(x, re);}",
"public void determined0d1() {\n\n\t\tint upperBound = (int) (Math.log(this.numNVertices + this.numWVertices)); // pg 184 in paper\n\n\t\tthis.d0 = upperBound / 2;\n\t\tthis.d1 = upperBound;\n\n\t}",
"public Double getDy();",
"public Vector3D[] deriv(Vector3D[] y, Vector3D acceleration, double dt) {\n Vector3D[] doty = new Vector3D[2];\n doty[0] = y[1].scale(dt);\n doty[1] = acceleration.scale(dt);\n return doty;\n }",
"public float getDCL();",
"public void setDerivativeOnInput(boolean on) {\n this.useDerivativeOnInput = on;\n }",
"private TwoPassPartialConstant() {\r\n\t\tthis(true);\r\n\t}",
"@Override\n public void computeDerivatives(double t, double[] Bt, double[] BDot) {\n // Copy Bt to biomass, setting biomass below extinction threshold to 0\n // (Copying because API doesn't specify whether state vector Bt can be modified)\n for (int i = 0; i < nodeCount; i++) {\n biomass[i] = Bt[i] < EXTINCT ? 0.0 : Bt[i];\n }\n\n computeFunctionalResponse();\n computeGrowthFunction();\n computeProducerDerivatives(BDot);\n computeConsumerDerivatives(BDot);\n\n // Save derivatives for use by event handlers\n this.currentDerivatives = BDot;\n }",
"public double berechneFlaeche()\n {\n return (2 * p1.getX()) * (2 * p1.getX());\n }",
"public abstract double gradient(double betaForDimension, int dimension);",
"@org.junit.Test\n public void getSecondDerivTestCurve4() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(20, 20),\n new Vector(10, 30), new Vector(20, 30));\n assertTrue(curve.getSecondDeriv(0).dot(new Vector(-1, 0)) > 0);\n assertTrue(curve.getSecondDeriv(0).dot(new Vector(0, 1)) > 0);\n assertEquals(new Vector(), curve.getSecondDeriv(0.5));\n assertTrue(curve.getSecondDeriv(1).dot(new Vector(1, 0)) > 0);\n assertTrue(curve.getSecondDeriv(1).dot(new Vector(0, -1)) > 0);\n }",
"public double nextDouble() {\n\tdouble result = (d1 - 1.0) / (POW3_33 - 1.0);\n\tnextIterate();\n\treturn result;\n }",
"double passer();",
"public static double fapprox(double x) {\r\n double y = x * x;\r\n // return 1 - 1.52763 * y + 0.104815 * y * y - 0.0267057 * y * y * y;\r\n return 1.000000000000000000000000000 - 1.527632997036301454035890310\r\n * p(x, 2) + 0.1048151947873037332167426137 * p(x, 4)\r\n + 0.02670567052519335403265209493 * p(x, 6)\r\n - 0.003527409660908709170234190769 * p(x, 8)\r\n + 0.00008160096654753174517219048643 * p(x, 10)\r\n + 0.00002528508423396353617626255186 * p(x, 12)\r\n - 0.000002556317166278493846353254082 * p(x, 14)\r\n - 0.00000009651271550891203216372576758 * p(x, 16)\r\n + 0.00000002819346397450409137075662724 * p(x, 18)\r\n - 0.0000000002773051160799011724373112613 * p(x, 20)\r\n - 0.0000000003028427022130566329838808729 * p(x, 22)\r\n + 2.670589280748075553964724751e-11 * p(x, 24)\r\n + 9.962291641028482309516423738e-13 * p(x, 26)\r\n - 3.624202982904156082231272345e-13 * p(x, 28)\r\n + 2.179657744827070432205070008e-14 * p(x, 30)\r\n + 1.529232899480963381203627083e-15 * p(x, 32)\r\n - 3.184728789952787897482240499e-16 * p(x, 34)\r\n + 1.134672106212041869027732120e-17 * p(x, 36);\r\n }",
"public static StateVector integrate( StateVector state, double dt) {\r\n StateVector dummy = new StateVector();\r\n StateVector derivative_a, derivative_b, derivative_c, derivative_d;\r\n\r\n\r\n derivative_a = evaluate(state, 0.0, dummy, 0 ); // derivative a returns initial velocity and acceleration\r\n derivative_b = evaluate(state, dt*0.5, derivative_a, 1 );\r\n derivative_c = evaluate(state, dt*0.5, derivative_b, 1 );\r\n derivative_d = evaluate(state, dt, derivative_c, 2 );\r\n\r\n double dxdt = 1.0/6.0 * (derivative_a.vx + 2.0f*(derivative_b.vx + derivative_c.vx) + derivative_d.vx);\r\n double dydt = 1.0/6.0 * (derivative_a.vy + 2.0f*(derivative_b.vy + derivative_c.vy) + derivative_d.vy);\r\n double dzdt = 1.0/6.0 * (derivative_a.vz + 2.0f*(derivative_b.vz + derivative_c.vz) + derivative_d.vz);\r\n double dvxdt = 1.0/6.0 * (derivative_a.ax + 2.0f*(derivative_b.ax + derivative_c.ax) + derivative_d.ax);\r\n double dvydt = 1.0/6.0 * (derivative_a.ay + 2.0f*(derivative_b.ay + derivative_c.ay) + derivative_d.ay);\r\n double dvzdt = 1.0/6.0 * (derivative_a.az + 2.0f*(derivative_b.az + derivative_c.az) + derivative_d.az);\r\n\r\n state.x = state.x + dxdt * dt;\r\n state.y = state.y + dydt * dt;\r\n state.z = state.z + dzdt * dt;\r\n state.vx = state.vx + dvxdt * dt;\r\n state.vy = state.vy + dvydt * dt;\r\n state.vz = state.vz + dvzdt * dt;\r\n\r\n return( state );\r\n }",
"void example1() {\n\t\t\n\t\tFloat64CartesianTensorProductMember a = new Float64CartesianTensorProductMember(3, 4);\n\t\t\n\t\tFloat64CartesianTensorProductMember b = G.DBL_TEN.construct();\n\t\t\n\t\tTensorCommaDerivative.compute(G.DBL_TEN, G.DBL, 1, a, b);\n\t\t\n\t\t// b contains the comma derivative of a\n\t}",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"Gradient gradientAt(Point point);",
"public abstract int getDx();",
"public static double SigmoidDerivative(double x) {\n return Sigmoid(x)*(1-Sigmoid(x));\n }",
"public abstract O reciprocal();",
"public double deriv1At(double arg1, double arg2) throws\n\tIllegalArgumentException, UnsupportedOperationException,\n\tIllegalStateException\n {\n\tif (function1 != null) {\n\t return function1.valueAt(arg1, arg2);\n\t}\n\tif (context == null && object == null)\n\t throw new UnsupportedOperationException\n\t\t(errorMsg(\"functionNotSupported\"));\n\ttry {\n\t if (object != null && object instanceof RealValuedFunctionTwo) {\n\t\tRealValuedFunctionTwo f = (RealValuedFunctionTwo)object;\n\t\treturn f.deriv1At(arg1, arg2);\n\t }\n\t if (context == null) throw new UnsupportedOperationException\n\t\t\t\t (errorMsg(\"functionNotSupported\"));\n\t Object result;\n\t if (f1name != null) {\n\t\tresult = context.callScriptFunction(f1name, arg1, arg2);\n\t } else {\n\t\tif (object == null) throw new UnsupportedOperationException\n\t\t\t\t\t(errorMsg(\"functionNotSupported\"));\n\t\tresult = context.callScriptMethod(object, \"deriv1At\",\n\t\t\t\t\t\t arg1, arg2);\n\t }\n\t if (result instanceof Number) {\n\t\treturn ((Number) result).doubleValue();\n\t } else {\n\t\tthrow new UnsupportedOperationException\n\t\t (errorMsg(\"numberNotReturned\"));\n\t }\n\t} catch (ScriptException e) {\n\t String msg = errorMsg(\"callFailsArg2\", arg1, arg2);\n\t throw new IllegalArgumentException(msg, e);\n\t} catch (NoSuchMethodException e) {\n\t String msg = errorMsg(\"opNotSupported\");\n\t throw new UnsupportedOperationException(msg, e);\n\t}\n }",
"public abstract double calcular();",
"default DiscreteDoubleMap2D reciprocal() {\r\n\t\treturn (x, y) -> 1. / this.getValueAt(x, y);\r\n\t}",
"public double getDescent() throws PDFNetException {\n/* 894 */ return GetDescent(this.a);\n/* */ }",
"public float d() {\n if (this.f3466d.isEmpty()) {\n return 1.0f;\n }\n List<? extends com.airbnb.lottie.g.a<K>> list = this.f3466d;\n return ((com.airbnb.lottie.g.a) list.get(list.size() - 1)).c();\n }",
"double getFloatingPointField();",
"protected abstract double doubleOp(double d1, double d2);",
"private float computeDeceleration(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.computeDeceleration(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.computeDeceleration(float):float\");\n }"
] |
[
"0.7445129",
"0.7057525",
"0.68444717",
"0.654197",
"0.640817",
"0.63875693",
"0.6361245",
"0.6226262",
"0.62055755",
"0.6153911",
"0.60596335",
"0.6018383",
"0.5972306",
"0.58966017",
"0.58640486",
"0.58403647",
"0.5827727",
"0.577674",
"0.57633346",
"0.5702951",
"0.563787",
"0.55864096",
"0.55855876",
"0.5580003",
"0.5573305",
"0.5547999",
"0.55091536",
"0.54950625",
"0.54547393",
"0.5443752",
"0.5408804",
"0.5406624",
"0.5381026",
"0.53645056",
"0.53621984",
"0.5336429",
"0.53168446",
"0.5309498",
"0.5302411",
"0.52931243",
"0.52851903",
"0.5285073",
"0.5283262",
"0.52422404",
"0.5234493",
"0.52169114",
"0.5210974",
"0.52019125",
"0.5199791",
"0.51935756",
"0.51683027",
"0.5155623",
"0.5152634",
"0.51479274",
"0.51456416",
"0.5143542",
"0.5137483",
"0.51328635",
"0.5131743",
"0.51224184",
"0.5118478",
"0.5113826",
"0.51036274",
"0.5071203",
"0.5053433",
"0.50493026",
"0.5041732",
"0.50393754",
"0.50265366",
"0.50246686",
"0.5015561",
"0.5014529",
"0.5014233",
"0.50090665",
"0.49955672",
"0.49886566",
"0.4988346",
"0.4985939",
"0.49831155",
"0.4977452",
"0.49763358",
"0.4969138",
"0.4969071",
"0.49596587",
"0.49555212",
"0.49456814",
"0.49449924",
"0.4940403",
"0.49364355",
"0.49320188",
"0.4926704",
"0.49062634",
"0.49059957",
"0.4905218",
"0.48992708",
"0.48972324",
"0.4888423",
"0.48726657",
"0.4866716",
"0.4860095",
"0.48555076"
] |
0.0
|
-1
|
The partial derivative if its hard coded in
|
public double[] partialV(double u, double v) {
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Function derivative();",
"@Override\n\tpublic Function derivative() {\n\t\tderivativeConstants[0] = 0;\n\t\tfor (int i = 0; i < constants.length - 1; i++) {\n\t\t\tderivativeConstants[i + 1] = constants[i] * (constants.length - i - 1);\n\t\t}\n\t\treturn new Polynomial(derivativeConstants);\n\t}",
"@Override\r\n public Polynomial derivative() {\r\n Polynomial x = this.filter(t -> {\r\n Term term = (Term) t;\r\n return term.getPower() != 0;\r\n }).map(t -> {\r\n Term term = (Term) t;\r\n return new Term(term.getCoefficient() * term.getPower(), term.getPower() - 1);\r\n });\r\n return x;\r\n }",
"@Override\r\n\tpublic double derivativeOf(double x) {\r\n\t\treturn ( 1 / (x - this.getLower_bound()) ) + ( 1 / (this.getUpper_bound() - x) ); \r\n\t}",
"public double secondPartialDerivative(FittingFunction f, int i, int j,\r\n double[] p, double delt) {\r\n double[] arg = new double[p.length];\r\n System.arraycopy(p, 0, arg, 0, p.length);\r\n\r\n arg[i] += delt;\r\n arg[j] += delt;\r\n double ff1 = f.evaluate(arg);\r\n\r\n arg[j] -= 2 * delt;\r\n double ff2 = f.evaluate(arg);\r\n\r\n arg[i] -= 2 * delt;\r\n arg[j] += 2 * delt;\r\n double ff3 = f.evaluate(arg);\r\n\r\n arg[j] -= 2 * delt;\r\n double ff4 = f.evaluate(arg);\r\n\r\n double fsSum = ff1 - ff2 - ff3 + ff4;\r\n\r\n double partial = fsSum / (4.0 * delt * delt);\r\n\r\n// if (Double.isNaN(partial) || partial < -0.5) {\r\n// double eraseme = 1.0;\r\n// }\r\n\r\n return partial;\r\n }",
"public RealValuedFunctTwoOps deriv1() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv1At(x, y);\n\t }\n\t};\n }",
"public Polynomial getDerivative() {\n double[] derCoefs = new double[coefs.length - 1];\n for (int i = 1; i < coefs.length; i++) {\n derCoefs[i - 1] = i * coefs[i];\n }\n return new Polynomial(derCoefs);\n }",
"public PolyTerm derivate() {\n\t\tScalar coeffi=this.coefficient.mul(this.exponent);\n\t\tint expon=this.exponent-1;\n\t\treturn new PolyTerm(coeffi, expon);\n\t}",
"public double derivative(double input) {\n\t\treturn (1 - Math.pow(Math.tanh(input), 2));\n\t}",
"protected abstract SyntaxNode derivative(SyntaxNode doperand);",
"public double calcDerivative(StdVectorInt derivComponents, Vector x) {\n return opensimSimulationJNI.FiberCompressiveForceCosPennationCurve_calcDerivative__SWIG_1(swigCPtr, this, StdVectorInt.getCPtr(derivComponents), derivComponents, Vector.getCPtr(x), x);\n }",
"@Override\n public Component getDerivative(Variable var) {\n\n Factor lnBase = new Logarithm(NEP_NUMBER, new ParenthesizedExpression(new Term(new Constant(base))));\n\n BigDecimal lnBaseValue = lnBase.getValue();\n if (MathUtils.isIntegerValue(lnBaseValue)) {\n lnBase = new Constant(lnBaseValue);\n }\n\n return new Term(\n new ParenthesizedExpression(\n new Term(\n new Constant(\"1\"),\n DIVIDE,\n new Term(\n Factor.getFactor(argument),\n MULTIPLY,\n lnBase\n )\n )\n ),\n MULTIPLY,\n Term.getTerm(argument.getDerivative(var))\n );\n }",
"public void polyDiff() {\n this.polySolve();\n int dd2 = 0, dd3 = 0;\n String d1 = \"\", d2 = \"\", d3 = \"\";\n this.da = 3 * this.a;\n this.db = 2 * this.b;\n this.dc = this.c;\n if (this.degree == 3) {\n d1 = \"dy/dx = \" + this.da + \"x^2 \";\n if (this.b == 0) {\n dd2 = 1;\n } else {\n if (this.db > 0) {\n d2 = \"+ \" + this.db + \"x \";\n } else {\n d2 = \"- \" + -this.db + \"x \";\n }\n }\n if (this.c == 0) {\n dd3 = 1;\n } else {\n if (this.dc > 0) {\n d3 = \"+ \" + this.dc;\n } else {\n d3 = \"- \" + -this.dc;\n }\n }\n if (dd2 == 0 && dd3 == 0) {\n this.diff = d1 + d2 + d3;\n }\n if (dd2 == 0 && dd3 == 1) {\n this.diff = d1 + d2;\n }\n if (dd2 == 1 && dd3 == 1) {\n this.diff = d1;\n }\n if (dd2 == 1 && dd3 == 0) {\n this.diff = d1 + d3;\n }\n\n }\n if (this.degree == 2) {\n d1 = \"dy/dx = \" + this.db + \"x \";\n if (this.dc == 0) {\n this.diff = d1;\n } else {\n if (this.dc > 0) {\n this.diff = d1 + \"+\" + this.dc;\n } else {\n this.diff = d1 + \"-\" + -this.dc;\n }\n }\n }\n if (this.degree == 1) {\n this.diff = \"dy/dx = \" + this.c;\n }\n if (this.degree == 0) {\n this.diff = \"dy/dx = \" + 0;\n }\n\n }",
"private double fd(double x) {\r\n if(x<0){\r\n double x1 = x*-1;\r\n return interpretadorD.getResultado(\"!\"+x1);\r\n }\r\n return interpretadorD.getResultado(x);\r\n }",
"public Monom derivative() {\n\t\tif(this.get_power()==0) {return getNewZeroMonom();}\n\t\treturn new Monom(this.get_coefficient()*this.get_power(), this.get_power()-1);\n\t}",
"public double getPartialDerviative(double consumptionAllocation);",
"public Monom derivative() {\r\n\t\tif(this.get_power()==0) {return getNewZeroMonom();}\r\n\t\treturn new Monom(this.get_coefficient()*this.get_power(), this.get_power()-1);\r\n\t}",
"public void subDif() {\n this.polySubSolve();\n int dd2 = 0, dd3 = 0;\n String d1 = \"\", d2 = \"\", d3 = \"\";\n this.das = 3 * this.asub;\n this.dbs = 2 * this.bsub;\n this.dcs = this.csub;\n if (this.subdegree == 3) {\n d1 = \"dy/dx = \" + this.das + \"x^2 \";\n if (this.bsub == 0) {\n dd2 = 1;\n } else {\n if (this.dbs > 0) {\n d2 = \"+ \" + this.dbs + \"x \";\n } else {\n d2 = \"- \" + -this.dbs + \"x \";\n }\n }\n if (this.csub == 0) {\n dd3 = 1;\n } else {\n if (this.dcs > 0) {\n d3 = \"+ \" + this.dcs;\n } else {\n d3 = \"- \" + -this.dcs;\n }\n }\n if (dd2 == 0 && dd3 == 0) {\n this.subdiff = d1 + d2 + d3;\n }\n if (dd2 == 0 && dd3 == 1) {\n this.subdiff = d1 + d2;\n }\n if (dd2 == 1 && dd3 == 1) {\n this.subdiff = d1;\n }\n if (dd2 == 1 && dd3 == 0) {\n this.subdiff = d1 + d3;\n }\n\n }\n if (this.subdegree == 2) {\n d1 = \"dy/dx = \" + this.dbs + \"x \";\n if (this.dcs == 0) {\n this.subdiff = d1;\n } else {\n if (this.dcs > 0) {\n this.subdiff = d1 + \"+\" + this.dcs;\n } else {\n this.subdiff = d1 + \"-\" + -this.dcs;\n }\n }\n }\n if (this.subdegree == 1) {\n this.subdiff = \"dy/dx = \" + this.csub;\n }\n if (this.subdegree == 0) {\n this.subdiff = \"dy/dx = \" + 0;\n }\n\n }",
"public RealValuedFunctTwoOps deriv21() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv21At(x, y);\n\t }\n\t};\n }",
"double defendre();",
"public void derivate () {\n int size = myCoefficients.size();\n for (int i = 1; i < size; ++i) {\n myCoefficients.set(i - 1, myCoefficients.get(i) * i);\n }\n myCoefficients.remove(size - 1);\n }",
"public Double getDx();",
"public RealValuedFunctTwoOps deriv12() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv12At(x, y);\n\t }\n\t};\n }",
"public float getDCD();",
"public String get_fraction_part();",
"public double get_dFdx( double x )\n {\n if ( domain.contains( (float)x ) )\n {\n double sum = 0.0;\n for ( int i = parameters.length - 2; i >= 0; i-- )\n sum = x * sum + (i+1) * parameters[i+1];\n return sum;\n }\n else\n return 0;\n }",
"public void addDif() {\n this.polyAddSolve();\n int dd2 = 0, dd3 = 0;\n String d1 = \"\", d2 = \"\", d3 = \"\";\n this.daa = 3 * this.aadd;\n this.dba = 2 * this.badd;\n this.dca = this.cadd;\n if (this.adddegree == 3) {\n d1 = \"dy/dx = \" + this.daa + \"x^2 \";\n if (this.badd == 0) {\n dd2 = 1;\n } else {\n if (this.dba > 0) {\n d2 = \"+ \" + this.dba + \"x \";\n } else {\n d2 = \"- \" + -this.dba + \"x \";\n }\n }\n if (this.cadd == 0) {\n dd3 = 1;\n } else {\n if (this.dca > 0) {\n d3 = \"+ \" + this.dca;\n } else {\n d3 = \"- \" + -this.dca;\n }\n }\n if (dd2 == 0 && dd3 == 0) {\n this.adddiff = d1 + d2 + d3;\n }\n if (dd2 == 0 && dd3 == 1) {\n this.adddiff = d1 + d2;\n }\n if (dd2 == 1 && dd3 == 1) {\n this.adddiff = d1;\n }\n if (dd2 == 1 && dd3 == 0) {\n this.adddiff = d1 + d3;\n }\n\n }\n if (this.adddegree == 2) {\n d1 = \"dy/dx = \" + this.db + \"x \";\n if (this.dca == 0) {\n this.adddiff = d1;\n } else {\n if (this.dca > 0) {\n this.adddiff = d1 + \"+\" + this.dca;\n } else {\n this.adddiff = d1 + \"-\" + -this.dca;\n }\n }\n }\n if (this.adddegree == 1) {\n this.adddiff = \"dy/dx = \" + this.cadd;\n }\n if (this.adddegree == 0) {\n this.adddiff = \"dy/dx = \" + 0;\n }\n\n }",
"public double getActivationFunctionDerivative() {\n\t\treturn nodeActivationFunction.getDerivative();\n\t}",
"@Override\n\tpublic double derive(double input) {\n\t\treturn 1;\n\t}",
"@Override\n public Vector2d gradient(Vector2d p) {\n\n return null;\n }",
"double d();",
"public RealValuedFunctTwoOps deriv22() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv22At(x, y);\n\t }\n\t};\n }",
"public RealValuedFunctTwoOps deriv11() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv11At(x, y);\n\t }\n\t};\n }",
"public abstract double fct(double x);",
"float getD();",
"public static double derivada(double x, double y)\n {\n // reemplazar esto, con la funcion que me toque \n return x * Math.sqrt(1 + y*y);\n }",
"@org.junit.Test\n public void getSecondDerivEmptyCurve() {\n BezierCurve emptyCurve = new BezierCurve();\n assertEquals(new Vector(), emptyCurve.getSecondDeriv(0));\n assertEquals(new Vector(), emptyCurve.getSecondDeriv(1));\n }",
"public Polynomial derivative(int position, String value) {\n Polynomial polynomial = collection.get(position);\n Polynomial derivated;\n\n int i;\n\n try {\n i = Integer.parseInt(value);\n } catch (NumberFormatException e) {\n i = 0;\n }\n\n if (i >= polynomial.getLength()) {\n i = 0;\n polynomial = new Polynomial(1);\n polynomial.setValue(0, 0);\n }\n\n if (i < 0)\n i = 0;\n\n // i is the grad of derivation\n // each derivation is a derivation of the previous derivation till i == 0\n while (i > 0) {\n\n // derivation is one grade smaller than the polynomial\n derivated = new Polynomial(polynomial.getLength() - 1);\n\n // power gets decreased by 1 and the factor gets multiplied with the value of the old power\n // 2x^3 => 3*2x^2 = 6x^2\n for (int j = derivated.getLength(); j > 0; j--) {\n derivated.setValue(j - 1, polynomial.getValue(j) * j);\n }\n polynomial = derivated;\n i--;\n }\n\n return polynomial;\n }",
"@Override\n\tpublic double calc(double d1, double d2) {\n\t\treturn 0;\n\t}",
"public double derivativeSigmoid(double x){\n return sigmoid(x) * (1 - sigmoid(x));\n }",
"@Override\n public double dydx(double t) {\n \tt = t / 141;\n \treturn (12 + 324 * t + -360 * Math.pow(t, 2))/ (294 + -930 * t + 873 * Math.pow(t, 2));\n }",
"public abstract void debiterMontant( double montant);",
"public float d() {\n if (B1() || A1()) {\n return this.A + this.o + this.B;\n }\n return 0.0f;\n }",
"public RealValuedFunctTwoOps deriv2() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv2At(x, y);\n\t }\n\t};\n }",
"@Override\r\n\t\tpublic double getDx() {\n\t\t\treturn(Math.pow(this.a+this.h, 2)-Math.pow(this.a, 2))/h;\r\n\t\t}",
"private void reciprocal()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.reciprocal ( );\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public double mod() \n\t{\n if (x!=0 || y!=0) {\n return Math.sqrt(x*x+y*y); //distance formular\n } else {\n return 0.0D;\n }\n }",
"public double DFrom0()\n\t{\n\t\treturn(x+y);\n\t\t\n\t}",
"public double diff(double x) {\n return -2 * x;\n }",
"@Override\r\n\t\tpublic double[] gradient(double x, double... parameters) {\n\t\t\tfinal double a = parameters[0];\r\n\t\t\tfinal double b = parameters[1];\r\n\t\t\tfinal double c = parameters[2];\r\n\t\t\tfinal double d = parameters[3];\r\n\t\t\tfinal double e = parameters[4];\r\n\t\t\t\r\n\t\t\tdouble[] gradients = new double[5];\r\n\t\t\t//double den = 1 + Math.pow((x+e)/c, b);\r\n\t\t\t//gradients[0] = 1 / den; // Yes a Derivation \r\n\t\t\t//gradients[1] = -((a - d) * Math.pow(x / c, b) * Math.log(x / c)) / (den * den); // Yes b Derivation \r\n\t\t\t//gradients[2] = (b * Math.pow(x / c, b - 1) * (x / (c * c)) * (a - d)) / (den * den); // Yes c Derivation \r\n\t\t\t//gradients[3] = 1 - (1 / den); // Yes d Derivation \r\n\t\t\t\r\n\t\t\t//Derivation\r\n\t\t\tfinal double c_b = Math.pow(c, b);\r\n\t\t\tfinal double c_b1 = Math.pow(c, b+1.);\r\n\t\t\tfinal double c_2b = Math.pow(c, 2.*b);\r\n\t\t\tfinal double c_2b1 = Math.pow(c, 2.*b+1.);\r\n\t\t\t\r\n\t\t\tfinal double xe_b = Math.pow(x+e, b);\r\n\t\t\tfinal double xe_2b = Math.pow(x+e, 2.*b);\r\n\t\t\tfinal double xe_2b1 = Math.pow(x+e, 2.*b+1.);\r\n\t\t\t\r\n\t\t\tgradients[0] = c_b/(xe_b+c_b);\r\n\t\t\tgradients[1] = ((c_b*d-a*c_b)*xe_b*Math.log(x+e)+(a*c_b*Math.log(c)-c_b*Math.log(c)*d)*xe_b)/(xe_2b+2*c_b*xe_b+c_2b);\r\n\t\t\tgradients[2] = -((b*c_b*d-a*b*c_b)*xe_b)/(c*xe_2b+2*c_b1*xe_b+c_2b1);\r\n\t\t\tgradients[3] = xe_b/(xe_b+c_b);\r\n\t\t\tgradients[4] = ((b*c_b*d-a*b*c_b)*xe_b)/(xe_2b1+xe_b*(2*c_b*x+2*c_b*e)+c_2b*x+c_2b*e);\r\n\t\t\treturn gradients;\r\n\t\t}",
"private double f(double x) {\r\n if(x<0){\r\n double x1 = x*-1;\r\n return interpretador.getResultado(\"!\"+x1);\r\n }\r\n return interpretador.getResultado(x);\r\n }",
"@org.junit.Test\n public void getSecondDerivTestOnePointCurve() {\n BezierCurve onePointCurve = new BezierCurve(new Vector(10, 20));\n assertEquals(new Vector(), onePointCurve.getSecondDeriv(0));\n assertEquals(new Vector(), onePointCurve.getSecondDeriv(1));\n }",
"public double[] getRemainingDegreeDist(double[] pd)\n\t{\n\t\tdouble sum = 0;\n\t\tfor(int i=0; i< pd.length;i++)\n\t\t{\n\t\t\tsum = sum + ( i*pd[i] );\n\t\t}\n\t\t\n\t\tdouble[] qDist = new double[pd.length-1];\n\t\tfor(int i=1; i< pd.length;i++)\n\t\t{\n\t\t\tqDist[i-1] = (i*pd[i]) /sum;\n\t\t}\n\t\treturn qDist;\n\t}",
"public double derivativeCustomSigmoid(double x){\n return (1.0/(mArgB - mArgA)) * (customSigmoid(x) - mArgA) * (mArgB - customSigmoid(x));\n }",
"public Optional<DerivativePrice> getDerivativePrice() {\n return repository.findDerivativePrice(new Tuple<>(ticker,optionName));\n }",
"public final float determinant() {\n\t// less *,+,- calculation than expanded expression.\n\treturn m00*(m11*m22 - m21*m12)\n\t - m01*(m10*m22 - m20*m12)\n\t + m02*(m10*m21 - m20*m11);\n }",
"public Double getDz();",
"public Derivative evaluate(State initial, double t, double dt, Derivative d)\n\t{\n\n\t\tState state = initial;\n\t state.position = initial.position.add(d.dx.scale(dt));\n\t state.momentum = initial.momentum.add(d.dv.scale(dt)); \n\n\t Derivative output = new Derivative();\n\t output.dx = state.momentum;\n\t output.dv = state.efield.scale(state.charge);\n\t return output;\n\t}",
"@Override\n public double apply$mcDD$sp (double arg0)\n {\n return 0;\n }",
"@Override\n\tpublic double[] getDx() {\n\t double object[] = new double[2];\n\t for(int i = 0; i < x.length; i++){\n\t object[0] += theta[0] + theta[1] * x[i] - y[i];\n\t object[1] += (theta[0] + theta[1] * x[i] - y[i])*x[i];\n\t }\n\t theta[0] -= eta * object[0];\n\t theta[1] -= eta * object[1];\n\n\t return theta;\n }",
"@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}",
"private double f(double v, double s) {\n\t\treturn equation(v) - s;\r\n\t}",
"@Override\n\tpublic Vector3d gradient(Particle p_j) {\n\t\treturn null;\n\t}",
"public double activationDerivative(double z);",
"@Override\n\tpublic void sub(double dx, double dy) {\n\t\t\n\t}",
"public Function differentiate() {\n return new Product(this,\n new Sum(new Quotient(new Product(f2,\n f1.differentiate()),\n f1),\n new Product(new Log(new Complex(Math.E, 0.0), f1),\n f2.differentiate())));\n }",
"private float diffusitivity(float d) {\r\n return (1.0f / (1.0f + (d * d) / (lambda * lambda)));\r\n }",
"private double calculateXDerivative(double x, double y, double r, double r2, double phi, double deltaPhi)\n\t{\n\t\treturn 2*((a*b*Math.exp(b*(deltaPhi+phi))*y)/r2 + x/r) * (-a*Math.exp(b*(deltaPhi+phi)) + r);\n\t}",
"@Override\n\tpublic int dx() {\n\t\treturn dx;\n\t}",
"public final bp dd() {\n if (this.ad == null) {\n return null;\n }\n dp aq = (-1 == this.cs * -1099198911 || this.cx * -1961250233 != 0) ? null : gn.aq(this.cs * -1099198911, 1871547802);\n dp aq2 = (-1 == this.ce * -1620542321 || (this.ce * -1620542321 == this.bb * -959328679 && aq != null)) ? null : gn.aq(this.ce * -1620542321, 1539681168);\n bp ai = this.ad.ai(aq, this.cr * 317461367, aq2, this.cy * 631506963, 578342776);\n if (ai == null) {\n return null;\n }\n bp bpVar;\n ai.ai();\n this.di = ai.bx * -1067272603;\n if (!(-1 == this.ck * 836985687 || -1 == this.co * 1215520647)) {\n bp aj = dd.aq(this.ck * 836985687, 812886062).aj(this.co * 1215520647, (byte) 33);\n if (aj != null) {\n aj.ac(0, -(this.cz * -583056727), 0);\n bpVar = new bp(new bp[]{ai, aj}, 2);\n if (1 == this.ad.ae * -735434895) {\n bpVar.bs = true;\n }\n return bpVar;\n }\n }\n bpVar = ai;\n if (1 == this.ad.ae * -735434895) {\n }\n return bpVar;\n }",
"public abstract double getFractionMultiplier();",
"private double denominator(int iter) {\n switch (DENOM) {\n case 0: return Math.pow((double) iter, 2.0);\n default: return (double) CONSTANT / Math.log(1+iter);\n }\n }",
"protected final double fr(double x, double rc, double re) {return rc*(K*K)/Math.pow(x, re);}",
"public void determined0d1() {\n\n\t\tint upperBound = (int) (Math.log(this.numNVertices + this.numWVertices)); // pg 184 in paper\n\n\t\tthis.d0 = upperBound / 2;\n\t\tthis.d1 = upperBound;\n\n\t}",
"public Double getDy();",
"public Vector3D[] deriv(Vector3D[] y, Vector3D acceleration, double dt) {\n Vector3D[] doty = new Vector3D[2];\n doty[0] = y[1].scale(dt);\n doty[1] = acceleration.scale(dt);\n return doty;\n }",
"public float getDCL();",
"public void setDerivativeOnInput(boolean on) {\n this.useDerivativeOnInput = on;\n }",
"private TwoPassPartialConstant() {\r\n\t\tthis(true);\r\n\t}",
"@Override\n public void computeDerivatives(double t, double[] Bt, double[] BDot) {\n // Copy Bt to biomass, setting biomass below extinction threshold to 0\n // (Copying because API doesn't specify whether state vector Bt can be modified)\n for (int i = 0; i < nodeCount; i++) {\n biomass[i] = Bt[i] < EXTINCT ? 0.0 : Bt[i];\n }\n\n computeFunctionalResponse();\n computeGrowthFunction();\n computeProducerDerivatives(BDot);\n computeConsumerDerivatives(BDot);\n\n // Save derivatives for use by event handlers\n this.currentDerivatives = BDot;\n }",
"public double berechneFlaeche()\n {\n return (2 * p1.getX()) * (2 * p1.getX());\n }",
"@org.junit.Test\n public void getSecondDerivTestCurve4() {\n BezierCurve curve = new BezierCurve(new Vector(10, 20), new Vector(20, 20),\n new Vector(10, 30), new Vector(20, 30));\n assertTrue(curve.getSecondDeriv(0).dot(new Vector(-1, 0)) > 0);\n assertTrue(curve.getSecondDeriv(0).dot(new Vector(0, 1)) > 0);\n assertEquals(new Vector(), curve.getSecondDeriv(0.5));\n assertTrue(curve.getSecondDeriv(1).dot(new Vector(1, 0)) > 0);\n assertTrue(curve.getSecondDeriv(1).dot(new Vector(0, -1)) > 0);\n }",
"public abstract double gradient(double betaForDimension, int dimension);",
"public double nextDouble() {\n\tdouble result = (d1 - 1.0) / (POW3_33 - 1.0);\n\tnextIterate();\n\treturn result;\n }",
"double passer();",
"public static double fapprox(double x) {\r\n double y = x * x;\r\n // return 1 - 1.52763 * y + 0.104815 * y * y - 0.0267057 * y * y * y;\r\n return 1.000000000000000000000000000 - 1.527632997036301454035890310\r\n * p(x, 2) + 0.1048151947873037332167426137 * p(x, 4)\r\n + 0.02670567052519335403265209493 * p(x, 6)\r\n - 0.003527409660908709170234190769 * p(x, 8)\r\n + 0.00008160096654753174517219048643 * p(x, 10)\r\n + 0.00002528508423396353617626255186 * p(x, 12)\r\n - 0.000002556317166278493846353254082 * p(x, 14)\r\n - 0.00000009651271550891203216372576758 * p(x, 16)\r\n + 0.00000002819346397450409137075662724 * p(x, 18)\r\n - 0.0000000002773051160799011724373112613 * p(x, 20)\r\n - 0.0000000003028427022130566329838808729 * p(x, 22)\r\n + 2.670589280748075553964724751e-11 * p(x, 24)\r\n + 9.962291641028482309516423738e-13 * p(x, 26)\r\n - 3.624202982904156082231272345e-13 * p(x, 28)\r\n + 2.179657744827070432205070008e-14 * p(x, 30)\r\n + 1.529232899480963381203627083e-15 * p(x, 32)\r\n - 3.184728789952787897482240499e-16 * p(x, 34)\r\n + 1.134672106212041869027732120e-17 * p(x, 36);\r\n }",
"public static StateVector integrate( StateVector state, double dt) {\r\n StateVector dummy = new StateVector();\r\n StateVector derivative_a, derivative_b, derivative_c, derivative_d;\r\n\r\n\r\n derivative_a = evaluate(state, 0.0, dummy, 0 ); // derivative a returns initial velocity and acceleration\r\n derivative_b = evaluate(state, dt*0.5, derivative_a, 1 );\r\n derivative_c = evaluate(state, dt*0.5, derivative_b, 1 );\r\n derivative_d = evaluate(state, dt, derivative_c, 2 );\r\n\r\n double dxdt = 1.0/6.0 * (derivative_a.vx + 2.0f*(derivative_b.vx + derivative_c.vx) + derivative_d.vx);\r\n double dydt = 1.0/6.0 * (derivative_a.vy + 2.0f*(derivative_b.vy + derivative_c.vy) + derivative_d.vy);\r\n double dzdt = 1.0/6.0 * (derivative_a.vz + 2.0f*(derivative_b.vz + derivative_c.vz) + derivative_d.vz);\r\n double dvxdt = 1.0/6.0 * (derivative_a.ax + 2.0f*(derivative_b.ax + derivative_c.ax) + derivative_d.ax);\r\n double dvydt = 1.0/6.0 * (derivative_a.ay + 2.0f*(derivative_b.ay + derivative_c.ay) + derivative_d.ay);\r\n double dvzdt = 1.0/6.0 * (derivative_a.az + 2.0f*(derivative_b.az + derivative_c.az) + derivative_d.az);\r\n\r\n state.x = state.x + dxdt * dt;\r\n state.y = state.y + dydt * dt;\r\n state.z = state.z + dzdt * dt;\r\n state.vx = state.vx + dvxdt * dt;\r\n state.vy = state.vy + dvydt * dt;\r\n state.vz = state.vz + dvzdt * dt;\r\n\r\n return( state );\r\n }",
"void example1() {\n\t\t\n\t\tFloat64CartesianTensorProductMember a = new Float64CartesianTensorProductMember(3, 4);\n\t\t\n\t\tFloat64CartesianTensorProductMember b = G.DBL_TEN.construct();\n\t\t\n\t\tTensorCommaDerivative.compute(G.DBL_TEN, G.DBL, 1, a, b);\n\t\t\n\t\t// b contains the comma derivative of a\n\t}",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"Gradient gradientAt(Point point);",
"public abstract int getDx();",
"public static double SigmoidDerivative(double x) {\n return Sigmoid(x)*(1-Sigmoid(x));\n }",
"public abstract O reciprocal();",
"public double deriv1At(double arg1, double arg2) throws\n\tIllegalArgumentException, UnsupportedOperationException,\n\tIllegalStateException\n {\n\tif (function1 != null) {\n\t return function1.valueAt(arg1, arg2);\n\t}\n\tif (context == null && object == null)\n\t throw new UnsupportedOperationException\n\t\t(errorMsg(\"functionNotSupported\"));\n\ttry {\n\t if (object != null && object instanceof RealValuedFunctionTwo) {\n\t\tRealValuedFunctionTwo f = (RealValuedFunctionTwo)object;\n\t\treturn f.deriv1At(arg1, arg2);\n\t }\n\t if (context == null) throw new UnsupportedOperationException\n\t\t\t\t (errorMsg(\"functionNotSupported\"));\n\t Object result;\n\t if (f1name != null) {\n\t\tresult = context.callScriptFunction(f1name, arg1, arg2);\n\t } else {\n\t\tif (object == null) throw new UnsupportedOperationException\n\t\t\t\t\t(errorMsg(\"functionNotSupported\"));\n\t\tresult = context.callScriptMethod(object, \"deriv1At\",\n\t\t\t\t\t\t arg1, arg2);\n\t }\n\t if (result instanceof Number) {\n\t\treturn ((Number) result).doubleValue();\n\t } else {\n\t\tthrow new UnsupportedOperationException\n\t\t (errorMsg(\"numberNotReturned\"));\n\t }\n\t} catch (ScriptException e) {\n\t String msg = errorMsg(\"callFailsArg2\", arg1, arg2);\n\t throw new IllegalArgumentException(msg, e);\n\t} catch (NoSuchMethodException e) {\n\t String msg = errorMsg(\"opNotSupported\");\n\t throw new UnsupportedOperationException(msg, e);\n\t}\n }",
"public abstract double calcular();",
"default DiscreteDoubleMap2D reciprocal() {\r\n\t\treturn (x, y) -> 1. / this.getValueAt(x, y);\r\n\t}",
"public double getDescent() throws PDFNetException {\n/* 894 */ return GetDescent(this.a);\n/* */ }",
"public float d() {\n if (this.f3466d.isEmpty()) {\n return 1.0f;\n }\n List<? extends com.airbnb.lottie.g.a<K>> list = this.f3466d;\n return ((com.airbnb.lottie.g.a) list.get(list.size() - 1)).c();\n }",
"double getFloatingPointField();",
"protected abstract double doubleOp(double d1, double d2);",
"private float computeDeceleration(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.computeDeceleration(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.computeDeceleration(float):float\");\n }"
] |
[
"0.7444539",
"0.7058098",
"0.68450767",
"0.65420735",
"0.6408906",
"0.6387818",
"0.6361637",
"0.6227285",
"0.62046444",
"0.61524755",
"0.6060011",
"0.6017732",
"0.5972439",
"0.58969194",
"0.5863398",
"0.58413655",
"0.5827143",
"0.57763493",
"0.57633114",
"0.5704009",
"0.56393284",
"0.5586335",
"0.5584769",
"0.5580226",
"0.55742085",
"0.55481875",
"0.5509785",
"0.5494195",
"0.54554",
"0.5443968",
"0.54087573",
"0.5406788",
"0.53810376",
"0.5364554",
"0.53626317",
"0.53361046",
"0.5317521",
"0.5310477",
"0.5303286",
"0.52932924",
"0.52849764",
"0.5284947",
"0.52837855",
"0.52418995",
"0.5234454",
"0.52172464",
"0.52101064",
"0.5201789",
"0.51994354",
"0.5194171",
"0.51688135",
"0.51568615",
"0.51534045",
"0.5148368",
"0.5144898",
"0.51442987",
"0.5138092",
"0.51315856",
"0.51310337",
"0.51225567",
"0.5118151",
"0.5113853",
"0.51037604",
"0.5070935",
"0.50530976",
"0.50494075",
"0.5042321",
"0.503936",
"0.5026093",
"0.50246316",
"0.5015904",
"0.5015447",
"0.50147367",
"0.5010761",
"0.49959067",
"0.49895847",
"0.49880967",
"0.4986887",
"0.49837878",
"0.49780047",
"0.49770603",
"0.4970148",
"0.49686095",
"0.4959275",
"0.49553922",
"0.49469528",
"0.49438736",
"0.49401802",
"0.49374303",
"0.4931991",
"0.49269307",
"0.490618",
"0.49053064",
"0.490527",
"0.48993042",
"0.48976818",
"0.48884213",
"0.48731422",
"0.4867519",
"0.48589036",
"0.48558897"
] |
0.0
|
-1
|
Value will be injected from single parametrized constructor
|
public Node(char value) {
this.value = value;
this.left = null;
this.right = null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"MyArg(int value){\n this.value = value;\n }",
"public AbstractValueHolder() {\n }",
"public UserParameter() {\n }",
"private Params()\n {\n }",
"private Value() {\n\t}",
"public FactoryValue( ) \r\n {\r\n }",
"public BaseParameters(){\r\n\t}",
"public ParameterizedInstantiateFactory() {\r\n super();\r\n }",
"ComponentParameterInstance createComponentParameterInstance();",
"Reproducible newInstance();",
"public Value(){}",
"private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }",
"private ServiceConstructorArguments(\n Class<? extends Service> implementation,\n Class<?> configClass,\n String configID,\n Object config,\n String serviceID,\n Class<? extends Service> serviceClass,\n Service serviceInstance\n ) {\n this.implementation = implementation;\n this.configClass = configClass;\n this.configID = configID;\n this.config = config;\n this.serviceID = serviceID;\n this.serviceClass = serviceClass;\n this.serviceInstance = serviceInstance;\n }",
"Parameter createParameter();",
"public Value() {\n }",
"public ByValue() {}",
"public Value() {}",
"public LightParameter()\r\n\t{\r\n\t}",
"public Parameters() {\n\t}",
"@Override\n\tpublic <T> T construct(Class<T> type) {\n\t\treturn injector.getInstance(type);\n\t}",
"public SomeClassImpl(final String userName) {\n this.userName = userName;\n }",
"public BabbleValue() {}",
"private DBParameter() {\n }",
"public MockClass(String arg) {\n\t}",
"private Instantiation(){}",
"public A(int x)\n {\n xValue = x;\n }",
"public ValorVariavel() {\r\n }",
"public ParamJson() {\n\t\n\t}",
"Param createParam();",
"Param createParam();",
"Param createParam();",
"public Parameter(Parameter template){\n\t\tthis(template.getName(),template.isRequired(),\n\t\t\t template.getType(),(T) template.getDefaultValue());\n\t}",
"public IntPar(int val) { value = val; }",
"public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}",
"protected Provider() {}",
"defaultConstructor(){}",
"public ConstantCtorAndArgsProvider(final Constructor<T> constructor,\n final Object... args) {\n ctorAndArgs = new CtorAndArgs<T>(constructor, args);\n }",
"DefaultConstructor(int a){}",
"private SomePojoClass(String name) {\n this.name = name;\n }",
"@Test\n void test_ArgsConstructor() {\n assertThrows(\n IllegalArgumentException.class, () -> new ValidationContextFactoryImpl(null, null));\n assertThrows(\n IllegalArgumentException.class, () -> new ValidationContextFactoryImpl(null, null));\n\n ValidationContext<Bean> ctx =\n new ValidationContextFactoryImpl(propertyNameObtainerFactory, null).buildFor(new Bean());\n\n assertTrue(ctx.isNull(Bean::getString1));\n }",
"public CustomEntitiesTaskParameters() {}",
"Object instantiate(Map<String, Object> arguments);",
"public ComponentFactory(Class<T> annotationType) {\n this(annotationType, \"value\");\n }",
"private LocalParameters() {\n\n\t}",
"public Int(int value) { \n this.value = value; \n }",
"protected abstract void construct();",
"TypesOfConstructor(int value){\n num = value;\n }",
"public Parameterized() {\n setParameters(null);\n }",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"protected CacheObject(T value) {\n this.value = value;\n }",
"protected ForConstructor(Constructor<?> constructor) {\n this.constructor = constructor;\n }",
"public ConstantFactory(Initializable<T> initializable) {\n\t\tthis.initializable = initializable;\n\t}",
"public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }",
"ConstuctorOverloading(int num){\n\t\tSystem.out.println(\"I am contructor with 1 parameter\");\n\t}",
"private Point(int param, double value) {\r\n this(param, value, false);\r\n }",
"public LightParameter(PropertyEnum propertyEnum, String value)\r\n\t{\r\n\t\tsuper(propertyEnum, value);\r\n\t}",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"protected DefaultBaseRedisData(final T value) {\n this.value = requireNonNull(value);\n }",
"private OptionalValue(final Value value) {\n this.value = value;\n }",
"public IParameter getInstance(String type){\n if(!initialized)\n throw new IllegalStateException(\"constructor never finished\");\n Class klass=(Class)paramList.get(type);\n if(klass==null)\n return null;\n else\n return getInstance(klass,false);\n }",
"public Identity()\n {\n super( Fields.ARGS );\n }",
"public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}",
"private Optional(T value) {\r\n\t\tthis.value = Objects.requireNonNull(value);\r\n\t}",
"Builder injectionFactory(InjectionObjectFactory factory);",
"@Inject\n\tpublic ProviderBikes() { //has dependencies of its own that's why constructot\n\t\t\t\t\t\t\t\t\t\t//with @Inject annotation\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t\tSystem.out.println(\"Inside the constructor of the provide class\");\n\t}",
"public StratmasParameterFactory() \n {\n this.typeMapping = createTypeMapping();\n }",
"public TParametrosVOImpl() {\r\n }",
"private void prepareInstance(String arg) {\n pattern = arg;\n }",
"public Dice() { \n this(6); /* Invoke the above Dice constructor with value 6. */ \n }",
"public ServiceConstructorArguments(\n Class<? extends Service> implementation,\n Class<?> configClass,\n String configID,\n Object config\n ) {\n this(implementation, configClass, configID, config, null, null, null);\n }",
"public ServiceConstructorArguments(\n Class<? extends Service> implementation\n ) {\n this(implementation, null, null, null, null, null, null);\n }",
"private Values(){}",
"public Bar(Baz baz) { // Baz - Dependency\n this.baz = baz;\n }",
"private ConfigurationObject createParam(int num, String type, String value) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.setPropertyValue(PROPERTY_TYPE, type);\r\n param.setPropertyValue(PROPERTY_VALUE, value);\r\n\r\n return param;\r\n }",
"public Constructor(){\n\t\t\n\t}",
"public TextureParameter(TextureParameter source) {\n setValues(source);\n }",
"public JsonFactory() { this(null); }",
"public ModuleParams() {\n }",
"public FactoryValue( Factory factory, URL url, String[] key, String name, String description, \r\n Parameter[] params, String defaultName ) \r\n {\r\n super( factory, url, key, name, description );\r\n if( params == null )\r\n {\r\n m_params = new Parameter[0];\r\n }\r\n else\r\n {\r\n m_params = params;\r\n }\r\n if( defaultName == null )\r\n {\r\n m_default = \"Untitled Service\";\r\n }\r\n else\r\n {\r\n m_default = defaultName;\r\n }\r\n }",
"public ModuleParams()\n\t{\n\t}",
"private PropertySingleton(){}",
"public interface ComponentInitializer<Factory, Component> {\n\n @NonNull\n Component invoke(@NonNull Factory factory);\n}",
"public PotionEffect(PotionEffect paramwq)\r\n/* 35: */ {\r\n/* 36: 44 */ this.id = paramwq.id;\r\n/* 37: 45 */ this.duration = paramwq.duration;\r\n/* 38: 46 */ this.amplifier = paramwq.amplifier;\r\n/* 39: 47 */ this.ambient = paramwq.ambient;\r\n/* 40: 48 */ this.showParticles = paramwq.showParticles;\r\n/* 41: */ }",
"private FunctionParametersValidator() {}",
"MapBuilder<K,V> valueInjection(Injection<V, byte[]> valueInjection);",
"public Card() { this(12, 3); }",
"public Counter(Counter count) {\r\n value = count.value;\r\n }",
"public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }",
"public GeneralParameters instantiate() {\n return instantiate(null);\n }",
"public Card(int value)\n {\n //initialize the value instance variable\n this.value = value;\n }",
"public CarValue(double value) {\n this.value = value;\n }",
"IntStrategyFactory() {\n }",
"public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}",
"@Test\n\tpublic void testParameterizedConstructor() {\n\t\tQuestionsEntity questions=new QuestionsEntity(1,\"SOX\",\"Have all changes has been approved\",\"Yes\");\n\t assertEquals(\"Yes\",questions.getResponse());\n\t}",
"private ConsistentVariable(String name, Class<V> type, V initValue, long initVersion) {\n super(name, type);\n versionedValue = new AtomicReference<>(new VersionedValue<>(initVersion, initValue));\n }",
"private Injector() {\n }",
"public Constant (int value){\r\n this.value = value;\r\n\r\n }",
"public ServiceConstructorArguments(\n Class<? extends Service> implementation,\n String serviceID,\n Class<? extends Service> serviceClass,\n Service serviceInstance\n ) {\n this(implementation, null, null, null, serviceID, serviceClass, serviceInstance);\n }",
"public void passValue() {\n }",
"public Parameter(String name, String value, String access) {\n this.name = name;\n this.value = value;\n this.access = access;\n }",
"T newInstance(Object... args);"
] |
[
"0.6427717",
"0.6313901",
"0.6221457",
"0.6019697",
"0.6014177",
"0.5983813",
"0.59260327",
"0.59159905",
"0.5892594",
"0.58903605",
"0.58856964",
"0.5884863",
"0.5870297",
"0.58677185",
"0.5838179",
"0.5826422",
"0.58221966",
"0.58075684",
"0.5748403",
"0.5730929",
"0.5712689",
"0.5669759",
"0.56650186",
"0.5601142",
"0.55820525",
"0.5577236",
"0.553794",
"0.55295426",
"0.5520465",
"0.5520465",
"0.5520465",
"0.55184555",
"0.55132604",
"0.54996854",
"0.5496366",
"0.5484509",
"0.54683316",
"0.5459325",
"0.54564047",
"0.545501",
"0.54420483",
"0.5439711",
"0.54389375",
"0.5424076",
"0.5423699",
"0.54212636",
"0.54164",
"0.5413283",
"0.5407507",
"0.54074466",
"0.5390875",
"0.53801376",
"0.53768617",
"0.5375434",
"0.53725713",
"0.5370545",
"0.5355505",
"0.53531545",
"0.53524834",
"0.5329705",
"0.53283644",
"0.53239",
"0.53206974",
"0.5307952",
"0.53068626",
"0.53047264",
"0.5299713",
"0.5292137",
"0.5288195",
"0.5284263",
"0.52768946",
"0.5274022",
"0.5267589",
"0.5266992",
"0.52633977",
"0.5257318",
"0.5256537",
"0.5256035",
"0.5255231",
"0.5255077",
"0.52470386",
"0.5244679",
"0.52397805",
"0.5236747",
"0.52301687",
"0.5221593",
"0.5200096",
"0.51974183",
"0.51967764",
"0.51941067",
"0.519196",
"0.5191293",
"0.5187045",
"0.5177091",
"0.517696",
"0.51765853",
"0.51691526",
"0.5166219",
"0.51557255",
"0.5154178",
"0.51472825"
] |
0.0
|
-1
|
Getters and Setters start here
|
public Node getLeft() {
return left;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"@Override\n public void get() {}",
"public void get() {\n }",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"private Get() {}",
"private Get() {}",
"public int getAge() {return age;}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"protected abstract Set method_1559();",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"public void setAge(int age) { this.age = age; }",
"@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }",
"public Student getStudent() { return student; }",
"public int getAge(){\n return age;\n }",
"private ReadProperty()\r\n {\r\n\r\n }",
"@Override\n String get();",
"@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}",
"public int getAge()\r\n {\r\n return age;\r\n }",
"@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}",
"public void setdat()\n {\n }",
"public abstract String get();",
"@Override\n\tpublic void getData() {\n\t\t\n\t}",
"public int getlife(){\r\n return life;\r\n}",
"public Book getBook() \t\t{ return this.myBook; }",
"public int getAge()\n {\n return age;\n }",
"protected static void get() {\n\t\tstepsTable.get();\n\t\tstepsTable.getWeek();\n\t\tactive.get();\n\t\tmeals.get();\n\t\taccountInfo.get();\n\t\t\n\t}",
"public int getArmadura(){return armadura;}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"protected Player getPlayer() { return player; }",
"public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"public String getAuthor(){return author;}",
"public String get();",
"String getName(){return this.name;}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"@Override\n protected void updateProperties() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public void setName(String name){this.name=name;}",
"String setValue();",
"public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}",
"public Student getStudent() {\n return student; //XXX-CHANGE-XXX\n }",
"public String get()\n {\n return this.string;\n }",
"public void setNombre(String nombre) {this.nombre = nombre;}",
"public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }",
"public Player getPlayer() { return player;}",
"public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }",
"public String getEmployee()\r\n/* 38: */ {\r\n/* 39:43 */ return this.employee;\r\n/* 40: */ }",
"public contrustor(){\r\n\t}",
"public int getAge() {\r\n return age;\r\n }",
"public int get () { return rating; }",
"public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }",
"private Response() {\n initFields();\n }",
"public int getNumber(){return number;}",
"public int getAge() {\n\t \t return age; \n\t}",
"public MusicDataAccessor() {\n\t\n\t\t// load the data into the table\n\t\tload();\n\t}",
"public String getNombre(){\n return nombre;\n }",
"public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }",
"@Override\n void init() {\n }",
"public int getID(){\r\n return this.ID;\r\n }",
"public void setBirthday() { this.birthday = birthday; }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public int getAge() {\n return age;\n }",
"public String getSex(){ //\"public\" access allows other classes to retrieve the value of \"sex\", but since there\n // is no setter it cannot be changed from outside the class = Encapsulation/Inkapsling\n return this.sex;\n }",
"public String getName(){\n return name;\n}",
"public Age getAge() {\n return age;\n }",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"@Test\n\tpublic void testGetters() {\n\t\tEngine engine = new Engine(20);\n\t\tCoordinate point = new Coordinate(5,5);\n\t\tCoordinate playerLocation = engine.getMoveableObject(0).getLocation();\n\t\tint playerX = playerLocation.getX();\n\t\tint playerY = playerLocation.getY();\n\t\tassertEquals(\"failure - didn't create coordinate x-val\", 5, point.getX(), 0.0);\n\t\tassertEquals(\"failure - didn't create coordinate y-val\", 5, point.getY(), 0.0);\n\t\tassertEquals(\"failure - didn't get player's x coordinate correctly\", 3, playerX, 0.0);\n\t\tassertEquals(\"failure - didn't get player's y coordinate correctly\", 3, playerY, 0.0);\n\t\t}",
"public String getNome () { return this.nome; }",
"public String getID(){return ID;}",
"@Test\n public void testGetters()\n {\n assertEquals(\"\",test.getPlayerName());\n assertEquals(\"UseCard\",test.toString());\n assertEquals(13,test.getCardID());\n }",
"@Override\n protected void init() {\n }",
"public static void main(String[] args) {\n Student s1 = new Student();\r\n \r\n //set the age for the student \r\n// s1.age = -500; \r\n// System.out.println(\"Age: \"+s1.age);\r\n\r\n s1.setAge(-500);\r\n System.out.println(s1.getAge()); //23 \r\n\r\n \r\n }",
"@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }",
"@java.lang.Override\n public int getAge() {\n return age_;\n }",
"@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}",
"public String get_name(){\n return _name;\n }",
"public Player getPlayer() { return player; }",
"protected int getID(){\r\n\t\treturn this.ID;\r\n\t}",
"public void setName(String name){this.name = name;}",
"private WebResponse() {\n initFields();\n }",
"private UserPrefernce(){\r\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public String getNome(){\r\n return nome;\r\n }",
"public String getName()\n {\n return name;\n}",
"public CourseMemberGet() {\n\t\tsuper();\n\t}",
"public String getName(){return this.name;}",
"public int getYearsOffice()\n {\n return yearsOffice;\n}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getName () { return this.name; }"
] |
[
"0.6717844",
"0.6596377",
"0.6484607",
"0.6295587",
"0.6247652",
"0.6247652",
"0.6231088",
"0.6215076",
"0.61850363",
"0.6122199",
"0.6108408",
"0.6073544",
"0.6051757",
"0.60449165",
"0.6032829",
"0.6022724",
"0.6004658",
"0.5951234",
"0.5916827",
"0.5916384",
"0.5893489",
"0.58838606",
"0.58764654",
"0.58566016",
"0.5846895",
"0.58413976",
"0.58384824",
"0.5825452",
"0.5820892",
"0.58189636",
"0.5811914",
"0.58098084",
"0.5800825",
"0.5800261",
"0.57979417",
"0.5789122",
"0.5788741",
"0.5788423",
"0.5783143",
"0.57796544",
"0.57657415",
"0.5749416",
"0.5746248",
"0.5745861",
"0.57449794",
"0.5737028",
"0.5733743",
"0.572117",
"0.57184637",
"0.57122767",
"0.5709411",
"0.5703151",
"0.5702917",
"0.5694438",
"0.5692429",
"0.5689963",
"0.5686054",
"0.56819385",
"0.5680116",
"0.5677467",
"0.56734866",
"0.56728905",
"0.5668628",
"0.5660969",
"0.56557953",
"0.56557953",
"0.56557953",
"0.56557953",
"0.56557953",
"0.56557953",
"0.56557953",
"0.56557953",
"0.5655199",
"0.5653883",
"0.5652734",
"0.5652097",
"0.5646025",
"0.56443614",
"0.5643854",
"0.56436735",
"0.5643278",
"0.5637057",
"0.56368804",
"0.5636521",
"0.56270105",
"0.5621335",
"0.5621278",
"0.5617515",
"0.561688",
"0.5616742",
"0.5613737",
"0.56127745",
"0.56127745",
"0.5612405",
"0.5611665",
"0.56105155",
"0.5606308",
"0.56053317",
"0.5603237",
"0.5603237",
"0.5602788"
] |
0.0
|
-1
|
Created by Guillaume on 08/08/2017. back
|
@Repository
public interface RoleRepository extends CrudRepository<Role, Long> {
Role findByRole(String name);
List<Role> findAll();
Set<Role> findAllByIdIn(List<Long> id);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n public void memoria() {\n \n }",
"public void mo4359a() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public abstract void mo70713b();",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n }",
"private void kk12() {\n\n\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"public void method_4270() {}",
"public void m23075a() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n void init() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"public void mo6081a() {\n }",
"@Override\n\tpublic void jugar() {}",
"private UsineJoueur() {}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public void mo12930a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"void berechneFlaeche() {\n\t}",
"Consumable() {\n\t}",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void init() {}",
"private final zzgy zzgb() {\n }",
"public void mo12628c() {\n }",
"@Override\n public int getOrder() {\n return 4;\n }",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public abstract void mo56925d();",
"Petunia() {\r\n\t\t}",
"private void init() {\n\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}"
] |
[
"0.57712644",
"0.56499803",
"0.5633226",
"0.560552",
"0.55612886",
"0.55612886",
"0.5554776",
"0.55452085",
"0.55351686",
"0.5525691",
"0.55143726",
"0.5501882",
"0.5468943",
"0.54507744",
"0.54494697",
"0.5441359",
"0.54318595",
"0.54116285",
"0.54073876",
"0.5400144",
"0.53974545",
"0.5339669",
"0.5331257",
"0.5330285",
"0.53239506",
"0.5310602",
"0.5296636",
"0.52572006",
"0.5244038",
"0.5239024",
"0.52388316",
"0.5198182",
"0.5180713",
"0.5177743",
"0.51613235",
"0.51587486",
"0.5156121",
"0.5156121",
"0.5149493",
"0.51353043",
"0.5134184",
"0.51299006",
"0.5124148",
"0.51211464",
"0.5104306",
"0.50919944",
"0.50905514",
"0.5090481",
"0.5086674",
"0.5081506",
"0.5079604",
"0.5079604",
"0.5079604",
"0.5079604",
"0.5079604",
"0.5079604",
"0.5079604",
"0.5070137",
"0.5062146",
"0.5062146",
"0.5062146",
"0.5062146",
"0.5062146",
"0.50611836",
"0.50592697",
"0.5051507",
"0.5051104",
"0.5050244",
"0.504204",
"0.50411105",
"0.50382406",
"0.50369596",
"0.5031058",
"0.5031058",
"0.5031058",
"0.5031058",
"0.5031058",
"0.5031058",
"0.5029959",
"0.5027074",
"0.5026643",
"0.50250465",
"0.5023146",
"0.50228006",
"0.5021923",
"0.5019758",
"0.50079936",
"0.50028616",
"0.50011224",
"0.49973506",
"0.49943054",
"0.4989595",
"0.4989311",
"0.49890465",
"0.49866354",
"0.49866354",
"0.4984384",
"0.49834466",
"0.49735257",
"0.49728644",
"0.49677157"
] |
0.0
|
-1
|
to install app instead on openings it: use App & NewCommanTimeOut instead of appPackage & appAcitivity.
|
@Test
public void clickOnGift()
{WebDriverWait wait = new WebDriverWait(driver, 60);
// driver.navigate().back();
driver.findElement(By.id("il.co.mintapp.buyme:id/skipButton")).click();
driver.findElement(By.id("il.co.mintapp.buyme:id/skipTitle")).click();
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("il.co.mintapp.buyme:id/t_title")));
List<MobileElement> category = driver.findElementsByAndroidUIAutomator("new UiSelector().resourceId(\"il.co.mintapp.buyme:id/t_title\")");
category.get(0).click();
/************scroll****************************************/
// TouchAction action=new TouchAction(driver);
// Duration threeSecondsDuration= Duration.ofSeconds(5);//AppsExamples(3);
/**************************************************************/
List<MobileElement> buisness = driver.findElementsByAndroidUIAutomator("new UiSelector().resourceId(\"il.co.mintapp.buyme:id/t_title\")");
//buisness.get(4).click();
buisness.get(buisness.size() - 1).click();
System.out.println("buisness.size() "+ buisness.size());
List<MobileElement> optionsInBuisness = driver.findElementsByAndroidUIAutomator("new UiSelector().resourceId(\"il.co.mintapp.buyme:id/businessName\")");
optionsInBuisness.get(optionsInBuisness.size() - 1).click();
System.out.println("optionsInBuisness.size() "+ optionsInBuisness.size());
WebElement price = driver.findElementByAndroidUIAutomator("new UiSelector().resourceId(\"il.co.mintapp.buyme:id/priceEditText\")"); //il.co.mintapp.buyme:id/priceEditText
price.sendKeys("100");
WebElement purchesButton = driver.findElementByAndroidUIAutomator("new UiSelector().resourceId(\"il.co.mintapp.buyme:id/purchaseButton\")"); //il.co.mintapp.buyme:id/priceEditText
purchesButton.click();
//il.co.mintapp.buyme:id/purchaseButton
// "il.co.mintapp.buyme:id/businessImage""
// System.out.println(element.get(0).getText());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void handleApplicationLaunch(Context context) {\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n\n boolean doNotRemindAgain = sharedPrefs.getBoolean(PREF_KEY_DO_NOT_REMIND_AGAIN, false);\n if (!doNotRemindAgain) {\n // Increment launch counter\n long launchCount = sharedPrefs.getLong(PREF_KEY_LAUNCH_COUNT, 0);\n launchCount++;\n Log.d(TAG, \"The application has been launched \" + launchCount + \" times.\");\n sharedPrefs.edit().putLong(PREF_KEY_LAUNCH_COUNT, launchCount).commit();\n\n // Get date of first launch\n long now = System.currentTimeMillis();\n Long dateOfFirstLaunch = sharedPrefs.getLong(PREF_KEY_DATE_OF_FIRST_LAUNCH, now);\n if (dateOfFirstLaunch == now) {\n sharedPrefs.edit().putLong(PREF_KEY_DATE_OF_FIRST_LAUNCH, now).commit();\n }\n long numberOfDaysSinceFirstLaunch = convertMillisToDays(now - dateOfFirstLaunch);\n Log.d(TAG, \"It has been \" + numberOfDaysSinceFirstLaunch + \" days since first launch\");\n\n if (numberOfDaysSinceFirstLaunch >= NUMBER_OF_DAYS_TIL_PROMPT &&\n launchCount >= NUMBER_OF_LAUNCHES_TIL_PROMPT) {\n // It's time. Ask the user to rate the app.\n showRateApplicationDialog(context, sharedPrefs);\n }\n }\n }",
"private void requestAutoStartPermission() {\n if (Build.MANUFACTURER.equals(\"OPPO\")) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.FakeActivity\")));\n } catch (Exception e) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupapp.StartupAppListActivity\")));\n } catch (Exception e1) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupmanager.StartupAppListActivity\")));\n } catch (Exception e2) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startup.StartupAppListActivity\")));\n } catch (Exception e3) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startupapp.StartupAppListActivity\")));\n } catch (Exception e4) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startupmanager.StartupAppListActivity\")));\n } catch (Exception e5) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startsettings\")));\n } catch (Exception e6) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupapp.startupmanager\")));\n } catch (Exception e7) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupmanager.startupActivity\")));\n } catch (Exception e8) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.startupapp.startupmanager\")));\n } catch (Exception e9) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.privacypermissionsentry.PermissionTopActivity.Startupmanager\")));\n } catch (Exception e10) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.privacypermissionsentry.PermissionTopActivity\")));\n } catch (Exception e11) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.FakeActivity\")));\n } catch (Exception e12) {\n e12.printStackTrace();\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }",
"@Override\n public void success() {\n XSPSystem.getInstance().installApp(PjjApplication.App_Path + appName);\n }",
"void installApp(String appPath);",
"private void addApp(RifidiApp app) {\n\t\tsynchronized (apps) {\n\t\t\tif (apps.containsValue(app))\n\t\t\t\treturn;\n\t\t\tint appID = serviceCounter++;\n\t\t\tapps.put(appID, app);\n\t\t\tstartApp(appID, true);\n\t\t}\n\t}",
"private void addAutoStartupswitch() {\n\n try {\n Intent intent = new Intent();\n String manufacturer = android.os.Build.MANUFACTURER .toLowerCase();\n\n switch (manufacturer){\n case \"xiaomi\":\n intent.setComponent(new ComponentName(\"com.miui.securitycenter\", \"com.miui.permcenter.autostart.AutoStartManagementActivity\"));\n break;\n case \"oppo\":\n intent.setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.StartupAppListActivity\"));\n break;\n case \"vivo\":\n intent.setComponent(new ComponentName(\"com.vivo.permissionmanager\", \"com.vivo.permissionmanager.activity.BgStartUpManagerActivity\"));\n break;\n case \"Letv\":\n intent.setComponent(new ComponentName(\"com.letv.android.letvsafe\", \"com.letv.android.letvsafe.AutobootManageActivity\"));\n break;\n case \"Honor\":\n intent.setComponent(new ComponentName(\"com.huawei.systemmanager\", \"com.huawei.systemmanager.optimize.process.ProtectActivity\"));\n break;\n case \"oneplus\":\n intent.setComponent(new ComponentName(\"com.oneplus.security\", \"com.oneplus.security.chainlaunch.view.ChainLaunchAppListActivity\"));\n break;\n }\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() > 0) {\n startActivity(intent);\n }\n } catch (Exception e) {\n Log.e(\"exceptionAutostarti2pd\" , String.valueOf(e));\n }\n\n }",
"@Override\n\tpublic void addNewInstallApps(List<ApplicationInfo> apps, String packageName) {\n ALog.d(\"Enter\");\n\n\n\t\tfor(ApplicationInfo info : apps){\n\t\t\tint[] pageInfo = LauncherProviderHelper.findVacantCell4AppAdd(getBaseContext());\n\t\t\tif (pageInfo == null) {\n\t\t\t\tALog.d(\"can't find cell for new app\");\n\t\t\t\tcontinue;\n\t\t\t} \n\t\t\tint page = pageInfo[0];\n\t\t\tint cellX = pageInfo[1];\n\t\t\tint cellY = pageInfo[2];\n\t\t\tinfo.screen = page;\n\t\t\tinfo.cellX = cellX;\n\t\t\tinfo.cellY = cellY;\n\t\t\tinfo.spanX = 1;\n\t\t\tinfo.spanY = 1;\n\t\t\tBaseLauncherModel.addOrMoveItemInDatabase(getBaseContext(), info, LauncherSettings.Favorites.CONTAINER_DESKTOP);\n\t\t\t\n\t\t\tView view = mWorkspace.createViewByItemInfo(info);\n\t\t\tif (view == null)\n\t\t\t\treturn;\n\t\t\t((Workspace)mWorkspace).addInScreen(view, page, cellX, cellY, 1, 1);\n\t\t\t\n\t\t\t//FIXME 在编辑模式下可能会有刷新的问题\n\t\t}\n ALog.d(\"Exit\");\n\t}",
"public static void install(android.content.Context r11) {\n /*\n r9 = 20;\n r10 = 4;\n r7 = \"MultiDex\";\n r8 = \"install\";\n android.util.Log.i(r7, r8);\n r7 = IS_VM_MULTIDEX_CAPABLE;\n if (r7 == 0) goto L_0x001a;\n L_0x0010:\n r7 = \"MultiDex\";\n r8 = \"VM has multidex support, MultiDex support library is disabled.\";\n android.util.Log.i(r7, r8);\n L_0x0019:\n return;\n L_0x001a:\n r7 = android.os.Build.VERSION.SDK_INT;\n if (r7 >= r10) goto L_0x004c;\n L_0x001e:\n r7 = new java.lang.RuntimeException;\n r8 = new java.lang.StringBuilder;\n r8.<init>();\n r9 = \"Multi dex installation failed. SDK \";\n r8 = r8.append(r9);\n r9 = android.os.Build.VERSION.SDK_INT;\n r8 = r8.append(r9);\n r9 = \" is unsupported. Min SDK version is \";\n r8 = r8.append(r9);\n r8 = r8.append(r10);\n r9 = \".\";\n r8 = r8.append(r9);\n r8 = r8.toString();\n r7.<init>(r8);\n throw r7;\n L_0x004c:\n r1 = getApplicationInfo(r11);\t Catch:{ Exception -> 0x0064 }\n if (r1 == 0) goto L_0x0019;\n L_0x0052:\n r8 = installedApk;\t Catch:{ Exception -> 0x0064 }\n monitor-enter(r8);\t Catch:{ Exception -> 0x0064 }\n r0 = r1.sourceDir;\t Catch:{ all -> 0x0061 }\n r7 = installedApk;\t Catch:{ all -> 0x0061 }\n r7 = r7.contains(r0);\t Catch:{ all -> 0x0061 }\n if (r7 == 0) goto L_0x0093;\n L_0x005f:\n monitor-exit(r8);\t Catch:{ all -> 0x0061 }\n goto L_0x0019;\n L_0x0061:\n r7 = move-exception;\n monitor-exit(r8);\t Catch:{ all -> 0x0061 }\n throw r7;\t Catch:{ Exception -> 0x0064 }\n L_0x0064:\n r3 = move-exception;\n r7 = \"MultiDex\";\n r8 = \"Multidex installation failure\";\n android.util.Log.e(r7, r8, r3);\n r7 = new java.lang.RuntimeException;\n r8 = new java.lang.StringBuilder;\n r8.<init>();\n r9 = \"Multi dex installation failed (\";\n r8 = r8.append(r9);\n r9 = r3.getMessage();\n r8 = r8.append(r9);\n r9 = \").\";\n r8 = r8.append(r9);\n r8 = r8.toString();\n r7.<init>(r8);\n throw r7;\n L_0x0093:\n r7 = installedApk;\t Catch:{ all -> 0x0061 }\n r7.add(r0);\t Catch:{ all -> 0x0061 }\n r7 = android.os.Build.VERSION.SDK_INT;\t Catch:{ all -> 0x0061 }\n if (r7 <= r9) goto L_0x00ec;\n L_0x009c:\n r7 = \"MultiDex\";\n r9 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0061 }\n r9.<init>();\t Catch:{ all -> 0x0061 }\n r10 = \"MultiDex is not guaranteed to work in SDK version \";\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r10 = android.os.Build.VERSION.SDK_INT;\t Catch:{ all -> 0x0061 }\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r10 = \": SDK version higher than \";\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r10 = 20;\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r10 = \" should be backed by \";\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r10 = \"runtime with built-in multidex capabilty but it's not the \";\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r10 = \"case here: java.vm.version=\\\"\";\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r10 = \"java.vm.version\";\n r10 = java.lang.System.getProperty(r10);\t Catch:{ all -> 0x0061 }\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r10 = \"\\\"\";\n r9 = r9.append(r10);\t Catch:{ all -> 0x0061 }\n r9 = r9.toString();\t Catch:{ all -> 0x0061 }\n android.util.Log.w(r7, r9);\t Catch:{ all -> 0x0061 }\n L_0x00ec:\n r5 = r11.getClassLoader();\t Catch:{ RuntimeException -> 0x00fe }\n if (r5 != 0) goto L_0x010b;\n L_0x00f2:\n r7 = \"MultiDex\";\n r9 = \"Context class loader is null. Must be running in test mode. Skip patching.\";\n android.util.Log.e(r7, r9);\t Catch:{ all -> 0x0061 }\n monitor-exit(r8);\t Catch:{ all -> 0x0061 }\n goto L_0x0019;\n L_0x00fe:\n r3 = move-exception;\n r7 = \"MultiDex\";\n r9 = \"Failure while trying to obtain Context class loader. Must be running in test mode. Skip patching.\";\n android.util.Log.w(r7, r9, r3);\t Catch:{ all -> 0x0061 }\n monitor-exit(r8);\t Catch:{ all -> 0x0061 }\n goto L_0x0019;\n L_0x010b:\n clearOldDexDir(r11);\t Catch:{ Throwable -> 0x0131 }\n L_0x010e:\n r2 = new java.io.File;\t Catch:{ all -> 0x0061 }\n r7 = r1.dataDir;\t Catch:{ all -> 0x0061 }\n r9 = SECONDARY_FOLDER_NAME;\t Catch:{ all -> 0x0061 }\n r2.<init>(r7, r9);\t Catch:{ all -> 0x0061 }\n r7 = 0;\n r4 = android.support.multidex.MultiDexExtractor.load(r11, r1, r2, r7);\t Catch:{ all -> 0x0061 }\n r7 = checkValidZipFiles(r4);\t Catch:{ all -> 0x0061 }\n if (r7 == 0) goto L_0x013c;\n L_0x0122:\n installSecondaryDexes(r5, r2, r4);\t Catch:{ all -> 0x0061 }\n L_0x0125:\n monitor-exit(r8);\t Catch:{ all -> 0x0061 }\n r7 = \"MultiDex\";\n r8 = \"install done\";\n android.util.Log.i(r7, r8);\n goto L_0x0019;\n L_0x0131:\n r6 = move-exception;\n r7 = \"MultiDex\";\n r9 = \"Something went wrong when trying to clear old MultiDex extraction, continuing without cleaning.\";\n android.util.Log.w(r7, r9, r6);\t Catch:{ all -> 0x0061 }\n goto L_0x010e;\n L_0x013c:\n r7 = \"MultiDex\";\n r9 = \"Files were not valid zip files. Forcing a reload.\";\n android.util.Log.w(r7, r9);\t Catch:{ all -> 0x0061 }\n r7 = 1;\n r4 = android.support.multidex.MultiDexExtractor.load(r11, r1, r2, r7);\t Catch:{ all -> 0x0061 }\n r7 = checkValidZipFiles(r4);\t Catch:{ all -> 0x0061 }\n if (r7 == 0) goto L_0x0154;\n L_0x0150:\n installSecondaryDexes(r5, r2, r4);\t Catch:{ all -> 0x0061 }\n goto L_0x0125;\n L_0x0154:\n r7 = new java.lang.RuntimeException;\t Catch:{ all -> 0x0061 }\n r9 = \"Zip files were not valid.\";\n r7.<init>(r9);\t Catch:{ all -> 0x0061 }\n throw r7;\t Catch:{ all -> 0x0061 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.multidex.MultiDex.install(android.content.Context):void\");\n }",
"void installMarathonApps();",
"public void startApp()\r\n\t{\n\t}",
"private void startAppLockWorker() {\n\n OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(AppLockWorker.class).build();\n WorkManager.getInstance(getApplicationContext()).enqueueUniqueWork(Constants.APPLOCKWORK, ExistingWorkPolicy.REPLACE,oneTimeWorkRequest);\n }",
"private void loadApps() {\n\n Intent i = new Intent(Intent.ACTION_MAIN, null);\n i.addCategory(Intent.CATEGORY_LAUNCHER);\n\n switch ((int) tabId) {\n case 1:\n // Tab 1 is a special tab and includes all except for the ones in other tabs\n // Retrieve all installed apps on the device\n List<ResolveInfo> availableActivities = mPacMan.queryIntentActivities(i, 0);\n\n // And only add those that are not in the database\n for (int j = 0; j < availableActivities.size(); j++) {\n ResolveInfo ri = availableActivities.get(j);\n\n if (sqlHelper.containsApp(ri.activityInfo.name))\n continue;\n\n AppDetail app = new AppDetail();\n app.label = ri.loadLabel(mPacMan);\n app.packageName = ri.activityInfo.packageName;\n app.activityName = ri.activityInfo.name;\n\n\n // Load the icon later in an async task.\n app.icon = null;\n\n appsList.add(app);\n }\n break;\n default:\n // All other tabs just query the apps from the database\n List<AppTable> apps = sqlHelper.getAppsForTab(tabId);\n for (AppTable app : apps) {\n\n boolean success = addAppToList(app);\n // If the app could not be added then it was probably uninstalled,\n // so we have to remove it from the database\n if (!success) {\n Log.d(\"DB\", \"Removing app \" + app.getPackageName() + \" from db\");\n sqlHelper.removeAppFromTab(app);\n }\n }\n\n // show the empty category notice if this tab is empty\n if (apps.size() == 0) {\n showEmptyCategoryNotice();\n }\n }\n }",
"private Intent m34055b(Context context) {\n Intent intent = new Intent();\n String str = \"package\";\n intent.putExtra(str, context.getPackageName());\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setData(Uri.fromParts(str, context.getPackageName(), null));\n String str2 = \"com.huawei.systemmanager\";\n intent.setClassName(str2, \"com.huawei.permissionmanager.ui.MainActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.systemmanager.addviewmonitor.AddViewMonitorActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(str2, \"com.huawei.notificationmanager.ui.NotificationManagmentActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }",
"void launchApp();",
"private void loadApps() {\n\t\tIntent mainIntent = new Intent(Intent.ACTION_MAIN, null);\n\t\tmainIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n\t\tmApps = getPackageManager().queryIntentActivities(mainIntent, 0);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);\n\n setContentView(R.layout.main);\n\n getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,\n R.layout.window_title);\n submitButton = (Button) findViewById(R.id.submitButton1);\n passwordFeild = (EditText) findViewById(R.id.passwordField1);\n //cancelButton = (Button) findViewById(R.id.cancleButton1);\n submitButton.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n \tpawordCursor = DBUttiles.getDBUttile(getApplicationContext())\n \t\t\t\t.selectPASSWORD();\n \tif (pawordCursor\n\t\t\t\t\t\t.getString(1)\n\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t.equals(passwordFeild.getText().toString()\n\t\t\t\t\t\t\t\t.trim())){\n \t\tCursor appListData = DBUttiles.getDBUttile(getApplicationContext())\n .selectAllLockApps();\n String packageName = getIntent().getPackage();\n ActivityManager am = (ActivityManager) getApplicationContext()\n .getSystemService(ACTIVITY_SERVICE);\n //String packageName = am.getRunningTasks(1).get(0).baseActivity\n // .getPackageName();\n //Toast.makeText(getApplicationContext(), \"Activity Triggrd true\"+packageName,3000).show();\n int i = 0;\n while (appListData.isAfterLast() == false) {\n \n if(packageName.equals(appListData.getString(2))){\n //Toast.makeText(getApplicationContext(), packageName+\"::Inside Cond::\"+appListData.getString(2),3000).show();\n appName = appListData.getString(1);\n break;\n }\n \n appListData.moveToNext();\n i++;\n }\n\n appListData.close();\n DBUttiles.getDBUttile(getApplicationContext()).updateFlage(\n appName, packageName, \"false\"); \n //Toast.makeText(getApplicationContext(), \"class Name \", 3000).show(); \n PackageManager pmi = getPackageManager();\n Intent intent = null;\n \t intent = pmi.getLaunchIntentForPackage(packageName); \n \t if (intent != null){\n \t startActivity(intent);\n \t }\t \n System.out.println(\"event called\"); \t\t\n \t}else{\n \t\tToast.makeText(getApplicationContext(), \"Enter Correct Password\", 3000).show();\n \t}\n \n }\n });\n }",
"public synchronized void notifyForegroundApp(String packageName) {\n if (packageName != null) {\n if (!packageName.equals(this.mLatestPgName)) {\n NeuronAppRecord app = (NeuronAppRecord) this.mAppUsageMap.get(packageName);\n if (app == null) {\n app = new NeuronAppRecord(packageName);\n app.dataList.pushToHead(new AppDataNode());\n this.mAppUsageMap.put(packageName, app);\n }\n long currentTime = System.currentTimeMillis();\n app.lastestResumeTime.pushToHead(Long.valueOf(currentTime));\n AppDataNode latestAppData = (AppDataNode) app.dataList.getLatest();\n Long latestPause = (Long) app.latestPauseTime.getLatest();\n if (!(latestAppData == null || latestPause == null || latestPause.longValue() <= 0)) {\n long bgTime = currentTime - latestPause.longValue();\n if (bgTime < latestAppData.minBgTime) {\n latestAppData.minBgTime = bgTime;\n }\n if (bgTime > latestAppData.maxBgTime) {\n latestAppData.maxBgTime = bgTime;\n }\n latestAppData.totalBgTime += bgTime;\n }\n NeuronAppRecord removedApp = (NeuronAppRecord) this.mAppUsageList.pushToHead(app);\n if (removedApp != null) {\n this.mAppUsageMap.remove(removedApp.packageName);\n }\n pauseLatestApp(currentTime);\n this.mLatestAppUsage = app;\n this.mLatestPgName = packageName;\n }\n }\n }",
"public void Launch_app() {\n\t\tDesiredCapabilities caps = new DesiredCapabilities();\r\n\t\tcaps.setCapability(\"deviceName\", \"My Phone\");\r\n\t\tcaps.setCapability(\"udid\", \"LE66A06190140096\"); //Give Device ID of your mobile phone\r\n\t\t\r\n\t\t/* caps.setCapability(\"udid\", \"emulator-5556\"); //Give Device ID of your mobile phone\r\n\t\t caps.setCapability(\"app\", \"C:\\\\Users\\\\Blue Otter HP2\\\\Downloads\\\\xemoto_staging_v1.0.0.apk\"); \r\n\t\t caps.setCapability(\"appWaitActivity\", \"*\");\r\n\t\t caps.setCapability(MobileCapabilityType.AUTOMATION_NAME, \"UiAutomator2\");*/\r\n\t\t\r\n\t\tcaps.setCapability(\"platformName\", \"Android\");\r\n\t\tcaps.setCapability(\"platformVersion\", \"6.0\");\r\n\t\r\n\t\tcaps.setCapability(\"appPackage\", \"org.blueotter.motone\");\r\n\t\tcaps.setCapability(\"appActivity\", \"org.blueotter.motone.feature.main.view.ActivityMain\"); \r\n\t\t\r\n\t\tcaps.setCapability(\"noReset\", \"true\");\r\n\t\t\r\n\t\t//Instantiate Appium Driver\r\n\t\ttry {\r\n\t\t\t\t driver = new AndroidDriver<MobileElement>(new URL(\"http://127.0.0.1:4723/wd/hub\"), caps);\t\t\r\n\r\n\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS) ;\r\n\t\tSystem.out.println(\"Launch motone successful!\");\r\n\r\n \t}",
"@Override\n\tpublic void onConnCreate() {\n\t\tapp.start();\n setEnabled( false );\n\t}",
"public void makegoaway(){\n if (!started_app){ // added to prevent running two copies when user clicks to skip\n // and when time runs out for splash\n Intent mainIntent = new Intent(SplashActivity.this,MainActivity.class);\n SplashActivity.this.startActivity(mainIntent);\n SplashActivity.this.finish();\n started_app=true;\n }\n }",
"@Override\n\t\t public void launchApp(Context context, UMessage msg) {\n\t\t\t\t Toast.makeText(context, \"launchApp:\"+msg.custom, Toast.LENGTH_LONG).show();\n\t\t \t Intent it=new Intent(getApplicationContext(),MainActivity.class);//MenuActivity_VC\n\t\t \t\t it.putExtra(\"notify\", msg.custom);\n\t\t \t\t startActivity(it);\n\t\t\t }",
"private void forceRestart() {\n\n/*\t\tAlarmManager alarmMgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n\t\tlong timeMillis = SystemClock.elapsedRealtime() + 1000; //1 second\n\t\tIntent intent = getPackageManager().getLaunchIntentForPackage(getPackageName());\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\talarmMgr.set(AlarmManager.ELAPSED_REALTIME, timeMillis, PendingIntent.getActivity(this, 0, intent, 0));*/\n\t\tnew Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}",
"protected void NewApp(String name, String code, String file, String web,\n String dir) {\n String webRoot = UIHelper.getStoragePath(AppManagerActivity.this);\n webRoot = webRoot + constants.SD_CARD_TBSSOFT_PATH3 + \"/\";\n File newfile = new File(webRoot + dir + \"/\" + file);\n/*\t\tFile newfile2 = new File(webRoot + dir + \"/\"\n + constants.WEB_CONFIG_FILE_NAME);*/\n try {\n newfile.createNewFile();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n\n this.IniFile.writeIniString(webRoot + dir + \"/\" + file, \"TBSAPP\",\n \"defaultUrl\", web);\n this.IniFile.writeIniString(webRoot + dir + \"/\" + file, \"TBSAPP\", \"AppCode\",\n code);\n this.IniFile.writeIniString(webRoot + dir + \"/\" + file, \"TBSAPP\", \"AppName\",\n name);\n this.IniFile.writeIniString(webRoot + dir + \"/\" + file, \"TBSAPP\", \"AppVersion\",\n \"1.0\");\n AppManagerActivity.myThread handThread = new AppManagerActivity.myThread(dir, file);\n handThread.run();\n }",
"public static void askDownloadExistingApps(final Activity activity, final ArrayList<ObjectDetail> missing) {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity);\n\n alertDialogBuilder.setTitle(activity.getString(R.string.restore_apps_title));\n\n String msg = String.format(activity.getString(R.string.restore_apps_msg), missing.size());\n alertDialogBuilder\n .setMessage(msg)\n .setCancelable(false)\n .setNeutralButton(activity.getResources().getString(R.string.restore_disable_syncs), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n //disable syncs\n Utils.setSyncDisabled(activity, true);\n //TODO - note this leaves apps in a weird state. Will show apps as local to device but no option\n //to install, etc...\n }\n })\n .setNegativeButton(activity.getResources().getString(R.string.restore_no), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n GCESync.startActionUpdateLocal(activity, null, null);\n }\n })\n .setPositiveButton(activity.getResources().getString(R.string.restore_yes), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n //build the install list...\n ArrayList<String> apklist = new ArrayList<String>();\n for (int i=0; i < missing.size(); i++) {\n apklist.add(missing.get(i).pkg);\n }\n //let the updates go through\n GCESync.startActionUpdateLocal(activity, null, null);\n //and kick off the batch install\n confirmBatchOperation(activity, apklist, true);\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }",
"public void onInstalledApplication(final boolean show) {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tif(loadingDialog!=null){\n\t\t\t\t\tloadingDialog.dismiss();\n\t\t\t\t}\n\t\t\t\tif (show) {\n\t\t\t\t\tuninstall.setEnabled(true);\n\t\t\t\t\tinstall.setEnabled(false);\n\t\t\t\t\tchangeStatus(getString(R.string.installed_application_found));\n\t\t\t\t} else {\n\t\t\t\t\tuninstall.setEnabled(false);\n\t\t\t\t\tinstall.setEnabled(true);\n\t\t\t\t\tchangeStatus(getString(R.string.no_installed_application));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void startApp() {\n\n\t\tboolean isContinue = true;\n\t\tint i = 0;\n\t\twhile (isContinue) {\n\t\t\ti = displayAppMenu();\n\t\t\texecuteMenuItem(i);\n\n\t\t\tif (i == APP_EXIT) {\n\t\t\t\tisContinue = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void addVoiceApp() {\n\t\tApplicationInfo application = new ApplicationInfo();\r\n\t\tapplication.title = \"Camera\";\r\n application.icon = context.getResources().getDrawable(R.drawable.ic_camera_50);\r\n Intent intent=new Intent(context,CameraActivity.class);\r\n application.voiceTag=true;\r\n application.setIntent(intent);\r\n mApplications.add(application);\r\n application.setIndex(mApplications.size()-1); \r\n \r\n\t\tapplication = new ApplicationInfo();\r\n\t\tapplication.title = \"Google\";\r\n\t\tintent=new Intent(\"com.google.glass.action.START_VOICE_SEARCH_ACTIVITY\");\r\n\t\tapplication.setIntent(intent);\r\n\t\tapplication.voiceTag=true;\r\n\t\tapplication.icon = context.getResources().getDrawable(R.drawable.ic_search_50);\r\n mApplications.add(application);\r\n application.setIndex(mApplications.size()-1); \r\n\t}",
"protected void onAppsChanged() {\n\t\t\n\t}",
"public void retry(){\n _activity.finish();\n Intent i = _activity.getBaseContext().getPackageManager()\n .getLaunchIntentForPackage(_activity.getBaseContext().getPackageName());\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n _activity.startActivity(i);\n }",
"private void restartApp() {\n Intent intent = new Intent(application, Launcher.class);\n int mPendingIntentId = 123;\n PendingIntent mPendingIntent =\n PendingIntent.getActivity(\n application,\n mPendingIntentId,\n intent,\n PendingIntent.FLAG_CANCEL_CURRENT\n );\n AlarmManager mgr = (AlarmManager) application.getSystemService(Context.ALARM_SERVICE);\n if (mgr != null) {\n mgr.set(AlarmManager.RTC, System.currentTimeMillis() + 100, mPendingIntent);\n }\n System.exit(0);\n }",
"private void openApp(String packageName) {\n final String launcherPackage = packageName;\n assertThat(launcherPackage, notNullValue());\n mDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT);\n\n // Launcher app\n Context context = InstrumentationRegistry.getContext();\n final Intent intent = context.getPackageManager()\n .getLaunchIntentForPackage(packageName);\n\n // Clear out any previous instances\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n\n // Wait for the app to appear\n mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), LAUNCH_TIMEOUT);\n }",
"public boolean notifyXAITUpdate(OcapAppAttributes[] newApps);",
"public void allow_Me_To_App(){\n\ttry{\n\tdriver.findElement(clickonOkButton).click();\n\tdriver.findElement(clickOn1stAllowButton).click();\n\tdriver.findElement(clickon2ndAllowButton).click();\n\tdriver.findElement(clickon3rdAllowButton).click();\n\tReusableMethod.waitForPageToLoad(MobileBy.AndroidUIAutomator(\"text(\\\"Let me explore\\\")\"));\n\tdriver.findElement(clickOnLetmeExploreButton).click();\n\tdriver.findElement(clickonOkbutton).click();\n\tlogger.info(\"=====================App Launch sucessfully=====================\");\n\tReusableMethod.implicitWait(10);\n\t\n\t}catch(Exception e){\n\tlogger.error(\"Element Not found Exception ...\",e);\n\t}\n\t\t}",
"public static void ocultar() {\n\t\t\ttry{\n\t\t\t //REQUIRES ROOT\n\t\t\t Build.VERSION_CODES vc = new Build.VERSION_CODES();\n\t\t\t Build.VERSION vr = new Build.VERSION();\n\t\t\t String ProcID = \"79\"; //HONEYCOMB AND OLDER\n\t\t\t \n\t\t\t //v.RELEASE //4.0.3\n\t\t\t if(vr.SDK_INT >= vc.ICE_CREAM_SANDWICH){\n\t\t\t ProcID = \"42\"; //ICS AND NEWER\n\t\t\t }\t\t\t \n\t\t\t \n\t\t\t //REQUIRES ROOT\n\t\t\t Process proc = Runtime.getRuntime().exec(new String[]{\"su\",\"-c\",\"service call activity \"+ ProcID +\" s16 com.android.systemui\"}); //WAS 79\n\t\t\t proc.waitFor();\n\t\t\t \n\t\t\t}catch(Exception ex){\n\t\t\t //Toast.makeText(getApplicationContext(), ex.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}",
"public void installApk(String filename) {\n // systemLib.Installapk(filename);\n // if (isregister == false) {\n // isregister = true;\n // IntentFilter intentFilter = new IntentFilter(MyIntent.ACTION_INSTALL_BEGIN);\n // intentFilter.addAction(MyIntent.ACTION_INSTALL_END);\n // mContext.registerReceiver(mReceiver, intentFilter);\n // }\n // //start the service\n // Intent startservice = new Intent();\n // startservice.setAction(MyIntent.ACTION_PROXY);\n // startservice.putExtra(MyIntent.EXTRA_OPERATION, MyIntent.EXTRA_INSTALL);\n // startservice.putExtra(MyIntent.EXTRA_ARG1, filename);\n // Log.print(\"startservice intent is \" + startservice);\n // mContext.startService(startservice);\n }",
"public void onAppManagerReady() {\n/* mAppList = mAppManager.getHouseApplications();\n if (mAppList.size() == 0) {\n return;\n }\n mFirstApp = mAppList.get(0);\n mFirstAppIcon.setImageResource(R.drawable.house_first);\n mFirstAppLabel.setText(mFirstApp.getTitle());\n Log.d(TAG, mAppList.toString());\n sortByInstallTime(mAppList);*/\n \n mTempAppList.clear();\n String[] labelArray = getResources().getStringArray(R.array.scenario_array);\n Log.d(TAG, \"titles:\"+labelArray.toString());\n for (int i = 0; i < labelArray.length; i++) {\n ApplicationInfo ai = new ApplicationInfo();\n ai.mIcon = getResources().getDrawable(mTempResIds[i]);\n ai.mTitle = labelArray[i];\n mTempAppList.add(ai);\n }\n \n mFirstApp = mTempAppList.get(0);\n mFirstAppIcon.setImageResource(R.drawable.house_first);\n mFirstAppLabel.setText(mFirstApp.getTitle());\n Iterator<ApplicationInfo> iter = mTempAppList.iterator();\n while (iter.hasNext()) {\n ApplicationInfo app = iter.next();\n if (app.mTitle.equals(mFirstApp.mTitle)) {\n iter.remove();\n }\n }\n \n mAdapter = new CustomApplicationsAdapter(this, mTempAppList);\n\n mGrid.setAdapter(mAdapter);\n mGrid.setSelection(0);\n mGrid.setOnItemClickListener(new OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n \tIntent intent = new Intent();\n \tintent.setClass(SmartAppsGridActivity.this, SmartDetialActivity.class);\n \tintent.putExtra(\"title\", mTempAppList.get(position).mTitle);\n \tstartActivity(intent);\n// Toast.makeText(getApplicationContext(), R.string.alert, Toast.LENGTH_SHORT).show();\n// mAppList.get(position).startApplication(HouseAppsGridActivity.this);\n }\n });\n }",
"static void m13805a(Context context, String applicationId) {\n if (context == null || applicationId == null) {\n throw new IllegalArgumentException(\"Both context and applicationId must be non-null\");\n }\n try {\n C6709b identifiers = C6709b.m13508a(context);\n SharedPreferences preferences = context.getSharedPreferences(\"com.facebook.sdk.attributionTracking\", 0);\n StringBuilder sb = new StringBuilder();\n sb.append(applicationId);\n sb.append(\"ping\");\n String pingKey = sb.toString();\n long lastPing = preferences.getLong(pingKey, 0);\n GraphRequest publishRequest = GraphRequest.m12875a((AccessToken) null, String.format(\"%s/activities\", new Object[]{applicationId}), C6605k.m13113a(C6606a.MOBILE_INSTALL_EVENT, identifiers, C6638q.m13213a(context), m13807a(context), context), (C6545b) null);\n if (lastPing == 0) {\n C6817z b = publishRequest.mo19680b();\n Editor editor = preferences.edit();\n editor.putLong(pingKey, System.currentTimeMillis());\n editor.apply();\n }\n } catch (JSONException e) {\n throw new FacebookException(\"An error occurred while publishing install.\", e);\n } catch (Exception e2) {\n C6694S.m13422a(\"Facebook-publish\", e2);\n }\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t System.out.println(\"URL APP----------:\" + getIntent().getExtras().getString(\"urlApp\"));\r\n\t\tinstallApp(getIntent().getExtras().getString(\"urlApp\"));\r\n\t}",
"private void intializeAppiumDriver() {\n File app = new File(\"src/main/resources\", CommonUtils.getCentralData(\"App\"));\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, CommonUtils.getCentralData(\"PlatformName\"));\n capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, CommonUtils.getCentralData(\"PlatformVersion\"));\n capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, CommonUtils.getCentralData(\"DeviceName\"));\n if (IS_ANDROID) {\n capabilities.setCapability(APPLICATION_NAME, app.getAbsolutePath());\n capabilities.setCapability(APP_PACKAGE, CommonUtils.getCentralData(\"AppPackage\"));\n capabilities.setCapability(APP_ACTIVITY, CommonUtils.getCentralData(\"AppActivity\"));\n }\n if (IS_IOS) {\n capabilities.setCapability(AUTOMATION_NAME, IOS_XCUI_TEST);\n capabilities.setCapability(\"app\", app.getAbsolutePath());\n }\n capabilities.setCapability(FULL_RESET, CommonUtils.getCentralData(\"FullReset\"));\n capabilities.setCapability(NO_RESET, CommonUtils.getCentralData(\"NoReset\"));\n capabilities.setCapability(\"udid\", CommonUtils.getCentralData(\"UDID\"));\n capabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, CommonUtils.getCentralData(\"WaitTimeoutInSeconds\"));\n\n try {\n driver = new AppiumDriver(new URL(CommonUtils.getCentralData(\"URL\")), capabilities);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }",
"public void createLauncherShortcut(Context context){\n \n Log.d(\"ManagerPreferences\", \"Creating Icon \" + Constants.APTOIDE_CLASS_NAME);\n \n Intent shortcutIntent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());\n //\t\tshortcutIntent.putExtra(context.getPackageName(), context.getString(R.string.description));\n \n final Intent intent = new Intent();\n intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);\n \n intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, ApplicationAptoide.MARKETNAME);\n \n Parcelable iconResource;\n try{\n \ticonResource = Intent.ShortcutIconResource.fromContext(context, context.getResources().getIdentifier(\"icon_\" + ApplicationAptoide.BRAND,\"drawable\",context.getPackageName()));\n }catch(Exception e){\n \te.printStackTrace();\n \ticonResource = Intent.ShortcutIconResource.fromContext(context, context.getResources().getIdentifier(\"icon_brand_aptoide\",\"drawable\",context.getPackageName()));\n }\n intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource);\n intent.putExtra(\"duplicate\", false);\n intent.setAction(\"com.android.launcher.action.INSTALL_SHORTCUT\");\n context.sendBroadcast(intent);\n }",
"public static String openApkAndUpdatePackage(String fileName, Context mContext) {\n File file = new File(mContext.getExternalFilesDir(null), fileName);\n Intent unKnownSourceIntent = new Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES).setData(Uri.parse(String.format(\"package:%s\", mContext.getPackageName())));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n if (!mContext.getPackageManager().canRequestPackageInstalls()) {\n ((Activity) mContext).startActivityForResult(unKnownSourceIntent, OPEN_APK_UPDATE_PACKAGE_CODE);\n } else {\n Uri fileUri = FileProvider.getUriForFile(mContext, mContext.getPackageName() + \".provider\", file);\n Intent intent = new Intent(Intent.ACTION_VIEW, fileUri);\n intent.putExtra(Intent.EXTRA_NOT_UNKNOWN_SOURCE, true);\n intent.setDataAndType(fileUri, \"application/vnd.android.package-archive\");\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n mContext.startActivity(intent);\n }\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n Intent intent1 = new Intent(Intent.ACTION_INSTALL_PACKAGE);\n Uri uri = FileProvider.getUriForFile(mContext, mContext.getPackageName() + \".provider\", file);\n mContext.grantUriPermission(mContext.getPackageName(), uri, Intent.FLAG_GRANT_READ_URI_PERMISSION);\n mContext.grantUriPermission(mContext.getPackageName(), uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n intent1.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent1.setDataAndType(uri, \"application/*\");\n intent1.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent1.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n mContext.startActivity(intent1);\n } else {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n Uri uri = Uri.fromFile(file);\n intent.setDataAndType(uri, \"application/vnd.android.package-archive\");\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(intent);\n }\n return fileName;\n }",
"public final void restartApp() {\r\n Intent intent = new Intent(getApplicationContext(), SplashActivity.class);\r\n intent.addFlags(32768);\r\n intent.addFlags(268435456);\r\n startActivity(intent);\r\n }",
"protected void pauseApp() {\n\t\t\r\n\t}",
"public void onClick2(View v) {\n\n\n PackageManager pm = getPackageManager();\n Intent intent = pm.getLaunchIntentForPackage(\"com.lee.test\");\n\n if (intent != null) {\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }else {\n Toast.makeText(MainActivity.this,\"空intent\",Toast.LENGTH_SHORT).show();\n }\n\n\n }",
"private Intent m34059f(Context context) {\n Intent intent = new Intent(\"com.meizu.safe.security.SHOW_APPSEC\");\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setComponent(new ComponentName(\"com.meizu.safe\", \"com.meizu.safe.security.AppSecActivity\"));\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }",
"public void sendAppInfo(final Bundle appInfo)\n {\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.sendAppInfo(appInfo);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }",
"private void showOrLoadApplications() {\n //nocache!!\n GetAppList getAppList = new GetAppList();\n if (plsWait == null && (getAppList.getStatus() == AsyncTask.Status.PENDING || getAppList.getStatus() == AsyncTask.Status.FINISHED)) {\n getAppList.setContext(this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }\n }",
"@Override\n protected void appStart() {\n }",
"private static boolean openChanalyzer(App app) throws Exception {\n\r\n boolean appOpened = false;\r\n try {\r\n\r\n\r\n while (!appOpened) {\r\n\r\n app.open(\"Chanalyzer.exe\");\r\n app.focus(\"Chanalyzer.exe\");\r\n sleep(10000);\r\n if (app.isRunning())\r\n appOpened = true;\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return appOpened;\r\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"private void sendAppOpen(final Context context)\n\t{\n\t\tHandler handler = new Handler(context.getMainLooper());\n\t\thandler.post(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tAsyncTask<Void, Void, Void> task = new WorkerTask(context)\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void doWork(Context context)\n\t\t\t\t\t{\n\t\t\t\t\t\tDeviceFeature2_5.sendAppOpen(context);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tExecutorHelper.executeAsyncTask(task);\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\tString deviceName = \"VCan\";\r\n\t\tString platformVersion = \"4.4.2\";\r\n\t\tString apkName = \"微博.apk\";\r\n\t\tString appActivity = \"com.sina.weibo.SplashActivity\";\r\n\t\tString AppiumServerIP = \"http://127.0.0.1:4723/wd/hub\";\r\n\t\tAndroidDriver driver;\r\n\t\tFile apk = new File(System.getProperty(\"user.dir\")+File.separator+\"apps\"+File.separator+apkName);\r\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t\tcapabilities.setCapability(\"deviceName\", deviceName);\r\n\t\tcapabilities.setCapability(\"platformVersion\", platformVersion);\r\n\t\tcapabilities.setCapability(\"app\", apk);\r\n\t\tcapabilities.setCapability(\"appActivity\", appActivity);\r\n\t\tcapabilities.setCapability(\"noSign\", true);\r\n\t\tcapabilities.setCapability(\"noReset\", true);\r\n\t\tdriver = new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"),capabilities);\r\n\t\tThread.sleep(3000);\r\n\t\tSystem.out.println(\"App启动等待时间\");\r\n\t\tThread.sleep(4000);\r\n\t\tdriver.findElementById(\"com.sina.weibo:id/plus_icon\").click();\r\n\t\tdriver.findElementById(\"com.sina.weibo:id/pop_control_bar_front_close_img\").click();\r\n\t\tThread.sleep(2000);\r\n\t\tdriver.close();\r\n\t\tdriver.quit();\r\n\t}",
"private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void onStart(Application app) {\n Akka.system().scheduler().schedule(\n Duration.create(0, TimeUnit.MILLISECONDS),\n Duration.create(10, TimeUnit.SECONDS),\n new Runnable() {\n @Override\n public void run() {\n ImportMangerSystem mgr = ImportMangerSystem.getInstance();\n mgr.reportOnAllSuperVisors();\n }\n },\n Akka.system().dispatcher()\n );\n InitialData.insert();\n upgrade();\n }",
"public final void mo32362c() {\n Editor edit = PreferenceManager.getDefaultSharedPreferences(C13499h.m39721g()).edit();\n edit.putString(\"com.facebook.appevents.SourceApplicationInfo.callingApplicationPackage\", this.f34929a);\n edit.putBoolean(\"com.facebook.appevents.SourceApplicationInfo.openedByApplink\", this.f34930b);\n edit.apply();\n }",
"@Override\n\t\t\t\t\t\t\tpublic void appUpdateBegin(String newAppNetworkUrl) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public void checkAndInstallPC(){\n psconfig.setAndSaveProperty(LiferayConstants.SETUP_DONE,\"true\");\n \n \n \n // logger.info(\"Trying to install PC............\");\n /* ProgressHandle handle = ProgressHandleFactory.createHandle(org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"INSTALLING_PORTLET_CONTAINER\"));\n handle.start();\n try{\n \n \n String pcHome = psconfig.getPSHome();\n String serverHome = psconfig.getServerHome();\n \n // String pcBase = getPCBaseDir(psconfig);\n pcHome = changeToOSSpecificPath(pcHome);\n serverHome = changeToOSSpecificPath(serverHome);\n // pcBase = changeToOSSpecificPath(pcBase);\n String domainDir = psconfig.getDomainDir();\n domainDir = changeToOSSpecificPath(domainDir);\n \n \n \n \n Properties props = new Properties();\n props.setProperty(\"portlet_container_home\",pcHome);\n // props.setProperty(\"portlet_container_base\",pcBase);\n props.setProperty(\"GLASSFISH_HOME\",serverHome);\n props.setProperty(\"DOMAIN\",psconfig.getDefaultDomain());\n props.setProperty(\"AS_ADMIN_USER\",psconfig.getProperty(SunAppServerConstants.SERVER_USER));\n props.setProperty(\"AS_ADMIN_PASSWORD\",psconfig.getProperty(SunAppServerConstants.SERVER_PASSWORD));\n \n //find setup.xml\n \n File file = new File(pcHome + File.separator + \"setup.xml\");\n if(!file.exists()) {\n logger.log(Level.SEVERE,org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"SETUP_XML_NOT_FOUND\"));\n return;\n }\n \n FileObject setUpXmlObj = FileUtil.toFileObject(file);\n \n ExecutorTask executorTask = ActionUtils.runTarget(setUpXmlObj,new String[]{\"deploy_on_glassfish\"},props);\n psconfig.setAndSaveProperty(LifeRayConstants.SETUP_DONE,\"true\");\n executorTask.waitFinished();\n \n try{\n handle.finish();\n handle = ProgressHandleFactory.createHandle(org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"STARTING_APPSERVER\"));\n handle.start();\n }catch(Exception e){\n \n }*/\n \n //logger.info(\"Starting Glassfish Server.....\");\n /// dm.getStartServerHandler().startServer();\n \n /* }catch(Exception e){\n logger.log(Level.SEVERE,org.openide.util.NbBundle.getMessage(SunASStartStopListener.class, \"ERROR_INSTALLING_PC\"),e);\n }finally{\n handle.finish();\n }*/\n \n }",
"private void startApp(final Context context, String action) {\n PritLog.d(\"startApp() action=\" + action);\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }",
"private Intent m34057d(Context context) {\n Intent intent = new Intent();\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setClassName(\"com.color.safecenter\", \"com.color.safecenter.permission.floatwindow.FloatWindowListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.coloros.safecenter\", \"com.coloros.safecenter.sysfloatwindow.FloatWindowListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.oppo.safe\", \"com.oppo.safe.permission.PermissionAppListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }",
"private static Intent m34053a(Context context) {\n Intent intent = new Intent(\"android.settings.APPLICATION_DETAILS_SETTINGS\");\n intent.setData(Uri.fromParts(\"package\", context.getPackageName(), null));\n return intent;\n }",
"public void rateApp() {\n try {\n Intent rateIntent = rateIntentForUrl(\"market://details\");\n startActivity(rateIntent);\n }\n catch (ActivityNotFoundException e) {\n Intent rateIntent = rateIntentForUrl(\"https://play.google.com/store/apps/details\");\n startActivity(rateIntent);\n }\n }",
"private void startAppSettingsConfigActivity() {\n startActivity(new Intent()\n .setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)\n .addCategory(Intent.CATEGORY_DEFAULT)\n .setData(Uri.parse(\"package:\" + this.getPackageName()))\n .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)\n .addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY)\n .addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS)\n );\n }",
"@BeforeMethod\npublic void setUp() throws MalformedURLException, InterruptedException{\n\t\n\t File classpathRoot = new File(System.getProperty(\"user.dir\"));\n\t File appDir = new File(classpathRoot, \"/Apps/Pazo/\");\n\t File app = new File(appDir, \"app-ppz-debug.apk\");\n\t DesiredCapabilities capabilities = new DesiredCapabilities();\n\t capabilities.setCapability(CapabilityType.BROWSER_NAME, \"\");\n\t capabilities.setCapability(\"deviceName\", \"MI\");\n\t capabilities.setCapability(\"platformVersion\", \"7.0\");\n\t capabilities.setCapability(\"platformName\", \"Android\");\n\t capabilities.setCapability(\"app\", app.getAbsolutePath());\n\t capabilities.setCapability(\"appPackage\", \"com.pazo.ppz\");\n\t capabilities.setCapability(\"appPackage1\", \"com.google.android.packageinstaller\");\n\t capabilities.setCapability(\"appActivity\", \"com.tagtual.trackd.Activities.Splash\");\n\t capabilities.setCapability(\"appActivity1\", \"com.tagtual.trackd.Activities.LicenceLogin\");\n\t capabilities.setCapability(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS,true);\n\t capabilities.setCapability(\"unicodeKeyboard\", true);\n\t capabilities.setCapability(\"resetKeyboard\", true);\n\t try{\n\t driver = new AppiumDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t }\n\t catch (ExceptionInInitializerError error){\n\t System.out.println(error.getCause());\n\t System.out.println(error.getMessage());\n\t System.out.println(error.getLocalizedMessage());\n\t System.out.println(error.getStackTrace().toString());\n\n\t }\n\t driver.manage().timeouts().pageLoadTimeout(80, TimeUnit.SECONDS);\n\t driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);\n\t// Thread.sleep(10000);\n\t\n}",
"public void launchPhone(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_DIAL);\n \tsendIntent.setData(Uri.parse(\"tel:\"));\n \t\n \tfinal ResolveInfo mInfo = pacman.resolveActivity(sendIntent, 0);\n \tString s = pacman.getApplicationLabel(mInfo.activityInfo.applicationInfo).toString();\n \t\n \tif (s != null && s.length() > 2) {\n startActivity(sendIntent);\n return;\n } else {\n \tToast.makeText(context, \"No Phone Call App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\n\t\tFile app= new File(\"E:/Testing/Drag_and_Drop/com.mobeta.android.demodslv.apk\");\n\t\t\n\t\t\n\t\tDesiredCapabilities capabilities= new DesiredCapabilities();\n\t\t\n\t\tcapabilities.setCapability(\"deviceName\", \"XT1033\");\n\t\tcapabilities.setCapability(\"platformName\", \"Android\");\n\t\tcapabilities.setCapability(\"platformVersion\", \"4.4.4\");\n\t\t\n\t\t//app details\n\t\tcapabilities.setCapability(\"app\",app.getAbsolutePath());\n\t\t\n\t\t//Appium details\n\t\t\n\t\tAndroidDriver driver= new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\n\t\tThread.sleep(12000);\n\t\t\n\t\tif(driver.isAppInstalled(\"com.mobeta.android.demodslv\"))\n\t\t{\n\t\t\tSystem.out.println(\"Successfully Installed\");\n\t\t\t\n\t\t\t//Remove thrugh code\n\t\t\tdriver.removeApp(\"com.mobeta.android.demodslv\");\n\t\t\tThread.sleep(8000);\n\t\t\tSystem.out.println(\"Removed sucessfully\");\n\t\t\t\n\t\t\t\n\t\t\tdriver.installApp(\"E:/Testing/Drag_and_Drop/com.mobeta.android.demodslv.apk\");\n\t\t\tThread.sleep(8000);\n\t\t\tSystem.out.println(\"Again Installed the app\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"NOT Installed the app\");\n\t\t}\n\n\t\t\n\n\t}",
"void checkForApps();",
"public static void installApk(Context context, String filename) {\n\t\tString url = filename;\n\t\tLog.e(\"tag\", \"安装地址---》\" + url);\n\t\ttry {\n\t\t\tString command = \"chmod \" + \"777\" + \" \" + filename;\n\t\t\tRuntime runtime = Runtime.getRuntime();\n\t\t\truntime.exec(command);\n\t\t\tLog.d(\"tag\", \"chmod 777 ok\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tIntent intent = new Intent();\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tintent.setAction(Intent.ACTION_VIEW);\n\t\tintent.setDataAndType(Uri.parse(\"file://\" + url), \"application/vnd.android.package-archive\");\n\t\tcontext.startActivity(intent);\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tappInstall(DeviceNum1);\r\n\r\n\t\t\t}",
"public void loadApplications() {\n PackageManager manager = context.getPackageManager();\n\n Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);\n mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n\n final List<ResolveInfo> apps = manager.queryIntentActivities(mainIntent, 0);\n Collections.sort(apps, new ResolveInfo.DisplayNameComparator(manager));\n\n if (apps != null) {\n applications.clear();\n\n for (ResolveInfo app : apps) {\n App application = new App();\n\n application.name = app.loadLabel(manager).toString();\n application.setActivity(new ComponentName(\n app.activityInfo.applicationInfo.packageName,\n app.activityInfo.name),\n Intent.FLAG_ACTIVITY_NEW_TASK\n | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n application.icon = app.activityInfo.loadIcon(manager);\n\n applications.add(application);\n }\n }\n }",
"public static void showStartApp(FruitSlide _gameLib)//not full\n\t{\n\t\t\n\t}",
"public void setReminderApp(Context context) {\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, DailyReminderApp.class);\n\n // setting waktu, kapan notifikasi akan di keluarkan\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, 7); // waktu yang di set adalah pukul 7 pagi\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n\n // pending intent ini akan menjalankan fungsi onReceive\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, ID_APP, intent, 0);\n if (alarmManager != null) {\n // statement ini berfungsi untuk mengatur jeda waktu notifikasi muncul\n // jeda waktu yang digunakan adalah sehari\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY, pendingIntent);\n }\n\n\n }",
"public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Email App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"public void setApp(Main application) { this.application = application;}",
"protected void pauseApp() {\n\r\n\t}",
"public static void trackLaunch(final Context ctx) {\n log.debug(\"ref-extras: Tracking launcher.trackLaunch\");\n\n if (singleton == null) {\n singleton = new TrackingWorker(ctx);\n }\n\n long lastLaunch = pullValueLong(ITrackingConstants.CONF_LAST_LAUNCH_INTERNAL, context);\n\n if (lastLaunch == 0) {\n boolean isGooglePlayServicesAvailable = (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == ConnectionResult.SUCCESS);\n if (isGooglePlayServicesAvailable) {\n new GetAsyncGoogleAdvertiserId(singleton, context).execute();\n\n mReferrerClient = newBuilder(ctx).build();\n mReferrerClient.startConnection(new InstallReferrerStateListener() {\n @Override\n public void onInstallReferrerSetupFinished(int responseCode) {\n switch (responseCode) {\n case InstallReferrerClient.InstallReferrerResponse.OK:\n try {\n ReferrerDetails response = mReferrerClient.getInstallReferrer();\n String installReferrer = response.getInstallReferrer();\n long referrerClickTimestampSeconds = response.getReferrerClickTimestampSeconds();\n long installBeginTimestampSeconds = response.getInstallBeginTimestampSeconds();\n\n DataContainer.getInstance().storeValueString(DataKeys.PLAY_INSTALL_REFERRER, installReferrer, ctx);\n DataContainer.getInstance().storeValueLong(DataKeys.PLAY_REF_CLICK_TIMESTAMP, referrerClickTimestampSeconds, ctx);\n DataContainer.getInstance().storeValueLong(DataKeys.PLAY_INSTALL_BEGIN_TIMESTAMP, installBeginTimestampSeconds, ctx);\n } catch (RemoteException e) {\n log.error(e.getMessage(), e);\n }\n break;\n case InstallReferrerClient.InstallReferrerResponse.FEATURE_NOT_SUPPORTED:\n break;\n case InstallReferrerClient.InstallReferrerResponse.SERVICE_UNAVAILABLE:\n break;\n }\n DataContainer.getInstance().storeValueBoolean(DataKeys.PLAY_REFERRER_FETCHED, true, ctx);\n singleton.onTaskCompletionResult();\n }\n\n @Override\n public void onInstallReferrerServiceDisconnected() {\n DataContainer.getInstance().storeValueBoolean(DataKeys.PLAY_REFERRER_FETCHED, true, ctx);\n singleton.onTaskCompletionResult();\n }\n });\n } else {\n trackLaunchHandler(lastLaunch);\n }\n } else {\n trackLaunchHandler(lastLaunch);\n }\n }",
"private AppTimer() {\n\t\tstart();\n\t}",
"void setDefaultApp(String id);",
"@Override\n public void onProviderInstallFailed(int errorCode, Intent intent) {\n }",
"public boolean showPIPUpgrade(){\n if (!Preferences.hasUpgrade && Tools.deviceSupportsPIPMode(this)) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n\n //dont show on first launch of app\n boolean firstLaunch = prefs.getBoolean(\"firstlaunch\",true);\n if (!firstLaunch) {\n\n //Only show popup max once per day\n\n int dayLastShown = prefs.getInt(\"lastdayshownupgrade\", -1);\n\n Calendar calendar = Calendar.getInstance();\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n\n if (dayLastShown!= day){\n prefs.edit().putInt(\"lastdayshownupgrade\", day).apply();\n Intent pipUpgradeIntent = new Intent(VideoPlayActivity.this,PictureInPictureUpgradeActivity.class);\n startActivityForResult(pipUpgradeIntent, REQUEST_UPGRADE);\n return true;\n }\n\n }else {\n prefs.edit().putBoolean(\"firstlaunch\",false).apply();\n }\n }\n return false;\n\n }",
"private synchronized void addAppToAppDataUsageList(\n ApplicationInfo appInfo) {\n String appLabel = (String) packageManager.getApplicationLabel(appInfo);\n int uid = appInfo.uid;\n AppDataUsage app = new AppDataUsage(appLabel, uid);\n appDataUsageList.add(app);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"private ArrayList<PInfo> getInstalledApps(boolean getSysPackages) {\n\t\tArrayList<PInfo> res = new ArrayList<PInfo>(); \n\t\tList<PackageInfo> packs = getPackageManager().getInstalledPackages(0);\n\t\tfor(int i=0;i<packs.size();i++) {\n\t\t\tPackageInfo p = packs.get(i);\n\t\t\tif ((!getSysPackages) && isSystemPackage(p)) {\n\t\t\t\tcontinue ;\n\t\t\t}\n\t\t\tPInfo newInfo = new PInfo();\n\t\t\tnewInfo.appname = p.applicationInfo.loadLabel(getPackageManager()).toString();\n\t\t\tnewInfo.pname = p.packageName;\n\t\t\tnewInfo.versionName = p.versionName;\n\t\t\tnewInfo.versionCode = p.versionCode;\n\t\t\tnewInfo.icon = p.applicationInfo.loadIcon(getPackageManager());\n\t\t\tnewInfo.toOpen = getPackageManager().getLaunchIntentForPackage(p.packageName);\n\t\t\tres.add(newInfo);\n\t\t\t\n\t\t}\n\t\treturn res; \n\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(PACKAGE, Utils.getAppPackageName(getApplicationContext()), null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivityForResult(intent, PERMISSIONS_REQUEST_CODE);\n }",
"public void finishedLaunching (UIApplication app, NSDictionary options) {\n if (options == null) {\n return;\n }\n\n UILocalNotification notif = (UILocalNotification)\n options.ObjectForKey(UIApplication.get_LaunchOptionsLocalNotificationKey());\n if (notif == null) {\n return;\n }\n\n dispatch(IOSTypes.toMap(notif.get_UserInfo()), false);\n Log.log.debug(\"Got local notification on launch\", \"message\", notif.get_AlertBody());\n }",
"@BeforeClass\n\tpublic void appLaunch() throws IOException\n\t{\n\n\t\t/*String Appium_Node_Path=\"C:/Program Files (x86)/Appium/node.exe\"; \n\t\tString Appium_JS_Path=\"C:/Program Files (x86)/Appium/node_modules/appium/bin/appium.js\"; \n\t\tappiumService = AppiumDriverLocalService.buildService(new AppiumServiceBuilder().usingPort(4723).usingDriverExecutable(new File(Appium_Node_Path)).withAppiumJS(new File(Appium_JS_Path))); \n\t\tappiumService.start();\n\t\t */\t\t\t\n\t\tcapabilities.setCapability(MobileCapabilityType.PLATFORM,Platform.ANDROID);\n\t\tcapabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT,3000);\n\t\tcapabilities.setCapability(MobileCapabilityType.PLATFORM,Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"PLATFORMNAME\"));\n\t\tcapabilities.setCapability(MobileCapabilityType.DEVICE_NAME,Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"DeviceName\"));\n\t\tcapabilities.setCapability(MobileCapabilityType.VERSION,Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"PLATFORMVERSION\"));\n//\t\tcapabilities.setCapability(\"appPackage\", Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"packageName\"));\n//\t\tcapabilities.setCapability(\"appActivity\",Horoscope_GenericLib.readConfigPropFile(sPropFileName, \"activityName\"));\n\t\t\n\t\t// for testing\n\t\tcapabilities.setCapability(\"appPackage\", \"in.amazon.mShop.android.shopping\");\n\t\tcapabilities.setCapability(\"appActivity\", \"com.amazon.mShop.home.HomeActivity\");;\n\n\n\t\tURL url= new URL(\"http://0.0.0.0:4723/wd/hub\");\n\t\tdriver = new AndroidDriver<WebElement>(url, capabilities);\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t// testing purpose\n\t\tbackButton(driver);\n\t\tbackButton(driver);\n\t\t\n// in.amazon.mShop.android.shopping\n//\tcom.amazon.mShop.sso.SigninPromptActivity\n\n\t}",
"public void pauseApp() {\n\t\t//do nothing\n\t}",
"public static void main(String[] args) throws MalformedURLException, InterruptedException {\n\t\t\n\t\tFile app= new File(\"D:\\\\Testing\\\\Drag_drop\\\\com.mobeta.android.demodslv.apk\");\n\t\t\n\t\t//Launch app\n\t\tDesiredCapabilities capabilities= new DesiredCapabilities();\n\t\t\n\t\t//device details\n\t\tcapabilities.setCapability(\"deviceName\", \"GT-I9300I\");\n\t\tcapabilities.setCapability(\"platformName\", \"Android\");\n\t\tcapabilities.setCapability(\"platformVersion\", \"4.4.4\");\n\t\t\n\t\tcapabilities.setCapability(\"app\", app.getAbsolutePath());\n\t\t\n\t\tAndroidDriver driver= new AndroidDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\t\n\t\t//wait\n\t\tThread.sleep(4000);\n\t\t\n\t\tif(driver.isAppInstalled(\"com.mobeta.android.demodslv\"))\n\t\t{\n\t\t\tSystem.out.println(\"App installed Successfully\");\n\t\t\tThread.sleep(8000);\n\t\t\t\n\t\t\tdriver.removeApp(\"com.mobeta.android.demodslv\");\n\t\t\tSystem.out.println(\"Removed the app\");\n\t\t\tThread.sleep(8000);\n\t\t\t\n\t\t\tdriver.installApp(\"D:\\\\Testing\\\\Drag_drop\\\\com.mobeta.android.demodslv.apk\");\n\t\t\tSystem.out.println(\"App installed again\");\n\t\t\tThread.sleep(8000);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"NOT installed the app\");\n\t\t}\n\t\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tLog.d(\"tigertiger\", \"AppStart onCreate\");\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_app_start_old);\r\n\r\n\t\tWriteLogToDevice.initConfiguration();// configure the app log default\r\n\t\t\t\t\t\t\t\t\t\t\t\t// set\r\n\t\tenableSDKLog();\r\n\r\n\t\tGlobalApp.getInstance().setAppContext(getApplicationContext());\r\n\t\tLog.d(\"tigertiger\", \"getApplicationContext =\" + getApplicationContext());\r\n\t\tGlobalApp.getInstance().setCurrentApp(AppStartToMainActivity.this);\r\n\t\t// JIRA ICOM-1890 Begin:Delete by zhangyanhu C01012 2015-08-27\r\n\t\t// ExitApp.getInstance().addActivity(this);\r\n\t\t// JIRA ICOM-1890 End:Delete by zhangyanhu C01012 2015-08-27\t\t\t\t\r\n\t\t\r\n\t\tprogressDialog = new ProgressDialog(AppStartToMainActivity.this);\r\n\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\r\n\t\tprogressDialog.setMessage(AppStartToMainActivity.this.getString(R.string.dialog_connecting_to_cam));\r\n\t\tprogressDialog.setCancelable(false);\r\n\t\tprogressDialog.show();\t\t\r\n\t\tif (SDKSession.prepareSession() == false) {\r\n\t\t\tredirectToExit(CONNECT_FAIL);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t//if (cameraProperties.checkCustomerID(0xD613, 0x0100) == false) {\r\n\t/*\tif (checkCustomerID(0xD613,0x3200) == false) {\r\n\t\t\tredirectToExit(CHECK_CUSID_FAIL);\r\n\t\t\treturn;\r\n\t\t}\r\n\t*/\r\n//\t\tUserMacPermition.initUserMacPermition();\r\n//\t\tif (UserMacPermition.isAllowedMac(getLocalMacAddress()) == false) {\r\n//\t\t\tredirectToExit(CHECK_MAC_FAIL);\r\n//\t\t\treturn;\r\n//\t\t}\r\n\t\r\n\t\t//redirectToExit(CONNECT_FAIL);\r\n\t\tUIDisplayResource.createInstance();\r\n\t\tUIDisplayResource.getinstance().initUIDisplayResource();\r\n\t\tcameraProperties = new CameraProperties();\r\n\t\tif (cameraProperties.hasFuction(0x5011)) {\r\n\t\t\tlong time = System.currentTimeMillis();\r\n\t\t\tDate date = new Date(time);\r\n\t\t\tSimpleDateFormat myFmt = new SimpleDateFormat(\"yyyyMMdd HHmmss\");\r\n\t\t\tString temp = myFmt.format(date);\r\n\t\t\ttemp = temp.replaceAll(\" \", \"T\");\r\n\t\t\ttemp = temp + \".0\";\r\n\t\t\tcameraProperties.setCameraDate(temp);\r\n\t\t}\r\n\r\n\t\ttimer.schedule(task, 1000, 1000);\r\n\r\n\t\t// TimeLapseInterval.getInstance().initTimeLapseInterval();\r\n\t\tLog.d(\"AppStartAppStart\", \"end oncreate\");\r\n\t}",
"@Test\n\tpublic void LaunchAppTest() throws MalformedURLException {\n\n\t\t// Appium Code to Launch the Calculator App without .apk File \n\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\n\t\tcapabilities.setCapability(\"platformName\", \"Android\");\n\t\tcapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"emulator-5554\");\n\t\tcapabilities.setCapability(\"appPackage\", \"com.android.calculator2\");\n\t\tcapabilities.setCapability(\"appActivity\", \"com.android.calculator2.Calculator\");\n\t\tcapabilities.setCapability(\"autoLaunch\", true);\n\t\tAndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(\n\t\t\t\tnew URL(\"http://127.0.0.1:4723/wd/hub\"), capabilities);\n\t\tdriver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\n\t\tdriver.quit();\n\t}",
"public void setApplication(AppW app) {\n\t\tthis.app = app;\n\t}",
"@Test\n @MediumTest\n @Feature({\"Payments\"})\n public void testDoNotAllowPaymentAppChange() throws TimeoutException {\n // Note that the bobpay app has been added in onMainActivityStarted(), so we will have two\n // payment apps in total.\n mPaymentRequestTestRule.addPaymentAppFactory(\n \"https://kylepay.test/webpay\", AppPresence.HAVE_APPS, FactorySpeed.FAST_FACTORY);\n\n mPaymentRequestTestRule.triggerUIAndWait(\n \"buyWithUrlMethod\", mPaymentRequestTestRule.getReadyToPay());\n Assert.assertEquals(2, mPaymentRequestTestRule.getNumberOfPaymentApps());\n mPaymentRequestTestRule.clickInPaymentMethodAndWait(\n R.id.payments_section, mPaymentRequestTestRule.getReadyForInput());\n mPaymentRequestTestRule.clickAndWait(\n R.id.button_primary, mPaymentRequestTestRule.getPaymentResponseReady());\n\n // Confirm that only one payment app is available for retry().\n mPaymentRequestTestRule.retryPaymentRequest(\"{}\", mPaymentRequestTestRule.getReadyToPay());\n Assert.assertEquals(1, mPaymentRequestTestRule.getNumberOfPaymentApps());\n }",
"@Test(priority = 2)\n public void verifyAppIsInstalled(){\n Assert.assertTrue(driver.isAppInstalled(bundleId), \"The App is not installed\");\n Log.info(\"App is installed\");\n }"
] |
[
"0.6255848",
"0.62439525",
"0.624145",
"0.6047913",
"0.60263675",
"0.60103583",
"0.5944619",
"0.5847677",
"0.5843415",
"0.57608324",
"0.5706655",
"0.5668339",
"0.5652373",
"0.56203294",
"0.5547619",
"0.5536012",
"0.55254275",
"0.5519486",
"0.55168056",
"0.550924",
"0.5503252",
"0.550318",
"0.54890084",
"0.5478263",
"0.5474564",
"0.54665315",
"0.54617214",
"0.5453731",
"0.54487807",
"0.54369944",
"0.54238665",
"0.5393138",
"0.5388843",
"0.5369643",
"0.53403854",
"0.5339174",
"0.5335817",
"0.53333175",
"0.53298396",
"0.5327955",
"0.53269",
"0.5325673",
"0.5321403",
"0.5319107",
"0.5317817",
"0.5286033",
"0.52741235",
"0.5273566",
"0.5272995",
"0.5262117",
"0.5262117",
"0.5260602",
"0.5260602",
"0.5260602",
"0.5260602",
"0.5256796",
"0.5253479",
"0.5250758",
"0.52500534",
"0.5246345",
"0.5233306",
"0.52231896",
"0.5221938",
"0.52219087",
"0.5213272",
"0.52067655",
"0.52067655",
"0.5206247",
"0.52035624",
"0.5188154",
"0.517776",
"0.5177521",
"0.5173994",
"0.51658314",
"0.5162657",
"0.51622957",
"0.5159166",
"0.5158931",
"0.5157832",
"0.51502967",
"0.51338005",
"0.5132478",
"0.513137",
"0.51310635",
"0.51273775",
"0.5119746",
"0.5110926",
"0.5110888",
"0.5103469",
"0.5103469",
"0.5101185",
"0.50918657",
"0.5066035",
"0.5063282",
"0.50569236",
"0.5055227",
"0.5052117",
"0.504606",
"0.503656",
"0.5032427",
"0.5031346"
] |
0.0
|
-1
|
Get the value of job_KindString
|
public String getJob_KindString() {
return job_KindString;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setJob_KindString(String job_KindString) {\r\n this.job_KindString = job_KindString;\r\n }",
"@ApiModelProperty(value = \"The canonical name for the job followed by phase in brackets, ie. 'AVscan[1]', etc...\")\n public String getJobType() {\n return jobType;\n }",
"@Override\n public String getTypeName() {\n return job_name;\n }",
"org.hl7.fhir.String getValueString();",
"public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\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 jobId_ = s;\n }\n return s;\n }\n }",
"String getValueAsString();",
"public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getStringValue();",
"java.lang.String getStringValue();",
"String getStringValue();",
"String getStringValue();",
"@Override\n public String getType() {\n return Const.JOB;\n }",
"public int getJobType() {\n return jobType;\n }",
"public String getJob() {\n return job;\n }",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n jobId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"String getTypeAsString();",
"public String getStringValue();",
"@DISPID(47)\r\n\t// = 0x2f. The runtime will prefer the VTID if present\r\n\t@VTID(52)\r\n\tasci.activebatch.enumJobTypeEx type();",
"public abstract String getWorkerString();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"private String getString() {\n TableRow<Story> row = getTableRow();\n Story story = null;\n Integer priority;\n String priorityString = null;\n if (row != null) {\n story = row.getItem();\n }\n if (story != null) {\n priority = getModel().getStoryPriority(story);\n if (priority != -1) {\n priorityString = priority.toString();\n }\n else {\n priorityString = \"-\";\n }\n }\n\n return priorityString;\n }",
"public String getString() {\n\t\treturn \"T\";\n\t}",
"@Override\n\tpublic String getString() {\n\t\treturn value;\n\t}",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n }\n return s;\n }\n }",
"public JobType getType() { return type; }",
"public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getJobInfo() {\n return jobInfo;\n }",
"public java.lang.String getValue() {\n return value;\n }",
"public String getStringValue() {\n if (getValueIndex() <= 0)\n return null;\n return ((StringEntry) getPool().getEntry(getValueIndex())).\n getStringEntry().getValue();\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public java.lang.String getJobNumber() {\r\n return jobNumber;\r\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getStringValue()\n {\n return this.getValue();\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public String getJobName() {\n return this.mJob;\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"private String getString(Proposal proposal) {\n\t\tif (proposal == null) {\n\t\t\treturn EMPTY;\n\t\t}\n\t\t// if (labelProvider == null) {\n\t\t// return proposal.getLabel() == null ? proposal.getContent()\n\t\t// : proposal.getLabel();\n\t\t// }\n\t\t// return labelProvider.getText(proposal);\n\t\treturn proposal.getValue();\n\t}",
"String kind();",
"String kind();",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public String getJob_description() {\r\n return job_description;\r\n }",
"java.lang.String getJobId();",
"public String getTypeString() {\r\n return Prediction.getTypeString(type);\r\n }",
"java.lang.String getScStr();",
"String getEString();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public java.lang.String getMode() {\n java.lang.Object ref = mode_;\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 mode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n public StringType asString() {\n return TypeFactory.getStringType(this.getValue());\n }",
"public String getValue() {\n Object ref = value_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public java.lang.String getTargetJobName() {\n java.lang.Object ref = targetJobName_;\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 targetJobName_ = s;\n }\n return s;\n }\n }",
"@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tint jobID();",
"public String getJob_TM() {\r\n return job_TM;\r\n }",
"public final String getPrimitiveStringValue() {\r\n return (String) (value = value.toString());\r\n }",
"String getString();",
"String getString();",
"String getString();",
"String getString_lit();",
"public String getHelpingSolutionTypeValue()\n/* */ {\n/* 31 */ return this.helpingSolutionTypeValue;\n/* */ }",
"public String getStrVal() {\n\t\treturn strVals[0];\n\t}",
"public String getJobDescription() {\r\n return jobDescription;\r\n }",
"String value();",
"String value();",
"public java.lang.String getMode() {\n java.lang.Object ref = mode_;\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 mode_ = s;\n }\n return s;\n }\n }",
"public String getString();",
"public String getVal() {\n Object ref = val_;\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 val_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getValue() {\n Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"private String getJobLabelSelector(ExperimentSpec experimentSpec) {\n if (experimentSpec.getMeta().getFramework()\n .equalsIgnoreCase(ExperimentMeta.SupportedMLFramework.TENSORFLOW.getName())) {\n return TF_JOB_SELECTOR_KEY + experimentSpec.getMeta().getName();\n } else {\n return PYTORCH_JOB_SELECTOR_KEY + experimentSpec.getMeta().getName();\n }\n }",
"public String getProtocolAsString()\n\t{\n\t\tswitch (m_iProtocolType)\n\t\t{\n\t\t\tcase PROTOCOL_TYPE_RAW_TCP:\n\t\t\t\treturn PROTOCOL_STR_TYPE_RAW_TCP;\n\t\t\tcase PROTOCOL_TYPE_SOCKS:\n\t\t\t\treturn PROTOCOL_STR_TYPE_SOCKS;\n\t\t\tcase PROTOCOL_TYPE_HTTPS:\n\t\t\t\treturn PROTOCOL_STR_TYPE_HTTPS;\n\t\t\tcase PROTOCOL_TYPE_HTTP:\n\t\t\t\treturn PROTOCOL_STR_TYPE_HTTP;\n\t\t\tcase PROTOCOL_TYPE_RAW_UNIX:\n\t\t\t\treturn PROTOCOL_STR_TYPE_RAW_UNIX;\n\t\t\tdefault:\n\t\t\t\treturn PROTOCOL_STR_TYPE_UNKNOWN;\n\t\t}\n\t}"
] |
[
"0.73586863",
"0.63754857",
"0.6208084",
"0.6155087",
"0.6110659",
"0.60936",
"0.60912085",
"0.6083678",
"0.60820067",
"0.6070606",
"0.6070606",
"0.6070606",
"0.6070606",
"0.6070606",
"0.6070606",
"0.6043175",
"0.6043175",
"0.598836",
"0.598836",
"0.5977626",
"0.5893166",
"0.587383",
"0.5861457",
"0.58460784",
"0.5815385",
"0.5803589",
"0.5781008",
"0.57641625",
"0.5753322",
"0.5728382",
"0.5726106",
"0.5691568",
"0.5691568",
"0.5691568",
"0.5691568",
"0.5691568",
"0.5691568",
"0.5691568",
"0.5691568",
"0.5691568",
"0.5691568",
"0.56852376",
"0.56337154",
"0.5618675",
"0.5617411",
"0.56172836",
"0.55854183",
"0.55751425",
"0.5570509",
"0.55535364",
"0.55444044",
"0.5544215",
"0.55343395",
"0.5531289",
"0.55292434",
"0.5527815",
"0.5506513",
"0.5498659",
"0.5492526",
"0.5489814",
"0.54869395",
"0.54862565",
"0.54862565",
"0.5483479",
"0.54755086",
"0.5455215",
"0.54479975",
"0.5447583",
"0.54429615",
"0.5438753",
"0.5438753",
"0.5438753",
"0.5438753",
"0.5438753",
"0.5438753",
"0.5438753",
"0.5438753",
"0.5438753",
"0.5430467",
"0.5427365",
"0.5424552",
"0.54178745",
"0.5414093",
"0.54116905",
"0.539647",
"0.53691185",
"0.53691185",
"0.53691185",
"0.5362797",
"0.53551364",
"0.53499854",
"0.5348901",
"0.534568",
"0.534568",
"0.5344813",
"0.53398055",
"0.5336318",
"0.5333366",
"0.5319714",
"0.5312672"
] |
0.8571727
|
0
|
Set the value of job_KindString
|
public void setJob_KindString(String job_KindString) {
this.job_KindString = job_KindString;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getJob_KindString() {\r\n return job_KindString;\r\n }",
"@InterfaceAudience.Private\n public synchronized void setKind(Text newKind) {\n kind = newKind;\n renewer = null;\n }",
"public void setKind(String _kind) { kind = _kind; }",
"void setValueString(org.hl7.fhir.String valueString);",
"private void setJob(String s) {\n switch (s) {\n case \"Wake\":\n _makeAnnouncement(\"The Zookeeper is about to wake the animals!\");\n break;\n case \"Sleep\":\n _makeAnnouncement(\"The Zookeeper is about to put the animals to sleep!\");\n break;\n case \"rollCall\":\n _makeAnnouncement(\"The Zookeeper is about to perform a roll call on the animals!\");\n break;\n case \"Exercise\":\n _makeAnnouncement(\"The Zookeeper is about to make the animals exercise!\");\n break;\n case \"Feed\":\n _makeAnnouncement(\"The Zookeeper is about to feed the animals!\");\n break;\n default:\n break;\n }\n }",
"void set_str(ThreadContext tc, RakudoObject classHandle, String Value);",
"private void setPkiType(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000002;\n pkiType_ = value;\n }",
"void setValue(java.lang.String value);",
"public void setKind(String kind) {\n this.kind = kind;\n }",
"public void setKind(String kind) {\n this.kind = kind;\n }",
"public void setType(String newValue);",
"public void setType(String newValue);",
"public void setString(String parName, String parVal) throws HibException;",
"public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"public synchronized void setSpecification(final InternationalString newValue) {\n checkWritePermission();\n specification = newValue;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setString(String val) {\n\t\tcp.setString(val);\n\t}",
"public void setStringValue(String value) {\n setValueIndex(getPool().findStringEntry(value, true));\n }",
"@Override\r\n\t\tpublic void dmr_setPlayingName(String str) throws RemoteException {\n\r\n\t\t}",
"public void setValue(java.lang.String value) {\n this.value = value;\n }",
"public void setString(int index,String value);",
"void setValue(final String value);",
"public CustomEntitiesTaskParameters setStringIndexType(StringIndexType stringIndexType) {\n this.stringIndexType = stringIndexType;\n return this;\n }",
"protected void setValue( String strValue )\n {\n _strValue = strValue;\n }",
"public void setStr(java.lang.String str)\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_element_user(STR$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STR$0);\r\n }\r\n target.setStringValue(str);\r\n }\r\n }",
"public void setTypeName(java.lang.String value);",
"public void setType(java.lang.String newType) {\n\ttype = newType;\n}",
"@ApiModelProperty(value = \"The canonical name for the job followed by phase in brackets, ie. 'AVscan[1]', etc...\")\n public String getJobType() {\n return jobType;\n }",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {\r\n this.job_TypeOfWork = job_TypeOfWork;\r\n }",
"public void setStringValue(String v)\n {\n this.setValue(v);\n }",
"@Override\n\tpublic void setNString(int parameterIndex, String value) throws SQLException {\n\t\t\n\t}",
"public Builder setStringValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n typeCase_ = 5;\n type_ = value;\n onChanged();\n return this;\n }",
"void setValue(String value);",
"void setValue(String value);",
"void setType(java.lang.String type);",
"public void set(String str) {\n\t setValueInternal(str);\n\t}",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public final synchronized void mo47205a(String str) {\n this.f49750a.edit().putString(\"topic_operaion_queue\", str).apply();\n }",
"public void setValue( String value )\n {\n this.value = value;\n }",
"public void setValue(String value) {\n\t this.valueS = value;\n\t }",
"void setJobName(String jobName);",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic void put(int typecode, String value) {\r\n\t\tdefaults.put( new Integer(typecode), value );\r\n\t}",
"Update withKind(String kind);",
"public void setValue(String value)\n {\n this.value = value;\n }",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"protected synchronized void setStringValue(String tag, String value) {\n if (actualProperties != null) {\n actualProperties.put(tag, value);\n }\n }",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setTypeName(java.lang.String typeName)\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(TYPENAME$6);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPENAME$6);\n }\n target.setStringValue(typeName);\n }\n }",
"public void setNameString(String s) {\n nameString = s;\r\n }",
"public void setValue(final String value)\n {\n this.value = value;\n }",
"public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringValue = value;\r\n\t}",
"public void setType(String string) {\n\t\tthis.type = string;\n\t\t\n\t}",
"public void setValue (String Value);",
"public final void settypeName(String value) {\n\t\tthis.typeNameField = value;\n\t}",
"protected void setType(String newType) {\n\t\ttype = newType;\n\t}",
"public void setString(final String s){\n\t\tRunnable changeValueRunnable = new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\tloadBar.setString(s);\n\t\t\t}\n\t\t};\n\t\tSwingUtilities.invokeLater(changeValueRunnable);\n\t\tmessageLabel.setText(s);\n\t}",
"public void setStringValue(String stringValue) {\n\t\tthis.rawValue = stringValue;\n\t}",
"public void setValue(String value)\n {\n if (value == null)\n throw new IllegalArgumentException(\"value cannot be null\");\n \n this.value = value;\n }",
"public void setHelpingSolutionTypeValue(String helpingSolutionTypeValue)\n/* */ {\n/* 43 */ this.helpingSolutionTypeValue = helpingSolutionTypeValue;\n/* */ }",
"public void setContentType(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), CONTENTTYPE, value);\r\n\t}",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public void setHelpingSolutionTypeName(String helpingSolutionTypeName)\n/* */ {\n/* 67 */ this.helpingSolutionTypeName = helpingSolutionTypeName;\n/* */ }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void set_T(String str_T) {\n this.t.set_Atomic_Symbol(str_T);\n }",
"private LocalrmnameType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }",
"public void setStrLabelValue(String strLabelValue) {\r\n\t\tthis.strLabelValue = strLabelValue;\r\n\t}",
"public final void setValue(java.lang.String value)\r\n\t{\r\n\t\tsetValue(getContext(), value);\r\n\t}",
"public void setType(String value) {\n this.type = value;\n }",
"public void setKindCode(String kindCode) {\n\t\tthis.kindCode = kindCode;\n\t}",
"public void setJNDIName(String newValue);",
"public void setLabWork(String labWork) {\r\n\t\tthis.labWork = labWork;\r\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.CLASS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setClassification(final String val) {\n classification = val;\n }",
"public void setLtype(String value) {\n set(2, value);\n }",
"void setString(String attributeValue);",
"org.hl7.fhir.String addNewValueString();",
"public int setString(long pos, String str)\n\t{\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void set_type(String t)\n {\n type =t;\n }",
"public void setpermitTypeName(String value) {\n setAttributeInternal(PERMITTYPENAME, value);\n }",
"public void put(int typeCode, String value) {\n\t\tdefaults.put(typeCode, value);\n\t}",
"@Override\n\tpublic void setPrimitiveAsString(boolean arg0) {\n\n\t}",
"public Literal setLiteralString(String literalData);",
"public void setStrSourceType(final String strSourceType) {\n this.strSourceType = strSourceType;\n }",
"public void setType(String t) {\n\ttype = t;\n }"
] |
[
"0.71625644",
"0.60233235",
"0.597968",
"0.5656475",
"0.563542",
"0.5629625",
"0.56057614",
"0.5548414",
"0.54552037",
"0.54552037",
"0.5383511",
"0.5383511",
"0.53831434",
"0.5349797",
"0.53400636",
"0.53400636",
"0.53400636",
"0.53369254",
"0.5301311",
"0.5281381",
"0.5254249",
"0.52363735",
"0.52297044",
"0.5225038",
"0.52172244",
"0.52146983",
"0.52117527",
"0.5203597",
"0.5201658",
"0.5200903",
"0.51998496",
"0.5188286",
"0.51863396",
"0.51863396",
"0.51863396",
"0.51863396",
"0.5180242",
"0.51793194",
"0.5161684",
"0.5146709",
"0.513625",
"0.513625",
"0.5132606",
"0.51307833",
"0.51270777",
"0.5122901",
"0.5122592",
"0.5120189",
"0.5111594",
"0.510319",
"0.51031554",
"0.5103128",
"0.5091609",
"0.50798106",
"0.50708234",
"0.50706005",
"0.5068998",
"0.506848",
"0.5068233",
"0.50557566",
"0.50530374",
"0.50430536",
"0.50392205",
"0.5035282",
"0.5033412",
"0.50293356",
"0.5028372",
"0.5019697",
"0.5017258",
"0.50131637",
"0.5009047",
"0.5009047",
"0.5009047",
"0.5009047",
"0.5009047",
"0.49962363",
"0.49962363",
"0.49962363",
"0.49962363",
"0.49962363",
"0.49962062",
"0.49961582",
"0.49914914",
"0.4986245",
"0.49767333",
"0.49744013",
"0.49715072",
"0.49674782",
"0.49635988",
"0.49602625",
"0.49575973",
"0.49467897",
"0.49388817",
"0.49337652",
"0.492621",
"0.49257782",
"0.49250203",
"0.4921779",
"0.49215952",
"0.4921377"
] |
0.8294509
|
0
|
Get the value of job_Difficulty
|
public ComboBoxDataObject getJob_Difficulty() {
return job_Difficulty;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getDifficulty() {\n return this.difficulty;\n }",
"public String getDifficulty() {\n return difficulty;\n }",
"public String getDifficulty() {\n\t\treturn difficulty;\n\t}",
"public int getDifficulty() {\n return getStat(difficulty);\n }",
"public int getDifficulty() {\n return difficulty;\n }",
"public static int getDifficulty()\n\t{\n\t\treturn difficulty;\n\t}",
"public Difficulty getDifficulty() {\n return mDifficulty;\n }",
"public int getDifficulty()\n\t{\n\t\treturn (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t}",
"public static String getDifficulty() {\r\n\t\treturn diff;\r\n\t}",
"public Difficulty getDifficulty() {\n\t\treturn difficulty;\n\t}",
"protected String getDifficulty() {\n\t\treturn (String) difficultyChooser.getSelectedItem();\n\t}",
"public Byte getDifficulty() {\n return difficulty;\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"public int getDifficulty(int x, int y) {\r\n\t\treturn difficulty.getValue(x, y);\r\n\t}",
"public void setJob_Difficulty(ComboBoxDataObject job_Difficulty) {\r\n this.job_Difficulty = job_Difficulty;\r\n }",
"public int readDifficulty() {\n\t\t\t\t\tSystem.out.println(\"Choose difficulty level: \\n 1 \\n 2 \\n 3 \\n 4\");\n\t\t\t\t\tint j= 0;\n\t\t\t\t\tj = resp.nextInt();\n\t\t\t\t\tswitch (j) {\n\t\t\t\t\t//A difficulty level of 1 shall limit random numbers to the range of 0-9, inclusive\n\t\t case 1: j = 10; \n\t\t break;\n\t\t //A difficulty level of 2 shall limit random numbers to the range of 0-99, inclusive\n\t\t case 2: j = 100;\n\t\t break;\n\t\t // A difficulty level of 3 shall limit random numbers to the range of 0-999, inclusive\n\t\t case 3: j = 1000;\n\t\t break;\n\t\t //A difficulty level of 3 shall limit random numbers to the range of 0-999, inclusive\n\t\t case 4: j = 10000;\n\t\t break;}\n\t\t return j;\n\t\t\t\t\t\n\t\t\t\t\t\n\n\n\t\t}",
"BigInteger getTotalDifficulty();",
"public String setDifficulty(String difficulty) {\n\t\tthis.difficulty = difficulty;\n\t\treturn this.difficulty;\n\t}",
"public String getJob_TM() {\r\n return job_TM;\r\n }",
"public String getJob() {\n return job;\n }",
"public String getDif()\n {\n return difficult;\n }",
"public static EnumDifficulty getWorldDifficulty(World world)\n {\n return world.difficultySetting;\n }",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public int getWorkRequired() {\n return time;\n }",
"public long getCompletionTime(Tab patchType)\n\t{\n\t\tLong completionTime = completionTimes.get(patchType);\n\t\treturn completionTime == null ? -1 : completionTime;\n\t}",
"public Duration getWork()\r\n {\r\n return (m_work);\r\n }",
"public int getJobType() {\n return jobType;\n }",
"public int getJobCost(int jNo);",
"public Duration getActualWork()\r\n {\r\n return (m_actualWork);\r\n }",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public BigDecimal getJOB_ID() {\r\n return JOB_ID;\r\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public void setDifficulty(Byte difficulty) {\n this.difficulty = difficulty;\n }",
"public void setDifficulty(int difficulty) {\n\t\tthis.difficulty = difficulty;\n\t}",
"public long getValue();",
"public int getPoints() {\n return this.difficulty;\n }",
"public String getLabWork() {\r\n\t\treturn labWork;\r\n\t}",
"public double getHoursWorked()\r\n\t{\r\n\treturn hoursWorked;\r\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(WORKELAPSED_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(WORKELAPSED_PROP.get());\n }",
"public void setDifficulty(Difficulty newDifficulty) {\n\t\tdifficulty = newDifficulty;\n\t}",
"@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}",
"public String getJob_description() {\r\n return job_description;\r\n }",
"public String getJobDuty() {\r\n return jobDuty;\r\n }",
"public StatusCheckDataObject getJob_StatusCheck() {\r\n return job_StatusCheck;\r\n }",
"public String getJobProperty() {\r\n return jobProperty;\r\n }",
"public Long getJobID() {\n return jobID;\n }",
"public String getJob_location() {\r\n return job_location;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsFailed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSFAILED_PROP.get());\n }",
"private String jobs() {\r\n\t\tint[] j=tile.getJobs();\r\n\t\tString out = \"Jobs Are: \";\r\n\t\tfor(int i=0; i<j.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+(j[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public String getJobInfo() {\n return jobInfo;\n }",
"public String getJobDesc()\n\t{\n\t\treturn jobDesc;\n\t}",
"public int getJobNum()\n\t{\n\t\treturn jobNum;\n\t}",
"public int getJobState() {\n return jobState;\n }",
"public static int getDifficultyFactor(Difficulty diff) {\n int factor = 0;\n switch (diff) {\n case EASY:\n factor = 1;\n break;\n\n case MEDIUM:\n factor = 2;\n break;\n\n case HARD:\n factor = 3;\n break;\n }\n return factor;\n }",
"java.lang.String getEmploymentDurationText();",
"public int getJobId() ;",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsFailed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSFAILED_PROP.get());\n }",
"public String getJobDescription() {\r\n return jobDescription;\r\n }",
"private void updateDifficulty(){\n if(GameManager.getInstance().isMaxDifficulty()){\n return;\n }\n\n Difficulty currentDifficulty = GameManager.getInstance().getDifficulty();\n\n //Difficulty changes every 10 seconds\n if(totalTimePassed - (10 * currentDifficulty.getLevel()) > 0){\n int nextDifficulty = currentDifficulty.getLevel() + 1;\n String difficultyName = \"DIFFICULTY_\" + nextDifficulty;\n GameManager.getInstance().setDifficulty(Difficulty.valueOf(difficultyName));\n\n penguin.changeDifficulty(GameManager.getInstance().getDifficulty());\n score.setMultiplier(GameManager.getInstance().getDifficulty().getScoreMultiplier());\n }\n }",
"public String getWorkinghours() {\n int seconds = workinghours % 60;\n int minutes = (workinghours / 60) % 60;\n int hours = (workinghours / 60) / 60;\n String secs;\n String mins;\n String hourse;\n\n if (seconds < 10) {\n secs = \":0\" + seconds;\n } else {\n secs = \":\" + seconds;\n }\n if (minutes < 10) {\n mins = \":0\" + minutes;\n } else {\n mins = \":\" + minutes;\n }\n if (hours < 10) {\n hourse = \"0\" + hours;\n } else {\n hourse = \"\" + hours;\n }\n return hourse + mins + secs;\n }",
"@Schema(description = \"The time spent working on the issue as days (\\\\#d), hours (\\\\#h), or minutes (\\\\#m or \\\\#). Required when creating a worklog if `timeSpentSeconds` isn't provided. Optional when updating a worklog. Cannot be provided if `timeSpentSecond` is provided.\")\n public String getTimeSpent() {\n return timeSpent;\n }",
"public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }",
"public String getOptime() {\n return optime;\n }",
"public String getJobName() {\n return this.mJob;\n }",
"public Job getJob();",
"java.lang.String getJobId();",
"double getRepairEffort();",
"public Integer getJobStatus() {\n return jobStatus;\n }",
"public final long getCurrentProgress() {\n /*\n r9 = this;\n int r0 = r9.getState()\n r1 = 1\n r2 = 0\n if (r0 == r1) goto L_0x0012\n r1 = 2\n if (r0 == r1) goto L_0x0019\n r1 = 3\n if (r0 == r1) goto L_0x0014\n r1 = 4\n if (r0 == r1) goto L_0x0014\n L_0x0012:\n r0 = r2\n goto L_0x0032\n L_0x0014:\n long r0 = r9.getTargetProgress()\n goto L_0x0032\n L_0x0019:\n java.lang.String r0 = \"current_value\"\n long r0 = r9.getLong(r0)\n java.lang.String r4 = \"quest_state\"\n long r4 = r9.getLong(r4)\n r6 = 6\n int r8 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))\n if (r8 == 0) goto L_0x0032\n java.lang.String r4 = \"initial_value\"\n long r4 = r9.getLong(r4)\n long r0 = r0 - r4\n L_0x0032:\n java.lang.String r4 = \"MilestoneRef\"\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 >= 0) goto L_0x003e\n java.lang.String r0 = \"Current progress should never be negative\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n r0 = r2\n L_0x003e:\n long r2 = r9.getTargetProgress()\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 <= 0) goto L_0x004f\n java.lang.String r0 = \"Current progress should never exceed target progress\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n long r0 = r9.getTargetProgress()\n L_0x004f:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.games.quest.zzb.getCurrentProgress():long\");\n }",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\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 jobId_ = s;\n }\n return s;\n }\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getWorkHours() {\r\n\t\treturn workHours;\r\n\t}",
"long getJobIDTarget();",
"public int getJobStatus(int jNo);",
"@Schema(description = \"The time in seconds spent working on the issue. Required when creating a worklog if `timeSpent` isn't provided. Optional when updating a worklog. Cannot be provided if `timeSpent` is provided.\")\n public Long getTimeSpentSeconds() {\n return timeSpentSeconds;\n }",
"public TimeStep getTimeStep() {\n\t\t// Only here to ensure it is being used correctly.\n\t\t// cbit.util.Assertion.assertNotNull(fieldTimeStep);\n\t\treturn fieldTimeStep;\n\t}",
"public String getJobId() {\n\t\treturn this.jobId;\n\t}",
"public void setDifficulty(String difficulty) {\n this.difficulty = difficulty == null ? null : difficulty.trim();\n }",
"public java.lang.String getJobNumber() {\r\n return jobNumber;\r\n }",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n jobId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getJobCount() {\r\n return jobCount;\r\n }",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"public JobProgress getJobProgress() {\n return this.jobProgress;\n }",
"public long getValue() {\n\treturn value;\n }",
"public int reason() {\r\n return Integer.parseInt(getParm(1));\r\n }",
"com.google.protobuf.Duration getDowntimeJailDuration();",
"@Override\n\tpublic int getWorkNum() {\n\t\treturn workMapper.getWorkNum();\n\t}",
"public JobOrder getJob() {\n\t\tif (job == null) {\n\t\t\tsetJob(findJobOrder(getPlacement().getJobOrder().getId()));\n\t\t}\n\t\treturn job;\n\t}",
"public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }",
"@Override\n\tpublic int getJobWattingForModeratorByUser(String userId) throws Exception {\n\t\treturn 0;\n\t}",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public void setGameDifficulty(Difficulty selectedDifficulty) {\r\n\t\tgameInfo.setDifficulty(selectedDifficulty);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static Optional<Duration> getJobRuntimePrediction(JobDescriptor jobDescriptor) {\n if (!isBatchJob(jobDescriptor)) {\n return Optional.empty();\n }\n Map<String, String> attributes = ((JobDescriptor<BatchJobExt>) jobDescriptor).getAttributes();\n return Optional.ofNullable(attributes.get(JobAttributes.JOB_ATTRIBUTES_RUNTIME_PREDICTION_SEC))\n .flatMap(StringExt::parseDouble)\n .map(seconds -> ((long) (seconds * 1000))) // seconds -> milliseconds\n .map(Duration::ofMillis);\n }",
"public long getValue()\n {\n return itsValue;\n }",
"@Override\r\n\t\tpublic long getValue() {\n\t\t\treturn -1;\r\n\t\t}",
"public long longValue() {\n\t\treturn getSection().longValue();\n\t}"
] |
[
"0.75250286",
"0.74723613",
"0.7439435",
"0.7422454",
"0.7363607",
"0.735132",
"0.7288838",
"0.7285832",
"0.7242817",
"0.7216546",
"0.71221393",
"0.71048933",
"0.64012164",
"0.6381012",
"0.63517433",
"0.6257931",
"0.62097234",
"0.6172962",
"0.5924609",
"0.59000397",
"0.5886707",
"0.5884933",
"0.5860513",
"0.57976896",
"0.5777739",
"0.5734974",
"0.57093674",
"0.5666604",
"0.55949277",
"0.55237764",
"0.54911566",
"0.54898447",
"0.54840523",
"0.54797214",
"0.5467654",
"0.54629725",
"0.5461152",
"0.54192185",
"0.5417644",
"0.54174656",
"0.5409311",
"0.5407517",
"0.53985035",
"0.5397832",
"0.537894",
"0.53768045",
"0.5373154",
"0.5366706",
"0.53660905",
"0.53641933",
"0.536243",
"0.5357489",
"0.53569597",
"0.5354205",
"0.5348447",
"0.5342675",
"0.5332311",
"0.5331328",
"0.5324825",
"0.53229696",
"0.5310136",
"0.5291389",
"0.5280953",
"0.5279707",
"0.52777135",
"0.52750576",
"0.52746135",
"0.5248486",
"0.5244497",
"0.5244267",
"0.5236566",
"0.5222418",
"0.5222418",
"0.5222418",
"0.52215195",
"0.5221389",
"0.5217752",
"0.5214236",
"0.5207259",
"0.52034533",
"0.52018213",
"0.5200432",
"0.5199786",
"0.51907516",
"0.5159991",
"0.5159635",
"0.5156066",
"0.51432014",
"0.51354873",
"0.51311415",
"0.5130788",
"0.5124511",
"0.51235104",
"0.5118323",
"0.5118323",
"0.51169044",
"0.511559",
"0.5114388",
"0.51137877",
"0.51110464"
] |
0.753232
|
0
|
Set the value of job_Difficulty
|
public void setJob_Difficulty(ComboBoxDataObject job_Difficulty) {
this.job_Difficulty = job_Difficulty;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setDifficulty(Difficulty newDifficulty) {\n\t\tdifficulty = newDifficulty;\n\t}",
"public void setGameDifficulty(Difficulty selectedDifficulty) {\r\n\t\tgameInfo.setDifficulty(selectedDifficulty);\r\n\t}",
"public void setDifficulty(int difficulty) {\n if (this.difficulty != difficulty) {\n this.difficulty = difficulty;\n }\n }",
"public void setDifficulty(Byte difficulty) {\n this.difficulty = difficulty;\n }",
"public void setDifficulty(int difficulty) {\n\t\tthis.difficulty = difficulty;\n\t}",
"public void setDifficulty(int difficulty) {\n if (difficulty == 1) {\n this.difficulty = 16;\n setCredits(1000);\n }\n if (difficulty == 2) {\n this.difficulty = 12;\n setCredits(500);\n }\n if (difficulty == 3) {\n this.difficulty = 8;\n setCredits(100);\n }\n }",
"void setDifficulty(int d) {\n setStat(d, difficulty);\n }",
"private void updateDifficulty(){\n if(GameManager.getInstance().isMaxDifficulty()){\n return;\n }\n\n Difficulty currentDifficulty = GameManager.getInstance().getDifficulty();\n\n //Difficulty changes every 10 seconds\n if(totalTimePassed - (10 * currentDifficulty.getLevel()) > 0){\n int nextDifficulty = currentDifficulty.getLevel() + 1;\n String difficultyName = \"DIFFICULTY_\" + nextDifficulty;\n GameManager.getInstance().setDifficulty(Difficulty.valueOf(difficultyName));\n\n penguin.changeDifficulty(GameManager.getInstance().getDifficulty());\n score.setMultiplier(GameManager.getInstance().getDifficulty().getScoreMultiplier());\n }\n }",
"public ComboBoxDataObject getJob_Difficulty() {\r\n return job_Difficulty;\r\n }",
"public void changeDifficulty(float diff) {\n preferences = getSharedPreferences(\"Options\", Context.MODE_PRIVATE);\n editor = preferences.edit();\n editor.putFloat(\"Difficulty\", diff);\n editor.commit();\n }",
"public String setDifficulty(String difficulty) {\n\t\tthis.difficulty = difficulty;\n\t\treturn this.difficulty;\n\t}",
"public int getDifficulty() {\n return this.difficulty;\n }",
"public String getDifficulty() {\n return difficulty;\n }",
"public void setDifficulty(String difficulty) {\n this.difficulty = difficulty == null ? null : difficulty.trim();\n }",
"public void setWork(Duration work)\r\n {\r\n m_work = work;\r\n }",
"public String getDifficulty() {\n\t\treturn difficulty;\n\t}",
"public int getDifficulty() {\n return difficulty;\n }",
"public Difficulty getDifficulty() {\n return mDifficulty;\n }",
"public Byte getDifficulty() {\n return difficulty;\n }",
"public Difficulty getDifficulty() {\n\t\treturn difficulty;\n\t}",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public static int getDifficulty()\n\t{\n\t\treturn difficulty;\n\t}",
"public void setLastSyncStepsTime(long j) {\n ((SharedPreferences) this.fitClientStore.get()).edit().putLong(GoogleFitConstants.SharedPreferences.LAST_SYNC_TIME_STEPS, j).apply();\n }",
"public void setDifficultyString () {\n String difficultyString = \"EASY\";\n if(mAlarmDetails.getDifficulty() == 0){\n difficultyString = \"EASY\";\n }\n else if (mAlarmDetails.getDifficulty() == 1) {\n difficultyString = \"MEDIUM\";\n }\n else if (mAlarmDetails.getDifficulty() == 2) {\n difficultyString = \"HARD\";\n }\n\n TextView difficultySelection = (TextView) findViewById(R.id.difficulty_level);\n difficultySelection.setText(difficultyString);\n }",
"public void setWork(long work, FieldContext fieldContext) {\n\t\t\n\t}",
"public int getDifficulty()\n\t{\n\t\treturn (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t}",
"public static String getDifficulty() {\r\n\t\treturn diff;\r\n\t}",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"public int getDifficulty() {\n return getStat(difficulty);\n }",
"public void setWorktime(WorkTime worktime) {\r\n this.worktime = worktime;\r\n }",
"public UpdateDifficultyController(Model m) {\n\t\tthis.model = m;\n\t}",
"public void setJobProgress(JobProgress jobProgress) {\n this.jobProgress = jobProgress;\n }",
"private static void setOptimumHumidity(String room) {\r\n switch (room) {\r\n case \"a\": // living room\r\n case \"b\": // office\r\n case \"c\": // bedroom\r\n optimumRHLL = 40.00f;\r\n optimumRHUL = 60.00f;\r\n break;\r\n case \"d\": // bathroom\r\n optimumRHLL = 50.00f;\r\n optimumRHUL = 70.00f;\r\n break;\r\n case \"e\": // kitchen\r\n optimumRHLL = 50.00f;\r\n optimumRHUL = 60.00f;\r\n break;\r\n case \"f\": // basement\r\n optimumRHLL = 50.00f;\r\n optimumRHUL = 65.00f;\r\n break;\r\n }\r\n }",
"public void setJobId( int jobId ) ;",
"protected String getDifficulty() {\n\t\treturn (String) difficultyChooser.getSelectedItem();\n\t}",
"public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}",
"public void setHours(double hoursWorked){\n if ((hoursWorked >= 0.0) && (hoursWorked <= 168.0))\n hours = hoursWorked;\n else\n throw new IllegalArgumentException(\"Hours worked must be >= 0 and <= 168\");\n }",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public void setWorkingHour (int newWorkingHour) {\n this.workingHour = newWorkingHour;\n }",
"public void setActualWork(Duration actualWork)\r\n {\r\n m_actualWork = actualWork;\r\n }",
"public void setHadoopJob( Job currJob ) ;",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setJam(int jam){\n\t\tjamBelajar = jam;\n\t}",
"public void configure(JobConf job) {\n\t\ttimeGranularity = Integer.parseInt(job.get(\"timeGranularity\"));\n\t}",
"public void setJamMulai(java.lang.Long value) {\n this.jam_mulai = value;\n }",
"private void setTime()\n\t{\n\t\t//local variable \n\t\tString rad = JOptionPane.showInputDialog(\"Enter the time spent bicycling: \"); \n\t\t\n\t\t//convert to int\n\t\ttry {\n\t\t\tbikeTime = Integer.parseInt(rad);\n\t\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t}",
"public void setHoursWorked(double hoursWorked){\r\n\t\t// populate the owned hoursWorked from the given \r\n\t\t// function parameter\r\n\t\t\r\n\t\tthis.hoursWorked = hoursWorked;\r\n\t}",
"void set(long newValue);",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setStartTime(long value) {\r\n this.startTime = value;\r\n }",
"public void setValue(long value) {\n\t this.value = value;\n\t }",
"@Override\n\tpublic void setJobId(long jobId) {\n\t\tmodel.setJobId(jobId);\n\t}",
"public void setJobState(int jobState) {\n this.jobState = jobState;\n }",
"private void setPatch(long value) {\n bitField0_ |= 0x00000008;\n patch_ = value;\n }",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public void setJamSelesai(java.lang.Long value) {\n this.jam_selesai = value;\n }",
"public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }",
"public void setWorkitemsFailed(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(WORKITEMSFAILED_PROP.get(), value);\n }",
"BigInteger getTotalDifficulty();",
"public void setEndTime(long value) {\r\n this.endTime = value;\r\n }",
"private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }",
"void setScore(long score);",
"public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {\r\n this.job_TypeOfWork = job_TypeOfWork;\r\n }",
"public void set(final long timeValue) {\n stamp = timeValue;\n }",
"void setTimeInForce(TimeInForce inTimeInForce);",
"public void setWorkitemsFailed(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(WORKITEMSFAILED_PROP.get(), value);\n }",
"public void setTime( int value ) {\n final int oldTime = currentTime;\n currentTime = value;\n selectedThingsChanged( oldTime );\n\n mapComponent.getOptionContainer().getTimeCode().setText( DataExporter.generateTimeCode( value ) );\n\n mapComponent.getRadiantGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, true ) ) );\n mapComponent.getDireGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, false ) ) );\n\n mapComponent.getRadiantXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, true ) ) );\n mapComponent.getDireXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, false ) ) );\n\n }",
"@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n String difficultySummary = \"Current difficulty: \" + newValue;\n difficultyLevelPref.setSummary(difficultySummary);\n // Since we are handling the pref, we must save it\n SharedPreferences.Editor ed = sharedPrefs.edit();\n ed.putString(\"difficulty_level\", newValue.toString());\n ed.apply();\n setDifficultyLevel(newValue.toString());\n return true;\n }",
"@Override \r\n public void execute(JobExecutionContext executionContext) \r\n throws JobExecutionException {\n try { \r\n // Retrieve the state object. \r\n JobContext jobContext = (JobContext) executionContext \r\n .getJobDetail().getJobDataMap().get(\"jobContext\"); \r\n \r\n // Update state. \r\n jobContext.setState(new Date().toString()); \r\n \r\n // This is just a simulation of something going wrong. \r\n int number = 0; \r\n number = 123 / number; \r\n } catch (Exception e) { \r\n throw new JobExecutionException(e); \r\n } \r\n }",
"public void setJob_TM(String job_TM) {\r\n this.job_TM = job_TM;\r\n }",
"public void setJob(String job) {\n this.job = job;\n }",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"private void chooseDifficulty(){\n\t\tint dif = -1;\n\t\tdo {\n\t\t\tprintSeparation();\n\t\t\tSystem.out.println(\"Elegeix una dificultat entre 1 i 3.\");\n\t\t\tdif = readInt();\n\t\t} while (dif <= 0 || dif >= 4);\n\t\tdifficulty = dif - 1;\n\t\tprintSeparation();\n\t\tSystem.out.println(\"S'ha elegit la dificultat \" + dif + \".\");\n\t}",
"public void setStartTime(java.lang.Long value) {\n this.start_time = value;\n }",
"public void setToFailed() {\n if (currentStep.getCurrentPhase() != Step.Phase.FAILED) {\n changeCurrentStep(Step.Phase.FAILED);\n }\n setCompleteTime(System.currentTimeMillis());\n }",
"public void setRemainingWork(long remainingWork, FieldContext fieldContext) {\n\t\t\n\t}",
"private void setDifficultyData(){\n ArrayList<Difficulty> difficulties = new ArrayList<>();\n //add difficulties\n difficulties.add(new Difficulty(\"Easy\", \"easy\"));\n difficulties.add(new Difficulty(\"Medium\", \"medium\"));\n difficulties.add(new Difficulty(\"Hard\", \"hard\"));\n\n //fill in data\n ArrayAdapter<Difficulty> adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_dropdown_item, difficulties);\n selectDifficulty.setAdapter(adapter);\n }",
"public void completeTimingProtectionRule_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}",
"public void setWork2(Number work2)\r\n {\r\n m_work2 = work2;\r\n }",
"public void setMyLong(long myLongIn) {\n myLong = myLongIn;\n }",
"public void setRechargeTime(Skills skill, int time);",
"public void setLong(String parName, long parVal) throws HibException;",
"public void setTime(){\n\t\tthis.time = this.endTime - this.startTime;\t//calculate the time difference\n\t\t\n\t\t//now since the time is in milliseconds, convert the nanotime\n\t\tlong totalSeconds = (this.time / 1000000000);\n\t\t//Format the above seconds. So it will have at least \n\t\tint minute = (int)(totalSeconds/60);\n\t\tdouble second = totalSeconds - (minute*60);\t//get the remaining second part\n\t\t\n\t\tDecimalFormat minuteFormat = new DecimalFormat(\"##0\");\n\t\tDecimalFormat secondFormat = new DecimalFormat(\"###\");\t//so we only get the 3 digits\n\t\tString minutePart = minuteFormat.format(minute);\t//get the string for the second part\n\t\tString secondPart = secondFormat.format(second);\n\t\t\n\t\t\n\t\tString result = minutePart + \":\" + secondPart;\n\t\t\n\t\t//each time we set time, change the bounds\n\t\tthis.timeLabel.setText(String.valueOf(result));//set the JLabel text\n\t\t//when we set the time label, also set its location\n\t\tthis.timeLabel.setSize(timeLabel.getPreferredSize().width, \n\t\t\t\ttimeLabel.getPreferredSize().height);\n\t}",
"public void setHoursWorked ( int hours) {\n\t\tthis.hoursWrkd = hours;\n\t}",
"@PropertySetter(\"problem\")\r\n \tpublic static void setProblem(Problem problem, Object value) {\r\n \t\tproblem.setProblem(Context.getConceptService().getConceptByUuid((String) value));\r\n \t}",
"public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }",
"public void setBlockroomid(Long newVal) {\n if ((newVal != null && this.blockroomid != null && (newVal.compareTo(this.blockroomid) == 0)) || \n (newVal == null && this.blockroomid == null && blockroomid_is_initialized)) {\n return; \n } \n this.blockroomid = newVal; \n blockroomid_is_modified = true; \n blockroomid_is_initialized = true; \n }",
"public void checkBestScoreAndChangeIt() {\n \tbestTime = readPreference(difficulty);\n \t\n \tif (currentTime < bestTime) {\n \t\tbestTime = currentTime;\n \t\tsavePreference(bestTime, difficulty);\n \t}\n }",
"public abstract void setAtiempo(java.lang.Long newAtiempo);",
"public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }",
"public void setPenalty(short penalty) {\n this.penalty = penalty;\n }",
"public final void setPenalty(LeaderKingdomModifier penalty) {\r\n\tremove();\r\n\tthis.penalty = penalty;\r\n\tapply();\r\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}"
] |
[
"0.70211285",
"0.6961355",
"0.6896535",
"0.678526",
"0.6745914",
"0.65096116",
"0.62780726",
"0.6246176",
"0.62079203",
"0.6168984",
"0.6012305",
"0.5999744",
"0.59667253",
"0.5949406",
"0.59403616",
"0.5939541",
"0.5927566",
"0.5831066",
"0.5680343",
"0.5646115",
"0.5630894",
"0.5622848",
"0.5555578",
"0.54816043",
"0.54779917",
"0.54770714",
"0.54525805",
"0.5416733",
"0.54139674",
"0.53864884",
"0.53629595",
"0.53576773",
"0.53364694",
"0.5319427",
"0.5305143",
"0.52770764",
"0.5261466",
"0.52420986",
"0.5240727",
"0.52076197",
"0.51892275",
"0.5189088",
"0.51316375",
"0.5117653",
"0.5117653",
"0.5117653",
"0.5115879",
"0.5102041",
"0.5086676",
"0.5079921",
"0.5066017",
"0.5062989",
"0.50590855",
"0.50590855",
"0.50590855",
"0.50590855",
"0.5038087",
"0.50327736",
"0.5031982",
"0.5027814",
"0.5026315",
"0.50140846",
"0.4995181",
"0.498417",
"0.49688578",
"0.495935",
"0.4950215",
"0.4948691",
"0.49423316",
"0.49408242",
"0.49394447",
"0.4937029",
"0.4936516",
"0.49257454",
"0.4919304",
"0.49169016",
"0.49140123",
"0.49134028",
"0.49113652",
"0.4911261",
"0.49094358",
"0.4906552",
"0.48989344",
"0.48733777",
"0.48715824",
"0.48684415",
"0.48584032",
"0.4851368",
"0.48426732",
"0.4839709",
"0.48196977",
"0.48168045",
"0.481085",
"0.48064727",
"0.48024172",
"0.4801108",
"0.47909912",
"0.4771559",
"0.47540173",
"0.47387126"
] |
0.7370821
|
0
|
Get the value of job_TypeOfWork
|
public ComboBoxDataObject getJob_TypeOfWork() {
return job_TypeOfWork;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getJobType() {\n return jobType;\n }",
"public java.lang.Object getWorkTypeID() {\n return workTypeID;\n }",
"public JobType getType() { return type; }",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {\r\n this.job_TypeOfWork = job_TypeOfWork;\r\n }",
"@Override\n public String getType() {\n return Const.JOB;\n }",
"@Override\n public String getTypeName() {\n return job_name;\n }",
"@Override\n\tpublic String jobType() {\n\t\treturn \"productMonitorStat\";\n\t}",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"@Override\n public String getTypeNum() {\n return job_resume;\n }",
"@DISPID(47)\r\n\t// = 0x2f. The runtime will prefer the VTID if present\r\n\t@VTID(52)\r\n\tasci.activebatch.enumJobTypeEx type();",
"public String getJob_KindString() {\r\n return job_KindString;\r\n }",
"public String getWork_id(){\r\n\t\treturn this.work_id ;\r\n\t}",
"@Override\n\tpublic int getWorkNum() {\n\t\treturn workMapper.getWorkNum();\n\t}",
"@ApiModelProperty(value = \"The canonical name for the job followed by phase in brackets, ie. 'AVscan[1]', etc...\")\n public String getJobType() {\n return jobType;\n }",
"public int getJobNum()\n\t{\n\t\treturn jobNum;\n\t}",
"public int getEmploymentType()\n\t{\n\t\treturn getBigDecimal(WareHouse.EMPLOYMENTTYPE).intValue();\n\t}",
"public String getaWorkName() {\n return aWorkName;\n }",
"public ComboBoxDataObject getJob_Difficulty() {\r\n return job_Difficulty;\r\n }",
"public java.lang.String calculationType()\n\t{\n\t\treturn _strCalculationType;\n\t}",
"public Long getWorkRequestId() {\n return this.workRequestId;\n }",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public String getJob() {\n return job;\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"public java.lang.String getJobNumber() {\r\n return jobNumber;\r\n }",
"public String getJob_TM() {\r\n return job_TM;\r\n }",
"public String getLabWork() {\r\n\t\treturn labWork;\r\n\t}",
"@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tint jobID();",
"@Override\n\tpublic String getRunType() {\n\t\treturn model.getRunType();\n\t}",
"public String getType() {\n return theTaskType ;\n }",
"public int getType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public Duration getWork()\r\n {\r\n return (m_work);\r\n }",
"public Integer getJobStatus() {\n return jobStatus;\n }",
"public String getJobName() {\n return this.mJob;\n }",
"public String getCellType() {\n return this.cellType;\n }",
"public Integer getWorkSize(){\r\n\t\treturn work.size();\t\t\r\n\t}",
"public String getApplierWorkno() {\n return applierWorkno;\n }",
"public StatusCheckDataObject getJob_StatusCheck() {\r\n return job_StatusCheck;\r\n }",
"public String get_worker() {\n return this._worker;\n }",
"public Byte getBuildingType() {\n return buildingType;\n }",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public String getJobCount() {\r\n return jobCount;\r\n }",
"public int getHC_EmployeeJob_ID();",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public void setWorkTypeID(java.lang.Object workTypeID) {\n this.workTypeID = workTypeID;\n }",
"public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }",
"public int getWorkRequired() {\n return time;\n }",
"public String getBuildingType() {\n return (String) getAttributeInternal(BUILDINGTYPE);\n }",
"public String getWorkTelephone() {\n return (String)getAttributeInternal(WORKTELEPHONE);\n }",
"cb.Careerbuilder.Company.PhoneType getType();",
"@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}",
"public JType getType()\n\t{ return jType; }",
"public int getReqType()\r\n {\r\n return safeConvertInt(getAttribute(\"type\"));\r\n }",
"public int getJobStatus(int jNo);",
"public int getTaskType() {\n\t\treturn fieldTaskType;\n\t}",
"public BatchType getType() {\n return this.type;\n }",
"public String getJobProperty() {\r\n return jobProperty;\r\n }",
"public String getWorkingCondition() {\r\n return workingCondition;\r\n }",
"public int getJobState() {\n return jobState;\n }",
"public String getBuildingSubType() {\n return (String) getAttributeInternal(BUILDINGSUBTYPE);\n }",
"public int getHC_JobDataChange_ID();",
"public long getType() {\r\n return type;\r\n }",
"public Date getStartWorkTime() {\n return startWorkTime;\n }",
"public int getType ()\n\t{\n\t\treturn m_nType;\n\t}",
"public int getType()\n\t{\n\t\treturn this.type;\n\t}",
"public int getType() {\r\n\t\treturn (type);\r\n\t}",
"public int getType()\n\t\t{\n\t\t\treturn this.type;\n\t\t}",
"public int getType()\n {\n return this.type;\n }",
"public int getType() {\n return theType;\n }",
"public byte getWorkPriority() {\n return 80;\n }",
"@Override\n public String getJobName() {\n return operate_name;\n }",
"public int getType()\n {\n return pref.getInt(KEY_TYPE, 0);\n }",
"public String getJobInfo() {\n return jobInfo;\n }",
"public NbaDst getWork() {\n\t\treturn work;\n\t}",
"public boolean isWorkField()\n\t{\n\t\treturn workField;\n\t}",
"public Integer getJtype() {\n return jtype;\n }",
"public int getType() {\n\t\treturn this.type;\n\t}",
"public int getType() {\n\t\treturn this.type;\n\t}",
"public String getrType() {\n return rType;\n }",
"public int getType(){\n\t\treturn this.type;\n\t}",
"public int getType(){\n\t\treturn this.type;\n\t}",
"java.lang.String getWorkerId();",
"int getProblemType();",
"public Long getJobID() {\n return jobID;\n }",
"public ProcessType getType() {\n\t\treturn this.type;\n\t}",
"public String getCellTypeName()\n {\n return this.cellTypeName;\n }",
"public String getJobCondition() {\n return jobCondition;\n }",
"public String getJobWelfare() {\r\n return jobWelfare;\r\n }",
"public int getType() {\n return this.type;\n }",
"public int getType() {\n\t\treturn this.mType;\n\t}",
"public String getWorking_status() {\n return working_status;\n }",
"public String getWaitType() {\r\n return waitType;\r\n }",
"@DISPID(5)\r\n\t// = 0x5. The runtime will prefer the VTID if present\r\n\t@VTID(11)\r\n\tint lastInstanceJobID();",
"public static String getWorkoutTypeClimb(int workoutTypeCode, Context mContext) {\n\n DatabaseHelper handler = new DatabaseHelper(mContext);\n SQLiteDatabase database = handler.getWritableDatabase();\n\n //grade type\n String[] projection = {\n DatabaseContract.WorkoutTypeEntry._ID,\n DatabaseContract.WorkoutTypeEntry.COLUMN_WORKOUTTYPENAME};\n String whereClause = DatabaseContract.WorkoutTypeEntry._ID + \"=?\";\n String[] whereValue = {String.valueOf(workoutTypeCode)};\n\n Cursor cursor = database.query(DatabaseContract.WorkoutTypeEntry.TABLE_NAME,\n projection,\n whereClause,\n whereValue,\n null,\n null,\n null);\n\n int idColumnOutput = cursor.getColumnIndex(DatabaseContract.WorkoutTypeEntry.COLUMN_WORKOUTTYPENAME);\n\n try {\n cursor.moveToFirst();\n return cursor.getString(idColumnOutput);\n } finally {\n cursor.close();\n database.close();\n }\n\n }",
"@Override\n\tpublic int getType() {\n\t\treturn _dmGtStatus.getType();\n\t}",
"public String getStrProcessType() {\n return strProcessType;\n }",
"public String getType()\n \t{\n \t\treturn this.type;\n \t}",
"@DISPID(39)\r\n\t// = 0x27. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tint lastInstanceJobID();",
"public String getCommissionTransactionInstanceReportType() {\n return commissionTransactionInstanceReportType;\n }"
] |
[
"0.7514318",
"0.7204614",
"0.7022263",
"0.68134516",
"0.671249",
"0.6640902",
"0.65813357",
"0.64635944",
"0.6458405",
"0.63285655",
"0.62846506",
"0.62461406",
"0.6243872",
"0.62235594",
"0.61861324",
"0.6145423",
"0.60446334",
"0.6021822",
"0.5953146",
"0.59250927",
"0.5913205",
"0.5892377",
"0.5876442",
"0.5856985",
"0.58107656",
"0.57931167",
"0.5742281",
"0.572448",
"0.5702532",
"0.5682029",
"0.56368864",
"0.5633649",
"0.56193084",
"0.56162024",
"0.56094736",
"0.56054157",
"0.56021017",
"0.55890095",
"0.558561",
"0.55750257",
"0.556925",
"0.556925",
"0.5563773",
"0.556054",
"0.5560242",
"0.5557346",
"0.5532136",
"0.5519041",
"0.5503471",
"0.5488599",
"0.5485555",
"0.5483371",
"0.5480096",
"0.54779124",
"0.5470239",
"0.54423106",
"0.5440616",
"0.5438804",
"0.54331803",
"0.54228485",
"0.54205316",
"0.54165465",
"0.54083633",
"0.54045546",
"0.5402179",
"0.53928745",
"0.5388071",
"0.53819346",
"0.5379253",
"0.53722733",
"0.53717566",
"0.5370681",
"0.5363942",
"0.5363309",
"0.53627634",
"0.5357748",
"0.53515947",
"0.5349721",
"0.5349721",
"0.53466153",
"0.5346197",
"0.5346197",
"0.53390694",
"0.53363484",
"0.5335579",
"0.5335096",
"0.5335014",
"0.53347313",
"0.53327525",
"0.5316688",
"0.53141785",
"0.5313555",
"0.530952",
"0.53086907",
"0.5308206",
"0.5307446",
"0.5307361",
"0.5306607",
"0.5303956",
"0.53013986"
] |
0.8011065
|
0
|
Set the value of job_TypeOfWork
|
public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {
this.job_TypeOfWork = job_TypeOfWork;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setJobType(int value) {\n this.jobType = value;\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public void setWorkTypeID(java.lang.Object workTypeID) {\n this.workTypeID = workTypeID;\n }",
"public void setWork(long work, FieldContext fieldContext) {\n\t\t\n\t}",
"public int getJobType() {\n return jobType;\n }",
"public void setWorktime(WorkTime worktime) {\r\n this.worktime = worktime;\r\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public void setWork(Duration work)\r\n {\r\n m_work = work;\r\n }",
"public java.lang.Object getWorkTypeID() {\n return workTypeID;\n }",
"public void adjustWorkerType(int workerType) {\n Connection dbConnection = DatabaseConnection.getDbConnection();\n try {\n preparedStatement = dbConnection.prepareStatement(UPDATE_WORKER_TYPE);\n preparedStatement.setInt(1, workerType);\n preparedStatement.execute();\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n } finally {\n try {\n preparedStatement.close();\n dbConnection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }\n }",
"public JobType getType() { return type; }",
"public void setEmploymentType(int arg)\n\t{\n\t\tsetValue(EMPLOYMENTTYPE, new Integer(arg));\n\t}",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"public void setJob_Difficulty(ComboBoxDataObject job_Difficulty) {\r\n this.job_Difficulty = job_Difficulty;\r\n }",
"@Override\n public String getType() {\n return Const.JOB;\n }",
"public void setWorkState(String workState) {\n this.workState = workState;\n if (updates!=null) {\n getUpdates().isWorkStateChanged = true;\n if (parent!=null) {\n parent.propagateActivityInstanceChange();\n }\n }\n }",
"public void setWorkUnit(String workUnit) {\n\t\tthis.workUnit = workUnit;\n\t}",
"public void setWork2(Number work2)\r\n {\r\n m_work2 = work2;\r\n }",
"public void setStartWorkTime(Date startWorkTime) {\n this.startWorkTime = startWorkTime;\n }",
"public void setLabWork(String labWork) {\r\n\t\tthis.labWork = labWork;\r\n\t}",
"@Override\n public String getTypeNum() {\n return job_resume;\n }",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public void setSyncType(int tmp) {\n this.syncType = tmp;\n }",
"public void setWorkField(boolean workField)\n\t{\n\t\tthis.workField = workField;\n\t}",
"@Override\n\tpublic String jobType() {\n\t\treturn \"productMonitorStat\";\n\t}",
"public void setJobNum(int jobNum)\n\t{\n\t\tthis.jobNum = jobNum;\n\t}",
"public void setWaitWorker(int waitWorker) {\n this.waitWorker = waitWorker;\n }",
"@Override\n public String getTypeName() {\n return job_name;\n }",
"public void setWorkDay(Date workDay) {\n\t\tthis.workDay = workDay;\n\t}",
"void setInstallmentType(java.math.BigInteger installmentType);",
"@ApiModelProperty(value = \"The canonical name for the job followed by phase in brackets, ie. 'AVscan[1]', etc...\")\n public String getJobType() {\n return jobType;\n }",
"public void setWork(NbaDst work) {\n\t\tthis.work = work;\n\t}",
"worker(long workOn) {\n this.workOn = workOn;\n }",
"void xsetInstallmentType(org.apache.xmlbeans.XmlInteger installmentType);",
"public String getWork_id(){\r\n\t\treturn this.work_id ;\r\n\t}",
"public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }",
"public void setBuildingType(Byte buildingType) {\n this.buildingType = buildingType;\n }",
"@DISPID(47)\r\n\t// = 0x2f. The runtime will prefer the VTID if present\r\n\t@VTID(52)\r\n\tasci.activebatch.enumJobTypeEx type();",
"public void setWorkRequestId(Long workRequestId) {\n this.workRequestId = workRequestId;\n }",
"public void setType(int tmp) {\n this.type = tmp;\n }",
"public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }",
"public void setCellType(GridCellType celltype) {\n\t\tif (celltype != null) {\n\t\t\tif (this.celltype != celltype) {\n\t\t\t\tthis.parent.cellToUpdate(this);\n\t\t\t\tthis.celltype = celltype;\n\t\t\t\tthis.parent.cellUpdated(this);\n\t\t\t\tcellCost = this.celltype.cost;\n\t\t\t}\n\t\t}\n\t}",
"public void setJobState(int jobState) {\n this.jobState = jobState;\n }",
"public void setTicketType(String ticketTypeOf)\r\n {\r\n ticketType = ticketTypeOf;\r\n }",
"public void setTaskType(int taskType) throws java.beans.PropertyVetoException {\n\t\tif (fieldTaskType != taskType) {\n\t\t\tint oldValue = fieldTaskType;\n\t\t\tfireVetoableChange(\"taskType\", new Integer(oldValue), new Integer(taskType));\n\t\t\tfieldTaskType = taskType;\n\t\t\tfirePropertyChange(\"taskType\", new Integer(oldValue), new Integer(taskType));\n\t\t}\n\t}",
"public void setType(int nType) { m_nType = nType; }",
"public void setJob_TM(String job_TM) {\r\n this.job_TM = job_TM;\r\n }",
"public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);",
"public void setActualWork(Duration actualWork)\r\n {\r\n m_actualWork = actualWork;\r\n }",
"public void setJobStatus(Integer jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setType(long type) {\r\n this.type = type;\r\n }",
"public void setJtype(Integer jtype) {\n this.jtype = jtype;\n }",
"public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}",
"@Override\n\tpublic int getWorkNum() {\n\t\treturn workMapper.getWorkNum();\n\t}",
"public void setMailType(int v) \n {\n \n if (this.mailType != v)\n {\n this.mailType = v;\n setModified(true);\n }\n \n \n }",
"@Override\n\tpublic void setJobStatus(int jobStatus) {\n\t\tmodel.setJobStatus(jobStatus);\n\t}",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public void setOperationType(int value) {\r\n this.operationType = value;\r\n }",
"public void setRoomtypeid(Integer newVal) {\n if ((newVal != null && this.roomtypeid != null && (newVal.compareTo(this.roomtypeid) == 0)) || \n (newVal == null && this.roomtypeid == null && roomtypeid_is_initialized)) {\n return; \n } \n this.roomtypeid = newVal; \n roomtypeid_is_modified = true; \n roomtypeid_is_initialized = true; \n }",
"public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }",
"public void setWork(Work w)\n\t{\n\t\tsynchronized(currentWorkLock)\n\t\t{\n\t\t\tif (w==null)\n\t\t\t{\n\t\t\t\tthrow new IllegalStateException(\"Attempt to deallocate work from a busy thread\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (this.currentWork == null)\n\t\t\t\t{\n\t\t\t\t\tthis.currentWork = w;\n\t\t\t\t\tthis.currentWorkLock.notify();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new IllegalStateException(\"Attempt to allocate work to a busy thread\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setNametype(Integer nametype) {\r\n this.nametype = nametype;\r\n }",
"public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }",
"public void setType (int nType)\n\t{\n\t\tm_nType = nType;\n\t}",
"public static void set(ISPProgram prog, TooType newType) {\n // REL-538 Move TooType to SPProgram\n final SPProgram spProgram = (SPProgram) prog.getDataObject();\n if (newType != spProgram.getTooType()) {\n spProgram.setTooType(newType);\n prog.setDataObject(spProgram);\n }\n }",
"public void setJobProgress(JobProgress jobProgress) {\n this.jobProgress = jobProgress;\n }",
"public void setType(BatchType value) {\n this.type = value;\n }",
"public void setWorkPart (WorkPart workPart) {\n\t\tthis.workPart = workPart;\n\t\tthis.annotates = workPart.getTag();\n\t}",
"public void setType(String tmp) {\n this.type = Integer.parseInt(tmp);\n }",
"public void updateJob(int numeroticket, int chunkjustdone) {\n\t\tif (this.ticket == numeroticket)\n\t\t{\n\t\t\t//System.out.println(\"moi worker \" + id + \" ne doit plus faire \" + chunkjustdone);\n\t\t\tthis.chunkDone[chunkjustdone] = true;\n\t\t\t\n\t\t}\n\t}",
"public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);",
"public void setWorkTelephone(String value) {\n setAttributeInternal(WORKTELEPHONE, value);\n }",
"public void setType(int t){\n this.type = t;\n }",
"public void setType(int t) {\r\n\t\ttype = t;\r\n\t}",
"public JobBuilder workPath(String workPath) {\r\n job.setWorkPath(workPath);\r\n return this;\r\n }",
"@Override\n\tpublic void setRunType(String runType) {\n\t\tmodel.setRunType(runType);\n\t}",
"public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }",
"public Long getWorkRequestId() {\n return this.workRequestId;\n }",
"private void setCellType(Cell cell, CellType type) {\n\t\tfor (AgentListener listener : listeners) {\n\t\t\tlistener.changeCellType(cell.getPosition(), type);\n\t\t}\n\t\tcell.setType(type);\n\t}",
"public boolean isSetWorkType() {\n return EncodingUtils.testBit(__isset_bitfield, __WORKTYPE_ISSET_ID);\n }",
"public void setType(int pType) {\n mType = pType;\n }",
"public void setWorkHours(String workHours) {\r\n\t\tthis.workHours = workHours;\r\n\t}",
"public void setWorker(int wid, JSONObject worker){\r\n\t\tthis.wid = wid;\r\n\t\tthis.workerobj = worker;\r\n\t}",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"public void setType(int t) {\n\ttype[num_comp-1] = t;\n }",
"public void setCellType(CellType type) {\n\t\tcellType = type;\n\t}",
"@NoProxy\n @IcalProperty(pindex = PropertyInfoIndex.BUSYTYPE,\n vavailabilityProperty = true)\n public void setBusyType(final int val) {\n busyType = val;\n }",
"public void setJob(String job) {\n this.job = job;\n }",
"protected void setType(String requiredType){\r\n type = requiredType;\r\n }",
"public void setTypeid(Long typeid) {\n this.typeid = typeid;\n }",
"public void setObjtype(short newValue) {\n\tthis.objtype = newValue;\n}",
"private void _setIndexType(String ndxType)\n {\n if (this.indexType == null) {\n synchronized (this.indexTypeLock) {\n if (this.indexType == null) {\n this.indexType = ndxType;\n }\n }\n }\n }",
"public ComboBoxDataObject getJob_Difficulty() {\r\n return job_Difficulty;\r\n }",
"public int getEmploymentType()\n\t{\n\t\treturn getBigDecimal(WareHouse.EMPLOYMENTTYPE).intValue();\n\t}",
"public void setRoomtypeid(int newVal) {\n setRoomtypeid(new Integer(newVal));\n }",
"public final void setProcessType(slm.proxies.ProcessType processtype)\r\n\t{\r\n\t\tsetProcessType(getContext(), processtype);\r\n\t}",
"public void setJuserType(Integer juserType) {\n this.juserType = juserType;\n }",
"public int getJobNum()\n\t{\n\t\treturn jobNum;\n\t}",
"public String getJob_KindString() {\r\n return job_KindString;\r\n }",
"public void setWorkplaceOrder(int workplaceOrder)\r\n\t{\r\n\t\tthis.workplaceOrder = workplaceOrder;\r\n\t}"
] |
[
"0.74811614",
"0.6869649",
"0.6632532",
"0.652534",
"0.62832546",
"0.6271298",
"0.6223795",
"0.618074",
"0.61450326",
"0.6118288",
"0.6094469",
"0.60616237",
"0.5924602",
"0.5913015",
"0.5751934",
"0.5697001",
"0.5686553",
"0.5684489",
"0.56598014",
"0.5592445",
"0.5591474",
"0.55743915",
"0.5544784",
"0.5529217",
"0.5494068",
"0.5487611",
"0.5479311",
"0.54608643",
"0.54335815",
"0.5420545",
"0.5404631",
"0.53490984",
"0.5347975",
"0.5285668",
"0.5282615",
"0.52741915",
"0.52522576",
"0.5250872",
"0.5245962",
"0.5234451",
"0.52326244",
"0.52233434",
"0.52168834",
"0.52098715",
"0.5190917",
"0.51866937",
"0.51792645",
"0.51733625",
"0.5162745",
"0.51310414",
"0.5099942",
"0.5071668",
"0.50658166",
"0.50562197",
"0.5042662",
"0.503954",
"0.5021825",
"0.5012882",
"0.4995349",
"0.49940297",
"0.498156",
"0.49717644",
"0.4952788",
"0.49495572",
"0.49493638",
"0.49486795",
"0.49446437",
"0.49409053",
"0.49363118",
"0.49327263",
"0.49321392",
"0.49309435",
"0.49298453",
"0.4926901",
"0.49248737",
"0.49221838",
"0.49102938",
"0.4905907",
"0.49057013",
"0.490565",
"0.49029282",
"0.48999986",
"0.48991802",
"0.4897568",
"0.4891633",
"0.48910403",
"0.48894864",
"0.48871532",
"0.4885398",
"0.48768672",
"0.4875623",
"0.487468",
"0.4869437",
"0.48686072",
"0.48626602",
"0.48445782",
"0.48431307",
"0.48393366",
"0.48384088",
"0.48372972"
] |
0.7814318
|
0
|
Get the value of job_Designer
|
public EmployerDataObject getJob_Designer() {
return job_Designer;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public String getJob() {\n return job;\n }",
"public ComboBoxDataObject getJob_Difficulty() {\r\n return job_Difficulty;\r\n }",
"public CustomerDataObject getJob_Customer() {\r\n return job_Customer;\r\n }",
"public String getJobProperty() {\r\n return jobProperty;\r\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"public String getJob_description() {\r\n return job_description;\r\n }",
"public String getJob_TM() {\r\n return job_TM;\r\n }",
"public String getJobName() {\n return this.mJob;\n }",
"public int getJobType() {\n return jobType;\n }",
"public int getHC_EmployeeJob_ID();",
"public String getJobDescription() {\r\n return jobDescription;\r\n }",
"@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The identifier of the job\")\n\n public String getJob() {\n return job;\n }",
"public BigDecimal getJOB_ID() {\r\n return JOB_ID;\r\n }",
"public String getJobDesc()\n\t{\n\t\treturn jobDesc;\n\t}",
"public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }",
"public String getJob_title() {\r\n return job_title;\r\n }",
"public String getJobName() {\n return this.JobName;\n }",
"public java.lang.String getJobNumber() {\r\n return jobNumber;\r\n }",
"public String getJobInfo() {\n return jobInfo;\n }",
"public Object getCellEditorValue() {\r\n return component.getText();\r\n }",
"public Dsjob getJobObject() { return job; }",
"public int getJobNum()\n\t{\n\t\treturn jobNum;\n\t}",
"public Object getCellEditorValue() {\r\n return labTest;\r\n }",
"public String getApplierWorkno() {\n return applierWorkno;\n }",
"public String getJobName() {\n return this.jobName;\n }",
"public String getJobReqID() {\n\t\treturn jobReqID;\n\t}",
"public String getSrcJobDescription() {\r\n return (String) getAttributeInternal(SRCJOBDESCRIPTION);\r\n }",
"public String getJobName() {\n return jobName;\n }",
"public String getJobName() {\n return jobName;\n }",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"public Job getJob(){\n return job;\n }",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"public Long getJobID() {\n return jobID;\n }",
"public StatusCheckDataObject getJob_StatusCheck() {\r\n return job_StatusCheck;\r\n }",
"public int getHC_JobDataChange_ID();",
"public void getData() {\n if ( jobEntry.getName() != null ) {\n wName.setText( jobEntry.getName() );\n }\n wIncType.setText(jobEntry.getIncType());\n wIncField.setText(jobEntry.getIncField());\n wDataFormat.setText(jobEntry.getDataFormat());\n wStartValue.setText(jobEntry.getStartValue());\n wEndValue.setText(jobEntry.getEndValue());\n\n wName.selectAll();\n wName.setFocus();\n }",
"public String getChiefEditor() {\n return (String)getAttributeInternal(CHIEFEDITOR);\n }",
"@Override\n\tpublic Object getCellEditorValue() {\n\t\tlog.info(\"|------表格单元格编辑模型------|\\t\"+\"getCellEditorValue\\t\"+\n\t\t\t\ttable.getEditingRow()+\",\"+table.getEditingColumn());\n\t\treturn comboBox.getSelectedItem().toString();\n\t}",
"public int getJobCost(int jNo);",
"public final Object getCellEditorValue() {\n int retQty;\n try {\n retQty = Integer.parseInt(((JTextField) component).getText());\n // if max\n if (retQty > maxQuantity) {\n JOptionPane.showMessageDialog(null, \"The maximum qty remaining to return is \" + maxQuantity, \"Max Qty Exceed\",\n JOptionPane.INFORMATION_MESSAGE);\n retQty = 0;\n }\n\n } catch (Exception e) {\n retQty = 0;\n }\n return retQty <= 0 ? \"0\" : retQty;\n }",
"public Object getCellEditorValue() {\r\n return jtextfield.getText();\r\n }",
"public java.lang.String getValue()\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(VALUE$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public static JPanel getJobPanel() {\n return myJobPanel;\n }",
"public java.lang.String getPart()\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(PART$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.util.Calendar getJobStartDate()\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_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getCalendarValue();\r\n }\r\n }",
"public Job getJob();",
"public String getCompany()\n {\n return (String) getProperty(PropertyIDMap.PID_COMPANY);\n }",
"public Job currentJob() {\n \t\treturn currentJob;\n \t}",
"public String getJobCondition() {\n return jobCondition;\n }",
"@Override\r\n\tpublic T getJob() {\n\t\treturn super.getJob();\r\n\t}",
"public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }",
"private Room RoomComboBoxValue()\r\n\t{\r\n\t\tRoom r = (Room) roomComboBox.getSelectedItem();\r\n\t\treturn r;\r\n\t}",
"private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }",
"public String getJob_location() {\r\n return job_location;\r\n }",
"public String getComponent() {\n return this.component;\n }",
"@Override\n public String getTypeName() {\n return job_name;\n }",
"public String getJobCity() {\r\n return jobCity;\r\n }",
"public String getLabWork() {\r\n\t\treturn labWork;\r\n\t}",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"public String jobRunResourceId() {\n return this.jobRunResourceId;\n }",
"public int getXX_SalesBudgetForm_ID() \r\n {\r\n return get_ValueAsInt(\"XX_SalesBudgetForm_ID\");\r\n \r\n }",
"protected abstract String getJobSubmitId();",
"public void setJob_Difficulty(ComboBoxDataObject job_Difficulty) {\r\n this.job_Difficulty = job_Difficulty;\r\n }",
"public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}",
"public JobOrder getJob() {\n\t\tif (job == null) {\n\t\t\tsetJob(findJobOrder(getPlacement().getJobOrder().getId()));\n\t\t}\n\t\treturn job;\n\t}",
"@Override\n public String getEtcDescriptor() {\n JsonObjectBuilder jobdsc = Json.createObjectBuilder();\n jobdsc.add(\"id\", Json.createObjectBuilder()\n .add(\"name\", \"id\")\n .add(\"title\", \"ID\")\n .add(\"type\", \"integer\")\n .add(\"iseditable\", false));\n jobdsc.add(\"key\", Json.createObjectBuilder()\n .add(\"name\", \"key\")\n .add(\"title\", \"Ключ\")\n .add(\"type\", \"string\")\n .add(\"iseditable\", true));\n jobdsc.add(\"value\", Json.createObjectBuilder()\n .add(\"name\", \"value\")\n .add(\"title\", \"Значение\")\n .add(\"type\", \"string\")\n .add(\"iseditable\", true));\n jobdsc.add(\"idcompany\", Json.createObjectBuilder()\n .add(\"name\", \"idcompany\")\n .add(\"title\", \"Компания\")\n .add(\"type\", \"integer\")\n .add(\"iseditable\", false));\n jobdsc.add(\"iduser\", Json.createObjectBuilder()\n .add(\"name\", \"iduser\")\n .add(\"title\", \"Пользователь\")\n .add(\"type\", \"integer\")\n .add(\"iseditable\", true));\n return jobdsc.build().toString();\n }",
"public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {\r\n this.job_TypeOfWork = job_TypeOfWork;\r\n }",
"public String getJob_KindString() {\r\n return job_KindString;\r\n }",
"@Override\n public String getJobName() {\n return operate_name;\n }",
"public CampusEbo getCampus() {\n if ( StringUtils.isBlank(campusCode) ) {\n campus = null;\n } else {\n if ( campus == null || !StringUtils.equals( campus.getCode(),campusCode) ) {\n ModuleService moduleService = SpringContext.getBean(KualiModuleService.class).getResponsibleModuleService(CampusEbo.class);\n if ( moduleService != null ) {\n Map<String,Object> keys = new HashMap<String, Object>(1);\n keys.put(LocationConstants.PrimaryKeyConstants.CODE, campusCode);\n campus = moduleService.getExternalizableBusinessObject(CampusEbo.class, keys);\n } else {\n throw new RuntimeException( \"CONFIGURATION ERROR: No responsible module found for EBO class. Unable to proceed.\" );\n }\n }\n }\n return campus;\n }",
"public String getSrcJobTitle() {\r\n return (String) getAttributeInternal(SRCJOBTITLE);\r\n }",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\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 jobId_ = s;\n }\n return s;\n }\n }",
"public String getAssessmentandReportingAnalysisandReportingServiceWorkProduct() {\n return assessmentandReportingAnalysisandReportingServiceWorkProduct;\n }",
"public String getCronValue() {\n\t\tList<SmsUrlCronJob> findAllCronJob = smsCronJobRepo.findAllCronJob();\n\t\tString result = null;\n\n\t\tList<SmsUrlCronJob> collectSmsUrl = findAllCronJob.stream()\n\t\t\t\t.filter(s -> s.getJobName().equalsIgnoreCase(\"SmsBranchTxnDailyJob\")).collect(Collectors.toList());\n\n\t\tfor (SmsUrlCronJob smsUrl : collectSmsUrl) {\n\t\t//\tlogger.info(\"branchTxnJob::22::getCronValue::\" + smsUrl.getCronTime());\n\t\t//\tlogger.info(\"Job Enable Status::::getCronValue::\" + smsUrl.getJobEnable());\n\n\t\t\tif (smsUrl.getJobEnable().equals(\"Y\")) {\n\t\t\t\tresult = smsUrl.getCronTime();\n\t\t\t} else {\n\t\t\t\tresult = smsUrl.getCronTime();\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public String getCronopElemCode() {\n\t\treturn this.cronopElemCode;\n\t}",
"public org.pentaho.pms.cwm.pentaho.meta.instance.CwmInstance getValue();",
"@Override\n\t\t\t\tpublic String getValue() {\n\t\t\t\t\treturn pc.name();\n\t\t\t\t}",
"public String getJobId() {\n\t\treturn this.jobId;\n\t}",
"private String getComponentValue(JComponent component)\r\n {\r\n\t if (component instanceof JTextField)\r\n\t {\r\n\t\t JTextField text = (JTextField)component;\r\n\t\t return text.getText();\r\n\t }\r\n\t else if (component instanceof JCheckBox)\r\n\t {\r\n\t\t JCheckBox checkBox = (JCheckBox)component;\r\n\t \t boolean value = checkBox.isSelected();\r\n\t \t return (value) ? \"true\" : \"false\";\r\n\t }\r\n\t else if (component instanceof JComboBox)\r\n\t {\r\n\t\t @SuppressWarnings(\"unchecked\")\r\n\t\t JComboBox<String> comboBox = (JComboBox<String>)component;\r\n\t\t \r\n\t\t String value = (String)comboBox.getSelectedItem();\r\n\t\t if (value == null) return \"\";\r\n\t\t if (value.equals(fields[0])) return \"\";\r\n\t\t if (value.length()>2) return value.toLowerCase();\r\n\t\t return value;\r\n\t }\r\n\t return \"\";\r\n }",
"public String getJP_SalesRep_Value();",
"public Object \n getCellEditorValue() \n {\n BaseEditor editor = null;\n if(pField.getPluginName() != null) {\n try {\n\tPluginMgrClient pclient = PluginMgrClient.getInstance();\n\teditor = pclient.newEditor(pField.getPluginName(), \n\t\t\t\t pField.getPluginVersionID(), \n\t\t\t\t pField.getPluginVendor());\n }\n catch(PipelineException ex) {\n }\n }\n \n return editor; \n }",
"public String getEvaluationFormId() {\n return this.evaluationFormId;\n }",
"public Map<String, Object> getComponentValue() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, Object>() {\n @Override\n public Object get(Object key) {\n final UIInput component = (UIInput) getCurrentInstance().getViewRoot().findComponent((String) key);\n return component.getSubmittedValue() != null ? component.getSubmittedValue() : component.getValue();\n }\n });\n }",
"public String getJobTitle() {\r\n return jobTitle;\r\n }",
"@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tint jobID();",
"public String getCommission() {\n return commission.getText();\n }",
"public String getCompany()\r\n {\r\n return (m_company);\r\n }",
"public java.lang.String getDesignador() {\r\n return designador;\r\n }",
"cb.Careerbuilder.Job getJobs(int index);",
"public String getValue() {\n\t\t\treturn this.val; // to be replaced by student code\n\t\t}",
"public String getInstance()\n\t{\n\t\tString occursOn = (String)cbOccursOn.getSelectedItem();\n\t\treturn occursOn;\n\t}",
"public String getCurrentPrintJob()\n {\n return printerSimulator.getCurrentPrintJob();\n }",
"@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}",
"public Object getCellEditorValue() {\n\treturn realEditor.getCellEditorValue();\n }"
] |
[
"0.680359",
"0.6636924",
"0.6497585",
"0.6491829",
"0.6389793",
"0.63490367",
"0.62657315",
"0.616021",
"0.61360097",
"0.5965281",
"0.59280115",
"0.5862261",
"0.5847653",
"0.58272994",
"0.58224046",
"0.5802937",
"0.5782826",
"0.5776619",
"0.57684416",
"0.5761076",
"0.5750244",
"0.5744418",
"0.57406205",
"0.5739718",
"0.57179374",
"0.57041955",
"0.5691648",
"0.56755817",
"0.5671178",
"0.5668844",
"0.5659529",
"0.5634028",
"0.5634028",
"0.56163436",
"0.5599317",
"0.55899245",
"0.5587102",
"0.5564941",
"0.55647504",
"0.55581075",
"0.55435246",
"0.55390507",
"0.55389667",
"0.5534055",
"0.55254644",
"0.54966295",
"0.54915833",
"0.5481153",
"0.5479594",
"0.54629785",
"0.54563135",
"0.54513454",
"0.544584",
"0.5419303",
"0.5417036",
"0.5414804",
"0.5407914",
"0.5399339",
"0.5399241",
"0.5398415",
"0.539623",
"0.5390138",
"0.5388529",
"0.5381735",
"0.53801316",
"0.5375083",
"0.5368726",
"0.5364253",
"0.53548986",
"0.5350873",
"0.53342116",
"0.53300476",
"0.5326559",
"0.5324009",
"0.5322087",
"0.5321026",
"0.5311696",
"0.53051543",
"0.5301386",
"0.5301351",
"0.52923125",
"0.5286498",
"0.5278338",
"0.52777797",
"0.5277464",
"0.5272037",
"0.527082",
"0.52687633",
"0.5262185",
"0.52588737",
"0.52559733",
"0.5254611",
"0.5237267",
"0.52223384",
"0.52161324",
"0.5205201",
"0.51961774",
"0.5195117",
"0.5181367",
"0.51803464"
] |
0.79637295
|
0
|
Set the value of job_Designer
|
public void setJob_Designer(EmployerDataObject job_Designer) {
this.job_Designer = job_Designer;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public EmployerDataObject getJob_Designer() {\r\n return job_Designer;\r\n }",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public void setDesigner(Designer d) {\n\t\tdesigner = d;\n\t}",
"public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }",
"public void setJob_Difficulty(ComboBoxDataObject job_Difficulty) {\r\n this.job_Difficulty = job_Difficulty;\r\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public void set(Object requestor, String field, JMenu comp);",
"public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {\r\n this.job_TypeOfWork = job_TypeOfWork;\r\n }",
"public void set(Object requestor, String field, JComponent comp);",
"public void set(Object requestor, String field, JMenuItem comp);",
"public void set(Object requestor, String field, JDialog comp);",
"public void setJobStartDate(java.util.Calendar jobStartDate)\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_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.setCalendarValue(jobStartDate);\r\n }\r\n }",
"public Frm_AddJob() {\n initComponents();\n ClearEdit();\n }",
"public void set(Object requestor, String field, JLabel comp);",
"public void set(Object requestor, String field, JFrame comp);",
"public void setComponenteCosto(ComponenteCosto componenteCosto)\r\n/* 73: */ {\r\n/* 74: 95 */ this.componenteCosto = componenteCosto;\r\n/* 75: */ }",
"public void set(Object requestor, String field, JButton comp);",
"protected void setDataInForm(Long jobID) {\n if (jobID == null) {\n this.stepsValues = NewTaskService.getInitList();\n this.jobName = null;\n pickListBean.initDualList();\n } else {\n Job job = jobService.getByIdWithCollections(jobID);\n this.stepsValues = NewTaskService.getJobStepValuesList(job); \n this.jobName = job.getJobName(); \n pickListBean.setDualListByJob(job);\n }\n }",
"public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);",
"void setJobName(String jobName);",
"public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }",
"public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }",
"void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }",
"private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }",
"public void setJobObserver(JobObserver jO) {\n\r\n\t}",
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"public void xsetJobStartDate(org.apache.xmlbeans.XmlDate jobStartDate)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.set(jobStartDate);\r\n }\r\n }",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"public void setM_Production_ID (int M_Production_ID);",
"public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }",
"public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }",
"public void set(long j, CoreMorphComponent coreMorphComponent) {\r\n CoreJni.setInCoreMorphComponentManager0(this.agpCptrMorphComponentMgr, this, j, CoreMorphComponent.getCptr(coreMorphComponent), coreMorphComponent);\r\n }",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"private void assignComponents() {\r\n if (myTask != null) {\r\n textFieldName.setText(myTask.getName());\r\n textFieldDescription.setText(myTask.getDescription());\r\n textFieldDueDate.setText(myTask.getDueDate().toString());\r\n comboPriority.setSelectedItem(myTask.getPriority());\r\n } else {\r\n textFieldName.setText(null);\r\n textFieldDescription.setText(null);\r\n textFieldDueDate.setText(null);\r\n comboPriority.setSelectedItem(-1);\r\n }\r\n }",
"public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n lblTitle = new javax.swing.JLabel();\n lblCompanyLogo = new javax.swing.JLabel();\n lblYourJobs = new javax.swing.JLabel();\n scrollTableYourJob = new javax.swing.JScrollPane();\n tblYourJob = new javax.swing.JTable();\n lblPendingJobs = new javax.swing.JLabel();\n lblJobTitle = new javax.swing.JLabel();\n lblJobNo = new javax.swing.JLabel();\n txtJobNo = new javax.swing.JTextField();\n lblJobStatus = new javax.swing.JLabel();\n cdJobStatus = new javax.swing.JComboBox<>();\n lblDateBooked = new javax.swing.JLabel();\n txtDateBooked = new javax.swing.JTextField();\n lblJobDescription = new javax.swing.JLabel();\n scrollJobDescription = new javax.swing.JScrollPane();\n txtJobDescription = new javax.swing.JTextArea();\n lblMake = new javax.swing.JLabel();\n txtMake = new javax.swing.JTextField();\n lblModel = new javax.swing.JLabel();\n txtModel = new javax.swing.JTextField();\n lblVehicleRegNo = new javax.swing.JLabel();\n txtVehicleRegNo = new javax.swing.JTextField();\n lblCustomerName = new javax.swing.JLabel();\n txtCustomerName = new javax.swing.JTextField();\n lblTelephoneNo = new javax.swing.JLabel();\n txtTelephoneNo = new javax.swing.JTextField();\n btnAlterJob = new javax.swing.JButton();\n scrollTablePendingJob = new javax.swing.JScrollPane();\n tblPendingJob = new javax.swing.JTable();\n btnRemoveStaff = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n lblTitle.setBackground(new java.awt.Color(0, 0, 0));\n lblTitle.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 30)); // NOI18N\n lblTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblTitle.setText(\"Mechanic Dashboard\");\n\n lblCompanyLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Image/companyLogo.jpg\"))); // NOI18N\n\n lblYourJobs.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 24)); // NOI18N\n lblYourJobs.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblYourJobs.setText(\"Your Jobs\");\n\n tblYourJob.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n tblYourJob.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null}\n },\n new String [] {\n \"Job Number\", \"Description\", \"Status\", \"Mechanic\", \"Customer\", \"Start Date\", \"End Date\", \"Duration\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, true, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tblYourJob.setGridColor(new java.awt.Color(255, 255, 255));\n tblYourJob.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n tblYourJobFocusGained(evt);\n }\n });\n tblYourJob.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tblYourJobMouseClicked(evt);\n }\n });\n tblYourJob.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tblYourJobKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tblYourJobKeyTyped(evt);\n }\n });\n scrollTableYourJob.setViewportView(tblYourJob);\n\n lblPendingJobs.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 24)); // NOI18N\n lblPendingJobs.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblPendingJobs.setText(\"Pending Jobs\");\n\n lblJobTitle.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 24)); // NOI18N\n lblJobTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblJobTitle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Image/jobIcon.png\"))); // NOI18N\n lblJobTitle.setText(\"Job Detail\");\n\n lblJobNo.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblJobNo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblJobNo.setText(\"Job No:\");\n\n txtJobNo.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 15)); // NOI18N\n\n lblJobStatus.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblJobStatus.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblJobStatus.setText(\"Job Status:\");\n\n cdJobStatus.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 15)); // NOI18N\n cdJobStatus.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pending\", \"Active\", \"Complete\" }));\n\n lblDateBooked.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblDateBooked.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblDateBooked.setText(\"Date Booked:\");\n\n txtDateBooked.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 15)); // NOI18N\n\n lblJobDescription.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblJobDescription.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblJobDescription.setText(\"Job Description:\");\n\n txtJobDescription.setEditable(false);\n txtJobDescription.setColumns(20);\n txtJobDescription.setRows(5);\n scrollJobDescription.setViewportView(txtJobDescription);\n\n lblMake.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblMake.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblMake.setText(\"Make:\");\n\n txtMake.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 15)); // NOI18N\n\n lblModel.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblModel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblModel.setText(\"Model:\");\n\n txtModel.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 15)); // NOI18N\n\n lblVehicleRegNo.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblVehicleRegNo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblVehicleRegNo.setText(\"Vehicle Registration No:\");\n\n txtVehicleRegNo.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 15)); // NOI18N\n\n lblCustomerName.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblCustomerName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblCustomerName.setText(\"Customer Name:\");\n\n txtCustomerName.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 15)); // NOI18N\n\n lblTelephoneNo.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 18)); // NOI18N\n lblTelephoneNo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblTelephoneNo.setText(\"Telephone Number:\");\n\n txtTelephoneNo.setFont(new java.awt.Font(\"Segoe UI Light\", 0, 15)); // NOI18N\n\n btnAlterJob.setBackground(new java.awt.Color(255, 255, 255));\n btnAlterJob.setText(\"Alter Job\");\n\n tblPendingJob.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n tblPendingJob.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null}\n },\n new String [] {\n \"Job Number\", \"Description\", \"Status\", \"Mechanic\", \"Customer\", \"Start Date\", \"End Date\", \"Duration\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, true, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tblPendingJob.setGridColor(new java.awt.Color(255, 255, 255));\n tblPendingJob.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n tblPendingJobFocusGained(evt);\n }\n });\n tblPendingJob.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tblPendingJobMouseClicked(evt);\n }\n });\n tblPendingJob.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tblPendingJobKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n tblPendingJobKeyTyped(evt);\n }\n });\n scrollTablePendingJob.setViewportView(tblPendingJob);\n\n btnRemoveStaff.setBackground(new java.awt.Color(255, 255, 255));\n btnRemoveStaff.setText(\"Pick Job\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblYourJobs)\n .addGap(460, 460, 460)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblJobStatus)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cdJobStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(lblDateBooked)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDateBooked, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE))\n .addComponent(lblJobTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 389, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(scrollTablePendingJob, javax.swing.GroupLayout.PREFERRED_SIZE, 482, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblVehicleRegNo)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(lblCustomerName)\n .addGap(57, 57, 57)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblTelephoneNo)\n .addGap(33, 33, 33)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtTelephoneNo, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCustomerName, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtVehicleRegNo, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(lblMake)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtMake, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblModel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtModel, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblJobDescription)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(scrollJobDescription))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnRemoveStaff, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(scrollTableYourJob, javax.swing.GroupLayout.PREFERRED_SIZE, 482, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(162, 162, 162)\n .addComponent(lblJobNo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtJobNo, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lblPendingJobs))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(83, 83, 83))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblTitle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnAlterJob, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblCompanyLogo)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblTitle)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblYourJobs)\n .addComponent(lblJobTitle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(6, 6, 6)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblJobNo)\n .addComponent(txtJobNo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDateBooked)\n .addComponent(txtDateBooked, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblJobStatus)\n .addComponent(cdJobStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblJobDescription)\n .addComponent(scrollJobDescription, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(scrollTableYourJob, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addComponent(lblPendingJobs)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblMake)\n .addComponent(lblModel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtMake, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtModel, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(4, 4, 4)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(txtVehicleRegNo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCustomerName, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtTelephoneNo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnAlterJob, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(19, 19, 19))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblVehicleRegNo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblCustomerName)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblTelephoneNo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnRemoveStaff, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(scrollTablePendingJob, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(59, 59, 59))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(lblCompanyLogo)))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public void setJob(String job) {\n this.job = job;\n }",
"public static void EmployeeJob() {\r\n\t\t\r\n\t\tJLabel e4 = new JLabel(\"Employee's Job:\");\r\n\t\te4.setFont(f);\r\n\t\tGUI1Panel.add(e4);\r\n\t\tGUI1Panel.add(employeeJobType);\r\n\t\te4.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t}",
"private void butEditFeeSched_Click(Object sender, System.EventArgs e) throws Exception {\n long selectedSched = 0;\n if (listFeeSched.SelectedIndex != -1)\n {\n selectedSched = FeeSchedC.getListShort()[listFeeSched.SelectedIndex].FeeSchedNum;\n }\n \n FormFeeScheds FormF = new FormFeeScheds();\n FormF.ShowDialog();\n DataValid.setInvalid(InvalidType.FeeScheds,InvalidType.Fees,InvalidType.ProcCodes);\n //Fees.Refresh();\n //ProcedureCodes.RefreshCache();\n changed = true;\n fillFeeSchedules();\n for (int i = 0;i < FeeSchedC.getListShort().Count;i++)\n {\n if (FeeSchedC.getListShort()[i].FeeSchedNum == selectedSched)\n {\n listFeeSched.SelectedIndex = i;\n }\n \n }\n fillGrid();\n SecurityLogs.MakeLogEntry(Permissions.Setup, 0, \"Fee Schedules\");\n }",
"public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }",
"public void setEditCalSuiteName(final String val) {\n editCalSuiteName = val;\n }",
"private void setUi(JCpgUI jCpgUIReference){\n\t\t\n\t\tthis.ui = jCpgUIReference;\n\t\t\n\t}",
"public void setChiefEditor(String value) {\n setAttributeInternal(CHIEFEDITOR, value);\n }",
"public void setJob_TM(String job_TM) {\r\n this.job_TM = job_TM;\r\n }",
"public abstract void setCompteId(Integer pCompteId);",
"public void setOptionsPanelComponent(SelectableComponent sc){\r\n // Protect options panel from badly created components\r\n if(sc != null){\r\n this.sc = sc;\r\n titleLabel.setText((getActiveCircuit().getActiveComponents().contains(sc))?titleOld:titleNew);\r\n typeLabel.setText(sc.getName());\r\n if(!(sc instanceof ui.command.SubcircuitOpenCommand.SubcircuitComponent)){\r\n optionsPanel.setVisible(true);\r\n if(sc instanceof VisualComponent){\r\n AttributesPanel.removeAll();\r\n JPanel test = sc.getOptionsPanel();\r\n AttributesPanel.add(test, BorderLayout.NORTH);\r\n ((PreviewPanel)Preview).setComponent(sc);\r\n AttributesPanel.repaint();\r\n Preview.repaint();\r\n AttributesPanel.setPreferredSize(test.getSize());\r\n Toolbox.revalidate();\r\n }\r\n } \r\n getActiveCircuit().repaint();\r\n } else {\r\n ErrorHandler.newError(\"Options Panel Error\",\r\n \"The component that you are trying to create or select is malformed.\");\r\n }\r\n }",
"public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }",
"private void initIMR_GuiBean() {\n\n imrGuiBean = new IMR_GuiBean(this);\n imrGuiBean.getParameterEditor(imrGuiBean.IMR_PARAM_NAME).getParameter().addParameterChangeListener(this);\n // show this gui bean the JPanel\n imrPanel.add(this.imrGuiBean,new GridBagConstraints( 0, 0, 1, 1, 1.0, 1.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH, defaultInsets, 0, 0 ));\n //sets the Intensity measure for the IMR\n imrGuiBean.getSelectedIMR_Instance().setIntensityMeasure(this.SA_NAME);\n //initialise the SA Peroid values for the IMR\n this.getSA_PeriodForIMR(imrGuiBean.getSelectedIMR_Instance());\n }",
"public Builder setJobs(\n int index, cb.Careerbuilder.Job value) {\n if (jobsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureJobsIsMutable();\n jobs_.set(index, value);\n onChanged();\n } else {\n jobsBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public Recruit() {\n initComponents();\n cemid.setText(currentEmployee.getId());\n }",
"private void formMessageOnChange(YFCDocument calenderDetailXml) {\n\t\tString sProd = \"PROD\";\t\t\n\t\tYFCElement docCalenderDetail=calenderDetailXml.getDocumentElement();\n\t\tYFCDocument docGetResPoolCapcityDetails=YFCDocument.createDocument(XMLLiterals.RESOURCE_POOL);\n\t YFCElement eleResourcePool=docGetResPoolCapcityDetails.getDocumentElement();\n\t eleResourcePool.setAttribute(XMLLiterals.CAPACITYORGCODE, XMLLiterals.INDIGO_CA);\n\t eleResourcePool.setAttribute(XMLLiterals.RESOURCE_POOL_ID,docCalenderDetail.getAttribute(XMLLiterals.ORGANIZATION_CODE)+POOLID);\n\t eleResourcePool.setAttribute(XMLLiterals.PROVIDER_ORGANIZATION_CODE,XMLLiterals.INDIGO_CA);\n\t eleResourcePool.setAttribute(XMLLiterals.NODE,docCalenderDetail.getAttribute(XMLLiterals.ORGANIZATION_CODE));\n\t eleResourcePool.setAttribute(XMLLiterals.ITEM_GROUP_CODE,sProd);\n\t\tinvokeYantraService(INDG_GET_RESOURCE_POOL_CAPACITY , docGetResPoolCapcityDetails);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n job_catagory = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n job_fulltime = new javax.swing.JRadioButton();\n job_parttime = new javax.swing.JRadioButton();\n job_vacancy = new javax.swing.JTextField();\n job_salary = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n job_age = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n job_req = new javax.swing.JTextArea();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n job_fee = new javax.swing.JTextField();\n job_loc = new javax.swing.JComboBox<>();\n post_btn = new javax.swing.JButton();\n last_date = new com.toedter.calendar.JDateChooser();\n jLabel9 = new javax.swing.JLabel();\n cancel = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setPreferredSize(new java.awt.Dimension(1100, 700));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 153, 0));\n jLabel1.setText(\"Job Catagory:\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 160, -1, -1));\n\n job_catagory.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Accounting\", \"Bank\", \"Education\", \"Engineer\", \"HR\", \"IT\", \"Marketing\", \"Others\" }));\n jPanel1.add(job_catagory, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 160, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 153, 0));\n jLabel2.setText(\" Requirements : \");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 220, -1, 40));\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 153, 0));\n jLabel3.setText(\"Employment Status : \");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 300, -1, 20));\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 153, 0));\n jLabel4.setText(\"Vacancy : \");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 340, -1, 20));\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 153, 0));\n jLabel5.setText(\"Salary Range : \");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 500, -1, 20));\n\n buttonGroup1.add(job_fulltime);\n job_fulltime.setText(\"Full Time\");\n jPanel1.add(job_fulltime, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 300, -1, -1));\n\n buttonGroup1.add(job_parttime);\n job_parttime.setText(\"Part Time\");\n jPanel1.add(job_parttime, new org.netbeans.lib.awtextra.AbsoluteConstraints(890, 300, -1, -1));\n jPanel1.add(job_vacancy, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 340, 160, -1));\n jPanel1.add(job_salary, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 500, 160, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 153, 0));\n jLabel6.setText(\"Age Range:\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(730, 540, -1, 20));\n jPanel1.add(job_age, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 540, 160, -1));\n\n job_req.setColumns(20);\n job_req.setRows(5);\n jScrollPane1.setViewportView(job_req);\n\n jPanel1.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 200, 190, 80));\n\n jLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 153, 0));\n jLabel7.setText(\"Form fee : \");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 420, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 153, 0));\n jLabel8.setText(\"Job Location : \");\n jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 460, -1, 20));\n\n job_fee.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n job_feeActionPerformed(evt);\n }\n });\n jPanel1.add(job_fee, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 420, 160, -1));\n\n job_loc.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Dhaka\", \"Barisal\", \"Chittagong \", \"Khulna \", \"Mymensingh\", \"Rajshahi\", \"Sylhet\", \"Rangpur\" }));\n jPanel1.add(job_loc, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 460, -1, -1));\n\n post_btn.setBackground(new java.awt.Color(0, 0, 0));\n post_btn.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n post_btn.setForeground(new java.awt.Color(255, 153, 0));\n post_btn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/job_portal/job.png\"))); // NOI18N\n post_btn.setText(\"Post Job\");\n post_btn.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(255, 153, 0)));\n post_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n post_btnActionPerformed(evt);\n }\n });\n jPanel1.add(post_btn, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 595, 110, 40));\n jPanel1.add(last_date, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 380, 160, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Times New Roman\", 1, 13)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 153, 0));\n jLabel9.setText(\"Application last date:\");\n jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 380, -1, -1));\n\n cancel.setBackground(new java.awt.Color(0, 0, 0));\n cancel.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n cancel.setForeground(new java.awt.Color(255, 255, 255));\n cancel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/job_portal/Close.png\"))); // NOI18N\n cancel.setText(\"Cancel\");\n cancel.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(255, 153, 0)));\n cancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelActionPerformed(evt);\n }\n });\n jPanel1.add(cancel, new org.netbeans.lib.awtextra.AbsoluteConstraints(840, 595, 120, 40));\n\n jLabel11.setFont(new java.awt.Font(\"TATU\", 1, 24)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 153, 0));\n jLabel11.setText(\" Job Posting Information\");\n jLabel11.setBorder(javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, new java.awt.Color(0, 0, 0)));\n jPanel1.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 80, 390, 40));\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/job_portal/job recruitment.jpg\"))); // NOI18N\n jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1100, -1));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }",
"public void setCompany(Company aCompany) {\n company = aCompany;\n }",
"public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}",
"public void setJobDesc(String jobDesc)\n\t{\n\t\tthis.jobDesc = Toolbox.trim(jobDesc, 4);\n\t}",
"public void designerStateModified(DesignerEvent e);",
"private void setClassroom(SmClassroom schClrId) {\n m_classroom = schClrId;\n jcbRooms.setSelectedItem(schClrId);\n }",
"private void setDataForTicket(){\n int rowId = ticketGui.getSelectedRowId();\n Ticket ticket = controller.getTicketById(rowId);\n\n // setting the data from the ticket i got to the popup gui\n clientNameTextField.setText(ticket.getClientName());\n starIdTextField.setText(ticket.getStarId());\n emailTextField.setText(ticket.getEmail());\n phoneNumberTextField.setText(ticket.getPhoneNumber());\n deviceModelTextField.setText(ticket.getModel());\n descriptionTextArea.setText(ticket.getDescription());\n clubMemberNameTextField.setText(ticket.getMemberName());\n resolutionTextArea.setText(ticket.getResolution());\n\n }",
"private void actionChangedEstimatorSettingsManual ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(true);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(true);\r\n\t}",
"public void set(String value){\n switch (field){\n case 0:\n nomComplet = value;\n break;\n case 1:\n rv1 = value;\n break;\n case 2:\n dateDispo = LocalDate.parse(value,formatter);\n break;\n case 3:\n competencePrincipale = value;\n break;\n case 4:\n exp = Double.parseDouble(value);\n break;\n case 5:\n trancheExp = value;\n break;\n case 6:\n ecole = value;\n break;\n case 7:\n classeEcole = value;\n break;\n case 8:\n fonctions = value;\n break;\n case 9:\n dateRV1 = LocalDate.parse(value,formatter);\n case 10:\n rv2 = value;\n break;\n case 11:\n metiers = value;\n break;\n case 12:\n originePiste = value;\n break;\n }\n field++;\n }",
"public void setMesSeleccionado(Mes mesSeleccionado)\r\n/* 177: */ {\r\n/* 178:221 */ this.mesSeleccionado = mesSeleccionado;\r\n/* 179: */ }",
"public void SetDefautValueCombo(Item item) \n {\n this.defautValueCombo=item;\n ;\n }",
"public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }",
"public GoldsHeadWorkAreaJPanel(JPanel userProcessContainer, Enterprise enterprise, EcoSystem business , Organization organization) {\n initComponents();\n this.userProcessContainer = userProcessContainer;\n this.enterprise = enterprise;\n this.system = business;\n this.organization = organization;\n intQ = EcoSystem.getInstance().getIntQ();\n valueLabel.setText(enterprise.getName());\n }",
"public SupplierWorkAreaJPanel(JPanel userProcessContainer,UserAccount account,SupplierOrganization organization,Enterprise enterprise,Business.EcoSystem s) {\r\n initComponents();\r\n this.userProcessContainer = userProcessContainer;\r\n this.organization=organization;\r\n this.account=account;\r\n this.enterprise=enterprise;\r\n this.s=s;\r\n valueLabel.setText(enterprise.getName());\r\n popComboBox();\r\n }",
"public void setOrgScheduleController(){\n setChanged();\n notifyObservers(orgScheduleController);\n }",
"public New_Consultancy_job_JPanel(JPanel userProcessContainer,UserAccount useraccount,Enterprise enterprise,EcoSystem business) {\n initComponents();\n this.userProcessContainer = userProcessContainer;\n this.enterprise=enterprise;\n this.business = business;\n this.userAccount = useraccount;\n populateNetwork();\n }",
"@IcalProperty(pindex = PropertyInfoIndex.CALSUITE,\n jname = \"calSuite\",\n eventProperty = true,\n todoProperty = true,\n vpollProperty = true\n )\n @NoProxy\n public void setCalSuite(final String val) {\n replaceXproperty(BwXproperty.bedeworkCalsuite, val);\n }",
"public void setC_BPartner_ID (int C_BPartner_ID);",
"public ComboBoxDataObject getJob_Difficulty() {\r\n return job_Difficulty;\r\n }",
"public Builder setJobs(\n int index, cb.Careerbuilder.Job.Builder builderForValue) {\n if (jobsBuilder_ == null) {\n ensureJobsIsMutable();\n jobs_.set(index, builderForValue.build());\n onChanged();\n } else {\n jobsBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public void setEditorValue(Object value) {\r\n\t \tif(value == null)\r\n\t \t{\r\n\t \t this.setText(\"\");\r\n\t \t return;\r\n\t \t}\r\n\t\tthis.setText(value.toString());\r\n\t}",
"public void setUIComponent(Component c) {}",
"public void setDesignation(String Designation)\n\t{ f_Designation=Designation; }",
"public void setSchedulerName(String schedulerName)\r\n/* 20: */ {\r\n/* 21: 58 */ this.schedulerName = schedulerName;\r\n/* 22: */ }",
"public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void setar_campos() {\n int setar = tblEmpresas.getSelectedRow();\n txtEmpId.setText(tblEmpresas.getModel().getValueAt(setar, 0).toString());\n txtEmpNome.setText(tblEmpresas.getModel().getValueAt(setar, 1).toString());\n txtEmpCNPJ.setText(tblEmpresas.getModel().getValueAt(setar, 2).toString());\n txtEmpEnd.setText(tblEmpresas.getModel().getValueAt(setar, 3).toString());\n txtEmpTel.setText(tblEmpresas.getModel().getValueAt(setar, 4).toString());\n txtEmpEmail.setText(tblEmpresas.getModel().getValueAt(setar, 5).toString());\n\n // a linha abaixo desabilita o botao add\n btnAdicionar.setEnabled(false);\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void setManagingComponent(ProjectComponent pc) {\n this.managingPc = pc;\n }",
"@Override\n\tpublic void setSolverExe(String solverExe) {\n\t\tmodel.setSolverExe(solverExe);\n\t}",
"public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }",
"public void setCombo(Object newValue);",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n stat = new javax.swing.JComboBox<>();\n manu = new javax.swing.JComboBox<>();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n submit = new javax.swing.JButton();\n jSeparator3 = new javax.swing.JSeparator();\n dept = new javax.swing.JComboBox<>();\n Date = new org.jdesktop.swingx.JXDatePicker();\n jLabel2 = new javax.swing.JLabel();\n machrefno = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n machname = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n btnEdit = new javax.swing.JButton();\n error = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setMinimumSize(new java.awt.Dimension(514, 482));\n jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setText(\"Add Machine\");\n jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 13, 372, -1));\n\n jSeparator2.setBackground(new java.awt.Color(204, 204, 204));\n jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 490, 13));\n\n jLabel3.setText(\"Machine Ref no\");\n jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 50, 110, 35));\n\n jLabel4.setText(\"Manufacturer\");\n jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 150, -1, 35));\n\n stat.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Brand New\", \"Used One\" }));\n stat.setSelectedIndex(-1);\n jPanel1.add(stat, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 320, 180, 25));\n\n manu.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Electrolux\", \"Speed Queen\", \"Whirlpool\", \"Unimac\", \"Magtag\", \"Wascomat\" }));\n manu.setSelectedIndex(-1);\n jPanel1.add(manu, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 150, 180, 25));\n\n jLabel6.setText(\"Department\");\n jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 270, 90, 35));\n\n jLabel7.setText(\"Status\");\n jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 320, 50, 35));\n\n submit.setBackground(new java.awt.Color(0, 0, 255));\n submit.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n submit.setForeground(new java.awt.Color(255, 255, 255));\n submit.setText(\"Add Machine\");\n submit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n submitActionPerformed(evt);\n }\n });\n jPanel1.add(submit, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 410, 140, 40));\n\n jSeparator3.setBackground(new java.awt.Color(204, 204, 204));\n jPanel1.add(jSeparator3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 490, 13));\n\n dept.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"B/W Qc\", \"Washing \", \"Hydro \", \"Wet Qc\", \"Drying \", \"Cool drying\", \"Chemicals\", \"A/W Qc\" }));\n dept.setSelectedIndex(-1);\n jPanel1.add(dept, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 270, 180, 25));\n jPanel1.add(Date, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 210, 180, -1));\n\n jLabel2.setText(\"Date of purchase\");\n jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 220, -1, -1));\n\n machrefno.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n machrefnoActionPerformed(evt);\n }\n });\n jPanel1.add(machrefno, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 60, 180, 25));\n\n jLabel5.setText(\"Machine Name\");\n jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 110, -1, -1));\n\n machname.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n machnameActionPerformed(evt);\n }\n });\n jPanel1.add(machname, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 110, 180, 25));\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ITP/Images/Minimize.png\"))); // NOI18N\n jLabel14.setText(\"jLabel14\");\n jLabel14.setMaximumSize(new java.awt.Dimension(30, 30));\n jLabel14.setMinimumSize(new java.awt.Dimension(30, 30));\n jLabel14.setPreferredSize(new java.awt.Dimension(30, 30));\n jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel14MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(455, 0, -1, -1));\n\n jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ITP/Images/Close.png\"))); // NOI18N\n jLabel17.setText(\"jLabel14\");\n jLabel17.setMaximumSize(new java.awt.Dimension(30, 30));\n jLabel17.setMinimumSize(new java.awt.Dimension(30, 30));\n jLabel17.setPreferredSize(new java.awt.Dimension(30, 30));\n jLabel17.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel17MouseClicked(evt);\n }\n });\n jPanel1.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(485, 0, -1, -1));\n\n btnEdit.setBackground(new java.awt.Color(0, 0, 255));\n btnEdit.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnEdit.setForeground(new java.awt.Color(255, 255, 255));\n btnEdit.setText(\"Edit Machine\");\n btnEdit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEditActionPerformed(evt);\n }\n });\n jPanel1.add(btnEdit, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 410, 140, 40));\n\n error.setForeground(new java.awt.Color(255, 0, 0));\n jPanel1.add(error, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 364, 290, 30));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 460, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public void setBBSStepContent(BBSStep itsStep,BBSStep itsParentBBSStep) {\n \n if(itsStep != null && itsParentBBSStep == null){\n //modify a step\n fillBBSGui(itsStep);\n stepExplorerStepNameText.setEditable(false);\n itsBBSStep = itsStep;\n this.stepExplorerRevertButton.setEnabled(true);\n \n }else if(itsStep == null && itsParentBBSStep != null){\n //creating a new step under a given parent step\n this.itsParentBBSStep = itsParentBBSStep;\n //fill the GUI with the current values of the parent in which the\n //new step will be situated to ease data entry...\n fillBBSGui(itsParentBBSStep);\n stepExplorerStepNameText.setText(\"\");\n \n this.stepExplorerRevertButton.setEnabled(false);\n \n }else if (itsStep ==null && itsParentBBSStep == null){\n //assume a new strategy step will be generated\n this.stepExplorerRevertButton.setEnabled(false);\n }\n }",
"public void setCodProd(IProduto codigo);",
"public AssignScheduleForm(Object obj, String title, String message, int actionId) {\r\n super(CoeusGuiConstants.getMDIForm(), title,true);\r\n this.actionId = actionId;\r\n this.message = message;\r\n this.vData = (Vector)obj;\r\n initComponents();\r\n actionComponentSettings();\r\n txtCommiteeId.setText((String)vData.get(0));\r\n txtCommitteeName.setText((String)vData.get(1));\r\n registerListeners();\r\n btnCommittee.requestFocusInWindow();\r\n show();\r\n }",
"public void setFieldDetails(){\n if (this.project != null){\n projectTitleField.setText( project.getTitle() );\n projectDescriptionField.setText( project.getDescription() );\n colorThemeField.setValue( Color.valueOf(project.getColorTheme()) );\n dueDateField.setValue( project.getDueDate() );\n createProjectBtn.setText( \"Update Project\" );\n }\n\n }",
"public final void setUiTestReqEditModel(UITestReqEditModel uiTestReqEditModel) {\r\n\t\tthis.uiTestReqEditModel = uiTestReqEditModel;\r\n\t}",
"public void estableceEquipoComputo() {\n\tsetDispositivo(JOptionPane.showInputDialog(\"Ingrese el nombre del dispositivo a adquirir\"));\n\tsetComercio(JOptionPane.showInputDialog(\"Ingrese el nombre del comercio donde lo comprara\"));\n}",
"public AnalystCompanyEdit() {\n initComponents();\n MySQLConnect myc = new MySQLConnect();\n Connection con = (Connection) myc.getConn();\n ResultSet rs = null;\n showTableData();\n setLocationRelativeTo(null);\n \n }",
"public CutKey(SwingDesigner designer) {\n this.designer=designer;\n }",
"public void edit(MakerBean maker) {\n\t\t\t\t\r\n\t\ttry {\r\n\r\n\t\t\tString query = (\"Update tb_maker \"+\r\n\t\t\t\t\t\"Set maker_name=?, \"+\r\n\t\t\t\t\t\"maker_tel=?, \"+\r\n\t\t\t\t\t\"maker_contactName=?, \"+\r\n\t\t\t\t\t\"maker_contactLastName=?, \"+\r\n\t\t\t\t\t\"maker_address1=?, \"+\r\n\t\t\t\t\t\"maker_province=?, \"+\r\n\t\t\t\t\t\"maker_email=?, \"+\r\n\t\t\t\t\t\"activeFlag=?, \"+\r\n\t\t\t\t\t\"updateBy=?, \"+\r\n\t\t\t\t\t\"updateDate=getdate() \"+\r\n\t\t\t\t\t\"where 1=1 \"+\r\n\t\t\t\t\t\"and maker_ID=? \");\r\n\t \t\r\n\t\t\tint updateRecord = jdbcTemplate.update(query,\r\n\t \t\t\tnew Object[] { \r\n\t \t\t\t\t\tmaker.getMaker_name(),\r\n\t \t\t\t\t\tmaker.getMaker_tel(),\r\n\t \t\t\t\t\tmaker.getMaker_contactName(),\r\n\t \t\t\t\t\tmaker.getMaker_contactLastName(),\r\n\t \t\t\t\t\tmaker.getMaker_address1(),\r\n\t \t\t\t\t\tmaker.getMaker_province(),\r\n\t \t\t\t\t\tmaker.getMaker_email(),\r\n\t \t\t\t\t\tmaker.getActiveFlag(),\r\n\t \t\t\t\t\tmaker.getUpdateBy(),\r\n\t \t\t\t\t\tmaker.getMaker_ID()\r\n\t \t\t\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}",
"public void setComponent(ElementView jc) {\n\t\tthis.jc = jc;\n\t}",
"private void setValueForEditAddrss() {\n ServiceCaller serviceCaller = new ServiceCaller(context);\n serviceCaller.callGetAllAddressByIdService(addressid, new IAsyncWorkCompletedCallback() {\n @Override\n public void onDone(String workName, boolean isComplete) {\n if (isComplete) {\n if (!workName.trim().equalsIgnoreCase(\"no\") && !workName.equalsIgnoreCase(\"\")) {\n ContentDataAsArray contentDataAsArray = new Gson().fromJson(workName, ContentDataAsArray.class);\n for (Data data : contentDataAsArray.getData()) {\n if (data != null) {\n edt_name.setText(data.getName());\n edt_phone.setText(data.getPhone());\n edt_landmark.setText(data.getLandmark());\n edt_address.setText(data.getAddress());\n edt_city.setText(data.getCity());\n edt_state.setText(data.getState());\n }\n }\n }\n }\n }\n });\n\n }"
] |
[
"0.7046649",
"0.63825315",
"0.63006604",
"0.6233617",
"0.6175659",
"0.6057684",
"0.6021867",
"0.60115767",
"0.57779676",
"0.57361865",
"0.5718128",
"0.569476",
"0.5648352",
"0.56222063",
"0.5619943",
"0.558917",
"0.5586459",
"0.5556508",
"0.5475891",
"0.5468383",
"0.5449356",
"0.5367532",
"0.5280188",
"0.5276339",
"0.52699965",
"0.52619064",
"0.52615607",
"0.52613753",
"0.52457523",
"0.5235863",
"0.52336085",
"0.5224253",
"0.5221672",
"0.5216207",
"0.52100414",
"0.51970917",
"0.5194962",
"0.518652",
"0.51845974",
"0.5170386",
"0.51488364",
"0.5147763",
"0.5145029",
"0.511133",
"0.51032203",
"0.50980073",
"0.50915605",
"0.50680953",
"0.50623685",
"0.50558853",
"0.5054895",
"0.5050167",
"0.50499266",
"0.5049691",
"0.5047445",
"0.5038225",
"0.5025122",
"0.50216144",
"0.5000284",
"0.49969456",
"0.4994603",
"0.49934307",
"0.49924877",
"0.4992176",
"0.49911407",
"0.49902806",
"0.49767268",
"0.49679986",
"0.49646097",
"0.49515137",
"0.4929517",
"0.4926128",
"0.4924179",
"0.49210685",
"0.49184573",
"0.4914064",
"0.49081558",
"0.4907208",
"0.49028984",
"0.49028626",
"0.48996854",
"0.48982266",
"0.4893517",
"0.48832434",
"0.48766598",
"0.48652297",
"0.48641908",
"0.48612678",
"0.4858515",
"0.4855211",
"0.4853697",
"0.4853187",
"0.48507246",
"0.48505038",
"0.48412895",
"0.48375773",
"0.48326156",
"0.48295158",
"0.48277447",
"0.4827429"
] |
0.8220909
|
0
|
Get the value of job_StatusCheck
|
public StatusCheckDataObject getJob_StatusCheck() {
return job_StatusCheck;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getJobStatus(int jNo);",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public Integer getJobStatus() {\n return jobStatus;\n }",
"public JobStatus getStatus();",
"public String getCheckStatus() {\r\n return checkStatus;\r\n }",
"@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}",
"public String getCheckStatus() {\n\t\treturn checkStatus;\n\t}",
"public String getCheckStatus() {\n\t\treturn checkStatus;\n\t}",
"public String getJobStatus(Job job) throws IOException,\n\t\t\tClassNotFoundException {\n\t\tjob = get(Job.class, job.getID());\n\t\treturn job.getStatus();\n\t}",
"public String getToolcheckstatus() {\r\n return toolcheckstatus;\r\n }",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"int getStatusValue();",
"public String jobOperatorQueryJobExecutionStatus(long key, String requestedStatus){\r\n\t\t\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\tResultSet rs = null;\r\n\t\tString status;\r\n\t\tObjectInputStream objectIn = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(\"select \" + requestedStatus + \" from executioninstancedata where id = ?\");\r\n\t\t\tstatement.setObject(1, key);\r\n\t\t\trs = statement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tbyte[] buf = rs.getBytes(requestedStatus);\r\n\t\t\t\tif (buf != null) {\r\n\t\t\t\t\tobjectIn = new ObjectInputStream(new ByteArrayInputStream(buf));\r\n\t\t\t\t}\r\n\t\t\t\tstatus = (String) objectIn.readObject();\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tcleanupConnection(conn, rs, statement);\r\n\t\t}\r\n\t\t\r\n\t\t//return status;\r\n\t\treturn \"FIGURING OUT HOW TO GET A STRING FROM A BLOB\";\r\n\t}",
"java.lang.String getStatus();",
"java.lang.String getStatus();",
"java.lang.String getStatus();",
"java.lang.String getStatus();",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatus()\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(STATUS$12, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public int getStatusValue() {\n return status_;\n }",
"public long getStatus() {\r\n return status;\r\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"public JobStatus getJobStatus(String mdpjobid) {\n log.info(\"get job mdpjobid=\"+mdpjobid);\n JobStatus js = threaMap.get(mdpjobid);\n\n if(js == null) {\n js = new JobStatus();\n js.setMdpJobId(mdpjobid);\n js.setCompleteMessage(\"Not found MDP Job\");\n }else {\n js.getCompleteMessage();\n }\n\n log.info(mdpjobid+\"=\"+js.getCompleteMessage());\n\n if(!js.getCompleteMessage().equalsIgnoreCase(\"Process\")) {\n threaMap.remove(mdpjobid);\n }\n\n return js;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"@java.lang.Override public int getStatusValue() {\n return status_;\n }",
"Integer getStatus();",
"protected DrmJobStatus demoGetStatus() {\n return new DrmJobStatus.Builder()\n // the external job id\n .extJobId(\"EXT_01\")\n // the name of the job queue\n .queueId(\"job_queue_id\")\n // the date the job was submitted to the queue (Don't set this if the job has not been submitted)\n .submitTime(new Date())\n // the date the job started running on the queue (Don't set this if the job has not yet started)\n .startTime(new Date())\n // the date the job completed running (Don't set this if the job has not yet completed)\n .endTime(new Date())\n // the status code\n .jobState(DrmJobState.DONE)\n // the exit code of the job, '0' indicates success\n .exitCode(0)\n // the max memory usage in bytes (can also pass in a string such as \"2 Gb\")\n .memory(2000L)\n // the max swap space used by the job, can accept numBytes or a String (see above)\n .maxSwap(\"2 Gb\")\n // the CPU usage of the job\n .cpuTime(new CpuTime(1000L, TimeUnit.MILLISECONDS))\n // the max number of threads used by the job (Don't call this if not known)\n .maxThreads(1)\n // the max number of processes used by the job (Don't call this if not known)\n .maxProcesses(1)\n .build();\n }",
"public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}",
"public java.lang.String getStatus() {\r\n return status;\r\n }",
"public String getStatus () {\r\n return status;\r\n }",
"public String getStatus(){\r\n\t\treturn status;\r\n\t}",
"public java.lang.Object getStatus() {\n return status;\n }",
"public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}",
"public String getStatus() {\n return getProperty(Property.STATUS);\n }",
"public int getStatus(){\r\n\t\treturn this.status;\r\n\t}",
"public String getStatus() {\n return mBundle.getString(KEY_STATUS);\n }",
"public synchronized String getStatus(){\n\t\treturn status;\n\t}",
"public java.lang.String getStatus () {\r\n\t\treturn status;\r\n\t}",
"public java.lang.String getStatus() {\n java.lang.Object ref = status_;\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 status_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getStatus() {\n java.lang.Object ref = status_;\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 status_ = s;\n }\n return s;\n }\n }",
"public Integer getStatus() {\r\n return status;\r\n }",
"public Integer getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public java.lang.String getStatus() {\n java.lang.Object ref = status_;\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 status_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] |
[
"0.76049876",
"0.7487108",
"0.7487108",
"0.73720086",
"0.7332041",
"0.72465634",
"0.72376233",
"0.6983102",
"0.6983102",
"0.688619",
"0.6686945",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.66453546",
"0.6623046",
"0.6588772",
"0.6588772",
"0.6588772",
"0.6588772",
"0.6522867",
"0.6522867",
"0.6522867",
"0.6512701",
"0.6504291",
"0.64661026",
"0.64661026",
"0.64661026",
"0.64661026",
"0.64661026",
"0.64661026",
"0.64661026",
"0.6421219",
"0.6421219",
"0.6421219",
"0.6421219",
"0.640395",
"0.63658804",
"0.63658804",
"0.6365795",
"0.6365795",
"0.6365795",
"0.6365795",
"0.6365795",
"0.6365795",
"0.6365795",
"0.6365795",
"0.6359171",
"0.6340152",
"0.6340152",
"0.6340152",
"0.6340096",
"0.6340096",
"0.6340096",
"0.6340096",
"0.6340096",
"0.6340096",
"0.6340096",
"0.6335074",
"0.6332509",
"0.63292253",
"0.63259876",
"0.63259745",
"0.6323848",
"0.6300741",
"0.6294044",
"0.62883985",
"0.6286997",
"0.6271704",
"0.6270039",
"0.62700003",
"0.62665623",
"0.62620485",
"0.62545294",
"0.62539756",
"0.62539756",
"0.6253371",
"0.6253371",
"0.624765",
"0.624765",
"0.624765",
"0.624765",
"0.624765",
"0.6239893"
] |
0.79897434
|
0
|
Set the value of job_StatusCheck
|
public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {
this.job_StatusCheck = job_StatusCheck;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setJobStatus(Integer jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setStatus(JobStatus status);",
"public void setCheckStatus(String checkStatus) {\n\t\tthis.checkStatus = checkStatus;\n\t}",
"public void setCheckStatus(String checkStatus) {\n\t\tthis.checkStatus = checkStatus;\n\t}",
"@Override\n\tpublic void setJobStatus(int jobStatus) {\n\t\tmodel.setJobStatus(jobStatus);\n\t}",
"public StatusCheckDataObject getJob_StatusCheck() {\r\n return job_StatusCheck;\r\n }",
"public void setStatus(BatchStatus value) {\n this.status = value;\n }",
"public void setToolcheckstatus(String toolcheckstatus) {\r\n this.toolcheckstatus = toolcheckstatus;\r\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public void setCheckStatus(String checkStatus) {\r\n this.checkStatus = checkStatus == null ? null : checkStatus.trim();\r\n }",
"public void setStatus(JenkinsStatus status) {\n this.status = status;\n }",
"public void setStatus(int status)\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(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }",
"public String getCheckStatus() {\r\n return checkStatus;\r\n }",
"public void setStatus(Long Status) {\n this.Status = Status;\n }",
"void setStatus(TaskStatus status);",
"public void status(boolean b) {\n status = b;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"public JobBuilder status(String status) {\r\n job.setStatus(status);\r\n return this;\r\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(EPPNameVerificationStatus aStatus) {\n\t\tthis.status = aStatus;\n\t}",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public String getJobStatus() {\n return this.jobStatus;\n }",
"public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }",
"public Integer getJobStatus() {\n return jobStatus;\n }",
"public void setJobState(int jobState) {\n this.jobState = jobState;\n }",
"public void setStatus(boolean value) {\n this.status = value;\n }",
"public void setStatus(boolean value) {\n this.status = value;\n }",
"public void setStatus(java.lang.CharSequence value) {\n this.status = value;\n }",
"public int getJobStatus(int jNo);",
"public void setJobProgress(JobProgress jobProgress) {\n this.jobProgress = jobProgress;\n }",
"public void setDone(){\n this.status = \"Done\";\n }",
"public String getCheckStatus() {\n\t\treturn checkStatus;\n\t}",
"public String getCheckStatus() {\n\t\treturn checkStatus;\n\t}",
"public void setUpdatingTaskStatusUpdatesResourceStatus(boolean flag)\r\n {\r\n m_updatingTaskStatusUpdatesResourceStatus = flag;\r\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"@Test\n public void testSetStatus() {\n System.out.println(\"setStatus\");\n Member instance = member;\n \n String status = \"APPLIED\";\n instance.setStatus(status);\n \n String expResult = status;\n String result = instance.getStatus();\n \n assertEquals(expResult,result);\n }",
"public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}",
"public JobStatus getStatus();",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatusId(long statusId);",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public UpdateClassificationJobRequest withJobStatus(JobStatus jobStatus) {\n this.jobStatus = jobStatus.toString();\n return this;\n }",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public void setStatus(String Status) {\n this.Status = Status;\n }",
"public void setStatus(String Status) {\n this.Status = Status;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"public void setStatus(Boolean s){ status = s;}",
"public void setStatus(com.redknee.util.crmapi.soap.subscriptions.xsd._2010._06.BundleStatus param){\n localStatusTracker = true;\n \n this.localStatus=param;\n \n\n }",
"public void setStatus(String status) {\n\t\tthis.ticketStatus = status;\n\t}",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(int newStatus) {\n status = newStatus;\n }",
"public void setStatus(ProcessModelStatus status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) { this.status = status; }",
"public void setStatus(@NotNull Status status) { this.myStatus = status; }",
"public void testSetSubmissionStatus() throws Exception {\r\n Date startTime = new Date();\r\n for (int i = 0; i < 100; ++i) {\r\n services.setSubmissionStatus(100 + i, 1, \"tc\");\r\n }\r\n\r\n Date endTime = new Date();\r\n\r\n System.out.println(\"Executing setSubmissionStatus for 100 times takes \"\r\n + (endTime.getTime() - startTime.getTime()) + \" milliseconds\");\r\n\r\n }",
"public void setStatus(WorkflowInstanceStatus status) {\n this.status = status;\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public void setStatus( int pStatus )\r\n {\r\n mStatus = pStatus;\r\n }",
"public void setWorkflowStatus(String value) {\r\n setAttributeInternal(WORKFLOWSTATUS, value);\r\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"void setStatus(java.lang.String status);",
"public void setStatus(String newStatus)throws Exception{\n\t\t\n\t\tthis.status = newStatus;\n\t\toverWriteLine(\"Status\", newStatus);\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String value) {\r\n setAttributeInternal(STATUS, value);\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"@Test\n public void testSetStatus() {\n System.out.println(\"setStatus\");\n MyStatus status = null;\n Setting.setStatus(status);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void testSetSubmissionStatus() {\n try {\n sub.setSubmissionStatus(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }",
"public void setStatus(java.lang.String status) {\r\n this.status = status;\r\n }",
"public void setStatusValue(Integer statusValue)\r\n\t{\r\n\t\tstatus = WaterGasMeterStatusEnum.enumForValue(statusValue);\r\n\t}"
] |
[
"0.70200664",
"0.68279046",
"0.68279046",
"0.66795963",
"0.65370166",
"0.65370166",
"0.6485615",
"0.64798295",
"0.63833356",
"0.6142807",
"0.6139123",
"0.61073387",
"0.6085371",
"0.6069983",
"0.60458356",
"0.6009141",
"0.59958154",
"0.59915507",
"0.59813756",
"0.5979425",
"0.5953764",
"0.59415674",
"0.5915547",
"0.5915547",
"0.59123856",
"0.59090424",
"0.59090424",
"0.5899075",
"0.5886148",
"0.58368915",
"0.5833669",
"0.5819957",
"0.5819745",
"0.5819745",
"0.58001274",
"0.5788711",
"0.5781716",
"0.5778834",
"0.5778164",
"0.5778164",
"0.5761764",
"0.57547164",
"0.5742675",
"0.5741714",
"0.57303673",
"0.5723481",
"0.57137954",
"0.5708889",
"0.5708889",
"0.57030433",
"0.569935",
"0.56945735",
"0.56945735",
"0.56935644",
"0.5688097",
"0.5685853",
"0.5680787",
"0.5674433",
"0.56714875",
"0.5663712",
"0.5660635",
"0.5652594",
"0.56523126",
"0.5646779",
"0.5645496",
"0.5640201",
"0.56372416",
"0.56242865",
"0.5621842",
"0.5619806",
"0.5613968",
"0.5611139",
"0.5611139",
"0.5610486",
"0.5594633",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.5591908",
"0.55912715",
"0.5576535",
"0.5576535",
"0.5573399",
"0.55663556",
"0.55653787"
] |
0.8268779
|
0
|
Get the value of job_TM
|
public String getJob_TM() {
return job_TM;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setJob_TM(String job_TM) {\r\n this.job_TM = job_TM;\r\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public String getJob() {\n return job;\n }",
"public String getTjm() {\n return tjm;\n }",
"@Override\r\n\tpublic T getJob() {\n\t\treturn super.getJob();\r\n\t}",
"public String getCronValue() {\n\t\tList<SmsUrlCronJob> findAllCronJob = smsCronJobRepo.findAllCronJob();\n\t\tString result = null;\n\n\t\tList<SmsUrlCronJob> collectSmsUrl = findAllCronJob.stream()\n\t\t\t\t.filter(s -> s.getJobName().equalsIgnoreCase(\"SmsBranchTxnDailyJob\")).collect(Collectors.toList());\n\n\t\tfor (SmsUrlCronJob smsUrl : collectSmsUrl) {\n\t\t//\tlogger.info(\"branchTxnJob::22::getCronValue::\" + smsUrl.getCronTime());\n\t\t//\tlogger.info(\"Job Enable Status::::getCronValue::\" + smsUrl.getJobEnable());\n\n\t\t\tif (smsUrl.getJobEnable().equals(\"Y\")) {\n\t\t\t\tresult = smsUrl.getCronTime();\n\t\t\t} else {\n\t\t\t\tresult = smsUrl.getCronTime();\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public String getJobInfo() {\n return jobInfo;\n }",
"public int getJobNum()\n\t{\n\t\treturn jobNum;\n\t}",
"long getJobIDTarget();",
"public String getJobProperty() {\r\n return jobProperty;\r\n }",
"public java.lang.String getJobNumber() {\r\n return jobNumber;\r\n }",
"public BigDecimal getJOB_ID() {\r\n return JOB_ID;\r\n }",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public Job getJob();",
"public long getJobIDTarget() {\n return jobIDTarget_;\n }",
"public String getJob_location() {\r\n return job_location;\r\n }",
"public int getJobId() ;",
"public long getJobIDTarget() {\n return jobIDTarget_;\n }",
"public long getValue();",
"@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tint jobID();",
"public Long getJobID() {\n return jobID;\n }",
"private String jobs() {\r\n\t\tint[] j=tile.getJobs();\r\n\t\tString out = \"Jobs Are: \";\r\n\t\tfor(int i=0; i<j.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+(j[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"private int getT()\n\t{\n\t\tint numberT = Integer.parseInt(field2.getText()) ;\n\t\treturn numberT;\n\t\t\n\t}",
"public String getJobName() {\n return this.mJob;\n }",
"public String getJobCity() {\r\n return jobCity;\r\n }",
"public int getJobCost(int jNo);",
"@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}",
"public StatusCheckDataObject getJob_StatusCheck() {\r\n return job_StatusCheck;\r\n }",
"public long gettNum() {\n return tNum;\n }",
"java.lang.String getJobId();",
"public int getJobType() {\n return jobType;\n }",
"public long getValue() {\n\treturn value;\n }",
"public String getJobName() {\n return this.jobName;\n }",
"public String getJobName() {\n return this.JobName;\n }",
"java.lang.String getTargetJobName();",
"public long getValue()\n {\n return itsValue;\n }",
"public double getMtm() {\r\n return mtm;\r\n }",
"@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}",
"public long getValue() {\n return value_;\n }",
"public Dsjob getJobObject() { return job; }",
"public long getValue() {\n return value_;\n }",
"public String getJobCount() {\r\n return jobCount;\r\n }",
"public int getTT()\n {\n return toTime;\n }",
"public Job getJob(){\n return job;\n }",
"public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }",
"@Override\n\tpublic String getUsedjobId() {\n\t\treturn null;\n\t}",
"public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\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 jobId_ = s;\n }\n return s;\n }\n }",
"public double getT() {\r\n\t\treturn t;\t\r\n\t\t}",
"@DISPID(5)\r\n\t// = 0x5. The runtime will prefer the VTID if present\r\n\t@VTID(11)\r\n\tint lastInstanceJobID();",
"@Override\r\n\tpublic double getTMB() {\r\n\t\tif (isAdultoJovem()) {\r\n\t\t\treturn 15.3 * anamnese.getPesoUsual() + 679;\r\n\t\t}\r\n\t\tif (isAdulto()) {\r\n\t\t\treturn 11.6 * anamnese.getPesoUsual() + 879;\r\n\t\t}\r\n\t\tif (isIdoso()) {\r\n\t\t\treturn 13.5 * anamnese.getPesoUsual() + 487;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public int getJobState() {\n return jobState;\n }",
"public CustomerDataObject getJob_Customer() {\r\n return job_Customer;\r\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId();",
"public java.lang.String getTargetJobName() {\n java.lang.Object ref = targetJobName_;\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 targetJobName_ = s;\n }\n return s;\n }\n }",
"@Override\n\tpublic int[] getJob() throws RemoteException {\n\t\treturn (Server.jobs.size() > 0)? Server.jobs.remove(0) : null;\n\t}",
"public java.lang.String getTargetJobName() {\n java.lang.Object ref = targetJobName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n targetJobName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getJobId() {\n\t\treturn this.jobId;\n\t}",
"public String getJobName() {\n return jobName;\n }",
"public String getJobName() {\n return jobName;\n }",
"Object getTaskId();",
"public String getThreadsValue() {\r\n\t\treturn threadsValue;\r\n\t}",
"public Job currentJob() {\n \t\treturn currentJob;\n \t}",
"public Long getTmId() {\n return tmId;\n }",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n jobId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@DISPID(39)\r\n\t// = 0x27. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tint lastInstanceJobID();",
"public MessageRequestOfUserModelNuLtuh91 getValue() {\n return localValue;\n }",
"private static double getLongt() {\n\t\treturn longt;\n\t}",
"public String getT() {\n\t\treturn t;\n\t}",
"public float getTcintmquantity()\r\n {\r\n return _tcintmquantity;\r\n }",
"public JobOrder getJob() {\n\t\tif (job == null) {\n\t\t\tsetJob(findJobOrder(getPlacement().getJobOrder().getId()));\n\t\t}\n\t\treturn job;\n\t}",
"public int getJobStatus(int jNo);",
"int getMPValue();",
"public float getTcintmprice()\r\n {\r\n return _tcintmprice;\r\n }",
"public int getTON() {\r\n return ton;\r\n }",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"public String getTjr() {\n return tjr;\n }",
"public abstract long getValue();",
"public abstract long getValue();",
"@Override\n public AsyncJob getJob() {\n final AsyncJob job = s_jobMgr.getAsyncJob(_job.getId());\n return job;\n }",
"@Override\n public String getType() {\n return Const.JOB;\n }",
"public ComboBoxDataObject getJob_Difficulty() {\r\n return job_Difficulty;\r\n }",
"public JobStatus getJobStatus(String mdpjobid) {\n log.info(\"get job mdpjobid=\"+mdpjobid);\n JobStatus js = threaMap.get(mdpjobid);\n\n if(js == null) {\n js = new JobStatus();\n js.setMdpJobId(mdpjobid);\n js.setCompleteMessage(\"Not found MDP Job\");\n }else {\n js.getCompleteMessage();\n }\n\n log.info(mdpjobid+\"=\"+js.getCompleteMessage());\n\n if(!js.getCompleteMessage().equalsIgnoreCase(\"Process\")) {\n threaMap.remove(mdpjobid);\n }\n\n return js;\n }",
"public double getPostTB() {\n return postTB;\n }",
"@Override\n\tpublic String jobType() {\n\t\treturn \"productMonitorStat\";\n\t}",
"public byte[] getMTID () {\n\t\treturn mtid;\n\t}",
"public long getTiempoJuego() {\n\t\ttry {\r\n\t\t\treturn juego.getTiempoJuego();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic java.lang.String getMoTa() {\n\t\treturn _keHoachKiemDemNuoc.getMoTa();\n\t}",
"int getSchedulingValue();",
"public String getTaskUnit() {\n\t\treturn taskUnit;\n\t}",
"public long getValue() {\n\t\treturn this._value;\n\t}",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"@Override\n public String getJobName() {\n return operate_name;\n }",
"public String[] getJobArr() {\n String[] jobArr;\n jobArr = new String[jobList.size()];\n\n for(int i=0;i<jobList.size();i++) {\n Log.w(\"MA\", \"\"+jobList.get(i).listString(jobType));\n jobArr[i] = (jobList.get(i)).listString(jobType);\n }\n return jobArr;\n }",
"public int getMtu();"
] |
[
"0.73273414",
"0.65257305",
"0.64365333",
"0.64298016",
"0.638291",
"0.61566395",
"0.60815114",
"0.60744715",
"0.5999343",
"0.5964792",
"0.5895684",
"0.5864699",
"0.5837894",
"0.58346766",
"0.57496023",
"0.574615",
"0.573359",
"0.570421",
"0.56892496",
"0.5681802",
"0.5665415",
"0.5649041",
"0.56405437",
"0.5637862",
"0.56376773",
"0.5635885",
"0.5608023",
"0.560144",
"0.5538692",
"0.55318207",
"0.5527303",
"0.5512698",
"0.5510842",
"0.5478094",
"0.545753",
"0.54151994",
"0.5411715",
"0.539489",
"0.5389824",
"0.5384694",
"0.53797024",
"0.5367872",
"0.5356367",
"0.5353259",
"0.53515387",
"0.53472143",
"0.53455627",
"0.5340997",
"0.53383344",
"0.5336759",
"0.5332081",
"0.5330146",
"0.5328317",
"0.5322333",
"0.5316994",
"0.5311137",
"0.5311137",
"0.5311137",
"0.5308197",
"0.530771",
"0.5300027",
"0.5299606",
"0.5284579",
"0.52776015",
"0.52776015",
"0.52653795",
"0.52641386",
"0.5262974",
"0.5261242",
"0.52584785",
"0.52578783",
"0.5257316",
"0.52559185",
"0.52506614",
"0.52454954",
"0.5245374",
"0.5240937",
"0.5235081",
"0.52348477",
"0.5226716",
"0.522376",
"0.5201238",
"0.52005255",
"0.52005255",
"0.51886874",
"0.51706177",
"0.516896",
"0.515523",
"0.5154579",
"0.515238",
"0.5149879",
"0.51486284",
"0.51418775",
"0.51285654",
"0.51196826",
"0.5107631",
"0.5105791",
"0.5103491",
"0.51002806",
"0.50990665"
] |
0.8356935
|
0
|
Set the value of job_TM
|
public void setJob_TM(String job_TM) {
this.job_TM = job_TM;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getJob_TM() {\r\n return job_TM;\r\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public void setTjm(String tjm) {\n this.tjm = tjm == null ? null : tjm.trim();\n }",
"public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}",
"public void setMtm(double value) {\r\n this.mtm = value;\r\n }",
"public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"public void setHadoopJob( Job currJob ) ;",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public void setJob(String job) {\n this.job = job;\n }",
"public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }",
"public void setTid(int tid);",
"static void Simulation(List<T_JOB> jobs, int NJ, long t0) {\n for (int pos = 0; pos < NJ; pos++) {\n if (pos == 0) //kezdo muvelet eseten a kezdes idopontjaban elindul a munka\n jobs.get(pos).StartT = t0;\n else\n jobs.get(pos).StartT = jobs.get(pos - 1).EndT; //ha nem a kezdo munka van soron akkor a kezdesi ido az elozo munka vegzesi ideje\n\n jobs.get(pos).EndT = jobs.get(pos).StartT + jobs.get(pos).ProcT; //vegzes ideje a kezdo ido + muveleti ido\n }\n }",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public void setWork(long work, FieldContext fieldContext) {\n\t\t\n\t}",
"public void setSecond(T tt) {\n\t\t\tthis.t = tt;\n\t\t}",
"public void setJobNum(int jobNum)\n\t{\n\t\tthis.jobNum = jobNum;\n\t}",
"public void setTimerTaskMaker(TimerTaskMaker timerTaskMaker) {\n this.timerTaskMaker = timerTaskMaker;\n }",
"public void setValue(long value) {\n\t this.value = value;\n\t }",
"public void setJobObserver(JobObserver jO) {\n\r\n\t}",
"protected void onSetOnTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}",
"public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }",
"public void setJobProgress(JobProgress jobProgress) {\n this.jobProgress = jobProgress;\n }",
"public void setTmId(Long tmId) {\n this.tmId = tmId;\n }",
"public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }",
"public void setWork(Duration work)\r\n {\r\n m_work = work;\r\n }",
"public void setTC(boolean value) {\n this.TC = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setJobInfo(String jobInfo) {\n this.jobInfo = jobInfo;\n }",
"public void setWorktime(WorkTime worktime) {\r\n this.worktime = worktime;\r\n }",
"public void updateTask(int tid,String title,String detail,int money,String type,int total_num,int current_num,Timestamp start_time,Timestamp end_time,String state);",
"public void setJobState(int jobState) {\n this.jobState = jobState;\n }",
"void setTaskmonitorrecord(noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord taskmonitorrecord);",
"public void setJobId( int jobId ) ;",
"public void setTcintmprice(float _tcintmprice)\r\n {\r\n this._tcintmprice = _tcintmprice;\r\n }",
"public void setSettlementmoney(Long settlementmoney) {\n this.settlementmoney = settlementmoney;\n }",
"public void setIsTemplateJob(boolean isTemplateJob) {\n this.isTemplateJob = isTemplateJob;\n }",
"public void setTcintmquantity(float _tcintmquantity)\r\n {\r\n this._tcintmquantity = _tcintmquantity;\r\n }",
"public void setORM_TUtu(orm.TU value) {\r\n\t\tthis.TUtu = value;\r\n\t}",
"public void set(final long timeValue) {\n stamp = timeValue;\n }",
"public void setJobCity(String jobCity) {\r\n this.jobCity = jobCity;\r\n }",
"public void setTs(long value) {\n this.ts = value;\n }",
"public void setJob_Difficulty(ComboBoxDataObject job_Difficulty) {\r\n this.job_Difficulty = job_Difficulty;\r\n }",
"void set(long newValue);",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"public String getTjm() {\n return tjm;\n }",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"void setJobName(String jobName);",
"public void SetJobByFileLine(String[] jobInfo) {\r\n this.setJobID(Integer.parseInt(jobInfo[0]));\r\n this.setJobPriority(Integer.parseInt(jobInfo[1]));\r\n this.setJobInTime(Integer.parseInt(jobInfo[2]));\r\n this.setJobInstructionNum(Integer.parseInt(jobInfo[3]));\r\n Log.Info(\"检测后备作业\", String.format(\"正在加载后备作业:%d,优先级:%d,进入时间:%d,指令数:%d\", jobID, jobPriority, jobInTime, jobInstructionNum));\r\n instructions = new ArrayList<>(jobInstructionNum);\r\n this.data = new short[jobInstructionNum];\r\n }",
"public void setET(int newET) {\n this.exTime = newET;\n }",
"public void setT(Type t) {\n \t\tthis.t = t;\n \t}",
"public void setMoTa(String moTa);",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public void setTipMjenjacaID(long value) {\r\n this.tipMjenjacaID = value;\r\n }",
"public Setter reqSetOnTimerSetting(byte[] edt) {\n\t\t\taddProperty(EPC_ON_TIMER_SETTING, edt);\n\t\t\treturn this;\n\t\t}",
"public void setJob_location(String job_location) {\r\n this.job_location = job_location;\r\n }",
"public void setJob(Job job) throws JobEvent, InterruptedException {\n this.job = job;\n\n try {\n\n job.run();\n\n }\n catch (JobEvent | InterruptedException rethrow)\n {\n this.job = null;\n throw rethrow;\n }\n\n }",
"protected void setDataInForm(Long jobID) {\n if (jobID == null) {\n this.stepsValues = NewTaskService.getInitList();\n this.jobName = null;\n pickListBean.initDualList();\n } else {\n Job job = jobService.getByIdWithCollections(jobID);\n this.stepsValues = NewTaskService.getJobStepValuesList(job); \n this.jobName = job.getJobName(); \n pickListBean.setDualListByJob(job);\n }\n }",
"public void setTmName(String tmName) {\n this.tmName = tmName == null ? null : tmName.trim();\n }",
"public void set_T(String str_T) {\n this.t.set_Atomic_Symbol(str_T);\n }",
"public void setObjetoT(ObjetoTiempo o){\r\n\t\tobjetoT = o;\r\n\t}",
"public void setT(boolean t) {\n\tthis.t = t;\n }",
"public void setLastSyncStepsTime(long j) {\n ((SharedPreferences) this.fitClientStore.get()).edit().putLong(GoogleFitConstants.SharedPreferences.LAST_SYNC_TIME_STEPS, j).apply();\n }",
"public void configure(JobConf job) {\n\t\ttimeGranularity = Integer.parseInt(job.get(\"timeGranularity\"));\n\t}",
"public void setStateTrac(Long stateTrac) {\n this.stateTrac = stateTrac;\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"public void setTON(int value) {\r\n this.ton = value;\r\n }",
"public void setSETTLED_PROFIT_AMT(BigDecimal SETTLED_PROFIT_AMT) {\r\n this.SETTLED_PROFIT_AMT = SETTLED_PROFIT_AMT;\r\n }",
"public void updateJob(int numeroticket, int chunkjustdone) {\n\t\tif (this.ticket == numeroticket)\n\t\t{\n\t\t\t//System.out.println(\"moi worker \" + id + \" ne doit plus faire \" + chunkjustdone);\n\t\t\tthis.chunkDone[chunkjustdone] = true;\n\t\t\t\n\t\t}\n\t}",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setTimestamp(long value) {\n validate(fields()[6], value);\n this.timestamp = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public void setUseTimings(boolean useTimings)\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(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(USETIMINGS$22);\n }\n target.setBooleanValue(useTimings);\n }\n }",
"public void setBaseMtm(double value) {\r\n this.baseMtm = value;\r\n }",
"public void setValue(MessageRequestOfUserModelNuLtuh91 param) {\n localValueTracker = true;\n\n this.localValue = param;\n }",
"public void setTimeout(long t) {\n StepTimeout = t;\n }",
"public void setTid(Integer tid) {\r\n this.tid = tid;\r\n }",
"public com.example.DNSLog.Builder setTC(boolean value) {\n validate(fields()[18], value);\n this.TC = value;\n fieldSetFlags()[18] = true;\n return this;\n }",
"public void setTransactionManager(TransactionManager tm)\n {\n _tm = tm;\n }",
"private void assignWork(String worker, String task) {\n System.out.println(\"assign work and create node \" + worker + \"/task\");\n zk.setData(worker, task.getBytes(), -1,\n (rc, path, ctx, data) -> {\n System.out.println(KeeperException.Code.get(rc));\n logger.info(\"DISTMASTER: task \" + task + \" has been created\");\n }, null);\n }",
"void setTemp(String name, Object value);",
"void setValue(T value);",
"void setValue(T value);",
"public void setTask(TaskDTO task) {\n\t\tthis.task = task;\r\n\t\t\r\n\t\t\r\n\t}",
"public static final <T> void m136539a(C0052o<T> oVar, T t) {\n C7573i.m23587b(oVar, \"$this$threadSoftValue\");\n if (C9653q.m28546a()) {\n oVar.setValue(t);\n } else {\n oVar.postValue(t);\n }\n }",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}",
"public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }",
"public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}",
"public final void setNum_emp(String val) {\n setString(getNum_empAttribute(getMtDatabase()), val);\n }",
"@Override\n\tpublic void setJobId(long jobId) {\n\t\tmodel.setJobId(jobId);\n\t}",
"public abstract void setAtiempo(java.lang.Long newAtiempo);",
"public void setMTID (byte[] m) {\n\t\tmtid = m;\n\t}",
"protected void onSetOnTimerReservationSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}"
] |
[
"0.6864677",
"0.63866895",
"0.5549661",
"0.55267376",
"0.5517354",
"0.55083525",
"0.55065155",
"0.54670936",
"0.54411817",
"0.54342675",
"0.54177105",
"0.5384499",
"0.5379575",
"0.5273728",
"0.5264987",
"0.52619004",
"0.5259019",
"0.5167907",
"0.5142352",
"0.51367563",
"0.5133167",
"0.5115138",
"0.51106226",
"0.5104627",
"0.50997365",
"0.5091402",
"0.5074255",
"0.50721097",
"0.5064869",
"0.5064869",
"0.5064869",
"0.50634784",
"0.50470674",
"0.50410026",
"0.5033445",
"0.5024752",
"0.50102544",
"0.49707383",
"0.49648306",
"0.4948903",
"0.49459663",
"0.493957",
"0.49266985",
"0.49182424",
"0.49121347",
"0.49018022",
"0.49000582",
"0.48983002",
"0.48983002",
"0.48983002",
"0.48983002",
"0.489406",
"0.4879007",
"0.4878817",
"0.48712814",
"0.48657975",
"0.48620296",
"0.4840034",
"0.48379803",
"0.48308012",
"0.4826318",
"0.48240334",
"0.48178378",
"0.48164222",
"0.48152786",
"0.4801198",
"0.47979787",
"0.47975305",
"0.47973981",
"0.47926882",
"0.4790243",
"0.47893587",
"0.47815773",
"0.47764918",
"0.4775956",
"0.4769565",
"0.47682637",
"0.47667727",
"0.47612432",
"0.47572964",
"0.47558793",
"0.475176",
"0.4747981",
"0.4747272",
"0.47397837",
"0.47286612",
"0.4722813",
"0.47168392",
"0.47168392",
"0.4708646",
"0.47054124",
"0.4694453",
"0.46862853",
"0.46820745",
"0.46816874",
"0.46809015",
"0.4673987",
"0.46669257",
"0.46665832",
"0.46604452"
] |
0.7977684
|
0
|
Get the value of job_Customer
|
public CustomerDataObject getJob_Customer() {
return job_Customer;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }",
"public String getJob_customer_addresses_id() {\n return job_customer_addresses_id;\n }",
"public Integer getCustomer() {\n return customer;\n }",
"public String getCustomer() {\n return customer;\n }",
"public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}",
"public String getJob() {\n return job;\n }",
"public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }",
"@Override\n public String getCustomer() {\n return this.customerName;\n }",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public String getJobCity() {\r\n return jobCity;\r\n }",
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }",
"io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();",
"public java.lang.String getOrgCustomer() {\n\treturn orgCustomer;\n}",
"public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}",
"String getCustomerID();",
"public int getHC_EmployeeJob_ID();",
"public String getCustomerid() {\n return customerid;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}",
"public BigDecimal getJOB_ID() {\r\n return JOB_ID;\r\n }",
"public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}",
"public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }",
"public String getCustomerReference() {\n return customerReference;\n }",
"public String getCustomer(String custId);",
"public Long getCustomerId() {\n return customerId;\n }",
"public int getJobCost(int jNo);",
"public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"public String getName()\n {\n return customer;\n }",
"public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n if (customerBuilder_ == null) {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n } else {\n return customerBuilder_.getMessage();\n }\n }",
"public String getJob_TM() {\r\n return job_TM;\r\n }",
"public String getCustomer_Name() {\n return customer_Name;\n }",
"public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"com.google.ads.googleads.v6.resources.Customer getCustomer();",
"public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}",
"public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}",
"public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}",
"public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public java.lang.String getCustNo() {\n return custNo;\n }",
"public Integer getCustomerId()\n {\n return customerId;\n }",
"public int getCustomerref() {\n\t\treturn custref;\n\t}",
"public Customer getCustomer() {\n\t\treturn customer;\n\t}",
"public com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer getCustomer() {\r\n return customer;\r\n }",
"public Long getJobID() {\n return jobID;\n }",
"public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}",
"public java.lang.Integer getReqCustid() {\n return req_custid;\n }",
"public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}",
"public String getCustomerName()\n {\n return customerName;\n }",
"public String getJobName() {\n return this.mJob;\n }",
"public String getCustomerCode() {\n\t\treturn customerCode;\n\t}",
"public String getCustomerName() \n {\n return customerName;\n }",
"public Integer getCustomerID() {\n return customerID;\n }",
"public String getJob_location() {\r\n return job_location;\r\n }",
"public au.gov.asic.types.AccountIdentifierType getCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getCustomerName() {\r\n return name.getName();\r\n }",
"String getCustomerNameById(int customerId);",
"public java.lang.String getJobNumber() {\r\n return jobNumber;\r\n }",
"public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}",
"public String getCustomerName() {\n return customerName;\n }",
"public String getCustomerName() {\n return customerName;\n }",
"public EmployerDataObject getJob_Designer() {\r\n return job_Designer;\r\n }",
"public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }",
"public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}",
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public java.lang.Integer getReqCustid() {\n return req_custid;\n }",
"public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}",
"public String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public String getCustomerName(){\n return customerName;\n }",
"public String getJobProperty() {\r\n return jobProperty;\r\n }",
"public int getCustomerID() {\n return customerID;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"public Customer getCustomer() {\n return this.customer;\n }",
"public String getJobName() {\n return this.JobName;\n }",
"public com.commercetools.api.models.customer.CustomerReference getCustomer() {\n return this.customer;\n }",
"public String getCustomerContactResult() {\n return customerContactResult;\n }",
"public String getCustomerName() {\n\t\treturn this.customer.getCustomerName();\n\t}",
"Customer getCustomer() {\n\t\treturn customer;\n\t}",
"public String getCustId() {\n return custId;\n }",
"public Long getCustId() {\n return custId;\n }",
"public String getCronValue() {\n\t\tList<SmsUrlCronJob> findAllCronJob = smsCronJobRepo.findAllCronJob();\n\t\tString result = null;\n\n\t\tList<SmsUrlCronJob> collectSmsUrl = findAllCronJob.stream()\n\t\t\t\t.filter(s -> s.getJobName().equalsIgnoreCase(\"SmsBranchTxnDailyJob\")).collect(Collectors.toList());\n\n\t\tfor (SmsUrlCronJob smsUrl : collectSmsUrl) {\n\t\t//\tlogger.info(\"branchTxnJob::22::getCronValue::\" + smsUrl.getCronTime());\n\t\t//\tlogger.info(\"Job Enable Status::::getCronValue::\" + smsUrl.getJobEnable());\n\n\t\t\tif (smsUrl.getJobEnable().equals(\"Y\")) {\n\t\t\t\tresult = smsUrl.getCronTime();\n\t\t\t} else {\n\t\t\t\tresult = smsUrl.getCronTime();\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public String getJobName() {\n return this.jobName;\n }",
"public int getJobNum()\n\t{\n\t\treturn jobNum;\n\t}",
"public String getCustCode() {\n return custCode;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public Object getCustomerContactRecord() {\n return customerContactRecord;\n }",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"public String getCustomerName()\n\t{\n\t\treturn name;\n\t}",
"@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}",
"public String getCustomerContactRecordCustomerReference() {\n return customerContactRecordCustomerReference;\n }",
"public int getCustId(){\n return this.custId;\r\n }",
"protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}",
"public Customer getCustomer()\n {\n return this.customer;\n }",
"public java.lang.String getCustomerCheckNumber() {\r\n return customerCheckNumber;\r\n }"
] |
[
"0.68969816",
"0.66504747",
"0.6514621",
"0.651396",
"0.65107524",
"0.6388731",
"0.6325645",
"0.63121724",
"0.629243",
"0.6232507",
"0.61905",
"0.61905",
"0.61627454",
"0.6148205",
"0.6139004",
"0.61267376",
"0.61127293",
"0.6108032",
"0.61017513",
"0.60924476",
"0.60924476",
"0.6087543",
"0.60385007",
"0.6027815",
"0.60201037",
"0.60034686",
"0.5985139",
"0.59810185",
"0.5979118",
"0.5978924",
"0.59761584",
"0.5973541",
"0.594634",
"0.5939551",
"0.59366727",
"0.59342927",
"0.59320074",
"0.5925176",
"0.59237945",
"0.59232116",
"0.5922543",
"0.5922543",
"0.59198874",
"0.59198874",
"0.5906852",
"0.5906523",
"0.5897603",
"0.58944803",
"0.5891747",
"0.58914137",
"0.5891175",
"0.58869034",
"0.58827454",
"0.58805525",
"0.5867005",
"0.5865539",
"0.5865053",
"0.5859852",
"0.58583015",
"0.58572036",
"0.58519703",
"0.5841241",
"0.5836352",
"0.5832507",
"0.5820608",
"0.5820608",
"0.5817295",
"0.5814625",
"0.58093655",
"0.58083624",
"0.5806017",
"0.58009034",
"0.57934916",
"0.57896316",
"0.57856846",
"0.5784876",
"0.5776311",
"0.5776311",
"0.5767572",
"0.57666653",
"0.5761665",
"0.57590103",
"0.57565993",
"0.57504827",
"0.57386243",
"0.57330805",
"0.57329094",
"0.57273364",
"0.5726942",
"0.5711703",
"0.5711703",
"0.5704088",
"0.56949234",
"0.56928927",
"0.56908476",
"0.56862485",
"0.56812626",
"0.5669998",
"0.56674653",
"0.5661799"
] |
0.8166032
|
0
|
Set the value of job_Customer
|
public void setJob_Customer(CustomerDataObject job_Customer) {
this.job_Customer = job_Customer;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setCustomer(String Cus){\n\n this.customer = Cus;\n }",
"public CustomerDataObject getJob_Customer() {\r\n return job_Customer;\r\n }",
"protected void setCustomer(Customer customer) {\n this.customer = customer;\n }",
"public void setCustomerId(long value) {\n this.customerId = value;\n }",
"public void setCustomer(Integer customer) {\n this.customer = customer;\n }",
"public void setCustomer(String customer) {\n this.customer = customer;\n }",
"public void setCustomer(au.gov.asic.types.AccountIdentifierType customer)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n }\n target.set(customer);\n }\n }",
"public void setCustomer(\n @Nullable\n final String customer) {\n rememberChangedField(\"Customer\", this.customer);\n this.customer = customer;\n }",
"public void setCustomer(Customer customer) {\r\n \r\n this.customer = customer;\r\n \r\n if (customer != null) {\r\n // Fill the labels with info from the Customer object\r\n custIdTextField.setText(Integer.toString(customer.getCustomerId()));\r\n custFirstNameTextField.setText(customer.getCustFirstName());\r\n custLastNameTextField.setText(customer.getCustLastName());\r\n custAddressTextField.setText(customer.getCustAddress());\r\n custCityTextField.setText(customer.getCustCity());\r\n custProvinceTextField.setText(customer.getCustProv());\r\n custPostalCodeTextField.setText(customer.getCustPostal());\r\n custCountryTextField.setText(customer.getCustCountry());\r\n custHomePhoneTextField.setText(customer.getCustHomePhone());\r\n custBusinessPhoneTextField.setText(customer.getCustBusPhone());\r\n custEmailTextField.setText(customer.getCustEmail());\r\n if (cboAgentId.getItems().contains(customer.getAgentId())){\r\n cboAgentId.setValue(customer.getAgentId());\r\n }\r\n else{\r\n cboAgentId.getSelectionModel().selectFirst();\r\n }\r\n } else {\r\n custIdTextField.setText(\"\");\r\n custFirstNameTextField.setText(\"\");\r\n custLastNameTextField.setText(\"\");\r\n custAddressTextField.setText(\"\");\r\n custCityTextField.setText(\"\");\r\n custProvinceTextField.setText(\"\");\r\n custPostalCodeTextField.setText(\"\");\r\n custCountryTextField.setText(\"\");\r\n custHomePhoneTextField.setText(\"\");\r\n custBusinessPhoneTextField.setText(\"\");\r\n custEmailTextField.setText(\"\");\r\n cboAgentId.getSelectionModel().selectFirst();\r\n } \r\n }",
"public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }",
"public void setCurrentCustomer(Customer customer) {\n this.currentCustomer = customer;\n }",
"public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }",
"public void setCustomer(final Customer customer) {\n\t\tthis.customer = customer;\n\t}",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"public void setCustomer(Customer c){\n\t\tthis.c = Optional.of(c);\n\t}",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public void setCustomer(com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer customer) {\r\n this.customer = customer;\r\n }",
"public void setCustomer (de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t}",
"public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }",
"public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }",
"public void setCurrentCustomer(Customer currentCustomer) {\n\t\tthis.currentCustomer = currentCustomer;\n\t}",
"public void setCustomer_Name(String customer_Name) {\n this.customer_Name = customer_Name;\n }",
"public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }",
"public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }",
"public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}",
"public void setCustomerIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier customerIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n }\n target.set(customerIdentifier);\n }\n }",
"public final void setOrder_Customer(simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tsetOrder_Customer(getContext(), order_customer);\r\n\t}",
"public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }",
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"public void setCustomer(Customer customer) {\r\n\r\n this.customer = customer;\r\n ObservableList<Order> orders = getAllCustomerOrders(customer.getCustomerId());\r\n ordersTable.setItems(orders);\r\n }",
"public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}",
"@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}",
"public Builder setCustomer(\n io.opencannabis.schema.commerce.OrderCustomer.Customer.Builder builderForValue) {\n if (customerBuilder_ == null) {\n customer_ = builderForValue.build();\n onChanged();\n } else {\n customerBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }",
"public boolean setCustomer(Customer aCustomer)\n {\n boolean wasSet = false;\n if (aCustomer == null)\n {\n return wasSet;\n }\n\n Customer existingCustomer = customer;\n customer = aCustomer;\n if (existingCustomer != null && !existingCustomer.equals(aCustomer))\n {\n existingCustomer.removeBooking(this);\n }\n customer.addBooking(this);\n wasSet = true;\n return wasSet;\n }",
"public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public String getJob_customer_addresses_id() {\n return job_customer_addresses_id;\n }",
"public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }",
"public void update(Customer customer) {\n\n\t}",
"public static void setCustomerData()\n\t{\n\t\tString sURL = PropertyManager.getInstance().getProperty(\"REST_PATH\") + \"measurements?state=WAIT_FOR_CONFIG\";\n\t\tmCollect = new MeasurementCollection();\n\t\tmCollect.setList(sURL);\n\n\t\tfor (int i = 0; i < mCollect.getList().size(); i++)\n\t\t{\n\t\t\tmObject = mCollect.getList().get(i);\n\t\t\tString mID = mObject.getId();\n\t\t\taData = new AddressData(mID);\n\t\t\tif (mObject.getPriority().equals(\"HIGH\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"+ \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse if (mObject.getPriority().equals(\"MEDIUM\"))\n\t\t\t{\n\t\t\t\tcustomerList.add(\"- \" + aData.guiAddressData());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcustomerList.add(\"o \" + aData.guiAddressData());\n\t\t\t}\n\n\t\t}\n\t\tcustomerText.setText(aData.getCustomerData());\n\t\tmeasureText.setText(mObject.getMeasurementData());\n\n\t}",
"public abstract void setCustomerAddress(Address address);",
"public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}",
"public void setCustomerName(String customerName) {\n this.customerName = customerName;\n }",
"public void setCustID(String custID) {\r\n this.custID = custID;\r\n }",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}",
"@Accessor(qualifier = \"Customers\", type = Accessor.Type.SETTER)\n\tpublic void setCustomers(final Collection<B2BCustomerModel> value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CUSTOMERS, value);\n\t}",
"public void setCustomerValidator(final Validator aCustomerValidator) {\n customerValidator = aCustomerValidator;\n }",
"public void setCustomerName(\n @Nullable\n final String customerName) {\n rememberChangedField(\"CustomerName\", this.customerName);\n this.customerName = customerName;\n }",
"public void setCustomerID(String customerID) {\n try {\n if(!(customerID.equals(null)))\n this.customerID = customerID;\n else {\n this.customerID = \"\";\n throw new SupplyOrderException(\"Invalid Customer ID\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }",
"public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}",
"@Override\n public void setCellPhone(java.lang.String cellPhone) {\n _entityCustomer.setCellPhone(cellPhone);\n }",
"public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}",
"public void setCustPid(Long custPid) {\n\t\tthis.custPid = custPid;\n\t}",
"public void setCustId(Long custId) {\n this.custId = custId;\n }",
"@Override\n\tprotected void assignCustomer(Customer customer) {\n\t\t// find the shortest cashier queue\n\t\tint cashierIndex = findTheShortestQueue(0,queueDensityLookUp.length);\n\t\tcashiers[cashierIndex].addCustomer(customer);\n\t\tqueueDensityLookUp[cashierIndex]++;\n\n\t}",
"public void setCustomerClassification(\n @Nullable\n final String customerClassification) {\n rememberChangedField(\"CustomerClassification\", this.customerClassification);\n this.customerClassification = customerClassification;\n }",
"public void setJobCity(String jobCity) {\r\n this.jobCity = jobCity;\r\n }",
"public void editCustomer() {\n int id = this.id;\n PersonInfo personInfo = dbHendler.getCustInfo(id);\n String name = personInfo.getName().toString().trim();\n String no = personInfo.getPhoneNumber().toString().trim();\n float custNo = personInfo.get_rootNo();\n String cUSTnO = String.valueOf(custNo);\n int fees = personInfo.get_fees();\n String fEES = Integer.toString(fees);\n int balance = personInfo.get_balance();\n String bALANCE = Integer.toString(balance);\n String nName = personInfo.get_nName().toString().trim();\n String startdate = personInfo.get_startdate();\n int areaID = personInfo.get_area();\n String area = dbHendler.getAreaName(areaID);\n person_name.setText(name);\n contact_no.setText(no);\n rootNo.setText(cUSTnO);\n monthly_fees.setText(fEES);\n balance_.setText(bALANCE);\n nickName.setText(nName);\n this.startdate.setText(startdate);\n // retrieving the index of element u\n int retval = items.indexOf(area);\n\n spinner.setSelection(retval);\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }",
"public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }",
"@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }",
"public void setCustomerType(String customerType) \n {\n this.customerType = customerType;\n }",
"void updateCustomerById(Customer customer);",
"public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}",
"public void setCustomerMobile(String customerMobile) {\n this.customerMobile = customerMobile;\n }",
"public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);",
"private void updateCustomer(Customer customer) {\n List<String> args = Arrays.asList(\n customer.getCustomerName(),\n customer.getAddress(),\n customer.getPostalCode(),\n customer.getPhone(),\n customer.getLastUpdate().toString(),\n customer.getLastUpdatedBy(),\n String.valueOf(customer.getDivisionID()),\n String.valueOf(customer.getCustomerID())\n );\n DatabaseConnection.performUpdate(\n session.getConn(),\n Path.of(Constants.UPDATE_SCRIPT_PATH_BASE + \"UpdateCustomer.sql\"),\n args\n );\n }",
"public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}",
"@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"public void setCustomerCode(String customerCode)\n\t{\n\t\tsetColumn(customerCode, OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}",
"@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"public Builder setCustomer(io.opencannabis.schema.commerce.OrderCustomer.Customer value) {\n if (customerBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n customer_ = value;\n onChanged();\n } else {\n customerBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);",
"public void setJob(String job) {\n this.job = job;\n }",
"@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public void setCurrentById(BigDecimal id){\n Customer customer = ejbFacade.find(id);\n current = customer;\n }",
"@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"public long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"@PutMapping(\"/customerupdate\")\n\tpublic void update(@RequestBody Customer theCustomer) {\n\t\t// checking whether the customer exists or not\n\t\tCustomer customerExists = customerServices.findByID(theCustomer.getMobile_number());\n\n\t\tif (customerExists != null) {\n\t\t\tcustomerServices.save(theCustomer);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Customer with customer id - \" + theCustomer + \" not exists\");\n\t\t}\n\t}",
"@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save/upate the customer ... finally LOL\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t\n\t}",
"public void setJob_TM(String job_TM) {\r\n this.job_TM = job_TM;\r\n }",
"public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }",
"@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// currentSession.save(theCustomer);\n\n\t\t// save/upate the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t}",
"void assignAuthorisationsToCustomer(CustomerModel customer);",
"public String getCustomer() {\n return customer;\n }",
"public void setCustomerName(String name) {\r\n this.name.setText(name);\r\n }",
"public void setCustomerName(String customerName)\n\t{\n\t\tsetColumn(customerName, OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}",
"public void updateSalerCustomer(SalerCustomer salerCustomer) {\n\t\tthis.salerCustomerMapper.updateSalerCustomer(salerCustomer);\n\t}"
] |
[
"0.6953588",
"0.6919984",
"0.68539786",
"0.6800784",
"0.6794306",
"0.6784034",
"0.6670869",
"0.6637408",
"0.6605821",
"0.66007006",
"0.6593921",
"0.6480009",
"0.6451202",
"0.6442883",
"0.6364933",
"0.63221246",
"0.62879056",
"0.6268699",
"0.6259249",
"0.6254132",
"0.6246725",
"0.623224",
"0.61583644",
"0.61153173",
"0.6109905",
"0.6108636",
"0.61041605",
"0.6101623",
"0.60670143",
"0.60481185",
"0.6046034",
"0.60136527",
"0.59673053",
"0.5962852",
"0.5939519",
"0.59114707",
"0.59100026",
"0.59090596",
"0.58846736",
"0.5881148",
"0.5881148",
"0.5860687",
"0.58561486",
"0.5847475",
"0.58240926",
"0.5814323",
"0.5797217",
"0.57914877",
"0.5783825",
"0.57832944",
"0.57658434",
"0.573657",
"0.57251585",
"0.5709949",
"0.57029516",
"0.5702528",
"0.5687458",
"0.5676471",
"0.56728995",
"0.5671307",
"0.5671153",
"0.56699854",
"0.5666936",
"0.5666597",
"0.56658953",
"0.56424457",
"0.5640484",
"0.56299776",
"0.5622098",
"0.56200737",
"0.5585994",
"0.5585775",
"0.5582392",
"0.55823326",
"0.55776787",
"0.55683386",
"0.55683386",
"0.55610347",
"0.55577266",
"0.55523586",
"0.55520606",
"0.55491894",
"0.5544095",
"0.5534992",
"0.55260617",
"0.5514925",
"0.5514698",
"0.5509308",
"0.5495174",
"0.5495174",
"0.5476528",
"0.54761827",
"0.5470396",
"0.54654056",
"0.54488385",
"0.5445815",
"0.54387444",
"0.54315954",
"0.5428485",
"0.5426919"
] |
0.8681379
|
0
|
Find a refresh token based on the natural id i.e the token itself
|
public Optional<RefreshToken> findByToken(String token) {
return refreshTokenRepository.findByToken(token);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RefreshToken generateRefreshToken(){\n RefreshToken refreshToken = new RefreshToken();\n //Creates a 128bit random UUID. This serves as our refresh token\n refreshToken.setToken(UUID.randomUUID().toString());\n //Set creation timestampt\n refreshToken.setCreatedDate(Instant.now());\n\n return refreshTokenRepository.save(refreshToken);\n }",
"Observable<Session> getByValidRefreshToken(String token, Date now);",
"protected abstract int getLastTokenId();",
"String getAuthorizerRefreshToken(String appId);",
"@Override\n public RefreshToken getRefreshToken(String refreshTokenCode) {\n if (log.isTraceEnabled()) {\n log.trace(\"Looking for the refresh token: \" + refreshTokenCode + \" for an authorization grant of type: \"\n + getAuthorizationGrantType());\n }\n return refreshTokens.get(TokenHashUtil.hash(refreshTokenCode));\n }",
"public String refreshToken(String token) {\n\t\tString refreshedToken;\n\t\ttry {\n\t\t\tfinal Claims claims = this.getClaimsFromToken(token);\n\t\t\tclaims.put(\"created\", this.generateCurrentDate());\n\t\t\trefreshedToken = this.generateToken(claims);\n\t\t} catch (Exception e) {\n\t\t\trefreshedToken = null;\n\t\t}\n\t\treturn refreshedToken;\n\t}",
"public AuthorizationToken retrieveToken(String token);",
"public String refreshToken(String token) {\n String refreshedToken;\n try {\n final Claims claims = this.getClaimsFromToken(token);\n claims.put(CREATED, dateUtil.getCurrentDate());\n refreshedToken = this.generateToken(claims);\n } catch (Exception e) {\n refreshedToken = null;\n }\n return refreshedToken;\n }",
"private String refreshToken() {\n return null;\n }",
"String getPrimaryToken();",
"@Override\n public Optional<ApiSession> findApiSessionToken(String token) {\n // log.debug(\"findApiSessionToken({})\", token);\n if (null == this.hashOperations) {\n log.warn(\"hash is null\");\n return Optional.empty();\n }\n if (null == token) {\n log.warn(\"token is null\");\n return Optional.empty();\n }\n try {\n return Optional.ofNullable((ApiSession) hashOperations.get(HASH_KEY, token));\n } catch (Exception e) {\n log.warn(\"token is null \", e);\n return Optional.empty();\n }\n }",
"@Override\n public RefreshToken getRefreshToken(String refreshTokenCode) {\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"Looking for the refresh token: \" + refreshTokenCode\n + \" for an authorization grant of type: \" + getAuthorizationGrantType());\n }\n\n return refreshTokens.get(refreshTokenCode);\n }",
"String getLongToken();",
"String getLongToken();",
"protected boolean generateIdTokenOnRefreshRequest() {\n\t\treturn true;\n\t}",
"@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 }",
"OAuth2Token getToken();",
"protected void createIdTokenForRefreshRequest() {\n\t\tgenerateIdTokenClaims();\n\n\t\taddAtHashToIdToken();\n\n\t\taddCustomValuesToIdTokenForRefreshResponse();\n\n\t\tsignIdToken();\n\n\t\tcustomizeIdTokenSignatureForRefreshResponse();\n\n\t\tencryptIdTokenIfNecessary();\n\t}",
"BsonToken getCurrentToken();",
"@Override\n public UserEntity getUserByTokenRefresh(String token) {\n Session session = this.sessionFactory.openSession();\n TokenRefreshEntity tokenRefreshEntity = (TokenRefreshEntity) session\n .getNamedQuery(UserEntity.GET_USER_BY_TOKEN_REFRESH)\n .setParameter(\"token\", token)\n .uniqueResult();\n UserEntity userEntity = tokenRefreshEntity.getUserEntity();\n session.close();\n return userEntity;\n }",
"@Override\n public ApiSession getApiSessionToken(String token) {\n // log.debug(\"getApiSessionToken({})\", token);\n if (null == this.hashOperations) {\n log.warn(\"hash is null\");\n return null;\n }\n if (null == token) {\n log.warn(\"token is null\");\n return null;\n }\n try {\n return (ApiSession) hashOperations.get(HASH_KEY, token);\n } catch (Exception e) {\n log.warn(\"Exception, msg: {}\", e.getMessage(), e);\n return null;\n }\n }",
"@Override\r\n public int getTokenId()\r\n {\r\n return this.tokenId;\r\n }",
"@Test\n public void testRefreshToken() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .bearerToken()\n .refreshToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }",
"Observable<Session> getByValidSessionToken(String token, Date now, boolean checkValidRefreshToken);",
"@Override\n\tprotected RefreshToken doCreateNewRefreshToken(ServerAccessToken at) {\n\t\tRefreshToken refreshToken = super.doCreateNewRefreshToken(at);\n\t\trefreshToken.setTokenKey(\"RT:\" + UUID.randomUUID().toString());\n\t\trefreshToken.setExpiresIn(Oauth2Factory.REFRESH_TOKEN_EXPIRED_TIME_SECONDS);\n\t\t\n\t\tif (log.isDebugEnabled()) {\n\t\t\ttry {\n\t\t\t\tlog.debug(\"RefreshToken={}\", OBJECT_MAPPER.writeValueAsString(refreshToken));\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn refreshToken;\n\t}",
"public String getToken(int id) {\n try {\n return tkDao.getToken(id);\n } catch (SQLException ex) {\n throw new RuntimeException(\"an error occurred trying to get a token with a given id in database: \" + ex.getMessage());\n }\n }",
"Authentication findByToken(String token);",
"GetToken.Res getGetTokenRes();",
"@Override\n public void onTokenRefresh() {\n Log.d(\"MyInstanceIDService\", \"onTokenRefresh\");\n// new GCMDoRequest().execute(new GCMRequest(this, GCMCommand.GET_TOKEN));\n }",
"public String getRefresh_token() {\r\n\t\treturn refresh_token;\r\n\t}",
"@ApiModelProperty(value = \"Unique identifier of token\")\n public Long getId() {\n return id;\n }",
"Ttoken selectByPrimaryKey(String ftokenid);",
"public String getRefreshToken() {\r\n return refreshToken;\r\n }",
"@Override\n public void onTokenRefresh() {\n }",
"java.lang.String getRemoteToken();",
"public String getTokenId() {\n return tokenId;\n }",
"SecurityToken loadByTokenValue(String tokenValue);",
"public String getRefreshToken() {\n\t\treturn refreshToken;\n\t}",
"TrustedIdProvider refresh(Context context);",
"public String authByToken (String token){\n if (token.equals(\"ripcpsrlro3mfdjsaieoppsaa\")){\n return \"admin\";\n }\n else {\n Document query = new Document();\n query.put(\"token\", token);\n MongoCursor<Document> cursor = Security.find(query).iterator();\n if (cursor==null || !cursor.hasNext()) {\n System.out.println(\"here fails ! token used: \"+token);\n return \"none\";\n }\n else {\n Document c = cursor.next();\n String tnp = c.get(\"token\").toString();\n String admin = c.get(\"admin\").toString();\n if (tnp.equals(token)){\n if (admin.equals(\"true\")){\n return \"admin\";\n }\n else return \"user\";\n }\n else return \"none\";\n }\n //return \"none\";\n }\n }",
"ResetToken findByToken(String token);",
"@Transient\n\tpublic String getRefreshToken() {\n\t\treturn refreshToken;\n\t}",
"@Override\n public void onTokenRefresh() {\n\n String token = FirebaseInstanceId.getInstance().getToken();\n CTOKEN = token;\n\n// if(sgen.ID != \"\") {\n// String query = \"UPDATE USER_DETAILS SET FTOKEN = '\"+token+\"' WHERE ID = '\"+sgen.ID+\"'; \";\n// ArrayList<Team> savedatateam = servicesRequest.save_data(query);\n// sgen.FTOKEN = token;\n// }\n\n\n // Once the token is generated, subscribe to topic with the userId\n// if(sgen.ATOKEN.equals(sgen.CTOKEN)) {\n try {\n FirebaseMessaging.getInstance().subscribeToTopic(SUBSCRIBE_TO);\n Log.i(TAG, \"onTokenRefresh completed with token: \" + token);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n// }\n\n\n /* sendRegistrationToServer(refreshedToken);*/\n }",
"private Optional<Identificacion> validarToken(final String token) {\n\t\tif (token != null && !token.isEmpty()) {\n\t\t\t// TODO Obtener el ID del token de keycloak\n\t\t\treturn Optional.of(new Identificacion(0));\n\t\t} else {\n\t\t\treturn Optional.empty();\n\t\t}\n\t}",
"public String auth (String id,String token){\n if (token.equals(\"ripcpsrlro3mfdjsaieoppsaa\")){\n return \"admin\";\n }\n else {\n Document query = new Document();\n query.put(\"id\", id);\n MongoCursor<Document> cursor = Security.find(query).iterator();\n if (cursor==null || !cursor.hasNext()) {\n System.out.println(\"here fails !\");\n System.out.println(cursor.hasNext());\n return \"none\";\n }\n else {\n Document c = cursor.next();\n String tnp = c.get(\"token\").toString();\n String admin = c.get(\"admin\").toString();\n if (tnp.equals(token)){\n if (admin.equals(\"true\")){\n return \"admin\";\n }\n else return \"user\";\n }\n else return \"none\";\n }\n }\n //return \"none\";\n }",
"public Credential getCredentialRefTkn(String refreshToken){\n\tCredential credential = createCredentialWithRefreshToken(HTTP_TRANSPORT,\n\t\t\tJSON_FACTORY,\n\t\t\tnew TokenResponse().setRefreshToken(refreshToken), CLIENT_ID,\n\t\t\tCLIENT_SECRET);\n\treturn credential;\n\t}",
"public Long getTokenId() {\n\t\treturn tokenId;\n\t}",
"@Override\n public void onTokenRefresh() {\n final String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n\n //To displaying token on logcat\n Log.w(\"TOKEN: \", refreshedToken);\n\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFERENCE_FILE, MODE_PRIVATE);\n final Long userId = sharedPreferences.getLong(\"userId\", 0L);\n\n if (!userId.equals(0L)){\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"firebaseToken\", refreshedToken);\n editor.apply();\n\n Handler handler = new Handler(this.getMainLooper());\n\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n\n // Update token for this user\n UserTask<Void> userTask = new UserTask<>(userId);\n userTask.setFirebaseToken(refreshedToken);\n userTask.execute(\"refreshFirebaseToken\");\n\n }\n };\n\n handler.post(runnable);\n\n }\n\n }",
"public Long getUserIdFromToken(String token) {\n\t\t//Extract claims\n\t\tClaims claims= Jwts.parser().setSigningKey(SecurityConstants.SECRET).parseClaimsJws(token).getBody();\n\t\t//return ID\n\t\treturn Long.parseLong((String)claims.get(\"id\"));\t\t\n\t}",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Timber.d(\"Refreshed token: \" + refreshedToken);\n }",
"private String issueRefreshToken(UUID user, String deviceName) {\n String token = UUID.randomUUID().toString();\n String hash = BCrypt.hashpw(token, BCrypt.gensalt());\n\n dao.updateToken(user, deviceName, hash);\n\n return token;\n }",
"public boolean validateRefreshToken(String token){\n return refreshTokenRepository.findByToken(token).isPresent();\n }",
"@Override\n public void onTokenRefresh() {\n\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // TODO: 13/6/2017 Persistir token en archivo XML.\n sharedPreferences = getSharedPreferences(\"datos\",MODE_PRIVATE);\n SharedPreferences.Editor edit = sharedPreferences.edit();\n edit.putString(String.valueOf(R.string.token),refreshedToken);\n edit.commit();\n\n\n }",
"private static GoogleIdToken verifyGoogleIdToken(String token) {\n\n GoogleIdToken idToken = null;\n\n if(token == null)\n return null;\n\n GoogleIdTokenVerifier verifier = new GoogleIdTokenVerifier.Builder(new NetHttpTransport(), new JacksonFactory())\n .setAudience(Arrays.asList(SecurityConstants.CLIENT_ID))\n .setIssuer(SecurityConstants.ISSUER)\n .build();\n\n try {\n idToken = verifier.verify(token);\n } catch (GeneralSecurityException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return idToken;\n }",
"public ResetPasswordToken findByToken(String token);",
"RefreshToken findByTokenValueAndClientId(String pTokenValue, Long pClientId) {\n return this.getRepository().findByTokenAndClientId(pTokenValue, pClientId);\n }",
"@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 }",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"java.lang.String getToken();",
"public String getToken();",
"public boolean refreshTokenKey() {\n\t\tOptional<String> apiGetTokenKeyURLOptional = ConfigPropertiesFileUtils.getValue(\"mail.api.url.getTokenKey\");\n\t\tif (!apiGetTokenKeyURLOptional.isPresent()) {\n\t\t\tLOGGER.error(\"mail.api.url.getTokenKey not exist\");\n\t\t\treturn false;\n\t\t}\n\t\tHttpClient httpClient = HttpClientBuilder.create().build();\n\t\tHttpPost request = new HttpPost(apiGetTokenKeyURLOptional.get().trim());\n\t\trequest.addHeader(\"Content-Type\", \"application/json\");\n\t\ttry {\n\t\t\tHttpResponse httpResponse = httpClient.execute(request);\n\t\t\tif (httpResponse.getStatusLine().getStatusCode() != 200) {\n\t\t\t\tLOGGER.error(\"Fail to get Token Key: \"\n\t\t\t\t\t\t+ IOUtils.toString(httpResponse.getEntity().getContent(), Charset.forName(\"UTF-8\")));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString contentJsonString = IOUtils.toString(httpResponse.getEntity().getContent(),\n\t\t\t\t\tCharset.forName(\"UTF-8\"));\n\t\t\tJSONArray contentJsonArray = new JSONArray(contentJsonString);\n\t\t\tLOGGER.debug(\"TOKEN KEY : \" + contentJsonArray.getString(0));\n\t\t\tif (contentJsonArray.getString(0).equals(\"null\")) {\n\t\t\t\tLOGGER.error(\"The response is null, check the mail.api.url.getTokenKey\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tthis.tokenKey = contentJsonArray.getString(0);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Send request to ask a new token\", e);\n\t\t\treturn false;\n\t\t}\n\t\tLOGGER.debug(\"Get token key successfully\");\n\t\treturn true;\n\t}",
"public User parseRefreshToken(final String token)\n\t{\n\t\tfinal Claims body = Jwts.parser().setSigningKey(secret).parseClaimsJws(token).getBody();\n\t\tUser user = new User();\n\t\tuser.setId(Long.valueOf(body.getSubject()));\n\t\tuser.setPassword((String) body.get(\"password\"));\n\t\tuser.setTenant((String) body.get(\"tenant\"));\n\t\treturn user;\n\t}",
"TrustedIdProvider refresh();",
"String refreshTokens();",
"@Override\n public void onTokenRefresh() {\n String token = FirebaseInstanceId.getInstance().getToken();\n registerToken(token);\n }",
"@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify our app's server of any changes (if applicable).\n startService(new Intent(this, RegistrationIntentService.class));\n }",
"public JWT getIDToken() {\n return idToken;\n }",
"public static String getToken() {\n String token = \"96179ce8939c4cdfacba65baab1d5ff8\";\n return token;\n }",
"public String getTokenId() {\n return this.TokenId;\n }",
"@Override\r\n\tpublic String refreshToken() throws OAuthSystemException {\n\t\treturn null;\r\n\t}",
"public RefreshToken createRefreshToken() {\n RefreshToken refreshToken = new RefreshToken();\n refreshToken.setExpiryDate(Instant.now().plusMillis(refreshTokenDurationMs));\n refreshToken.setToken(Util.generateRandomUuid());\n refreshToken.setRefreshCount(0L);\n return refreshToken;\n }",
"@Nullable\n public String getRefreshToken() {\n return refreshToken;\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(\"myToken\", \"Refreshed token: \" + refreshedToken);\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 getApplicationContext().sendBroadcast(new Intent(broadcast));\n SharedPrefManager.getInstance(getApplicationContext()).storeToken(refreshedToken);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n SharedPreferences settings =\n getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_FIREBASE_TOKEN, refreshedToken);\n editor.apply();\n }",
"@Override\n\tpublic OauthAccessToken acquireOauthRefreshToken(String refreshToken) \n\t{\n\t\t\n\t\tString url = WeChatConst.WECHATOAUTHURL+WeChatConst.OAUTHREFRESHTOKENURI;\n\t\tMap<String, String> param = new HashMap<String, String>();\n\t\tparam.put(\"appid\", WeChatConst.APPID);\n\t\tparam.put(\"grant_type\", \"refresh_token\");\n\t\tparam.put(\"refresh_token\", refreshToken);\n\t\tString response = HttpClientUtils.doGetWithoutHead(url, param);\n\t\tlog.debug(\" acquireOauthRefreshToken response :\"+response);\n\t\ttry {\n\t\t\tJSONObject responseJson = JSONObject.parseObject(response);\n\t\t\tOauthAccessToken authAccessToken = new OauthAccessToken();\n\t\t\tif(!responseJson.containsKey(\"errcode\"))\n\t\t\t{\n\t\t\t\tauthAccessToken.setAccessToken(responseJson.getString(\"access_token\"));\n\t\t\t\tauthAccessToken.setExpiresIn(responseJson.getString(\"exoires_in\"));\n\t\t\t\tauthAccessToken.setOpenId(responseJson.getString(\"openid\"));\n\t\t\t\tauthAccessToken.setScope(responseJson.getString(\"scope\"));\n\t\t\t\treturn authAccessToken;\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e);\n\t\t}\n\t\treturn null;\n\t}",
"private void mtd_refresh_token() {\n RxClient.get(FeedActivity.this).Login(new loginreq(sharedpreferences.\n getString(SharedPrefUtils.SpEmail, \"\"),\n sharedpreferences.getString(SharedPrefUtils.SpPassword, \"\")), new Callback<loginresp>() {\n @Override\n public void success(loginresp loginresp, Response response) {\n\n if (loginresp.getStatus().equals(\"200\")){\n\n editor.putString(SharedPrefUtils.SpRememberToken,loginresp.getToken().toString());\n editor.commit();\n\n final Handler handler = new Handler();\n final Runnable runnable = new Runnable() {\n @Override\n public void run() {\n wbService(tmpansList);\n progressBar.setVisibility(View.INVISIBLE);\n }\n };\n handler.postDelayed(runnable, 500);\n\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n progressBar.setVisibility(View.INVISIBLE);\n Log.d(\"refresh token\", \"refresh token error\");\n Toast.makeText(FeedActivity.this, \"Service not response\",\n Toast.LENGTH_LONG).show();\n finish();\n }\n });\n\n }",
"public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}",
"private static String getAppTokenId() {\n if (appTokenId == null) {\n synchronized (DefaultEntityManagerImpl.class) {\n if (appTokenId == null) {\n try {\n if (OAuthProperties.isServerMode()) {\n appTokenId = OAuthServiceUtils.getAdminTokenId();\n }\n else {\n final String username =\n OAuthProperties.get(PathDefs.APP_USER_NAME);\n final String password =\n OAuthProperties.get(PathDefs.APP_USER_PASSWORD);\n appTokenId =\n OAuthServiceUtils.authenticate(username, password, false);\n }\n }\n catch (final OAuthServiceException oe) {\n Logger.getLogger(DefaultEntityManagerImpl.class.getName()).log(\n Level.SEVERE, null, oe);\n throw new WebApplicationException(oe);\n }\n }\n }\n }\n return appTokenId;\n }",
"public String getIdToken() throws IOException {\n return (String)userInfo.get(\"id_token\");\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n if (refreshedToken != null) {\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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 sendTokenToServer(refreshedToken);\n }\n }",
"@Override\n public void onTokenRefresh() {\n\n //Getting registration token\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n\n //Displaying token on logcat\n Log.e(TAG, \"Refreshed token: \" + refreshedToken);\n\n //calling the method store token and passing token\n storeToken(refreshedToken);\n }",
"public io.lightcone.data.types.TokenIDOrBuilder getTokenIdOrBuilder() {\n return getTokenId();\n }",
"public java.lang.String getTokenId() {\n java.lang.Object ref = tokenId_;\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 tokenId_ = s;\n return s;\n }\n }",
"private void hasRefreshToken() {\n\n /* Attempt to get a user and acquireTokenSilently\n * If this fails we will do an interactive request\n */\n List<User> users = null;\n try {\n User currentUser = Helpers.getUserByPolicy(sampleApp.getUsers(), Constants.SISU_POLICY);\n\n if (currentUser != null) {\n /* We have 1 user */\n boolean forceRefresh = true;\n sampleApp.acquireTokenSilentAsync(\n scopes,\n currentUser,\n String.format(Constants.AUTHORITY, Constants.TENANT, Constants.SISU_POLICY),\n forceRefresh,\n getAuthSilentCallback());\n } else {\n /* We have no user for this policy*/\n updateRefreshTokenUI(false);\n }\n } catch (MsalClientException e) {\n /* No token in cache, proceed with normal unauthenticated app experience */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n\n } catch (IndexOutOfBoundsException e) {\n Log.d(TAG, \"User at this position does not exist: \" + e.toString());\n }\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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 try {\n sendNewTokenToServer(refreshedToken);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify of changes\n Intent intent = new Intent(this, RegistrationIntentService.class);\n intent.putExtra(\"SOURCE\", \"GCM\");\n startService(intent);\n }",
"private CompleteTokenDefinition findToken(\r\n\t\t\tConcreteSyntax syntax,\r\n\t\t\tAntlrTokenDerivator tokenDerivator, \r\n\t\t\tPlaceholderInQuotes placeholder) {\r\n\t\t\r\n\t\tString tokenExpression = tokenDerivator.deriveTokenExpression(placeholder);\r\n\t\tfor (CompleteTokenDefinition token : syntax.getSyntheticTokens()) {\r\n\t\t\tString expression = tokenExpression;\r\n\t\t\tif (expression.equals(token.getRegex())) {\r\n\t\t\t\treturn token;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private void collectToken()\n {\n String token = FirebaseInstanceId.getInstance().getId();\n Log.d(\"MYTAG\", \"Firebase_token \" + token);\n }",
"Observable<Session> getByValidToken(String token, Date now);",
"public final synchronized com.microsoft.authentication.OAuthToken mo3469a(java.lang.String r8) {\n /*\n r7 = this;\n monitor-enter(r7)\n boolean r0 = e20.b // Catch:{ all -> 0x00f2 }\n if (r0 == 0) goto L_0x0012\n do0 r0 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r1 = \"OAuthTokenProvider\"\n java.lang.String r2 = \"requestAccessToken() called\"\n jo0 r0 = r0.a // Catch:{ all -> 0x00f2 }\n if (r0 == 0) goto L_0x0012\n r0.a(r1, r2) // Catch:{ all -> 0x00f2 }\n L_0x0012:\n java.lang.String r0 = r7.f1253a // Catch:{ all -> 0x00f2 }\n boolean r0 = C20.b(r0) // Catch:{ all -> 0x00f2 }\n r1 = 0\n if (r0 == 0) goto L_0x002e\n boolean r8 = e20.b // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x002c\n do0 r8 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r0 = \"OAuthTokenProvider\"\n java.lang.String r2 = \"_allInOneRefreshToken empty, return\"\n jo0 r8 = r8.a // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x002c\n r8.a(r0, r2) // Catch:{ all -> 0x00f2 }\n L_0x002c:\n monitor-exit(r7)\n return r1\n L_0x002e:\n java.lang.String r0 = \"https://login.live.com/oauth20_token.srf\"\n java.lang.String r2 = r7.f1253a // Catch:{ all -> 0x00f2 }\n java.util.Locale r3 = java.util.Locale.US // Catch:{ all -> 0x00f2 }\n r4 = 4\n java.lang.Object[] r4 = new java.lang.Object[r4] // Catch:{ all -> 0x00f2 }\n r5 = 0\n java.lang.String r6 = \"refresh_token\"\n r4[r5] = r6 // Catch:{ all -> 0x00f2 }\n r5 = 1\n java.lang.String r6 = \"000000004C1BC462\"\n r4[r5] = r6 // Catch:{ all -> 0x00f2 }\n r5 = 2\n r4[r5] = r8 // Catch:{ all -> 0x00f2 }\n r5 = 3\n r4[r5] = r2 // Catch:{ all -> 0x00f2 }\n java.lang.String r2 = \"grant_type=%s&client_id=%s&scope=%s&refresh_token=%s\"\n java.lang.String r2 = java.lang.String.format(r3, r2, r4) // Catch:{ all -> 0x00f2 }\n java.lang.String r3 = \"\"\n com.microsoft.authentication.OAuthToken r0 = C20.a(r0, r2, r8, r3) // Catch:{ all -> 0x00f2 }\n boolean r2 = e20.b // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x007f\n do0 r2 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r3 = \"OAuthTokenProvider\"\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x00f2 }\n r4.<init>() // Catch:{ all -> 0x00f2 }\n java.lang.String r5 = \"requestOAuthToken result = [\"\n r4.append(r5) // Catch:{ all -> 0x00f2 }\n if (r0 != 0) goto L_0x006a\n java.lang.String r5 = \"null\"\n goto L_0x006c\n L_0x006a:\n java.lang.String r5 = \"non-null\"\n L_0x006c:\n r4.append(r5) // Catch:{ all -> 0x00f2 }\n java.lang.String r5 = \"]\"\n r4.append(r5) // Catch:{ all -> 0x00f2 }\n java.lang.String r4 = r4.toString() // Catch:{ all -> 0x00f2 }\n jo0 r2 = r2.a // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x007f\n r2.a(r3, r4) // Catch:{ all -> 0x00f2 }\n L_0x007f:\n if (r0 == 0) goto L_0x00f0\n boolean r2 = r0.isRefreshTokenExpired() // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x00a1\n boolean r2 = e20.b // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x0098\n do0 r2 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r3 = \"OAuthTokenProvider\"\n java.lang.String r4 = \"oAuthToken.isRefreshTokenExpired\"\n jo0 r2 = r2.a // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x0098\n r2.a(r3, r4) // Catch:{ all -> 0x00f2 }\n L_0x0098:\n com.microsoft.authentication.OAuthTokenProvider$Listener r2 = r7.f1254b // Catch:{ all -> 0x00f2 }\n if (r2 == 0) goto L_0x00a1\n com.microsoft.authentication.OAuthTokenProvider$Listener r2 = r7.f1254b // Catch:{ all -> 0x00f2 }\n r2.onCredentialUpdateRequired() // Catch:{ all -> 0x00f2 }\n L_0x00a1:\n boolean r2 = r0.isValidOAuthToken() // Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x00ba\n boolean r8 = e20.b // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00b8\n do0 r8 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r0 = \"OAuthTokenProvider\"\n java.lang.String r2 = \"oAuthToken not valid oauth token\"\n jo0 r8 = r8.a // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00b8\n r8.a(r0, r2) // Catch:{ all -> 0x00f2 }\n L_0x00b8:\n monitor-exit(r7)\n return r1\n L_0x00ba:\n java.lang.String r1 = \"service::ssl.live.com::MBI_SSL\"\n boolean r8 = r1.equals(r8) // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00f0\n java.lang.String r8 = r0.getRefreshToken() // Catch:{ all -> 0x00f2 }\n boolean r8 = C20.b(r8) // Catch:{ all -> 0x00f2 }\n if (r8 != 0) goto L_0x00f0\n com.microsoft.authentication.OAuthTokenProvider$Listener r8 = r7.f1254b // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00f0\n boolean r8 = e20.b // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00e1\n do0 r8 = e20.a // Catch:{ all -> 0x00f2 }\n java.lang.String r1 = \"OAuthTokenProvider\"\n java.lang.String r2 = \"oAuthToken update refresh token\"\n jo0 r8 = r8.a // Catch:{ all -> 0x00f2 }\n if (r8 == 0) goto L_0x00e1\n r8.a(r1, r2) // Catch:{ all -> 0x00f2 }\n L_0x00e1:\n java.lang.String r8 = r0.getRefreshToken() // Catch:{ all -> 0x00f2 }\n r7.f1253a = r8 // Catch:{ all -> 0x00f2 }\n com.microsoft.authentication.OAuthTokenProvider$Listener r8 = r7.f1254b // Catch:{ all -> 0x00f2 }\n java.lang.String r1 = r0.getRefreshToken() // Catch:{ all -> 0x00f2 }\n r8.onOneDriveRefreshTokenUpdated(r1) // Catch:{ all -> 0x00f2 }\n L_0x00f0:\n monitor-exit(r7)\n return r0\n L_0x00f2:\n r8 = move-exception\n monitor-exit(r7)\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.microsoft.authentication.OAuthTokenProvider.mo3469a(java.lang.String):com.microsoft.authentication.OAuthToken\");\n }",
"public String getId() {\n\t\treturn this.token.get(\"id\").toString();\n\t}",
"public RetrieveTokenApi getRetrieveToken() {\n return retrieveTokenApi;\n }",
"public void checkToRefreshToken(\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final long timeDiff =\n mSharecareToken.expiresIn.getTime() - new Date().getTime();\n final long timeDiffInMin = TimeUnit.MILLISECONDS.toMinutes(timeDiff);\n if (timeDiffInMin < TIME_LIMIT_IN_MINUTES)\n {\n refreshToken(completion);\n }\n else if (completion != null)\n {\n completion.onCompletion(ServiceResultStatus.CANCELLED, 0, null);\n }\n }",
"public abstract long renewToken(Token<T> token, String renewer)\n throws IOException;",
"@Cacheable(\"lastRunInfo\")\n private GeobatchRunInfo getLastRunInfoCache(String id) {\n List<GeobatchRunInfo> search = search(id);\n \n return search != null && !search.isEmpty() ? search.get(0) : null;\n }",
"@Override\r\n public void onTokenRefresh() {\n App.sendToken();\r\n }"
] |
[
"0.6207496",
"0.6193389",
"0.6135563",
"0.609998",
"0.5969791",
"0.5965414",
"0.5842846",
"0.58282167",
"0.5781099",
"0.57661027",
"0.57431626",
"0.57033396",
"0.56895185",
"0.56895185",
"0.56878626",
"0.5656765",
"0.565261",
"0.5647817",
"0.5602125",
"0.55983806",
"0.557757",
"0.55635697",
"0.5553485",
"0.5550816",
"0.55476683",
"0.5545302",
"0.55339235",
"0.5512084",
"0.5508069",
"0.5507146",
"0.5480416",
"0.5479698",
"0.5459907",
"0.54525656",
"0.54271257",
"0.54199356",
"0.54095674",
"0.53918093",
"0.537436",
"0.5355183",
"0.53422135",
"0.53358203",
"0.53270864",
"0.53120583",
"0.5310489",
"0.530828",
"0.5302881",
"0.5276646",
"0.5273558",
"0.52670825",
"0.5250204",
"0.5245653",
"0.52427524",
"0.52191955",
"0.51999617",
"0.5190432",
"0.51874083",
"0.51641005",
"0.51641005",
"0.51641005",
"0.51641005",
"0.51641005",
"0.51641005",
"0.515973",
"0.514777",
"0.5146661",
"0.5140252",
"0.51397884",
"0.512848",
"0.51218086",
"0.5114333",
"0.51139784",
"0.5105411",
"0.5101312",
"0.51002073",
"0.50956416",
"0.50950295",
"0.50931615",
"0.5090642",
"0.5087228",
"0.50717854",
"0.5056418",
"0.5044874",
"0.50382626",
"0.5037911",
"0.50351465",
"0.50239813",
"0.5023601",
"0.50178075",
"0.5016933",
"0.50130534",
"0.5008129",
"0.5008109",
"0.5004292",
"0.49875963",
"0.4986464",
"0.49801928",
"0.49787802",
"0.4972464",
"0.49722365"
] |
0.6177716
|
2
|
Persist the updated refreshToken instance to database
|
public RefreshToken save(RefreshToken refreshToken) {
return refreshTokenRepository.save(refreshToken);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@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 onTokenRefresh() {\n String token = FirebaseInstanceId.getInstance().getToken();\n\n addRegistrationToFireDb(token);\n }",
"@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 onTokenRefresh() {\n\n //Getting registration token\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n\n //Displaying token on logcat\n Log.e(TAG, \"Refreshed token: \" + refreshedToken);\n\n //calling the method store token and passing token\n storeToken(refreshedToken);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(\"myToken\", \"Refreshed token: \" + refreshedToken);\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 getApplicationContext().sendBroadcast(new Intent(broadcast));\n SharedPrefManager.getInstance(getApplicationContext()).storeToken(refreshedToken);\n }",
"@Override\n public void onTokenRefresh() {\n // Get updated InstanceID token.\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(\"Refreshed token: \" + refreshedToken);\n sendRegistrationToServer(refreshedToken);\n }",
"public RefreshToken generateRefreshToken(){\n RefreshToken refreshToken = new RefreshToken();\n //Creates a 128bit random UUID. This serves as our refresh token\n refreshToken.setToken(UUID.randomUUID().toString());\n //Set creation timestampt\n refreshToken.setCreatedDate(Instant.now());\n\n return refreshTokenRepository.save(refreshToken);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n SharedPreferences settings =\n getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_FIREBASE_TOKEN, refreshedToken);\n editor.apply();\n }",
"@Override\n public void onTokenRefresh() {\n // Get updated InstanceID token.\n device_id = Settings.Secure.getString(this.getContentResolver(),\n Settings.Secure.ANDROID_ID);\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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\n //**************need to modify the code such that it can update exisiting user data***********************\n sendRegistrationToServer(refreshedToken);\n //**************need to modify the code such that it can update exisiting user data***********************\n }",
"@Override\n public void onTokenRefresh() {\n\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // TODO: 13/6/2017 Persistir token en archivo XML.\n sharedPreferences = getSharedPreferences(\"datos\",MODE_PRIVATE);\n SharedPreferences.Editor edit = sharedPreferences.edit();\n edit.putString(String.valueOf(R.string.token),refreshedToken);\n edit.commit();\n\n\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Timber.d(\"Refreshed token: \" + refreshedToken);\n }",
"@Override\n public void onTokenRefresh() {\n String token = FirebaseInstanceId.getInstance().getToken();\n registerToken(token);\n }",
"@Transactional\n\tprivate void saveOrUpdateAccessToken() {\n\t\tString tfw = null;\n\t\ttry {\n\t\t\ttfw = this.getAccessTokenFromWechatServer();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (tokenConstant == null) {\n\t\t\ttokenConstant = new AccessToken();\n//\t\t\tconstant.setKey(Consts.access_token_key_in_db);\n//\t\t\tconstant.setValue(tfw);\n//\t\t\ttokenConstant.setUpdateTime(new Date());\n//\n//\t\t\tthis.tokenConstant = constant;\n//\t\t\tthis.constantMapper.insert(constant);\n\t\t\tlog.info(\"第一次获取accessToken\");\n\t\t}\n//\t\telse {\n//\t\t\tconstant.setValue(tfw);\n//\t\t\tconstant.setUpdateTime(new Date());\n//\n//\t\t\tthis.tokenConstant = constant;\n//\t\t\tthis.constantMapper.updateAccessToken(constant);\n//\t\t\tlog.info(\"accessToken已经更新\");\n//\t\t}\n\t\tWechatConsts.param_access_token=tfw;\n\t\t\n\t\ttokenConstant.setAccess_token(tfw);\n\t\ttokenConstant.setUpdateTime(new Date());\n\t}",
"@Transient\n\tpublic String getRefreshToken() {\n\t\treturn refreshToken;\n\t}",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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 try {\n sendNewTokenToServer(refreshedToken);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onTokenRefresh() {\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n if (refreshedToken != null) {\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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 sendTokenToServer(refreshedToken);\n }\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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 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 }",
"public void saveToken(String token, long passTime) {\n }",
"@Override\n public void onTokenRefresh(){\n if (FirebaseAuth.getInstance().getCurrentUser() != null) {\n String token = FirebaseInstanceId.getInstance().getToken();\n Log.v(TAG, \"success in getting instance \"+ token);\n onSendRegistrationToServer(token);\n }\n }",
"public void increaseCount(RefreshToken refreshToken) {\n refreshToken.incrementRefreshCount();\n save(refreshToken);\n }",
"@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify our app's server of any changes (if applicable).\n startService(new Intent(this, RegistrationIntentService.class));\n }",
"@Override\r\n public void onTokenRefresh() {\n App.sendToken();\r\n }",
"public String getRefreshToken() {\r\n return refreshToken;\r\n }",
"@Override\n public void onTokenRefresh() {\n\n String token = FirebaseInstanceId.getInstance().getToken();\n CTOKEN = token;\n\n// if(sgen.ID != \"\") {\n// String query = \"UPDATE USER_DETAILS SET FTOKEN = '\"+token+\"' WHERE ID = '\"+sgen.ID+\"'; \";\n// ArrayList<Team> savedatateam = servicesRequest.save_data(query);\n// sgen.FTOKEN = token;\n// }\n\n\n // Once the token is generated, subscribe to topic with the userId\n// if(sgen.ATOKEN.equals(sgen.CTOKEN)) {\n try {\n FirebaseMessaging.getInstance().subscribeToTopic(SUBSCRIBE_TO);\n Log.i(TAG, \"onTokenRefresh completed with token: \" + token);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n// }\n\n\n /* sendRegistrationToServer(refreshedToken);*/\n }",
"@Override\n public void onTokenRefresh() {\n final String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n\n //To displaying token on logcat\n Log.w(\"TOKEN: \", refreshedToken);\n\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFERENCE_FILE, MODE_PRIVATE);\n final Long userId = sharedPreferences.getLong(\"userId\", 0L);\n\n if (!userId.equals(0L)){\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"firebaseToken\", refreshedToken);\n editor.apply();\n\n Handler handler = new Handler(this.getMainLooper());\n\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n\n // Update token for this user\n UserTask<Void> userTask = new UserTask<>(userId);\n userTask.setFirebaseToken(refreshedToken);\n userTask.execute(\"refreshFirebaseToken\");\n\n }\n };\n\n handler.post(runnable);\n\n }\n\n }",
"public void storeToken(AuthorizationToken token);",
"@Override\n public void injectToken(User user, HttpServletResponse res) {\n refreshTokenRepository.findByUserUsername(user.getUsername()).ifPresentOrElse(token -> {\n res.addCookie(createCookie(token.getId()));\n }, () -> {\n final Refresh entityToSave = Refresh.builder()\n .user(user)\n .id(UUID.randomUUID()).build();\n final Refresh savedEntity = refreshTokenRepository.save(entityToSave);\n res.addCookie(createCookie(savedEntity.getId()));\n });\n }",
"private String refreshToken() {\n return null;\n }",
"@Nullable\n public String getRefreshToken() {\n return refreshToken;\n }",
"@Override\n\tprotected RefreshToken doCreateNewRefreshToken(ServerAccessToken at) {\n\t\tRefreshToken refreshToken = super.doCreateNewRefreshToken(at);\n\t\trefreshToken.setTokenKey(\"RT:\" + UUID.randomUUID().toString());\n\t\trefreshToken.setExpiresIn(Oauth2Factory.REFRESH_TOKEN_EXPIRED_TIME_SECONDS);\n\t\t\n\t\tif (log.isDebugEnabled()) {\n\t\t\ttry {\n\t\t\t\tlog.debug(\"RefreshToken={}\", OBJECT_MAPPER.writeValueAsString(refreshToken));\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn refreshToken;\n\t}",
"@PostMapping(\"/refreshJwtToken\")\n public ResponseEntity<TokenRefreshResponse> postRefreshToken(@Valid @RequestBody TokenRefreshRequest request) {\n TokenRefreshResponse tokenRefreshResponse = this.authenticationService.getRefreshedToken(request);\n return ResponseEntity.ok(tokenRefreshResponse);\n }",
"public String getRefreshToken() {\n\t\treturn refreshToken;\n\t}",
"@Override\n public void run() {\n UserTask<Void> userTask = new UserTask<>(userId);\n userTask.setFirebaseToken(refreshedToken);\n userTask.execute(\"refreshFirebaseToken\");\n\n }",
"public Boolean saveToken(Integer userId, String token) {\n try {\n ResultSet rs = queryUpdate(String.format(\n \"UPDATE %s SET last_token='%s',token_expire=DATE_ADD(now(), INTERVAL 7 DAY) where id=%d\", this.tableName, token, userId\n ));\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return true;\n }",
"@Override\r\n public void setTokens(OAuthTokens tokens)\r\n {\r\n tokenStore.saveTokens(tokens);\r\n }",
"protected void createIdTokenForRefreshRequest() {\n\t\tgenerateIdTokenClaims();\n\n\t\taddAtHashToIdToken();\n\n\t\taddCustomValuesToIdTokenForRefreshResponse();\n\n\t\tsignIdToken();\n\n\t\tcustomizeIdTokenSignatureForRefreshResponse();\n\n\t\tencryptIdTokenIfNecessary();\n\t}",
"void setAuthorizerRefreshToken(String appId, String authorizerRefreshToken);",
"private void refreshGoogleCalendarToken() {\n this.getGoogleToken();\n }",
"public void setRefreshToken(String refreshToken) {\n\t\tthis.refreshToken = refreshToken;\n\t}",
"public String getRefresh_token() {\r\n\t\treturn refresh_token;\r\n\t}",
"Account refresh(Context context);",
"@Override\n\tpublic void expireToken() {\n\t\t\n\t}",
"public void persist() {\n getBuildContextHolder().persist();\n }",
"private void mtd_refresh_token() {\n RxClient.get(FeedActivity.this).Login(new loginreq(sharedpreferences.\n getString(SharedPrefUtils.SpEmail, \"\"),\n sharedpreferences.getString(SharedPrefUtils.SpPassword, \"\")), new Callback<loginresp>() {\n @Override\n public void success(loginresp loginresp, Response response) {\n\n if (loginresp.getStatus().equals(\"200\")){\n\n editor.putString(SharedPrefUtils.SpRememberToken,loginresp.getToken().toString());\n editor.commit();\n\n final Handler handler = new Handler();\n final Runnable runnable = new Runnable() {\n @Override\n public void run() {\n wbService(tmpansList);\n progressBar.setVisibility(View.INVISIBLE);\n }\n };\n handler.postDelayed(runnable, 500);\n\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n progressBar.setVisibility(View.INVISIBLE);\n Log.d(\"refresh token\", \"refresh token error\");\n Toast.makeText(FeedActivity.this, \"Service not response\",\n Toast.LENGTH_LONG).show();\n finish();\n }\n });\n\n }",
"void saveChangesTo(Consumer consumer) throws RegistrationException;",
"@Override\n public void onNewToken(String token) {\n Log.d(TAG, \"Refreshed token: \" + token);\n\n }",
"public static void save() {\n if (instance != null) {\n // -> SyncedDatabases.syncAll();\n instance.markDirty();\n }\n }",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"private void saveTokensToVault(UpdateClusterRequest callbackRequest) {\n\t\tVaultRequest vaultRequest = new VaultRequest();\n\t\tvaultRequest.setClusterReqId(callbackRequest.getClusterID());\n\t\tvaultRequest.setApiServerToken(callbackRequest.getCreateClusterDetails().getK8sAdminToken());\n\t\tvaultRequest.setDashboardToken(callbackRequest.getCreateClusterDetails().getDashboardToken());\n\t\tvaultService.saveCredential(vaultRequest, VaultEntityTypes.API_TOKEN.getKeyValue());\n\t\tvaultService.saveCredential(vaultRequest, VaultEntityTypes.DASHBOARD_TOKEN.getKeyValue());\n\t}",
"public boolean save(Context context, AccessToken accessToken) \n {\n\n Editor editor = context.getSharedPreferences(KEY, Context.MODE_PRIVATE).edit();\n\n this.token = accessToken.getToken();\n this.tokensecret = accessToken.getTokenSecret();\n editor.putString(TOKEN, token);\n editor.putString(TOKENSECRET, tokensecret);\n \n\n if (editor.commit()) \n {\n singleton = this;\n return true;\n }\n return false;\n }",
"Snapshot refresh(Context context);",
"@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify of changes\n Intent intent = new Intent(this, RegistrationIntentService.class);\n intent.putExtra(\"SOURCE\", \"GCM\");\n startService(intent);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"REFRESHED TOKEN: \" + refreshedToken);\n JSONObject jsonbody = new JSONObject();\n try {\n jsonbody.put(\"UserID\",App.profileModel.UserID);\n jsonbody.put(\"GCMToken\",refreshedToken);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if(refreshedToken != null)\n HttpCaller\n .getInstance()\n .updateGCMToken(\n jsonbody,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject o) {\n try {\n if(!o.getBoolean(\"Status\")) {\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n }\n },true);\n\n\n\n\n prefs = Prefs.getInstance();\n Gson gson = new Gson();\n userPrefsInance = prefs.init(getApplicationContext());\n userPrefsInance.edit().putString(prefs.GCM_TOKEN,refreshedToken);\n\n App.profileModel.GCMToken = refreshedToken;\n\n if(App.profileModel.UserID > 0) {\n HttpCaller.\n getInstance().\n updateGCMToken(\n null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject o) {\n try {\n if (!o.getBoolean(\"Status\")) {\n //Helper.showToast(\"Failed to update notification device token.\", ToastStyle.ERROR);\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n //Helper.showToast(\"Failed to update notification device token.\", ToastStyle.ERROR);\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n //Helper.showToast(\"Failed to update notification device token.\", ToastStyle.ERROR);\n\n }\n },true);\n }\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 }",
"protected boolean generateIdTokenOnRefreshRequest() {\n\t\treturn true;\n\t}",
"@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }",
"public String refreshToken(String token) {\n String refreshedToken;\n try {\n final Claims claims = this.getClaimsFromToken(token);\n claims.put(CREATED, dateUtil.getCurrentDate());\n refreshedToken = this.generateToken(claims);\n } catch (Exception e) {\n refreshedToken = null;\n }\n return refreshedToken;\n }",
"public boolean save() {\n\n return this.consumer.getDataConnector().saveConsumerNonce(this);\n\n }",
"Snapshot refresh();",
"public void sendTokenToServer(final String strToken) {\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n final DatabaseReference usersRef = database.getReference(\"users\");\n\n usersRef.addListenerForSingleValueEvent(new com.google.firebase.database.ValueEventListener() {\n @Override\n public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) {\n\n for (com.google.firebase.database.DataSnapshot userSnapshot : dataSnapshot.getChildren()) {\n //Getting the data from snapshot\n FirebaseUserModel firebaseUserModel = userSnapshot.getValue(FirebaseUserModel.class);\n\n if (strToken != null && firebaseUserModel.getDeviceId().equals(user.deviceId) && !strToken.equals(firebaseUserModel.getDeviceToken())) {\n user.deviceToken = strToken;\n usersRef.child(userSnapshot.getKey()).child(\"deviceToken\").setValue(strToken, new Firebase.CompletionListener() {\n\n @Override\n public void onComplete(FirebaseError firebaseError, Firebase firebase) {\n if (firebaseError != null) {\n Log.i(TAG, firebaseError.toString());\n } else {\n System.out.println(\"Refreshed Token Updated\");\n }\n }\n });\n\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getMessage());\n }\n });\n\n }",
"Account refresh();",
"public void markRefreshed() {\n tozAdCampaignRetrievalCounter = 0;\n }",
"public String refreshToken(String token) {\n\t\tString refreshedToken;\n\t\ttry {\n\t\t\tfinal Claims claims = this.getClaimsFromToken(token);\n\t\t\tclaims.put(\"created\", this.generateCurrentDate());\n\t\t\trefreshedToken = this.generateToken(claims);\n\t\t} catch (Exception e) {\n\t\t\trefreshedToken = null;\n\t\t}\n\t\treturn refreshedToken;\n\t}",
"ExchangeRate saveOrUpdate(ExchangeRate rate);",
"@Override\n public void onTokenRefresh() {\n Log.d(\"MyInstanceIDService\", \"onTokenRefresh\");\n// new GCMDoRequest().execute(new GCMRequest(this, GCMCommand.GET_TOKEN));\n }",
"public void save() {\n\t\tpreferences().flush();\n\t}",
"@Override\n public void handleTokenExpiration(){\n JWTToken.removeTokenSharedPref(this);\n }",
"public Integer getRefreshTokenValiditySeconds() {\n return refreshTokenValiditySeconds;\n }",
"@Override\n public void persist() {\n }",
"TrustedIdProvider refresh();",
"protected void updateTokens(){}",
"protected boolean generateRefreshTokenOnRefreshRequest() {\n\t\treturn true;\n\t}",
"private void refreshAccessToken() throws IOException {\n\n if (clientId == null) fetchOauthProperties();\n\n URL url = new URL(tokenURI);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"refresh_token\", refreshToken);\n params.put(\"client_id\", clientId);\n params.put(\"client_secret\", clientSecret);\n params.put(\"grant_type\", \"refresh_token\");\n\n String response = HttpUtils.getInstance().doPost(url, params);\n JsonParser parser = new JsonParser();\n JsonObject obj = parser.parse(response).getAsJsonObject();\n\n JsonPrimitive atprim = obj.getAsJsonPrimitive(\"access_token\");\n if (atprim != null) {\n accessToken = obj.getAsJsonPrimitive(\"access_token\").getAsString();\n expirationTime = System.currentTimeMillis() + (obj.getAsJsonPrimitive(\"expires_in\").getAsInt() * 1000);\n fetchUserProfile();\n } else {\n // Refresh token has failed, reauthorize from scratch\n reauthorize();\n }\n\n }",
"@Override\n public List<RefreshToken> getRefreshTokens() {\n return new ArrayList<RefreshToken>(refreshTokens.values());\n }",
"@Override\n public List<RefreshToken> getRefreshTokens() {\n return new ArrayList<RefreshToken>(refreshTokens.values());\n }",
"@Api(1.0)\n @NonNull\n public String getRefreshToken() {\n return mRefreshToken;\n }",
"public void save(){\n DatabaseReference dbRef = DatabaseHelper.getDb().getReference().child(DatabaseVars.VouchersTable.VOUCHER_TABLE).child(getVoucherID());\n\n dbRef.setValue(this);\n }",
"public void GuardarSerologia(RecepcionSero obj)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(obj);\n }",
"public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}",
"private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }",
"@Override\n public void onTokenRefresh(){\n // start Gcm registration service\n Intent intent = new Intent(this, GcmRegistrationIntentService.class);\n startService(intent);\n }",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }",
"@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }",
"public RefreshToken createRefreshToken() {\n RefreshToken refreshToken = new RefreshToken();\n refreshToken.setExpiryDate(Instant.now().plusMillis(refreshTokenDurationMs));\n refreshToken.setToken(Util.generateRandomUuid());\n refreshToken.setRefreshCount(0L);\n return refreshToken;\n }",
"private void saveToken(Context context, String text) {\n android.content.SharedPreferences settings;\n android.content.SharedPreferences.Editor editor;\n \n settings = context.getSharedPreferences(\"PREFS_NAME\", Context.MODE_PRIVATE);\n editor = settings.edit();\n editor.putString(\"TOKEN\", text);\n editor.apply();\n }",
"@Override\n public void onNewToken(String token) {\n Log.d(\"FireBaseActivity\", \"Refreshed token: \" + token);\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(token);\n }",
"public boolean saveRequest(Context context, RequestToken requestToken, Twitter t) \n {\n\n \ttwitter = t;\n Editor editor = context.getSharedPreferences(KEY, Context.MODE_PRIVATE).edit();\n\n rtoken = requestToken.getToken();\n rtokensecret =requestToken.getTokenSecret();\n editor.putString(R_TOKEN,rtoken);\n editor.putString(R_TOKENSECRET, rtokensecret);\n\n if (editor.commit()) \n {\n singleton = this;\n return true;\n }\n return false;\n }",
"@GetMapping(value = \"/token/refresh\")\n public void refreshToken (HttpServletRequest request, HttpServletResponse response) throws IOException {\n String authorizationHeader = request.getHeader(AUTHORIZATION);\n if(authorizationHeader!=null && authorizationHeader.startsWith(\"Bearer \")){\n\n try {\n String refreshToken = authorizationHeader.substring(\"Bearer \".length());\n Algorithm algorithm = Algorithm.HMAC256(\"secret\".getBytes());\n JWTVerifier verifier = JWT.require(algorithm).build();\n DecodedJWT decodedJWT = verifier.verify(refreshToken);\n String userName = decodedJWT.getSubject();\n User user = userRepo.findByUserName(userName);\n\n String accessToken = JWT.create()\n .withSubject(user.getUserName())\n .withExpiresAt(new Date(System.currentTimeMillis()+ 10*60*1000))\n .withIssuer(request.getRequestURL().toString())\n .withClaim(\"roles\", user.getRoles().stream().map(Role::getRoleName).collect(Collectors.toList()))\n .sign(algorithm);\n\n\n\n Map<String , String> tokens = new HashMap<>();\n tokens.put(\"accessToken\",accessToken);\n tokens.put(\"refreshToken\",refreshToken);\n response.setContentType(APPLICATION_JSON_VALUE);\n new ObjectMapper().writeValue(response.getOutputStream(),tokens);\n\n }catch (Exception exception){\n\n response.setHeader(\"Error\", exception.getMessage());\n response.setStatus(FORBIDDEN.value());\n //response.sendError(FORBIDDEN.value());\n\n Map<String , String> error = new HashMap<>();\n error.put(\"errorMsg\",exception.getMessage());\n response.setContentType(APPLICATION_JSON_VALUE);\n new ObjectMapper().writeValue(response.getOutputStream(),error);\n }\n\n }else {\n throw new RuntimeException(\"Refresh token is missing\");\n }\n }",
"public void save(){\r\n\t\tmanager.save(this);\r\n\t}",
"private String issueRefreshToken(UUID user, String deviceName) {\n String token = UUID.randomUUID().toString();\n String hash = BCrypt.hashpw(token, BCrypt.gensalt());\n\n dao.updateToken(user, deviceName, hash);\n\n return token;\n }",
"public void verifyExpiration(RefreshToken token) {\n if (token.getExpiryDate().compareTo(Instant.now()) < 0) {\n throw new TokenRefreshException(token.getToken(), \"Expired token. Please issue a new request\");\n }\n }",
"public void setRefreshToken(String refreshToken) {\r\n this.refreshToken = refreshToken == null ? null : refreshToken.trim();\r\n }",
"protected void saveToken(HttpServletRequest request) {\r\n Logger l = LogUtils.enterLog(getClass(), \"saveToken\", request);\r\n\r\n saveToken(request, getTokenConstant());\r\n\r\n l.exiting(getClass().getName(), \"saveToken\");\r\n }",
"@Override\r\n\tpublic void persist() {\n\t}",
"public synchronized void checkTokenExpiry() {\n if (this.mExpiryDate != null && this.mExpiryDate.getTime() <= System.currentTimeMillis() + REFRESH_THRESHOLD) {\n acquireTokenAsync();\n }\n }",
"public boolean onSessionChanged(String authToken, String refreshToken, long expires);",
"User setTokenForUser(String username, String token) throws DatabaseException;",
"public static void storeToken(AccessToken token, Context cont)\n\t{\n\t\tSharedPreferences.Editor editor = cont.getSharedPreferences(\"StatPump\", 0).edit();\n\t\teditor.putString(\"Token\", token.getToken());\n\t\teditor.putString(\"Token Secret\", token.getTokenSecret());\n\t\teditor.commit();\n\t}"
] |
[
"0.66788286",
"0.6618583",
"0.6379781",
"0.62347925",
"0.6220963",
"0.6216835",
"0.6150218",
"0.6133613",
"0.60481405",
"0.6041174",
"0.600882",
"0.6005868",
"0.5988483",
"0.5918793",
"0.5913729",
"0.58691174",
"0.5868335",
"0.58206546",
"0.58200365",
"0.57376605",
"0.5733683",
"0.5718768",
"0.5669291",
"0.559659",
"0.5573848",
"0.5547892",
"0.55384433",
"0.5531252",
"0.55166847",
"0.5473846",
"0.5465406",
"0.5421514",
"0.539606",
"0.53954476",
"0.53887486",
"0.5377689",
"0.5366046",
"0.5328731",
"0.5324985",
"0.5300052",
"0.52958095",
"0.529314",
"0.5275475",
"0.52710766",
"0.52436393",
"0.51997274",
"0.5199658",
"0.51936096",
"0.5181055",
"0.51500654",
"0.51383346",
"0.5133463",
"0.51252186",
"0.51193714",
"0.511262",
"0.51040983",
"0.5091013",
"0.50619495",
"0.506177",
"0.50588214",
"0.50579286",
"0.5053634",
"0.5051559",
"0.5048987",
"0.50306726",
"0.5027429",
"0.50206316",
"0.5015451",
"0.5000667",
"0.5000262",
"0.49918398",
"0.49864075",
"0.49814948",
"0.49668083",
"0.49467",
"0.49467",
"0.4938369",
"0.49357593",
"0.4925875",
"0.4917356",
"0.49171773",
"0.4902087",
"0.4900042",
"0.48934907",
"0.48845816",
"0.48829243",
"0.48815176",
"0.48806864",
"0.48749435",
"0.48711014",
"0.48697847",
"0.4868014",
"0.48650044",
"0.48590302",
"0.48579893",
"0.48534185",
"0.48531634",
"0.48476642",
"0.48402026",
"0.48400885"
] |
0.708794
|
0
|
Creates and returns a new refresh token
|
public RefreshToken createRefreshToken() {
RefreshToken refreshToken = new RefreshToken();
refreshToken.setExpiryDate(Instant.now().plusMillis(refreshTokenDurationMs));
refreshToken.setToken(Util.generateRandomUuid());
refreshToken.setRefreshCount(0L);
return refreshToken;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RefreshToken generateRefreshToken(){\n RefreshToken refreshToken = new RefreshToken();\n //Creates a 128bit random UUID. This serves as our refresh token\n refreshToken.setToken(UUID.randomUUID().toString());\n //Set creation timestampt\n refreshToken.setCreatedDate(Instant.now());\n\n return refreshTokenRepository.save(refreshToken);\n }",
"@Override\n\tprotected RefreshToken doCreateNewRefreshToken(ServerAccessToken at) {\n\t\tRefreshToken refreshToken = super.doCreateNewRefreshToken(at);\n\t\trefreshToken.setTokenKey(\"RT:\" + UUID.randomUUID().toString());\n\t\trefreshToken.setExpiresIn(Oauth2Factory.REFRESH_TOKEN_EXPIRED_TIME_SECONDS);\n\t\t\n\t\tif (log.isDebugEnabled()) {\n\t\t\ttry {\n\t\t\t\tlog.debug(\"RefreshToken={}\", OBJECT_MAPPER.writeValueAsString(refreshToken));\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn refreshToken;\n\t}",
"protected void createIdTokenForRefreshRequest() {\n\t\tgenerateIdTokenClaims();\n\n\t\taddAtHashToIdToken();\n\n\t\taddCustomValuesToIdTokenForRefreshResponse();\n\n\t\tsignIdToken();\n\n\t\tcustomizeIdTokenSignatureForRefreshResponse();\n\n\t\tencryptIdTokenIfNecessary();\n\t}",
"public String refreshToken(String token) {\n String refreshedToken;\n try {\n final Claims claims = this.getClaimsFromToken(token);\n claims.put(CREATED, dateUtil.getCurrentDate());\n refreshedToken = this.generateToken(claims);\n } catch (Exception e) {\n refreshedToken = null;\n }\n return refreshedToken;\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 }",
"public String refreshToken(String token) {\n\t\tString refreshedToken;\n\t\ttry {\n\t\t\tfinal Claims claims = this.getClaimsFromToken(token);\n\t\t\tclaims.put(\"created\", this.generateCurrentDate());\n\t\t\trefreshedToken = this.generateToken(claims);\n\t\t} catch (Exception e) {\n\t\t\trefreshedToken = null;\n\t\t}\n\t\treturn refreshedToken;\n\t}",
"public String generateNewAccessToken(String refresh_token) throws SocketTimeoutException, IOException, Exception{\n String newAccessToken = \"\";\n JSONObject jsonReturn = new JSONObject();\n JSONObject tokenRequestParams = new JSONObject();\n tokenRequestParams.element(\"refresh_token\", refresh_token);\n if(currentRefreshToken.equals(\"\")){\n //You must read in the properties first!\n Exception noProps = new Exception(\"You must read in the properties first with init(). There was no refresh token set.\");\n throw noProps;\n }\n else{\n try{\n URL rerum = new URL(Constant.RERUM_ACCESS_TOKEN_URL);\n HttpURLConnection connection = (HttpURLConnection) rerum.openConnection();\n connection.setRequestMethod(\"POST\"); \n connection.setConnectTimeout(5*1000); \n connection.setDoOutput(true);\n connection.setDoInput(true);\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n connection.connect();\n DataOutputStream outStream = new DataOutputStream(connection.getOutputStream());\n //Pass in the user provided JSON for the body \n outStream.writeBytes(tokenRequestParams.toString());\n outStream.flush();\n outStream.close(); \n //Execute rerum server v1 request\n BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(),\"utf-8\"));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null){\n //Gather rerum server v1 response\n sb.append(line);\n }\n reader.close();\n jsonReturn = JSONObject.fromObject(sb.toString());\n newAccessToken = jsonReturn.getString(\"access_token\");\n }\n catch(java.net.SocketTimeoutException e){ //This specifically catches the timeout\n System.out.println(\"The Auth0 token endpoint is taking too long...\");\n jsonReturn = new JSONObject(); //We were never going to get a response, so return an empty object.\n jsonReturn.element(\"error\", \"The Auth0 endpoint took too long\");\n throw e;\n }\n }\n setAccessToken(newAccessToken);\n writeProperty(\"access_token\", newAccessToken);\n return newAccessToken;\n }",
"String getAuthorizerRefreshToken(String appId);",
"private String refreshToken() {\n return null;\n }",
"@Override\n\tpublic OauthAccessToken acquireOauthRefreshToken(String refreshToken) \n\t{\n\t\t\n\t\tString url = WeChatConst.WECHATOAUTHURL+WeChatConst.OAUTHREFRESHTOKENURI;\n\t\tMap<String, String> param = new HashMap<String, String>();\n\t\tparam.put(\"appid\", WeChatConst.APPID);\n\t\tparam.put(\"grant_type\", \"refresh_token\");\n\t\tparam.put(\"refresh_token\", refreshToken);\n\t\tString response = HttpClientUtils.doGetWithoutHead(url, param);\n\t\tlog.debug(\" acquireOauthRefreshToken response :\"+response);\n\t\ttry {\n\t\t\tJSONObject responseJson = JSONObject.parseObject(response);\n\t\t\tOauthAccessToken authAccessToken = new OauthAccessToken();\n\t\t\tif(!responseJson.containsKey(\"errcode\"))\n\t\t\t{\n\t\t\t\tauthAccessToken.setAccessToken(responseJson.getString(\"access_token\"));\n\t\t\t\tauthAccessToken.setExpiresIn(responseJson.getString(\"exoires_in\"));\n\t\t\t\tauthAccessToken.setOpenId(responseJson.getString(\"openid\"));\n\t\t\t\tauthAccessToken.setScope(responseJson.getString(\"scope\"));\n\t\t\t\treturn authAccessToken;\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e);\n\t\t}\n\t\treturn null;\n\t}",
"public String getRefreshToken() {\r\n return refreshToken;\r\n }",
"public String getRefresh_token() {\r\n\t\treturn refresh_token;\r\n\t}",
"public static GoogleCredential createCredentialWithRefreshToken(\n\t\t\tHttpTransport transport, JacksonFactory jsonFactory,\n\t\t\tTokenResponse tokenResponse, String clientId, String clientSecret) {\n\t\treturn new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT)\n\t\t\t\t.setJsonFactory(new JacksonFactory())\n\t\t\t\t.setClientSecrets(clientId, clientSecret).build()\n\t\t\t\t.setFromTokenResponse(tokenResponse);\n\t}",
"public String getRefreshToken() {\n\t\treturn refreshToken;\n\t}",
"@Override\n\tprotected Object refreshTokenGrantType(String requestId) {\n\t\treceivedRefreshRequest = true;\n\t\tvalidateRefreshRequest();\n\n\t\t//this must be after EnsureScopeInRefreshRequestContainsNoMoreThanOriginallyGranted is called\n\t\tcallAndStopOnFailure(ExtractScopeFromTokenEndpointRequest.class);\n\n\t\tgenerateAccessToken();\n\n\t\tif(generateIdTokenOnRefreshRequest()) {\n\t\t\tcreateIdTokenForRefreshRequest();\n\t\t}\n\n\t\tcreateRefreshToken(true);\n\n\t\tcallAndStopOnFailure(CreateTokenEndpointResponse.class);\n\n\t\tcall(exec().unmapKey(\"token_endpoint_request\").endBlock());\n\n\t\treturn new ResponseEntity<Object>(env.getObject(\"token_endpoint_response\"), HttpStatus.OK);\n\t}",
"public String generateRefreshToken(ApplicationUser user) {\n Date expiryDate = java.sql.Date.valueOf(LocalDate.now().plusDays(jwtConfig.getRefreshExpirationDateInMs()));\n return Jwts.builder()\n .setSubject(user.getUser().getUsername())\n .claim(\"authorities\", user.getAuthorities())\n .setIssuedAt(new Date(System.currentTimeMillis()))\n .setExpiration(expiryDate)\n .signWith(jwtSecretKey.secretKey())\n .compact();\n }",
"@Test\n public void testRefreshToken() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .bearerToken()\n .refreshToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }",
"@Override\n public RefreshToken getRefreshToken(String refreshTokenCode) {\n if (log.isTraceEnabled()) {\n log.trace(\"Looking for the refresh token: \" + refreshTokenCode + \" for an authorization grant of type: \"\n + getAuthorizationGrantType());\n }\n return refreshTokens.get(TokenHashUtil.hash(refreshTokenCode));\n }",
"protected boolean generateIdTokenOnRefreshRequest() {\n\t\treturn true;\n\t}",
"@Nullable\n public String getRefreshToken() {\n return refreshToken;\n }",
"public String generateNewAccessToken() throws SocketTimeoutException, IOException, Exception{\n System.out.println(\"Lived Religion has to get a new access token...\");\n String newAccessToken = \"\";\n JSONObject jsonReturn = new JSONObject();\n JSONObject tokenRequestParams = new JSONObject();\n tokenRequestParams.element(\"refresh_token\", currentRefreshToken);\n if(currentRefreshToken.equals(\"\")){\n //You must read in the properties first!\n System.out.println(\"You must read in the properties first with init()\");\n Exception noProps = new Exception(\"You must read in the properties first with init(). There was no refresh token set.\");\n throw noProps;\n }\n else{\n try{\n System.out.println(\"Connecting to RERUM with refresh token...\");\n URL rerum = new URL(Constant.RERUM_ACCESS_TOKEN_URL);\n HttpURLConnection connection = (HttpURLConnection) rerum.openConnection();\n connection.setRequestMethod(\"POST\"); \n connection.setConnectTimeout(5*1000); \n connection.setDoOutput(true);\n connection.setDoInput(true);\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n connection.connect();\n DataOutputStream outStream = new DataOutputStream(connection.getOutputStream());\n //Pass in the user provided JSON for the body \n outStream.writeBytes(tokenRequestParams.toString());\n outStream.flush();\n outStream.close(); \n //Execute rerum server v1 request\n BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(),\"utf-8\"));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null){\n //Gather rerum server v1 response\n sb.append(line);\n }\n reader.close();\n jsonReturn = JSONObject.fromObject(sb.toString());\n System.out.println(\"RERUM responded with access token...\");\n newAccessToken = jsonReturn.getString(\"access_token\");\n }\n catch(java.net.SocketTimeoutException e){ //This specifically catches the timeout\n System.out.println(\"The RERUM token endpoint is taking too long...\");\n jsonReturn = new JSONObject(); //We were never going to get a response, so return an empty object.\n jsonReturn.element(\"error\", \"The RERUM endpoint took too long\");\n throw e;\n //newAccessToken = \"error\";\n }\n }\n setAccessToken(newAccessToken);\n writeProperty(\"access_token\", newAccessToken);\n System.out.println(\"Lived Religion has a new access token, and it is written to the properties file...\");\n return newAccessToken;\n }",
"protected boolean generateRefreshTokenOnRefreshRequest() {\n\t\treturn true;\n\t}",
"@SuppressWarnings(\"unused\")\n private static String getRefreshToken() throws IOException {\n String client_id = System.getenv(\"PICASSA_CLIENT_ID\");\n String client_secret = System.getenv(\"PICASSA_CLIENT_SECRET\");\n \n // Adapted from http://stackoverflow.com/a/14499390/1447621\n String redirect_uri = \"http://localhost\";\n String scope = \"http://picasaweb.google.com/data/\";\n List<String> scopes;\n HttpTransport transport = new NetHttpTransport();\n JsonFactory jsonFactory = new JacksonFactory();\n\n scopes = new LinkedList<String>();\n scopes.add(scope);\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(transport, jsonFactory, client_id, client_secret, scopes).build();\n GoogleAuthorizationCodeRequestUrl url = flow.newAuthorizationUrl();\n url.setRedirectUri(redirect_uri);\n url.setApprovalPrompt(\"force\");\n url.setAccessType(\"offline\");\n String authorize_url = url.build();\n \n // paste into browser to get code\n System.out.println(\"Put this url into your browser and paste in the access token:\");\n System.out.println(authorize_url);\n \n Scanner scanner = new Scanner(System.in);\n String code = scanner.nextLine();\n scanner.close();\n\n flow = new GoogleAuthorizationCodeFlow.Builder(transport, jsonFactory, client_id, client_secret, scopes).build();\n GoogleTokenResponse res = flow.newTokenRequest(code).setRedirectUri(redirect_uri).execute();\n String refreshToken = res.getRefreshToken();\n String accessToken = res.getAccessToken();\n\n System.out.println(\"refresh:\");\n System.out.println(refreshToken);\n System.out.println(\"access:\");\n System.out.println(accessToken);\n return refreshToken;\n }",
"@Override\n public RefreshToken getRefreshToken(String refreshTokenCode) {\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"Looking for the refresh token: \" + refreshTokenCode\n + \" for an authorization grant of type: \" + getAuthorizationGrantType());\n }\n\n return refreshTokens.get(refreshTokenCode);\n }",
"private void refreshGoogleCalendarToken() {\n this.getGoogleToken();\n }",
"@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 }",
"public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Token(value);\r\n\t}",
"public RefreshToken save(RefreshToken refreshToken) {\n return refreshTokenRepository.save(refreshToken);\n }",
"public String generateRefreshToken(final User user, final String tenant)\n\t{\n\t\tClaims claims = Jwts.claims().setSubject(user.getId().toString());\n\t\tclaims.put(\"password\", user.getPassword());\n\t\tclaims.put(\"tenant\", tenant);\n\t\treturn buildToken(claims, refreshTokenExp);\n\t}",
"@PostMapping(\"/refreshJwtToken\")\n public ResponseEntity<TokenRefreshResponse> postRefreshToken(@Valid @RequestBody TokenRefreshRequest request) {\n TokenRefreshResponse tokenRefreshResponse = this.authenticationService.getRefreshedToken(request);\n return ResponseEntity.ok(tokenRefreshResponse);\n }",
"@Api(1.0)\n @NonNull\n public String getRefreshToken() {\n return mRefreshToken;\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 }",
"@Transient\n\tpublic String getRefreshToken() {\n\t\treturn refreshToken;\n\t}",
"public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}",
"public Credential getCredentialRefTkn(String refreshToken){\n\tCredential credential = createCredentialWithRefreshToken(HTTP_TRANSPORT,\n\t\t\tJSON_FACTORY,\n\t\t\tnew TokenResponse().setRefreshToken(refreshToken), CLIENT_ID,\n\t\t\tCLIENT_SECRET);\n\treturn credential;\n\t}",
"@Api(1.0)\n public Token(@NonNull String accessToken, @NonNull String refreshToken, @NonNull Long expiresIn, @NonNull String tokenType) {\n this();\n mAccessToken = accessToken;\n mRefreshToken = refreshToken;\n mExpiresIn = expiresIn;\n mTokenType = tokenType;\n }",
"@Override\n public void onTokenRefresh() {\n\n //Getting registration token\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n\n //Displaying token on logcat\n Log.e(TAG, \"Refreshed token: \" + refreshedToken);\n\n //calling the method store token and passing token\n storeToken(refreshedToken);\n }",
"OAuth2Token getToken();",
"private String issueRefreshToken(UUID user, String deviceName) {\n String token = UUID.randomUUID().toString();\n String hash = BCrypt.hashpw(token, BCrypt.gensalt());\n\n dao.updateToken(user, deviceName, hash);\n\n return token;\n }",
"@GetMapping(value = \"/token/refresh\")\n public void refreshToken (HttpServletRequest request, HttpServletResponse response) throws IOException {\n String authorizationHeader = request.getHeader(AUTHORIZATION);\n if(authorizationHeader!=null && authorizationHeader.startsWith(\"Bearer \")){\n\n try {\n String refreshToken = authorizationHeader.substring(\"Bearer \".length());\n Algorithm algorithm = Algorithm.HMAC256(\"secret\".getBytes());\n JWTVerifier verifier = JWT.require(algorithm).build();\n DecodedJWT decodedJWT = verifier.verify(refreshToken);\n String userName = decodedJWT.getSubject();\n User user = userRepo.findByUserName(userName);\n\n String accessToken = JWT.create()\n .withSubject(user.getUserName())\n .withExpiresAt(new Date(System.currentTimeMillis()+ 10*60*1000))\n .withIssuer(request.getRequestURL().toString())\n .withClaim(\"roles\", user.getRoles().stream().map(Role::getRoleName).collect(Collectors.toList()))\n .sign(algorithm);\n\n\n\n Map<String , String> tokens = new HashMap<>();\n tokens.put(\"accessToken\",accessToken);\n tokens.put(\"refreshToken\",refreshToken);\n response.setContentType(APPLICATION_JSON_VALUE);\n new ObjectMapper().writeValue(response.getOutputStream(),tokens);\n\n }catch (Exception exception){\n\n response.setHeader(\"Error\", exception.getMessage());\n response.setStatus(FORBIDDEN.value());\n //response.sendError(FORBIDDEN.value());\n\n Map<String , String> error = new HashMap<>();\n error.put(\"errorMsg\",exception.getMessage());\n response.setContentType(APPLICATION_JSON_VALUE);\n new ObjectMapper().writeValue(response.getOutputStream(),error);\n }\n\n }else {\n throw new RuntimeException(\"Refresh token is missing\");\n }\n }",
"private void refreshAccessToken() throws IOException {\n\n if (clientId == null) fetchOauthProperties();\n\n URL url = new URL(tokenURI);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"refresh_token\", refreshToken);\n params.put(\"client_id\", clientId);\n params.put(\"client_secret\", clientSecret);\n params.put(\"grant_type\", \"refresh_token\");\n\n String response = HttpUtils.getInstance().doPost(url, params);\n JsonParser parser = new JsonParser();\n JsonObject obj = parser.parse(response).getAsJsonObject();\n\n JsonPrimitive atprim = obj.getAsJsonPrimitive(\"access_token\");\n if (atprim != null) {\n accessToken = obj.getAsJsonPrimitive(\"access_token\").getAsString();\n expirationTime = System.currentTimeMillis() + (obj.getAsJsonPrimitive(\"expires_in\").getAsInt() * 1000);\n fetchUserProfile();\n } else {\n // Refresh token has failed, reauthorize from scratch\n reauthorize();\n }\n\n }",
"@Override\n public void onTokenRefresh() {\n String token = FirebaseInstanceId.getInstance().getToken();\n registerToken(token);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n SharedPreferences settings =\n getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_FIREBASE_TOKEN, refreshedToken);\n editor.apply();\n }",
"public void refreshToken(\n final ServiceClientCompletion<ResponseResult> completion)\n {\n // Create request headers.\n final HashMap<String, String> headers = new HashMap<String, String>(2);\n headers.put(\"Authorization\", AUTHORIZATION_HEADER);\n headers.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n // Create request parameters.\n final HashMap<String, String> parameters =\n new HashMap<String, String>(2);\n parameters.put(\"grant_type\", \"refresh_token\");\n parameters.put(\"refresh_token\", mSharecareToken.refreshToken);\n\n this.beginRequest(REFRESH_TOKEN_ENDPOINT, ServiceMethod.GET, headers,\n parameters, (String)null, ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n if (result.success)\n {\n final boolean success =\n setSharecareToken(json,\n mSharecareToken.askMDProfileCreated,\n mSharecareToken.preProfileCreation);\n if (success)\n {\n final HashMap<String, Object> parameters =\n new HashMap<String, Object>(1);\n parameters.put(\"newAccessToken\",\n mSharecareToken.accessToken);\n result.parameters = parameters;\n }\n }\n\n LogError(\"refreshToken\", result);\n return result;\n }\n }, completion);\n }",
"private String newToken(String token) {\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtils.extractEmail(token));\r\n userDetails.setUserType((String) jwtUtils.extractAllClaims(token).get(\"userType\"));\r\n return jwtUtils.generateToken(userDetails);\r\n }",
"public Token createAuthorizationToken(User user);",
"@Override\n public void onTokenRefresh() {\n }",
"public AccessToken refreshAccessToken(String refreshToken) throws OAuthSdkException {\n\n // prepare params\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n params.add(new BasicNameValuePair(CLIENT_ID, String.valueOf(client.getId())));\n params.add(new BasicNameValuePair(REDIRECT_URI, client.getRedirectUri()));\n params.add(new BasicNameValuePair(CLIENT_SECRET, client.getSecret()));\n params.add(new BasicNameValuePair(GRANT_TYPE, GrantType.REFRESH_TOKEN.getType()));\n params.add(new BasicNameValuePair(TOKEN_TYPE, AccessToken.TokenType.MAC.getType()));\n params.add(new BasicNameValuePair(REFRESH_TOKEN, refreshToken));\n\n HttpResponse response = httpClient.get(AuthorizeUrlUtils.getTokenUrl(), params);\n log.debug(\"Refresh access token response[{}]\", response);\n\n String entityContent = HttpResponseUtils.getEntityContent(response);\n if (StringUtils.isBlank(entityContent) || !JSONUtils.mayBeJSON(entityContent)) {\n log.error(\"The refresh token response[{}] is not json format!\", entityContent);\n throw new OAuthSdkException(\"The refresh token response is not json format\");\n }\n\n JSONObject json = JSONObject.fromObject(entityContent);\n if (json.has(\"access_token\")) {\n log.debug(\"Refresh access token json result[{}]\", json);\n return new AccessToken(json);\n }\n\n // error response\n int errorCode = json.optInt(\"error\", -1);\n String errorDesc = json.optString(\"error_description\", StringUtils.EMPTY);\n log.error(\"Refresh access token error, error info [code={}, desc={}]!\", errorCode, errorDesc);\n throw new OAuthSdkException(\"Refresh access token error!\", errorCode, errorDesc);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(\"myToken\", \"Refreshed token: \" + refreshedToken);\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 getApplicationContext().sendBroadcast(new Intent(broadcast));\n SharedPrefManager.getInstance(getApplicationContext()).storeToken(refreshedToken);\n }",
"@Override\r\n\tpublic String refreshToken() throws OAuthSystemException {\n\t\treturn null;\r\n\t}",
"@Override\r\n public void onTokenRefresh() {\n App.sendToken();\r\n }",
"@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}",
"@Override\n public void onTokenRefresh() {\n // Get updated InstanceID token.\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(\"Refreshed token: \" + refreshedToken);\n sendRegistrationToServer(refreshedToken);\n }",
"public Token toScribeToken() {\n return new Token(oauthToken, oauthTokenSecret);\n }",
"@Override\n public void onTokenRefresh() {\n String token = FirebaseInstanceId.getInstance().getToken();\n\n addRegistrationToFireDb(token);\n }",
"public String generateAccessToken() {\n return accessTokenGenerator.generate().toString();\n }",
"String createToken(User user);",
"@Override\n public void onTokenRefresh() {\n\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // TODO: 13/6/2017 Persistir token en archivo XML.\n sharedPreferences = getSharedPreferences(\"datos\",MODE_PRIVATE);\n SharedPreferences.Editor edit = sharedPreferences.edit();\n edit.putString(String.valueOf(R.string.token),refreshedToken);\n edit.commit();\n\n\n }",
"@Override\n public void onTokenRefresh() {\n try {\n if (Build.VERSION.SDK_INT < 26) {\n LeanplumNotificationHelper.startPushRegistrationService(this, \"GCM\");\n } else {\n LeanplumNotificationHelper.scheduleJobService(this,\n LeanplumGcmRegistrationJobService.class, LeanplumGcmRegistrationJobService.JOB_ID);\n }\n } catch (Throwable t) {\n Log.e(\"Failed to update GCM token.\", t);\n }\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Timber.d(\"Refreshed token: \" + refreshedToken);\n }",
"public TokenInfo createToken(TokenCoreInfo coreInfo, String password);",
"public static void refreshToken(ApiClient client, String applicationKey, String secret) {\n byte[] secretKey = secret.getBytes(Charset.forName(\"utf-8\"));\n String jwt = Jwts.builder()\n .setSubject(applicationKey)\n .setExpiration(new Date(System.currentTimeMillis() + 30_000))\n .setIssuedAt(new Date())\n .setHeaderParam(Header.TYPE, \"API\")\n .signWith(\n SignatureAlgorithm.HS512,\n secretKey)\n .compact();\n\n ApiKeyAuth authorization = (ApiKeyAuth) client.getAuthentication(\"Authorization\");\n authorization.setApiKey(jwt);\n authorization.setApiKeyPrefix(AUTHORIZATION_HEADER_BEARER_PREFIX);\n }",
"public Token() {\n mTokenReceivedDate = new Date();\n }",
"void setAuthorizerRefreshToken(String appId, String authorizerRefreshToken);",
"@RequestMapping(value = \"/api/v1/token\", method = RequestMethod.POST, produces = \"application/json\", consumes = \"application/json\")\r\n\t@ResponseBody\r\n\tpublic Map<String, String> createToken(@RequestBody(required = true) NewToken newToken) {\r\n\t\tAccount account = accountManager.getAccountByEmail(newToken.getEmail().toLowerCase(), true);\r\n\r\n\t\tif (null == account) {\r\n\t\t\tthrow new BadCredentialsException(\"No such account.\");\r\n\t\t}\r\n\t\tif (!passwordEncoder.matches(newToken.getPassword(), account.getPassword())) {\r\n\t\t\tthrow new BadCredentialsException(\"Invalid password.\");\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tString tokenText = accountManager.addToken(account, newToken.getDeviceName(),\r\n\t\t\t\t\tnewToken.getDeviceIdentifier());\r\n\r\n\t\t\treturn Collections.singletonMap(\"auth-token\", tokenText);\r\n\t\t} catch (ModificationException e) {\r\n\t\t\tthrow new BadCredentialsException(\"Could not authenticate user.\");\r\n\t\t}\r\n\t}",
"@Transactional\n public UserToken generateToken() {\n if (!firebaseService.canProceed())\n return null;\n\n try {\n Optional<UserAuth> userOptional = Auditor.getLoggedInUser();\n if (!userOptional.isPresent()) return UNAUTHENTICATED;\n UserAuth user = userOptional.get();\n Map<String, Object> claims = new HashMap<>();\n claims.put(\"type\", user.getType().toString());\n claims.put(\"department\", user.getDepartment().getName());\n claims.put(\"dean_admin\", PermissionManager.hasPermission(user.getAuthorities(), Role.DEAN_ADMIN));\n String token = FirebaseAuth.getInstance().createCustomTokenAsync(user.getUsername(), claims).get();\n return fromUser(user, token);\n } catch (InterruptedException | ExecutionException e) {\n return UNAUTHENTICATED;\n }\n }",
"private String getToken() {\n String keyFilePath = System.getenv(\"APE_API_KEY\");\n if (Strings.isNullOrEmpty(keyFilePath)) {\n File globalKeyFile = GlobalConfiguration.getInstance().getHostOptions().\n getServiceAccountJsonKeyFiles().get(GLOBAL_APE_API_KEY);\n if (globalKeyFile == null || !globalKeyFile.exists()) {\n CLog.d(\"Unable to fetch the service key because neither environment variable \" +\n \"APE_API_KEY is set nor the key file is dynamically downloaded.\");\n return null;\n }\n keyFilePath = globalKeyFile.getAbsolutePath();\n }\n if (Strings.isNullOrEmpty(mApiScope)) {\n CLog.d(\"API scope not set, use flag --business-logic-api-scope.\");\n return null;\n }\n try {\n Credential credential = GoogleCredential.fromStream(new FileInputStream(keyFilePath))\n .createScoped(Collections.singleton(mApiScope));\n credential.refreshToken();\n return credential.getAccessToken();\n } catch (FileNotFoundException e) {\n CLog.e(String.format(\"Service key file %s doesn't exist.\", keyFilePath));\n } catch (IOException e) {\n CLog.e(String.format(\"Can't read the service key file, %s\", keyFilePath));\n }\n return null;\n }",
"@Override\n public void onTokenRefresh(){\n // start Gcm registration service\n Intent intent = new Intent(this, GcmRegistrationIntentService.class);\n startService(intent);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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 try {\n sendNewTokenToServer(refreshedToken);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void refreshToken() throws ServiceUnavailableException {\n int retryTime = 0;\n // refresh the access token\n while (true) {\n try {\n this.authResult = getAccessToken();\n break;// refresh token successfully\n } catch (ServiceUnavailableException e) {\n if (retryTime < conf.getMaxRetryTimes()) {\n retryTime++;\n try {\n Thread.sleep(conf.getIntervalTime());\n } catch (InterruptedException e1) {\n // ignore\n }\n continue;// retry to refresh token\n }\n throw e;// failed to refresh token after retry\n }\n\n }\n }",
"@Override\n public void onTokenRefresh() {\n Log.d(\"MyInstanceIDService\", \"onTokenRefresh\");\n// new GCMDoRequest().execute(new GCMRequest(this, GCMCommand.GET_TOKEN));\n }",
"public String createResetToken() {\n String uuid = UUID.randomUUID().toString();\n setResetToken(uuid);\n return uuid;\n }",
"private void mtd_refresh_token() {\n RxClient.get(FeedActivity.this).Login(new loginreq(sharedpreferences.\n getString(SharedPrefUtils.SpEmail, \"\"),\n sharedpreferences.getString(SharedPrefUtils.SpPassword, \"\")), new Callback<loginresp>() {\n @Override\n public void success(loginresp loginresp, Response response) {\n\n if (loginresp.getStatus().equals(\"200\")){\n\n editor.putString(SharedPrefUtils.SpRememberToken,loginresp.getToken().toString());\n editor.commit();\n\n final Handler handler = new Handler();\n final Runnable runnable = new Runnable() {\n @Override\n public void run() {\n wbService(tmpansList);\n progressBar.setVisibility(View.INVISIBLE);\n }\n };\n handler.postDelayed(runnable, 500);\n\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n progressBar.setVisibility(View.INVISIBLE);\n Log.d(\"refresh token\", \"refresh token error\");\n Toast.makeText(FeedActivity.this, \"Service not response\",\n Toast.LENGTH_LONG).show();\n finish();\n }\n });\n\n }",
"private static OAuth2Token createFactory() {\n\t\tOAuth2Token token = null;\n\t\tConfigurationBuilder cb = configure();\n\t\t\n\t\ttry {\n\t\t\ttoken = new TwitterFactory(cb.build()).getInstance().getOAuth2Token();\n\t\t} catch (TwitterException e) {\n\t\t\tSystem.out.println(\"Error getting OAuth2 token!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\treturn token;\n\t}",
"@Override\n\tprotected boolean isRefreshTokenSupported(List<String> theScopes) {\n\t\tlog.debug(\"Always generate refresh token\");\n\t\treturn true;\n\t}",
"private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }",
"@Override\n public void onTokenRefresh() {\n\n String token = FirebaseInstanceId.getInstance().getToken();\n CTOKEN = token;\n\n// if(sgen.ID != \"\") {\n// String query = \"UPDATE USER_DETAILS SET FTOKEN = '\"+token+\"' WHERE ID = '\"+sgen.ID+\"'; \";\n// ArrayList<Team> savedatateam = servicesRequest.save_data(query);\n// sgen.FTOKEN = token;\n// }\n\n\n // Once the token is generated, subscribe to topic with the userId\n// if(sgen.ATOKEN.equals(sgen.CTOKEN)) {\n try {\n FirebaseMessaging.getInstance().subscribeToTopic(SUBSCRIBE_TO);\n Log.i(TAG, \"onTokenRefresh completed with token: \" + token);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n// }\n\n\n /* sendRegistrationToServer(refreshedToken);*/\n }",
"public ResponseEntity<OAuth2AccessToken> refreshToken(HttpServletRequest request, HttpServletResponse response, Map<String, String> params) {\n \n \ttry {\n \t\tString refreshToken = params.get(\"refreshToken\");\n\t OAuth2AccessToken accessToken = authorizationClient.sendRefreshGrant(refreshToken);\n\t return ResponseEntity.ok(accessToken);\n } catch (Exception ex) {\n log.error(\"failed to get OAuth2 tokens from UAA\", ex);\n throw ex;\n }\n\n }",
"public void generateToken(String uri) {\n this.token = \"sandbox\";\n }",
"public TokenTO generateToken(UserTO user) {\n TokenTO res;\n\n res = mgrToken.createToken(Crypto.generateToken() + Crypto.generateToken());\n mgrToken.save(res);\n user.setToken(res);\n getDao().update(user);\n\n return res;\n }",
"private CdekAuthToken getAuthToken()\n {\n String authEndpoint = conf.ENDPOINT + \"/oauth/token?grant_type={grant_type}&client_id={client_id}&client_secret={client_secret}\";\n\n HttpHeaders defaultHeaders = new HttpHeaders();\n HttpEntity req = new HttpEntity(defaultHeaders);\n\n return rest.postForObject(authEndpoint, req, CdekAuthToken.class, conf.getAuthData());\n }",
"@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }",
"@PostMapping(value = \"/refresh\")\n\tpublic ResponseEntity<UserTokenState> refreshAuthenticationToken(HttpServletRequest request) {\n\n\t\tString token = tokenUtils.getToken(request);\n\t\tString username = this.tokenUtils.getUsernameFromToken(token);\n\t\tUser user = (User) this.userDetailsService.loadUserByUsername(username);\n\n\t\tif (this.tokenUtils.canTokenBeRefreshed(token, user.getLastResetPasswordDate())) {\n\t\t\tString refreshedToken = tokenUtils.refreshToken(token);\n\t\t\tint expiresIn = tokenUtils.getExpiredIn();\n\n\t\t\treturn ResponseEntity.ok(new UserTokenState(refreshedToken, expiresIn, user));\n\t\t} else {\n\t\t\tUserTokenState userTokenState = new UserTokenState();\n\t\t\treturn ResponseEntity.badRequest().body(userTokenState);\n\t\t}\n\t}",
"String refreshTokens();",
"@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify our app's server of any changes (if applicable).\n startService(new Intent(this, RegistrationIntentService.class));\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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 onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"REFRESHED TOKEN: \" + refreshedToken);\n JSONObject jsonbody = new JSONObject();\n try {\n jsonbody.put(\"UserID\",App.profileModel.UserID);\n jsonbody.put(\"GCMToken\",refreshedToken);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if(refreshedToken != null)\n HttpCaller\n .getInstance()\n .updateGCMToken(\n jsonbody,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject o) {\n try {\n if(!o.getBoolean(\"Status\")) {\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n }\n },true);\n\n\n\n\n prefs = Prefs.getInstance();\n Gson gson = new Gson();\n userPrefsInance = prefs.init(getApplicationContext());\n userPrefsInance.edit().putString(prefs.GCM_TOKEN,refreshedToken);\n\n App.profileModel.GCMToken = refreshedToken;\n\n if(App.profileModel.UserID > 0) {\n HttpCaller.\n getInstance().\n updateGCMToken(\n null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject o) {\n try {\n if (!o.getBoolean(\"Status\")) {\n //Helper.showToast(\"Failed to update notification device token.\", ToastStyle.ERROR);\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n //Helper.showToast(\"Failed to update notification device token.\", ToastStyle.ERROR);\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n //Helper.showToast(\"Failed to update notification device token.\", ToastStyle.ERROR);\n\n }\n },true);\n }\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 }",
"public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }",
"public void storeToken(AuthorizationToken token);",
"public String generateToken() {\n Authentication authentication = getAuthentication();\n if(authentication == null) {\n throw new AuthenticationCredentialsNotFoundException(\"No user is currently logged in.\");\n }\n return jwtUtil.generateJwtToken(authentication);\n }",
"@Override\n public void onTokenRefresh() {\n final String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n\n //To displaying token on logcat\n Log.w(\"TOKEN: \", refreshedToken);\n\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFERENCE_FILE, MODE_PRIVATE);\n final Long userId = sharedPreferences.getLong(\"userId\", 0L);\n\n if (!userId.equals(0L)){\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"firebaseToken\", refreshedToken);\n editor.apply();\n\n Handler handler = new Handler(this.getMainLooper());\n\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n\n // Update token for this user\n UserTask<Void> userTask = new UserTask<>(userId);\n userTask.setFirebaseToken(refreshedToken);\n userTask.execute(\"refreshFirebaseToken\");\n\n }\n };\n\n handler.post(runnable);\n\n }\n\n }",
"default WorkdayEndpointBuilder tokenRefresh(String tokenRefresh) {\n doSetProperty(\"tokenRefresh\", tokenRefresh);\n return this;\n }",
"default WorkdayEndpointConsumerBuilder tokenRefresh(String tokenRefresh) {\n doSetProperty(\"tokenRefresh\", tokenRefresh);\n return this;\n }",
"String generateUserRenewalToken(String username);",
"public abstract long renewToken(Token<T> token, String renewer)\n throws IOException;",
"public static JSONObject refreshToken(String refreshToken) throws Exception {\r\n\t\tString refreshTokenUrl = MessageFormat.format(REFRESH_TOKEN_URL, SOCIAL_LOGIN_CLIENT_ID, refreshToken);\r\n\t\tString response = HttpClientUtils.sendRequest(refreshTokenUrl);\r\n\t\treturn JSONObject.fromObject(response);\r\n\t}",
"default WorkdayEndpointProducerBuilder tokenRefresh(String tokenRefresh) {\n doSetProperty(\"tokenRefresh\", tokenRefresh);\n return this;\n }",
"@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify of changes\n Intent intent = new Intent(this, RegistrationIntentService.class);\n intent.putExtra(\"SOURCE\", \"GCM\");\n startService(intent);\n }",
"@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n if (refreshedToken != null) {\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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 sendTokenToServer(refreshedToken);\n }\n }",
"@Override\n public void onTokenRefresh() {\n // Get updated InstanceID token.\n device_id = Settings.Secure.getString(this.getContentResolver(),\n Settings.Secure.ANDROID_ID);\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\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\n //**************need to modify the code such that it can update exisiting user data***********************\n sendRegistrationToServer(refreshedToken);\n //**************need to modify the code such that it can update exisiting user data***********************\n }"
] |
[
"0.8217952",
"0.747353",
"0.67351997",
"0.66204387",
"0.6611577",
"0.6605328",
"0.6512928",
"0.6494787",
"0.6442395",
"0.64253104",
"0.6420824",
"0.6373137",
"0.6174432",
"0.6167553",
"0.6166547",
"0.60970604",
"0.6044652",
"0.6041487",
"0.60164684",
"0.6003172",
"0.59786546",
"0.5978236",
"0.5965138",
"0.5958475",
"0.59558636",
"0.5940457",
"0.59327596",
"0.59311867",
"0.5910621",
"0.5896287",
"0.58831555",
"0.58637375",
"0.58487993",
"0.58352584",
"0.58162916",
"0.5780196",
"0.576882",
"0.57593274",
"0.5737645",
"0.5710217",
"0.5705067",
"0.5687721",
"0.56696105",
"0.56667745",
"0.5658581",
"0.56408596",
"0.5636754",
"0.5633922",
"0.56226104",
"0.5621457",
"0.56115633",
"0.56042457",
"0.5602911",
"0.5602744",
"0.55968523",
"0.55966896",
"0.5578139",
"0.5565041",
"0.554731",
"0.5535459",
"0.5530926",
"0.5510959",
"0.55033404",
"0.5496748",
"0.5490506",
"0.5452069",
"0.5451117",
"0.5435243",
"0.543433",
"0.5431251",
"0.5426661",
"0.54250574",
"0.54082763",
"0.5406648",
"0.5393131",
"0.5370237",
"0.536597",
"0.5355056",
"0.5354074",
"0.5350121",
"0.5345803",
"0.5327039",
"0.532127",
"0.53208846",
"0.5308424",
"0.53082377",
"0.5307305",
"0.5298737",
"0.5297683",
"0.52933985",
"0.5291939",
"0.529104",
"0.5285371",
"0.5275738",
"0.52496046",
"0.5245956",
"0.5245716",
"0.52423906",
"0.5228279",
"0.5206081"
] |
0.78709555
|
1
|
Verify whether the token provided has expired or not on the basis of the current server time and/or throw error otherwise
|
public void verifyExpiration(RefreshToken token) {
if (token.getExpiryDate().compareTo(Instant.now()) < 0) {
throw new TokenRefreshException(token.getToken(), "Expired token. Please issue a new request");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean checkTokenExpiry(String token) {\n System.out.println(token);\n Date now = new Date();\n long nowTime = now.getTime();\n //Date expire;\n Date tokenEXPClaim;\n long expires;\n try {\n DecodedJWT recievedToken = JWT.decode(token);\n tokenEXPClaim = recievedToken.getExpiresAt();\n expires = tokenEXPClaim.getTime();\n return nowTime >= expires;\n } \n catch (Exception exception){\n System.out.println(\"Problem with token, no way to check expiry\");\n System.out.println(exception);\n return true;\n }\n \n }",
"public boolean checkTokenExpiry() {\n //System.out.println(\"Checking token expiry...\");\n Date now = new Date();\n long nowTime = now.getTime();\n //Date expire;\n Date tokenEXPClaim;\n long expires;\n try {\n DecodedJWT recievedToken = JWT.decode(currentAccessToken);\n tokenEXPClaim = recievedToken.getExpiresAt();\n expires = tokenEXPClaim.getTime();\n //System.out.println(\"Now is \"+nowTime);\n //System.out.println(\"Expires at \"+expires);\n //System.out.println(\"Expired? \"+(nowTime >= expires));\n return nowTime >= expires;\n } \n catch (Exception exception){\n System.out.println(\"Problem with token, no way to check expiry\");\n System.out.println(exception);\n return true;\n }\n \n }",
"public boolean isTokenExpired(String token) {\n\t\tDate expDate = getExperiyDate(token);\n\t\treturn expDate.before(new Date(System.currentTimeMillis()));\n\t}",
"private Boolean isTokenExpired(String token) {\n\t\tfinal Date expiration = getExpirationDateFromToken(token);\n\t\treturn expiration.before(new Date());\n\t}",
"public synchronized void checkTokenExpiry() {\n if (this.mExpiryDate != null && this.mExpiryDate.getTime() <= System.currentTimeMillis() + REFRESH_THRESHOLD) {\n acquireTokenAsync();\n }\n }",
"public boolean accessTokenExpired() {\n Date currentTime = new Date();\n if ((currentTime.getTime() - lastAccessTime.getTime()) > TIMEOUT_PERIOD) {\n return true;\n } else {\n return false;\n }\n }",
"Duration getTokenExpiredIn();",
"public boolean isSecurityTokenExpired() {\n return System.currentTimeMillis() > securityTokenExpiryTime || isExpired();\n }",
"boolean expired();",
"boolean hasExpired();",
"boolean isComponentAccessTokenExpired();",
"boolean isExpired();",
"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 isTokenExpired(String token) {\n\t\tfinal Date expiration = getExpirationDateFromToken(token);\n\t\treturn expiration.before(new Date());\n\t}",
"@Test\n public void testExpiredToken() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .token(OAuthTokenType.Bearer, true, null, null, null)\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }",
"public boolean isExpiredToken(String jwt) {\n try {\n Claims claims = Jwts.parser()\n .setSigningKey(DatatypeConverter.parseBase64Binary(\"TerryLam\"))\n .parseClaimsJws(jwt).getBody();\n Date expiration = claims.getExpiration();\n //If the expiration Date is a time BEFORE the current time, it is expired\n if (expiration.before(new Date())) {\n return true;\n } else {\n return false;\n }\n } catch (JwtException ex) {\n log.info(\"Error validating token. Exception Message \" + ex.getMessage());\n return true;\n }\n }",
"boolean isCardApiTicketExpired(String appId);",
"protected boolean validateExpiration(SignedJWT jwtToken) {\n boolean valid = false;\n try {\n Date expires = jwtToken.getJWTClaimsSet().getExpirationTime();\n if (expires == null || new Date().before(expires)) {\n LOG.debug(\"JWT token expiration date has been \"\n + \"successfully validated\");\n valid = true;\n } else {\n LOG.warn(\"JWT expiration date validation failed.\");\n }\n } catch (ParseException pe) {\n LOG.warn(\"JWT expiration date validation failed.\", pe);\n }\n return valid;\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 }",
"@Override\n\tpublic boolean isExpired();",
"boolean isJsapiTicketExpired(String appId);",
"boolean isAuthorizerAccessTokenExpired(String appId);",
"public boolean validateAgeOfTheToken(Date issuedAtTime, long currentTimeInMillis, long timeStampSkewMillis) throws\n IdentityOAuth2Exception {\n if (issuedAtTime == null) {\n return true;\n }\n if (notAcceptBeforeTimeInMins > 0) {\n long issuedAtTimeMillis = issuedAtTime.getTime();\n long rejectBeforeMillis = 1000L * 60 * notAcceptBeforeTimeInMins;\n if (currentTimeInMillis + timeStampSkewMillis - issuedAtTimeMillis >\n rejectBeforeMillis) {\n String logMsg = getTokenTooOldMessage(currentTimeInMillis, timeStampSkewMillis, issuedAtTimeMillis, rejectBeforeMillis);\n return logAndReturnFalse(logMsg);\n }\n }\n return true;\n }",
"@Override\n public boolean isTokenValid(CrUser user, String token) {\n boolean result = false;\n if (user.getToken().equalsIgnoreCase(token)) {\n Date currentTime = new Date();\n if ((currentTime.getTime() - user.getTokenUpdateTime().getTime()) <= 1800000) {\n user.setTokenUpdateTime(currentTime);\n result = true;\n }\n }\n return result;\n }",
"@Override\n\tpublic boolean isTokenValid(String token) {\n\t\tLoginToken loginToken = getLoginTokenByToken(token);\n\t\tif (loginToken != null) {\n\t\t\tDate createTime = loginToken.getCreateTime();\n\t\t\tDate current = new Date();\n\t\t\tSystem.out.println(\"过了:\"+Math.abs(current.getTime() - createTime.getTime()));\n\t\t\tSystem.out.println(\"过了:\"+Math.abs(current.getTime() - createTime.getTime()) / (1000 *60));\n\t\t\tif (Math.abs(current.getTime() - createTime.getTime()) / (1000 * 60) >= 60) {\n\t\t\t\tloginToken.setStatus(Constant.LOGIN_TOKEN_STATUS_INVALID);\n\t\t\t\tloginTokenMapper.updateByPrimaryKey(loginToken);\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tloginToken.setCreateTime(current);\n\t\t\t\tloginTokenMapper.updateByPrimaryKey(loginToken);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean hasExpired() {\n return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis();\n }",
"@Override\n\tpublic long getTokenExpiryTime() {\n\t\treturn 0;\n\t}",
"public boolean isExpired() {\n return System.currentTimeMillis() > this.expiry;\n }",
"public boolean isExpired() {\n return getExpiration() <= System.currentTimeMillis() / 1000L;\n }",
"@Test\n @OperateOnDeployment(\"server\")\n public void shouldFailToGetResourceWhenTokenExpired() {\n given().header(\"Authorization\", \"Bearer expired_access_token\").expect().statusCode(401).when().get(\n getBaseTestUrl() + \"/1/category/get/json/1\");\n }",
"public boolean hasExpired(){\n Date now = new Date();\n return now.after(getExpireTime());\n }",
"public boolean validateExpirationTime(Date expirationTime, long currentTimeInMillis,\n long timeStampSkewMillis) throws IdentityOAuth2Exception {\n long expirationTimeInMillis = expirationTime.getTime();\n if ((currentTimeInMillis + timeStampSkewMillis) > expirationTimeInMillis) {\n return logAndReturnFalse(\"JSON Web Token is expired. Expiration Time(ms) : \" + expirationTimeInMillis + \". JWT Rejected and validation terminated\");\n }\n return logAndReturnTrue(\"Expiration Time(exp) of JWT was validated successfully.\");\n }",
"boolean isAccountNonExpired();",
"boolean isAccountNonExpired();",
"public Boolean hasCardExpired(Date currentDate);",
"boolean isCredentialsNonExpired();",
"boolean isCredentialsNonExpired();",
"private Boolean ignoreTokenExpiration(String token) {\n return false;\r\n }",
"boolean hasExpiry();",
"public boolean isExpired() {\n return age() > this.timeout;\n }",
"public boolean isExpired() {\n return ((System.currentTimeMillis() - this.createdTime) >= expiryTime);\n }",
"@Override\r\n public boolean isAccountNonExpired() {\r\n return true;\r\n }",
"public boolean isExpired() {\n\t\treturn this.maturityDt.before(Calendar.getInstance().getTime());\n\t}",
"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 long getTokenValidityInSeconds() {\n return tokenValidityInSeconds;\n }",
"boolean hasExpirationDate();",
"public boolean isExpired(long currentTimeMs) {\n return this.contextSet.isExpired(currentTimeMs);\n }",
"public boolean isExpired() {\n final LocalDateTime now = LocalDateTime.now().minusSeconds(10L);\n return now.isAfter(startTime.plusMinutes(exam.getExamTime())) || endTime != null;\n }",
"public boolean isExpired()\n {\n long dtExpiry = m_dtExpiry;\n return dtExpiry != 0 && dtExpiry < getSafeTimeMillis();\n }",
"Date getExpiredDate();",
"boolean isValidExpTime();",
"@Override\n public boolean isAccountNonExpired() {\n return true;\n }",
"@Override\n public boolean isAccountNonExpired() {\n return true;\n }",
"@Override\n public boolean isAccountNonExpired() {\n return true;\n }",
"boolean isExpire(long currentTime);",
"public boolean verifyPasswordExpiration(){\n throw new UnsupportedOperationException();\n }",
"@Override\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }",
"public boolean validateRefreshToken(String token){\n return refreshTokenRepository.findByToken(token).isPresent();\n }",
"public boolean isExpired() {\n return expired;\n }",
"public boolean isExpired() {\n return expired;\n }",
"@Override\n public boolean isAccountNonExpired() {\n return false;\n }",
"@Override\n public boolean isAccountNonExpired() {\n return false;\n }",
"@Override\n public boolean isAccountNonExpired() {\n return false;\n }",
"@Override\n public boolean isAccountNonExpired () {\n return true;\n }",
"public boolean isTokenValide() {\n try {\n token = Save.defaultLoadString(Constants.PREF_TOKEN, getApplicationContext());\n if (token != null && !token.equals(\"\")) {\n if (token.equals(\"\"))\n return false;\n JWT jwt = new JWT(token);\n boolean isExpired = jwt.isExpired(0);\n return !isExpired;\n } else\n return false;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n }",
"@Override\n\tpublic void setTokenExpiryTime(long arg0) {\n\t\t\n\t}",
"boolean hasExpiryTimeSecs();",
"public boolean hasExpired() {\n return (time.milliseconds() - this.lastRecordTime) > this.inactiveSensorExpirationTimeMs;\n }",
"@Test\n public void isExpired() throws Exception {\n // session was just created so it should not be expired as long\n // as the test does not take hours to complete\n assertFalse(session.isExpired());\n }",
"@Override\r\n public boolean isCredentialsNonExpired() {\r\n return true;\r\n }",
"public boolean isExpired() {\n\n return this.expiration.before(new Date());\n }",
"@VisibleForTesting\n protected boolean validateToken(EzSecurityToken token) {\n try {\n securityClient.validateReceivedToken(token);\n } catch (EzSecurityTokenException e) {\n logger.error(\"Token validation failed. \", e);\n throw new SecurityException(\"Token failed validation\");\n }\n\n String fromId = token.getValidity().getIssuedTo();\n String toId = token.getValidity().getIssuedFor();\n if (!fromId.equals(toId) && !fromId.equals(deployerSecurityId)) {\n throw new SecurityException(String.format(\n \"This call can only be made from Deployer (%s) or INS services. From: %s - To: %s\",\n deployerSecurityId, fromId, toId));\n }\n\n return true;\n }",
"Optional<Instant> getTokenInvalidationTimestamp();",
"@Override\n public boolean isCredentialsNonExpired() {\n return true;\n }",
"public boolean isExpired()\n\t{\n\t\tif (TimeRemaining == 0) \n\t\t\treturn true;\n\t\telse return false;\n\t}",
"long getExpiration();",
"@Override\npublic boolean isAccountNonExpired() {\n\treturn true;\n}",
"public boolean isExpired(int threshold) {\n \t\n \tlogger.log(Level.ALL, \" auth expires in \" + authorizationExpiresIn.getTime());\n \tlogger.log(Level.ALL,expiresIn.getTime() + \" \" + threshold * 1000);\n if(expiresIn!=null) {\n \t// threshold is in seconds and need to add to millisecond time\n long exp = authorizationExpiresIn.getTime() + threshold * 1000; \n long now = System.currentTimeMillis();\n logger.log(Level.ALL,\"exp : \" + exp + \" - now \" + now + \" \" + (exp<=now)); //Add logging to Level.ALL\n return exp<=now; \n }\n return false;\n }",
"@Override\n\t\t\t\tpublic boolean isAccountNonExpired() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public boolean isExpired() {\r\n if (expiresDate != null) {\r\n Date rightNow = new Date();\r\n return expiresDate.before(rightNow);\r\n }\r\n return false;\r\n }",
"void checkToken(String token) throws InvalidTokenException;",
"@Override\r\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}",
"@Override\n\t\t\t\tpublic boolean isCredentialsNonExpired() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public Boolean isExpired() {\n\t\tCalendar today = Calendar.getInstance();\n\t\treturn today.get(Calendar.DAY_OF_YEAR) != date.get(Calendar.DAY_OF_YEAR);\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isAccountNonExpired() {\n\t\treturn true;\n\t}"
] |
[
"0.7807247",
"0.7722056",
"0.7517308",
"0.7507055",
"0.73908234",
"0.7343495",
"0.7331186",
"0.72937757",
"0.71636415",
"0.7126176",
"0.70724314",
"0.7047834",
"0.703569",
"0.6990847",
"0.6988698",
"0.69220823",
"0.6841929",
"0.67952275",
"0.6769033",
"0.67591053",
"0.67358345",
"0.6702064",
"0.67012787",
"0.66882807",
"0.66470677",
"0.65538794",
"0.65391207",
"0.65348333",
"0.6531636",
"0.64799935",
"0.6479916",
"0.6451332",
"0.6446854",
"0.6446854",
"0.6439959",
"0.6433958",
"0.6433958",
"0.64060163",
"0.64017564",
"0.6391731",
"0.6320855",
"0.6317179",
"0.6307483",
"0.6297388",
"0.62662077",
"0.6256913",
"0.6254222",
"0.62533593",
"0.6243587",
"0.6238612",
"0.6237718",
"0.62338316",
"0.62338316",
"0.62338316",
"0.621513",
"0.62020946",
"0.61995786",
"0.6187057",
"0.61794204",
"0.61794204",
"0.615012",
"0.615012",
"0.615012",
"0.6138692",
"0.6129904",
"0.6127833",
"0.61276937",
"0.61195874",
"0.6119149",
"0.61157197",
"0.60990095",
"0.6092789",
"0.60729194",
"0.6062303",
"0.60599166",
"0.60574335",
"0.6055981",
"0.604103",
"0.6022607",
"0.60207015",
"0.60176027",
"0.6011586",
"0.6011586",
"0.6003248",
"0.6003248",
"0.59847826",
"0.5983093",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257",
"0.5981257"
] |
0.775627
|
1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.